/* jarlings.xyz v2: "night shift". Loaded last. A cinematic lab scene on the home page, a scroll story through the game,
   and a premium game-UI skin (CRT panels, chunky pixel buttons, rarity colour, per-page ambience) for the app pages.
   Pure presentation: no element the app logic reads is renamed or removed. Anton + VT323 are SIL OFL fonts (fonts/OFL-*.txt). */
@font-face { font-family: 'Anton'; src: url('../fonts/Anton.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'VT323'; src: url('../fonts/VT323.woff2') format('woff2'); font-display: swap; }
:root {
  --cream: rgb(238, 230, 208); --green: rgb(110, 240, 150); --yellow: rgb(232, 196, 72);
  --cream-a: rgba(238, 230, 208, .14); --green-a: rgba(110, 240, 150, .16); --yellow-a: rgba(232, 196, 72, .18);
  --night: #070a09; --night-2: #0c1110; --panel: #111816; --panel-2: #0b100f; --bezel: #2b3533; --bezel-hi: #46524f;
  --display: 'Anton', 'Bricolage Grotesque', Impact, sans-serif; --term: 'VT323', 'JarPixel', ui-monospace, monospace;
  --hazard-tape: repeating-linear-gradient(-45deg, var(--yellow) 0 12px, #121110 12px 24px);
  --ink: var(--cream); --accent: var(--green); --accent-text: var(--green); --brass: var(--yellow); --brass-hi: #ffe08a; --hazard: var(--yellow); --focus: var(--yellow);
  --c-common: #b9c2bd; --c-unc: #6ef096; --c-rare: #6fb4ff; --c-epic: #c88cff; --c-leg: #ffcf4a; --c-myth: #ff6f9a;
  --r-unc: var(--c-unc); --r-rare: var(--c-rare); --r-epic: var(--c-epic); --r-leg: var(--c-leg); --r-myth: var(--c-myth);
}
html { background: var(--night); scroll-padding-top: 90px; }
body { background-color: var(--night); background-image: radial-gradient(ellipse 120% 70% at 50% -10%, rgba(110, 240, 150, .07), transparent 60%),
  linear-gradient(rgba(238, 230, 208, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(238, 230, 208, .025) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px; background-attachment: fixed, scroll, scroll; overflow-x: clip; }
::selection { background: var(--green); color: #04140a; }

/* ------------------------------------------------------------------ header: a lit control strip */
.top { background: linear-gradient(180deg, rgba(14, 19, 18, .96), rgba(9, 13, 12, .94)); box-shadow: 0 1px 0 #000, 0 10px 30px rgba(0, 0, 0, .5); }
.top::after { height: 5px; background: var(--hazard-tape); background-size: 34px 34px; }
.mark { font-family: var(--display); font-weight: 400; font-stretch: 100%; text-transform: uppercase; letter-spacing: .02em; font-size: 1.75rem; }
.nav a { font-family: var(--term); font-size: 19px; letter-spacing: .02em; padding: 6px 10px 5px; border-radius: 0; background: rgba(238, 230, 208, .04); border: 1px solid rgba(238, 230, 208, .12); box-shadow: none; color: rgba(238, 230, 208, .78); -webkit-font-smoothing: antialiased; }
.nav a:hover { background: rgba(110, 240, 150, .1); border-color: rgba(110, 240, 150, .45); color: var(--cream); }
.nav a[aria-current='page'] { color: #04140a; background: var(--green); border-color: var(--green); box-shadow: 0 0 18px rgba(110, 240, 150, .45); }
.nav a[aria-current='page']::before { display: none; }
.wallet-btn { font-family: var(--term) !important; font-size: 20px !important; border-radius: 0 !important; background: var(--yellow) !important; color: #1b1405 !important; border: 2px solid #000 !important; box-shadow: 0 4px 0 #000, inset 0 2px 0 rgba(255, 255, 255, .45) !important; padding: 7px 14px 6px !important; }
.navtoggle { font-family: var(--term); font-size: 20px; border-radius: 0; }
@media (max-width: 1080px) { .nav a { font-size: 22px; } .nav { background: rgba(9, 13, 12, .98); } }
.ticker { font-family: var(--term); font-size: 18px; background: #050807; border-bottom: 1px solid rgba(110, 240, 150, .2); color: rgba(110, 240, 150, .85); }

/* ------------------------------------------------------------------ chunky pixel buttons (new and existing) */
.v2-btn, .btn { --bg: #1a2321; --fg: var(--cream); --sh: #000; font-family: var(--term) !important; text-transform: uppercase; letter-spacing: .04em; -webkit-font-smoothing: antialiased;
  border-radius: 0 !important; border: 2px solid #000 !important; border-bottom-width: 2px !important; background: var(--bg) !important; color: var(--fg) !important;
  box-shadow: 0 5px 0 var(--sh), inset 0 2px 0 rgba(255, 255, 255, .16), inset 0 -3px 0 rgba(0, 0, 0, .28) !important;
  transition: transform .08s, box-shadow .08s, filter .15s !important; }
.v2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 26px; line-height: 1; padding: 13px 22px 12px; text-decoration: none; cursor: pointer; margin-bottom: 5px; }
.btn { font-size: 20px !important; padding: 9px 16px 8px !important; margin-bottom: 5px; }
.btn.small { font-size: 18px !important; padding: 6px 12px 5px !important; }
.v2-btn:hover, .btn:hover:not([disabled]) { transform: translateY(-2px); filter: brightness(1.12); box-shadow: 0 7px 0 var(--sh), inset 0 2px 0 rgba(255, 255, 255, .2), inset 0 -3px 0 rgba(0, 0, 0, .28) !important; }
.v2-btn:active, .btn:active:not([disabled]) { transform: translateY(4px); box-shadow: 0 1px 0 var(--sh), inset 0 2px 0 rgba(0, 0, 0, .2) !important; }
.v2-btn.y, .btn.brass { --bg: var(--yellow); --fg: #1b1405; }
.btn.goo { --bg: var(--green); --fg: #04140a; }
.btn.danger { --bg: #e2553f; --fg: #fff; }
.btn.ghost, .btn.ghost.light { --bg: #141c1a; --fg: var(--cream); }
.v2-btn.big { font-size: clamp(26px, 3vw, 36px); padding: 16px 30px 15px; }
.btn[disabled] { filter: grayscale(.6) brightness(.7); }

/* ------------------------------------------------------------------ home: the lab scene */
html[data-route='home'] .top { position: fixed; left: 0; right: 0; background: linear-gradient(180deg, rgba(5, 8, 7, .85), rgba(5, 8, 7, 0)); box-shadow: none; transition: background .3s; }
html[data-route='home'] .top::after { opacity: 0; transition: opacity .3s; }
html[data-route='home'].v2-scrolled .top { background: rgba(7, 10, 9, .94); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
html[data-route='home'].v2-scrolled .top::after { opacity: 1; }
html[data-route='home'] #ticker { display: none; }
.v2-home { position: relative; }
.v2-hero { position: relative; height: 175vh; height: 175svh; background: var(--night); }
.v2-pin { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate; }
.v2-lab { position: absolute; inset: 0; --u: max(calc(100vw / 1700), calc(100svh / 960)); --fx: 700; --fy: 450; contain: strict; background: #050807; }
.v2-wall { position: absolute; inset: -4%; width: 108%; height: 108%; image-rendering: pixelated; opacity: 0; transition: opacity 1.2s; }
.v2-lab.v2-ready .v2-wall { opacity: 1; }
.v2-stage { position: absolute; width: calc(1600 * var(--u)); height: calc(900 * var(--u)); left: calc(50% - var(--fx) * var(--u)); top: calc(50% - var(--fy) * var(--u)); transform-origin: calc(796 * var(--u)) calc(560 * var(--u)); }
.v2-L { position: absolute; inset: 0; }
.v2-abs { position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); width: calc(var(--w) * var(--u)); }
.v2-stage img.px, .v2-traveler img { image-rendering: pixelated; display: block; width: 100%; height: auto; }

/* pipes with glass windows and flowing fluid */
.v2-pipe { height: calc(34 * var(--u)); background: linear-gradient(180deg, #3e4947, #222a28 45%, #121716 100%); box-shadow: 0 calc(4 * var(--u)) 0 rgba(0, 0, 0, .55); }
.v2-pipe.h::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(196 * var(--u)), #56625f calc(196 * var(--u)) calc(204 * var(--u)), #0b0f0e calc(204 * var(--u)) calc(208 * var(--u))); }
.v2-pipe.v { height: calc(var(--h) * var(--u)); background: linear-gradient(90deg, #3e4947, #222a28 45%, #121716 100%); }
.v2-flow { position: absolute; top: 22%; height: 56%; width: calc(150 * var(--u)); overflow: hidden; background: #062a17; border: calc(2 * var(--u)) solid #0a0f0e; box-shadow: 0 0 calc(18 * var(--u)) rgba(110, 240, 150, .35); }
.v2-flow::after { content: ''; position: absolute; top: 0; bottom: 0; left: calc(-40 * var(--u)); right: 0; background: repeating-linear-gradient(90deg, #2bd27a 0 calc(10 * var(--u)), #6ef096 calc(10 * var(--u)) calc(14 * var(--u)), #1a9c58 calc(14 * var(--u)) calc(20 * var(--u))); animation: v2-flow 0.9s linear infinite; }
.v2-flow.down { top: 30%; left: 22%; width: 56%; height: 45%; }
.v2-flow.down::after { left: 0; top: calc(-40 * var(--u)); bottom: 0; background: repeating-linear-gradient(180deg, #2bd27a 0 calc(10 * var(--u)), #6ef096 calc(10 * var(--u)) calc(14 * var(--u)), #1a9c58 calc(14 * var(--u)) calc(20 * var(--u))); animation-name: v2-flowv; }
@keyframes v2-flow { to { transform: translateX(calc(20 * var(--u))); } }
@keyframes v2-flowv { to { transform: translateY(calc(20 * var(--u))); } }
.v2-vent { height: calc(46 * var(--u)); background: linear-gradient(90deg, #4c5856, #273030); border: calc(2 * var(--u)) solid #0a0e0d; }

/* fluorescent tubes and their light */
.v2-tube { height: calc(18 * var(--u)); background: linear-gradient(180deg, #2a3231, #151a19); border: calc(2 * var(--u)) solid #050706; }
.v2-tube::before { content: ''; position: absolute; left: 6%; right: 6%; bottom: calc(-6 * var(--u)); height: calc(8 * var(--u)); background: #f4f8ec; box-shadow: 0 0 calc(18 * var(--u)) calc(4 * var(--u)) rgba(214, 255, 230, .55), 0 0 calc(70 * var(--u)) calc(14 * var(--u)) rgba(150, 255, 200, .18); }
.v2-tube::after { content: ''; position: absolute; left: 20%; right: 20%; top: calc(-70 * var(--u)); height: calc(70 * var(--u)); background: repeating-linear-gradient(90deg, transparent 0 calc(3 * var(--u)), #1b2120 calc(3 * var(--u)) calc(5 * var(--u))); background-size: 100% 100%; -webkit-mask: linear-gradient(90deg, #000 0 4%, transparent 4% 96%, #000 96%); mask: linear-gradient(90deg, #000 0 4%, transparent 4% 96%, #000 96%); }
.v2-tube.bad::before { animation: v2-flick 4.2s steps(1) infinite; }
.v2-cones { position: absolute; inset: 0; pointer-events: none; }
.v2-cones i { position: absolute; top: 0; height: 100%; width: calc(700 * var(--u)); left: calc(50% + (var(--x) - var(--fx) - 350) * var(--u)); top: calc(50% + (100 - var(--fy)) * var(--u));
  background: linear-gradient(180deg, rgba(214, 255, 226, .17), rgba(214, 255, 226, .05) 55%, transparent 80%); clip-path: polygon(41% 0, 59% 0, 100% 100%, 0 100%); }
.v2-cones i.bad { animation: v2-flick 4.2s steps(1) infinite; }
@keyframes v2-flick { 0%, 100% { opacity: 1; } 61% { opacity: .15; } 62% { opacity: 1; } 64% { opacity: .2; } 65% { opacity: .9; } 66% { opacity: .1; } 69% { opacity: 1; } 88% { opacity: .55; } 89% { opacity: 1; } }

/* the crane carrying a jar across the lab */
.v2-rail { height: calc(16 * var(--u)); background: repeating-linear-gradient(90deg, #3a4442 0 calc(30 * var(--u)), #1c2322 calc(30 * var(--u)) calc(34 * var(--u))); border-block: calc(2 * var(--u)) solid #050706; }
.v2-crane { position: absolute; left: 0; top: calc(170 * var(--u)); width: calc(110 * var(--u)); animation: v2-crane 22s cubic-bezier(.55, 0, .45, 1) infinite; }
.v2-trolley { height: calc(30 * var(--u)); background: linear-gradient(180deg, var(--yellow), #a8872a); border: calc(3 * var(--u)) solid #120e05; box-shadow: inset 0 calc(-6 * var(--u)) 0 rgba(0, 0, 0, .3); }
.v2-trolley::after { content: ''; position: absolute; left: 10%; right: 10%; top: calc(30 * var(--u)); height: calc(8 * var(--u)); background: var(--hazard-tape); background-size: calc(20 * var(--u)) calc(20 * var(--u)); }
.v2-swing { position: relative; transform-origin: 50% 0; animation: v2-swing 22s ease-in-out infinite; }
.v2-cable { display: block; margin: 0 auto; width: calc(4 * var(--u)); height: calc(70 * var(--u)); background: #0b0f0e; }
.v2-claw { width: calc(96 * var(--u)); margin: 0 auto; border: calc(5 * var(--u)) solid #2c3533; border-top-width: calc(12 * var(--u)); box-shadow: 0 calc(12 * var(--u)) calc(24 * var(--u)) rgba(0, 0, 0, .6); background: #000; }
@keyframes v2-crane { 0% { transform: translateX(calc(-180 * var(--u))); } 40%, 50% { transform: translateX(calc(560 * var(--u))); } 90%, 100% { transform: translateX(calc(1700 * var(--u))); } }
@keyframes v2-swing { 0% { transform: rotate(0); } 4% { transform: rotate(-5deg); } 38% { transform: rotate(-2deg); } 42% { transform: rotate(6deg); } 45% { transform: rotate(-3deg); } 48% { transform: rotate(1.5deg); } 50% { transform: rotate(-4deg); } 54% { transform: rotate(3deg); } 86% { transform: rotate(-3deg); } 92% { transform: rotate(5deg); } 100% { transform: rotate(0); } }

/* shelving rack and containment cells */
.v2-rack { height: calc(var(--h) * var(--u)); }
.v2-rack::before, .v2-rack::after { content: ''; position: absolute; top: 0; bottom: 0; width: calc(18 * var(--u)); background: linear-gradient(90deg, #4a5654, #252d2c 60%, #121716); border: calc(2 * var(--u)) solid #050706; }
.v2-rack::before { left: 0; } .v2-rack::after { right: 0; }
.v2-rack i { position: absolute; left: calc(-10 * var(--u)); right: calc(-10 * var(--u)); height: calc(20 * var(--u)); background: linear-gradient(180deg, #56625f, #2b3433 40%, #161c1b); border: calc(2 * var(--u)) solid #050706; box-shadow: 0 calc(16 * var(--u)) calc(20 * var(--u)) rgba(0, 0, 0, .55); }
.v2-rack i:nth-child(1) { top: calc(178 * var(--u)); } .v2-rack i:nth-child(2) { top: calc(374 * var(--u)); } .v2-rack i:nth-child(3) { top: calc(570 * var(--u)); }
.v2-cell { --b: calc(7 * var(--u)); padding: var(--b); margin: 0; border: 0; border-radius: 0; cursor: pointer; background: linear-gradient(180deg, #4b5755, #2a3332 50%, #171d1c); box-shadow: 0 0 0 calc(2 * var(--u)) #030504, inset 0 calc(2 * var(--u)) 0 rgba(255, 255, 255, .15), 0 calc(10 * var(--u)) calc(18 * var(--u)) rgba(0, 0, 0, .6); transition: transform .25s cubic-bezier(.3, 1.5, .5, 1), box-shadow .25s; -webkit-tap-highlight-color: transparent; }
.v2-cell img { box-shadow: inset 0 0 0 1px #000; filter: saturate(1.05); }
.v2-cell::after { content: ''; position: absolute; inset: var(--b); background: linear-gradient(125deg, rgba(255, 255, 255, .16) 0 12%, transparent 12% 30%, rgba(255, 255, 255, .06) 30% 34%, transparent 34%); pointer-events: none; }
.v2-tag { position: absolute; left: 50%; bottom: calc(-14 * var(--u)); transform: translateX(-50%); font: calc(19 * var(--u)) / 1 var(--term); color: #1b1405; background: var(--yellow); padding: calc(2 * var(--u)) calc(7 * var(--u)) calc(1 * var(--u)); border: calc(2 * var(--u)) solid #000; white-space: nowrap; }
.v2-led { position: absolute; top: calc(2 * var(--u)); right: calc(2 * var(--u)); width: calc(6 * var(--u)); height: calc(6 * var(--u)); background: var(--green); box-shadow: 0 0 calc(8 * var(--u)) var(--green); animation: v2-led 2.4s steps(1) infinite; }
.v2-cell:nth-child(3n) .v2-led { animation-delay: -.8s; } .v2-cell:nth-child(4n) .v2-led { animation-delay: -1.7s; background: var(--yellow); box-shadow: 0 0 calc(8 * var(--u)) var(--yellow); }
@keyframes v2-led { 50% { opacity: .25; } }
.v2-cell:hover, .v2-cell:focus-visible { transform: translateY(calc(-8 * var(--u))) scale(1.06); box-shadow: 0 0 0 calc(3 * var(--u)) var(--green), 0 0 calc(40 * var(--u)) rgba(110, 240, 150, .45), 0 calc(20 * var(--u)) calc(30 * var(--u)) rgba(0, 0, 0, .7); z-index: 3; outline: none; }
.v2-cell:hover::before, .v2-cell:focus-visible::before { content: 'SMASH'; position: absolute; z-index: 2; left: 50%; top: calc(-30 * var(--u)); transform: translateX(-50%); font: calc(22 * var(--u)) / 1 var(--term); color: #04140a; background: var(--green); padding: calc(3 * var(--u)) calc(8 * var(--u)) calc(2 * var(--u)); border: calc(2 * var(--u)) solid #000; }
.v2-cell.small { position: absolute; top: 0; width: calc(92 * var(--u)); --b: calc(5 * var(--u)); left: calc((var(--i) * 200 + 60) * var(--u)); }
.v2-cell.small:hover::before { font-size: calc(18 * var(--u)); top: calc(-26 * var(--u)); }

/* the Legendary containment tank */
.v2-tank::before { content: ''; position: absolute; left: 50%; top: 45%; width: calc(1100 * var(--u)); height: calc(900 * var(--u)); transform: translate(-50%, -50%); background: radial-gradient(ellipse closest-side, rgba(255, 214, 90, .2), rgba(110, 240, 150, .08) 50%, transparent); pointer-events: none; z-index: -1; animation: v2-glow 4s ease-in-out infinite; }
@keyframes v2-glow { 50% { opacity: .7; } }
.v2-tank { display: block; padding: 0; border: 0; background: none; cursor: pointer; filter: drop-shadow(0 calc(26 * var(--u)) calc(30 * var(--u)) rgba(0, 0, 0, .7)); -webkit-tap-highlight-color: transparent; }
.v2-cap, .v2-base { display: block; position: relative; background: linear-gradient(180deg, #5b6866, #2c3534 45%, #161b1a); border: calc(3 * var(--u)) solid #030504; }
.v2-cap { height: calc(52 * var(--u)); margin: 0 calc(-12 * var(--u)); }
.v2-cap::before { content: ''; position: absolute; left: 8%; right: 8%; top: calc(14 * var(--u)); height: calc(8 * var(--u)); background: radial-gradient(circle, #9aa4a2 30%, transparent 40%) 0 0 / calc(24 * var(--u)) 100%; }
.v2-glass { display: block; position: relative; height: calc(370 * var(--u)); overflow: hidden; background: radial-gradient(ellipse 70% 55% at 50% 55%, rgba(255, 210, 63, .5), rgba(110, 240, 150, .28) 55%, rgba(10, 40, 26, .9)); border-inline: calc(6 * var(--u)) solid rgba(200, 255, 220, .25); box-shadow: inset 0 0 calc(50 * var(--u)) rgba(0, 0, 0, .7), 0 0 calc(80 * var(--u)) rgba(255, 210, 63, .25); }
.v2-glass::before { content: ''; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, transparent 8%, rgba(255, 255, 255, .22) 10% 15%, transparent 17% 76%, rgba(255, 255, 255, .1) 78% 80%, transparent 82%), repeating-linear-gradient(180deg, transparent 0 calc(5 * var(--u)), rgba(0, 0, 0, .12) calc(5 * var(--u)) calc(6 * var(--u))); pointer-events: none; }
.v2-glass::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: calc(26 * var(--u)); background: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent); z-index: 1; }
.v2-glass img { position: absolute; left: 50%; top: 50%; width: calc(236 * var(--u)) !important; margin: calc(-118 * var(--u)) 0 0 calc(-118 * var(--u)); box-shadow: 0 0 0 calc(4 * var(--u)) rgba(0, 0, 0, .7), 0 0 calc(60 * var(--u)) rgba(255, 210, 63, .5); animation: v2-float 5s ease-in-out infinite; }
@keyframes v2-float { 0%, 100% { transform: translateY(calc(-10 * var(--u))) rotate(-1.5deg); } 50% { transform: translateY(calc(10 * var(--u))) rotate(1.5deg); } }
.v2-base { height: calc(70 * var(--u)); margin: 0 calc(-18 * var(--u)); font: calc(20 * var(--u)) / 1 var(--term); color: #1b1405; text-transform: uppercase; display: grid; place-items: center; }
.v2-base::before { content: ''; position: absolute; inset: auto calc(10 * var(--u)) calc(8 * var(--u)); height: calc(10 * var(--u)); background: var(--hazard-tape); background-size: calc(20 * var(--u)) calc(20 * var(--u)); }
.v2-base { color: var(--yellow); text-shadow: 0 0 calc(10 * var(--u)) rgba(232, 196, 72, .6); padding-bottom: calc(14 * var(--u)); }
.v2-tank:hover .v2-glass, .v2-tank:focus-visible .v2-glass { box-shadow: inset 0 0 calc(50 * var(--u)) rgba(0, 0, 0, .6), 0 0 calc(120 * var(--u)) rgba(255, 210, 63, .55); }
.v2-tank:hover .v2-glass img { animation-duration: 1.4s; }
.v2-tank:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }

/* the conveyor and the scanner gate */
.v2-belt { height: calc(70 * var(--u)); overflow: hidden; background: linear-gradient(180deg, #2a302f 0 30%, #101413 30%); border-top: calc(3 * var(--u)) solid #000; }
.v2-belt::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: calc(12 * var(--u)); background: var(--hazard-tape); background-size: calc(30 * var(--u)) calc(30 * var(--u)); opacity: .85; }
.v2-tread { position: absolute; left: 0; top: 0; height: 30%; width: calc(1800 * var(--u)); background: repeating-linear-gradient(90deg, #3c4644 0 calc(24 * var(--u)), #161b1a calc(24 * var(--u)) calc(30 * var(--u))); animation: v2-tread 1.2s linear infinite; }
@keyframes v2-tread { to { transform: translateX(calc(-60 * var(--u))); } }
.v2-beltjars { height: calc(100 * var(--u)); overflow: visible; }
.v2-btrack { position: absolute; left: 0; top: 0; width: calc(3200 * var(--u)); height: 100%; animation: v2-belt 48s linear infinite; }
.v2-btrack > :nth-child(n+9) { margin-left: calc(1600 * var(--u)); }
@keyframes v2-belt { from { transform: translateX(0); } to { transform: translateX(calc(-1600 * var(--u))); } }
.v2-scanner { height: calc(204 * var(--u)); border: calc(14 * var(--u)) solid #2c3533; border-bottom: 0; box-shadow: inset 0 0 0 calc(2 * var(--u)) #000, 0 0 0 calc(2 * var(--u)) #000; }
.v2-scanner span { position: absolute; left: 50%; top: calc(-12 * var(--u)); transform: translate(-50%, -50%); font: calc(18 * var(--u)) / 1 var(--term); color: var(--green); text-transform: uppercase; background: #050807; padding: calc(2 * var(--u)) calc(8 * var(--u)); border: calc(2 * var(--u)) solid #000; }
.v2-laser { position: absolute; left: 0; right: 0; top: 0; height: calc(3 * var(--u)); background: #ff4d4d; box-shadow: 0 0 calc(12 * var(--u)) calc(3 * var(--u)) rgba(255, 77, 77, .6); animation: v2-laser 2.2s ease-in-out infinite alternate; }
@keyframes v2-laser { to { transform: translateY(calc(180 * var(--u))); } }

.v2-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; image-rendering: pixelated; }
.v2-fore { position: absolute; inset: 0; pointer-events: none; }
.v2-fore .post { position: absolute; bottom: -4%; width: 5.5vw; min-width: 34px; height: 64%; background: var(--hazard-tape); background-size: 48px 48px; border: 4px solid #000; filter: blur(2.5px) brightness(.55); }
.v2-fore .post.l { left: -2vw; } .v2-fore .post.r { right: -2.5vw; height: 46%; }
.v2-shade { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, rgba(4, 6, 5, .94) 0, rgba(4, 6, 5, .78) 26%, rgba(4, 6, 5, .2) 50%, transparent 62%),
  linear-gradient(0deg, rgba(4, 6, 5, .85) 0, transparent 22%), linear-gradient(180deg, rgba(4, 6, 5, .65) 0, transparent 18%),
  radial-gradient(ellipse 80% 80% at 60% 50%, transparent 55%, rgba(0, 0, 0, .55)); }
.v2-dolly { position: absolute; inset: 0; background: #040605; opacity: 0; pointer-events: none; }

/* headline */
.v2-hero-copy { position: absolute; z-index: 5; left: max(24px, calc(50% - 640px)); top: 50%; transform: translateY(calc(-46% - var(--lift, 0px))); width: min(600px, 44vw); color: var(--cream); pointer-events: none; }
.v2-hero-copy > * { pointer-events: auto; }
.v2-eyebrow { font: 24px / 1 var(--term); color: var(--green); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; text-shadow: 0 0 12px rgba(110, 240, 150, .6); }
.v2-blink { animation: v2-led 1.1s steps(1) infinite; }
.v2-h1, .v2-h2 { font-family: var(--display); font-weight: 400; font-stretch: 100%; text-transform: uppercase; letter-spacing: .005em; font-variation-settings: normal; color: var(--cream); }
.v2-h1 { font-size: clamp(50px, 6.1vw, 116px); line-height: .88; margin: 0 0 22px; text-shadow: 0 6px 0 rgba(0, 0, 0, .55), 0 0 40px rgba(0, 0, 0, .6); }
.v2-h1 .ln { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.v2-h1 .ln > span { display: inline-block; }
.v2-h1 .g, .v2-h2 .g { color: var(--green); text-shadow: 0 6px 0 rgba(0, 0, 0, .55), 0 0 34px rgba(110, 240, 150, .55); }
html.v2-js .v2-hero .v2-h1 .ln > span { transform: translateY(105%); transition: transform 1s cubic-bezier(.16, 1, .3, 1); }
html.v2-js .v2-hero .v2-h1 .ln:nth-child(2) > span { transition-delay: .12s; } html.v2-js .v2-hero .v2-h1 .ln:nth-child(3) > span { transition-delay: .24s; }
html.v2-js .v2-hero.v2-in .v2-h1 .ln > span { transform: none; }
html.v2-js .v2-hero .v2-eyebrow, html.v2-js .v2-hero .v2-lede, html.v2-js .v2-hero .v2-actions, html.v2-js .v2-hero .v2-facts { opacity: 0; transform: translateY(18px); transition: opacity .8s .45s, transform .8s .45s cubic-bezier(.16, 1, .3, 1); }
html.v2-js .v2-hero .v2-eyebrow { transition-delay: 0s; }
html.v2-js .v2-hero .v2-actions { transition-delay: .6s; } html.v2-js .v2-hero .v2-facts { transition-delay: .75s; }
html.v2-js .v2-hero.v2-in .v2-eyebrow, html.v2-js .v2-hero.v2-in .v2-lede, html.v2-js .v2-hero.v2-in .v2-actions, html.v2-js .v2-hero.v2-in .v2-facts { opacity: 1; transform: none; }
.v2-lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: rgba(238, 230, 208, .82); max-width: 34em; margin-bottom: 26px; text-shadow: 0 2px 10px #000; }
.v2-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.v2-actions.center { justify-content: center; }
.v2-facts { display: grid; grid-template-columns: repeat(4, auto); gap: 0; margin: 0; width: max-content; max-width: 100%; border: 2px solid rgba(110, 240, 150, .28); background: rgba(3, 10, 6, .72); }
.v2-facts div { padding: 10px 18px 9px; border-left: 1px solid rgba(110, 240, 150, .18); }
.v2-facts div:first-child { border-left: 0; }
.v2-facts dd { margin: 0; font: 40px / 1 var(--term); color: var(--green); text-shadow: 0 0 14px rgba(110, 240, 150, .55); }
.v2-facts dt { font: 16px / 1.1 var(--term); color: rgba(238, 230, 208, .65); text-transform: uppercase; letter-spacing: .06em; }
.v2-hint { position: absolute; z-index: 5; right: max(24px, calc(50% - 640px)); bottom: 74px; margin: 0; font: 22px / 1 var(--term); color: var(--cream); text-transform: uppercase; letter-spacing: .08em; background: rgba(3, 6, 5, .8); padding: 8px 14px 7px; border: 2px solid rgba(238, 230, 208, .25); pointer-events: none; }
.v2-hint span { color: var(--green); animation: v2-led 1s steps(1) infinite; }
.v2-marquee { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; height: 40px; overflow: hidden; background: var(--yellow); border-top: 3px solid #000; color: #120e04; font: 24px / 40px var(--term); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.v2-marquee > div { display: inline-flex; animation: v2-marq 38s linear infinite; }
.v2-marquee span { padding: 0 22px; } .v2-marquee span::after { content: '◆'; margin-left: 44px; }
@keyframes v2-marq { to { transform: translateX(-50%); } }

/* paused (off-screen, hidden tab, weak device or the miner is hashing): every loop holds still */
.v2-paused *, .v2-paused *::before, .v2-paused *::after { animation-play-state: paused !important; }

/* ------------------------------------------------------------------ the scroll story */
.v2-ch { position: relative; padding: clamp(80px, 12vh, 140px) 0; color: var(--cream); background: var(--night); }
.v2-ch::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(238, 230, 208, .18), transparent); }
.v2-ch .wrap { position: relative; z-index: 2; }
.v2-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: 70px; box-sizing: border-box; }
.ch-mine, .ch-break, .ch-breed, .ch-exped, .ch-forge, .ch-legend { padding: 0; }
.ch-mine { height: 220vh; } .ch-break { height: 320vh; } .ch-breed { height: 260vh; } .ch-forge { height: 210vh; } .ch-legend { height: 200vh; }
.ch-exped { height: calc(var(--n) * 85vh); }
.v2-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.v2-copy { max-width: 560px; }
.v2-copy.center { margin: 0 auto; text-align: center; }
.v2-copy p { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; color: rgba(238, 230, 208, .78); }
.v2-num { font: 22px / 1 var(--term); color: var(--green); letter-spacing: .1em; margin: 0 0 10px; display: inline-flex; gap: 10px; align-items: center; }
.v2-num::before { content: 'CHAPTER'; color: rgba(238, 230, 208, .45); }
.v2-num::after { content: ''; width: 46px; height: 2px; background: var(--green); box-shadow: 0 0 10px var(--green); }
.v2-h2 { font-size: clamp(42px, 5.6vw, 96px); line-height: .9; margin: 0 0 20px; text-shadow: 0 5px 0 rgba(0, 0, 0, .6); }
.v2-h2.sm { font-size: clamp(34px, 3.8vw, 60px); }
.v2-h2.gold { color: var(--yellow); text-shadow: 0 5px 0 rgba(0, 0, 0, .6), 0 0 40px rgba(232, 196, 72, .35); }
.v2-k { font: 20px / 1.2 var(--term); color: rgba(238, 230, 208, .6); text-transform: uppercase; letter-spacing: .08em; }
.v2-k.center, .center > .v2-k { text-align: center; }
.v2-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 6px; }
.v2-list li { font: 24px / 1.1 var(--term); color: var(--cream); padding-left: 26px; position: relative; }
.v2-list li::before { content: '▶'; position: absolute; left: 0; color: var(--green); font-size: 16px; top: 4px; }

/* 01 mine: the miner's terminal */
.v2-crt { position: relative; background: #050a07; border: 3px solid #000; box-shadow: 0 0 0 10px #232b2a, 0 0 0 12px #000, 0 30px 60px rgba(0, 0, 0, .6), inset 0 0 60px rgba(110, 240, 150, .08); padding: 0 0 18px; min-height: 420px; overflow: hidden; }
.v2-crt::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .28) 0 2px, transparent 2px 4px), radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, .55)); }
.v2-crt-top { display: flex; justify-content: space-between; font: 20px / 1 var(--term); padding: 9px 14px 8px; background: rgba(110, 240, 150, .12); color: var(--green); text-transform: uppercase; border-bottom: 1px solid rgba(110, 240, 150, .3); }
.v2-crt-st::before { content: '● '; animation: v2-led 1s steps(1) infinite; }
.ch-mine.found .v2-crt-st { color: var(--yellow); }
.v2-hashes { margin: 0; padding: 12px 14px; height: 205px; overflow: hidden; font: 19px / 1.06 var(--term); color: rgba(110, 240, 150, .8); text-shadow: 0 0 8px rgba(110, 240, 150, .6); white-space: pre; display: flex; flex-direction: column; justify-content: flex-end; }
.v2-crt-slot { position: relative; margin: 0 auto; width: 150px; height: 150px; border: 2px dashed rgba(110, 240, 150, .35); }
.v2-anchor { position: absolute; inset: 14px; display: block; }
.v2-found { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg) scale(1.6); opacity: 0; font: 30px / 1 var(--display); text-transform: uppercase; color: var(--yellow); border: 3px solid var(--yellow); padding: 6px 10px 3px; white-space: nowrap; background: rgba(5, 10, 7, .85); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), opacity .2s; z-index: 2; pointer-events: none; }
.ch-mine.found .v2-found { opacity: 1; transform: translate(-50%, 70px) rotate(-6deg) scale(1); }
.v2-crt-bar { margin: 16px 14px 0; height: 14px; border: 2px solid rgba(110, 240, 150, .5); padding: 2px; }
.v2-crt-bar i { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--green) 0 10px, transparent 10px 13px); transform-origin: 0 50%; transform: scaleX(min(1, calc(var(--p, 0) / .62))); }

/* the jar that travels from the miner's screen to the hammer */
.v2-traveler { position: fixed; left: 0; top: 0; width: 100px; height: 100px; z-index: 15; pointer-events: none; transform-origin: 0 0; opacity: 0; visibility: hidden; --scan: 1; }
.v2-traveler.on { opacity: 1; visibility: visible; }
.v2-traveler img { position: absolute; inset: 0; width: 100%; height: 100%; clip-path: inset(calc((1 - var(--scan)) * 100%) 0 0 0); box-shadow: 0 0 0 2px #000; }
.v2-scanmask { position: absolute; left: -6%; right: -6%; height: 3px; top: calc((1 - var(--scan)) * 100%); background: var(--green); box-shadow: 0 0 12px 3px rgba(110, 240, 150, .7); }
.v2-traveler.land .v2-scanmask { opacity: 0; }
.v2-crack { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: square; filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 3px rgba(255, 255, 255, .6)); transition: opacity .12s; }
.v2-traveler.c0 .k0, .v2-traveler.c1 .k1, .v2-traveler.c2 .k2, .v2-traveler.c3 .k3 { opacity: 1; }
.v2-traveler.gone { opacity: 0; visibility: hidden; }

/* 02 break: hammer, cracks and the shatter */
.ch-break .v2-sticky { justify-content: flex-start; }
.v2-break-stage { position: absolute; left: 62%; top: 50%; width: min(34vw, 46vh, 360px); aspect-ratio: 1; transform: translate(-50%, -50%); }
.v2-anchor.big { inset: 0; }
.v2-rays { position: absolute; left: 50%; top: 50%; width: 260%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(calc(.4 + var(--q, 0) * .8)) rotate(calc(var(--p, 0) * 120deg)); background: repeating-conic-gradient(from 0deg, rgba(232, 196, 72, .22) 0 6deg, transparent 6deg 18deg); -webkit-mask: radial-gradient(circle, #000 15%, transparent 62%); mask: radial-gradient(circle, #000 15%, transparent 62%); opacity: 0; transition: opacity .4s; }
.ch-break { --q: clamp(0, calc((var(--p, 0) - .6) * 2.6), 1); }
.ch-break.out .v2-rays { opacity: 1; }
.v2-hammer { position: absolute; width: 58%; right: -38%; top: -40%; transform-origin: 10% 90%; transform: rotate(-40deg); filter: drop-shadow(0 12px 0 rgba(0, 0, 0, .5)); z-index: 3; transition: opacity .3s; }
.ch-break.out .v2-hammer { opacity: 0; }
.v2-shards { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.v2-shard { position: absolute; inset: 0; background: url('../art/demo/205-jar.gif') center / 100% 100% no-repeat; image-rendering: pixelated; opacity: 0; transform: translate(calc(var(--dx) * var(--q) * 42vmin), calc(var(--dy) * var(--q) * 42vmin)) rotate(calc(var(--rot) * var(--q))) scale(calc(1 - var(--q) * .3)); }
.ch-break.out .v2-shard { opacity: calc(1 - var(--q) * .85); }
.v2-mon { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: scale(calc(.55 + var(--q) * .45)); box-shadow: 0 0 0 4px #000, 0 0 0 9px var(--yellow), 0 0 0 13px #000, 0 0 120px rgba(232, 196, 72, .55); transition: opacity .25s; z-index: 1; }
.ch-break.out .v2-mon { opacity: 1; }
.v2-out { position: absolute; left: 50%; top: 104%; transform: translateX(-50%) translateY(calc((1 - var(--q)) * 30px)); opacity: 0; margin: 0; font: clamp(28px, 3vw, 46px) / 1 var(--display); text-transform: uppercase; color: var(--yellow); white-space: nowrap; text-shadow: 0 4px 0 #000; }
.ch-break.out .v2-out { opacity: var(--q); }
.v2-flash { position: absolute; inset: 0; z-index: 9; background: #fff; pointer-events: none; animation: v2-flash .6s ease-out forwards; }
@keyframes v2-flash { from { opacity: .85; } to { opacity: 0; } }
.v2-break-copy { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.v2-break-copy .v2-copy { max-width: min(430px, 40vw); pointer-events: auto; }
.v2-hits { display: none; }
.v2-hams { display: flex; gap: 12px; margin-top: 10px; }
.v2-ham { margin: 0; text-align: center; width: 92px; padding: 8px 6px; background: var(--panel); border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(238, 230, 208, .1); }
.v2-ham img { width: 56px; margin: 0 auto; }
.v2-ham figcaption { font: 16px / 1 var(--term); color: rgba(238, 230, 208, .75); margin-top: 6px; }
.ch-break.h1 .v2-ham:nth-child(1), .ch-break.h2 .v2-ham:nth-child(1) { border-color: var(--green); }

/* 03 breed: parents meet, a sealed jar, a hybrid comes out */
.ch-breed .v2-sticky { gap: 18px; }
.v2-pair { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 4vw, 60px); margin: 10px 0 6px; }
.v2-parent, .v2-baby { position: relative; width: clamp(96px, 12vw, 168px); text-align: center; }
.v2-parent img, .v2-baby img { width: 100%; box-shadow: 0 0 0 3px #000, 0 0 0 9px #232b2a, 0 0 0 11px #000; }
.v2-parent span, .v2-baby span { display: block; margin-top: 20px; font: 26px / 1 var(--term); text-transform: uppercase; color: var(--cream); }
.v2-parent.a { transform: translateX(calc((1 - min(1, calc(var(--p, 0) * 2.6))) * -24vw)); }
.v2-parent.b { transform: translateX(calc((1 - min(1, calc(var(--p, 0) * 2.6))) * 24vw)); }
.v2-spark { width: 26px; height: 26px; background: var(--yellow); transform: rotate(45deg) scale(clamp(0, calc((var(--p, 0) - .3) * 10), 1)); box-shadow: 0 0 30px var(--yellow); }
.v2-baby { transform: scale(clamp(.6, calc(.6 + (var(--p, 0) - .3) * 4), 1)); opacity: clamp(0, calc((var(--p, 0) - .3) * 8), 1); }
.v2-baby .kid { position: absolute; left: 0; top: 0; opacity: clamp(0, calc((var(--p, 0) - .55) * 10), 1); box-shadow: 0 0 0 3px #000, 0 0 0 9px var(--green), 0 0 0 11px #000, 0 0 50px rgba(110, 240, 150, .5); }
.v2-baby .seal { opacity: clamp(0, calc(1 - (var(--p, 0) - .55) * 10), 1); }
.v2-baby span { color: var(--green); opacity: clamp(0, calc((var(--p, 0) - .55) * 10), 1); }
.v2-hyb-copy { text-align: center; max-width: 720px; margin: 0 auto; }
.v2-hyb-copy h3 { font: clamp(24px, 2.2vw, 34px) / 1 var(--display); text-transform: uppercase; margin: 0 0 8px; color: var(--green); }
.v2-hyb-copy p { margin: 0; font-size: 16px; line-height: 1.5; color: rgba(238, 230, 208, .72); }
.v2-hyb-row { overflow: hidden; padding: 14px 0 4px; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.v2-hyb-track { display: flex; gap: 18px; width: max-content; transform: translateX(calc(5vw - var(--p, 0) * 45%)); }
.v2-hyb { margin: 0; width: 128px; text-align: center; }
.v2-hyb .cubby { width: 128px; }
.v2-hyb figcaption { font: 17px / 1.1 var(--term); color: rgba(238, 230, 208, .65); margin-top: 6px; }
.v2-hyb figcaption b { color: var(--yellow); }

/* 04 expeditions: a horizontal trip through every destination */
.ch-exped .v2-sticky { padding-top: 0; }
.v2-pan { display: flex; height: 100%; width: calc(var(--n) * 100vw); transform: translateX(calc(var(--q, var(--p, 0)) * (var(--n) - 1) * -100vw)); }
.v2-dest { position: relative; flex: 0 0 100vw; height: 100%; overflow: hidden; display: flex; align-items: flex-end; }
.v2-dest.intro { align-items: center; padding: 0 max(24px, calc(50vw - 600px)); box-sizing: border-box; background: radial-gradient(ellipse at 80% 50%, rgba(110, 240, 150, .1), transparent 60%); }
.v2-dest-bg { position: absolute; inset: 0; }
.v2-dest-bg img { position: absolute; inset: -6% -10%; width: 120%; height: 112%; object-fit: cover; image-rendering: pixelated; transform: translateX(calc((var(--p, 0) * (var(--n) - 1) - var(--i) - 1) * -12vw)); filter: saturate(1.1) brightness(.8); }
.v2-dest-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4, 6, 5, .95), rgba(4, 6, 5, .25) 55%, rgba(4, 6, 5, .6)), repeating-linear-gradient(180deg, rgba(0, 0, 0, .18) 0 2px, transparent 2px 4px); }
.v2-dest-copy { position: relative; z-index: 2; padding: 0 max(24px, calc(50vw - 600px)) 14vh; }
.v2-dest-copy h3 { font: clamp(56px, 10vw, 180px) / .85 var(--display); text-transform: uppercase; margin: 6px 0 10px; color: var(--cream); text-shadow: 0 6px 0 rgba(0, 0, 0, .6); }
.v2-dest-copy p { font: 26px / 1.1 var(--term); color: var(--yellow); margin: 0; text-transform: uppercase; }
.v2-pan-bar { position: absolute; left: max(24px, calc(50vw - 600px)); right: max(24px, calc(50vw - 600px)); bottom: 6vh; height: 4px; background: rgba(238, 230, 208, .15); z-index: 3; }
.v2-pan-bar i { display: block; height: 100%; background: var(--green); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); box-shadow: 0 0 12px var(--green); }

/* 05 forge: furnace light, materials into the crucible, lab items out */
.ch-forge .v2-sticky { background: radial-gradient(ellipse 70% 50% at 70% 110%, rgba(255, 110, 40, calc(.15 + var(--p, 0) * .3)), transparent 70%); }
.v2-furnace { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(0, 0, 0, .55) 46px 54px), linear-gradient(0deg, rgba(255, 120, 40, .35), transparent); -webkit-mask: linear-gradient(0deg, #000, transparent); mask: linear-gradient(0deg, #000, transparent); }
.v2-embers { position: absolute; inset: 0; background-image: radial-gradient(2px 2px at 20% 80%, #ffb347 50%, transparent 51%), radial-gradient(2px 2px at 60% 90%, #ff7a2f 50%, transparent 51%), radial-gradient(3px 3px at 80% 70%, #ffe08a 50%, transparent 51%), radial-gradient(2px 2px at 40% 60%, #ff7a2f 50%, transparent 51%), radial-gradient(2px 2px at 90% 95%, #ffb347 50%, transparent 51%); background-size: 340px 300px; animation: v2-embers 6s linear infinite; opacity: .8; }
@keyframes v2-embers { to { background-position: 40px -300px, -30px -300px, 20px -300px, -40px -300px, 10px -300px; } }
.v2-anvil { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.v2-ores { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.v2-ore { margin: 0; display: flex; align-items: center; gap: 8px; padding: 6px; background: var(--panel); border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(238, 230, 208, .1); opacity: clamp(0, calc(var(--p, 0) * 9 - var(--i) * .5), 1); transform: translateX(calc((1 - clamp(0, calc(var(--p, 0) * 9 - var(--i) * .5), 1)) * -30px)); }
.v2-ore.out { opacity: clamp(0, calc((var(--p, 0) - .45) * 9 - var(--i) * .5), 1); transform: translateX(calc((1 - clamp(0, calc((var(--p, 0) - .45) * 9 - var(--i) * .5), 1)) * 30px)); border-color: rgba(232, 196, 72, .6); }
.v2-ore img { width: 40px; height: 40px; }
.v2-ore figcaption { font: 17px / 1 var(--term); color: var(--cream); }
.v2-crucible { width: clamp(70px, 7vw, 110px); aspect-ratio: 1; border: 4px solid #000; background: radial-gradient(circle at 50% 60%, #fff3b0, #ff9a3c 35%, #b2321a 70%, #3a120a); box-shadow: 0 0 calc(20px + var(--p, 0) * 80px) rgba(255, 140, 50, calc(.3 + var(--p, 0) * .6)), inset 0 0 20px #000; animation: v2-pulse 1.6s ease-in-out infinite; }
@keyframes v2-pulse { 50% { filter: brightness(1.25); } }
.ch-forge .v2-split { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }

/* lab supplies */
.v2-slots { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.v2-slot { --rc: var(--c-common); margin: 0; padding: 12px 8px 10px; background: linear-gradient(180deg, #161e1c, #0c1110); border: 2px solid #000; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--rc) 45%, transparent), 0 6px 0 #000; text-align: center; transition: transform .2s; }
.v2-slot:hover { transform: translateY(-4px); }
.v2-slot.r-uncommon { --rc: var(--c-unc); } .v2-slot.r-rare { --rc: var(--c-rare); }
.v2-slot img { width: 64px; height: 64px; margin: 0 auto 8px; }
.v2-slot b { display: block; font: 18px / 1.05 var(--term); color: var(--cream); }
.v2-slot span { display: inline-block; margin-top: 5px; font: 15px / 1 var(--term); text-transform: uppercase; color: var(--rc); letter-spacing: .06em; }

/* 06 legendaries */
.ch-legend .v2-sticky { gap: 22px; }
.v2-godrays { position: absolute; left: 50%; top: 58%; width: 160vmax; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(calc(var(--p, 0) * 90deg)); background: repeating-conic-gradient(rgba(232, 196, 72, .09) 0 5deg, transparent 5deg 15deg); -webkit-mask: radial-gradient(circle, #000 5%, transparent 45%); mask: radial-gradient(circle, #000 5%, transparent 45%); opacity: calc(.3 + var(--p, 0)); }
.v2-legs { display: flex; justify-content: center; gap: clamp(8px, 1.4vw, 20px); flex-wrap: wrap; }
.v2-leg { margin: 0; width: clamp(84px, 9vw, 132px); text-align: center; opacity: clamp(0, calc(var(--p, 0) * 10 - var(--i) * .7), 1); transform: translateY(calc((1 - clamp(0, calc(var(--p, 0) * 10 - var(--i) * .7), 1)) * 40px)); }
.v2-leg .cubby { width: 100%; }
.v2-leg .cubby.legendary { box-shadow: 0 0 0 2px var(--yellow), 0 0 34px rgba(232, 196, 72, .45); }
.v2-leg figcaption { font: 18px / 1 var(--term); text-transform: uppercase; color: var(--yellow); margin-top: 8px; }
.v2-leg.shadow figcaption { color: rgba(238, 230, 208, .45); }
.v2-stat3 { display: flex; justify-content: center; gap: 0; margin: 0 auto; border: 2px solid rgba(232, 196, 72, .35); background: rgba(10, 8, 2, .6); width: max-content; max-width: 100%; }
.v2-stat3 div { padding: 10px 22px; border-left: 1px solid rgba(232, 196, 72, .25); text-align: center; }
.v2-stat3 div:first-child { border-left: 0; }
.v2-stat3 dd { margin: 0; font: clamp(30px, 3vw, 46px) / 1 var(--display); color: var(--yellow); }
.v2-stat3 dt { font: 16px / 1.1 var(--term); color: rgba(238, 230, 208, .65); text-transform: uppercase; }

/* 07 treasure */
.v2-split-bar { display: flex; height: 46px; border: 2px solid #000; margin-top: 18px; box-shadow: 0 5px 0 #000; }
.v2-split-bar i { flex: var(--p) 0 0; display: flex; align-items: center; padding: 0 12px; font: 19px / 1 var(--term); text-transform: uppercase; color: #1b1405; background: var(--yellow); white-space: nowrap; overflow: hidden; }
.v2-split-bar i + i { background: #2b3533; color: var(--cream); }
.v2-split-bar b { font-family: var(--display); font-weight: 400; font-size: 24px; margin-right: 8px; }
.v2-vault { position: relative; display: grid; gap: 14px; justify-items: center; }
.v2-vaultdoor { position: relative; width: 200px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #3c4745 0 55%, #232b2a 56% 70%, #4a5654 71%); border: 4px solid #000; box-shadow: 0 0 0 10px #161c1b, 0 0 0 12px #000, 0 0 60px rgba(232, 196, 72, .2); }
.v2-vaultdoor .ring { position: absolute; inset: 22%; border-radius: 50%; border: 6px dashed var(--yellow); opacity: .7; transform: rotate(calc(var(--p, 0) * 300deg)); }
.v2-vaultdoor .spokes { position: absolute; inset: 8%; background: linear-gradient(0deg, transparent 46%, #12100a 46% 54%, transparent 54%), linear-gradient(90deg, transparent 46%, #12100a 46% 54%, transparent 54%); transform: rotate(calc(var(--p, 0) * -200deg)); }
.v2-vaultdoor .hub { position: absolute; inset: 40%; border-radius: 50%; background: var(--yellow); border: 3px solid #000; box-shadow: 0 0 20px rgba(232, 196, 72, .6); }
.ch-treasure .pool-card { background: #070a05; border: 2px solid rgba(232, 196, 72, .5); box-shadow: inset 0 0 40px rgba(232, 196, 72, .08); border-radius: 0; text-align: center; width: 100%; }
.ch-treasure .pool-card b { font-family: var(--term); font-size: clamp(42px, 4vw, 64px); color: var(--yellow); text-shadow: 0 0 20px rgba(232, 196, 72, .5); }
.ch-treasure .odds-table { width: 100%; }

/* 08 population, recipes, start */
.v2-big { color: var(--green); }
.v2-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: end; margin: 28px 0; }
.v2-steps div { position: relative; padding: 12px; background: var(--panel); border: 2px solid #000; min-height: calc(60px + var(--h) * 9px); display: flex; flex-direction: column; justify-content: flex-end; box-shadow: inset 0 calc(-1 * var(--h) * 7px) 0 rgba(110, 240, 150, .12); }
.v2-steps dt { font: 19px / 1.1 var(--term); color: var(--cream); }
.v2-steps dd { margin: 4px 0 0; font: 17px / 1.1 var(--term); color: var(--green); }
.v2-permit { display: flex; gap: 16px; align-items: center; max-width: 620px; margin-bottom: 28px; }
.v2-permit .cubby { width: 88px; flex: none; }
.v2-locked { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; margin: 22px 0; }
.ch-join { text-align: center; padding-bottom: 60px; background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(110, 240, 150, .1), transparent 70%), var(--night); }
.v2-final { font-size: clamp(56px, 9vw, 160px); margin: 10px 0 30px; }
.ch-join .v2-actions { margin-bottom: 50px; }
.v2-knock { max-width: 760px; margin: 14px auto 0; }

/* the chapter rail */
.v2-rail-nav { position: fixed; z-index: 14; left: 14px; top: 50%; transform: translate(-130%, -50%); display: grid; gap: 2px; transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
.v2-rail-nav.on { transform: translate(0, -50%); }
.v2-rail-nav a { display: flex; align-items: center; gap: 8px; text-decoration: none; font: 18px / 1 var(--term); color: rgba(238, 230, 208, .45); padding: 4px 6px; text-transform: uppercase; }
.v2-rail-nav a span { opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s; background: rgba(5, 8, 7, .9); padding: 2px 6px; }
.v2-rail-nav a:hover span, .v2-rail-nav a.on span { opacity: 1; transform: none; }
.v2-rail-nav a b { font-weight: 400; display: inline-block; width: 30px; border-left: 2px solid rgba(238, 230, 208, .25); padding-left: 6px; }
.v2-rail-nav a.on { color: var(--green); }
.v2-rail-nav a.on b { border-color: var(--green); box-shadow: -4px 0 12px -4px var(--green); }

/* the speaker toggle */
.v2-snd { position: fixed; z-index: 25; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 8px; font: 18px / 1 var(--term); text-transform: uppercase; color: rgba(238, 230, 208, .8); background: rgba(5, 8, 7, .88); border: 2px solid rgba(238, 230, 208, .25); padding: 7px 10px 6px; cursor: pointer; }
.v2-snd i { width: 16px; height: 14px; background: currentColor; clip-path: polygon(0 30%, 30% 30%, 65% 0, 65% 100%, 30% 70%, 0 70%); position: relative; }
.v2-snd[aria-pressed='true'] { color: var(--green); border-color: rgba(110, 240, 150, .6); }
.v2-snd:hover { border-color: var(--green); }
html[data-route='home'] .v2-snd { bottom: 52px; }

/* ------------------------------------------------------------------ hero on phones: headline on top, the lab below */
@media (max-width: 700px) {
  .v2-hero { height: 150svh; }
  .v2-lab { --u: calc(100svh / 900 * .52); --fx: 1040; }
  .v2-stage { top: auto; bottom: calc(40px - 40 * var(--u)); }
  .v2-hero-copy { left: 20px; right: 20px; width: auto; top: 82px; transform: translateY(calc(-1 * var(--lift, 0px))); }
  .v2-eyebrow { font-size: 19px; margin-bottom: 12px; }
  .v2-h1 { font-size: clamp(40px, 12.4vw, 60px); margin-bottom: 14px; }
  .v2-lede { font-size: 15px; line-height: 1.45; margin-bottom: 16px; max-width: 30em; }
  .v2-actions { gap: 10px; margin-bottom: 0; }
  .v2-btn { font-size: 22px; padding: 11px 16px 10px; }
  .v2-facts { display: none; }
  .v2-hint { right: auto; left: 50%; transform: translateX(-50%); bottom: 52px; font-size: 18px; white-space: nowrap; }
  .v2-shade { background: linear-gradient(180deg, rgba(4, 6, 5, .96) 0, rgba(4, 6, 5, .9) 40%, rgba(4, 6, 5, .35) 58%, transparent 70%), linear-gradient(0deg, rgba(4, 6, 5, .8) 0, transparent 14%); }
  .v2-fore .post { width: 30px; }
  .v2-marquee { height: 34px; font-size: 20px; line-height: 34px; }
  .v2-cell:hover::before { display: none; }
}
@media (max-width: 700px) and (max-height: 700px) { .v2-lede { display: none; } }

@media (min-width: 901px) and (max-width: 1400px) { .v2-ch .wrap { padding-left: 100px; } }
.ch-forge .v2-h2 { font-size: clamp(34px, 3.7vw, 60px); }
.ch-forge .v2-ore { padding: 8px 10px; gap: 10px; }
.ch-forge .v2-ore img { width: 52px; height: 52px; image-rendering: pixelated; }
.ch-forge .v2-ore figcaption { font-size: 20px; }
.ch-forge .v2-crucible { width: clamp(90px, 9vw, 140px); }
.v2-anvil { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.v2-ores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v2-ore { min-width: 0; }
.v2-ore figcaption { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1200px) { .ch-forge .v2-ore img { width: 40px; height: 40px; } .ch-forge .v2-ore figcaption { font-size: 17px; } .ch-forge .v2-ore { padding: 6px; gap: 6px; } }

/* ------------------------------------------------------------------ the story on phones */
@media (max-width: 900px) { .v2-rail-nav { display: none; } }
@media (max-width: 700px) {
  .v2-ch { padding: 64px 0; }
  .ch-mine, .ch-break, .ch-breed, .ch-exped, .ch-forge, .ch-legend { padding: 0; }
  .v2-ch .wrap { padding-left: 20px; padding-right: 20px; }
  .v2-sticky { padding-top: 64px; justify-content: flex-start; }
  .v2-split { grid-template-columns: minmax(0, 1fr) !important; gap: 18px; }
  .v2-h2 { font-size: clamp(36px, 11vw, 52px); margin-bottom: 12px; }
  .v2-h2.sm, .ch-forge .v2-h2 { font-size: clamp(30px, 8.6vw, 40px); }
  .v2-num { font-size: 18px; margin-bottom: 8px; }
  .v2-copy p { font-size: 15px; line-height: 1.5; margin: 0 0 10px; }
  .v2-list { margin-bottom: 14px; gap: 2px; }
  .v2-list li { font-size: 20px; }
  .v2-btn.big { font-size: 22px; }
  /* 01 mine: copy first, a compact terminal below */
  .ch-mine .v2-sticky { padding-top: 70px; }
  .ch-mine .v2-copy p:not(.v2-num) { display: none; }
  .v2-crt { min-height: 0; padding-bottom: 12px; box-shadow: 0 0 0 6px #232b2a, 0 0 0 8px #000, inset 0 0 40px rgba(110, 240, 150, .08); margin: 0 8px; }
  .v2-crt-top { font-size: 17px; }
  .v2-hashes { height: 96px; font-size: 14px; padding: 8px 10px; }
  .v2-crt-slot { width: 112px; height: 112px; }
  .v2-found { font-size: 24px; }
  .ch-mine.found .v2-found { transform: translate(-50%, 46px) rotate(-6deg) scale(1); }
  .ch-mine .v2-actions { margin: 4px 0 0; }
  /* 02 break: copy on top, the jar below */
  .ch-break { height: 280vh; }
  .v2-break-copy { top: 70px; transform: none; display: block; }
  .v2-break-copy .v2-copy { max-width: none; }
  .v2-hams { display: none; }
  .v2-break-stage { left: 50%; top: 66%; width: min(62vw, 34svh); }
  .v2-hammer { right: -26%; top: -34%; }
  .v2-out { font-size: 28px; top: 108%; }
  /* 03 breed: no pin, everything stacks */
  .ch-breed, .ch-forge, .ch-legend { height: auto; }
  .ch-breed .v2-sticky, .ch-forge .v2-sticky, .ch-legend .v2-sticky { position: relative; height: auto; overflow: hidden; padding: 72px 0 56px; }
  .v2-pair { gap: 10px; }
  .v2-parent, .v2-baby { width: 26vw; }
  .v2-parent span, .v2-baby span { font-size: 18px; margin-top: 14px; }
  .v2-parent.a { transform: translateX(calc((1 - min(1, calc(var(--p, 0) * 2.6))) * -10vw)); }
  .v2-parent.b { transform: translateX(calc((1 - min(1, calc(var(--p, 0) * 2.6))) * 10vw)); }
  .v2-spark { display: none; }
  .v2-hyb-copy { padding: 0 20px; }
  .v2-hyb-copy p { font-size: 15px; }
  .v2-hyb, .v2-hyb .cubby { width: 96px; }
  .v2-hyb-track { transform: translateX(calc(5vw - var(--p, 0) * 60%)); }
  /* 04 expeditions: still a pan, smaller type */
  .ch-exped { height: calc(var(--n) * 70vh); }
  .v2-dest.intro { padding: 70px 20px 0; align-items: flex-start; }
  .v2-dest-copy { padding: 0 20px 14vh; }
  .v2-dest-copy h3 { font-size: clamp(44px, 15vw, 72px); }
  .v2-dest-copy p { font-size: 20px; }
  .v2-pan-bar { left: 20px; right: 20px; bottom: 7vh; }
  /* 05 forge: icons only, in and out side by side */
  .v2-anvil { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important; gap: 10px; }
  .v2-ores { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 6px; }
  .ch-forge .v2-ore { padding: 4px; justify-content: center; }
  .ch-forge .v2-ore figcaption { display: none; }
  .ch-forge .v2-ore img { width: 36px; height: 36px; }
  .ch-forge .v2-crucible { width: 54px; }
  .v2-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .v2-slot img { width: 48px; height: 48px; }
  .v2-slot b { font-size: 16px; }
  /* 06 legendaries */
  .v2-legs { gap: 8px; }
  .v2-leg { width: calc((100vw - 40px - 24px) / 4); }
  .v2-leg figcaption { font-size: 14px; }
  .v2-stat3 div { padding: 8px 10px; }
  .v2-stat3 dt { font-size: 13px; }
  .v2-stat3 dd { font-size: 26px; }
  /* 07 treasure and the rest */
  .v2-vaultdoor { width: 140px; }
  .v2-split-bar i { font-size: 15px; padding: 0 8px; }
  .v2-split-bar b { font-size: 20px; }
  .v2-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-locked { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .v2-permit { flex-direction: column; align-items: flex-start; }
  .v2-final { font-size: clamp(44px, 14vw, 64px); }
}

/* a safety net: nothing may widen the page on phones */
html { overflow-x: clip; }

/* ================================================================== per-page ambience (app pages) */
.v2-amb { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; display: none; }
.v2-amb.on { display: block; }
.v2-amb > i { position: absolute; display: block; }
.v2-amb canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.v2-amb .g1 { left: -10%; top: -20%; width: 70%; height: 70%; background: radial-gradient(closest-side, rgba(110, 240, 150, .09), transparent); }
.v2-amb .g2 { right: -10%; bottom: -25%; width: 70%; height: 70%; background: radial-gradient(closest-side, rgba(232, 196, 72, .07), transparent); }
.amb-wall::before { content: ''; position: absolute; inset: 0; background: url('../art/v2/wall.webp') center top / 960px auto repeat; image-rendering: pixelated; opacity: .1; filter: saturate(.6); -webkit-mask: linear-gradient(180deg, #000, transparent 75%); mask: linear-gradient(180deg, #000, transparent 75%); }
.amb-gold .g1 { left: 15%; width: 70%; background: radial-gradient(closest-side, rgba(232, 196, 72, .14), transparent); }
.amb-gold::before { content: ''; position: absolute; left: 50%; top: -40vmax; width: 140vmax; height: 140vmax; transform: translateX(-50%); background: repeating-conic-gradient(rgba(232, 196, 72, .05) 0 4deg, transparent 4deg 14deg); -webkit-mask: radial-gradient(circle, #000, transparent 60%); mask: radial-gradient(circle, #000, transparent 60%); }
.amb-furnace .g2 { left: 0; right: 0; bottom: -30%; width: auto; height: 70%; background: radial-gradient(ellipse 60% 60% at 50% 100%, rgba(255, 110, 40, .28), transparent); animation: v2-glow 3s ease-in-out infinite; }
.amb-furnace .grate { left: 0; right: 0; bottom: 0; height: 22vh; background: repeating-linear-gradient(90deg, transparent 0 40px, rgba(0, 0, 0, .7) 40px 48px), linear-gradient(0deg, rgba(255, 110, 40, .22), transparent); -webkit-mask: linear-gradient(0deg, #000, transparent); mask: linear-gradient(0deg, #000, transparent); }
.amb-dest .tiles { position: absolute; left: 0; right: 0; bottom: 0; height: 34vh; display: grid; grid-template-columns: repeat(6, 1fr); opacity: .22; -webkit-mask: linear-gradient(0deg, #000 10%, transparent); mask: linear-gradient(0deg, #000 10%, transparent); }
.amb-dest .tiles img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.amb-incubator .g1 { left: 20%; top: auto; bottom: -20%; width: 60%; background: radial-gradient(closest-side, rgba(110, 240, 150, .14), transparent); }
.amb-incubator .pods { position: absolute; left: 0; right: 0; bottom: 3vh; display: flex; justify-content: space-around; opacity: .16; }
.amb-incubator .pods img { width: clamp(48px, 7vw, 110px); image-rendering: pixelated; filter: drop-shadow(0 0 18px rgba(110, 240, 150, .8)); animation: v2-pod 4s ease-in-out infinite; }
.amb-incubator .pods img:nth-child(2n) { animation-delay: -2s; }
@keyframes v2-pod { 50% { transform: translateY(-8px); } }
.amb-breed .g1 { background: radial-gradient(closest-side, rgba(255, 140, 210, .1), transparent); }
.amb-breed .g2 { background: radial-gradient(closest-side, rgba(110, 240, 150, .1), transparent); }
.amb-arena .g1 { background: radial-gradient(closest-side, rgba(255, 90, 70, .12), transparent); }
.amb-arena .g2 { background: radial-gradient(closest-side, rgba(110, 160, 255, .12), transparent); }
.amb-crt::before, .amb-mine::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(110, 240, 150, .025) 0 2px, transparent 2px 4px); }
.amb-mine .g1 { width: 90%; height: 90%; background: radial-gradient(closest-side, rgba(110, 240, 150, .12), transparent); }
html.v2-amb-quiet .v2-amb canvas, html.mx-hashing .v2-amb canvas { opacity: 0; }
html.mx-hashing .v2-amb *, html.mx-hashing .v2-amb::before { animation-play-state: paused !important; }

/* ================================================================== the full-screen practice smash */
html.v2-locked, html.v2-locked body { overflow: hidden; }
.moment.v2-take { z-index: 60; padding: 0; background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(110, 240, 150, .1), transparent 70%), rgba(3, 5, 4, .94); backdrop-filter: none; -webkit-backdrop-filter: none; opacity: 0; transition: opacity .25s; overflow: hidden; }
.moment.v2-take.in { opacity: 1; }
.moment.v2-take::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .22) 0 2px, transparent 2px 4px); pointer-events: none; }
.v2-take-tape { position: absolute; left: -10%; width: 120%; height: 34px; background: var(--hazard-tape); background-size: 48px 48px; border-block: 3px solid #000; box-shadow: 0 8px 20px rgba(0, 0, 0, .6); pointer-events: none; transform: rotate(-4deg) translateX(-100%); transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.v2-take-tape.a { top: 3vh; }
.v2-take-tape.b { bottom: 3vh; transform: rotate(3deg) translateX(100%); transition-delay: .06s; }
.v2-take.in .v2-take-tape.a { transform: rotate(-4deg); }
.v2-take.in .v2-take-tape.b { transform: rotate(3deg); }
.moment-card.v2-take-card { position: relative; width: min(880px, 94vw, calc((100svh - 340px) * 1.28)); min-width: min(320px, 94vw); background: none; border: 0; box-shadow: none; padding: 0; gap: 16px; color: var(--cream); transform: scale(.94); transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
.v2-take.in .v2-take-card { transform: none; }
.v2-take .scene-wrap.smash .scene { border-radius: 0; box-shadow: 0 0 0 3px #000, 0 0 0 10px #232b2a, 0 0 0 12px #000, 0 30px 80px rgba(0, 0, 0, .7), 0 0 120px rgba(110, 240, 150, .15); }
.v2-take .scene-body { gap: 10px; }
.v2-take .scene-body h2 { font: clamp(34px, 5vw, 64px) / .95 var(--display); text-transform: uppercase; color: var(--cream); margin: 0; text-shadow: 0 5px 0 rgba(0, 0, 0, .6); }
.v2-take .scene-body p { color: rgba(238, 230, 208, .75); margin: 0; max-width: 40em; }
.v2-take .scene-body .v2-k { font-size: 18px; color: var(--green); }
.v2-take .smash-meter { background: #050a07; border: 2px solid #000; border-radius: 0; box-shadow: 0 0 0 1px rgba(110, 240, 150, .3); }
.v2-take .smash-meter i { width: 26px; height: 14px; border-radius: 0; }
.v2-take .row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.v2-take-leg { background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(232, 196, 72, .2), transparent 70%), rgba(6, 4, 1, .95); }
.v2-take-leg::after { content: ''; position: absolute; left: 50%; top: 40%; width: 180vmax; height: 180vmax; transform: translate(-50%, -50%); background: repeating-conic-gradient(rgba(232, 196, 72, .1) 0 5deg, transparent 5deg 15deg); -webkit-mask: radial-gradient(circle, #000 4%, transparent 45%); mask: radial-gradient(circle, #000 4%, transparent 45%); animation: v2-spin 40s linear infinite; pointer-events: none; z-index: 0; }
@keyframes v2-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.v2-take-leg .scene-wrap.smash .scene { box-shadow: 0 0 0 3px #000, 0 0 0 10px var(--yellow), 0 0 0 12px #000, 0 0 140px rgba(232, 196, 72, .45); }
.v2-take-leg .legend-kicker { font: 22px / 1 var(--term); letter-spacing: .4em; color: var(--yellow); margin: 0; animation: v2-led 1s steps(1) infinite; }
.v2-take-leg .scene-body h2 { color: var(--yellow); text-shadow: 0 5px 0 #000, 0 0 40px rgba(232, 196, 72, .6); }
@media (max-width: 700px) { .v2-take-tape { height: 22px; } .moment-card.v2-take-card { width: 94vw; } .v2-take .scene-body p { font-size: 15px; } .v2-take .smash-meter i { width: 18px; } }

/* ================================================================== the app's own moments, upgraded */
.moment:not(.v2-take) { background: radial-gradient(ellipse at 50% 40%, rgba(110, 240, 150, .08), transparent 60%), rgba(3, 5, 4, .86); }
.moment-card:not(.v2-take-card) { border-radius: 0; border: 2px solid #000; border-top: 4px solid var(--yellow); box-shadow: 0 0 0 1px rgba(238, 230, 208, .1), 0 10px 0 #000, 0 30px 80px rgba(0, 0, 0, .6); }
.moment-card h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; font-size: clamp(30px, 4vw, 44px); line-height: .95; }
.moment:not(.v2-take):has(.scene-wrap.smash) .moment-card { width: min(640px, 100%); }
.moment .scene { border-radius: 0; box-shadow: 0 0 0 2px #000, 0 0 0 6px #232b2a, 0 0 0 8px #000; }
.moment .legend-kicker { font-family: var(--term); font-size: 22px; letter-spacing: .35em; color: var(--yellow); }
.moment:not(.v2-take):has(.legend-kicker) { background: radial-gradient(ellipse at 50% 40%, rgba(232, 196, 72, .18), transparent 60%), rgba(6, 4, 1, .9); }
.moment:not(.v2-take):has(.legend-kicker) .moment-card { border-top-color: var(--yellow); box-shadow: 0 0 0 2px var(--yellow), 0 10px 0 #000, 0 0 90px rgba(232, 196, 72, .35); }

/* ================================================================== app pages: CRT panels and bay signage */
.page-head { position: relative; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 0; }
.page-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--hazard-tape); background-size: 26px 26px; opacity: .85; border-block: 1px solid #000; }
.page-head h1.ph { font: clamp(46px, 6vw, 92px) / .9 var(--display); text-transform: uppercase; letter-spacing: .005em; color: var(--cream); text-shadow: 0 5px 0 rgba(0, 0, 0, .6); margin: 0 0 10px; }
.page-head h1.ph::before { display: block; font: 20px / 1 var(--term); letter-spacing: .14em; color: var(--green); margin-bottom: 12px; text-shadow: 0 0 10px rgba(110, 240, 150, .5); content: 'LAB // BAY'; width: auto; height: auto; background: none; box-shadow: none; text-transform: none; }
html[data-route='lab'] .page-head h1.ph::before { content: 'BAY 01 // SPECIMEN SHELVES'; }
html[data-route='breed'] .page-head h1.ph::before { content: 'BAY 02 // BREEDING CHAMBER'; }
html[data-route='nursery'] .page-head h1.ph::before { content: 'BAY 03 // INCUBATORS'; }
html[data-route='expeditions'] .page-head h1.ph::before { content: 'BAY 04 // DEPARTURES'; }
html[data-route='forge'] .page-head h1.ph::before { content: 'BAY 05 // FURNACE'; color: #ffb35a; text-shadow: 0 0 10px rgba(255, 140, 50, .6); }
html[data-route='explore'] .page-head h1.ph::before { content: 'ARCHIVE // ALL SPECIMENS'; }
html[data-route='discoveries'] .page-head h1.ph::before { content: 'ARCHIVE // FIRST DISCOVERIES'; color: var(--yellow); }
html[data-route='duel'] .page-head h1.ph::before { content: none; }
.page-head .kick { font: 20px / 1 var(--term); letter-spacing: .14em; text-transform: uppercase; color: #ff8a70; text-shadow: 0 0 10px rgba(255, 138, 112, .45); margin: 0 0 12px; }
html[data-route='live'] .page-head h1.ph::before { content: 'FEED // LIVE MINT'; }
.page-head .lede { font-size: 17px; color: rgba(238, 230, 208, .72); }
.box, .summary, .kpi, .panel-card, .supplies, .craft, .tree, .drawer, .titem, .dur, .ctl-panel {
  border: 2px solid #000; border-radius: 0;
  box-shadow: inset 0 0 0 1px rgba(238, 230, 208, .07), inset 0 1px 0 rgba(255, 255, 255, .06), 0 6px 0 #000;
}
.box, .summary, .kpi, .panel-card, .supplies, .craft, .tree { background: var(--rivets), repeating-linear-gradient(180deg, rgba(0, 0, 0, .14) 0 2px, transparent 2px 4px), linear-gradient(180deg, #19211f, #111816); }
.empty { border-radius: 0; border: 2px dashed rgba(110, 240, 150, .28); background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .14) 0 2px, transparent 2px 4px), rgba(9, 13, 12, .7); box-shadow: none; }
.supplies-head h2, .pc-head h2, .craft-head h3, .craft-head h2 { color: var(--yellow); }
.demo-note { border-radius: 0; border: 2px solid #000; border-left: 4px solid var(--green); }
.cubby { border-radius: 0; }
.rar { border-radius: 0; font-family: var(--term); font-size: 15px; padding: 2px 6px 1px; letter-spacing: .04em; box-shadow: inset 0 0 0 1px currentColor; }
.btn { border-radius: 0; }
.dur[aria-pressed='true'] { border-color: var(--green); box-shadow: 0 0 0 2px var(--green), 0 0 24px rgba(110, 240, 150, .25), 0 6px 0 #000; }
.ticker { border-bottom: 2px solid #000; }

/* ================================================================== reduced motion: a still, finished lab */
@media (prefers-reduced-motion: reduce) {
  .v2-hero { height: 100svh; }
  .v2-pin { position: relative; }
  .v2-hero *, .v2-amb *, .v2-ch *, .v2-take *, .v2-take { animation: none !important; transition: none !important; }
  .v2-ch.ch-mine, .v2-ch.ch-break, .v2-ch.ch-breed, .v2-ch.ch-forge, .v2-ch.ch-legend, .v2-ch.ch-exped { height: auto !important; }
  .v2-sticky { position: relative !important; height: auto !important; min-height: 0; overflow: hidden; padding: 90px 0 70px !important; }
  .ch-break .v2-sticky { min-height: 90svh; }
  .v2-traveler { display: none !important; }
  .v2-pan { width: auto; flex-wrap: wrap; transform: none !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 2px; }
  .v2-dest { flex: none; height: 320px; }
  .v2-dest.intro { grid-column: 1 / -1; height: auto; padding: 20px max(20px, calc(50vw - 600px)); }
  .v2-dest-bg img { transform: none !important; inset: 0; width: 100%; height: 100%; }
  .v2-dest-copy { padding: 0 24px 24px; }
  .v2-dest-copy h3 { font-size: clamp(40px, 5vw, 72px); }
  .v2-pan-bar, .v2-k + .v2-k, .ch-exped .v2-k { display: none; }
  .v2-hyb-track { transform: none !important; flex-wrap: wrap; width: auto; justify-content: center; }
  .v2-hyb-row { -webkit-mask: none; mask: none; }
  .v2-take-tape { transform: rotate(-4deg) !important; }
  .v2-take-tape.b { transform: rotate(3deg) !important; }
  .v2-take { opacity: 1 !important; }
}
@media (prefers-reduced-motion: reduce) {
  .ch-mine .v2-crt-slot .v2-anchor { background: url('../art/demo/205-jar.gif') center / contain no-repeat; image-rendering: pixelated; box-shadow: 0 0 0 2px #000; }
}
/* Breed: the pre-existing 123px mobile overflow (1fr tracks grew to the plate's min-content) */
.pair { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.pair .slot, .pair .cubby { min-width: 0; max-width: 100%; }
.pair .plate { max-width: 100%; white-space: normal; text-align: center; }
@media (max-width: 700px) { .pair { gap: 6px; } .pair .plate { font-size: 12px; } .pair .placeholder { font-size: 13px; } }
html.mx .v2-take-card.mx-card::after { display: none; }

/* ================================================================== /mine: bay signage only (the machine, its canvas and controls are untouched) */
.bay-head > div > h1 { font: clamp(48px, 6vw, 92px) / .9 var(--display); text-transform: uppercase; color: var(--cream); letter-spacing: .005em; text-shadow: 0 5px 0 rgba(0, 0, 0, .6); margin-top: 8px; }
.bay-head > div > h1::before { content: 'BAY 00 // SPECIMEN EXTRACTOR'; display: block; font: 20px / 1 var(--term); letter-spacing: .14em; color: var(--green); text-shadow: 0 0 10px rgba(110, 240, 150, .5); margin-bottom: 12px; }
html:has(#modeCrates[aria-current='page']) .bay-head > div > h1::before { content: 'BAY 00 // SUPPLY CRATES'; }
.bay-head > div > .lede { font-size: 17px; margin-top: 14px; }
.bay-head .modes { border-radius: 0; border: 2px solid #000; box-shadow: 0 4px 0 #000; }
.bay-head .modes a { border-radius: 0; font-family: var(--term); font-size: 20px; letter-spacing: .06em; font-weight: 400; padding: 4px 14px 3px; }
.machine, .machine-cv { border-radius: 0; }
.tickets .ticket-x, .logbook .feed { border-radius: 0; }

/* ================================================================== 404 */
.lost h1 { font: clamp(44px, 6vw, 84px) / .95 var(--display); text-transform: uppercase; color: var(--cream); text-shadow: 0 5px 0 rgba(0, 0, 0, .6); }
.lost .eyebrow { font: 20px / 1 var(--term); letter-spacing: .14em; text-transform: uppercase; color: var(--green); }

/* ------------------------------------------------------------------ v3: no clipped words anywhere */
/* name plates wrap instead of ellipsizing */
.plate { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: break-word; text-wrap: balance; }
.grid.small .plate, .hero-cab .plate, .recipe .plate, .tlist .plate { line-height: 1.1; }
/* home forge chapter: material names wrap rather than truncate */
.v2-ore figcaption { overflow: visible; text-overflow: clip; white-space: normal; line-height: 1; overflow-wrap: break-word; }
/* hero: the containment label sits on the tank cap, where the conveyor never passes in front of it */
.v2-base { font-size: 0; }
.v2-cap::after { content: 'Containment 01 \00B7  Legendary'; position: absolute; z-index: 3; left: 50%; top: 100%; transform: translate(-50%, -35%); white-space: nowrap; font: calc(17 * var(--u)) / 1 var(--term); color: var(--yellow); text-transform: uppercase; letter-spacing: .04em; background: #0b0f0e; border: calc(2 * var(--u)) solid #000; padding: calc(4 * var(--u)) calc(9 * var(--u)) calc(3 * var(--u)); text-shadow: 0 0 calc(8 * var(--u)) rgba(232, 196, 72, .55); }
/* shelf tags on jars that bleed off the edge of the screen are hidden instead of half-cut */
.v2-cell.v2-edge .v2-tag { visibility: hidden; }
/* medium widths: stats fold to two columns so they never run under the tank */
@media (min-width: 701px) and (max-width: 1180px) {
  .v2-hero-copy { width: min(560px, 46vw); }
  .v2-facts { grid-template-columns: repeat(2, auto); }
  .v2-facts div:nth-child(3) { border-left: 0; }
  .v2-facts div:nth-child(n+3) { border-top: 1px solid rgba(110, 240, 150, .18); }
  .v2-facts dd { font-size: 34px; }
}
/* phones: the hint sits left, the sound toggle right, never on top of each other */
@media (max-width: 700px) {
  .v2-hint { left: 14px; right: auto; transform: none; font-size: 16px; padding: 7px 10px 6px; letter-spacing: .05em; max-width: calc(100% - 150px); white-space: normal; }
  html:not([data-route='home']) .v2-snd { font-size: 0; gap: 0; padding: 9px; }
  html:not([data-route='home']) .v2-snd i { width: 18px; height: 16px; }
}
@media (max-width: 400px) {
  .top .wrap { gap: 8px; flex-wrap: nowrap; }
  .mark { font-size: 1.45rem; gap: 6px; }
  .mark img { width: 26px; height: 26px; }
  .navtoggle { padding: 6px 10px; font-size: 18px; }
  .wallet-btn { font-size: 17px !important; padding: 6px 10px 5px !important; }
}
/* 80/20 split: labels live under the bar so the narrow 20% segment never cuts its words */
.v2-split-bar { margin-bottom: 36px; }
.v2-split-bar i { position: relative; overflow: visible; }
.v2-split-bar em { position: absolute; top: calc(100% + 9px); left: -2px; font: inherit; font-style: normal; color: var(--cream); white-space: nowrap; letter-spacing: .04em; }
.v2-split-bar i + i em { left: auto; right: -2px; }
/* chapter rail: names show on hover/focus only, so the active name never sits over chapter copy */
.v2-rail-nav a.on span { opacity: 0; transform: translateX(-6px); }
.v2-rail-nav a:hover span, .v2-rail-nav a:focus-visible span { opacity: 1; transform: none; }

/* ================================================================== v3: illustrated page banners (real site art, light motion) */
.v2-bn { --bh: clamp(140px, 15vw, 200px); position: relative; height: var(--bh); margin: 2px 0 26px; border: 3px solid #000; background: radial-gradient(120% 140% at 50% 120%, rgba(63, 220, 127, .12), transparent 60%), #070b0a; overflow: hidden; box-shadow: 0 6px 0 #000, inset 0 0 0 1px rgba(110, 240, 150, .2); contain: layout paint; pointer-events: none; user-select: none; }
.v2-bn::before { content: ''; position: absolute; inset: 0; z-index: 8; background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .22) 0 2px, transparent 2px 4px), radial-gradient(130% 100% at 50% 50%, transparent 55%, rgba(0, 0, 0, .55)); }
.v2-bn::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; z-index: 9; background: repeating-linear-gradient(-45deg, var(--yellow) 0 10px, #0b0f0e 10px 20px); border-top: 2px solid #000; }
.v2-bn img { image-rendering: pixelated; display: block; }
.bn-plate { position: absolute; z-index: 10; left: 12px; top: 10px; font: 18px / 1 var(--term); letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); background: #0b0f0e; border: 2px solid #000; padding: 5px 9px 4px; white-space: nowrap; box-shadow: 0 3px 0 #000; }
.bn-plate::before { content: ''; display: inline-block; width: 8px; height: 8px; margin: 0 8px 1px 0; background: var(--green); box-shadow: 0 0 8px var(--green); animation: bn-blink 2s steps(2, jump-none) infinite; animation-delay: var(--d); }
.v2-bn.bn-off *, .v2-bn.bn-off *::before, .v2-bn.bn-off *::after, html.mx-hashing .v2-bn *, html.mx-hashing .v2-bn *::before, html.mx-hashing .v2-bn *::after { animation-play-state: paused !important; }
@keyframes bn-blink { 50% { opacity: .25; } }
@keyframes bn-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes bn-pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes bn-sweep { from { transform: translateX(-100%); } to { transform: translateX(400%); } }
@keyframes bn-spin { to { transform: rotate(360deg); } }
@keyframes bn-loop { to { transform: translateX(-50%); } }

/* lab: a shelf of genesis jars under a scanner */
.bn-shelf { position: absolute; left: 0; right: 0; bottom: 30px; display: flex; justify-content: center; align-items: flex-end; gap: clamp(8px, 1.6vw, 22px); }
.bn-jar { position: relative; flex: none; width: clamp(66px, 8vw, 116px); animation: bn-bob 4s ease-in-out infinite; animation-delay: calc(var(--d) - var(--i) * .45s); }
.bn-jar img { position: relative; z-index: 1; width: 100%; height: auto; border: 2px solid #000; box-shadow: 0 4px 0 #000; }
.bn-jar::before { content: ''; position: absolute; left: -12%; right: -12%; top: 10%; bottom: -18%; background: radial-gradient(closest-side, rgba(63, 220, 127, .55), transparent); animation: bn-pulse 3s ease-in-out infinite; animation-delay: calc(var(--d) - var(--i) * .7s); }
.bn-jar.g1::before { background: radial-gradient(closest-side, rgba(255, 210, 63, .55), transparent); }
.bn-jar.g2::before { background: radial-gradient(closest-side, rgba(150, 200, 255, .45), transparent); }
.bn-plank { position: absolute; left: 0; right: 0; bottom: 8px; height: 22px; background: linear-gradient(#7a5530, #3b2814); border-top: 3px solid #000; z-index: 2; }
.bn-beam { position: absolute; z-index: 3; top: 0; bottom: 0; left: 0; width: 25%; background: linear-gradient(90deg, transparent, rgba(110, 240, 150, .16) 45%, rgba(190, 255, 215, .3) 50%, rgba(110, 240, 150, .16) 55%, transparent); animation: bn-sweep 8s linear infinite; animation-delay: var(--d); }

/* breed: two chambers, a sealed jar between, DNA strands linking them */
.bn-breed { display: flex; align-items: center; justify-content: center; gap: 0; padding-top: 18px; }
.bn-ch { position: relative; z-index: 2; flex: none; width: clamp(78px, 9.5vw, 128px); aspect-ratio: 1; border: 3px solid #000; box-shadow: 0 0 0 2px rgba(110, 240, 150, .45), 0 0 26px rgba(63, 220, 127, .35); animation: bn-bob 5s ease-in-out infinite; animation-delay: var(--d); }
.bn-ch img { width: 100%; height: 100%; }
.bn-ch::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .16), transparent 40%), linear-gradient(0deg, rgba(63, 220, 127, .18), transparent 60%); }
.bn-ch.r img { transform: scaleX(-1); }
.bn-ch.r { animation-delay: calc(var(--d) - 2.5s); }
.bn-ch.m { width: clamp(60px, 6.5vw, 88px); background: #0b0f0e; box-shadow: 0 0 0 2px rgba(255, 210, 63, .5), 0 0 30px rgba(255, 210, 63, .35); animation: bn-pulse 3s ease-in-out infinite; animation-delay: var(--d); }
.bn-dna { position: relative; flex: 0 1 clamp(70px, 14vw, 210px); height: 70px; display: flex; justify-content: space-between; align-items: center; padding: 0 6px; }
.bn-dna i { position: relative; width: 4px; height: 100%; }
.bn-dna i::before { content: ''; position: absolute; left: 1px; top: 22%; bottom: 22%; width: 2px; background: rgba(110, 240, 150, .25); }
.bn-dna b { position: absolute; left: -1px; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--green); box-shadow: 0 0 8px var(--green); animation: bn-hx 2.4s ease-in-out infinite alternate; animation-delay: calc(var(--d) - var(--i) * .17s); }
.bn-dna b + b { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); animation-name: bn-hx2; }
@keyframes bn-hx { from { transform: translateY(-26px); } to { transform: translateY(26px); } }
@keyframes bn-hx2 { from { transform: translateY(26px); } to { transform: translateY(-26px); } }

/* nursery: incubator pods inside turning rings */
.bn-pods { position: absolute; inset: 22px 0 14px; display: flex; justify-content: center; align-items: center; gap: clamp(10px, 3vw, 46px); }
.bn-pod { position: relative; flex: none; width: clamp(84px, 9.5vw, 124px); aspect-ratio: 1; display: grid; place-items: center; }
.bn-pod img { width: 62%; height: auto; position: relative; z-index: 2; animation: bn-bob 4s ease-in-out infinite; animation-delay: calc(var(--d) - var(--i) * .8s); }
.bn-pod i { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(110, 240, 150, .55); animation: bn-spin 24s linear infinite; animation-delay: var(--d); }
.bn-pod i.r2 { inset: 11%; border: 3px dotted rgba(255, 210, 63, .6); animation-duration: 15s; animation-direction: reverse; }
.bn-pod::after { content: ''; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(63, 220, 127, .35), transparent); animation: bn-pulse 3s ease-in-out infinite; animation-delay: calc(var(--d) - var(--i) * .6s); }

/* expeditions: the six destinations on a route with a travelling marker */
.bn-route { position: absolute; inset: 26px 4% 16px; display: flex; justify-content: space-between; align-items: center; }
.bn-path { position: absolute; left: 2%; right: 2%; top: 50%; border-top: 3px dashed rgba(255, 210, 63, .55); }
.bn-pin { position: absolute; left: 2%; right: 2%; top: 50%; height: 0; z-index: 1; animation: bn-trek 20s linear infinite; animation-delay: var(--d); }
.bn-pin::after { content: ''; position: absolute; right: -8px; top: -9px; width: 14px; height: 14px; background: var(--green); border: 2px solid #000; box-shadow: 0 0 14px var(--green); }
@keyframes bn-trek { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.bn-stop { position: relative; z-index: 2; flex: none; width: clamp(66px, 8.4vw, 116px); aspect-ratio: 1; border: 3px solid #000; box-shadow: 0 4px 0 #000; animation: bn-bob 5s ease-in-out infinite; animation-delay: calc(var(--d) - var(--i) * .6s); }
.bn-stop img { width: 100%; height: 100%; }

/* forge: hammer rack, a hammer striking the anvil, a belt of materials */
.bn-rack { position: absolute; left: 4%; top: 46px; bottom: 30px; display: flex; gap: 10px; align-items: flex-start; }
.bn-hang { width: clamp(48px, 5vw, 70px); transform-origin: 50% 0; animation: bn-swing 4s ease-in-out infinite; animation-delay: calc(var(--d) - var(--i) * .9s); }
.bn-hang img { width: 100%; height: auto; }
@keyframes bn-swing { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.bn-anvil { position: absolute; left: 50%; bottom: 24px; width: clamp(130px, 14vw, 190px); height: 80%; transform: translateX(-50%); }
.bn-block { position: absolute; left: 6%; right: 6%; bottom: 0; height: 40%; background: linear-gradient(#59605d, #2b302e); border: 3px solid #000; clip-path: polygon(0 0, 100% 0, 88% 42%, 80% 42%, 86% 100%, 14% 100%, 20% 42%, 12% 42%); }
.bn-strike { position: absolute; left: 38%; bottom: 30%; width: 56%; transform-origin: 85% 85%; animation: bn-hit 1.6s cubic-bezier(.5, 0, .9, .4) infinite; animation-delay: var(--d); z-index: 2; }
.bn-strike img { width: 100%; height: auto; }
@keyframes bn-hit { 0%, 55% { transform: rotate(35deg); } 70% { transform: rotate(-6deg); } 76% { transform: rotate(0); } 100% { transform: rotate(35deg); } }
.bn-spark { position: absolute; left: 44%; bottom: 40%; width: 5px; height: 5px; background: #ffe08a; box-shadow: 0 0 8px #ff9a3c; opacity: 0; animation: bn-spark 1.6s ease-out infinite; animation-delay: var(--d); z-index: 3; }
.bn-spark.s2 { background: #ff9a3c; --sx: -34px; --sy: -30px; } .bn-spark.s1 { --sx: 30px; --sy: -36px; } .bn-spark.s3 { --sx: 46px; --sy: -14px; } .bn-spark.s4 { --sx: -48px; --sy: -10px; }
@keyframes bn-spark { 0%, 70% { opacity: 0; transform: translate(0, 0); } 72% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--sx, 20px), var(--sy, -20px)); } }
.bn-mats { position: absolute; right: 0; width: 34%; top: 50px; bottom: 30px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%); mask-image: linear-gradient(90deg, transparent, #000 25%); }
.bn-mtrack { display: flex; gap: 10px; width: max-content; height: 100%; align-items: center; animation: bn-loop 26s linear infinite; animation-delay: var(--d); }
.bn-mtrack img { width: clamp(46px, 4.4vw, 62px); height: auto; border: 2px solid #000; }
.bn-heat { position: absolute; left: 30%; right: 30%; bottom: 0; height: 70%; background: radial-gradient(60% 70% at 50% 100%, rgba(255, 120, 40, .4), transparent 70%); animation: bn-pulse 2.4s ease-in-out infinite; animation-delay: var(--d); }

/* explore: the real 1,000-jar genesis sheet scrolling under a scanner */
.bn-sheet { position: absolute; left: 0; top: 0; bottom: 0; display: flex; width: max-content; animation: bn-loop 90s linear infinite; animation-delay: var(--d); opacity: .8; }
.bn-sheet i { display: block; width: 1920px; height: 100%; background: url('../art/genesis-sheet.png') 0 -432px / 1920px auto; image-rendering: pixelated; }
.bn-scan { position: absolute; z-index: 3; top: 0; bottom: 0; left: 0; width: 25%; background: linear-gradient(90deg, transparent, rgba(110, 240, 150, .2) 47%, rgba(200, 255, 220, .55) 50%, rgba(110, 240, 150, .2) 53%, transparent); animation: bn-sweep 7s linear infinite; animation-delay: var(--d); }

/* discoveries: gold frames for the found, silhouettes for the still hidden */
.bn-hall { position: absolute; inset: 26px 0 16px; display: flex; justify-content: center; align-items: center; gap: clamp(8px, 1.6vw, 22px); }
.bn-frame { position: relative; flex: none; width: clamp(68px, 8vw, 112px); aspect-ratio: 1; border: 3px solid #ffd23f; outline: 3px solid #000; box-shadow: 0 0 24px rgba(255, 210, 63, .35); animation: bn-bob 5s ease-in-out infinite; animation-delay: calc(var(--d) - var(--i) * .5s); }
.bn-frame img { width: 100%; height: 100%; }
.bn-frame.unk { border-color: #4a4f4c; background: #101413; box-shadow: none; }
.bn-frame.unk img { opacity: .45; }
.bn-frame b { position: absolute; inset: 0; display: grid; place-items: center; font: 400 clamp(30px, 3.6vw, 48px) / 1 var(--display); color: var(--yellow); text-shadow: 3px 3px 0 #000; animation: bn-pulse 2.4s ease-in-out infinite; animation-delay: calc(var(--d) - var(--i) * .4s); }
.bn-spot { position: absolute; z-index: 3; top: 0; bottom: 0; left: 0; width: 25%; background: radial-gradient(50% 70% at 50% 40%, rgba(255, 225, 140, .2), transparent); animation: bn-sweep 10s ease-in-out infinite alternate; animation-delay: var(--d); }

/* duel: two fighters, VS, spotlights */
.bn-fighter { position: absolute; z-index: 2; top: 50%; width: clamp(88px, 11vw, 148px); aspect-ratio: 1; margin-top: calc(clamp(88px, 11vw, 148px) / -2 + 6px); border: 3px solid #000; box-shadow: 0 0 0 2px rgba(238, 230, 208, .3), 0 6px 0 #000; animation: bn-bob 3s ease-in-out infinite; animation-delay: var(--d); }
.bn-fighter img { width: 100%; height: 100%; }
.bn-fighter.l { left: calc(32% - clamp(88px, 11vw, 148px) / 2); }
.bn-fighter.r { right: calc(32% - clamp(88px, 11vw, 148px) / 2); animation-delay: calc(var(--d) - 1.5s); }
.bn-fighter.r img { transform: scaleX(-1); }
.bn-vs { position: absolute; z-index: 3; left: 50%; top: 50%; margin: -.5em 0 0 -.62em; font: 400 clamp(46px, 6vw, 88px) / 1 var(--display); color: var(--yellow); text-shadow: 4px 4px 0 #000, 0 0 30px rgba(255, 210, 63, .5); animation: bn-vs 1.8s ease-in-out infinite; animation-delay: var(--d); }
@keyframes bn-vs { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.bn-cone { position: absolute; top: -10%; width: 34%; height: 130%; background: linear-gradient(180deg, rgba(255, 240, 200, .22), transparent 80%); clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); animation: bn-pulse 4s ease-in-out infinite; animation-delay: var(--d); }
.bn-cone.l { left: 15%; } .bn-cone.r { right: 15%; animation-delay: calc(var(--d) - 2s); }

/* live: a small CRT monitor */
.bn-crt { position: absolute; inset: 46px 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.bn-term p { margin: 0; font: 19px / 1.25 var(--term); color: var(--green); text-transform: uppercase; letter-spacing: .04em; text-shadow: 0 0 8px rgba(63, 220, 127, .6); white-space: nowrap; }
.bn-cur { display: inline-block; width: 10px; height: 16px; vertical-align: -2px; background: var(--green); animation: bn-blink 1s steps(2, jump-none) infinite; animation-delay: var(--d); }
.bn-scope { position: relative; flex: none; height: 100%; aspect-ratio: 1; border: 3px solid #000; box-shadow: 0 0 0 2px rgba(110, 240, 150, .4), 0 0 24px rgba(63, 220, 127, .3); overflow: hidden; }
.bn-scope img { width: 100%; height: 100%; }
.bn-scope i { position: absolute; left: 0; right: 0; top: 0; height: 18%; background: linear-gradient(180deg, transparent, rgba(110, 240, 150, .45), transparent); animation: bn-scan 3s linear infinite; animation-delay: var(--d); }
@keyframes bn-scan { from { transform: translateY(-100%); } to { transform: translateY(560%); } }

/* mine: the output belt (jars, or crates on ?forge=1); holds still while hashing */
.v2-bn.bn-mine { --bh: clamp(118px, 11vw, 150px); margin: 0 0 22px; }
.bn-belt { position: absolute; left: 0; right: 0; bottom: 30px; top: 42px; overflow: hidden; }
.bn-btrack { display: flex; gap: clamp(14px, 2vw, 30px); width: max-content; height: 100%; align-items: flex-end; animation: bn-loop 40s linear infinite; animation-delay: var(--d); }
.bn-item { flex: none; width: clamp(56px, 5.6vw, 78px); }
.bn-item img { width: 100%; height: auto; border: 2px solid #000; }
.bn-rollers { position: absolute; left: 0; right: 0; bottom: 8px; height: 22px; background: repeating-linear-gradient(90deg, #2b302e 0 18px, #1a1e1d 18px 22px); border-top: 3px solid #000; }

/* jump chips (lab, forge) */
.v2-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 24px; }
.v2-chip { display: inline-flex; align-items: center; gap: 8px; font: 18px / 1 var(--term); text-transform: uppercase; letter-spacing: .04em; color: var(--cream); text-decoration: none; background: #0b0f0e; border: 2px solid #000; box-shadow: 0 3px 0 #000, inset 0 0 0 1px rgba(110, 240, 150, .2); padding: 7px 11px 6px; transition: transform .15s, box-shadow .15s; }
.v2-chip b { font-weight: 400; color: #1b1405; background: var(--yellow); padding: 2px 6px 1px; }
.v2-chip:hover, .v2-chip:focus-visible { transform: translateY(-2px); box-shadow: 0 5px 0 #000, inset 0 0 0 1px var(--green); color: var(--green); }
[id^='v2s-'] { scroll-margin-top: 96px; }

/* ------------------------------------------------------------------ v3: page ideas (CSS on markup the app already renders) */
/* breed: the + between the parents becomes a fusion line */
.breed .pair .plus { position: relative; }
.breed .pair .plus::before { content: ''; position: absolute; left: -14px; right: -14px; top: 50%; height: 3px; margin-top: -1px; background: linear-gradient(90deg, var(--green), var(--yellow), var(--green)); box-shadow: 0 0 12px rgba(63, 220, 127, .6); opacity: .55; animation: bn-pulse 2.4s ease-in-out infinite; z-index: -1; }
/* nursery: sealed jars sit in turning incubator rings */
html[data-route='nursery'] .cabinet.grid > div:has(> [data-unseal]) .cubby { position: relative; }
html[data-route='nursery'] .cabinet.grid > div:has(> [data-unseal]) .cubby::after { content: ''; position: absolute; left: 50%; top: 44%; width: 78%; aspect-ratio: 1; margin: -39% 0 0 -39%; border-radius: 50%; border: 2px dashed rgba(110, 240, 150, .55); pointer-events: none; animation: bn-spin 20s linear infinite; }
/* expeditions: the chosen trip length gets a ticking dial */
html[data-route='expeditions'] .dur { position: relative; }
html[data-route='expeditions'] .dur::after { content: ''; position: absolute; right: 10px; top: 10px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; opacity: .5; background: linear-gradient(currentColor, currentColor) 50% 1px / 2px 7px no-repeat; }
html[data-route='expeditions'] .dur[aria-pressed='true']::after { opacity: 1; animation: bn-spin 4s linear infinite; }
/* forge: recipe cards */
html[data-route='forge'] .craft { position: relative; border-top: 0 !important; background-image: linear-gradient(180deg, rgba(255, 210, 63, .06), transparent 60px); }
html[data-route='forge'] .craft::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 8px, #0b0f0e 8px 16px); }
html[data-route='forge'] .craft .craft-head img { background: #0b0f0e; border: 2px solid #000; box-shadow: 0 0 16px rgba(255, 150, 60, .35); }
/* collection grids lift under the pointer */
@media (hover: hover) {
  html[data-route='explore'] .grid .card, html[data-route='discoveries'] .legend-card, html[data-route='lab'] .cabinet .card { transition: transform .18s; }
  html[data-route='explore'] .grid .card:hover, html[data-route='discoveries'] .legend-card:hover, html[data-route='lab'] .cabinet .card:hover { transform: translateY(-4px); }
}
/* empty states: real art and the existing call to action */
.page .empty:not(.dcard):not(.tnode) { position: relative; padding-right: 168px; min-height: 150px; align-content: center; }
.page .empty:not(.dcard):not(.tnode)::before { content: ''; position: absolute; right: 30px; top: 50%; width: 104px; height: 104px; margin-top: -52px; background: var(--empty-art, url('../art/sealed.gif')) center / contain no-repeat; image-rendering: pixelated; border: 3px solid #000; box-shadow: 0 0 0 2px rgba(110, 240, 150, .35), 0 0 26px rgba(63, 220, 127, .25); animation: bn-bob 4s ease-in-out infinite; }
html[data-route='lab'] { --empty-art: url('../art/steps/jar.gif'); }
html[data-route='breed'] { --empty-art: url('../art/demo/205-jar.gif'); }
html[data-route='nursery'] { --empty-art: url('../art/pod.png'); }
html[data-route='expeditions'] { --empty-art: url('../art/dest/0.gif'); }
html[data-route='tree'] { --empty-art: url('../art/lost.png'); }

@media (max-width: 700px) {
  .v2-bn { --bh: 142px; margin-bottom: 20px; }
  .bn-plate { font-size: 16px; left: 8px; top: 8px; }
  .bn-rack { display: none; }
  .bn-anvil { left: 30%; }
  .bn-mats { width: 46%; }
  .bn-route .bn-stop:nth-child(n+7) { display: none; }
  .bn-route { inset: 34px 3% 14px; }
  .bn-stop { width: 60px; }
  .bn-hall .bn-frame:nth-child(n+5) { display: none; }
  .bn-frame { width: 58px; }
  .bn-pod { width: 74px; }
  .bn-pods .bn-pod:nth-child(n+4) { display: none; }
  .bn-ch { width: 68px; } .bn-ch.m { width: 52px; }
  .bn-fighter { width: 84px; margin-top: -36px; } .bn-fighter.l { left: 7%; } .bn-fighter.r { right: 7%; }
  .bn-dna { flex-basis: 54px; height: 54px; }
  .bn-dna i:nth-child(n+8) { display: none; }
  .bn-term p { font-size: 15px; }
  .bn-crt { inset: 40px 10px 16px; gap: 10px; }
  .page .empty:not(.dcard):not(.tnode) { padding-right: 24px; padding-top: 118px; }
  .page .empty:not(.dcard):not(.tnode)::before { right: auto; left: 24px; top: 24px; margin-top: 0; width: 76px; height: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  .v2-bn *, .v2-bn *::before, .v2-bn *::after, .breed .pair .plus::before, html[data-route] .cubby::after, html[data-route='expeditions'] .dur::after, .page .empty::before { animation: none !important; }
  .v2-chip, html[data-route] .card, .legend-card { transition: none !important; }
}
/* v3 banner tuning */
.bn-anvil { width: clamp(180px, 19vw, 250px); bottom: 30px; height: calc(100% - 44px); }
.bn-block { height: 44%; }
.bn-strike { width: 46%; left: 40%; bottom: 34%; }
.bn-rack { top: 52px; gap: 16px; }
.bn-hang { width: clamp(56px, 6vw, 84px); }
.bn-wave { flex: 1 1 auto; align-self: stretch; display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; overflow: hidden; }
.bn-wave i { flex: none; width: 6px; height: 70%; background: linear-gradient(180deg, transparent, var(--green) 30%, var(--green) 70%, transparent); opacity: .7; transform: scaleY(.2); animation: bn-wave 1.6s ease-in-out infinite alternate; animation-delay: calc(var(--d) - var(--i) * .13s); }
.bn-wave i:nth-child(3n) { background: linear-gradient(180deg, transparent, var(--yellow) 30%, var(--yellow) 70%, transparent); }
@keyframes bn-wave { from { transform: scaleY(.15); } to { transform: scaleY(.9); } }
@media (max-width: 700px) { .bn-anvil { left: 6px; transform: none; width: 132px; } .bn-mats { width: 52%; } .bn-wave { display: none; } }
/* v3 clip pass 2 */
.v2-scanner span { visibility: hidden; } /* decorative label slid under the hero lede */
.v2-out { z-index: 6; } /* reveal text sits above flying shards */
.v2-take .mx-tape-b { bottom: 1.2vh; } .v2-take .mx-tape-a { top: 1.2vh; }
@media (max-width: 700px) {
  .v2-legs { margin-bottom: 26px; row-gap: 14px; }
  .v2-leg { opacity: clamp(0, calc(var(--p, 0) * 10 - var(--i) * .3), 1); transform: translateY(calc((1 - clamp(0, calc(var(--p, 0) * 10 - var(--i) * .3), 1)) * 40px)); }
}
.ch-break.out .v2-out { opacity: clamp(0, calc((var(--q) - .55) * 2.3), 1); } /* reveal once the shards have cleared */
@media (max-width: 1360px) { .v2-rail-nav { display: none; } } /* rail overlapped chapter copy below 1360 */
/* v3: duel card names never ellipsize */
.dcard .nm { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: break-word; hyphens: auto; text-wrap: balance; }
@media (max-width: 400px) { .dcard.mini .nm { font-size: 0.64rem; letter-spacing: -0.01em; } }
@media (max-width: 560px) { .deck-row { gap: 12px 11px; } .dcard.mini .cost, .dcard.mini .pow { width: 19px; height: 19px; font-size: 11px; top: -5px; } .dcard.mini .cost { left: -4px; } .dcard.mini .pow { right: -4px; } }
