/* Gold Below: the descent. The game's palette (src/render/colors.ts), its own pixel faces, its bronze panels.
   The 3D layer (js/vault.js) draws behind everything; html.gl means it's running and mirrors the sprites. */

@font-face { font-family: 'Gold Below Display'; src: url(/fonts/goldbelow-display.woff2) format('woff2'); font-display: block; }
@font-face { font-family: 'Gold Below Body'; src: url(/fonts/goldbelow-body.woff2) format('woff2'); font-display: block; }
@font-face { font-family: 'Barlow'; src: url(/fonts/barlow-regular.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url(/fonts/barlow-condensed-semibold.woff2) format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --void: #0a0806; --bg: #0b0907; --panel: #2a2119; --panel-hi: #372c22; --line: #6e5638; --line-hi: #8f7350;
  --text: #e0d3bb; --dim: #c2b196; --hi: #fbf5ea; --gold: #f7b93e; --gold-hi: #ffd873; --gold-dark: #8a5516;
  --hp: #e8455e; --hp-text: #ff6b84; --armor: #9fb7d4; --mana: #4d8dff;
  --r0: #b0a596; --r1: #86e05a; --r2: #58c0ff; --r3: #ea6af0; --r4: #ffc34a; --r5: #ff5c6c; --r6: #ffe9a8;
  --f0: #413b35; --f1: #274d29; --f2: #1a3e6a; --f3: #501f5c; --f4: #70411a; --f5: #611828; --f6: #8a5a12;
  --gutter: clamp(16px, 4vw, 48px);
  --bar-h: 64px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--void); scroll-padding-top: calc(var(--bar-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--void); color: var(--text); font: 18px/1.62 Barlow, system-ui, sans-serif; overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--gold-hi); }
a:hover { color: var(--hi); }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 4px; border-radius: 2px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 50; background: var(--gold); color: #1a0f04; padding: 10px 14px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* pixels stay pixels */
.sprite, [data-vx], .crowd img, .beats img, .plate img, .hero-card img, .you-row img, .bar-home img, .foot img { image-rendering: pixelated; image-rendering: crisp-edges; }

/* the game's faces: display headings engraved in brass, labels in the body face */
.display { font-family: 'Gold Below Display', 'Barlow Condensed', sans-serif; font-weight: 400; letter-spacing: 0; text-transform: none; }
h2.display, .play-title { font-size: 40px; line-height: 1.15; margin: 0 0 18px; color: var(--gold);
  background: linear-gradient(180deg, #fff6d6 0 14%, #ffd873 14% 38%, #f7b93e 38% 66%, #c47a1e 66% 86%, #8a5516 86% 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #2a1404) drop-shadow(0 0 1px #000) drop-shadow(0 6px 18px rgba(247, 185, 62, .18)); }
@media (min-width: 900px) { h2.display, .play-title { font-size: 60px; } }
.eyebrow { font: 20px/1.2 'Gold Below Body', monospace; color: var(--gold); margin: 0 0 14px; letter-spacing: 0; }
p { margin: 0 0 16px; max-width: 62ch; }

/* the 3D vault, and the dark at its edges */
.vault { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; display: block; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
html.gl .vault { opacity: 1; }
.vignette { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, transparent 35%, rgba(10, 8, 6, .55) 70%, rgba(10, 8, 6, .92) 100%); }
main, .foot { position: relative; z-index: 1; }

/* with the vault running, the voxels stand where the sprites were */
html.gl [data-vx] { opacity: 0; }
html.gl [data-vx].vx-flat { opacity: 1; transition: opacity .25s; }

/* ---------- the bar ---------- */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: var(--bar-h); display: flex; align-items: center; gap: 18px;
  padding: 0 var(--gutter); padding-top: env(safe-area-inset-top); height: calc(var(--bar-h) + env(safe-area-inset-top));
  background: linear-gradient(180deg, rgba(10, 8, 6, .92), rgba(10, 8, 6, .7) 70%, transparent); transition: background .3s; }
.bar.solid { background: rgba(10, 8, 6, .94); box-shadow: 0 1px 0 rgba(110, 86, 56, .5); }
.bar-home img { width: 60px; height: auto; display: block; }
.bar-nav { display: flex; gap: 22px; margin-left: 12px; }
.bar-nav a { font: 20px/1 'Gold Below Body', monospace; color: var(--dim); text-decoration: none; padding: 8px 0; }
.bar-nav a:hover, .bar-nav a.on { color: var(--gold-hi); }
.sound { margin-left: auto; display: flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); color: var(--dim);
  font: 20px/1 'Gold Below Body', monospace; padding: 9px 12px; cursor: pointer; border-radius: 2px; min-height: 44px; }
