/* =================================================================
   WIZGANK — vaporwave arcane
   Palette: void #0b0118 · magenta #ff2e97 · cyan #00f0ff · violet #b14aed · lime #c4f000
   Type: Monoton (logo) · Audiowide (display) · Space Mono (body/data)
   ================================================================= */

:root {
  --void: #0b0118;
  --void-2: #150428;
  --panel: #1a0833;
  --panel-2: #220b40;
  --line: #3a1d63;
  --magenta: #ff2e97;
  --cyan: #00f0ff;
  --violet: #b14aed;
  --lime: #c4f000;
  --ink: #f4f4ff;
  --muted: #b9a8d8;
  --dim: #7c6aa0;
  --chrome: linear-gradient(180deg, #ffffff, #cfd2ff 40%, #8f7bd6 60%, #ffffff);
  --neon: linear-gradient(90deg, var(--magenta), var(--violet) 50%, var(--cyan));
  --sunset: linear-gradient(180deg, #ff2e97 0%, #b14aed 50%, #2b0a4a 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --glow-m: 0 0 24px rgba(255, 46, 151, .45);
  --glow-c: 0 0 24px rgba(0, 240, 255, .4);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(177, 74, 237, .28), transparent 60%),
    radial-gradient(900px 500px at 110% 18%, rgba(0, 240, 255, .12), transparent 55%),
    radial-gradient(900px 500px at -10% 10%, rgba(255, 46, 151, .14), transparent 55%),
    var(--void);
  color: var(--ink);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  letter-spacing: .2px;
}

/* soft vignette only (scanlines removed) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background:
    radial-gradient(125% 125% at 50% 45%, transparent 66%, rgba(0, 0, 0, .5) 100%);
  mix-blend-mode: multiply;
  opacity: .55;
}

a { color: var(--cyan); text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: "Audiowide", system-ui, sans-serif; font-weight: 400; line-height: 1.05; letter-spacing: .5px; margin: 0; }
.eyebrow {
  font-size: 12px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--cyan); margin: 0 0 14px;
}
.section-title { font-size: clamp(26px, 4vw, 44px); }
.lead { color: var(--muted); font-size: 17px; max-width: 60ch; }

.grad-text {
  background: var(--neon); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.chrome-text {
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.4));
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 900;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(11, 1, 24, .85), rgba(11, 1, 24, .35));
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { font-family: "Monoton", cursive; font-size: 22px; color: var(--ink); letter-spacing: 1px; text-shadow: var(--glow-m); }
.brand b { color: var(--cyan); text-shadow: var(--glow-c); }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); font-size: 14px; letter-spacing: .5px; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: 6px; }
.nav-burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 8px 10px; cursor: pointer; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font-family: "Audiowide", sans-serif; font-size: 14px; letter-spacing: 1px;
  padding: 13px 22px; border-radius: 999px; cursor: pointer; border: 0;
  transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
  text-transform: uppercase;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--neon); color: #16031f; box-shadow: var(--glow-m); }
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 0 34px rgba(255, 46, 151, .6); }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--cyan); box-shadow: var(--glow-c); }
.btn-cyan { background: var(--cyan); color: #00141a; box-shadow: var(--glow-c); }
.btn-sm { padding: 9px 14px; font-size: 12px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- sections ---------- */
.section { padding: 92px 0; position: relative; }
.section-head { margin-bottom: 40px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 60px 0 40px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center;
}
.hero h1 { font-size: clamp(40px, 7vw, 84px); line-height: .98; }
.hero .kicker { font-family: "Space Mono"; color: var(--lime); letter-spacing: 3px; text-transform: uppercase; font-size: 13px; }
.hero p.lead { margin: 18px 0 26px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stage { position: relative; aspect-ratio: 1 / 1; }
#ring-hero, .ring-canvas { width: 100%; height: 100%; display: block; }
.hero-stage .arbiter-float {
  position: absolute; inset: 0; margin: auto; width: 26%; aspect-ratio: 1;
  pointer-events: none; filter: drop-shadow(0 0 24px rgba(0,240,255,.5));
  animation: bob 5s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(-4%); } 50% { transform: translateY(4%); } }

/* perspective grid floor behind hero */
.gridfloor {
  position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%);
  width: 200%; height: 320px; pointer-events: none; opacity: .5; z-index: -1;
  background:
    linear-gradient(transparent, var(--void) 78%),
    repeating-linear-gradient(90deg, rgba(0,240,255,.25) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(255,46,151,.22) 0 1px, transparent 1px 64px);
  transform: translateX(-50%) perspective(420px) rotateX(62deg);
  transform-origin: bottom center;
}

