.sound-shell { width: min(1080px, calc(100% - 32px)); }

.game-card { overflow: hidden; border: 3px solid var(--ink); background: var(--panel); box-shadow: 10px 10px 0 var(--shadow); }
.game-heading { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; padding: 30px 34px; border-bottom: 3px solid var(--ink); }
.game-heading h1 { max-width: 820px; font-size: clamp(2.35rem, 7vw, 5rem); line-height: .94; }
.lede { max-width: 720px; margin: 18px 0 0; color: var(--muted); line-height: 1.6; }
.progress-box { min-width: 150px; padding: 16px; border: 2px solid var(--line); background: #171220; text-align: center; }
.progress-box > span, .stat > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .1em; }
.progress-box strong { color: var(--gold); font-size: 1.6rem; }

.headphone-note { display: flex; gap: 16px; align-items: center; padding: 16px 24px; border-bottom: 2px solid var(--line); background: #261e33; }
.headphone-note > span { font-size: 2rem; }
.headphone-note strong { display: block; color: var(--gold); font-size: .78rem; letter-spacing: .1em; }
.headphone-note p { margin: 4px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.45; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 3px solid var(--ink); }
.stat { min-width: 0; padding: 18px 12px; border-right: 2px solid var(--line); text-align: center; }
.stat:last-child { border-right: 0; }
.stat strong { font-size: clamp(1.05rem, 3vw, 1.65rem); }

.game-stage { min-height: 690px; padding: 36px 30px 30px; background: linear-gradient(rgba(88,199,215,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(88,199,215,.04) 1px, transparent 1px), radial-gradient(circle at 50% 26%, #2e2540, transparent 58%); background-size: 28px 28px, 28px 28px, auto; }
.speaker-field { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(18px, 8vw, 90px); align-items: center; width: min(640px, 100%); margin: 6px auto 22px; }
.sound-side { display: grid; width: clamp(70px, 15vw, 112px); aspect-ratio: 1; place-items: center; border: 3px solid var(--line); background: #171220; color: var(--muted); font-size: clamp(1.5rem, 4vw, 2.8rem); font-weight: 900; box-shadow: 6px 6px 0 var(--shadow); }
.listener { display: grid; width: 70px; aspect-ratio: 1; place-items: center; border: 3px solid var(--ink); border-radius: 50%; background: var(--gold); color: #171220; font-size: 2.2rem; }
.game-stage[data-active-side="left"] [data-visual-side="left"], .game-stage[data-active-side="right"] [data-visual-side="right"] { border-color: var(--green); color: var(--green); box-shadow: 0 0 28px rgba(83,221,131,.35), 6px 6px 0 var(--shadow); }
.game-stage[data-state="waiting"] .listener { animation: listen-pulse 900ms steps(2,end) infinite; }

.stage-copy { display: flex; min-height: 232px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.stage-kicker { margin: 0 0 10px; color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .14em; }
.stage-copy h2 { margin: 0; font-size: clamp(1.8rem, 5vw, 3.35rem); line-height: 1; }
.stage-copy > p:not(.stage-kicker) { max-width: 650px; min-height: 48px; color: var(--muted); line-height: 1.55; }
.feedback { display: grid; gap: 4px; min-height: 56px; margin: 0 0 16px; place-items: center; }
.feedback[hidden] { display: none; }
.feedback strong { color: var(--gold); font-size: 1.25rem; }
.feedback span { color: var(--muted); font-size: .88rem; }
.deadline-track { width: min(440px, 90%); height: 9px; margin: 2px 0 18px; overflow: hidden; border: 2px solid var(--line); background: #171220; }
.deadline-track[hidden] { display: none; }
.deadline-fill { display: block; width: 100%; height: 100%; transform-origin: left; background: var(--gold); }

.sample-row { display: grid; grid-template-columns: repeat(2, minmax(0, 210px)); gap: 12px; justify-content: center; margin: 6px auto 10px; }
.sample-button { display: flex; min-height: 48px; gap: 10px; align-items: center; justify-content: center; border: 2px solid var(--line); background: #171220; color: var(--ink); font: inherit; font-size: .78rem; font-weight: 800; letter-spacing: .08em; cursor: pointer; }
.sample-button:hover, .sample-button:focus-visible { border-color: var(--blue); color: var(--blue); outline: none; }
.sample-button:disabled { opacity: .45; cursor: not-allowed; }
.audio-status { min-height: 20px; margin: 0 auto 22px; color: var(--muted); font-size: .75rem; text-align: center; }

.answer-pad { display: grid; grid-template-columns: repeat(2, minmax(0, 290px)); gap: 16px; justify-content: center; }
.answer-button { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; min-height: 94px; align-items: center; padding: 18px 22px; border: 3px solid var(--ink); background: #21192e; color: var(--ink); box-shadow: 5px 5px 0 var(--shadow); cursor: pointer; font: inherit; }
.answer-button:hover, .answer-button:focus-visible { border-color: var(--gold); color: var(--gold); outline: none; }
.answer-button:disabled { opacity: .5; cursor: not-allowed; }
.answer-button > span { font-size: 1.7rem; }
.answer-button strong { font-size: 1rem; }
.answer-button small { white-space: nowrap; }
.answer-button kbd { min-width: 28px; }
.control-note { margin: 20px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.5; text-align: center; }

.content-section, .reading-grid, .faq-section, .related-section { margin: 0 18px; }
.content-section { display: grid; grid-template-columns: .8fr 1.35fr; gap: 64px; padding: 72px 0 60px; }
.content-heading h2, .info-panel h2, .faq-section h2, .related-section h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.05; }
.steps-list { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--line); }
.steps-list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 21px 0; border-bottom: 2px solid var(--line); }
.steps-list span { color: var(--gold); font-weight: 900; }
.steps-list p, .info-panel p, .faq-list p { margin: 0; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; line-height: 1.65; }
.reading-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.info-panel { padding: 30px; border: 2px solid var(--line); background: var(--panel); }
.info-panel h2 { margin-bottom: 18px; }
.info-panel p + p { margin-top: 15px; }
.faq-section { padding: 72px 0 34px; }
.faq-list { margin-top: 30px; border-top: 2px solid var(--line); }
.faq-list details { border-bottom: 2px solid var(--line); }
.faq-list summary { padding: 22px 34px 22px 0; color: var(--ink); cursor: pointer; font-weight: 800; line-height: 1.5; }
.faq-list summary::marker { color: var(--gold); }
.faq-list p { max-width: 880px; padding: 0 0 22px; }
.related-section { padding: 46px 0 34px; }
.related-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.related-links a { display: grid; gap: 5px; padding: 16px; border: 2px solid var(--line); color: var(--ink); text-decoration: none; }
.related-links a:hover, .related-links a:focus-visible { border-color: var(--gold); color: var(--gold); outline: none; }
.related-links span { font-weight: 800; }
.related-links small { color: var(--muted); }

@keyframes listen-pulse { 0%, 49% { transform: scale(1); } 50%, 100% { transform: scale(1.08); } }

@media (max-width: 720px) {
  .sound-shell { width: min(100% - 20px, 1080px); }
  .game-heading { grid-template-columns: 1fr; padding: 25px 20px; }
  .progress-box { width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 2px solid var(--line); }
  .game-stage { min-height: 660px; padding: 28px 12px 24px; }
  .speaker-field { gap: 14px; }
  .listener { width: 54px; }
  .sample-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .answer-pad { gap: 10px; }
  .answer-button { grid-template-columns: 1fr; gap: 7px; min-width: 0; min-height: 130px; padding: 13px 6px; }
  .answer-button small { white-space: normal; }
  .content-section, .reading-grid, .related-links { grid-template-columns: 1fr; }
  .content-section { gap: 32px; padding-top: 58px; }
  .info-panel { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .game-stage[data-state="waiting"] .listener { animation: none; }
  .deadline-fill { transition: none !important; }
}
