/* ==========================================================================
   Orpheus: The Long Ascent — css/style.css
   Direction: the underworld as a place, not a level pack.
   Warm black stone, bronze edges, a single shaft of gold light, and type
   set like something carved. Nothing loads from the network — the display
   face is a system serif stack, the accents are CSS gradients.
   ========================================================================== */

:root {
  --pit-0: #04050a;
  --pit-1: #080a12;
  --pit-2: #0d1019;
  --pit-3: #141822;
  --stone: #1b202c;
  --stone-2: #232a38;
  --glass: rgba(13, 17, 26, .78);
  --glass-2: rgba(20, 26, 38, .6);
  --line: rgba(150, 175, 210, .14);
  --line-2: rgba(150, 175, 210, .26);
  --line-hot: rgba(232, 195, 122, .40);
  --ink: #eceff6;
  --ink-2: #b2bccd;
  --ink-3: #76839a;
  --gold: #e8c37a;
  --gold-hi: #ffeec0;
  --gold-lo: #a17c2c;
  --ember: #f0a45e;
  --shade: #b06cff;
  --mint: #8fe0c8;
  --rose: #ff7d8f;
  --shadow-1: 0 2px 10px rgba(0, 0, 0, .45);
  --shadow-2: 0 10px 32px rgba(0, 0, 0, .58);
  --shadow-3: 0 30px 80px rgba(0, 0, 0, .72);
  --r-1: 6px;
  --r-2: 12px;
  --r-3: 22px;
  --disp: "Cinzel", "Trajan Pro", "Copperplate", "Copperplate Gothic Bold",
          "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --body: "Optima", "Avenir Next", "Avenir", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--pit-0);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.playing { overscroll-behavior: none; }
h1, h2, h3 { font-family: var(--disp); font-weight: 400; letter-spacing: .015em; margin: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ------------------------------------------------------------------- shell */
/* The game owns exactly one viewport; the SEO prose lives below the fold.
 * `100svh` (small viewport) is preferred on phones because it does not
 * change as the URL bar slides — a resizing canvas mid-climb is a bug. */
.shell {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  display: block;
}
.stage-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: grab;
  background: var(--pit-0);
}
body.playing .stage-wrap { cursor: grabbing; }
#stage { position: absolute; left: 0; top: 0; display: block; }

/* the seam between the world and the page: a bronze hairline */
.stage-wrap::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-hot), transparent);
  pointer-events: none;
}