/* ---------- marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); overflow: hidden; }
.marquee-track { display: flex; gap: 42px; white-space: nowrap; padding: 12px 0; animation: scroll 26s linear infinite; font-family: "Audiowide"; letter-spacing: 2px; color: var(--muted); }
.marquee-track span { color: var(--magenta); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- cards ---------- */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--neon); opacity: .8; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.card .num { font-family: "Audiowide"; font-size: 13px; color: var(--cyan); letter-spacing: 2px; }

.statstrip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.stat { text-align: center; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; background: rgba(255,255,255,.02); }
.stat b { display: block; font-family: "Audiowide"; font-size: clamp(24px, 4vw, 38px); }
.stat span { color: var(--dim); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }

/* ---------- statement cards (our style) ---------- */
.statements { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.statement { border: 1px dashed var(--line); border-radius: var(--radius); padding: 26px; background: rgba(255,46,151,.04); }
.statement h3 { font-size: 20px; color: var(--magenta); margin-bottom: 8px; }
.statement p { color: var(--muted); margin: 0; }

/* ---------- roster ---------- */
.roster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fighter {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), #14062a);
  overflow: hidden; transition: transform .15s ease, box-shadow .2s ease;
}
.fighter:hover { transform: translateY(-4px); }
.fighter .portrait {
  aspect-ratio: 1; display: grid; place-items: center; position: relative;
  background: radial-gradient(120% 120% at 50% 20%, rgba(255,255,255,.06), transparent 60%);
  border-bottom: 1px solid var(--line);
}
.fighter .portrait img { width: 100%; height: 100%; object-fit: cover; }
.fighter .portrait .fallback { font-family: "Audiowide"; font-size: 40px; color: #16031f; width: 100%; height: 100%; display: grid; place-items: center; }
.fighter .meta { padding: 16px; }
.fighter .meta .el { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.fighter .meta h3 { font-size: 20px; margin: 4px 0 6px; }
.fighter .meta p { color: var(--muted); font-size: 13px; margin: 0; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; background: rgba(255,255,255,.02); }
.step .n { font-family: "Audiowide"; font-size: 13px; color: var(--lime); letter-spacing: 3px; }
.step h3 { font-size: 17px; margin: 8px 0; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- tokenomics ---------- */
.tok { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: stretch; }
.tok-list { display: grid; gap: 12px; }
.tok-row { display: flex; justify-content: space-between; gap: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; background: rgba(255,255,255,.02); }
.tok-row b { font-family: "Audiowide"; color: var(--cyan); }
.tok-note { color: var(--muted); font-size: 14px; }
.ca-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: linear-gradient(180deg, var(--panel), var(--panel-2)); }
.ca-box .label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); }
.ca-row { display: flex; gap: 10px; margin: 10px 0 16px; }
.ca-field { flex: 1; border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; font-size: 13px; color: var(--lime); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #0e0220; }

/* ---------- roadmap ---------- */
.road { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.phase { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: rgba(255,255,255,.02); }
.phase .tag { font-family: "Audiowide"; font-size: 12px; color: var(--magenta); letter-spacing: 2px; }
.phase h3 { font-size: 15px; margin: 8px 0; color: var(--cyan); }
.phase ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; }
.phase.live { border-color: var(--lime); box-shadow: 0 0 22px rgba(196,240,0,.18); }

/* ---------- faq ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; background: rgba(255,255,255,.02); }
.faq-item summary { cursor: pointer; padding: 18px 20px; font-family: "Audiowide"; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--cyan); }
.faq-item[open] summary::after { content: "–"; }
.faq-item .a { padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; }

/* ---------- leaderboard ---------- */
.lb-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,.02); }
table.lb { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.lb th, table.lb td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.lb th { font-family: "Audiowide"; font-size: 11px; letter-spacing: 1px; color: var(--dim); text-transform: uppercase; }
table.lb tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; letter-spacing: 1px; }
.badge.shatter { background: rgba(255,46,151,.18); color: var(--magenta); border: 1px solid var(--magenta); }
.badge.decree { background: rgba(0,240,255,.14); color: var(--cyan); border: 1px solid var(--cyan); }
.badge.stalemate { background: rgba(124,106,160,.18); color: var(--muted); border: 1px solid var(--dim); }

