/* iPad is the primary in-store surface. This layer follows the core stylesheet.
   Viewport queries also cover browser QA and split orientations without UA checks. */
@media (min-width:721px) and (max-width:1366px) {
  body { padding: max(24px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom)); }
  .topbar { padding: 16px 32px 10px; gap: 20px; }
  .brand { width: 178px; }
  .event-label > span { font-size: 12px; letter-spacing: .1em; }
  .event-label small { font-size: 8px; letter-spacing: .08em; }
  .fullscreen-button { width: 48px; height: 48px; margin-left: 0; }
  .fullscreen-button svg { width: 21px; height: 21px; }
  main { padding: 16px 32px 20px; max-width: 1220px; }
  .eyebrow { font-size: 11px; }
  .button { min-height: 64px; font-size: 17px; padding: 18px 24px; }
  .button svg { width: 23px; height: 23px; }
  .text-button { min-height: 48px; font-size: 13px; }
  .screen-title { font-size: 50px; margin-bottom: 12px; }
  .screen-subtitle { font-size: 16px; line-height: 1.5; margin-bottom: 22px; }
  .screen-top { min-height: 44px; margin-bottom: 5px; }
  .screen-top > .eyebrow { font-size: 10px; }
  .exit-game { min-height: 48px; font-size: 14px; gap: 12px; }
  .exit-game svg { width: 20px; height: 20px; }
  .game { padding-bottom: 0; }
  .game-grid { gap: 24px; align-items: stretch; }
  .player-panel { padding: 20px; border-radius: 23px; }
  .player-top { font-size: 10px; line-height: 1.5; gap: 10px; }
  .player-top svg { width: 18px; height: 18px; }
  .player-time { font-size: 11px; line-height: 1.4; }
  .listen-hint { font-size: 12px; line-height: 1.5; }
  .remaining { min-width: 42px; font-size: 15px; padding: 9px; }
  .extend-button { min-height: 56px; font-size: 13px; padding: 12px; gap: 8px; }
  .extend-button svg { width: 20px; height: 20px; }
  .extension-status { font-size: 11px; line-height: 1.5; }
  .answer-heading { margin-bottom: 13px; }
  .answer-heading > .eyebrow { font-size: 11px; }
  .answer-heading > span + span { font-size: 9px; }
  .answers { gap: 14px; }
  .answer { min-height: 124px; padding: 20px 16px; gap: 13px; border-radius: 16px; }
  .answer-letter { width: 32px; height: 32px; font-size: 12px; }
  .answer-copy { gap: 7px; }
  .answer-copy strong { font-size: 18px; line-height: 1.25; letter-spacing: -.025em; }
  .answer-copy small { font-size: 13px; line-height: 1.45; }
  .confirm-button { min-height: 64px; font-size: 17px; margin-top: 18px; }
  .answer-hint { font-size: 12px; margin-top: 12px; line-height: 1.45; }
  .footer { min-height: 64px; padding: 8px 32px 10px; gap: 12px; flex-wrap: wrap; }
  .footer-location { font-size: 8px; letter-spacing: .045em; }
  .footer .legal { font-size: 8px; color: #b7c6b3; }
  .install-link { min-height: 46px; font-size: 12px; padding: 10px 14px; gap: 8px; }
  .install-link svg { width: 19px; height: 19px; }
  .settings-link { min-height: 46px; font-size: 12px; padding: 10px 0 10px 10px; }
  .settings-link svg { width: 18px; height: 18px; }
  .how-strip strong { font-size: 14px; }
  .how-strip small { font-size: 10px; line-height: 1.5; }
  .how-strip > div { gap: 12px; }
  .how-strip > div + div { padding-left: 18px; }
  .step-num { width: 37px; height: 37px; font-size: 12px; }
  .how-link { font-size: 13px; margin-top: 6px; }
  .hero-intro { font-size: 18px; }
  .start-button { min-height: 66px; min-width: 310px; font-size: 18px; }
  .modal { width: min(650px, calc(100% - 80px)); padding: 30px 34px; max-height: calc(100svh - 72px); }
  .modal .icon-button { width: 46px; height: 46px; }
  .modal .icon-button svg { width: 21px; height: 21px; }
  .modal h2 { font-size: 36px; }
  .modal-heading > .eyebrow { font-size: 10px; }
  .modal-intro, .how-instructions p, .install-intro { font-size: 14px; }
  .modal .button { min-height: 62px; font-size: 15px; }
  .how-instructions strong { font-size: 16px; }
  .how-instructions li > span { width: 38px; height: 38px; font-size: 12px; }
  .setting-row { padding: 20px 0; }
  .setting-row strong { font-size: 15px; }
  .setting-row small { font-size: 12px; }
  .segmented button { min-width: 66px; min-height: 46px; font-size: 13px; }
  .volume-control input { min-height: 46px; }
  .volume-control output { font-size: 13px; }
  .playlist-heading { font-size: 16px; }
  .playlist-heading > span, .playlist-help { font-size: 12px; line-height: 1.5; }
  .playlist-row { min-height: 66px; padding: 14px 0; gap: 15px; }
  .playlist-row input { width: 24px; height: 24px; }
  .playlist-row strong { font-size: 14px; }
  .playlist-row small { font-size: 12px; }
  .source-notes { font-size: 12px; }
  .source-notes summary { min-height: 44px; display: flex; align-items: center; }
  .registration-form { padding: 28px; }
  .form-grid label { font-size: 14px; }
  .form-grid input { min-height: 56px; font-size: 17px; padding: 14px; }
  .form-grid input::placeholder { font-size: 14px; }
  .registration-intro { font-size: 15px; line-height: 1.6; }
  .registration-note { font-size: 12px; line-height: 1.55; }
  .acknowledgement { font-size: 13px; line-height: 1.5; gap: 12px; }
  .acknowledgement input { width: 24px; height: 24px; flex: none; }
  .registration-form > .button { min-height: 64px; font-size: 16px; }
  .field-help, .form-bottom { font-size: 11px; }
  .registration-back { min-height: 48px; font-size: 14px; }
}