/* --------------------------------------------------------------------- hud */
.hud {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 4;
  animation: hudIn .55s var(--ease-out) both;
  padding: max(10px, env(safe-area-inset-top)) 12px max(10px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
}
@keyframes hudIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.hud-top { display: flex; align-items: flex-start; gap: 10px; }
.hud-left { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hud-chap {
  font-family: var(--mono); font-size: 10px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--gold); opacity: .85;
}
.hud-title {
  font-family: var(--disp); font-size: 17px; font-weight: 400; letter-spacing: .03em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .85); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 46vw;
}
.hud-act { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.hud-right { margin-left: auto; display: flex; align-items: center; gap: 8px; pointer-events: auto; }
.hud-time {
  font-family: var(--mono); font-size: 14px; color: var(--ink);
  padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(6, 9, 15, .62);
  backdrop-filter: blur(6px); transition: color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.hud-time.over { color: var(--ember); border-color: rgba(240, 164, 94, .5); }
.hud-par { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: .06em; }
.hud-btn {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(6, 9, 15, .62);
  display: grid; place-items: center; font-size: 11px; color: var(--ink-2);
  backdrop-filter: blur(6px);
  transition: transform .18s var(--ease-out), border-color .2s, color .2s, background .2s;
}
.hud-btn:hover { border-color: var(--line-hot); color: var(--gold-hi); background: rgba(18, 24, 36, .9); transform: translateY(-1px); }
.hud-btn:active { transform: scale(.92); }
.hud-btn.off { opacity: .42; }

/* the ascent meter — this is a climbing game, so the progress bar is a wall */
.hud-barwrap {
  margin-top: 8px; height: 3px; border-radius: 3px; overflow: hidden;
  background: rgba(255, 255, 255, .09);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6);
  max-width: 260px;
}
.hud-bar {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold-lo), var(--gold), var(--gold-hi));
  box-shadow: 0 0 12px rgba(232, 195, 122, .55);
  transition: width .16s linear;
}
.hud-bottom { margin-top: auto; display: flex; align-items: flex-end; gap: 10px; }
.hud-pips { display: flex; gap: 6px; padding-bottom: 3px; }
.hud-pips .pip {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid rgba(232, 195, 122, .45); background: rgba(6, 9, 15, .6);
  transition: all .3s var(--ease-out);
}
.hud-pips .pip.on {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo));
  border-color: transparent; box-shadow: 0 0 10px rgba(255, 238, 192, .7);
  animation: pipPop .45s var(--ease-out);
}
@keyframes pipPop { 0% { transform: scale(.4); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
.hud-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; pointer-events: auto; }
.hud-action {
  height: 34px; min-width: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(6, 9, 15, .68);
  color: var(--ink-2); font-size: 13px; letter-spacing: .06em;
  display: inline-flex; align-items: center; gap: 8px;
  backdrop-filter: blur(6px);
  transition: transform .18s var(--ease-out), border-color .2s, color .2s;
}
.hud-action:hover { border-color: var(--line-hot); color: var(--gold-hi); transform: translateY(-1px); }
.hud-action:active { transform: scale(.95); }
.hud-action.wide { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.hud-chords { display: inline-flex; gap: 4px; }
.hud-chords .chord {
  width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg);
  background: rgba(255, 255, 255, .14); transition: all .3s var(--ease-out);
}
.hud-chords .chord.on { background: var(--gold-hi); box-shadow: 0 0 8px rgba(255, 238, 192, .8); }

.hint {
  position: absolute; left: 50%; bottom: calc(64px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(460px, 88%);
  padding: 9px 16px; border-radius: 999px; text-align: center;
  font-size: 12px; letter-spacing: .03em; color: var(--ink-2);
  background: rgba(6, 9, 15, .8); border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  animation: hintIn .6s var(--ease-out) both;
}
@keyframes hintIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

.toast {
  position: absolute; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom));
  transform: translate(-50%, 10px);
  padding: 9px 18px; border-radius: 999px;
  font-size: 13px; color: var(--ink); white-space: nowrap;
  background: rgba(10, 14, 22, .94); border: 1px solid var(--line-hot);
  box-shadow: var(--shadow-2);
  opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ----------------------------------------------------------------- overlay */
.overlay {
  position: absolute; inset: 0; z-index: 8;
  display: none;
  padding: 16px;
  background:
    radial-gradient(900px 640px at 50% 8%, rgba(232, 195, 122, .10), transparent 62%),
    rgba(4, 5, 10, .88);
  backdrop-filter: blur(10px) saturate(.9);
  overflow-y: auto;
}
.overlay.show { display: flex; animation: ovIn .34s var(--ease-out) both; }
@keyframes ovIn { from { opacity: 0; } to { opacity: 1; } }

.panel {
  position: relative;
  width: min(560px, 100%);
  margin: auto;                 /* centres when it fits, scrolls when it does not */
  padding: 26px 26px 22px;
  border-radius: var(--r-3);
  border: 1px solid var(--line-2);
  background:
    radial-gradient(520px 320px at 50% -12%, rgba(232, 195, 122, .09), transparent 70%),
    linear-gradient(180deg, rgba(20, 26, 38, .96), rgba(9, 12, 19, .97));
  box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255, 255, 255, .05);
  animation: panelIn .46s var(--ease-out) both;
}
@keyframes panelIn { from { opacity: 0; transform: translateY(16px) scale(.975); } to { opacity: 1; transform: none; } }
.panel.wide { width: min(720px, 100%); }
.panel::before {
  content: "";
  position: absolute; left: 26px; right: 26px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-hot), transparent);
}
.eyebrow {
  font-family: var(--mono); font-size: 10px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--gold); opacity: .9;
  margin-bottom: 8px;
}
.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { flex: 1; font-size: 22px; }
.panel-note { margin-top: 12px; font-size: 12px; color: var(--ink-3); }

/* the logo: carved caps over the light shaft */
.game-logo {
  font-family: var(--disp); font-size: clamp(30px, 7vw, 46px); line-height: 1.02;
  letter-spacing: .04em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff6dc 8%, var(--gold) 48%, var(--gold-lo) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold);
  filter: drop-shadow(0 4px 22px rgba(232, 195, 122, .28));
  margin-bottom: 10px;
}
.game-logo em {
  display: block; font-style: normal; font-size: .46em;
  letter-spacing: .34em; margin-top: 4px; opacity: .82;
}
.tagline { font-size: 13.5px; color: var(--ink-2); font-style: italic; line-height: 1.6; }
h2 { font-size: 24px; }

