/*!
 * What Note Is It? v2 — the cover's hill over the same game (with js/kid-kit.js).
 * Colours from the cover (covers/what-note-is-it/scene.js): sky #8fd6f4, far
 * hill #a9dbc4, near hill #9dd25f, the mystery bell navy #1b233e with a white
 * badge, white sound arcs. The hills are the bells' floor (one floor).
 */
body.is-v2 { background: #8fd6f4; }
body.is-v2 .screen { background: transparent; }
body.is-v2 .v2-scenery { position: fixed; inset: 0; pointer-events: none; }
body.is-v2 .v2-scenery .kk-scene { position: absolute; inset: 0; }
body.is-v2 .boot-loader { background: rgba(143, 214, 244, 0.92); }

/* this game's global `button` rule would pad the kit's round buttons */
body.is-v2 .kk-round, body.is-v2 .kk-x, body.is-v2 .kk-stone { padding: 0; }
body.is-v2 .kk-btn { padding: 0; }

/* the start gate holds the kit until the first tap: only the kit is seen */
.pgc-gate.v2-gate { background: #8fd6f4; padding: 0; }
.pgc-gate.v2-gate .pgc-gate-card { visibility: hidden; }
.pgc-gate.v2-gate .v2-home { position: fixed; z-index: 120; left: max(12px, env(safe-area-inset-left)); top: calc(max(10px, env(safe-area-inset-top)) + 6px); width: 52px; height: 52px; }
/* the third title row, like the cover: "Is It?" in Nunito Black */
.v2-wn-menu .kk-title::after {
  content: "Is It?"; display: block; margin-top: 0.08em;
  font: 900 clamp(26px, 5.6vw, 46px)/1 "Nunito", system-ui, sans-serif; color: #fff;
  text-shadow: 0 0.06em 0 rgba(27, 35, 62, 0.32);
}
.v2-wn-menu .kk-ico { width: 64%; }
/* back from play the kit sits on the page: above the game's fixed dock (z 70), below the chrome */
.kk-menu.v2-wn-menu { z-index: 100; }
/* ... and the chrome really is above it: the kit drops the chrome to 60 while a menu is on, so back from play the
   menu covered the back arrow and there was no way out (Rob, iPhone, 2026-10-20: "I can't exit the What Note menu") */
html.kk-menu-on .pgc-root, html.kk-menu-on [data-coin-purse] { z-index: 110; }

/* the game's own setting rows, moved into the grown-ups sheet, wear the kit's pills */
.kk-sheet .setting-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 12px; }
.kk-sheet .setting-label { min-width: 84px; font-size: 12px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; color: #8a93ad; }
.kk-sheet .mode-groups { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.kk-sheet .mode-group { display: flex; align-items: center; gap: 8px; }
.kk-sheet .mode-group-label { font-size: 12px; font-weight: 900; color: #8a93ad; }
.kk-sheet .mode-toggle { display: flex; flex-wrap: wrap; gap: 8px; }
.kk-sheet .mode-btn {
  appearance: none; border: 2px solid #d5dced; background: #fff; color: #1b233e;
  font: 900 14px/1 Nunito, system-ui, sans-serif; padding: 10px 16px; border-radius: 999px; min-height: 44px; cursor: pointer; box-shadow: none;
}
.kk-sheet .mode-btn.active { background: #1b233e; border-color: #1b233e; color: #fff; }

/* ── Play ───────────────────────────────────────────────────────────────── */
/* the menu chooses the mode and the gear holds the settings, so the game's own
   toggle bar and settings button step aside (they stay in the page: the kit presses them) */
body.is-v2 .wn-play-mode, body.is-v2 #settingsBtn { display: none !important; }
body.is-v2 .top-ui { min-height: 0; }
/* the title is the menu's; in play it only steals room from the mystery bell
   (v1's Listen overlapped the card at 1024×768). Tall screens used to keep it; a
   Pro Max is "tall", and Rob's rule is no printed title in play (2026-10-21). */
body.is-v2 .app-title-top { display: none; }
body.is-v2 .app-title-top {
  font-family: "Grobold", "Nunito", system-ui, sans-serif; font-weight: 400; font-variant-caps: small-caps;
  color: #fff; font-size: clamp(28px, 4.6vw, 40px); letter-spacing: 0.5px;
  text-shadow: 0 0.07em 0 rgba(27, 35, 62, 0.3);
}
body.is-v2 .v2-note { font-weight: 400; }
body.is-v2 .v2-note i { font-style: normal; text-shadow: 0 0.07em 0 rgba(27, 35, 62, 0.38); }

/* the scoreboard: a light pill-card, no hairlines */
body.is-v2 .hud-panel { background: rgba(255, 255, 255, 0.94); border: 0; border-radius: 24px; box-shadow: 0 4px 0 rgba(27, 35, 62, 0.12); }
body.is-v2 .outcome-track-rail::before { background: #e3e9f4; }

/* the question: the cover's mystery bell, ringing (white arcs) while it plays */
body.is-v2 .question-card { background: transparent; border: 0; box-shadow: none; }
body.is-v2 .question-slot.playing .question-card { border: 0; }
body.is-v2 .question-face-front { font-size: 0 !important; color: transparent !important; overflow: visible; }
/* The mystery bell is a real bell's own outline in navy (the bell art as a mask), with the cover's
   white "?" badge, so the answer can take its place without changing shape (2026-10-21). */
body.is-v2 .v2-q { position: absolute; left: 50%; bottom: 0; height: 100%; aspect-ratio: 285 / 302; translate: -50% 0; pointer-events: none; }
body.is-v2 .v2-sil {
  position: absolute; inset: 0; background-color: #1b233e;
  -webkit-mask-position: center bottom; mask-position: center bottom;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;   /* the image is set inline by the skin's js */
  transition: background-color 0.34s ease, opacity 0.25s ease 0.42s;
}
body.is-v2 .v2-qb {
  position: absolute; left: 50.2%; top: 16.6%; width: 17%; height: 10.6%; translate: -50% -50%;
  display: grid; place-items: center; border-radius: 50%; background: #fff; color: #1b233e;
  font: 400 calc(var(--tile-size) * 0.085)/1 "Grobold", "Nunito", system-ui, sans-serif;
  transition: opacity 0.2s ease;
}
body.is-v2 .v2-arcs { position: absolute; inset: 0; pointer-events: none; }
body.is-v2 .v2-arcs i {
  position: absolute; left: 50%; top: 66%; translate: -50% -50%;
  width: var(--s); aspect-ratio: 1; border-radius: 50%;
  border: var(--w) solid transparent; border-left-color: #fff; border-right-color: #fff;
  opacity: 0; transition: opacity 0.2s ease;
}
body.is-v2 .v2-arcs i:nth-child(1) { --s: 112%; --w: 9px; }
body.is-v2 .v2-arcs i:nth-child(2) { --s: 138%; --w: 7px; }
body.is-v2 .v2-arcs i:nth-child(3) { --s: 164%; --w: 5px; }
body.is-v2 .question-slot.v2-ringing .v2-arcs i { animation: v2-ring 1.2s ease-out 1 both; }
body.is-v2 .question-slot.v2-ringing .v2-arcs i:nth-child(2) { animation-delay: 0.1s; }
body.is-v2 .question-slot.v2-ringing .v2-arcs i:nth-child(3) { animation-delay: 0.2s; }
@keyframes v2-ring { 0% { opacity: 0; scale: 0.9; } 20% { opacity: 0.95; } 100% { opacity: 0; scale: 1.08; } }
/* THE ANSWER: THE MYSTERY BELL GETS ITS COLOR (Rob, 2026-10-21: "the mystery bell is a dark bell but
   then the answer is on a card. Thats weird."). No flip and no card: the navy floods with the note's
   color, the "?" lets go, and the real bell (face and letter) fades in over the same outline with a
   little ring. --wn-c is the note's color, set on the slot by what-note-is-it-v2.js. */
body.is-v2 .question-slot .question-card,
body.is-v2 .question-slot.revealed .question-card { transform: none; transition: none; }
body.is-v2 .question-face { backface-visibility: visible; -webkit-backface-visibility: visible; }
body.is-v2 .question-face-back {
  transform: none; background: none; border-radius: 0; box-shadow: none;
  opacity: 0; transition: opacity 0.3s ease 0.16s; pointer-events: none;
}
body.is-v2 .question-slot.revealed .question-face-back { opacity: 1; }
body.is-v2 .question-slot.revealed .v2-sil { background-color: var(--wn-c, #1b233e); opacity: 0; }
body.is-v2 .question-slot.revealed .v2-qb { opacity: 0; }
body.is-v2 .question-slot.revealed .question-card { animation: v2-reveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes v2-reveal { 0% { scale: 1; } 38% { scale: 1.09; } 100% { scale: 1; } }
body.is-v2 .question-face-back .question-note { width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: none; overflow: visible; }
body.is-v2 .question-face-back .bell-composite {
  left: 50%; bottom: 0; top: auto; width: auto; height: 100%; aspect-ratio: 285 / 302; transform: translateX(-50%);
}
body.is-v2 .question-face-back .note-art-bell { object-fit: contain; object-position: center bottom; filter: none; }
body.is-v2 .question-face-back .note-art-stage,
body.is-v2 .question-face-back .note-label { display: none; }
/* the first-note hint (a grown-ups setting) shows the answer faintly: the outline stays navy */
body.is-v2 .question-slot.first-note-hint .v2-sil { background-color: #1b233e; opacity: 1; }
body.is-v2 .question-slot.first-note-hint .question-card { animation: none; }

body.is-v2 .question-prompt { color: #1b233e; font-weight: 900; }
body.is-v2 .message {
  width: fit-content; margin: 4px auto 8px; padding: 6px 20px; border-radius: 999px;
  background: #fff; color: #1b233e; box-shadow: 0 4px 0 rgba(27, 35, 62, 0.12);
  /* Nunito, not Grobold (Rob, 2026-10-21): Grobold is the titles' and the big buttons' face */
  font-family: "Nunito", system-ui, sans-serif; font-weight: 900; font-size: 1.08rem; letter-spacing: 0;
}
body.is-v2 .message:empty { visibility: hidden; }

/* Listen sits in the flow right under the mystery bell (v1 pinned it above the
   dock, where it covered the card whenever the scoreboard grew), and the bell
   takes a little less height so it all fits above the bells */
body.is-v2.single-note-game .play-center { position: static; transform: none; inset: auto; width: 100%; margin: 14px auto 0; }
body.is-v2 .question-grid.slots-1 { --tile-size: clamp(130px, min(24vh, 40vw), 230px); }
/* Listen: a big round-ended pill */
body.is-v2.single-note-game #replayBtn {
  background: #009999; color: #fff; border-radius: 999px; box-shadow: 0 6px 0 #007372;
  font-family: "Grobold", "Nunito", system-ui, sans-serif; font-weight: 400;
}
body.is-v2 #replayBtn .transport-label { font-family: inherit; font-weight: 400; font-size: 1.3em; letter-spacing: 0.5px; }

/* the floor: two flat hills under the bells (the dock's own band, recoloured) */
body.is-v2 .bank-dock::before { background: #9dd25f; z-index: -1; }
body.is-v2 .bank-dock::after {
  content: ""; position: absolute; left: 0; right: 0; z-index: -1; pointer-events: none;
  bottom: calc(var(--dock-bg-height) + env(safe-area-inset-bottom) - 2px); height: clamp(48px, 8vh, 80px);
  background: url("./hills.svg") center bottom / 100% 100% no-repeat;
}
body.is-v2 .note-label { color: #1b233e; }

/* bells never in lockstep: each sways at its own tempo */
body.is-v2 .bank-note .note-art-bell { transform-origin: 50% 96%; animation: v2-sway var(--v2-t, 2.6s) ease-in-out infinite alternate; animation-delay: var(--v2-d, 0s); }
body.is-v2 .bank-note:nth-child(8n+1) { --v2-t: 2.3s; --v2-d: -0.4s; --v2-a: 1.8deg; }
body.is-v2 .bank-note:nth-child(8n+2) { --v2-t: 2.9s; --v2-d: -1.9s; --v2-a: 2.4deg; }
body.is-v2 .bank-note:nth-child(8n+3) { --v2-t: 2.1s; --v2-d: -0.9s; --v2-a: 1.3deg; }
body.is-v2 .bank-note:nth-child(8n+4) { --v2-t: 3.3s; --v2-d: -2.6s; --v2-a: 2.1deg; }
body.is-v2 .bank-note:nth-child(8n+5) { --v2-t: 2.6s; --v2-d: -0.2s; --v2-a: 1.6deg; }
body.is-v2 .bank-note:nth-child(8n+6) { --v2-t: 3.1s; --v2-d: -1.4s; --v2-a: 1.5deg; }
body.is-v2 .bank-note:nth-child(8n+7) { --v2-t: 2.4s; --v2-d: -2.1s; --v2-a: 2.5deg; }
body.is-v2 .bank-note:nth-child(8n+8) { --v2-t: 2.8s; --v2-d: -0.7s; --v2-a: 1.4deg; }
@keyframes v2-sway { from { rotate: calc(var(--v2-a, 2deg) * -1); } to { rotate: var(--v2-a, 2deg); } }

@media (prefers-reduced-motion: reduce) {
  body.is-v2 .bank-note .note-art-bell, body.is-v2 .question-slot.v2-ringing .v2-arcs i { animation: none; }
  body.is-v2 .question-slot.playing .v2-arcs i { opacity: 0.9; }
}

/* ── Playtest 2026-10-09 ────────────────────────────────────────────────── */
/* "Your turn" is the one cue that says go: a navy pill with white words (it was
   a white pill on the sky, flashed for 800ms and mostly seen mid-fade). Same
   size as the other messages, so nothing below it jumps. */
body.is-v2 .message.is-turn { background: #1b233e; color: #fff; box-shadow: 0 4px 0 rgba(27, 35, 62, 0.25); }
body.is-v2 .message.is-turn.show { animation: v2-turn-pop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes v2-turn-pop { from { scale: 0.7; } to { scale: 1; } }

/* THE BELLS (2026-10-21, every ladder stop but the black bells: 3, 4, 5 and all 8).
   Each bell, stage card included, is one square, --v2-bell, sized by the screen, and the note
   button IS that square (it used to be a 44px or 72px box with the bell towering out of it, which
   needed a stretched ::before to be tappable and gave All 8 a row of 74x118 bells whose second
   row hid behind the first). No name pills under them (Rob: "the bells are labeled enough w color
   and letter"): each carries its number instead, small, just off its top-right shoulder.
   Breathing room: a bell takes 90% of its share of the width (it was 108%, so three bells on a
   phone stood shoulder to shoulder), and All 8 on an upright screen is two rows of four, with a
   gap between the rows. --wn-n is set by what-note-is-it-v1.js (3 when unset). */
body.is-v2:not(.wn-chromatic) #gameScreen {
  --wn-cols: var(--wn-n, 3);
  --wn-rows: 1;
  --wn-hcap: 24vh;
  --v2-bell: clamp(58px, min(calc((100vw - env(safe-area-inset-left) - env(safe-area-inset-right)) * 0.9 / var(--wn-cols)), var(--wn-hcap)), 190px);
  --wn-gap: calc(var(--v2-bell) * 0.1);
  --wn-foot: clamp(14px, 2.6vh, 28px);
  --dock-height: calc(var(--v2-bell) * var(--wn-rows) + var(--wn-gap) * (var(--wn-rows) - 1) + var(--wn-foot));
}
@media (orientation: portrait) {
  body.is-v2[data-wn-bells="8"]:not(.wn-chromatic) #gameScreen { --wn-cols: 4; --wn-rows: 2; --wn-hcap: 15vh; }
}
/* the dock: the bells' rows, then a little field under them; --wn-lift raises both (set by the skin's js) */
body.is-v2:not(.wn-chromatic) #gameScreen .bank-dock {
  height: calc(var(--dock-height) + env(safe-area-inset-bottom) + var(--wn-lift, 0px));
  padding-top: 0;
  padding-bottom: calc(var(--wn-foot) + env(safe-area-inset-bottom) + var(--wn-lift, 0px));
}
/* sideways, the bells (and the black bells' piano) stay off the notch and the rounded corners */
body.is-v2 #gameScreen .bank-dock { padding-left: max(10px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); }
/* The black bells' piano (13 Bells) keeps v1's strip. It only needed its room back: the dock's 96px
   top padding is there for bells that tower over their cards, and it clipped the keys. */
body.is-v2.wn-chromatic #gameScreen .bank-dock { padding-top: 8px; }
body.is-v2:not(.wn-chromatic) #gameScreen .bank-area { display: flex; align-items: flex-end; justify-content: center; padding: 0; overflow: visible; max-height: none; }
body.is-v2:not(.wn-chromatic) #gameScreen #bankGrid.c-major-strip {
  display: grid !important;
  grid-template-columns: repeat(var(--wn-cols), minmax(0, 1fr));
  grid-auto-rows: var(--v2-bell);
  gap: var(--wn-gap) 0;
  align-items: end;
  width: min(100%, calc(var(--v2-bell) * var(--wn-cols) * 1.24));
  max-width: none; margin: 0 auto; padding: 0;
}
body.is-v2:not(.wn-chromatic) #gameScreen .bank-dock .bank-grid.c-major-strip .bank-note {
  width: 100%; height: var(--v2-bell); min-width: 0; min-height: 0 !important; flex: none; justify-self: stretch;
}
body.is-v2:not(.wn-chromatic) #gameScreen .bank-grid.c-major-strip .bank-note::before { inset: 0; }
body.is-v2:not(.wn-chromatic) #gameScreen .bank-grid.c-major-strip .bank-note .bell-composite { width: var(--v2-bell); height: var(--v2-bell); margin-top: 0; }
/* no pads and no shadows (Rob: the pads under the bells go with the pills): the bells stand on the grass */
body.is-v2:not(.wn-chromatic) #gameScreen .bank-grid.c-major-strip .bank-note .note-art-stage { display: none; }
body.is-v2:not(.wn-chromatic) #gameScreen .bank-grid.c-major-strip .bank-note .note-art-bell { filter: none; }
body.is-v2:not(.wn-chromatic) #gameScreen .bank-grid.c-major-strip .bank-note .note-label { display: none; }
/* the number: Nunito, small, white like the menu's title words, by the bell's shoulder */
body.is-v2:not(.wn-chromatic) #gameScreen .bank-grid.c-major-strip .bank-note[data-degree]::after {
  content: attr(data-degree);
  position: absolute; z-index: 2; pointer-events: none;
  left: calc(50% + var(--v2-bell) * 0.2); top: calc(var(--v2-bell) * 0.07);
  font: 900 clamp(14px, calc(var(--v2-bell) * 0.15), 26px)/1 "Nunito", system-ui, sans-serif;
  color: #fff; text-shadow: 0 0.09em 0 rgba(27, 35, 62, 0.34);
}
/* the hint (two misses in a gentle stop) points with a hop, not a box drawn round the whole cell */
body.is-v2:not(.wn-chromatic) #gameScreen .bank-grid.c-major-strip .bank-note.kid-note-hint { outline: 0; }

@media (prefers-reduced-motion: reduce) {
  body.is-v2 .message.is-turn.show { animation: none; }
}

/* ── Art pass 2026-10-13 (the Bell Train standard) ──────────────────────── */
/* 3 Bells (the toddler mode): the scoreboard card goes; four dots on the sky say how far along a round is */
body.is-v2.wn-beginner .hud-panel {
  background: transparent; box-shadow: none; border: 0; padding: 6px 0 0; max-width: 190px; margin: 0 auto 4px;
}
body.is-v2.wn-beginner .outcome-track-head { display: none; }
body.is-v2.wn-beginner .outcome-track-rail::before, body.is-v2.wn-beginner .outcome-track-fill { display: none; }
body.is-v2.wn-beginner .outcome-dot { width: 20px; height: 20px; border: 3px solid #fff; background: rgba(255, 255, 255, 0.4); }
body.is-v2.wn-beginner .outcome-dot.is-correct { background: #6abb4a; border-color: #fff; }
body.is-v2.wn-beginner .outcome-dot.is-half { background: #ffc21c; border-color: #fff; }
body.is-v2.wn-beginner .outcome-dot.is-wrong { background: #fff; border-color: #fff; }

/* NO TEXT POP-UPS (Rob, 2026-10-21, every game: no words for right or wrong, "these kids can barely
   read"). The voice, the sounds, the reveal and the progress dots are the feedback, so the message
   pill and the prompt line are not shown at all in v2; the warm-up is the bells' hop and Listen's pulse. */
body.is-v2 #message, body.is-v2 .question-prompt { display: none !important; }
/* one message at a time: while the navy pill ("Your turn!") shows, the line under it gives way */
body.is-v2 .question-prompt { transition: opacity 0.2s ease; }
body.is-v2 .message.show ~ .question-wrap .question-prompt { opacity: 0; }

/* the bells stand ON the horizon (Rob, Bell Train: "the bells are basically on top of the field... 10-20 pixels of
   overlap"): the field's top edge meets the bells' feet, so the bells stand against the far hill and the sky.
   A bell's stage card is var(--v2-bell) * 0.34 tall and its pad starts 46% down it, so the pad's top is 0.18 *
   --v2-bell above the bell's square; the field rises 12px past it. The far hill is one pale band behind (no
   second green hill climbing up over the feet). With two rows (All 8, upright) the field starts at the BACK
   row's pads, so both rows stand on the grass. */
body.is-v2:not(.wn-chromatic) #gameScreen {
  --dock-bg-height: calc(var(--wn-foot) + (var(--v2-bell) + var(--wn-gap)) * (var(--wn-rows) - 1) + var(--v2-bell) * 0.16 + 14px);
}
body.is-v2:not(.wn-chromatic) .bank-dock::before { height: calc(var(--dock-bg-height) + env(safe-area-inset-bottom) + var(--wn-lift, 0px)); }
body.is-v2:not(.wn-chromatic) .bank-dock::after {
  bottom: calc(var(--dock-bg-height) + env(safe-area-inset-bottom) + var(--wn-lift, 0px) - 2px);
  height: clamp(40px, 7vh, 64px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 40 Q 260 0 620 30 T 1440 18 L1440 120 L0 120 Z' fill='%23a9dbc4'/%3E%3C/svg%3E");
}
/* ── Warm-up and room (2026-10-21) ─────────────────────────────────────────
   A ladder stop opens on its bells, not on a question (Rob: "I need to play the bells and hear
   them all once before im ready to play"): untried bells hop in turn, a tapped one stops, and once
   every bell has rung the Listen pill breathes. Listen always starts the question. */
body.is-v2.wn-warm:not(.wn-ready) #bankGrid .bank-note:not(.is-heard) .note-art-bell {
  animation: v2-sway var(--v2-t, 2.6s) ease-in-out var(--v2-d, 0s) infinite alternate,
             v2-invite 3s ease-in-out calc(var(--wn-i, 0) * 0.32s) infinite;
}
@keyframes v2-invite { 0%, 24%, 100% { translate: 0 0; } 8% { translate: 0 -11%; } 15% { translate: 0 0; } 19% { translate: 0 -3%; } }
body.is-v2.wn-ready #replayBtn { animation: v2-ready 1.3s ease-in-out infinite; }
@keyframes v2-ready { 0%, 100% { scale: 1; } 50% { scale: 1.07; } }
/* On a big screen (an iPad) the bells sat on the bottom edge under a band of empty sky (Rob: "lets
   bring the bells up and the grass up"). The skin's js measures the band between Listen and the
   bells and gives most of it to --wn-lift (bells and field rise together) and a little to --wn-drop
   (the mystery bell and Listen come down). A sideways phone has its own layout below. */
body.is-v2:not(.wn-chromatic) .question-wrap { margin-top: var(--wn-drop, 0px); }
@media (prefers-reduced-motion: reduce) {
  body.is-v2.wn-warm #bankGrid .bank-note .note-art-bell, body.is-v2.wn-ready #replayBtn,
  body.is-v2 .question-slot.revealed .question-card { animation: none; }
}

/* ── A phone held sideways (2026-10-21: the app is landscape only) ─────────
   ~400px of height can't stack scoreboard, mystery bell, Listen and bells, so the middle goes
   side by side: the mystery bell on the left, Listen on the right, the scoreboard
   in the top band between the back arrow and pause, the bells along the bottom. 520px is the
   breakpoint v1's own landscape block and the shared rotate gate use; an iPad never matches. */
@media (orientation: landscape) and (max-height: 520px) {
  body.is-v2:not(.wn-chromatic) #gameScreen { --wn-hcap: 27vh; --wn-foot: 12px; }
  body.is-v2 .screen {
    display: grid; align-content: stretch;
    grid-template-columns: 1fr auto 260px 1fr;
    grid-template-rows: auto 1fr auto 1fr;
    column-gap: clamp(18px, 4vw, 44px);
    padding: calc(10px + env(safe-area-inset-top)) max(14px, env(safe-area-inset-right))
             calc(var(--dock-height) + env(safe-area-inset-bottom) + 6px) max(14px, env(safe-area-inset-left));
  }
  body.is-v2 .top-ui { display: none; }
  body.is-v2 .hud-panel { grid-column: 1 / -1; grid-row: 1; margin: 2px auto 0; }
  body.is-v2 .question-wrap { display: contents; }
  body.is-v2 .question-grid { grid-column: 2; grid-row: 2 / 5; align-self: center; }
  body.is-v2 .question-grid.slots-1 { --tile-size: clamp(100px, 34vh, 156px); }
  body.is-v2 .play-center { grid-column: 3; grid-row: 3; margin: 0; }
  body.is-v2 .toolbar { grid-template-columns: 100%; }
  body.is-v2.single-note-game #replayBtn { min-height: 56px; }
  /* the scoreboard (All 8) is one row: score, tries, skip, then the progress rail */
  body.is-v2:not(.wn-beginner) .hud-panel {
    flex-direction: row; align-items: center; gap: 16px;
    width: min(620px, calc(100% - 140px)); max-width: none; padding: 4px 18px;
  }
  body.is-v2:not(.wn-beginner) .score-row { flex: 0 0 220px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.is-v2:not(.wn-beginner) .score-skip-btn { min-height: 46px; height: 46px; }
  body.is-v2:not(.wn-beginner) .outcome-track { flex: 1 1 auto; margin: 0; }
  body.is-v2:not(.wn-beginner) .outcome-track-head { margin-bottom: 5px; }
  body.is-v2.wn-chromatic #gameScreen { --dock-height: clamp(140px, 38vh, 170px); }
  body.is-v2.wn-chromatic .bank-grid.chromatic-piano { padding: 4px 4px 6px; margin-bottom: 0; }
}

/* ── The ladder's end card (2026-10-21) ─────────────────────────────────────
   One big Next, two small pills; the stars pop in one by one. Over the game,
   under the chrome's Menu pill (which closes it and opens the kit). */
.v2-done {
  position: fixed; inset: 0; z-index: 75;   /* over the bells' dock (70) too: the bells now stand mid-screen, under the card */
  display: grid; place-items: center; padding: 16px;
  background: rgba(27, 35, 62, 0.42);
  animation: v2-done-in 0.25s ease both;
}
.v2-done-card {
  width: min(360px, 100%); box-sizing: border-box;
  display: grid; justify-items: center; gap: 12px;
  padding: 22px 22px 20px; border-radius: 28px; background: #fff;
  box-shadow: 0 22px 50px rgba(27, 35, 62, 0.32);
  animation: v2-done-pop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.v2-done-art svg { display: block; width: auto; height: clamp(54px, 12vh, 84px); max-width: 220px; }
.v2-done-stars { display: flex; gap: 6px; font-size: clamp(42px, 9vh, 58px); line-height: 1; }
.v2-done-stars i { font-style: normal; color: #e3e8f2; animation: v2-star 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.v2-done-stars i.on { color: #ffc21c; text-shadow: 0 3px 0 #d99a00; }
.v2-done-go {
  appearance: none; border: 0; cursor: pointer;
  display: flex; align-items: center; gap: 14px; justify-content: space-between;
  min-width: 210px; padding: 10px 10px 10px 26px; border-radius: 999px;
  background: #009999; box-shadow: 0 6px 0 #007372; color: #fff;
  font: 400 28px/1 Grobold, Nunito, system-ui, sans-serif;
}
.v2-done-go:active { transform: translateY(3px); box-shadow: 0 3px 0 #007372; }
.v2-done-play { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #6abb4a; box-shadow: 0 3px 0 #4f9a35; }
.v2-done-play svg { width: 26px; height: 26px; margin-left: 3px; }
.v2-done-lock { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; }
.v2-done-lock svg { width: 16px; height: 16px; }
.v2-done-pills { display: flex; gap: 10px; }
.v2-done-pill {
  appearance: none; border: 0; cursor: pointer;
  padding: 9px 18px; border-radius: 999px; background: #eef1f7; color: #1b233e;
  font: 900 15px/1 Nunito, system-ui, sans-serif;
}
@keyframes v2-done-in { from { opacity: 0; } }
@keyframes v2-done-pop { from { transform: scale(0.8); opacity: 0; } }
@keyframes v2-star { from { transform: scale(0.2) rotate(-30deg); opacity: 0; } }
@media (max-height: 460px) {
  .v2-done-card { padding: 14px 18px; gap: 8px; }
  .v2-done-art { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .v2-done, .v2-done-card, .v2-done-stars i { animation: none; }
}
