@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Cormorant"; font-style: italic; src: url("../fonts/cormorant-italic.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #0d0907;
  --walnut: #17110d;
  --bark: #231a13;
  --bark-2: #2e2219;
  --line: rgba(227, 189, 82, .18);
  --parchment: #f5e4bd;
  --text: #e9dcc0;
  --muted: #b3a081;
  --gold: #e3bd52;
  --gold-hi: #fff1c4;
  --gold-deep: #b9842d;
  --river: #3d6264;
  --blue: #59abc8;
  --red: #cc5144;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --serif: "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 400 17px/1.6 var(--sans); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }

/* Grain over everything for a painted, filmic feel. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0% { background-position: 0 0; } 33% { background-position: -37px 23px; } 66% { background-position: 29px -41px; } 100% { background-position: 0 0; } }

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter); transition: background .4s, backdrop-filter .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.solid { background: rgba(13, 9, 7, .82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line); padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand span { font: 700 20px/1 var(--display); letter-spacing: .22em; color: var(--parchment); }
.links { display: flex; gap: 26px; margin-left: auto; }
.links a { text-decoration: none; font-size: 14px; letter-spacing: .06em; color: var(--muted); position: relative; padding: 6px 0; transition: color .2s; }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .3s; }
.links a:hover, .links a.active { color: var(--parchment); }
.links a:hover::after, .links a.active::after { transform: scaleX(1); }
.nav-end { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { background: none; border: 0; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; border-radius: 999px;
  padding: 14px 26px; font: 600 15px/1 var(--sans); letter-spacing: .04em; border: 1px solid transparent;
  transition: transform .2s, box-shadow .3s, background .3s, border-color .3s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-gold { background: linear-gradient(180deg, #f2d37a, var(--gold) 50%, #c99a3a); color: #1a120b; box-shadow: 0 8px 30px rgba(227, 189, 82, .25), inset 0 1px 0 rgba(255, 255, 255, .4); border: 0; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(227, 189, 82, .38), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn-ghost { border-color: rgba(245, 228, 189, .35); color: var(--parchment); background: rgba(13, 9, 7, .25); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-small { padding: 9px 16px; font-size: 13px; background: rgba(227, 189, 82, .12); border-color: rgba(227, 189, 82, .45); color: var(--gold-hi); }
.btn-small:hover { background: var(--gold); color: var(--ink); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; transform: scale(1.06); animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero-shade { position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(13, 9, 7, .25), rgba(13, 9, 7, .78) 75%),
    linear-gradient(180deg, rgba(13, 9, 7, .7) 0%, rgba(13, 9, 7, 0) 22%, rgba(13, 9, 7, 0) 60%, var(--ink) 100%); }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-content { text-align: center; padding: 120px var(--gutter) 180px; max-width: 980px; }
.kicker { font: 600 13px/1.4 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }
.title { margin: 0; display: flex; flex-direction: column; align-items: center; }
.title-word {
  font: 900 clamp(64px, 14vw, 190px)/.92 var(--display); letter-spacing: .12em; padding-left: .12em; text-transform: uppercase;
  background: linear-gradient(180deg, var(--gold-hi) 0%, #f0cf72 42%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 34px rgba(0, 0, 0, .65));
}
.title-sub { margin-top: 10px; font: 600 clamp(15px, 2.4vw, 28px)/1 var(--display); letter-spacing: .5em; padding-left: .5em; color: var(--gold); text-transform: uppercase; }
.lead { font: 500 clamp(20px, 2.3vw, 27px)/1.45 var(--serif); color: var(--parchment); max-width: 720px; margin: 28px auto 0; text-shadow: 0 2px 16px rgba(0, 0, 0, .7); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 38px; }
.hero-stats {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(var(--max), calc(100% - 2 * var(--gutter))); margin: 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--line);
}
.hero-stats li { text-align: center; padding: 0 8px; }
.hero-stats strong { display: block; font: 700 clamp(26px, 3.4vw, 40px)/1 var(--display); color: var(--gold-hi); }
.hero-stats span { display: block; margin-top: 6px; font-size: 12px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.scroll-cue { position: absolute; left: 50%; bottom: 128px; width: 24px; height: 40px; margin-left: -12px; border: 1.5px solid rgba(245, 228, 189, .4); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Sections */
.section { position: relative; padding: clamp(80px, 11vw, 150px) var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 5vw, 64px); }
.section-head.left { text-align: left; margin-inline: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; margin: 0 0 14px; font: 600 12px/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before, .eyebrow::after { content: ""; width: 36px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.eyebrow::after { transform: scaleX(-1); }
.section-head.left .eyebrow::before { display: none; }
h2 { margin: 0; font: 700 clamp(32px, 4.6vw, 58px)/1.08 var(--display); letter-spacing: .03em; color: var(--parchment); }
h3 { margin: 0; }
.section-lead { margin: 20px auto 0; font: 500 clamp(19px, 1.9vw, 23px)/1.5 var(--serif); color: var(--muted); }
.fine { font-size: 13px; color: var(--muted); opacity: .8; text-align: center; margin-top: 26px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Trailer player */
.player {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: #000;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6), 0 0 0 1px var(--line);
}
.player::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(135deg, rgba(227, 189, 82, .7), rgba(227, 189, 82, 0) 30%, rgba(227, 189, 82, 0) 70%, rgba(227, 189, 82, .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.player video { width: 100%; height: 100%; object-fit: cover; }
.player-play {
  position: absolute; inset: 0; z-index: 3; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: radial-gradient(ellipse at center, rgba(13, 9, 7, .15), rgba(13, 9, 7, .55)); transition: opacity .4s;
}
.player-play svg { width: 92px; height: 92px; padding: 26px 22px 26px 30px; border-radius: 50%; fill: var(--ink);
  background: linear-gradient(180deg, #f2d37a, var(--gold) 55%, #c99a3a); box-shadow: 0 10px 40px rgba(0, 0, 0, .5); transition: transform .3s; }
.player-play:hover svg { transform: scale(1.08); }
.player-play .ring { position: absolute; width: 92px; height: 92px; border-radius: 50%; border: 2px solid var(--gold); top: calc(50% - 46px - 22px); animation: ring 2.4s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }
.player-label { font: 600 13px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--parchment); text-shadow: 0 2px 10px #000; }
.player.playing .player-play { opacity: 0; pointer-events: none; }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card {
  position: relative; border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, var(--bark), var(--walnut));
  border: 1px solid var(--line); transition: transform .5s cubic-bezier(.2, .7, .2, 1), border-color .4s, box-shadow .5s, opacity .9s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(227, 189, 82, .5); box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card-media img, .card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), opacity .5s; }
.card-media video { opacity: 0; }
.card.live .card-media video { opacity: 1; }
.card:hover .card-media img, .card:hover .card-media video { transform: scale(1.05); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, var(--bark)); }
.card-body { padding: 6px 24px 26px; }
.card-tag { margin: 0 0 6px; font: 600 11px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.card h3 { font: 700 24px/1.2 var(--display); color: var(--parchment); letter-spacing: .02em; }
.card p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

/* How a match unfolds */
.loop { position: relative; padding: clamp(40px, 6vw, 80px) var(--gutter); background:
  linear-gradient(180deg, var(--ink), rgba(13, 9, 7, 0) 18%, rgba(13, 9, 7, 0) 82%, var(--ink)),
  radial-gradient(ellipse 60% 80% at 50% 50%, rgba(61, 98, 100, .28), transparent 70%), var(--walnut); text-align: center; }
.loop-inner { max-width: var(--max); margin: 0 auto; }
.steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 38px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .45; }
.steps li { position: relative; counter-increment: step; }
.steps img { width: 76px; height: 76px; margin: 0 auto; padding: 14px; border-radius: 50%; background: radial-gradient(circle, var(--bark-2), var(--walnut)); border: 1px solid rgba(227, 189, 82, .45); box-shadow: 0 0 0 8px var(--walnut), 0 10px 30px rgba(0, 0, 0, .5); position: relative; }
.steps h3 { margin-top: 22px; font: 700 22px/1 var(--display); color: var(--parchment); }
.steps h3::before { content: counter(step, upper-roman) " · "; color: var(--gold); }
.steps p { margin: 10px auto 0; max-width: 260px; color: var(--muted); font-size: 15px; }

/* World forge */
.forge-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.forge-controls { display: grid; gap: 24px; padding: 28px; border-radius: var(--radius); background: linear-gradient(180deg, var(--bark), var(--walnut)); border: 1px solid var(--line); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); display: flex; gap: 8px; width: 100%; }
legend output { margin-left: auto; color: var(--parchment); letter-spacing: .08em; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--ink); border-radius: 10px; padding: 4px; border: 1px solid var(--line); }
.seg button { border: 0; background: none; border-radius: 7px; padding: 9px 4px; font-size: 14px; font-weight: 500; color: var(--muted); transition: background .25s, color .25s; }
.seg button[aria-pressed="true"] { background: var(--bark-2); color: var(--gold-hi); box-shadow: inset 0 0 0 1px rgba(227, 189, 82, .5); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: none; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--river), #6fa3a1); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--river), #6fa3a1); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--gold); border: 3px solid var(--ink); box-shadow: 0 0 0 1px var(--gold); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--gold); border: 3px solid var(--ink); }
.range-ticks { display: flex; justify-content: space-between; padding: 0 9px; }
.range-ticks span { width: 1px; height: 6px; background: var(--line); }
.reroll { justify-content: center; }
.reroll svg { transition: transform .6s; }
.reroll:hover svg { transform: rotate(-200deg); }
.forge-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); }
.forge-stats dt { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.forge-stats dd { margin: 4px 0 0; font: 700 22px/1 var(--display); color: var(--parchment); font-variant-numeric: tabular-nums; }
.forge-stage { perspective: 1400px; }
.forge-map { position: relative; aspect-ratio: 2 / 1; transform-style: preserve-3d; transition: transform .25s ease-out; filter: drop-shadow(0 40px 40px rgba(0, 0, 0, .55)); }
.forge-map img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .55s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.forge-map img.out { opacity: 0; transform: scale(.96) translateY(10px); }
.legend { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 26px 0 0; padding: 0; font-size: 13px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; }
.sw-you { background: var(--blue); box-shadow: 0 0 10px var(--blue); border-radius: 50% !important; }
.sw-rival { background: var(--red); box-shadow: 0 0 10px var(--red); border-radius: 50% !important; }
.sw-wood { background: #2c4521; }
.sw-gold { background: #e8c255; }
.sw-food { background: #c4834b; }

/* Civilizations */
.civ-switch { display: flex; justify-content: center; gap: 0; margin: 0 auto; width: fit-content; padding: 5px; border-radius: 999px; background: var(--walnut); border: 1px solid var(--line); }
.civ-switch button { display: flex; align-items: center; gap: 10px; padding: 11px 24px; border: 0; background: none; border-radius: 999px; font: 700 16px/1 var(--display); letter-spacing: .08em; color: var(--muted); transition: background .3s, color .3s; }
.civ-switch button[aria-selected="true"] { background: var(--bark-2); color: var(--parchment); box-shadow: inset 0 0 0 1px rgba(227, 189, 82, .45); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.blue { background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.dot.red { background: var(--red); box-shadow: 0 0 10px var(--red); }
.civ-summary { text-align: center; max-width: 680px; margin: 22px auto 40px; font: italic 500 22px/1.45 var(--serif); color: var(--parchment); min-height: 3em; }
.units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.unit { position: relative; border-radius: var(--radius); padding: 0 22px 24px; background: linear-gradient(180deg, var(--bark), var(--walnut)); border: 1px solid var(--line); overflow: hidden; }
.unit::before { content: ""; position: absolute; left: 50%; top: 40px; width: 220px; height: 120px; margin-left: -110px; border-radius: 50%; background: radial-gradient(ellipse, var(--team-glow, rgba(89, 171, 200, .35)), transparent 70%); }
.sprite { position: relative; height: 192px; width: 168px; margin: 0 auto; background-repeat: no-repeat; background-size: auto 100%; image-rendering: auto; }
.sprite.ship { width: 240px; height: 206px; background-size: contain; background-position: center; margin-top: -6px; animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-1deg); } }
.unit h3 { position: relative; font: 700 21px/1.1 var(--display); color: var(--parchment); text-align: center; }
.unit .role { position: relative; margin: 6px 0 16px; text-align: center; color: var(--muted); font-size: 13px; min-height: 2.6em; }
.stat { display: grid; grid-template-columns: 86px 1fr 34px; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .06em; color: var(--muted); margin-top: 8px; }
.bar { height: 6px; border-radius: 3px; background: rgba(245, 228, 189, .08); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--gold-deep), var(--gold-hi)); transition: width 1s cubic-bezier(.2, .7, .2, 1); }
.stat b { text-align: right; font-weight: 600; color: var(--parchment); font-variant-numeric: tabular-nums; }
.price { position: relative; display: flex; gap: 12px; justify-content: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--parchment); }
.price span { display: inline-flex; align-items: center; gap: 5px; }
.price img { width: 18px; height: 18px; }

/* Gallery */
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 180px; gap: 14px; }
.shot { position: relative; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--bark); }
.shot.wide { grid-column: span 2; grid-row: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1), filter .5s; filter: saturate(.92) brightness(.92); }
.shot:hover img { transform: scale(1.06); filter: none; }
.shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s; }
.shot:hover::after { box-shadow: inset 0 0 0 1px rgba(227, 189, 82, .7); }
.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(8, 5, 3, .94); backdrop-filter: blur(6px); padding: 40px 70px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 86vh; border-radius: 10px; box-shadow: 0 30px 90px #000; animation: pop .35s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(.97); } }
.lightbox button { position: absolute; border: 0; background: rgba(245, 228, 189, .08); width: 52px; height: 52px; border-radius: 50%; font-size: 30px; line-height: 1; color: var(--parchment); }
.lightbox button:hover { background: var(--gold); color: var(--ink); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; margin-top: -26px; }
.lb-next { right: 14px; top: 50%; margin-top: -26px; }