/* Landscape: the player becomes a compact control desk beside the answers. */
@media (min-width:721px) and (max-width:1366px) and (orientation:landscape) {
  body[data-view=game] .topbar { padding: 12px 32px 8px; }
  body[data-view=game] .brand { width: 158px; }
  body[data-view=game] main { padding-top: 8px; padding-bottom: 10px; }
  .home { grid-template-columns: 1.05fr 1fr; gap: 0 28px; }
  .hero-copy h1 { font-size: clamp(58px, 5.7vw, 72px); margin: 20px 0; line-height: .97; }
  .hero-art { max-width: 395px; margin-top: 0; }
  .hero-intro { margin-bottom: 22px; }
  .how-strip { margin-top: 26px; padding-top: 20px; gap: 20px; }
  .game .screen-title { font-size: 48px; margin-bottom: 10px; }
  .game .screen-subtitle { margin-bottom: 18px; }
  .game-grid { grid-template-columns: .76fr 1.24fr; gap: 24px; }
  .player-panel { display: grid; grid-template-columns: 116px minmax(0, 1fr); column-gap: 13px; row-gap: 7px; align-content: center; padding: 20px 18px; }
  .player-top { grid-column: 1 / -1; grid-row: 1; margin-bottom: 10px; }
  .game .record-control { grid-column: 1; grid-row: 2 / 5; width: 116px; height: 116px; margin: 0; }
  .game .play-button { width: 89px; height: 89px; }
  .game .play-button svg { width: 34px; height: 34px; }
  .game .waveform { grid-column: 2; grid-row: 2; height: 39px; margin: 0; gap: .7px; }
  .game .waveform span { min-width: .5px; max-width: 4px; }
  .player-time { grid-column: 2; grid-row: 3; margin-top: 0; }
  .listen-hint { grid-column: 2; grid-row: 4; text-align: left; margin: 0; font-size: 11px; min-height: 0; }
  .game .listen-extension { grid-column: 1 / -1; grid-row: 5; margin-top: 15px; padding-top: 15px; gap: 8px; }
  #another-track { grid-column: 1 / -1; grid-row: 6; }
  .answer { min-height: 121px; }
  .answer-panel { justify-content: center; }
  .answer-hint { margin-bottom: 0; }
  .registration { gap: 30px; grid-template-columns: .85fr 1.15fr; }
  .registration .screen-title { font-size: 43px; }
}