/* ---------- launch / cta ---------- */
.cta-band { border: 1px solid var(--line); border-radius: 26px; padding: 40px; text-align: center; background: radial-gradient(120% 160% at 50% 0%, rgba(177,74,237,.25), transparent 60%), linear-gradient(180deg, var(--panel), var(--panel-2)); }
.countdown { display: flex; gap: 14px; justify-content: center; margin: 22px 0; }
.cd-unit { min-width: 78px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #0e0220; }
.cd-unit b { display: block; font-family: "Audiowide"; font-size: 30px; }
.cd-unit span { font-size: 11px; color: var(--dim); letter-spacing: 1px; text-transform: uppercase; }

/* ---------- waitlist ---------- */
.waitlist { display: flex; gap: 10px; max-width: 460px; margin: 16px auto 0; }
.input { flex: 1; background: #0e0220; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 12px 14px; font-family: "Space Mono"; }
.input:focus { outline: none; border-color: var(--cyan); box-shadow: var(--glow-c); }
.form-msg { font-size: 13px; margin-top: 10px; color: var(--lime); min-height: 18px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--dim); font-size: 13px; }
.footer .row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer a { color: var(--muted); }
.disclaimer { margin-top: 12px; font-size: 11.5px; color: var(--dim); max-width: 70ch; }

/* =================================================================
   HERO wordmark + CREW band
   ================================================================= */
.hero-wordmark { width: min(560px, 92%); margin: 0 0 6px -4px; filter: drop-shadow(0 0 30px rgba(255,46,151,.35)); }
.hero .tagline { font-family: "Audiowide"; font-size: clamp(22px, 3.4vw, 40px); line-height: 1.04; margin: 6px 0 0; }

/* mask the dark square edges of the eye art so it blends into the bg */
.arbiter-float, .arbiter-eye img {
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 56%, rgba(0,0,0,.35) 68%, transparent 76%);
  mask-image: radial-gradient(circle at 50% 50%, #000 56%, rgba(0,0,0,.35) 68%, transparent 76%);
}

.crew { padding: 0 0 92px; }
.crew-frame {
  position: relative; border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  box-shadow: 0 0 60px rgba(177,74,237,.18);
}
.crew-frame img { width: 100%; display: block; }
.crew-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11,1,24,.85) 0%, transparent 34%, transparent 70%, rgba(11,1,24,.65) 100%);
}
.crew-cap { position: absolute; left: 28px; bottom: 24px; right: 28px; z-index: 2; }
.crew-cap h3 { font-size: clamp(22px, 3vw, 34px); }
.crew-cap p { color: var(--muted); margin: 6px 0 0; max-width: 52ch; }

/* =================================================================
   ARENA (app.html) — fighting-game VS stage
   ================================================================= */
.arena { padding: 30px 0 80px; }
.tabs { display: flex; gap: 8px; margin-bottom: 22px; }
.tab { font-family: "Audiowide"; font-size: 13px; letter-spacing: 1px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted); cursor: pointer; }
.tab.active { background: var(--neon); color: #16031f; border-color: transparent; }
.panel-tab { display: none; }
.panel-tab.active { display: block; animation: pop .3s ease; }

.duel-shell { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: start; }

/* ---- setup sidebar ---- */
.setup { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: linear-gradient(180deg, var(--panel), var(--panel-2)); position: sticky; top: 80px; }
.setup h3 { font-size: 15px; margin-bottom: 12px; color: var(--cyan); }
.field-label { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--dim); margin: 12px 0 5px; }
.corner-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin: 14px 0 6px; }
.corner-label.blue { color: var(--cyan); }
.corner-label.red { color: var(--magenta); }