/* Score */
.score-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.deck { position: relative; padding: 26px; border-radius: var(--radius); background: linear-gradient(180deg, var(--bark), var(--walnut)); border: 1px solid var(--line); }
.viz { width: 100%; height: 120px; margin-bottom: 14px; }
.tracks { list-style: none; margin: 0; padding: 0; }
.tracks button { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 14px 12px; border: 0; border-radius: 10px; background: none; text-align: left; transition: background .25s; }
.tracks button:hover { background: rgba(245, 228, 189, .05); }
.tracks button[aria-pressed="true"] { background: rgba(227, 189, 82, .1); }
.tracks .no { font: 700 14px/1 var(--display); color: var(--gold); text-align: center; }
.tracks .name { font: 600 20px/1.2 var(--serif); color: var(--parchment); }
.tracks .mood { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.tracks button[aria-pressed="true"] .no { font-size: 0; }
.tracks button[aria-pressed="true"] .no::before { content: ""; display: inline-block; width: 14px; height: 14px; background:
  linear-gradient(var(--gold), var(--gold)) 0 100% / 3px 60% no-repeat, linear-gradient(var(--gold), var(--gold)) 50% 100% / 3px 100% no-repeat, linear-gradient(var(--gold), var(--gold)) 100% 100% / 3px 40% no-repeat; animation: eq .9s ease-in-out infinite alternate; }
@keyframes eq { to { background-size: 3px 30%, 3px 70%, 3px 100%; } }
.progress { height: 3px; margin-top: 14px; border-radius: 2px; background: rgba(245, 228, 189, .08); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--gold); }