/* Portrait: a wide player sits above four generous answer tiles. */
@media (min-width:721px) and (max-width:1100px) and (orientation:portrait) {
  .topbar { padding-top: 14px; padding-bottom: 10px; }
  .brand { width: 180px; }
  main { padding-top: 14px; padding-bottom: 16px; }
  .home { grid-template-columns: 1fr; text-align: center; gap: 0; }
  .hero-copy .eyebrow { justify-content: center; font-size: 11px; }
  .hero-copy h1 { font-size: clamp(61px, 8.2vw, 75px); line-height: .95; margin: 20px 0 18px; }
  .hero-intro { font-size: 18px; margin-bottom: 20px; line-height: 1.5; }
  .hero-intro br { display: none; }
  .hero-intro strong::after { content: ' '; }
  .start-button { width: min(100%, 470px); margin: 0 auto; min-height: 68px; }
  .how-link { margin-top: 5px; }
  .hero-art { grid-row: 2; width: 210px; max-width: 210px; margin: 12px auto 4px; }
  .seconds-sticker { width: 64px; height: 64px; top: 2%; right: -2%; }
  .seconds-sticker strong { font-size: 27px; }
  .seconds-sticker span { font-size: 5px; }
  .art-caption { display: none; }
  .art-tag { font-size: 6px; padding: 8px 12px; bottom: 1%; }
  .art-spark.spark-one { font-size: 23px; }
  .art-spark.spark-two { font-size: 19px; }
  .how-strip { margin-top: 19px; padding-top: 20px; gap: 13px; text-align: left; }
  .how-strip > div { gap: 10px; }
  .how-strip > div + div { padding-left: 13px; }
  .how-strip strong { font-size: 12px; }
  .how-strip small { font-size: 9px; }
  .step-num { width: 32px; height: 32px; font-size: 11px; }
  .game { margin: auto 0; }
  .game-grid { grid-template-columns: 1fr; gap: 24px; }
  .game .screen-title { font-size: 50px; }
  .game .screen-subtitle { margin-bottom: 20px; }
  .player-panel { display: grid; grid-template-columns: 116px minmax(0, 1fr) 184px; column-gap: 18px; row-gap: 7px; padding: 18px 20px; align-items: center; }
  .player-top { grid-column: 1 / -1; grid-row: 1; margin-bottom: 6px; }
  .game .record-control { grid-column: 1; grid-row: 2 / 5; width: 116px; height: 116px; margin: 0; }
  .game .play-button { width: 89px; height: 89px; }
  .game .play-button svg { width: 35px; height: 35px; }
  .game .waveform { grid-column: 2; grid-row: 2; height: 37px; margin: 0; gap: 1px; }
  .game .waveform span { min-width: .5px; max-width: 5px; }
  .player-time { grid-column: 2; grid-row: 3; margin-top: 0; }
  .listen-hint { grid-column: 2; grid-row: 4; text-align: left; margin: 0; font-size: 12px; min-height: 0; }
  .game .listen-extension { grid-column: 3; grid-row: 2 / 5; margin: 0; padding: 0 0 0 16px; border-top: 0; border-left: 1px solid #c8d5bd25; gap: 9px; justify-content: center; align-self: stretch; }
  .extend-button { min-height: 60px; padding: 11px; font-size: 12px; }
  .extend-button svg { width: 18px; height: 18px; }
  .extension-status { font-size: 10px; }
  #another-track { grid-column: 1 / -1; grid-row: 5; }
  .answer { min-height: 130px; padding: 21px; }
  .answer-copy strong { font-size: 20px; }
  .answer-copy small { font-size: 14px; }
  .answer-letter { width: 35px; height: 35px; font-size: 13px; }
  .answer-heading { margin-bottom: 14px; }
  .confirm-button { min-height: 66px; margin-top: 18px; }
  .footer { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 18px; padding-top: 8px; }
  .footer-location { grid-column: 1; grid-row: 1; font-size: 8px; }
  .footer .legal { grid-column: 1; grid-row: 2; font-size: 8px; }
  #install-open { grid-column: 2; grid-row: 1 / 3; }
  #settings-open { grid-column: 3; grid-row: 1 / 3; }
  .registration { display: flex; flex-direction: column; gap: 24px; padding: 0; max-width: 680px; align-self: center; }
  .registration-copy { width: 100%; }
  .registration .screen-title { font-size: 44px; margin-bottom: 14px; }
  .registration .screen-title br:nth-of-type(2) { display: none; }
  .registration-intro { margin-bottom: 0; }
  .registration-intro br { display: none; }
  .selected-recap { display: none; }
  .registration-form { width: 100%; }
}

@media (min-width:721px) and (max-width:1100px) and (orientation:portrait) and (min-height:1100px) {
  .hero-copy h1 { font-size: 73px; }
  .hero-art { width: 260px; max-width: 260px; margin-top: 18px; }
  .home .how-strip { margin-top: 28px; padding-top: 24px; }
  .game-grid { gap: 30px; }
  .answer { min-height: 148px; }
  .answer-copy strong { font-size: 21px; }
  .confirm-button { margin-top: 22px; }
}

/* The exit control shares the heading band, preserving its full touch area. */
@media (min-width:721px) and (max-width:1366px) {
  .game .screen-top { position: relative; min-height: 18px; margin-bottom: 7px; }
  .game .exit-game { position: absolute; top: 0; right: 0; margin: 0; }
  .game .screen-title { padding-right: 100px; }
}