.pick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pick {
  border: 1px solid var(--line); border-radius: 12px; padding: 8px; cursor: pointer; text-align: center;
  background: rgba(255,255,255,.02); transition: border-color .15s, box-shadow .15s, transform .12s; position: relative;
}
.pick:hover { transform: translateY(-2px); }
.pick .thumb { width: 100%; aspect-ratio: 1; border-radius: 9px; overflow: hidden; margin-bottom: 6px; background: #160630; }
.pick .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick .nm { font-family: "Audiowide"; font-size: 12px; }
.pick small { display: block; color: var(--dim); font-size: 10px; letter-spacing: 1px; }
.pick .tagb { position: absolute; top: 6px; left: 6px; font-family: "Audiowide"; font-size: 9px; padding: 2px 6px; border-radius: 6px; display: none; }
.pick.sel-blue { border-color: var(--cyan); box-shadow: var(--glow-c); }
.pick.sel-red { border-color: var(--magenta); box-shadow: var(--glow-m); }
.pick.sel-blue .tagb { display: block; background: var(--cyan); color: #00141a; }
.pick.sel-red .tagb { display: block; background: var(--magenta); color: #16031f; }

.sel-line { font-size: 12px; margin-top: 4px; }

/* ---- stage ---- */
.stage-col { min-width: 0; }
.versus {
  position: relative; display: grid; grid-template-columns: 1fr 220px 1fr; gap: 16px; align-items: stretch;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  background: radial-gradient(120% 130% at 50% 0%, rgba(177,74,237,.22), transparent 60%), #0c0220; overflow: hidden;
}
.versus::before { /* grid floor */
  content: ""; position: absolute; left: 50%; bottom: -40px; width: 160%; height: 220px; transform: translateX(-50%) perspective(380px) rotateX(64deg); transform-origin: bottom center; opacity: .35; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(0,240,255,.3) 0 1px, transparent 1px 46px), repeating-linear-gradient(0deg, rgba(255,46,151,.25) 0 1px, transparent 1px 46px);
}

.vs-card { position: relative; display: flex; flex-direction: column; }
.vs-portrait {
  position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  background: #140628; transition: transform .2s ease, box-shadow .25s ease, filter .25s ease;
}
.vs-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vs-portrait .ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: "Audiowide"; font-size: 46px; color: var(--dim); }
.vs-card.blue .vs-portrait { box-shadow: inset 0 0 0 1px rgba(0,240,255,.25); }
.vs-card.red .vs-portrait { box-shadow: inset 0 0 0 1px rgba(255,46,151,.25); }
/* casting + hit states */
.vs-card.casting .vs-portrait { transform: translateY(-6px) scale(1.03); }
.vs-card.blue.casting .vs-portrait { box-shadow: 0 0 34px rgba(0,240,255,.6); }
.vs-card.red.casting .vs-portrait { box-shadow: 0 0 34px rgba(255,46,151,.6); }
.vs-card.hit .vs-portrait { animation: shake .4s ease; filter: brightness(1.25) saturate(1.2); }
@keyframes shake { 10%,90%{transform:translateX(-2px)} 30%,70%{transform:translateX(4px)} 50%{transform:translateX(-6px)} }

.vs-name { font-family: "Audiowide"; font-size: 16px; margin-top: 10px; }
.vs-card.blue .vs-name { color: var(--cyan); }
.vs-card.red .vs-name { color: var(--magenta); text-align: right; }
.vs-opt { font-size: 11px; color: var(--muted); }
.vs-card.red .vs-opt { text-align: right; }

.ward { margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.ward .track { flex: 1; height: 12px; border-radius: 999px; background: #1c0a36; border: 1px solid var(--line); overflow: hidden; }
.ward .fill { height: 100%; width: 100%; transition: width .55s cubic-bezier(.4,0,.2,1); }
.ward.blue .fill { background: linear-gradient(90deg, #0aa, var(--cyan)); }
.ward.red .fill { background: linear-gradient(90deg, var(--magenta), #a06); }
.ward .num { font-family: "Audiowide"; font-size: 13px; min-width: 30px; }
.vs-card.red .ward { flex-direction: row-reverse; }

/* spell + damage popups */
.spell-pop {
  position: absolute; top: 42%; left: 50%; transform: translate(-50%,-50%); z-index: 4;
  font-family: "Audiowide"; font-size: 15px; letter-spacing: 1px; padding: 6px 12px; border-radius: 999px;
  background: rgba(8,2,20,.82); border: 1px solid var(--line); opacity: 0; white-space: nowrap; pointer-events: none;
}
.vs-card.blue .spell-pop { color: var(--cyan); border-color: rgba(0,240,255,.5); }
.vs-card.red .spell-pop { color: var(--magenta); border-color: rgba(255,46,151,.5); }
.spell-pop.show { animation: spellpop 1.5s ease; }
@keyframes spellpop { 0%{opacity:0; transform:translate(-50%,-30%) scale(.8)} 18%{opacity:1; transform:translate(-50%,-50%) scale(1)} 80%{opacity:1} 100%{opacity:0; transform:translate(-50%,-60%)} }

.dmg-pop {
  position: absolute; top: 38%; left: 50%; transform: translateX(-50%); z-index: 5;
  font-family: "Audiowide"; font-size: 42px; color: var(--lime); text-shadow: 0 0 18px rgba(196,240,0,.7); opacity: 0; pointer-events: none;
}
.dmg-pop.show { animation: dmgpop 1.2s ease; }
@keyframes dmgpop { 0%{opacity:0; transform:translateX(-50%) translateY(10px) scale(.6)} 25%{opacity:1; transform:translateX(-50%) translateY(-6px) scale(1.1)} 100%{opacity:0; transform:translateX(-50%) translateY(-48px) scale(1)} }

/* center ring + arbiter */
.ring-stack { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.arbiter-eye { width: 70px; aspect-ratio: 1; }
.arbiter-eye img { width: 100%; height: 100%; object-fit: cover; filter: drop-shadow(0 0 14px rgba(0,240,255,.5)); animation: bob 5s ease-in-out infinite; }
.ring-mini { width: 100%; aspect-ratio: 1; max-width: 220px; }
#ring-arena { width: 100%; height: 100%; display: block; }
.arbiter-label { font-family: "Audiowide"; font-size: 10px; letter-spacing: 3px; color: var(--dim); }

/* round flash + shatter overlays */
.round-flash { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 6; font-family: "Audiowide"; font-size: clamp(36px,7vw,64px); letter-spacing: 4px; color: var(--ink); opacity: 0; text-shadow: var(--glow-m); }
.round-flash.show { animation: flash 1s ease; }
@keyframes flash { 0%{opacity:0; transform:scale(.7)} 30%{opacity:1; transform:scale(1)} 100%{opacity:0; transform:scale(1.12)} }
.vs-shatter { position: absolute; inset: 0; pointer-events: none; z-index: 7; opacity: 0; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.9), rgba(255,46,151,.3) 30%, transparent 60%); }
.vs-shatter.show { animation: shatterflash .6s ease; }
@keyframes shatterflash { 0%{opacity:0} 20%{opacity:1} 100%{opacity:0} }

/* sound toggle */
.sound-toggle { position: absolute; top: 14px; right: 14px; z-index: 8; background: rgba(8,2,20,.7); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; width: 36px; height: 36px; cursor: pointer; font-size: 15px; }
.sound-toggle:hover { border-color: var(--cyan); color: var(--ink); }

/* transcript */
.transcript { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; min-height: 80px; }
.bubble { max-width: 80%; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: rgba(255,255,255,.03); animation: pop .25s ease; }
.bubble.blue { align-self: flex-start; border-color: rgba(0,240,255,.5); }
.bubble.red { align-self: flex-end; border-color: rgba(255,46,151,.5); }
.bubble .top { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; margin-bottom: 6px; }
.bubble .who { color: var(--dim); }
.bubble .spell { font-family: "Audiowide"; letter-spacing: 1px; }
.bubble.blue .spell { color: var(--cyan); }
.bubble.red .spell { color: var(--magenta); }
.bubble .dmg { color: var(--lime); font-weight: 700; }
.bubble p { margin: 0; font-size: 14px; }
.bubble .note { margin-top: 6px; font-size: 11.5px; color: var(--dim); font-style: italic; }
.thinking { color: var(--dim); font-size: 13px; align-self: center; }
.thinking::after { content: ""; animation: dots 1.2s steps(4,end) infinite; }
@keyframes dots { 0%{content:"·"} 33%{content:"··"} 66%{content:"···"} }

/* result */
.result { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: none; text-align: center; background: radial-gradient(120% 160% at 50% 0%, rgba(196,240,0,.12), transparent 60%); position: relative; overflow: hidden; }
.result.show { display: block; animation: pop .3s ease; }
.result .verdict { font-family: "Audiowide"; font-size: clamp(26px, 5vw, 46px); }
.result .vs-faces { display: flex; justify-content: center; gap: 30px; margin: 18px 0; align-items: center; }
.result .face { width: 150px; max-width: 38vw; }
.result .face .frame { aspect-ratio: 1; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.result .face .frame img { width: 100%; height: 100%; object-fit: cover; }
.result .face .fb { width: 100%; height: 100%; display: grid; place-items: center; font-family: "Audiowide"; font-size: 34px; color: #16031f; }
.result .face.win { filter: drop-shadow(0 0 20px rgba(196,240,0,.55)); transform: scale(1.06); }
.result .face.win .frame { border-color: var(--lime); }
.result .face.lose { opacity: .45; filter: grayscale(.5); }
.result .tagn { font-family: "Audiowide"; font-size: 13px; letter-spacing: 1px; margin-top: 8px; }
.result .sub { color: var(--muted); font-size: 13px; }
.result .vmid { font-family: "Monoton"; color: var(--violet); font-size: 20px; }

.notice { padding: 14px 16px; border: 1px solid var(--magenta); border-radius: 12px; color: var(--magenta); background: rgba(255,46,151,.08); margin-top: 14px; display: none; }
.notice.show { display: block; animation: pop .25s ease; }

/* leaderboard */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { font-size: 12px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted); cursor: pointer; }
.chip.active { border-color: var(--cyan); color: var(--ink); box-shadow: var(--glow-c); }

/* =================================================================
   DOCS (docs.html)
   ================================================================= */
.docs { display: grid; grid-template-columns: 230px 1fr; gap: 32px; padding: 40px 0 80px; }
.toc { position: sticky; top: 80px; height: fit-content; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: rgba(255,255,255,.02); }
.toc a { display: block; color: var(--muted); font-size: 13.5px; padding: 6px 0; }
.toc a:hover { color: var(--cyan); }
.doc-body h2 { font-size: 26px; margin: 38px 0 14px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 17px; margin: 22px 0 8px; color: var(--cyan); }
.doc-body p, .doc-body li { color: var(--muted); }
.doc-body code { background: #0e0220; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; font-size: 13px; color: var(--lime); }
.doc-body pre { background: #0e0220; border: 1px solid var(--line); border-radius: 12px; padding: 16px; overflow-x: auto; font-size: 13px; }
.doc-body hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }
.doc-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: rgba(255,255,255,.02); margin: 14px 0; }

/* =================================================================
   responsive
   ================================================================= */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-links.open { display: flex; position: absolute; top: 64px; right: 0; left: 0; flex-direction: column; background: var(--void-2); border-bottom: 1px solid var(--line); padding: 16px 22px; gap: 14px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { max-width: 420px; margin: 0 auto; }
  .cards, .roster, .steps, .road { grid-template-columns: 1fr 1fr; }
  .statements, .tok, .duel-shell, .docs { grid-template-columns: 1fr; }
  .setup { position: static; }
  .lb-stats, .statstrip { grid-template-columns: 1fr; }
  .toc { position: static; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .cards, .roster, .steps, .road { grid-template-columns: 1fr; }
  .countdown { flex-wrap: wrap; }
  .waitlist { flex-direction: column; }
  .result .vs-faces { gap: 14px; }
  .result .face { width: 96px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  body::after { opacity: .25; }
}

/* ============================================================
   NAV action cluster — CA chip + socials + buy
   ============================================================ */
.nav-actions { display: inline-flex; align-items: center; gap: 10px; margin-left: 8px; }
.ca-chip {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--ink);
  border-radius: 999px; padding: 6px 11px; font-family: "Space Mono", monospace; font-size: 12px; line-height: 1;
  transition: border-color .15s, box-shadow .15s;
}
.ca-chip:hover { border-color: var(--cyan); box-shadow: var(--glow-c); }
.ca-chip .ca-k { font-family: "Audiowide"; font-size: 10px; letter-spacing: 1px; color: var(--dim); }
.ca-chip .ca-v { color: var(--cyan); max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-chip .ca-x::before { content: "\29C9"; font-size: 13px; color: var(--muted); }
.ca-chip.copied { border-color: var(--lime); box-shadow: 0 0 16px rgba(196,240,0,.4); }
.ca-chip.copied .ca-v { color: var(--lime); }
.ca-chip.copied .ca-x::before { content: "\2713"; color: var(--lime); }
.nav-ic {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted); font-size: 14px; text-decoration: none;
  transition: border-color .15s, color .15s, box-shadow .15s;
}
.nav-ic:hover { border-color: var(--magenta); color: var(--ink); box-shadow: var(--glow-m); }
@media (max-width: 860px) {
  .nav-actions { width: 100%; flex-wrap: wrap; margin-left: 0; margin-top: 8px; }
  .ca-chip .ca-v { max-width: 160px; }
}

/* ============================================================
   ANIMATED ARCANE BACKGROUND (injected by js/bg.js)
   ============================================================ */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

/* drifting aurora orbs */
.bg-fx .orb { position: absolute; border-radius: 50%; filter: blur(72px); opacity: .42; mix-blend-mode: screen; }
.bg-fx .o1 { width: 48vw; height: 48vw; left: -12vw; top: -10vw;  background: radial-gradient(circle, var(--magenta), transparent 68%); animation: drift1 28s ease-in-out infinite; }
.bg-fx .o2 { width: 42vw; height: 42vw; right: -12vw; top: 8vh;   background: radial-gradient(circle, var(--cyan), transparent 68%);    animation: drift2 34s ease-in-out infinite; }
.bg-fx .o3 { width: 50vw; height: 50vw; left: 8vw; bottom: -24vw; background: radial-gradient(circle, var(--violet), transparent 70%);  animation: drift3 30s ease-in-out infinite; }
.bg-fx .o4 { width: 26vw; height: 26vw; right: 14vw; bottom: 2vh;  background: radial-gradient(circle, var(--lime), transparent 72%);    animation: drift4 24s ease-in-out infinite; opacity: .25; }
@keyframes drift1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(7vw,5vh) scale(1.08)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-6vw,7vh) scale(1.1)} }
@keyframes drift3 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(5vw,-6vh) scale(1.06)} }
@keyframes drift4 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-5vw,-5vh) scale(1.12)} }

