:root {
    color-scheme: dark;
  }
  
  body {
    margin: 0;
    padding: 20px;
    background: #111;
    color: #eee;
    font-family: 'Segoe UI', sans-serif;
    text-align: center;
  }
  
  body.flash {
    background-color: #400000 !important;
  }
  
  h2 {
    color: #ffcc00;
  }
  
  button {
    font-size: 1rem;
    padding: 10px 20px;
    margin: 10px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  button:hover {
    background-color: #555;
  }
  
  #muteButton {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #222;
    border: none;
    color: #ccc;
    padding: 5px 10px;
    font-size: 0.9rem;
    border-radius: 5px;
    z-index: 1000;
  }
  
  .scene {
    display: none;
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
  }
  
  .scene.active {
    display: block;
  }
  
  .highlight {
    font-weight: bold;
    font-size: 1.5rem;
    color: #ff3333;
  }
  
  table {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    border-collapse: collapse;
    font-size: 1rem;
  }
  
  th, td {
    border: 1px solid #555;
    padding: 8px;
    color: #ddd;
  }
  
  th {
    background-color: #222;
  }
  
  .scene-image {
    margin: 20px auto;
    max-width: 300px;
  }
  
  .scene-image img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
  }
  
  /* 애니메이션 */
  @keyframes pop {
    0% { transform: scale(1); }
    30% { transform: scale(1.5); }
    100% { transform: scale(1); }
  }
  
  @keyframes shake {
    0% { transform: translate(0); }
    25% { transform: translate(-4px, 0); }
    50% { transform: translate(4px, 0); }
    75% { transform: translate(-4px, 0); }
    100% { transform: translate(0); }
  }
  
  .ending-pop {
    animation: pop 0.6s ease-in-out;
  }
  
  .ending-shake {
    animation: shake 0.5s ease-in-out;
  }
  
  @keyframes dangerFlash {
    0%, 100% { background-color: #111; }
    50% { background-color: #330000; }
  }
  
  body.danger-flash {
    animation: dangerFlash 1s steps(3, end) 4;
  }
  
  /* ✅ 모바일 최적화 */
  @media (max-width: 600px) {
    h2 {
      font-size: 1.3rem;
    }
  
    p {
      font-size: 1rem;
    }
  
    button {
      font-size: 0.95rem;
      padding: 8px 16px;
    }
  
    table {
      font-size: 0.9rem;
    }
  
    #muteButton {
      font-size: 0.8rem;
      padding: 4px 8px;
    }
  
    .scene-image {
      max-width: 90%;
    }
  
    .highlight {
      font-size: 1.2rem;
    }
  }
  