/* ------------------------------------------------------------------ buttons */
.menu-btns { display: flex; flex-direction: column; gap: 9px; margin: 20px 0 12px; }
.menu-row { display: flex; gap: 9px; flex-wrap: wrap; }
.btn {
  position: relative; overflow: hidden;
  height: 46px; padding: 0 20px; border-radius: var(--r-2);
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .035);
  color: var(--ink-2); font-size: 14px; letter-spacing: .04em;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .18s var(--ease-out), border-color .2s, color .2s, background .2s, box-shadow .2s;
}
.btn:hover { border-color: var(--line-hot); color: var(--gold-hi); background: rgba(232, 195, 122, .07); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn.primary {
  border-color: transparent; color: #1c1405; font-weight: 600;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 52%, var(--gold-lo));
  box-shadow: 0 6px 22px rgba(232, 195, 122, .26), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn.primary:hover { color: #140e02; box-shadow: 0 10px 30px rgba(232, 195, 122, .38); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-3); height: 38px; }
.btn.ghost:hover { color: var(--gold-hi); background: rgba(255, 255, 255, .04); }
.btn.close { height: 32px; padding: 0 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
/* the sheen that makes a premium button feel alive */
.btn.primary::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg);
}
.btn.primary:hover::after { animation: sheen .8s var(--ease-out); }
@keyframes sheen { from { left: -60%; } to { left: 130%; } }
.menu-progress { margin-top: 12px; font-size: 11.5px; letter-spacing: .08em; color: var(--ink-3); }

/* ------------------------------------------------------------ chapter grid */
.chapter-grid {
  display: grid; gap: 9px;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
}
.chap {
  position: relative;
  padding: 11px 6px 8px; border-radius: var(--r-2);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  transition: transform .2s var(--ease-out), border-color .2s, background .2s, box-shadow .2s;
}
.chap:hover:not(.locked) {
  border-color: var(--line-hot); background: rgba(232, 195, 122, .08);
  transform: translateY(-3px); box-shadow: var(--shadow-1);
}
.chap-n { font-family: var(--disp); font-size: 19px; line-height: 1; }
.chap-stars { display: inline-flex; gap: 2px; }
.chap-stars .star { font-size: 10px; color: rgba(255, 255, 255, .16); }
.chap-stars .star.on {
  color: var(--gold);
  text-shadow: 0 0 8px rgba(232, 195, 122, .65);
  animation: pipPop .4s var(--ease-out);
}
.chap.locked { opacity: .32; cursor: not-allowed; }
.chap.locked::after {
  content: "✦"; position: absolute; inset: 0;
  display: grid; place-items: center; font-size: 17px; color: var(--ink-3);
  background: rgba(4, 5, 10, .55); border-radius: var(--r-2);
}

/* -------------------------------------------------------------------- story */
.panel.story { width: min(620px, 100%); }
.story-body { margin: 14px 0 20px; font-size: 14.5px; line-height: 1.72; color: var(--ink-2); }
.story-body p { margin-bottom: 11px; }
.story-act { padding-left: 14px; border-left: 2px solid rgba(232, 195, 122, .3); }
.story-act p:first-child::first-letter {
  font-family: var(--disp); font-size: 2.7em; float: left;
  line-height: .84; padding: 4px 8px 0 0; color: var(--gold);
}
.story-outro { font-style: italic; color: var(--ink-3); }
.story-line {
  padding: 12px 16px; border-radius: var(--r-2);
  background: linear-gradient(180deg, rgba(232, 195, 122, .08), rgba(232, 195, 122, 0));
  border-left: 2px solid var(--gold); color: var(--gold-hi);
}
.story-brief { font-size: 13px; color: var(--ink-3); }
.story-brief strong { color: var(--gold-hi); font-weight: 600; }

/* ---------------------------------------------------------------------- win */
.win-stars { display: flex; gap: 10px; margin: 14px 0 6px; }
.win-stars .star {
  font-size: 34px; line-height: 1; color: rgba(255, 255, 255, .12);
  transition: transform .3s var(--ease-out);
}
.win-stars .star.on {
  color: var(--gold);
  text-shadow: 0 0 24px rgba(232, 195, 122, .7), 0 0 4px rgba(255, 238, 192, .9);
  animation: starPop .6s var(--ease-out) both;
}
.win-stars .star.on:nth-child(1) { animation-delay: .05s; }
.win-stars .star.on:nth-child(2) { animation-delay: .22s; }
.win-stars .star.on:nth-child(3) { animation-delay: .39s; }
@keyframes starPop {
  0% { opacity: 0; transform: scale(.2) rotate(-40deg); }
  55% { opacity: 1; transform: scale(1.3) rotate(8deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
.win-time { font-family: var(--mono); font-size: 13px; color: var(--ink-2); letter-spacing: .06em; }
.win-frags { font-size: 12.5px; color: var(--gold); letter-spacing: .06em; margin-top: 2px; }
.win-notes { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.win-notes li {
  font-size: 13px; color: var(--ink-2); padding-left: 20px; position: relative;
  animation: noteIn .5s var(--ease-out) both;
}
.win-notes li:nth-child(2) { animation-delay: .1s; }
.win-notes li:nth-child(3) { animation-delay: .2s; }
.win-notes li::before {
  content: ""; position: absolute; left: 4px; top: 6px;
  width: 6px; height: 6px; transform: rotate(45deg);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo));
}
@keyframes noteIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ how to */
.howto { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.howto li { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.howto strong { color: var(--gold-hi); }

/* ----------------------------------------------------------------- records */
.records { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 52vh; overflow-y: auto; }
.records li {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: var(--r-1);
  font-size: 13.5px; color: var(--ink-2);
  border-bottom: 1px solid rgba(150, 175, 210, .07);
}
.records li > span:first-child { flex: 0 0 116px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.records li > span:last-child { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
.records li em { font-family: var(--mono); font-style: normal; font-size: 12.5px; color: var(--gold-hi); }
.records .star { font-size: 11px; color: rgba(255, 255, 255, .16); }
.records .star.on { color: var(--gold); }
.records li.empty { color: var(--ink-3); font-style: italic; justify-content: center; border: 0; }

/* --------------------------------------------------------- SEO prose below */
.about {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 58px 22px 96px;
  background:
    radial-gradient(700px 420px at 50% 0%, rgba(232, 195, 122, .05), transparent 65%),
    var(--pit-0);
}
.crumbs { font-size: 12px; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 26px; }
.crumbs a { color: var(--ink-3); text-decoration: none; border-bottom: 1px solid var(--line); }
.crumbs a:hover { color: var(--gold); border-color: var(--line-hot); }
.about h1 {
  font-size: clamp(24px, 4.2vw, 34px); line-height: 1.22; margin-bottom: 18px;
  letter-spacing: .01em;
}
.about h2 {
  font-size: clamp(18px, 2.6vw, 22px); margin: 40px 0 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
  color: var(--gold-hi);
}
.about h3 { font-size: 15px; margin: 22px 0 6px; color: var(--gold); letter-spacing: .02em; }
.lede { font-size: 16px; line-height: 1.72; color: var(--ink-2); }
.lede em { color: var(--gold-hi); font-style: italic; }
.about p { margin-bottom: 12px; color: var(--ink-2); line-height: 1.72; }
.about strong { color: var(--ink); font-weight: 600; }
.about em { color: var(--gold); font-style: italic; }
.about section { margin-bottom: 8px; }
.about .howto { padding-left: 22px; }
.about .howto li { font-size: 14.5px; }
table { width: 100%; border-collapse: collapse; margin: 16px 0 20px; font-size: 13.5px; }
caption { text-align: left; font-size: 12px; color: var(--ink-3); padding-bottom: 6px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); border-bottom-color: var(--line-hot); white-space: nowrap;
}
tbody tr { transition: background .2s; }
tbody tr:hover { background: rgba(255, 255, 255, .022); }
td:first-child { color: var(--ink); }
.built-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.built-list li {
  font-size: 14px; color: var(--ink-2); padding-left: 22px; position: relative;
}
.built-list li::before {
  content: ""; position: absolute; left: 4px; top: 8px;
  width: 6px; height: 6px; transform: rotate(45deg);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo));
}
.faq h3 { margin-top: 26px; }
.faq p { font-size: 14.5px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 720px) {
  .shell { min-height: 420px; }
  .panel { padding: 22px 18px 18px; border-radius: var(--r-2); }
  .panel::before { left: 18px; right: 18px; }
  .overlay { padding: 12px; align-items: center; }
  .chapter-grid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 7px; }
  .chap { padding: 9px 4px 7px; }
  .chap-n { font-size: 16px; }
  .hud-title { font-size: 15px; max-width: 40vw; }
  .hud-par { display: none; }
  .menu-row .btn { flex: 1 1 auto; }
  .win-stars .star { font-size: 28px; }
  .about { padding: 42px 18px 72px; }
  /* the data tables are the only thing on the page that can outrun a phone:
   * a nowrap header in a four-column table is wider than 320px, and the
   * resulting document-level overflow scrolls the whole game page sideways. */
  .about table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .about th, .about td { white-space: normal; overflow-wrap: anywhere; }
  table { font-size: 12.5px; }
  th, td { padding: 8px 9px; }
}
@media (max-width: 420px) {
  .hud-act { display: none; }
  .btn { height: 44px; font-size: 13.5px; }
  .records li > span:first-child { flex-basis: 92px; }
}
/* landscape phones: the play column is height-limited, so give it everything */
@media (max-height: 480px) and (orientation: landscape) {
  .hud-top { padding-bottom: 4px; }
  .hint { bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .shell { height: auto; min-height: 0; }
  .stage-wrap { height: 320px; }
  .overlay, .hud { display: none !important; }
}
