/* Level Up! landing page: a walk through Street Roots. Every section is a place drawn at a whole
   pixel scale; the words sit in game windows over it. Tokens mirror src/theme.ts (decisions 0013,
   0014), the windows borrow Undertale's framing, not its palette (owner, 2026-09-21). */

@font-face { font-family: "PressStart2P"; src: url("assets/fonts/PressStart2P-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --canvas: #090d27;
  --panel: #151b43;
  --raised: #1e2560;
  --text: #f5f3ff;
  --muted: #b1b3e8;
  --pink: #f53889;
  --pink-tint: #3a1845;
  --mint: #6ede92;
  --amber: #fba73f;
  --border: #6068ae;
  --ink: #000000;
  --display: "PressStart2P", ui-monospace, monospace;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --header: 64px;
  --ease-in: cubic-bezier(0.22, 1, 0.36, 1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --k: 2;
  color-scheme: dark;
}

* { box-sizing: border-box; border-radius: 0; }
html { background: var(--canvas); scroll-padding-top: var(--header); -webkit-text-size-adjust: 100%; }
html[data-motion="on"] { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--text); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
.sprite, .scene { image-rendering: pixelated; }
a { color: var(--text); text-decoration-color: var(--pink); text-underline-offset: 3px; text-decoration-thickness: 2px; }
p { margin: 0 0 14px; }
h1, h2, h3 { margin: 0; font-weight: 600; }
h2 { font: 400 clamp(17px, 1.9vw, 24px)/1.5 var(--display); color: var(--text); margin-bottom: 16px; }
small { font-size: 14px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--pink); color: var(--ink); padding: 12px 16px; font-weight: 600; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: 14px; line-height: 1.55; }
.amber { color: var(--amber); }

/* ---- small parts ------------------------------------------------------------------------ */
.wordmark { font: 400 16px/1 var(--display); color: var(--text); margin: 0; letter-spacing: 1px; white-space: nowrap; }
.wm-pink { color: var(--pink); }
.wm-sm { font-size: 12px; }
.chip { font: 400 9px/1 var(--display); background: var(--amber); color: var(--ink); padding: 6px 7px; white-space: nowrap; }
.tag { display: inline-block; font: 400 9px/1.2 var(--display); letter-spacing: .5px; color: var(--muted); border: 2px solid var(--border); padding: 5px 6px; margin: 0 6px 10px 0; }
.px-head { font: 400 14px/1 var(--display); color: var(--pink); margin: 14px 0 10px; }
.px-sub { font: 400 10px/1.4 var(--display); color: var(--pink); margin: 14px 0 8px; letter-spacing: .5px; }

.btn {
  text-shadow: none;
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px;
  font: 400 11px/1.3 var(--display); letter-spacing: .5px; text-decoration: none; cursor: pointer;
  color: var(--text); background: var(--ink); border: 2px solid var(--pink); box-shadow: 4px 4px 0 var(--pink-tint);
  transition: transform 100ms var(--ease), box-shadow 100ms var(--ease), background-color 150ms var(--ease);
}
.btn:hover { background: var(--pink-tint); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--pink-tint); }
.btn-primary { background: var(--pink); color: var(--ink); box-shadow: 4px 4px 0 var(--text); }
.btn-primary:hover { background: #ff5a9c; }
.btn-primary:active { box-shadow: 2px 2px 0 var(--text); }
.btn-small { min-height: 44px; padding: 10px 14px; font-size: 10px; box-shadow: none; }
.btn[aria-pressed="true"] { background: var(--pink); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0 18px; }

/* selections: the pink block plus the soul, never colour alone */
.look-pick, .seg, .topics, .district-pick, .merchant-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.look-pick button, .seg button, .topics button, .pick {
  min-height: 44px; padding: 10px 12px; font: 600 15px/1.2 var(--body); color: var(--text); text-shadow: none;
  background: rgba(9, 13, 39, .75); border: 2px solid var(--pink); cursor: pointer; text-align: left;
}
.look-pick button[aria-pressed="true"], .seg button[aria-pressed="true"], .topics button[aria-pressed="true"], .pick.is-on { background: var(--pink); color: var(--ink); }
.look-pick button[aria-pressed="true"]::before, .seg button[aria-pressed="true"]::before,
.topics button[aria-pressed="true"]::before, .pick.is-on::before { content: "\2665\00a0"; }
.pick small { display: block; font-weight: 400; font-size: 13px; opacity: .85; }
.pick-locked { border-color: var(--border); border-style: dashed; color: var(--muted); cursor: default; }

/* ---- header ----------------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--ink); border-bottom: 4px solid var(--text); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 6px 24px; flex-wrap: wrap; min-height: var(--header); padding: 8px var(--gutter); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 16px; text-decoration: none; color: var(--muted); }
.nav a::before { content: "\2665"; color: var(--pink); margin-right: 6px; visibility: hidden; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--text); }
.nav a:hover::before, .nav a[aria-current="true"]::before { visibility: visible; }

/* ---- the world: bands, stages, windows ------------------------------------------------ */
/* A band is one place. Its stage fills it; the art is scaled by a whole number (--k, set by
   site.js from the band's size) and cropped on its focal point, never stretched or smoothed. */
.band { position: relative; min-height: clamp(560px, calc(100svh - var(--header)), 1020px); display: grid; overflow: hidden; background: var(--canvas); }
.band + .band { border-top: 4px solid var(--ink); }
.stage { position: absolute; inset: 0; overflow: hidden; }
.canvas {
  position: absolute;
  width: calc(var(--aw) * var(--k) * 1px); height: calc(var(--ah) * var(--k) * 1px);
  left: calc((100% - var(--aw) * var(--k) * 1px) * var(--fx));
  top: calc((100% - var(--ah) * var(--k) * 1px) * var(--fy));
}
.canvas > .scene { width: 100%; height: 100%; object-fit: cover; }
/* Characters share the scene's pixel density: one art pixel is --k screen pixels for both. */
.canvas .sprite { position: absolute; width: calc(var(--sw) * var(--k) * 1px); height: calc(var(--sh) * var(--k) * 1px); max-width: none; transform: translate(-50%, -100%); }

.band-ui { position: relative; z-index: 2; width: 100%; max-width: 1360px; margin: 0 auto; padding: clamp(24px, 5vw, 64px) var(--gutter); display: grid; gap: 24px; align-content: center; }
/* Words stand in the scene, not in a box: a navy fade on their side of the band and a hard
   pixel shadow keep them readable (AA against the fade), and the art stays whole around them. */
.band[data-scrim]::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.band[data-scrim="left"]::before { background: linear-gradient(90deg, rgba(9, 13, 39, .94) 0, rgba(9, 13, 39, .86) 30%, rgba(9, 13, 39, .35) 50%, rgba(9, 13, 39, 0) 62%); }
.band[data-scrim="right"]::before { background: linear-gradient(270deg, rgba(9, 13, 39, .94) 0, rgba(9, 13, 39, .86) 30%, rgba(9, 13, 39, .35) 50%, rgba(9, 13, 39, 0) 62%); }
.window { max-width: 560px; text-shadow: 2px 2px 0 var(--ink); }
.window .muted { color: #cfd1f5; }
/* In-world UI (what the app would show) keeps a panel: the app's navy, translucent, with its pink edge. */
.panel { background: rgba(9, 13, 39, .88); border: 2px solid var(--pink); box-shadow: 6px 6px 0 rgba(0, 0, 0, .45); padding: clamp(16px, 2vw, 22px); max-width: 560px; }
.panel > :last-child { margin-bottom: 0; }
.window > :last-child { margin-bottom: 0; }

/* 1. hero */
.band-hero { min-height: clamp(600px, calc(100svh - var(--header)), 1020px); }
.hero-ui { grid-template-columns: minmax(0, 560px) 1fr minmax(0, 300px); align-items: end; align-content: end; }
.hero-copy { grid-column: 1; }
.phone { grid-column: 3; padding: 14px; max-width: 300px; align-self: end; }
.eyebrow { font: 400 11px/1.5 var(--display); color: var(--amber); margin-bottom: 16px; }
h1 { font: 400 clamp(22px, 2.7vw, 38px)/1.45 var(--display); margin-bottom: 20px; }
h1 .l2 { color: var(--pink); }
.lede { font-size: clamp(17px, 1.4vw, 19px); }
.status-note { color: var(--muted); font-size: 14px; border-left: 3px solid var(--amber); padding-left: 12px; }
.tagline { font: 400 10px/1.8 var(--display); color: var(--pink); margin: 12px 0 0; }
.lane { position: absolute; left: 0; right: 0; top: 70%; height: 0; pointer-events: none; }
.walker-cross { left: 0; top: 0; }
.phone-bar { display: flex; flex-wrap: wrap; gap: 4px; }
.phone-bar .tag { margin: 0; }
.who { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; }
.who-name { font: 400 13px/1 var(--display); }
.who-level { font: 400 11px/1 var(--display); color: var(--amber); }
.today { list-style: none; margin: 0; padding: 0; border: 2px solid var(--border); }
.today li { display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; font-size: 15px; line-height: 1.3; }
.today .t { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; }
.today .what small { display: block; font: 400 8px/1.6 var(--display); color: var(--mint); margin-top: 3px; }
.today .is-next { background: var(--pink-tint); box-shadow: inset 3px 0 0 var(--pink); }
.badge { font: 400 8px/1 var(--display); background: var(--amber); color: var(--ink); padding: 4px 5px; }
.commit { margin-top: 12px; border: 2px solid var(--border); padding: 2px 10px 10px; }
.commit-line { font-size: 14px; margin-bottom: 8px; line-height: 1.35; }
.bar { height: 8px; background: var(--raised); }
.bar span { display: block; height: 100%; background: var(--mint); }
.bar-lg { height: 14px; margin: 8px 0; }
.commit-count { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.motion-toggle {
  position: absolute; right: var(--gutter); top: 16px; z-index: 3; min-height: 44px; padding: 8px 12px; cursor: pointer;
  font: 400 15px/1.2 var(--body); color: var(--text); background: var(--ink); border: 2px solid var(--text);
}
.motion-toggle::before { content: "\275A\275A\00a0"; font-size: 11px; }
.motion-toggle[aria-pressed="true"]::before { content: "\25B6\00a0"; }
.motion-toggle-foot { position: static; }

/* the passer-by: crosses the pavement in whole-pixel steps, then comes round again */
@keyframes cross { from { transform: translate(-100%, -100%); } to { transform: translate(calc(var(--lane-w, 1400px)), -100%); } }
html[data-motion="on"] .walker-cross { animation: cross 22s steps(220) infinite; }
html[data-motion="off"] .walker-cross { left: 30%; }

/* entrance: the words are there already; this only settles them, once */
@keyframes settle { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
html[data-motion="on"][data-intro] .hero-copy { animation: settle 520ms var(--ease-in) both; }
html[data-motion="on"][data-intro] .phone { animation: settle 520ms var(--ease-in) 200ms both; }

/* 2. idea */
.idea-ui { grid-template-columns: minmax(0, 520px) minmax(0, 520px); justify-content: space-between; align-items: center; }
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 4px; }
.step-btn { width: 100%; display: grid; gap: 2px; text-align: left; cursor: pointer; background: transparent; text-shadow: inherit; color: var(--text); border: 0; padding: 10px 12px 10px 34px; font: inherit; position: relative; min-height: 44px; }
.step-btn strong { font-size: 18px; }
.step-btn span { color: var(--muted); font-size: 15px; }
.step-btn:hover { background: rgba(21, 27, 67, .7); }
.step-btn[aria-current="step"]::before { content: "\2665"; position: absolute; left: 10px; top: 12px; color: var(--pink); font-size: 16px; }
.step-btn[aria-current="step"] strong { color: var(--pink); }
.story-panel { justify-self: end; width: 100%; }
.panel-top { display: flex; flex-wrap: wrap; }
.story-stage { min-height: 330px; display: grid; }
.state { margin: 0; display: grid; align-content: center; justify-items: center; gap: 16px; padding: 8px 0; }
.state figcaption { color: var(--text); font: 400 10px/1.9 var(--display); max-width: 34em; }
.js .state { grid-area: 1 / 1; }
.js .state[hidden], .js .story-stage:not([data-ready]) .state:not(:first-child) { display: none; }
html[data-motion="on"] .js .state:not([hidden]) { animation: settle 240ms var(--ease) both; }
.log-card { width: min(100%, 340px); background: var(--panel); border: 2px solid var(--border); padding: 2px 18px 16px; }
.log-title { font-size: 21px; font-weight: 600; margin-bottom: 12px; }
.log-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 12px; }
.log-facts dt { font: 400 8px/1.6 var(--display); color: var(--muted); }
.log-facts dd { margin: 0; font-size: 16px; font-weight: 600; }
.stamp { font: 400 11px/1 var(--display); color: var(--mint); margin: 0; }
.map-peek { position: relative; width: min(100%, 342px); height: 240px; overflow: hidden; border: 2px solid var(--border); }
.map-peek img { position: absolute; width: 684px; height: 1026px; max-width: none; left: -330px; top: -520px; image-rendering: pixelated; }
.pin { position: absolute; left: 170px; top: 108px; width: 22px; height: 22px; border: 3px solid var(--amber); transform: translate(-50%, -50%); }
.look-pair { display: flex; align-items: center; gap: 24px; }
.look-pair .sprite { width: 123px; height: 231px; }
.arrow { color: var(--amber); font-size: 22px; }
.story-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 14px; }
.story-count { margin: 0 6px; font: 400 11px/1 var(--display); color: var(--muted); }

/* 3. world: the map stands on the right at a whole scale, the window reads beside it */
.band-world { min-height: clamp(640px, 130svh, 1540px); }
.world-ui { align-content: start; }
.world-window { position: sticky; top: calc(var(--header) + 24px); }
.district-line { font: 400 10px/1.9 var(--display); }
.places { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 6px; }
.place { width: 100%; display: grid; gap: 2px; text-align: left; cursor: pointer; padding: 10px 12px 10px 34px; min-height: 44px; background: rgba(9, 13, 39, .6); text-shadow: inherit; color: var(--text); border: 2px solid var(--border); font: inherit; position: relative; }
.place strong { font-size: 17px; }
.place span { color: var(--muted); font-size: 15px; display: none; }
.place[aria-pressed="true"] { border-color: var(--pink); }
.place[aria-pressed="true"] span { display: block; }
.place[aria-pressed="true"]::before { content: "\2665"; position: absolute; left: 10px; top: 11px; color: var(--pink); }
.hotspot { position: absolute; transform: translate(-50%, -50%); min-width: 64px; min-height: 64px; padding: 0; cursor: pointer; background: transparent; border: 0; display: grid; place-items: center; }
.hotspot span { font: 400 9px/1 var(--display); color: var(--ink); background: var(--amber); padding: 6px 7px; border: 2px solid var(--ink); }
.hotspot.is-on span { background: var(--pink); }
.hotspot.is-on span::before { content: "\2665\00a0"; }
@keyframes bob { 50% { transform: translateY(-3px); } }
html[data-motion="on"] .hotspot.is-on span { animation: bob 1.2s steps(2) infinite; }

/* 4. progress: the tab you pick is the room you stand in */
.progress-ui { grid-template-columns: minmax(0, 440px) 1fr minmax(0, 480px); align-items: center; }
.progress-ui > .window:first-child { grid-column: 1; }
.discipline { grid-column: 3; padding: 0; max-width: 480px; }
.tabs [role="tab"] { background: transparent; }
.notes { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.notes li { border-left: 3px solid var(--pink); padding-left: 14px; color: var(--muted); font-size: 16px; }
.notes strong { color: var(--text); display: block; }
.tabs { display: flex; flex-wrap: wrap; border-bottom: 2px solid var(--pink); }
.tabs [role="tab"] { flex: 1 1 auto; min-height: 48px; padding: 10px 12px; cursor: pointer; font: 600 15px/1.2 var(--body); color: var(--muted); background: var(--ink); border: 0; }
.tabs [role="tab"]:hover { color: var(--text); }
.tabs [role="tab"][aria-selected="true"] { background: var(--pink); color: var(--ink); }
.tabs [role="tab"][aria-selected="true"]::before { content: "\2665\00a0"; }
.app-panel { padding: 16px 20px 20px; }
.app-panel[hidden] { display: none; }
.big-read { font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.tech { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.tech li { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed var(--raised); padding-bottom: 6px; }
.state-tag { font: 400 8px/1 var(--display); color: var(--ink); background: var(--mint); padding: 4px 5px; }
.state-tag.live { background: var(--amber); }
.state-tag.unseen { background: transparent; color: var(--muted); border: 2px solid var(--border); }
.concept-box { border: 2px dashed var(--border); padding: 12px 12px 10px; margin-top: 14px; }
.stages { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 6px; font-weight: 600; }
.stages [aria-hidden] { color: var(--amber); font-size: 12px; }
.record { font-size: 18px; font-weight: 600; }
.record small { display: block; color: var(--muted); font-weight: 400; }
.next-commit { margin: 14px 0 0; border-top: 2px solid var(--raised); padding-top: 12px; color: var(--muted); }
.next-commit strong { color: var(--text); }

/* 5. the locker room lineup */
.character-ui { align-content: start; }
.lineup { position: absolute; z-index: 1; left: 44%; right: 2%; bottom: 13%; display: flex; justify-content: space-around; align-items: flex-end; gap: 4px; }
.lineup .sprite { --sw: 41; --sh: 77; width: calc(41px * var(--lk, var(--k))); height: calc(77px * var(--lk, var(--k))); }
.walker-btn { position: relative; min-width: 44px; min-height: 44px; display: grid; justify-items: center; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; }
.walker-btn .sprite { position: static; transform: none; max-width: none; }
.walker-btn:hover .sprite { filter: brightness(1.15); }
.walker-btn[aria-pressed="true"]::before {
  content: "\2665"; position: absolute; left: 50%; top: -30px; transform: translateX(-50%); color: var(--pink);
  font: 400 20px/1 var(--display); text-shadow: 2px 2px 0 var(--ink);
}
html[data-motion="on"] .walker-btn[aria-pressed="true"]::before { animation: bob 1s steps(2) infinite; }
.walker-btn:focus-visible { outline-offset: 6px; }
.look-says { font: 400 10px/1.9 var(--display); min-height: 3.8em; }

/* 5b. home */
.home-ui { justify-items: end; align-content: end; }
.home-ui .window, .closing-ui .window { max-width: 400px; }
.home-ui h2 { font-size: clamp(15px, 1.5vw, 19px); }

/* 6. Mack */
.merchants-ui { grid-template-columns: 1fr minmax(0, 440px); grid-template-rows: auto auto; align-content: stretch; }
.shop-side { grid-column: 2; grid-row: 1; justify-self: end; }
.dialogue-box { grid-column: 1 / -1; grid-row: 2; align-self: end; background: rgba(0, 0, 0, .9); border: 4px solid var(--text); box-shadow: 6px 6px 0 rgba(0, 0, 0, .45); padding: 18px 22px; max-width: 900px; width: 100%; justify-self: center; }
.dialogue { min-height: 124px; }
.dlg p { font: 400 12px/2 var(--display); color: var(--text); margin: 0 0 6px; }
.dlg .dir { font: italic 400 16px/1.5 var(--body); color: var(--muted); }
.dlg[hidden] { display: none; }
.topics { margin: 12px 0 0; }
.topics button { font-size: 14px; }
.merchant-about strong { color: var(--text); }
.merchant-about { color: var(--muted); }
.collection { margin-top: 14px; }
.collection ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.collection li { display: grid; justify-items: center; gap: 6px; background: var(--panel); padding: 12px 8px; font-size: 14px; color: var(--muted); }
.collection img { height: 64px; width: auto; }
.collection[hidden] { display: none; }

/* 7. faq */
.faq-ui { grid-template-columns: minmax(0, 440px) minmax(0, 620px); justify-content: space-between; align-items: start; }
.faq-ui .qa { max-width: 620px; padding-top: 8px; padding-bottom: 8px; }
.focus { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; }
.focus li { font: 400 10px/1.5 var(--display); padding: 6px 0; }
.focus li::before { content: "* "; color: var(--pink); }
.qa details + details { border-top: 2px solid var(--raised); }
.qa summary { list-style: none; cursor: pointer; min-height: 52px; padding: 12px 36px 12px 0; position: relative; font-size: 17px; font-weight: 600; display: flex; align-items: center; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 6px; font: 400 14px/1 var(--display); color: var(--pink); }
.qa details[open] summary::after { content: "\2212"; }
.qa details[open] summary::before { content: "\2665"; position: absolute; left: -22px; color: var(--pink); }
.qa details p { color: var(--muted); padding-bottom: 6px; }

/* 8. closing */
.closing-ui { justify-items: end; align-content: center; }

/* footer */
.site-footer { background: var(--ink); border-top: 4px solid var(--text); padding: 28px var(--gutter) 36px; }
.footer-row { max-width: 1360px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.footer-row .wordmark { margin-bottom: 10px; }
.footer-row .fine { margin: 0; }

/* ---- narrower screens: the place first, then its window --------------------------------- */
@media (max-width: 1100px) {
  .hero-ui, .idea-ui, .progress-ui, .merchants-ui, .faq-ui { grid-template-columns: minmax(0, 1fr); }
  .hero-copy, .phone, .progress-ui > .window:first-child, .discipline, .shop-side, .dialogue-box { grid-column: 1; grid-row: auto; }
  .window, .discipline, .phone { max-width: 640px; }
  .story-panel, .shop-side { justify-self: stretch; }
}
@media (max-width: 800px) {
  .band { display: block; min-height: 0; }
  .band-world { min-height: 0; }
  .band[data-scrim]::before { display: none; }
  .stage { position: relative; inset: auto; height: 340px; }
  .stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 72px; background: linear-gradient(rgba(9, 13, 39, 0), var(--canvas)); pointer-events: none; }
  .band-ui { padding-top: 8px; }
  .world-window { position: static; }
  .motion-toggle { top: 12px; right: 12px; }
  .lineup { left: 2%; right: 2%; bottom: 14%; --lk: 1; z-index: 2; }
  .home-ui, .closing-ui { justify-items: stretch; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .nav a { padding: 0 6px; font-size: 15px; }
  .nav a::before { display: none; }
  .look-pair .sprite { width: 82px; height: 154px; }
  .dlg p { font-size: 11px; }
}

/* Motion off (OS preference or the site control): no loops, no entrance, no smooth scroll. */
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation: none !important; transition: none !important; }