.sound:hover { color: var(--hi); border-color: var(--line-hi); }
.sound-icon { width: 14px; height: 14px; background: currentColor; clip-path: polygon(0 35%, 30% 35%, 65% 5%, 65% 95%, 30% 65%, 0 65%); }
.sound[aria-pressed='true'] { color: var(--gold-hi); border-color: var(--gold-dark); }
.bar-cta { min-height: 44px; }
@media (max-width: 1060px) { .bar-nav { display: none; } }
@media (max-width: 560px) { .sound-label { display: none; } .sound { padding: 9px 12px; } .bar { gap: 10px; } .bar-home img { width: 52px; } }

/* ---------- buttons, the game's ---------- */
.btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; cursor: pointer;
  font: 600 18px/1 'Barlow Condensed', sans-serif; letter-spacing: .02em; padding: 12px 20px; border-radius: 3px; border: 0; transition: transform .08s, filter .15s; }
.btn:active { transform: translateY(2px); }
.btn-gold { background: var(--gold); color: #1d1004;
  box-shadow: inset 0 2px 0 var(--gold-hi), inset 0 -3px 0 #b06a1c, 0 3px 0 #3a1f06, 0 8px 24px rgba(247, 185, 62, .22); }
.btn-gold:hover { filter: brightness(1.08); color: #1d1004; }
.btn-dark { background: var(--panel); color: var(--hi); box-shadow: inset 0 0 0 2px var(--line), inset 0 2px 0 2px var(--panel-hi), 0 3px 0 #000; }
.btn-dark:hover { color: var(--hi); box-shadow: inset 0 0 0 2px var(--line-hi), inset 0 2px 0 2px var(--panel-hi), 0 3px 0 #000; }
.ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin: 26px 0 14px; }
.fine { font-size: 15px; color: var(--dim); }

/* ---------- panels, bronze like the game's cards ---------- */
.panel, .hero-card, .play, .keeper-copy, .run-copy, .merge-copy, .read-copy, .heroes-copy, .hoard-copy {
  background: linear-gradient(180deg, rgba(42, 33, 25, .9), rgba(28, 22, 16, .9));
  box-shadow: inset 0 0 0 2px var(--line), inset 0 3px 0 2px rgba(143, 115, 80, .35), 0 18px 50px rgba(0, 0, 0, .5);
  border-radius: 4px; padding: clamp(20px, 3vw, 34px); }
html:not(.gl) .run-copy, html:not(.gl) .merge-copy { background: rgba(28, 22, 16, .94); }

section { position: relative; padding: clamp(80px, 12vh, 140px) var(--gutter); }

/* ---------- floor 0: the threshold ---------- */
.threshold { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding-top: calc(var(--bar-h) + 30px); padding-bottom: 110px; }
.threshold-inner { display: flex; flex-direction: column; align-items: center; max-width: 900px; }
.threshold .eyebrow { color: var(--dim); }
.threshold-title { margin: 0; font: inherit; }
.threshold-title .eyebrow, .threshold-title .logo-wrap { display: block; }
.logo-wrap { margin: 6px 0 4px; line-height: 0; }
.logo { width: min(600px, 84vw); height: auto; }
.motto { font-size: 20px; color: #e0d3bb; margin: 18px 0 12px; letter-spacing: .04em; text-shadow: 0 2px 0 #000; }
.motto span { display: inline-block; width: 1.1em; }
@media (min-width: 700px) { .motto { font-size: 40px; } }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--hi); max-width: 46ch; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.threshold .fine { text-shadow: 0 2px 8px #000; text-wrap: balance; }
.descend { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--dim); text-decoration: none; font-size: 20px; }
.descend-arrow { width: 18px; height: 18px; border-right: 4px solid var(--gold); border-bottom: 4px solid var(--gold); transform: rotate(45deg); animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { translate: 0 -4px; } 50% { translate: 0 6px; } }
html:not(.gl) .threshold { background: linear-gradient(180deg, rgba(10, 8, 6, .55), rgba(10, 8, 6, .2) 40%, rgba(10, 8, 6, .95)), url(/img/bg-hoard.png) center 35% / cover no-repeat; image-rendering: pixelated; }

/* ---------- the floor you're on: a chip in the bar, like the game's HUD ---------- */
.hud { display: flex; align-items: baseline; gap: 4px; padding: 6px 10px 6px 8px; border-radius: 2px; background: rgba(42, 33, 25, .7); box-shadow: inset 0 0 0 1px var(--line);
  opacity: 0; transform: translateY(-4px); transition: opacity .4s, transform .4s; white-space: nowrap; }
.hud.on { opacity: 1; transform: none; }
.hud-stair { width: 14px; height: 14px; align-self: center; margin-right: 4px;
  background: linear-gradient(var(--gold) 0 0) 0 100% / 5px 5px no-repeat, linear-gradient(var(--gold) 0 0) 5px 100% / 5px 9px no-repeat, linear-gradient(var(--gold) 0 0) 10px 100% / 4px 14px no-repeat; }
.hud-floor { font: 20px/1 'Gold Below Display', monospace; color: var(--gold-hi); text-shadow: 0 1px 0 #3a1f06; }
.hud-of { font: 10px/1 'Gold Below Body', monospace; color: var(--dim); }
.hud-depth { font: 10px/1 'Gold Below Body', monospace; color: var(--dim); margin-left: 8px; }
@media (max-width: 1240px) { .hud-depth { display: none; } }

/* ---------- phones: real footage, flat ---------- */
.phone { margin: 0; justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.phone-screen { position: relative; width: min(300px, 74vw); aspect-ratio: 196 / 426; border-radius: 30px; overflow: hidden; background: #000;
  border: 10px solid #120d09; box-shadow: 0 0 0 2px var(--line), 0 0 0 3px #000, 0 30px 80px rgba(0, 0, 0, .7), 0 0 60px rgba(247, 185, 62, .1); }
.phone-small .phone-screen { width: min(250px, 66vw); border-radius: 26px; border-width: 8px; }
.phone video { width: 100%; height: 100%; display: block; object-fit: cover; image-rendering: pixelated; }
.clip-play { position: absolute; inset: auto 0 18px; margin: auto; width: max-content; font: 20px/1 'Gold Below Body', monospace; background: rgba(10, 8, 6, .85); color: var(--gold-hi);
  border: 1px solid var(--line); padding: 10px 14px; cursor: pointer; min-height: 44px; }
.captured { font: 10px/1 'Gold Below Body', monospace; color: var(--dim); display: flex; align-items: center; gap: 8px; letter-spacing: .02em; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: #ff4a4a; box-shadow: 0 0 8px #ff4a4a; animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- floor 1: the run ---------- */
.run { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 90px); align-items: center; max-width: 1180px; margin: 0 auto; min-height: 100vh; }
.beats { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.beats li { display: grid; grid-template-columns: 28px 110px 1fr; align-items: center; gap: 10px; }
.beats img { width: 21px; height: 21px; }
.beats b { font-size: 20px; color: var(--gold-hi); font-weight: 400; }
.beats span { color: var(--text); font-size: 16px; line-height: 1.4; }
.run-wren { position: absolute; right: clamp(0px, 4vw, 80px); bottom: 12%; width: 180px; height: auto; pointer-events: none; }
@media (max-width: 900px) { .run { grid-template-columns: 1fr; } .run-wren { display: none; } .beats li { grid-template-columns: 26px 1fr; } .beats span { grid-column: 2; } }

/* ---------- floor 3: merge ---------- */
.merge { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto; gap: clamp(24px, 4vw, 56px); align-items: center; max-width: 1320px; margin: 0 auto; min-height: 100vh; }
.forge { text-align: center; }
.tiles { display: flex; justify-content: center; gap: clamp(28px, 6vw, 70px); margin: 6px 0 22px; }
.tile { --line-c: var(--r0); --fill-c: var(--f0); width: clamp(112px, 15vw, 150px); aspect-ratio: 1; display: grid; place-items: center; position: relative; border-radius: 4px;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--fill-c) 80%, #fff 6%), var(--fill-c) 70%);
  box-shadow: inset 0 0 0 3px var(--line-c), inset 0 0 0 5px rgba(0, 0, 0, .45), 0 0 26px color-mix(in srgb, var(--line-c) 45%, transparent), 0 10px 26px rgba(0, 0, 0, .55);
  transition: box-shadow .4s, background .4s; }
.tile[data-r='1'] { --line-c: var(--r1); --fill-c: var(--f1); } .tile[data-r='2'] { --line-c: var(--r2); --fill-c: var(--f2); }
.tile[data-r='3'] { --line-c: var(--r3); --fill-c: var(--f3); } .tile[data-r='4'] { --line-c: var(--r4); --fill-c: var(--f4); }
.tile[data-r='5'] { --line-c: var(--r5); --fill-c: var(--f5); } .tile[data-r='6'] { --line-c: var(--r6); --fill-c: var(--f6); animation: gilded 2.4s ease-in-out infinite; }
@keyframes gilded { 50% { box-shadow: inset 0 0 0 3px #fff3c4, inset 0 0 0 5px rgba(0, 0, 0, .3), 0 0 48px rgba(255, 216, 115, .8), 0 10px 26px rgba(0, 0, 0, .55); } }
.tile.empty .piece { visibility: hidden; }
.piece { all: unset; cursor: grab; touch-action: none; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 4px; }
.piece:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: -6px; }
.piece.dragging { cursor: grabbing; z-index: 5; position: relative; }
.piece.picked { outline: 3px dashed var(--gold-hi); outline-offset: -8px; }
.item { width: 70%; height: auto; pointer-events: none; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .35)); }
.tile.gild .item { filter: sepia(1) saturate(3.5) brightness(1.25) drop-shadow(0 0 10px #ffd873); }
.forge-say { font: 20px/1.3 'Gold Below Body', monospace; color: var(--hi); min-height: 2.6em; max-width: none; margin: 0 auto 10px; }
.forge-say .r { color: var(--rc, var(--gold-hi)); }
.forge-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 18px; }
.ladder { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ladder li { font: 10px/1 'Gold Below Body', monospace; padding: 6px 7px; border-radius: 2px; color: #6b5f50; box-shadow: inset 0 0 0 1px #3b3027; transition: color .3s, box-shadow .3s; }
.ladder li.got { color: var(--c); box-shadow: inset 0 0 0 1px var(--c), 0 0 10px color-mix(in srgb, var(--c) 40%, transparent); }
.ladder li[data-r='0'] { --c: var(--r0); } .ladder li[data-r='1'] { --c: var(--r1); } .ladder li[data-r='2'] { --c: var(--r2); } .ladder li[data-r='3'] { --c: var(--r3); }
.ladder li[data-r='4'] { --c: var(--r4); } .ladder li[data-r='5'] { --c: var(--r5); } .ladder li[data-r='6'] { --c: var(--r6); }
.flash { position: absolute; inset: -30%; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, var(--line-c) 0, transparent 60%); opacity: 0; }
.tile.merged .flash { animation: flash .7s ease-out; }
@keyframes flash { 0% { opacity: .95; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.4); } }
@media (max-width: 1100px) { .merge { grid-template-columns: 1fr 1fr; } .merge .phone { grid-column: 1 / -1; } }
@media (max-width: 760px) { .merge { grid-template-columns: 1fr; } }

/* ---------- floor 6: read the enemy ---------- */
.read { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); align-items: center; max-width: 1180px; margin: 0 auto; min-height: 100vh; }
.duel { display: grid; gap: 22px; }
.duel-foe { display: grid; justify-items: center; gap: 10px; text-align: center; }
.plate { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; background: #1c1210; border-radius: 3px;
  box-shadow: inset 0 0 0 2px #8a2a2a, 0 0 0 1px #000, 0 6px 18px rgba(0, 0, 0, .5); transition: box-shadow .2s; }
.plate-icon { width: 27px; height: 27px; }
.plate-n { font: 40px/1 'Gold Below Display', monospace; color: #ffd0c4; }
.duel[data-intent='heavy'] .plate { animation: warn .7s ease-in-out infinite; }
@keyframes warn { 50% { box-shadow: inset 0 0 0 2px #ff4a3a, 0 0 0 1px #000, 0 0 26px rgba(255, 74, 58, .6); } }
.foe { width: clamp(140px, 22vw, 210px); height: auto; }
.duel[data-intent='heavy'] .foe { animation: windup 1.1s ease-in-out infinite; }
@keyframes windup { 0%, 100% { transform: translateY(0) scale(1); } 45% { transform: translateY(-6px) scale(1.04) rotate(-2deg); } 55% { transform: translateY(-6px) scale(1.04) rotate(2deg); } }
.foe.hit { animation: hit .35s ease-out; }
@keyframes hit { 20% { transform: translateX(8px); filter: brightness(2.2); } 60% { transform: translateX(-5px); } }
.bar-hp { width: min(240px, 70vw); height: 14px; background: #2a1414; box-shadow: inset 0 0 0 2px #000; border-radius: 2px; overflow: hidden; }
.bar-hp i { display: block; height: 100%; width: var(--w, 100%); background: linear-gradient(180deg, #ff8a9a, var(--hp) 45%, #a8243a); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.duel-intent { font: 20px/1.3 'Gold Below Body', monospace; color: var(--hi); margin: 0; max-width: none; }
.duel-you { display: grid; gap: 14px; justify-items: center; }
.you-row { display: flex; align-items: center; gap: 10px; }
.you-row img { width: 27px; height: 27px; }
.you-n { font: 40px/1 'Gold Below Display', monospace; color: var(--hp-text); min-width: 2.4ch; }
.you-row.hurt { animation: hit .35s ease-out; }
.duel-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.act { all: unset; cursor: pointer; display: grid; justify-items: center; gap: 4px; padding: 14px 10px; border-radius: 4px; text-align: center; min-height: 64px; }
.act .display { font-size: 40px; line-height: 1; }
.act small { font: 10px/1.2 'Gold Below Body', monospace; }
.act-attack { background: var(--gold); color: #1d1004; box-shadow: inset 0 2px 0 var(--gold-hi), inset 0 -4px 0 #b06a1c, 0 3px 0 #3a1f06; }
.act-guard { background: #233552; color: #e6efff; box-shadow: inset 0 2px 0 #3a5a8a, inset 0 -4px 0 #15233a, 0 3px 0 #000, inset 0 0 0 2px #4d6f9e; }
.act:hover { filter: brightness(1.1); }
.act:active { transform: translateY(2px); }
.act:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; }
.act[disabled] { opacity: .45; cursor: default; filter: none; }
.duel-say { font-size: 17px; color: var(--hi); text-align: center; min-height: 3.2em; margin: 0; max-width: 40ch; }
.duel-say b { color: var(--gold-hi); font-weight: 600; }
@media (max-width: 860px) { .read { grid-template-columns: 1fr; } }

/* ---------- floor 9: heroes ---------- */
.heroes { max-width: 1240px; margin: 0 auto; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'copy card' 'roster roster'; gap: 28px clamp(24px, 4vw, 56px); align-items: start; }
.heroes-copy { grid-area: copy; }
.hero-card { grid-area: card; }
.roster { grid-area: roster; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(8px, 1.5vw, 18px); }
.hero { all: unset; cursor: pointer; display: grid; justify-items: center; align-content: end; gap: 10px; padding: 18px 6px 14px; border-radius: 4px; min-height: 230px;
  background: linear-gradient(180deg, transparent, rgba(42, 33, 25, .75)); box-shadow: inset 0 0 0 2px rgba(110, 86, 56, .5); transition: box-shadow .25s, background .25s; }
.hero img { width: min(135px, 90%); height: auto; transition: transform .3s; }
.hero span { font-size: 20px; color: var(--dim); }
.hero[aria-selected='true'] { background: linear-gradient(180deg, rgba(247, 185, 62, .08), rgba(55, 44, 34, .9)); box-shadow: inset 0 0 0 2px var(--gold), 0 0 30px rgba(247, 185, 62, .2); }
.hero[aria-selected='true'] span { color: var(--gold-hi); }
.hero[aria-selected='true'] img { transform: scale(1.06); }
.hero:hover { box-shadow: inset 0 0 0 2px var(--line-hi); }
.hero:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; }
.hero-card header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 12px; }
.hero-name { font-size: 40px; margin: 0; color: var(--gold-hi); text-shadow: 0 2px 0 #3a1f06; }
.hero-title { font: 20px/1 'Gold Below Body', monospace; color: var(--dim); margin: 0; }
.tag { font: 10px/1 'Gold Below Body', monospace; color: #1d1004; background: var(--gold); padding: 5px 7px; border-radius: 2px; }
.hero-card dl { margin: 0; display: grid; gap: 8px; }
.hero-card dt { font: 600 20px/1.2 'Barlow Condensed', sans-serif; color: var(--hi); display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.hero-card dt img { width: 21px; height: 21px; }
.hero-card dd { margin: 0 0 4px 29px; color: var(--text); }
@media (max-width: 900px) { .heroes { grid-template-columns: 1fr; grid-template-areas: 'copy' 'roster' 'card'; } .roster { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hero { min-height: 170px; } }

/* ---------- floors 10, 20, 30: the keepers ---------- */
.keepers { padding: 0; }
.keeper { --glow: #ffb347; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 60px);
  max-width: 1240px; margin: 0 auto; padding: clamp(80px, 12vh, 140px) var(--gutter); }
.keeper-brine { --glow: #48e0a0; } .keeper-avarax { --glow: #ff5a2a; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
.keeper:nth-child(2) .boss { order: 2; }
.boss { width: min(560px, 88vw); height: auto; justify-self: center; filter: drop-shadow(0 0 40px color-mix(in srgb, var(--glow) 35%, transparent)); }
.keeper-copy h2 { font-size: 60px; }
@media (min-width: 900px) { .keeper-copy h2.display { font-size: 80px; } }
.quote { font: italic 22px/1.45 Barlow, serif; color: var(--hi); border-left: 3px solid var(--glow); padding-left: 16px; }
html:not(.gl) .keeper { background: radial-gradient(ellipse 50% 45% at 30% 50%, color-mix(in srgb, var(--glow) 14%, transparent), transparent 70%); }
html:not(.gl) .keeper-tally { background-image: radial-gradient(ellipse 50% 45% at 30% 50%, rgba(255, 179, 71, .14), transparent 70%), linear-gradient(rgba(10, 8, 6, .85), rgba(10, 8, 6, .85)), url(/img/bg-cellars.png); background-size: auto, auto, cover; background-position: center; }
html:not(.gl) .keeper-brine { background-image: radial-gradient(ellipse 50% 45% at 70% 50%, rgba(72, 224, 160, .14), transparent 70%), linear-gradient(rgba(10, 8, 6, .85), rgba(10, 8, 6, .85)), url(/img/bg-reliquary.png); background-size: auto, auto, cover; background-position: center; }
html:not(.gl) .keeper-avarax { background-image: radial-gradient(ellipse 50% 45% at 30% 50%, rgba(255, 90, 42, .16), transparent 70%), linear-gradient(rgba(10, 8, 6, .85), rgba(10, 8, 6, .85)), url(/img/bg-hoard.png); background-size: auto, auto, cover; background-position: center; }
@media (max-width: 1100px) { .keeper-avarax { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .keeper-avarax .phone { grid-column: 1 / -1; } }
@media (max-width: 860px) { .keeper, .keeper-avarax { grid-template-columns: 1fr; min-height: auto; } .keeper:nth-child(2) .boss { order: 0; } .boss { width: min(400px, 80vw); } .keeper-copy h2.display { font-size: 60px; } }

/* ---------- the crowd ---------- */
.crowd { text-align: center; overflow: hidden; display: grid; justify-items: center; gap: 30px; }
.crowd-track { width: 100vw; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.crowd-row { display: flex; gap: 46px; align-items: flex-end; width: max-content; animation: crowd 60s linear infinite; padding: 10px 0; }
.crowd-row img { height: 120px; width: auto; filter: drop-shadow(0 8px 0 rgba(0, 0, 0, .4)); }
@keyframes crowd { to { transform: translateX(-50%); } }

/* ---------- the bottom ---------- */
.hoard { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'copy phone' 'play play'; gap: 40px clamp(24px, 5vw, 70px); align-items: center; max-width: 1180px; margin: 0 auto; padding-bottom: 120px; }
.hoard-copy { grid-area: copy; } .hoard .phone { grid-area: phone; }
.play { grid-area: play; text-align: center; display: grid; justify-items: center; padding: clamp(30px, 5vw, 60px);
  box-shadow: inset 0 0 0 2px var(--gold-dark), inset 0 0 0 4px rgba(0, 0, 0, .4), inset 0 4px 0 4px rgba(255, 216, 115, .15), 0 0 80px rgba(247, 185, 62, .16), 0 24px 60px rgba(0, 0, 0, .6); }
.play p { margin-left: auto; margin-right: auto; }
.play-title { font-size: 40px; }
@media (min-width: 900px) { .play-title { font-size: 60px; } }
@media (max-width: 860px) { .hoard { grid-template-columns: 1fr; grid-template-areas: 'copy' 'phone' 'play'; } }

/* ---------- the foot ---------- */
.foot { display: grid; justify-items: center; gap: 14px; padding: 50px var(--gutter) calc(40px + env(safe-area-inset-bottom)); text-align: center; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
.foot img { width: 80px; height: auto; opacity: .85; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; }
.foot nav a { font: 20px/1.4 'Gold Below Body', monospace; color: var(--dim); text-decoration: none; padding: 8px 0; }
.foot nav a:hover { color: var(--gold-hi); }
.foot p { font-size: 14px; color: #9a8a73; max-width: 70ch; }

/* ---------- arrival ---------- */
.rise { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.rise.in { opacity: 1; transform: none; }
.threshold-inner > * { animation: up 1s cubic-bezier(.2, .8, .2, 1) both; }
.threshold-inner > :nth-child(1) { animation-delay: .9s; } .threshold-inner > :nth-child(2) { animation-delay: .1s; } .threshold-inner > :nth-child(3) { animation-delay: 1.3s; }
.threshold-inner > :nth-child(4) { animation-delay: 1.5s; } .threshold-inner > :nth-child(5) { animation-delay: 1.7s; } .threshold-inner > :nth-child(6) { animation-delay: 1.9s; }
@keyframes up { from { opacity: 0; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rise { opacity: 1; transform: none; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  section { padding-top: 70px; padding-bottom: 70px; }
}

/* a twin drops in beside the merged piece */
.piece.drop { animation: drop .5s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes drop { from { transform: translateY(-90px) scale(.7); opacity: 0; } }

/* the stages the voxels stand in: a bronze frame, open in the middle, dark only under their words */
.forge, .duel { border-radius: 4px; padding: clamp(20px, 3vw, 34px);
  background: linear-gradient(180deg, rgba(20, 15, 11, .08), rgba(20, 15, 11, .18) 40%, rgba(20, 15, 11, .78));
  box-shadow: inset 0 0 0 2px var(--line), inset 0 3px 0 2px rgba(143, 115, 80, .3), 0 18px 50px rgba(0, 0, 0, .35); }
html:not(.gl) .forge, html:not(.gl) .duel { background: linear-gradient(180deg, rgba(42, 33, 25, .9), rgba(28, 22, 16, .92)); }
.tile { background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--fill-c) 45%, transparent), color-mix(in srgb, var(--fill-c) 30%, transparent) 70%); }
html:not(.gl) .tile { background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--fill-c) 80%, #fff 6%), var(--fill-c) 70%); }
.forge-say, .duel-intent, .duel-say { text-shadow: 0 2px 6px #000, 0 0 2px #000; }
.hero { background: linear-gradient(180deg, transparent 55%, rgba(20, 15, 11, .7)); }
.hero[aria-selected='true'] { background: linear-gradient(180deg, rgba(247, 185, 62, .05) 55%, rgba(55, 44, 34, .85)); }
html:not(.gl) .hero { background: linear-gradient(180deg, transparent, rgba(42, 33, 25, .75)); }

/* the run: Wren stands between the words and the phone, then flattens into her sprite */
.run { grid-template-columns: minmax(0, 1fr) clamp(140px, 13vw, 200px) auto; }
.run-copy { grid-column: 1; grid-row: 1; }
.run .phone { grid-column: 3; grid-row: 1; }
.run-wren { position: static; grid-column: 2; grid-row: 1; align-self: end; width: 100%; margin-bottom: 40px; }
@media (max-width: 900px) { .run { grid-template-columns: 1fr; } .run .phone { grid-column: 1; grid-row: 2; } .run-wren { display: none; } }

/* the six at the vault door, three a side, standing on its floor */
.cast { position: absolute; inset: auto 0 0; height: 0; pointer-events: none; }
.cast img { position: absolute; bottom: 70px; width: clamp(90px, 8.4vw, 150px); height: auto; filter: brightness(.55) drop-shadow(0 0 12px rgba(255, 190, 90, .35)); }
.cast-l:nth-child(1) { left: 3vw; bottom: 96px; } .cast-l:nth-child(2) { left: 10.5vw; bottom: 82px; } .cast-l:nth-child(3) { left: 18vw; }
.cast-r:nth-child(4) { right: 18vw; } .cast-r:nth-child(5) { right: 10.5vw; bottom: 82px; } .cast-r:nth-child(6) { right: 3vw; bottom: 96px; }
.cast img { animation: up 1.2s cubic-bezier(.2, .8, .2, 1) 1.1s both; }
@media (max-width: 1100px) { .cast { display: none; } }

/* the stores' own badges, as Apple and Google draw them: same height, side by side, never altered */
.store { display: block; border-radius: 9px; transition: transform .15s ease, filter .15s ease; }
.store img { display: block; height: 58px; width: auto; }
.store:hover { transform: translateY(-2px); filter: drop-shadow(0 8px 18px rgba(247, 185, 62, .25)); }
.store:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 4px; }
.ctas { align-items: center; }
@media (max-width: 560px) { .store img { height: 50px; } .ctas { gap: 10px; } .play { padding: 26px 16px; } .play .store img { height: 44px; } }
.foot .marks { font-size: 12px; color: #7d6f5c; }
