/* The full demo on a phone (2026-11-20). Loaded only while the window is 759 px wide or less (head.html).
   The first screen is a handheld: the line, the game at the full width, a pad under it (walk, jump, fire), the
   Callout keys as one large button, and the four steps lighting as the demo runs (tour-phone.js). Nothing fixed
   covers it: the glass bar waits while the pad is on screen. Then the four chapters, each fitted to the phone. */

/* ---------- The first screen ---------- */
.hero { padding-top: 64px; }
.hero .promise { font-size: 2.55rem; line-height: 0.98; }
.hero .promise > span { display: inline; }
.hero-copy > .lede:not(.ph-lede) { display: none; }
.ph-lede { margin-top: 12px; font-size: 16.5px; line-height: 1.45; }
.beam { display: none; }
.stage { --stage-w: 100%; margin: 18px 0 64px; }
.dawn, .horizon { display: none; }
.win { border-radius: 0; box-shadow: none; }
.js .hero .win { animation: none; }
.win-bar { display: none; }
.win-rim { display: none; }
.win-view { border-radius: 0; }
.hero .tag { right: 10px; top: 10px; }
.stage-status { left: 8px; right: 8px; bottom: 8px; max-width: none; padding: 6px 11px; font-size: 14px; line-height: 1.35; border-radius: 10px; }

/* The pad: walk left and right under the left thumb, jump and fire under the right. A press sinks the key 2 px and
   lights it (90 ms in, 200 ms out). */
.pad { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px var(--gut) 0; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.pad > div { display: flex; gap: 10px; }
.pad button { display: grid; place-items: center; height: 58px; min-width: 58px; padding: 0 16px; border-radius: 18px; font-size: 16px; font-weight: 620; letter-spacing: -0.005em; color: var(--text-1); touch-action: none;
  background: linear-gradient(180deg, #2a2a31, #1b1b20); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 0 0 1px rgba(255, 255, 255, 0.08), 0 4px 0 #0b0b0e;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), background 200ms; }
.pad button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pad button.down { transform: translateY(3px); transition-duration: 90ms; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(142, 201, 255, 0.55), 0 1px 0 #0b0b0e, 0 0 22px rgba(74, 168, 255, 0.45); background: linear-gradient(180deg, #2f3a48, #1d2530); }
.pad .fire { min-width: 76px; color: #ffd6f7; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 0 0 1px rgba(255, 92, 220, 0.35), 0 4px 0 #0b0b0e; }
.pad .fire.down { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(255, 92, 220, 0.7), 0 1px 0 #0b0b0e, 0 0 22px rgba(255, 92, 220, 0.45); }

/* The keys, one large button under the pad */
.stage-body > .hero-actions { margin: 14px var(--gut) 0; display: block; }
.hotkey { display: flex; flex-direction: row; align-items: center; gap: 14px; width: 100%; min-height: 72px; padding: 10px 14px; text-align: left; border-radius: 18px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(142, 201, 255, 0.28), 0 0 40px -14px rgba(74, 168, 255, 0.5); }
.hotkey-label { width: auto; min-width: 0; flex: 1; }
.hotkey-label > span { justify-items: start; }
.hotkey-label b { font-size: 17px; }
.hotkey-label i { font-size: 14px; color: var(--text-2); }

/* The four steps, two rows, each lighting as the demo reaches it */
.stage-foot { padding: 14px var(--gut) 0; gap: 10px; }
.beats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; width: 100%; font-size: 14.5px; white-space: normal; }
.beats li { justify-self: start !important; }
.beats li + li::before { display: none; }
.beats li::after { content: none; }
.sound { min-height: 44px; font-size: 14.5px; }
.stage-note { padding: 6px var(--gut) 0; font-size: 14px; }

/* ---------- The chapters, fitted ---------- */
.chapter { padding: 88px 0; }
.chapter .h2 { font-size: 2.3rem; }
.pane-tabs button { min-height: 44px; font-size: 15px; }
.pane-more { min-height: 48px; font-size: 15px; }
.replay { min-height: 44px; font-size: 14.5px; }
.diff, pre.diff { font-size: 13px; line-height: 1.55; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.diff code { font-size: inherit; }
.fix-change figcaption, .change-more, .change-line { font-size: 15px; }
.gc-what { font-size: 15px; }
.lines li span, .lines li > span { font-size: 15px; }
.last-hint, .sign-note { font-size: 15px; }
.ask-try { font-size: 15.5px; }
.folder-list button { min-height: 48px; }
.fix-change figcaption .mono, .change-more .mono { font-size: 13.5px; }
