@font-face { font-family: "Holtwood One SC"; src: url("../fonts/holtwood-one-sc-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Zilla Slab"; src: url("../fonts/zilla-slab-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Zilla Slab"; src: url("../fonts/zilla-slab-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Zilla Slab"; src: url("../fonts/zilla-slab-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #21170F;
  --ink-2: #2E2117;
  --ink-3: #4A3728;
  --paper: #EFE3C6;
  --paper-2: #E3D2AA;
  --paper-3: #CDB98D;
  --cream: #F4EBD3;
  --rust: #B8501F;
  --rust-ink: #9A3F14;
  --brass: #E0B552;
  --brass-2: #9C7426;
  --gold: #F2C14E;
  --teal: #12C2B6;
  --teal-2: #0B7F7A;
  --alarm: #E0382A;
  --night: #0B1230;
  --top-h: 60px;
  --display: "Holtwood One SC", Georgia, serif;
  --text: "Zilla Slab", Georgia, serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --outline: 0 .05em 0 var(--ink), .04em .04em 0 var(--ink), -.04em .04em 0 var(--ink), .04em -.04em 0 var(--ink), -.04em -.04em 0 var(--ink), 0 -.05em 0 var(--ink), .05em 0 0 var(--ink), -.05em 0 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); scroll-padding-top: var(--top-h); overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  color: var(--cream);
  background: var(--ink);
  font: 400 1.125rem/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: .01em; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.kicker { font: 700 .82rem/1.2 var(--text); letter-spacing: .18em; text-transform: uppercase; color: var(--brass); margin-bottom: .9rem; }

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; border-radius: 8px;
  background: var(--cream); color: var(--ink); font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 1rem; }

.top {
  position: fixed; inset: 0 0 auto; z-index: 50; height: calc(var(--top-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(1rem, env(safe-area-inset-right)) 0 max(1rem, env(safe-area-inset-left));
  display: flex; align-items: center; gap: 1rem;
  transition: background-color .4s, box-shadow .4s, backdrop-filter .4s;
}
.top.is-solid { background: #1A120C; box-shadow: 0 1px 0 rgba(224, 181, 82, .18); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; font: 400 1rem/1 var(--display); letter-spacing: .02em; text-shadow: var(--outline); }
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 2px var(--ink); }
.battery { display: flex; align-items: center; gap: .45rem; margin-right: auto; opacity: .95; }
.battery-cell { position: relative; width: 34px; height: 16px; border: 2px solid var(--cream); border-radius: 4px; padding: 2px; box-shadow: 0 0 0 1.5px var(--ink); }
.battery-cell::after { content: ""; position: absolute; right: -6px; top: 3px; width: 3px; height: 6px; border-radius: 0 2px 2px 0; background: var(--cream); }
.battery-fill { display: block; height: 100%; width: calc(var(--charge, 1) * 100%); border-radius: 1px; background: var(--battery, var(--teal)); transition: background-color .4s; }
.battery-num { font: 700 .85rem/1 var(--text); font-variant-numeric: tabular-nums; text-shadow: var(--outline); min-width: 3.2em; }
.battery.is-low .battery-fill { animation: blink 1s steps(2, jump-none) infinite; }
.top-nav { display: flex; align-items: center; gap: .4rem; }
.brand span, .sound-label, .lang-long, .top-cta { display: none; }
.sound { padding: 0; width: 40px; justify-content: center; }
.sound, .lang {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 .8rem; border-radius: 999px;
  border: 1.5px solid rgba(244, 235, 211, .3); background: rgba(26, 18, 12, .74); color: var(--cream); cursor: pointer;
  font: 600 .9rem/1 var(--text); text-decoration: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: border-color .2s, background-color .2s;
}
.sound:hover, .lang:hover { border-color: var(--brass); }
.sound svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sound .sound-cone { fill: currentColor; }
.sound .sound-waves { display: none; }
.sound[aria-pressed="true"] .sound-waves { display: inline; }
.sound[aria-pressed="true"] .sound-off { display: none; }
.sound[aria-pressed="true"] { border-color: var(--teal); }
.top-cta {
  align-items: center; min-height: 40px; padding: 0 1.1rem; border-radius: 999px; text-decoration: none;
  font: 400 .85rem/1 var(--display); letter-spacing: .03em; color: var(--ink);
  background: linear-gradient(#FFE29A, var(--brass)); box-shadow: inset 0 -2px 0 var(--brass-2), 0 0 0 2px var(--ink);
  transition: transform .2s var(--ease-spring);
}
.top-cta:hover { transform: translateY(-1px) scale(1.03); }
.top-cta { opacity: 0; pointer-events: none; translate: 0 -6px; transition: opacity .35s, translate .35s var(--ease-out), transform .2s var(--ease-spring); }
.top.is-solid .top-cta { opacity: 1; pointer-events: auto; translate: 0 0; }
.battery.is-charging .battery-cell { box-shadow: 0 0 0 1.5px var(--ink), 0 0 14px 4px rgba(18, 194, 182, .75); }
.battery.is-full .battery-cell { animation: full 1.2s var(--ease-out); }
@keyframes full { 0% { box-shadow: 0 0 0 1.5px var(--ink), 0 0 26px 10px rgba(18, 194, 182, .9); transform: scale(1.25); } 100% { box-shadow: 0 0 0 1.5px var(--ink); transform: none; } }

.cylinder { position: fixed; right: max(18px, env(safe-area-inset-right)); top: 50%; z-index: 40; width: 92px; height: 92px; margin-top: -46px; display: none; }
.cylinder::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #C6CFD4, #8C979E 45%, #5E676E 80%);
  box-shadow: 0 0 0 3px var(--ink), inset 0 0 0 5px rgba(255, 255, 255, .18), 0 10px 26px rgba(0, 0, 0, .45);
}
.cylinder::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #FFE29A, var(--brass-2)); box-shadow: 0 0 0 2.5px var(--ink); }
.cylinder ol { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; transform: rotate(var(--spin, 0deg)); transition: transform .9s var(--ease-spring); }
.cylinder li { position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px; transform: rotate(calc(var(--i) * 60deg)) translateY(-29px); }
.cylinder li:nth-child(1) { --i: 0; } .cylinder li:nth-child(2) { --i: 1; } .cylinder li:nth-child(3) { --i: 2; }
.cylinder li:nth-child(4) { --i: 3; } .cylinder li:nth-child(5) { --i: 4; } .cylinder li:nth-child(6) { --i: 5; }
.cylinder a {
  position: relative; display: block; width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #FFE7A8, var(--brass) 45%, var(--brass-2)); box-shadow: 0 0 0 2.5px var(--ink), inset 0 0 0 4px rgba(156, 116, 38, .9);
  transition: background .3s, box-shadow .3s, transform .3s var(--ease-spring);
}
.cylinder a::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #B87A3A; box-shadow: 0 0 0 1.5px rgba(33, 23, 15, .6); }
.cylinder a.is-spent { background: radial-gradient(circle at 55% 60%, #0B0B0D, #2C3036); }
.cylinder a.is-spent::after { display: none; }
.cylinder a.is-here { box-shadow: 0 0 0 2.5px var(--ink), 0 0 0 5px var(--teal), 0 0 16px 4px rgba(18, 194, 182, .55); transform: scale(1.12); }
.cylinder a span {
  position: absolute; right: calc(100% + 16px); top: 50%; white-space: nowrap; pointer-events: none;
  padding: .3rem .6rem; border-radius: 6px; background: var(--ink); color: var(--cream); font: 600 .8rem/1 var(--text);
  opacity: 0; transform: translate(6px, -50%) rotate(calc(var(--i) * -60deg - var(--spin, 0deg))); transition: opacity .2s, transform .2s;
}
.cylinder a:hover span, .cylinder a:focus-visible span { opacity: 1; }
@media (min-width: 1520px) and (min-height: 600px) { .js .cylinder { display: block; } }

.hero { position: relative; background: var(--ink); --sign: clamp(1.75rem, 8.6vw, 4.4rem); }
.hero-stage { position: relative; height: 100vh; height: 100svh; min-height: 540px; overflow: hidden; isolation: isolate; }
.scene {
  position: absolute; inset: 0; overflow: hidden; contain: strict;
  background: linear-gradient(#2F8FB0, #7CC3C9 48%, #F8E6BB 74%, #EACB92 75%, #B98C58);
}
.scene img, .scene > canvas { position: absolute; left: 0; top: 0; max-width: none; user-select: none; -webkit-user-select: none; pointer-events: none; }
.scene img { transform-origin: 0 0; will-change: transform; }
.scene > canvas { width: 100%; height: 100%; }
.no-js .scene img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
.js .scene img { opacity: 0; transition: opacity .9s ease; }
.js .scene.is-placed img { opacity: 1; }
.scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(20, 12, 6, .35)); }

.hero-copy {
  position: absolute; z-index: 3; left: 0; right: 0; top: calc(var(--top-h) + env(safe-area-inset-top) + .4rem);
  display: flex; flex-direction: column; align-items: center; gap: .65rem; pointer-events: none; text-align: center;
}
.sign-rig { position: relative; transform-origin: 50% -60vh; animation: sway 7s ease-in-out infinite alternate; }
.js .sign-rig { animation: drop 1.3s .25s var(--ease-spring) both, sway 7s 1.6s ease-in-out infinite alternate; }
.chain {
  position: absolute; bottom: calc(100% - .3rem); width: 10px; height: 60vh;
  background: radial-gradient(ellipse 3.4px 5.6px at 50% 50%, transparent 52%, #2B2622 56%, #8E8A84 64%, #4A4440 80%, transparent 86%) 0 0 / 10px 13px repeat-y;
}
.chain-l { left: 14%; }
.chain-r { right: 14%; }
.sign {
  position: relative; display: inline-block; padding: .32em .62em .24em;
  font-size: var(--sign); line-height: 1; letter-spacing: .015em; color: var(--gold);
  background: linear-gradient(175deg, #2AA79D, #17847D 55%, #106A64);
  border: .065em solid var(--ink); border-radius: .16em;
  box-shadow: inset 0 0 0 .055em #6FD6CB, inset 0 .1em 0 .055em rgba(255, 255, 255, .18), inset 0 -.14em 0 rgba(0, 0, 0, .22), 0 .12em 0 var(--ink), 0 .45em 1.1em rgba(15, 8, 3, .45);
}
.sign::before, .sign::after {
  content: ""; position: absolute; top: 50%; width: .15em; height: .15em; margin-top: -.075em; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #E6EEF0, #7C878E); box-shadow: 0 0 0 .025em var(--ink);
}
.sign::before { left: .2em; }
.sign::after { right: .2em; }
.sign-word { position: relative; display: inline-block; color: var(--ink); -webkit-text-stroke: .16em var(--ink); text-shadow: 0 .1em 0 var(--ink); }
.sign-word::after {
  content: attr(data-text) / ""; position: absolute; left: 0; top: 0; -webkit-text-stroke: 0; text-shadow: none; color: transparent;
  background: linear-gradient(#FFF1BF 14%, #F6C95A 50%, #D9952E 82%); -webkit-background-clip: text; background-clip: text;
}
.tagline {
  display: inline-flex; align-items: center; gap: .55rem; padding: .42rem .85rem .42rem 1rem; border-radius: 6px;
  font: 700 clamp(.98rem, 3.8vw, 1.3rem)/1.1 var(--text); color: var(--cream);
  background: linear-gradient(#6B4A33, #4E3626); border: 2.5px solid var(--ink);
  box-shadow: inset 0 0 0 2px rgba(255, 220, 170, .14), 0 .2rem 0 var(--ink), 0 .6rem 1.2rem rgba(10, 5, 2, .35);
}
.js .tagline { animation: rise .9s 1.1s var(--ease-out) both; }
.low { position: relative; width: 26px; height: 13px; border: 2px solid var(--cream); border-radius: 3px; padding: 1.5px; }
.low::after { content: ""; position: absolute; right: -5px; top: 2.5px; width: 2.5px; height: 4px; background: var(--cream); border-radius: 0 1px 1px 0; }
.low span { display: block; width: 26%; height: 100%; border-radius: 1px; background: var(--alarm); animation: blink 1.1s steps(2, jump-none) infinite; }

.hero-more { position: relative; z-index: 2; padding: 2.2rem 1.25rem 2.9rem; text-align: center; background: repeating-linear-gradient(97deg, rgba(0, 0, 0, .05) 0 3px, transparent 3px 9px), linear-gradient(#5E3D27, #4A2F1E 60%, #3E2718); box-shadow: inset 0 10px 18px -8px rgba(0, 0, 0, .55); }
.hero-more::before { content: ""; position: absolute; inset: .7rem .7rem 1.4rem; border: 2px dashed rgba(240, 200, 140, .32); border-radius: 12px; pointer-events: none; }
.hero-more .lede { max-width: 30rem; margin: 0 auto 1.4rem; font-size: 1.2rem; }
.stores { display: grid; grid-template-columns: minmax(0, 17rem); justify-content: center; gap: .65rem; }
.store {
  position: relative; display: flex; align-items: center; gap: .7rem; min-height: 58px; padding: .55rem 1.1rem .55rem .9rem;
  border-radius: 14px; text-decoration: none; color: var(--cream); background: linear-gradient(#2E2117, #1A120C);
  border: 2px solid rgba(224, 181, 82, .65); box-shadow: inset 0 1px 0 rgba(255, 230, 170, .14), 0 .3rem 0 #0D0805, 0 .7rem 1.4rem rgba(0, 0, 0, .35);
  transition: transform .25s var(--ease-spring), border-color .2s;
}
a.store:hover { transform: translateY(-2px); border-color: var(--brass); }
.store svg { width: 26px; height: 26px; flex: none; fill: var(--brass); stroke: var(--brass); stroke-width: 1.4; stroke-linecap: round; }
.store svg rect { fill: none; stroke-width: 1.8; }
.store > span { display: flex; flex-direction: column; align-items: flex-start; white-space: nowrap; font: 400 1.08rem/1.05 var(--display); letter-spacing: .01em; }
.store small { font: 700 .68rem/1.2 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: .2rem; }
.store.is-soon { border-style: dashed; border-color: rgba(224, 181, 82, .5); }
.store.is-soon small { color: #F0A35C; }
@media (min-width: 440px) { .stores { grid-template-columns: repeat(2, minmax(0, 13.5rem)); } }

.duel-hud { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.holster {
  position: absolute; left: 50%; bottom: 30px; width: 96px; height: 96px; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer; pointer-events: auto; touch-action: none; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.holster:focus-visible { outline-offset: 6px; }
.no-js .holster { display: none; }
.duel-hint {
  position: absolute; left: var(--hx, 50%); top: var(--hy, 80%); transform: translate(-50%, -100%) translateY(6px); white-space: nowrap;
  padding: .4rem .9rem; border-radius: 999px; background: rgba(26, 18, 12, .78); box-shadow: 0 0 0 1.5px rgba(224, 181, 82, .45);
  font: 700 clamp(1rem, 4vw, 1.2rem)/1.1 var(--text); color: var(--cream);
  opacity: 0; transition: opacity .35s, transform .35s var(--ease-out);
}
.duel-hint.is-on { opacity: 1; transform: translate(-50%, -100%); }
.duel-hint.is-side { transform: translate(0, -50%) translateX(-6px); }
.duel-hint.is-side.is-on { transform: translate(0, -50%); }
.duel-say .ghost { visibility: hidden; }
.duel-banner {
  position: absolute; left: 50%; top: 66%; translate: -50% -50%; white-space: nowrap; pointer-events: none;
  font: 400 clamp(3rem, 15vw, 7.5rem)/1 var(--display); letter-spacing: .02em; color: var(--alarm);
  text-shadow: 0 .045em 0 var(--ink), .035em .035em 0 var(--ink), -.035em .035em 0 var(--ink), .035em -.035em 0 var(--ink), -.035em -.035em 0 var(--ink), 0 -.045em 0 var(--ink), .045em 0 0 var(--ink), -.045em 0 0 var(--ink), 0 .1em 0 var(--ink), 0 .18em .3em rgba(0, 0, 0, .45);
  opacity: 0;
}
.duel-banner.is-draw { animation: slam 1.1s var(--ease-out) both; }
.duel-banner.is-early, .duel-banner.is-slow { color: var(--cream); font-size: clamp(2.2rem, 10vw, 4.6rem); animation: slam 1.25s var(--ease-out) both; }
.duel-banner.is-won { color: var(--gold); font-size: clamp(2rem, 9vw, 4.4rem); animation: slam 1.6s var(--ease-out) both; }
.duel-banner.is-lost { color: var(--alarm); font-size: clamp(2rem, 9vw, 4.4rem); animation: slam 1.6s var(--ease-out) both; }
.duel-pop {
  position: absolute; translate: -50% -50%; white-space: nowrap; pointer-events: none; padding: .3rem .55rem .25rem; rotate: -4deg; border-radius: 4px;
  font: 400 clamp(.85rem, 3vw, 1.1rem)/1 var(--display); color: var(--ink); background: #FFF6DC; box-shadow: 0 0 0 2px var(--ink), 0 .3rem .7rem rgba(0, 0, 0, .35);
  animation: pop 1.3s var(--ease-out) forwards;
}
.duel-pop.is-time { rotate: 0deg; color: var(--teal); background: rgba(26, 18, 12, .85); box-shadow: 0 0 0 2px rgba(18, 194, 182, .6); font-size: clamp(1.1rem, 4vw, 1.5rem); }
.duel-pop.is-ping { rotate: 0deg; padding: .15rem .4rem; font: 700 .85rem/1 var(--text); color: #2E3A40; background: #DDE4E6; }
.hero.is-fight .scroll-cue, .hero.is-over .scroll-cue { opacity: 0; pointer-events: none; }
.result-stamp { position: absolute; right: -.6rem; top: -.9rem; padding: .3rem .6rem .25rem; rotate: 9deg; border: 3px double #B42A1E; border-radius: 6px; background: rgba(247, 237, 211, .92); font: 400 .78rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: #B42A1E; animation: stampIn .5s .35s var(--ease-out) both; }
.duel-result.is-lost .result-stamp { color: #1F2A44; border-color: #1F2A44; }
@keyframes stampIn { from { opacity: 0; scale: 2.2; } to { opacity: 1; scale: 1; } }
.hero.is-fight .scene { cursor: none; touch-action: none; }
.duel-say {
  position: absolute; left: var(--bx, 50%); top: var(--by, 30%); max-width: min(15rem, 70vw); padding: .55rem .8rem; border-radius: 14px;
  translate: 26px calc(-100% + 4px); font: 600 clamp(.9rem, 3.6vw, 1.02rem)/1.3 var(--text); color: var(--ink); background: #FFFBEF;
  box-shadow: 0 0 0 2.5px var(--ink), 0 .4rem 1rem rgba(0, 0, 0, .3); opacity: 0; scale: .7; transform-origin: 0 100%;
  transition: opacity .2s, scale .35s var(--ease-spring); pointer-events: none; text-align: center;
}
.duel-say::after { content: ""; position: absolute; left: 6px; bottom: -8px; width: 16px; height: 16px; rotate: 45deg; skew: -12deg -12deg; background: #FFFBEF; box-shadow: 2.5px 2.5px 0 0 var(--ink); }
.duel-say.is-left { translate: calc(-100% - 30px) calc(-100% + 4px); transform-origin: 100% 100%; }
.duel-say.is-left::after { left: auto; right: 6px; }
.duel-say.is-on { opacity: 1; scale: 1; }
.duel-say:empty { visibility: hidden; }
.result-best { margin-top: .5rem; font: 700 .95rem/1.3 var(--text); color: var(--brass-2); }
.hero-line { margin-top: .1rem; font: 700 clamp(.95rem, 3.9vw, 1.1rem)/1.3 var(--text); color: var(--cream); text-shadow: var(--outline), 0 .1em .6em rgba(0, 0, 0, .5); }
.hero.is-fight .hero-copy, .hero.is-over .hero-copy { opacity: .0; transition: opacity .5s; }
.hero-copy { transition: opacity .6s; }
.duel-result {
  position: absolute; left: 50%; top: 46%; translate: -50% -50%; width: min(22rem, 100% - 2.4rem); pointer-events: auto; text-align: center;
  padding: 1.4rem 1.3rem 1.3rem; color: var(--ink); border-radius: 8px;
  background: radial-gradient(120% 90% at 50% 40%, #F7EDD3, #E9D9B2 70%, #D9C394);
  box-shadow: 0 0 0 3px var(--ink), 0 1.2rem 2.4rem rgba(0, 0, 0, .45);
  animation: card .6s var(--ease-spring) both;
}
.duel-result[hidden] { display: none; }
.result-kicker { font: 700 .75rem/1 var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--rust-ink); }
.result-title { margin: .5rem 0 .6rem; font: 400 1.7rem/1.05 var(--display); }
.result-time { font: 700 1.2rem/1.3 var(--text); color: #0A6863; font-variant-numeric: tabular-nums; }
.duel-result.is-lost .result-time { color: var(--rust-ink); }
.result-parts { margin-top: .2rem; font-size: .98rem; color: var(--ink-3); }
.result-actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.1rem; }
.again, .result-get {
  min-height: 46px; padding: 0 1.1rem; border-radius: 999px; display: inline-flex; align-items: center; cursor: pointer; text-decoration: none;
  font: 400 .9rem/1 var(--display); letter-spacing: .02em;
}
.again { border: 0; color: var(--cream); background: var(--ink); box-shadow: inset 0 -3px 0 #000; }
.result-get { color: var(--ink); background: linear-gradient(#FFE29A, var(--brass)); box-shadow: inset 0 -3px 0 var(--brass-2), 0 0 0 2px var(--ink); }
.scroll-cue {
  position: absolute; z-index: 3; left: 50%; bottom: 1.2rem; translate: -50% 0; display: none; align-items: center; gap: .5rem; text-decoration: none;
  font: 700 .8rem/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--cream); text-shadow: var(--outline);
}
.scroll-cue::after { content: ""; width: 10px; height: 10px; border-right: 2.5px solid; border-bottom: 2.5px solid; rotate: 45deg; translate: 0 -3px; animation: nudge 1.6s ease-in-out infinite; }

.how { position: relative; height: 330vh; color: var(--ink); background: var(--paper); }
.how::before, .parts::before {
  content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: -13px; height: 14px; background: var(--paper);
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 26px 100% repeat-x;
  mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 26px 100% repeat-x;
}
.parts::before { background: #0F2A31; }
.how-grid { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: .9rem; padding: calc(var(--top-h) + .9rem) 0 1.4rem; }
.how .kicker { color: var(--rust-ink); margin-bottom: .4rem; }
.how h2 { font-size: clamp(1.55rem, 6.6vw, 3.6rem); max-width: 16ch; }
.phone { display: flex; justify-content: center; min-height: 0; margin: 0; }
.phone-frame {
  position: relative; height: 100%; aspect-ratio: 9 / 16; max-width: 100%; border-radius: 26px; overflow: hidden; background: #2F8FB0; isolation: isolate;
  box-shadow: 0 0 0 8px #15100B, 0 0 0 10px #4A3A2C, 0 1.6rem 2.6rem rgba(40, 25, 10, .45);
}
.phone-frame::before { content: ""; position: absolute; z-index: 5; left: 50%; top: 8px; width: 30%; height: 14px; translate: -50% 0; border-radius: 999px; background: #15100B; }
.phone-frame::after { content: ""; position: absolute; z-index: 5; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .14), transparent 32%); }
.phone-frame .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.phone-frame .shot.is-on { opacity: 1; }
.how.has-demo .shot, .no-js .demo { display: none; }
.demo::after { display: none; }
.track { position: relative; }
.steps { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; display: grid; }
.step { grid-area: 1 / 1; position: relative; z-index: 1; display: grid; grid-template-columns: 2.8rem 1fr; column-gap: .9rem; align-content: start; opacity: 0; translate: 0 14px; transition: opacity .45s, translate .6s var(--ease-out); }
.step.is-on { opacity: 1; translate: 0 0; }
.step-n {
  grid-row: span 2; width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center;
  font: 400 1.1rem/1 var(--display); color: var(--ink); background: radial-gradient(circle at 38% 32%, #FFE7A8, var(--brass) 50%, var(--brass-2)); box-shadow: 0 0 0 3px var(--ink), inset 0 0 0 5px rgba(156, 116, 38, .7);
  transition: transform .6s var(--ease-spring);
}
.step.is-on .step-n { transform: rotate(360deg) scale(1.06); }
.step h3 { font-size: clamp(1.25rem, 5vw, 2.2rem); margin: .15rem 0 .35rem; }
.step p { max-width: 30rem; font-size: 1rem; line-height: 1.45; color: var(--ink-3); }
.how-drum, .fuse { display: none; }
.fuse { display: none; position: absolute; z-index: 0; left: calc(1.6rem - 2.5px); top: var(--f0, 0); height: var(--fl, 0); width: 5px; border-radius: 3px; background: repeating-linear-gradient(#C9A46A 0 6px, #A7834E 6px 10px); box-shadow: 0 0 0 1.5px rgba(33, 23, 15, .5); }
.fuse-burnt { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--fuse, 0) * 100%); border-radius: 3px; background: #2B2420; }
.fuse-spark { position: absolute; left: 50%; top: calc(var(--fuse, 0) * 100%); width: 18px; height: 18px; margin: -9px; border-radius: 50%; background: radial-gradient(#FFF6C8 20%, #F08A00 50%, rgba(240, 138, 0, 0) 72%); box-shadow: 0 0 14px 5px rgba(240, 138, 0, .5); animation: flicker .14s steps(2) infinite alternate; }
@keyframes flicker { from { scale: .8; opacity: .85; } to { scale: 1.15; opacity: 1; } }

.parts { position: relative; height: 230vh; color: var(--cream); background: #0F2A31; }
.parts-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center;
  background:
    linear-gradient(rgba(140, 220, 230, .13) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, rgba(140, 220, 230, .13) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(rgba(140, 220, 230, .06) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(140, 220, 230, .06) 1px, transparent 1px) 0 0 / 24px 24px,
    radial-gradient(120% 90% at 70% 45%, #17414B, #0F2A31 70%, #0A1E23);
}
.parts-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 0; height: 100%; padding-top: calc(var(--top-h) + .6rem); }
.parts .kicker { color: #7FE3DA; }
.parts h2 { font-size: clamp(1.7rem, 6.4vw, 3.4rem); margin-bottom: .7rem; }
.parts-copy > p { color: #CFE3E2; max-width: 30rem; font-size: 1.02rem; }
.legend { list-style: none; margin: 1rem 0 0; padding: 0; counter-reset: part; position: absolute; z-index: 2; left: 1.25rem; right: 1.25rem; bottom: max(1.2rem, env(safe-area-inset-bottom)); }
.legend li:not(.is-on) { position: absolute; visibility: hidden; }
.legend li.is-on { animation: rise .45s var(--ease-out) both; }
.legend li { position: relative; counter-increment: part; padding: .45rem .6rem .45rem 2.6rem; border-radius: 8px; color: #CFE3E2; cursor: default; transition: background-color .25s, color .25s; }
.legend li::before {
  content: counter(part); position: absolute; left: .4rem; top: .45rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center;
  font: 400 .8rem/1 var(--display); color: var(--ink); background: var(--brass); box-shadow: 0 0 0 2px var(--ink);
}
.legend li b { display: block; color: var(--cream); font: 400 1rem/1.2 var(--display); }
.legend li.is-on { background: #0B2328; color: var(--cream); box-shadow: 0 0 0 1px rgba(127, 227, 218, .45); }
.blueprint { margin-bottom: 5.6rem; }
.tag.is-on { background: var(--teal); box-shadow: 0 0 0 2.5px var(--ink), 0 0 0 7px rgba(18, 194, 182, .35); }
.parts-own { display: none; margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed rgba(127, 227, 218, .35); color: #CFE3E2; font-size: 1rem; max-width: 30rem; }
.parts-own b { color: var(--brass); }
.kit { display: flex; flex-wrap: nowrap; gap: .4rem; margin-top: .8rem; }
.kit button {
  min-height: 36px; padding: 0 .65rem; border-radius: 999px; cursor: pointer; white-space: nowrap; font: 700 clamp(.74rem, 3.2vw, .85rem)/1 var(--text); letter-spacing: .02em;
  color: #DFF6F3; background: rgba(127, 227, 218, .1); border: 1.5px solid rgba(127, 227, 218, .55); transition: background-color .2s, transform .2s var(--ease-spring);
}
.kit button::before { content: "\21BB"; margin-right: .4rem; color: var(--brass); }
.kit button:hover { background: rgba(127, 227, 218, .22); }
.kit button:active { transform: scale(.95); }
.parts-canvas { cursor: crosshair; }
.blueprint { position: relative; min-height: 0; }
.parts-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tag {
  position: absolute; left: 0; top: 0; width: 1.7rem; height: 1.7rem; margin: -.85rem; border-radius: 50%; display: grid; place-items: center;
  font: 400 .85rem/1 var(--display); color: var(--ink); background: var(--brass); box-shadow: 0 0 0 2.5px var(--ink), 0 0 0 6px rgba(224, 181, 82, .25);
  transform: translate(var(--x, -100px), var(--y, -100px)); opacity: var(--o, 0); transition: opacity .3s;
}
.blueprint-title {
  position: absolute; right: 0; top: 0; padding: .4rem .65rem; border: 1.5px solid rgba(127, 227, 218, .5);
  font: 600 .58rem/1.35 var(--text); letter-spacing: .12em; text-transform: uppercase; color: #9FD9D3; text-align: right;
}

.wanted {
  position: relative; padding: 5rem 0 5.5rem; color: var(--cream);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(0, 0, 0, .1), rgba(0, 0, 0, .55)),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .28) 0 3px, transparent 3px 118px),
    repeating-linear-gradient(90deg, #5A3D2A 0 30px, #61432E 30px 58px, #56392A 58px 91px, #5E402C 91px 118px);
}
.wanted::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 220, 170, .03) 0 1px, transparent 1px 5px); }
.wanted .wrap { position: relative; }
.wanted h2 { font-size: clamp(2rem, 7vw, 3.6rem); text-shadow: var(--outline); max-width: 16ch; }
.wanted .lede { margin-top: 1rem; max-width: 34rem; color: #EAD9BA; }
.posters {
  list-style: none; margin: 2.6rem -1.25rem 0; padding: 1rem 1.25rem 2rem; display: grid; grid-auto-flow: column; grid-auto-columns: min(74vw, 300px); gap: 1.4rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.posters::-webkit-scrollbar { display: none; }
.poster { scroll-snap-align: center; }
.poster-card { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4.25; padding: 0; border: 0; background: none; cursor: pointer; text-align: center; perspective: 1100px; }
.poster-inner {
  position: absolute; inset: 0; display: block; transform-style: preserve-3d; -webkit-transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) + var(--flip, 0deg))) rotate(var(--tilt, 0deg));
  transition: transform .7s var(--ease-spring);
}
.poster:nth-child(6n + 1) .poster-card { --tilt: -2deg; }
.poster:nth-child(6n + 2) .poster-card { --tilt: 1.5deg; }
.poster:nth-child(6n + 3) .poster-card { --tilt: -.7deg; }
.poster:nth-child(6n + 4) .poster-card { --tilt: 1.9deg; }
.poster:nth-child(6n + 5) .poster-card { --tilt: -1.3deg; }
.poster:nth-child(6n + 6) .poster-card { --tilt: .6deg; }
.poster-card:hover .poster-turn { color: var(--rust-ink); }
.poster-turn {
  position: absolute; right: 0; bottom: 0; width: 4.6rem; height: 4.6rem; display: grid; place-items: end; padding: 0 .45rem .45rem 0;
  font: 700 .72rem/1 var(--text); letter-spacing: .04em; color: var(--ink-3);
  background: linear-gradient(315deg, transparent 50%, #D6BE88 50%, #EBDDB5 66%, rgba(0, 0, 0, 0) 66.5%) ; border-radius: 0 0 3px 0;
  filter: drop-shadow(-2px -2px 2px rgba(80, 50, 20, .25)); transition: color .2s;
}
.poster-dots { display: flex; justify-content: center; gap: .55rem; margin-top: .2rem; }
.poster-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(244, 235, 211, .3); transition: background-color .25s, scale .25s; }
.poster-dots span.is-on { background: var(--brass); scale: 1.3; }
.poster-card[aria-pressed="true"] { --flip: 180deg; }
.poster-card.is-hover .poster-inner { transition: transform .15s ease-out; }
.poster-face {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 1.1rem 1rem 1.2rem; border-radius: 3px;
  color: var(--ink); backface-visibility: hidden; -webkit-backface-visibility: hidden; transform: rotateY(0deg) translateZ(.5px);
  background: radial-gradient(130% 100% at 50% 45%, #F6EBCF 30%, #E8D5A8 70%, #C9AD76), var(--paper);
  box-shadow: inset 0 0 0 1px rgba(110, 80, 40, .35), inset 0 0 2.2rem rgba(120, 80, 30, .35), 0 1.2rem 1.8rem rgba(0, 0, 0, .45);
}
.poster-face::before { content: ""; position: absolute; left: 50%; top: .55rem; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #C9D2D6, #4D555C); box-shadow: 0 2px 3px rgba(0, 0, 0, .5); }
.poster-front { transition: visibility 0s .16s; }
.poster-card[aria-pressed="true"] .poster-front { visibility: hidden; }
.poster-card[aria-pressed="true"] .poster-back { visibility: visible; }
.poster-back { visibility: hidden; transition: visibility 0s .16s; transform: rotateY(180deg) translateZ(.5px); justify-content: center; gap: 1rem; background: radial-gradient(130% 100% at 50% 45%, #EFE1BF 30%, #DEC896 70%, #BFA16A), var(--paper); }
.poster-head { margin-top: .5rem; font: 400 clamp(1.8rem, 8vw, 2.5rem)/1 var(--display); letter-spacing: .04em; color: var(--ink); }
.poster-back .poster-head { font-size: 1.5rem; color: var(--rust-ink); margin: 0; }
.poster-pic { width: 82%; flex: 1; min-height: 0; margin: .5rem 0 .4rem; border: 2px solid rgba(33, 23, 15, .75); background: radial-gradient(90% 80% at 50% 40%, #FBF3DD, #E5D2A6); }
.poster-name { font: 400 1.18rem/1.1 var(--display); }
.poster-town { margin-top: .25rem; font: 700 .72rem/1.2 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--rust-ink); }
.poster-line { padding: 0 2.6rem; margin-top: .45rem; font: italic 400 .98rem/1.3 var(--text); color: var(--ink-3); }
.poster-hint { font: 600 1.05rem/1.4 var(--text); }
.poster-back-name { margin-top: -.4rem; font: 400 1.05rem/1.1 var(--display); color: var(--ink); }
.poster-back::after { content: ""; position: absolute; left: 1.4rem; bottom: 1.6rem; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle, #0D0906 30%, #3A2A1C 46%, rgba(58, 42, 28, .5) 60%, transparent 70%); }
.poster-book { padding-top: .9rem; border-top: 1.5px dashed rgba(33, 23, 15, .35); font: italic 400 .98rem/1.4 var(--text); color: var(--ink-3); }

.trail { position: relative; background: var(--night); }
.trail-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.trail-scene[data-town="1"], .trail-scene[data-town="2"] {
  -webkit-mask-image: linear-gradient(105deg, #000 calc(var(--wipe, 0) * 140% - 40%), transparent calc(var(--wipe, 0) * 140%));
  mask-image: linear-gradient(105deg, #000 calc(var(--wipe, 0) * 140% - 40%), transparent calc(var(--wipe, 0) * 140%));
}
.trail-scene.is-full { -webkit-mask-image: none; mask-image: none; }
.trail-scene.is-gone { visibility: hidden; }
.trail-stage::after { content: ""; position: absolute; inset: auto 0 0; height: 50%; pointer-events: none; background: linear-gradient(transparent, rgba(8, 6, 12, .62)); }
.trail-map { position: absolute; z-index: 2; left: 50%; bottom: 1.4rem; width: min(70vw, 340px); height: 46px; translate: -50% 0; }
.trail-map svg { width: 100%; height: 100%; overflow: visible; }
.trail-path { fill: none; stroke: var(--cream); stroke-width: 2.4; stroke-dasharray: 6 7; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .45; }
.trail-pin { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px; border-radius: 50%; background: #3A3A44; box-shadow: 0 0 0 2.5px var(--ink); transition: background .4s, box-shadow .4s, transform .4s var(--ease-spring); }
.trail-pin[data-pin="0"] { left: 4%; top: 68%; }
.trail-pin[data-pin="1"] { left: 50%; top: 50%; }
.trail-pin[data-pin="2"] { left: 96%; top: 55%; }
.trail-pin span { position: absolute; left: 50%; top: calc(100% + 6px); translate: -50% 0; white-space: nowrap; font: 700 .7rem/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--cream); text-shadow: var(--outline); opacity: .8; transition: opacity .3s, color .3s; }
.trail-pin.is-on span { color: var(--brass); }
.trail-pin.is-on span { opacity: 1; }
.trail-pin.is-on { background: var(--brass); box-shadow: 0 0 0 2.5px var(--ink), 0 0 14px 3px rgba(242, 193, 78, .6); transform: scale(1.2); }
.trail-copy { position: relative; z-index: 3; margin-top: -100vh; margin-top: -100svh; }
.trail-intro, .town { min-height: 100vh; min-height: 100svh; padding: 0 1.25rem 6rem; }
.trail-intro .kicker { width: fit-content; padding: .35rem .6rem; border-radius: 4px; background: var(--ink); }
.town-card { position: sticky; top: calc(var(--top-h) + 1.2rem); display: flex; flex-direction: column; align-items: flex-start; opacity: 0; translate: 0 18px; transition: opacity .45s, translate .6s var(--ease-out); }
.is-on > .town-card, .no-js .town-card { opacity: 1; translate: 0 0; }
.town-card > * { max-width: 30rem; }
.trail-intro h2 { font-size: clamp(2rem, 7.4vw, 3.6rem); text-shadow: var(--outline), 0 .2em 1em rgba(0, 0, 0, .5); }
.trail-intro p:last-child { width: fit-content; margin-top: .8rem; padding: .9rem 1rem; border-radius: 10px; background: rgba(20, 14, 10, .84); font-size: 1.08rem; }
.town-time, .town h3, .town p:last-child { width: fit-content; }
.town-time { padding: .35rem .6rem; border-radius: 4px; background: var(--ink); font: 700 .78rem/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.town h3 { margin-top: .7rem; font-size: clamp(2.6rem, 11vw, 5.6rem); color: var(--cream); text-shadow: var(--outline), 0 .12em 0 var(--ink), 0 .2em 1.2em rgba(0, 0, 0, .55); }
.town p:last-child { margin-top: .7rem; padding: .9rem 1rem; border-radius: 10px; background: rgba(20, 14, 10, .84); font-size: 1.08rem; }

.get { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; isolation: isolate; background: var(--night); }
.get::before { content: ""; position: absolute; z-index: 2; inset: 0 0 auto; height: 62%; pointer-events: none; background: linear-gradient(rgba(5, 8, 20, .72), rgba(5, 8, 20, .35) 60%, transparent); }
.get::after { content: ""; position: absolute; z-index: 2; inset: auto 0 0; height: 18%; pointer-events: none; background: linear-gradient(transparent, var(--ink)); }
.final-scene { background: #070D22; }
.final-scene.is-noon { opacity: 0; pointer-events: none; transition: opacity 1.8s ease; }
.get.is-charged .final-scene.is-noon { opacity: 1; pointer-events: auto; }
.get-copy { position: absolute; z-index: 3; left: 0; right: 0; top: calc(var(--top-h) + 1.4rem); padding: 0 1.25rem; text-align: center; }
.get .kicker { color: #9FC2FF; transition: color 1s; }
.get.is-charged .kicker { color: var(--brass); }
.get h2 { font-size: clamp(2.2rem, 9vw, 4.8rem); text-shadow: var(--outline), 0 .2em 1em rgba(0, 0, 0, .5); }
.get h2 span { display: block; color: #8FBDB8; text-shadow: var(--outline); transition: color .6s; }
.get.is-charging h2 span { animation: buzz .18s steps(2) infinite; }
.get.is-charged h2 span { color: var(--teal); animation: lit 1.4s var(--ease-out) both; }
@keyframes buzz { from { color: #8FBDB8; } to { color: #CFFFF9; } }
@keyframes lit { 0% { text-shadow: var(--outline), 0 0 1.4em rgba(18, 194, 182, 1), 0 0 3em rgba(18, 194, 182, .8); scale: 1.06; } 100% { text-shadow: var(--outline), 0 0 .6em rgba(18, 194, 182, .55); scale: 1; } }
.get .lede { max-width: 28rem; margin: .8rem auto 1.2rem; color: #DCE6F5; font-size: 1.05rem; text-shadow: 0 1px 2px rgba(0, 0, 0, .9); }
.spark { position: fixed; z-index: 70; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; pointer-events: none; background: radial-gradient(#F2FFFD 25%, #12C2B6 55%, rgba(18, 194, 182, 0) 72%); box-shadow: 0 0 12px 4px rgba(18, 194, 182, .7); }

.ledger { position: relative; padding: 4.5rem 0 5rem; background: var(--ink); }
.ledger-grid { display: grid; gap: 3rem; }
.receipt {
  position: relative; padding: 2.4rem 1.5rem 2.6rem; color: var(--ink); background: radial-gradient(120% 90% at 50% 30%, #FBF4E2, #EFE3C6 70%, #E2D1A8);
  filter: drop-shadow(0 1.2rem 1.4rem rgba(0, 0, 0, .4)); rotate: -.6deg;
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 20px 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 20px 51% repeat-x;
  mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 20px 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 20px 51% repeat-x;
}
.receipt .kicker { color: var(--rust-ink); }
.receipt h2 { font-size: clamp(1.7rem, 6vw, 2.5rem); margin-bottom: .9rem; max-width: 14ch; }
.receipt > p:not(.kicker):not(.stamp) { max-width: 30rem; color: var(--ink-3); line-height: 1.5; }
.receipt-lines { margin: 1.4rem 0 0; padding-top: 1rem; border-top: 2px dashed rgba(33, 23, 15, .35); display: grid; gap: .55rem; font-weight: 600; }
.receipt-lines div { display: flex; align-items: baseline; gap: .5rem; }
.receipt-lines div::after { content: ""; order: 1; flex: 1; translate: 0 -.25em; border-bottom: 2px dotted rgba(33, 23, 15, .35); }
.receipt-lines dt { order: 0; }
.receipt-lines dd { order: 2; margin: 0; font-family: var(--display); font-size: .9rem; letter-spacing: .03em; text-transform: uppercase; color: var(--teal-2); }
.stamp[data-reveal] { opacity: 0; transform: none; transition: none; }
.stamp.is-in { animation: stampIn .5s .3s var(--ease-out) both; }
.stamp {
  position: absolute; right: 1rem; top: 1.4rem; padding: .35rem .7rem .3rem; rotate: 11deg; border: 3px double #B42A1E; border-radius: 6px;
  font: 400 .95rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #B42A1E; opacity: .82; mix-blend-mode: multiply;
}
.ride .kicker { margin-bottom: 1.1rem; }
.ride-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.ride-pic { display: block; width: 52px; height: 52px; margin: -.2rem 0 .4rem -.2rem; }
@media (max-width: 480px) { .ride-list li { padding: .9rem .8rem .95rem 1.25rem; font-size: .92rem; } .ride-list b { font-size: .92rem; } }
.ride-list li { position: relative; padding: 1.1rem 1.1rem 1.15rem 1.5rem; border-radius: 3px; color: var(--ink-3); background: radial-gradient(130% 110% at 40% 30%, #FBF4E2, #EFE3C6 65%, #DCC799); box-shadow: 0 .8rem 1.4rem rgba(0, 0, 0, .35); line-height: 1.45; rotate: -.8deg; }
.ride-list li:nth-child(even) { rotate: .9deg; }
.ride-list li::before { content: ""; position: absolute; left: .55rem; top: .6rem; bottom: .6rem; border-left: 2.5px dashed rgba(33, 23, 15, .3); }
.ride-list svg { width: 34px; height: 34px; margin-bottom: .6rem; fill: none; stroke: var(--rust-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ride-list b { display: block; font: 400 1.05rem/1.2 var(--display); color: var(--ink); margin-bottom: .3rem; }

.foot { padding: 2.6rem 0 calc(2.6rem + env(safe-area-inset-bottom)); background: #150E09; color: #CDBFA3; font-size: .95rem; border-top: 1px solid rgba(224, 181, 82, .18); }
.foot-grid { display: grid; gap: 1.2rem; }
.foot-brand { display: flex; align-items: center; gap: .8rem; font: 400 1.1rem/1.2 var(--display); color: var(--cream); }
.foot-brand img { border-radius: 10px; }
.foot-brand small { font: 400 .9rem/1.3 var(--text); color: #CDBFA3; }
.foot nav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.foot a { color: var(--cream); text-underline-offset: .18em; text-decoration-color: rgba(224, 181, 82, .6); }
.foot a:hover { color: var(--brass); }
.foot-note { color: #9E907A; font-size: .88rem; }

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

@keyframes drop { 0% { transform: translateY(-75vh) rotate(-6deg); } 70% { transform: translateY(0) rotate(3deg); } 100% { transform: translateY(0) rotate(0); } }
@keyframes sway { from { rotate: -.9deg; } to { rotate: .9deg; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes blink { 0% { opacity: 1; } 50% { opacity: .15; } 100% { opacity: 1; } }
@keyframes slam { 0% { opacity: 0; transform: scale(2.4) rotate(-6deg); } 14% { opacity: 1; transform: scale(.92) rotate(-2deg); } 24% { transform: scale(1.04) rotate(-2deg); } 78% { opacity: 1; transform: scale(1) rotate(-2deg); } 100% { opacity: 0; transform: scale(1.06) rotate(-2deg); } }
@keyframes pop { 0% { opacity: 0; transform: translateY(8px) scale(.6); } 15% { opacity: 1; transform: translateY(0) scale(1.12); } 30% { transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-46px); } }
@keyframes card { from { opacity: 0; transform: translateY(30px) rotate(-3deg) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes nudge { 0%, 100% { translate: 0 -3px; } 50% { translate: 0 3px; } }

@media (min-width: 720px) {
  .brand span, .sound-label, .lang-long { display: inline; }
  .lang-short { display: none; }
  .sound { padding: 0 .8rem; width: auto; }
  .top-cta { display: inline-flex; }
}

@media (min-width: 960px) {
  .ledger-grid { grid-template-columns: 1.1fr .9fr; align-items: start; }
}

@media (min-width: 640px) {
  .posters { margin-inline: 0; padding-inline: 0; grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, 1fr); overflow: visible; }

  .foot-grid { grid-template-columns: auto 1fr; align-items: center; }
  .foot nav { justify-content: flex-end; }
  .foot-note { grid-column: 1 / -1; }
}

@media (min-width: 640px) and (min-aspect-ratio: 9/10) {
  :root { --top-h: 68px; }
  .hero-stage { min-height: 620px; }
  .hero { --sign: clamp(2.5rem, 3.9vw, 4.4rem); --copy-top: max(calc(var(--top-h) + 3rem), calc(50vh - 14rem)); }
  .hero-copy { left: max(2.5rem, 5vw); right: auto; top: var(--copy-top); width: min(42vw, 600px); align-items: flex-start; text-align: left; gap: 1.1rem; }
  .chain { height: 100vh; }
  .hero-more { position: absolute; z-index: 3; left: max(2.5rem, 5vw); top: calc(var(--copy-top) + var(--sign) * 1.72 + 5rem); width: min(36vw, 520px); padding: 0; background: none; text-align: left; }
  .hero-more::before { display: none; }
  .hero-more { box-shadow: none; }
  .hero-more .lede {
    position: relative; width: fit-content; margin: .2rem 0 1.5rem; padding: 1.05rem 1.2rem .95rem; font-size: 1.15rem; font-weight: 600; line-height: 1.45; color: var(--ink); max-width: 24rem; rotate: -1.2deg;
    background: radial-gradient(130% 110% at 40% 30%, #FBF4E2, #EFE3C6 65%, #DCC799); border-radius: 2px; box-shadow: 0 .6rem 1.2rem rgba(40, 20, 5, .3), inset 0 0 0 1px rgba(110, 80, 40, .25);
  }
  .hero-more .lede::before { content: ""; position: absolute; left: 50%; top: -6px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #E9765A, #A3271B); box-shadow: 0 2px 3px rgba(0, 0, 0, .45); }
  .hero-line { display: none; }
  .hero-more .stores { justify-content: flex-start; }
  .hero-more .store { flex: 0 1 auto; max-width: none; min-width: 11.5rem; }
  .js .hero-more { animation: rise 1s 1.35s var(--ease-out) both; }
  .hero.is-fight .hero-more, .hero.is-over .hero-more { animation: none; opacity: 0; pointer-events: none; transition: opacity .5s; }
  .hero-more { transition: opacity .6s; }
  .scroll-cue { display: inline-flex; left: max(2.5rem, 5vw); translate: 0 0; bottom: 1.6rem; padding: .45rem .8rem; border-radius: 999px; background: rgba(26, 18, 12, .72); color: var(--cream); text-shadow: none; }
  .duel-banner { top: 62%; left: 60%; }
  .how { height: 320vh; }
  .how-grid { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; column-gap: clamp(3rem, 7vw, 7rem); padding: calc(var(--top-h) + 3rem) 0 3rem; }
  .how h2 { font-size: clamp(2.4rem, 4vw, 3.6rem); max-width: 13ch; }
  .how-head { grid-column: 1; grid-row: 1; }
  .phone { grid-column: 2; grid-row: 1 / span 2; align-self: center; height: min(78vh, 660px); }
  .track { grid-column: 1; grid-row: 2; align-self: center; }
  .steps { display: block; }
  .step { grid-template-columns: 3.2rem 1fr; column-gap: 1.1rem; padding: 1rem 0 1.3rem; opacity: 1; translate: none; }
  .step:not(.is-on) h3, .step:not(.is-on) p { opacity: .32; }
  .step:not(.is-on) .step-n { filter: grayscale(.85) brightness(1.15); }
  .step-n { width: 3.2rem; height: 3.2rem; font-size: 1.25rem; }
  .step h3 { font-size: clamp(1.5rem, 2.3vw, 2.2rem); }
  .step p { font-size: 1.15rem; }
  .fuse { display: block; }
  .how-drum {
    display: block; position: absolute; right: -1rem; top: 50%; translate: 0 -50%; width: min(19rem, 24vw); height: auto; z-index: 0;
    fill: none; stroke: rgba(33, 23, 15, .08); stroke-width: 2.2; rotate: var(--turn, 0deg); transition: rotate 1s var(--ease-spring); pointer-events: none;
  }
  .parts-grid { grid-template-columns: .95fr 1.05fr; grid-template-rows: 1fr; align-items: center; column-gap: 3rem; padding-top: var(--top-h); }
  .blueprint { height: 100%; }
  .legend { position: static; }
  .legend li:not(.is-on) { position: relative; visibility: visible; }
  .legend li.is-on { animation: none; background: rgba(127, 227, 218, .12); box-shadow: none; }
  .parts-own { display: block; }
  .blueprint-title { top: auto; bottom: 1.2rem; padding: .5rem .8rem; font-size: .72rem; }
  .posters { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .trail-intro, .town { padding: 0 max(2.5rem, 6vw) 7rem; }
  .town-card { top: calc(50vh - 7rem); }
  .trail-intro h2 { font-size: clamp(2.2rem, 3.6vw, 3.4rem); max-width: 17ch; }
  .trail-map { width: min(60vw, 480px); bottom: 1.8rem; }
  .blueprint { margin-bottom: 0; }
  .duel-banner { top: 15%; left: 62%; }
  .duel-result { left: max(2.5rem, 5vw); top: 50%; translate: 0 -50%; }
  .trail-stage::before { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(12, 8, 5, .72), rgba(12, 8, 5, .35) 34%, transparent 52%); }
  .get h2 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); }
  .get::before { height: 100%; background: linear-gradient(90deg, rgba(5, 8, 20, .78), rgba(5, 8, 20, .4) 36%, transparent 55%); }
  .receipt { padding: 2.8rem 2.4rem 3rem; }
  .get-copy { left: max(2.5rem, 6vw); right: auto; top: 50%; width: min(40vw, 560px); padding: 0; translate: 0 -50%; text-align: left; }
  .get .lede { margin-left: 0; }
  .get .stores { justify-content: flex-start; }
}

@media (min-aspect-ratio: 9/10) and (max-height: 540px) {
  :root { --top-h: 50px; }
  .hero { --sign: clamp(1.4rem, 4vw, 2.2rem); --copy-top: calc(var(--top-h) + .6rem); }
  .hero-stage { min-height: 0; }
  .hero-copy { gap: .45rem; width: min(40vw, 22rem); }
  .chain { display: none; }
  .tagline { font-size: .8rem; padding: .25rem .6rem; }
  .hero-more { top: calc(var(--copy-top) + var(--sign) * 1.72 + 2.6rem); width: min(38vw, 20rem); }
  .hero-more .lede { font-size: .82rem; padding: .55rem .7rem; margin-bottom: .7rem; }
  .hero-more .stores { grid-template-columns: repeat(2, minmax(0, 9.5rem)); gap: .4rem; }
  .store { min-height: 40px; padding: .3rem .6rem; gap: .4rem; border-radius: 10px; }
  .store svg { width: 18px; height: 18px; }
  .store > span { font-size: .76rem; }
  .store small { font-size: .56rem; }
  .scroll-cue, .cylinder { display: none !important; }
  .duel-hint { font-size: .85rem; padding: .3rem .7rem; }
  .duel-banner, .duel-banner[class*=" is-"] { font-size: clamp(1.8rem, 9vh, 3.2rem); }
  .get-copy { top: calc(var(--top-h) + .8rem); translate: none; }
  .get .lede { display: none; }
  .duel-result { width: min(18rem, 46vw); padding: .9rem; }
  .result-title { font-size: 1.2rem; margin: .3rem 0; }
  .how-grid { padding: calc(var(--top-h) + .8rem) 0 .8rem; column-gap: 2rem; }
  .how h2 { font-size: clamp(1.3rem, 4.5vh, 2rem); }
  .phone { height: calc(100svh - var(--top-h) - 1.6rem); }
  .step { padding: .3rem 0 .45rem; }
  .step-n { width: 2.2rem; height: 2.2rem; font-size: .9rem; }
  .step { grid-template-columns: 2.2rem 1fr; }
  .step h3 { font-size: 1.05rem; margin-bottom: .15rem; }
  .step p { font-size: .82rem; line-height: 1.35; }
  .parts h2 { font-size: 1.4rem; }
  .parts-copy > p, .parts-own { display: none; }
  .legend li { padding-block: .2rem; font-size: .8rem; }
  .legend li b { font-size: .85rem; }
  .blueprint-title { display: none; }
  .trail-intro h2 { font-size: 1.6rem; }
  .town h3 { font-size: 2.2rem; }
  .town p:last-child, .trail-intro p:last-child { font-size: .88rem; padding: .6rem .8rem; }
  .trail-intro, .town { padding-bottom: 4rem; }
  .get h2 { font-size: clamp(1.5rem, 7vh, 2.4rem); }
  .get .lede { font-size: .85rem; margin: .4rem 0 .7rem; }
}

@media (max-height: 700px) and (max-aspect-ratio: 9/10) {
  .get .lede { display: none; }
  .sign { font-size: clamp(1.8rem, 9vw, 3rem); }
  .tagline { font-size: .95rem; padding: .32rem .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .sign-rig, .sign-rig { animation: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .duel-banner[class*=" is-"] { animation: none !important; opacity: 1; }
  .duel-pop { animation: none !important; }
}

.lost { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(90% 70% at 50% 30%, #3A2A1E, var(--ink)); }
.lost-card { position: relative; width: min(30rem, 100%); padding: 2.6rem 2rem 2.2rem; text-align: center; color: var(--ink); background: radial-gradient(130% 100% at 50% 40%, #F6EBCF 30%, #E8D5A8 70%, #C9AD76); border-radius: 3px; rotate: -1.2deg; box-shadow: 0 1.4rem 2.4rem rgba(0, 0, 0, .5); }
.lost-card .kicker { color: var(--rust-ink); }
.lost-card h1 { font-size: clamp(2.6rem, 12vw, 4rem); margin-bottom: .8rem; }
.lost-card p { color: var(--ink-3); }
.lost-links { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; justify-content: center; margin-top: 1.4rem; font-weight: 700; }
.lost-links a { color: var(--rust-ink); }
.lost-hole { position: absolute; right: 2.2rem; top: 1.8rem; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle, #0D0906 30%, #3A2A1C 46%, rgba(58, 42, 28, .5) 60%, transparent 70%); }
