/* Be A Hero — site styles. Tokens follow the brand kit. */
@property --reveal {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

:root {
  --bg: #151d20;
  --bg-alt: #1b2527;
  --bg-green: #222d29;
  --bg-deep: #0b1013;
  --card: #172025;
  --card-line: #2b383b;
  --text: #ece7da;
  --text-muted: #a3aaa9;
  --gold: #f2c14e;
  --gold-bright: #ffd46e;
  --gold-deep: #c9952a;
  --on-gold: #1b1405;
  --ember: #e8622c;
  --cream: #f4edd3;
  --on-cream: #2a2618;
  --health: #6fbf4a;
  --danger: #e0463e;
  --font-display: "Caprasimo", Georgia, serif;
  --font-label: "Fredoka", "Nunito", sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --radius: 18px;
  --max: 1180px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:hover { color: var(--gold-bright); }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0 0 1rem; }
button { font: inherit; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--text-muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--on-gold); padding: .6rem 1rem; z-index: 100; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

/* ---------- Type ---------- */
.display { font-family: var(--font-display); font-weight: 400; line-height: 1; color: var(--cream); }
h2.display { font-size: clamp(2.5rem, 5.6vw, 4.25rem); }
.gold { color: var(--gold); }
.lede { font-size: 1.2rem; max-width: 34rem; }
.fine { font-size: .9rem; color: var(--text-muted); margin-top: 1rem; }
h3 { font-family: var(--font-label); font-weight: 600; font-size: 1.15rem; color: var(--cream); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .75rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-label); font-weight: 600; font-size: 1.05rem; text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease-out), background .15s, box-shadow .15s, color .15s, border-color .15s;
}
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-gold { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: var(--on-gold); box-shadow: 0 4px 0 var(--gold-deep), 0 10px 24px rgba(242, 193, 78, .25); }
.btn-gold:hover { color: var(--on-gold); box-shadow: 0 4px 0 var(--gold-deep), 0 14px 34px rgba(242, 193, 78, .4); transform: translateY(-2px); }
.btn-gold:active { box-shadow: 0 1px 0 var(--gold-deep); transform: translateY(3px); }
.btn-outline { border-color: var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--on-gold); }
.btn-ghost { color: var(--cream); border-color: rgba(244, 237, 211, .3); background: rgba(21, 29, 32, .35); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--cream); color: var(--cream); }
.btn-sm { min-height: 40px; padding: .45rem 1.1rem; font-size: .95rem; }
.btn-lg { min-height: 58px; padding: .9rem 2rem; font-size: 1.15rem; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.25rem; }
.text-link { font-family: var(--font-label); font-weight: 600; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(21, 29, 32, .9); backdrop-filter: blur(12px); border-color: rgba(255,255,255,.06); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--font-display); font-size: 1.3rem; color: var(--cream); letter-spacing: .02em; }
.logo:hover { color: var(--cream); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { color: var(--text); text-decoration: none; font-family: var(--font-label); font-weight: 500; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.nav-links a:not(.btn):hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--cream); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: max(680px, 100svh); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-scene { position: absolute; inset: 0; z-index: -1; }
.hero-scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; animation: drift 24s ease-in-out infinite alternate; }
.scene-grey {
  filter: grayscale(1) brightness(.6) contrast(.9);
  -webkit-mask-image: radial-gradient(circle at 42% 48%, transparent var(--reveal), #000 calc(var(--reveal) + 18%));
          mask-image: radial-gradient(circle at 42% 48%, transparent var(--reveal), #000 calc(var(--reveal) + 18%));
  animation: drift 24s ease-in-out infinite alternate, colourflood 2.6s .5s var(--ease-out) forwards !important;
}
@keyframes colourflood { to { --reveal: 140%; } }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.1) translate(-1.2%, -.8%); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(14,20,22,.9) 0%, rgba(14,20,22,.6) 32%, rgba(14,20,22,0) 60%), linear-gradient(0deg, var(--bg) 0%, transparent 22%);
}
.fog { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(225,230,228,.55), transparent); filter: blur(30px); opacity: .9; animation: fogdrift 18s ease-in-out infinite alternate, fogclear 3s .6s var(--ease-out) forwards; }
.fog-1 { width: 70vw; height: 40vh; left: -10vw; top: 30%; }
.fog-2 { width: 60vw; height: 35vh; right: -15vw; top: 10%; animation-duration: 22s, 3s; }
.fog-3 { width: 80vw; height: 30vh; left: 20vw; bottom: -5%; animation-duration: 26s, 3s; }
@keyframes fogdrift { to { translate: 8vw -3vh; } }
@keyframes fogclear { to { opacity: .1; } }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