/* Closing */
.closing { text-align: center; padding: clamp(90px, 12vw, 160px) var(--gutter); background:
  radial-gradient(ellipse 50% 60% at 50% 40%, rgba(227, 189, 82, .12), transparent 70%); }
.closing img { margin: 0 auto 26px; filter: drop-shadow(0 12px 40px rgba(227, 189, 82, .25)); }
.closing p { font: 500 clamp(20px, 2.2vw, 26px)/1.5 var(--serif); color: var(--muted); margin: 18px auto 0; max-width: 620px; }
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.platforms span { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 12px; border: 1px solid var(--line); background: var(--walnut); font-weight: 600; color: var(--parchment); }
.platforms svg { width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 1.6; }

.footer { display: flex; flex-wrap: wrap; gap: 10px 30px; align-items: center; justify-content: space-between; padding: 28px var(--gutter); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer p { margin: 0; }
.foot-brand { display: flex; align-items: center; gap: 10px; font: 600 14px/1 var(--display); letter-spacing: .1em; color: var(--parchment); }

/* Responsive */
@media (max-width: 1080px) {
  .links { display: none; }
  .nav-end { margin-left: auto; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .units { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forge-grid, .score-grid { grid-template-columns: 1fr; }
  .forge-stage { order: -1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 50px; }
  .steps::before { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { gap: 10px; }
  .brand span { display: none; }
  .btn-small { display: none; }
  .hero-content { padding-top: 110px; padding-bottom: 210px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; bottom: 22px; }
  .scroll-cue { display: none; }
  .cards, .units, .steps { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; }
  .forge-controls { padding: 20px; }
  .stat { grid-template-columns: 78px 1fr 30px; }
  .lightbox { padding: 60px 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; margin-top: 0; }
  .player-play svg { width: 70px; height: 70px; padding: 20px 16px 20px 22px; }
  .player-play .ring { width: 70px; height: 70px; top: calc(50% - 35px - 22px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