/* twinkling starfield */
.bg-fx .stars { position: absolute; inset: -20%; background-repeat: repeat;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,.85), transparent),
    radial-gradient(1px 1px at 70% 60%, rgba(0,240,255,.8), transparent),
    radial-gradient(1.5px 1.5px at 40% 80%, rgba(255,46,151,.7), transparent),
    radial-gradient(1px 1px at 85% 22%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 55% 45%, rgba(177,74,237,.85), transparent),
    radial-gradient(1.5px 1.5px at 12% 72%, rgba(255,255,255,.6), transparent);
  background-size: 600px 600px, 520px 520px, 720px 720px, 460px 460px, 660px 660px, 560px 560px;
  animation: starscroll 90s linear infinite; opacity: .55;
}
@keyframes starscroll { from{background-position:0 0,0 0,0 0,0 0,0 0,0 0} to{background-position:0 -600px,0 -520px,0 -720px,0 -460px,0 -660px,0 -560px} }

/* floating arcane ornaments */
.bg-fx .orn { position: absolute; will-change: transform; }
.bg-fx .orn svg { display: block; width: 100%; height: 100%; }
.bg-fx .f-a { animation: floatA 14s ease-in-out infinite; }
.bg-fx .f-b { animation: floatB 18s ease-in-out infinite; }
.bg-fx .f-c { animation: floatC 22s ease-in-out infinite; }
.bg-fx .spin  { animation: spin 42s linear infinite; }
.bg-fx .spinr { animation: spin 56s linear infinite reverse; }
.bg-fx .tw    { animation: twk 5s ease-in-out infinite; }
@keyframes floatA { 0%,100%{transform:translateY(0) rotate(0)} 50%{transform:translateY(-26px) rotate(8deg)} }
@keyframes floatB { 0%,100%{transform:translateY(0) rotate(0)} 50%{transform:translateY(22px) rotate(-10deg)} }
@keyframes floatC { 0%,100%{transform:translate(0,0) rotate(0)} 50%{transform:translate(14px,-16px) rotate(6deg)} }
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes twk { 0%,100%{opacity:.25; transform:scale(.9)} 50%{opacity:.85; transform:scale(1.1)} }
@media (prefers-reduced-motion: reduce) { .bg-fx { opacity: .5; } }