.hero-copy { position: relative; z-index: 2; padding-top: 110px; padding-bottom: 90px; }
.hero-title { font-size: clamp(3.4rem, 10vw, 7.5rem); line-height: .94; margin-bottom: 1.5rem; text-shadow: 0 6px 40px rgba(0,0,0,.45); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); animation: rise .9s var(--ease-out) forwards; }
.hero-title .line:nth-child(1) > span { animation-delay: 1.1s; }
.hero-title .line:nth-child(2) > span { animation-delay: 1.3s; }
.hero-lede, .hero-ctas, .hero-fine { opacity: 0; animation: fadeup .8s var(--ease-out) forwards; }
.hero-lede { animation-delay: 1.6s; color: #e6e2d6; text-shadow: 0 2px 16px rgba(0,0,0,.7); }
.hero-ctas { animation-delay: 1.75s; }
.hero-fine { animation-delay: 1.9s; color: #c9ccc6; }
@keyframes rise { to { transform: none; } }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 40px; translate: -50% 0; width: 30px; height: 48px; border: 2px solid rgba(244,237,211,.5); border-radius: 20px; opacity: 0; animation: fadeup .6s 2.4s forwards; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: cue 1.6s infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Ticker ---------- */
.ticker { background: var(--gold); color: var(--on-gold); overflow: hidden; border-block: 3px solid var(--gold-deep); transform: rotate(-1.2deg) scale(1.03); margin-top: -18px; position: relative; z-index: 3; }
.ticker-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; gap: 2.75rem; list-style: none; margin: 0; padding: .95rem 1.375rem; }
.ticker-list li { display: flex; align-items: center; gap: .55rem; white-space: nowrap; font-family: var(--font-label); font-weight: 500; font-size: 1.05rem; }
.ticker-list b { font-weight: 600; background: rgba(27,20,5,.1); padding: .1rem .55rem; border-radius: 999px; }
.ticker-list svg { width: 28px; height: 28px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Full-width scene bands ---------- */
.band { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(560px, 62vw, 860px); display: flex; align-items: flex-end; }
.band-img, .map-stage { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.band-img { transform: scale(1.08); will-change: transform; }
.band-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14,20,22,.95) 0%, rgba(14,20,22,.55) 34%, rgba(14,20,22,0) 62%), linear-gradient(180deg, var(--bg) 0%, transparent 14%); }
.band-copy { padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.band-copy h2 { font-size: clamp(2.8rem, 7vw, 5.5rem); margin-bottom: 1.25rem; text-shadow: 0 6px 30px rgba(0,0,0,.5); }
.band-copy p { max-width: 36rem; font-size: 1.2rem; color: #e3dfd3; text-shadow: 0 2px 14px rgba(0,0,0,.7); margin: 0; }
.band-armoury .band-shade, .band-ember .band-shade { background: linear-gradient(90deg, rgba(14,20,22,.92) 0%, rgba(14,20,22,.6) 36%, rgba(14,20,22,0) 64%), linear-gradient(180deg, var(--bg) 0%, transparent 14%), linear-gradient(0deg, var(--bg) 0%, transparent 14%); }
.band-armoury, .band-ember { align-items: center; }
.band-armoury .band-copy, .band-ember .band-copy { padding-block: 5rem; }
.band-campfire .band-copy { text-align: center; }
.band-campfire .band-copy p { margin-inline: auto; }

.map-stage { overflow: hidden; }
.map-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.map-grey { filter: grayscale(1) brightness(.55); -webkit-mask-image: linear-gradient(90deg, transparent var(--reveal), #000 calc(var(--reveal) + 12%)); mask-image: linear-gradient(90deg, transparent var(--reveal), #000 calc(var(--reveal) + 12%)); }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-green { background: var(--bg-green); }
.section-head { margin-bottom: 3rem; }
.section-head.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; }
.section-intro { color: var(--text-muted); max-width: 30rem; }

/* ---------- Playable demo ---------- */
.play { background: radial-gradient(70% 60% at 85% 20%, rgba(242,193,78,.08), transparent 70%), var(--bg); }
.console { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.5rem; background: linear-gradient(180deg, #1c272b, #141c1f); border: 1px solid var(--card-line); border-radius: 28px; padding: clamp(1rem, 2.5vw, 1.75rem); box-shadow: 0 40px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05); }
.skills-panel { display: grid; gap: .85rem; align-content: start; }
.skill-row { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 1rem; background: var(--card); border: 1px solid var(--card-line); border-radius: 18px; padding: 1rem 1.1rem; transition: border-color .3s, box-shadow .3s; }
.skill-row.is-levelling { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(242,193,78,.15), 0 0 40px rgba(242,193,78,.18); }
.skill-icon { width: 56px; height: 56px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
.skill-row.is-levelling .skill-icon { animation: hop .5s var(--ease-back); }
@keyframes hop { 40% { transform: translateY(-8px) rotate(-6deg) scale(1.1); } }
.skill-top { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .45rem; }
.skill-lvl { font-family: var(--font-label); font-weight: 600; color: var(--text-muted); font-size: .95rem; }
.skill-lvl b { color: var(--gold); font-size: 1.15rem; display: inline-block; }
.bump { animation: bump .55s var(--ease-back); }
@keyframes bump { 40% { transform: scale(1.7); color: var(--gold-bright); } }
.xp-bar { height: 12px; background: #0e1517; border-radius: 999px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.6); }
.xp-bar span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-bright)); border-radius: inherit; transition: width .25s var(--ease-out); position: relative; }
.xp-bar span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent) no-repeat; background-size: 50% 100%; animation: sheen 2.2s infinite; }
@keyframes sheen { from { background-position: -60% 0; } to { background-position: 160% 0; } }
.skill-sub { margin: .45rem 0 0; font-size: .9rem; color: var(--text-muted); }
.skill-sub b { color: var(--text); font-variant-numeric: tabular-nums; }
.act-btn { position: relative; overflow: hidden; min-height: 48px; min-width: 150px; padding: .6rem 1.1rem; border-radius: 999px; border: 2px solid var(--gold); background: transparent; color: var(--gold); font-family: var(--font-label); font-weight: 600; font-size: 1rem; cursor: pointer; transition: background .15s, color .15s, transform .1s; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.act-btn:hover { background: rgba(242,193,78,.12); }
.act-walk { background: var(--gold); color: var(--on-gold); box-shadow: 0 4px 0 var(--gold-deep); touch-action: none; }
.act-walk:hover { background: var(--gold-bright); }
.act-walk.is-held { box-shadow: 0 1px 0 var(--gold-deep); transform: translateY(3px); }
.act-label { position: relative; z-index: 1; }
.act-fill { position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(255,255,255,.3) 10px 20px); background-size: 28px 28px; opacity: 0; }
.act-walk.is-held .act-fill { opacity: 1; animation: stripes .5s linear infinite; }
@keyframes stripes { to { background-position: 28px 0; } }
.act-btn.pressed { animation: press .35s var(--ease-back); }
@keyframes press { 40% { transform: scale(.9); } }
.hint { font-size: .9rem; color: var(--text-muted); margin: .25rem 0 0 .25rem; }

.hero-panel { display: flex; }
.hero-card { position: relative; flex: 1; display: flex; flex-direction: column; background: radial-gradient(90% 60% at 50% 45%, #2a3b3a, #172025 70%); border: 1px solid var(--card-line); border-radius: 22px; padding: 1.25rem; overflow: hidden; }
.hero-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; position: relative; z-index: 2; }
.hero-name { font-family: var(--font-display); font-size: 1.6rem; color: var(--cream); margin: 0; line-height: 1.1; }
.hero-set { margin: .2rem 0 0; color: var(--gold); font-family: var(--font-label); font-weight: 500; }
.total-level { text-align: center; background: rgba(11,16,19,.6); border: 1px solid var(--card-line); border-radius: 16px; padding: .4rem .9rem; }
.tl-num { display: block; font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--gold); }
.tl-label { font-size: .75rem; color: var(--text-muted); font-family: var(--font-label); }
.hero-figure { position: relative; flex: 1; display: grid; place-items: end center; min-height: 300px; margin: .25rem 0 1rem; }
.hero-figure img { position: relative; z-index: 1; width: min(78%, 300px); -webkit-mask-image: radial-gradient(ellipse 58% 60% at 50% 48%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 58% 60% at 50% 48%, #000 62%, transparent 100%); filter: drop-shadow(0 18px 20px rgba(0,0,0,.5)); transition: filter .6s; }
.aura { position: absolute; left: 50%; bottom: 6%; width: 70%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; transition: background .8s; }
.hero-card.is-druid .aura { background: radial-gradient(closest-side, rgba(242,193,78,.45), rgba(111,191,74,.18) 60%, transparent); animation: pulse 2.4s ease-in-out infinite; }
.hero-card.is-druid .hero-figure img { filter: drop-shadow(0 0 18px rgba(242,193,78,.6)) drop-shadow(0 18px 20px rgba(0,0,0,.5)) saturate(1.15); }
.hero-card.just-unlocked .hero-figure img { animation: powerup 1.1s var(--ease-back); }
@keyframes powerup { 30% { transform: scale(.94) translateY(6px); filter: brightness(2.2); } 60% { transform: scale(1.08) translateY(-10px); } }
@keyframes pulse { 50% { transform: scale(1.08); opacity: .8; } }
.unlock-banner { position: absolute; z-index: 3; left: 50%; top: 42%; translate: -50% -50%; scale: .4; opacity: 0; background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: var(--on-gold); border-radius: 14px; padding: .65rem 1.3rem; text-align: center; box-shadow: 0 6px 0 var(--gold-deep), 0 20px 40px rgba(0,0,0,.5); pointer-events: none; white-space: nowrap; }
.unlock-banner.show { animation: banner 2.6s var(--ease-back) forwards; }
@keyframes banner { 0% { scale: .4; opacity: 0; } 15% { scale: 1.08; opacity: 1; } 25% { scale: 1; } 80% { scale: 1; opacity: 1; } 100% { scale: .9; opacity: 0; } }
.ub-kicker { display: block; font-family: var(--font-label); font-weight: 600; font-size: .8rem; }
.ub-title { display: block; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; }
.unlock-track { position: relative; z-index: 2; margin-bottom: 1.1rem; }
.ut-bar { height: 10px; background: #0e1517; border-radius: 999px; overflow: hidden; }
.ut-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #6fbf4a, var(--gold)); border-radius: inherit; transition: width .4s var(--ease-out); }
.ut-marks { display: flex; justify-content: space-between; margin-top: .45rem; font-family: var(--font-label); font-size: .9rem; color: var(--text-muted); }
.ut-mark small { opacity: .7; }
.ut-mark.is-done { color: var(--gold); }
.battle-cta { opacity: .5; pointer-events: none; transition: opacity .4s; }
.hero-card.is-druid .battle-cta { opacity: 1; pointer-events: auto; animation: nudge 1.6s ease-in-out 1s 3; }
@keyframes nudge { 50% { transform: translateY(-3px); box-shadow: 0 4px 0 var(--gold-deep), 0 0 0 8px rgba(242,193,78,.18); } }
.toasts { position: absolute; right: 1.25rem; top: -1.25rem; display: grid; gap: .5rem; z-index: 5; pointer-events: none; }
.toast { display: flex; align-items: center; gap: .6rem; background: #0f1517; border: 2px solid var(--gold); border-radius: 16px; padding: .55rem 1rem .55rem .6rem; box-shadow: 0 16px 40px rgba(0,0,0,.5), 0 0 30px rgba(242,193,78,.25); animation: toast 2.2s var(--ease-back) forwards; }
.toast svg { width: 40px; height: 40px; }
.toast-title { font-family: var(--font-display); color: var(--cream); font-size: 1.25rem; line-height: 1; }
.toast-num { font-family: var(--font-display); color: var(--gold); font-size: 2rem; line-height: 1; margin-left: .25rem; }
.toast-sub { display: block; font-family: var(--font-label); font-size: .8rem; color: var(--text-muted); }
@keyframes toast { 0% { opacity: 0; transform: translateY(16px) scale(.8); } 12% { opacity: 1; transform: none; } 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-12px); } }
.spark { position: fixed; z-index: 60; width: 8px; height: 8px; border-radius: 2px; pointer-events: none; }

/* ---------- Battle (full width) ---------- */
.battle-section { background: var(--bg); padding-bottom: clamp(3rem, 6vw, 5rem); }
.battle-grid { display: grid; gap: 2.5rem; }
.battle-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; }
.battle-copy h2 { grid-row: span 2; }
.battle-copy p { color: var(--text-muted); max-width: 32rem; margin: 0; }
.chapters { list-style: none; padding: 0; margin: 0; grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; counter-reset: ch; }
.chapters li { counter-increment: ch; display: flex; align-items: center; gap: .6rem; font-family: var(--font-label); font-weight: 500; color: var(--text-muted); }
.chapters li::before { content: counter(ch); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--card-line); font-size: .9rem; }
.chapters li.is-free { color: var(--text); }
.chapters li.is-free::before { background: var(--health); border-color: var(--health); color: #102010; }
.chapters li.is-here { color: var(--gold); }
.chapters li.is-here::before { border-color: var(--gold); background: var(--gold); color: var(--on-gold); box-shadow: 0 0 0 5px rgba(242,193,78,.2); }
.arena-wrap { width: 100vw; margin-left: calc(50% - 50vw); }
.arena { position: relative; overflow: hidden; height: clamp(440px, 52vw, 760px); border-block: 3px solid #3a2c1a; }
.arena > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform-origin: 50% 70%; }
.arena.shake > img { animation: shake .3s; }
@keyframes shake { 20% { transform: translate(-8px, 3px) scale(1.01); } 40% { transform: translate(8px, -3px) scale(1.01); } 60% { transform: translate(-5px, 1px); } 80% { transform: translate(3px, 0); } }
.hit-flash { position: absolute; top: 20%; bottom: 0; width: 50%; opacity: 0; pointer-events: none; mix-blend-mode: screen; }
.hit-flash.left { left: 0; background: radial-gradient(closest-side at 55% 55%, rgba(255,90,60,.8), transparent); }
.hit-flash.right { right: 0; background: radial-gradient(closest-side at 45% 55%, rgba(255,230,140,.85), transparent); }
.hit-flash.go { animation: flash .35s ease-out; }
@keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; } }
.fighters { position: absolute; top: 1.25rem; left: 50%; translate: -50% 0; width: min(100% - 2.5rem, var(--max)); display: flex; justify-content: space-between; gap: .75rem; }
.fighter { flex: 0 1 340px; background: rgba(15,21,23,.88); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: .7rem .9rem; backdrop-filter: blur(4px); }
.fighter.right { text-align: right; }
.f-name { margin: 0 0 .4rem; font-family: var(--font-label); font-weight: 600; color: var(--cream); line-height: 1.15; }
.f-name small { display: block; color: var(--gold); font-weight: 500; font-size: .8rem; }
.hp { height: 12px; background: #0b1012; border-radius: 999px; overflow: hidden; }
.hp span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #4f9e34, var(--health)); border-radius: inherit; transition: width .35s var(--ease-out); }
.fighter.right .hp span { margin-left: auto; }
.hp span.low { background: linear-gradient(90deg, #b8322b, var(--danger)); }
.hp-num { margin: .3rem 0 0; font-size: .85rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.hp-num b { color: var(--cream); font-size: 1rem; }
.dmg-layer { position: absolute; inset: 0; pointer-events: none; }
.dmg { position: absolute; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); color: #fff; -webkit-text-stroke: 2px #4a1205; paint-order: stroke fill; text-shadow: 0 4px 0 rgba(0,0,0,.35); animation: dmg .9s var(--ease-out) forwards; }
.dmg.crit { color: var(--gold-bright); font-size: clamp(2.6rem, 5.5vw, 4.4rem); }
@keyframes dmg { 0% { opacity: 0; transform: translateY(10px) scale(.6); } 20% { opacity: 1; transform: translateY(-10px) scale(1.15); } 100% { opacity: 0; transform: translateY(-70px) scale(1); } }
.result { position: absolute; left: 50%; top: 55%; translate: -50% -50%; width: min(88%, 460px); text-align: center; background: rgba(12,17,19,.93); border: 2px solid var(--gold); border-radius: 18px; padding: 1.4rem 1.4rem 1.1rem; opacity: 0; scale: .7; pointer-events: none; transition: opacity .3s, scale .45s var(--ease-back); }
.result.show { opacity: 1; scale: 1; pointer-events: auto; }
.result h3 { font-family: var(--font-display); font-weight: 400; font-size: 2.4rem; color: var(--gold); margin-bottom: .35rem; }
.result.lose h3 { color: var(--cream); }
.result p { color: var(--text); margin: 0; }
.arena-controls { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; margin-top: 1.5rem; }
.arena-note { color: var(--text-muted); font-size: .92rem; margin-top: .9rem; text-align: center; }

/* ---------- Ladder ---------- */
.ladder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.ladder-grid h2 { margin-bottom: 1.5rem; }
.ladder-grid .section-intro { margin-bottom: 2rem; }
.league { background: var(--card); border: 1px solid var(--card-line); border-radius: 24px; padding: 1.25rem; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.league-head { display: flex; align-items: center; gap: .9rem; padding: .25rem .25rem 1rem; border-bottom: 1px solid var(--card-line); margin-bottom: .75rem; }
.crest svg { width: 44px; height: 48px; filter: drop-shadow(0 4px 10px rgba(242,193,78,.35)); }
.league-title { font-family: var(--font-display); font-size: 1.5rem; color: var(--cream); margin: 0; line-height: 1.1; }
.league-sub { margin: 0; color: var(--text-muted); font-size: .9rem; }
.league-list { list-style: none; margin: 0; padding: 0; position: relative; }
.league-list li { display: grid; grid-template-columns: 2.2rem 1fr auto; align-items: center; gap: .5rem; padding: .6rem .75rem; border-radius: 12px; font-family: var(--font-label); font-weight: 500; }
.league-list li:nth-child(-n+3) .rank { background: var(--gold); color: var(--on-gold); }
.rank { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #0e1517; color: var(--text-muted); font-size: .85rem; font-weight: 600; }
.pts { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.league-list li.is-you { background: linear-gradient(90deg, rgba(242,193,78,.25), rgba(242,193,78,.08)); color: var(--cream); outline: 2px solid var(--gold); outline-offset: -2px; position: relative; z-index: 2; }
.league-list li.is-you .pts { color: var(--gold); font-weight: 600; }

/* ---------- Free ---------- */
.free-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.free-grid h2 { margin-bottom: 2rem; }
.promises { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1rem; }
.promises li { position: relative; padding-left: 2.25rem; color: var(--text-muted); }
.promises li b { color: var(--cream); }
.promises li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%231b1405' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }
.pass-note { background: var(--cream); border-radius: 18px; padding: 1.4rem 1.5rem; max-width: 34rem; }
.pass-note p { color: #4b4535; }
.pass-note b { color: var(--on-cream); }
.pass-note .text-link { color: #6b4e00; }
.art { border-radius: var(--radius); box-shadow: 0 30px 60px rgba(0,0,0,.45); max-width: 440px; width: 100%; }
.tilt { transition: transform .2s ease-out; will-change: transform; justify-self: center; }

/* ---------- FAQ ---------- */
.faq-title { margin-bottom: 2.5rem; }
.faq { display: grid; gap: .75rem; }
.faq details { background: var(--card); border: 1px solid var(--card-line); border-radius: 16px; padding: 0 1.5rem; transition: border-color .2s; }
.faq details[open] { border-color: rgba(242,193,78,.5); }
.faq summary { cursor: pointer; list-style: none; padding: 1.25rem 2rem 1.25rem 0; position: relative; font-family: var(--font-label); font-weight: 600; font-size: 1.15rem; color: var(--cream); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.6rem; transition: transform .25s var(--ease-back); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--text-muted); padding-bottom: 1.25rem; margin: 0; }

/* ---------- Waitlist ---------- */
.waitlist { overflow: hidden; isolation: isolate; min-height: 720px; display: flex; align-items: center; }
.waitlist .band-shade { background: radial-gradient(70% 70% at 50% 55%, rgba(14,20,22,.88), rgba(14,20,22,.55) 70%), linear-gradient(180deg, var(--bg) 0%, transparent 18%); }
.waitlist .container { position: relative; z-index: 2; }
.waitlist h2 { font-size: clamp(3rem, 8vw, 5.5rem); text-shadow: 0 6px 30px rgba(0,0,0,.5); }
.waitlist-icon { margin: 0 auto 1.5rem; animation: bob 3s ease-in-out infinite; filter: drop-shadow(0 10px 20px rgba(242,193,78,.35)); }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-3deg); } }
.waitlist .lede { margin: 1.5rem auto 0; }
.waitlist-form { display: flex; gap: .75rem; max-width: 540px; margin: 2rem auto 0; }
.waitlist-form input { flex: 1; min-height: 56px; padding: 0 1.4rem; border-radius: 999px; border: 2px solid var(--card-line); background: rgba(23,32,37,.9); color: var(--text); font: inherit; transition: border-color .2s; }
.waitlist-form input:focus { border-color: var(--gold); outline: none; }
.waitlist-form input::placeholder { color: #6f7877; }
.waitlist-form .btn { min-height: 56px; }
.form-status { min-height: 1.6em; margin-top: 1rem; color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { font-family: var(--font-label); font-weight: 600; font-size: .95rem; color: var(--text-muted); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-grid a:not(.logo) { color: var(--text); text-decoration: none; }
.footer-grid a:not(.logo):hover { color: var(--gold); }
.footer-grid .logo { margin-bottom: 1rem; }
.footer-base { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.07); color: var(--text-muted); font-size: .9rem; font-family: var(--font-label); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .console { grid-template-columns: 1fr; }
  .hero-panel { order: -1; }
  .hero-figure { min-height: 240px; }
  .hero-figure img { width: min(55%, 240px); }
  .ladder-grid, .free-grid, .section-head.split, .battle-copy { grid-template-columns: 1fr; }
  .battle-copy h2 { grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .toasts { position: fixed; top: 86px; right: 1rem; }
  .band-armoury .band-shade, .band-ember .band-shade { background: linear-gradient(0deg, rgba(14,20,22,.95) 0%, rgba(14,20,22,.55) 40%, rgba(14,20,22,0) 70%), linear-gradient(180deg, var(--bg) 0%, transparent 14%); }
  .band-armoury, .band-ember { align-items: flex-end; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--card-line); padding: .5rem 1.25rem 1.25rem; display: none; }
  .nav-links.open { display: flex; }
  .site-header:has(.nav-links.open) { background: var(--bg); }
  .nav-links li a:not(.btn) { display: block; padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.05); }
  .nav-links .btn { margin-top: 1rem; width: 100%; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { align-items: flex-end; }
  .hero::after { background: linear-gradient(0deg, rgba(14,20,22,.96) 0%, rgba(14,20,22,.75) 45%, rgba(14,20,22,.1) 80%); }
  .band { min-height: 600px; }
  .skill-row { grid-template-columns: 44px 1fr; }
  .skill-icon { width: 44px; height: 44px; }
  .act-btn { grid-column: 1 / -1; width: 100%; }
  .waitlist-form { flex-direction: column; }
  .footer-base { flex-direction: column; }
  .fighter { padding: .5rem .6rem; }
  .f-name { font-size: .85rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .scene-grey, .map-grey { display: none; }
  .fog { opacity: .1; }
  .hero-title .line > span { transform: none; }
  .hero-lede, .hero-ctas, .hero-fine, .scroll-cue { opacity: 1; }
  .ticker-track { animation: none; }
  .band-img { transform: none; }
}
