/* PROOF OF FIST - cyber-arena theme. Mobile first. */

:root {
  --bg: #06060c;
  --bg-2: #0c0c18;
  --panel: rgba(18, 18, 34, 0.78);
  --panel-solid: #12122a;
  --line: rgba(140, 150, 255, 0.16);
  --line-strong: rgba(140, 150, 255, 0.32);
  --text: #eef0ff;
  --muted: #a4a8cc;
  --dim: #7a7ea6;
  --cyan: #2ee6ff;
  --magenta: #ff3dd8;
  --violet: #8b5cff;
  --gold: #ffc94a;
  --green: #3dffa2;
  --red: #ff4d6d;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --font-display: "Chakra Petch", "Rajdhani", system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  --font-emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  --tension: 0; /* 0..1, driven by the arena as you climb */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 50% -10%, rgba(139, 92, 255, 0.22), transparent 60%),
    radial-gradient(800px 500px at 100% 100%, rgba(255, 61, 216, 0.10), transparent 60%),
    radial-gradient(700px 400px at 0% 80%, rgba(46, 230, 255, 0.08), transparent 60%),
    linear-gradient(rgba(140, 150, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 150, 255, 0.045) 1px, transparent 1px);
  background-size: auto, auto, auto, 44px 44px, 44px 44px;
  background-attachment: fixed;
}
/* Tension vignette: reddens and tightens as the round climbs. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  box-shadow: inset 0 0 calc(80px + 160px * var(--tension)) rgba(255, 40, 90, calc(0.55 * var(--tension)));
  transition: box-shadow 0.8s ease;
}
body.heartbeat::after { animation: vignette-beat var(--beat, 1s) ease-in-out infinite; }
@keyframes vignette-beat { 0%, 100% { opacity: 0.75; } 12% { opacity: 1; } 24% { opacity: 0.85; } 36% { opacity: 1; } }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code, .mono { font-family: var(--font-mono); font-size: 0.86em; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: 0.02em; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.3rem, 3.5vw, 1.8rem); }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
kbd {
  font-family: var(--font-mono);
  font-size: 0.72em;
  padding: 0.1em 0.45em;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--cyan); color: #000; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand status" "nav nav";
  gap: 6px 12px;
  align-items: center;
  padding: 10px 16px 8px;
  background: rgba(6, 6, 12, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: var(--text);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand b { color: var(--magenta); margin: 0 0.25em; font-weight: 700; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  box-shadow: 0 0 18px rgba(255, 61, 216, 0.5);
}
.nav {
  grid-area: nav;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -16px;
  padding: 0 16px;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
}
.nav a:hover { color: var(--text); text-decoration: none; background: rgba(255, 255, 255, 0.05); }
.nav a[aria-current="page"] { color: var(--text); background: rgba(139, 92, 255, 0.22); box-shadow: inset 0 0 0 1px rgba(139, 92, 255, 0.5); }
.status { grid-area: status; display: flex; align-items: center; gap: 6px; justify-self: end; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.chip:hover { text-decoration: none; border-color: var(--cyan); }
.chip .unit { color: var(--gold); font-weight: 700; }
.addr-chip { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.block-chip { font-family: var(--font-mono); color: var(--muted); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.block-chip.pulse .pulse-dot { animation: dot-pulse 0.9s var(--ease-out); }
.block-chip.pulse { animation: chip-pulse 0.9s var(--ease-out); }
@keyframes dot-pulse { 0% { transform: scale(1); } 30% { transform: scale(1.9); box-shadow: 0 0 18px var(--green); } 100% { transform: scale(1); } }
@keyframes chip-pulse { 0% { border-color: var(--green); box-shadow: 0 0 0 0 rgba(61, 255, 162, 0.5); } 100% { box-shadow: 0 0 0 12px rgba(61, 255, 162, 0); } }
.icon-btn {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font-size: 15px;
  font-family: var(--font-emoji);
}
.icon-btn:hover { border-color: var(--cyan); }
.download-btn { min-height: 34px; }
.download-btn[aria-current="page"] { box-shadow: 0 0 0 2px var(--cyan); }
@media (max-width: 560px) { .download-long, .block-chip { display: none; } }
@media (max-width: 420px) {
  .addr-chip { display: none; }
  .brand-text { display: none; }
}
/* Brand + 9 links + the signed-in chips need ~1400px on one line. Below that the nav keeps
   its own row (centred once it fits, swipeable on phones) instead of being squeezed. */
@media (min-width: 860px) {
  .topbar { padding: 10px 24px 8px; }
  .nav { margin: 0; padding: 0; justify-content: center; }
}
@media (min-width: 1400px) {
  .topbar { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav status"; padding: 12px 24px; }
}

/* ---------------------------------------------------------------- layout */
main { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 20px 16px 48px; }
.page-head { margin: 8px 0 24px; }
.page-head p { color: var(--muted); max-width: 64ch; }
.eyebrow { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.75rem; color: var(--cyan); margin-bottom: 6px; }
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.cols-2 { grid-template-columns: 1fr; }
@media (min-width: 820px) { .cols-2 { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card h2, .card h3 { margin-top: 0; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.gold { color: var(--gold); }
.cyan { color: var(--cyan); }
.green { color: var(--green); }
.red { color: var(--red); }
.center { text-align: center; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 12px; }

footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
  padding: 20px 16px 28px;
  text-align: center;
  color: var(--dim);
  font-size: 0.8rem;
}
footer p { margin: 0 auto 6px; max-width: 70ch; }

/* The Arbiter: the host who oversees every game, shown above the footer on every page. */
.arbiter { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 16px; width: calc(100% - 32px); max-width: 760px; margin: 0 auto 28px; padding: 0 20px 0 8px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: linear-gradient(135deg, rgba(139, 92, 255, 0.16), rgba(46, 230, 255, 0.06)), var(--panel); overflow: hidden; }
.arbiter img { flex: 0 0 auto; width: 96px; margin-top: 8px; }
.arbiter p { margin: 0; padding: 16px 0; align-self: center; color: var(--muted); font-size: 0.9rem; }
.arbiter b { color: var(--text); font-family: var(--font-display); letter-spacing: 0.02em; }
@media (min-width: 640px) { .arbiter img { width: 120px; } .arbiter p { font-size: 0.95rem; } }
footer a { color: var(--muted); }

/* ---------------------------------------------------------------- buttons */
.btn {
  --btn-bg: rgba(255, 255, 255, 0.06);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--btn-bg);
  color: var(--text);
  font: 700 0.95rem/1 var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s var(--ease-out), box-shadow 0.2s, border-color 0.2s, background 0.2s;
}
.btn:hover { text-decoration: none; border-color: var(--cyan); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn kbd { color: inherit; opacity: 0.7; border-color: currentColor; }
.btn-primary {
  border: 0;
  color: #0a0016;
  background: linear-gradient(100deg, var(--cyan), var(--violet) 55%, var(--magenta));
  background-size: 160% 100%;
  box-shadow: 0 0 24px rgba(139, 92, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 0 36px rgba(255, 61, 216, 0.55); }
.btn-gold {
  border: 0;
  color: #241500;
  background: linear-gradient(120deg, #fff1b8, var(--gold) 40%, #e08a00);
  box-shadow: 0 0 28px rgba(255, 201, 74, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn-ghost { background: transparent; }
.btn-lg { max-width: 100%; white-space: normal; text-align: center; min-height: 56px; padding: 14px 28px; font-size: 1.05rem; border-radius: 14px; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 0.78rem; border-radius: 9px; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 8px; }
.link-btn:hover { color: var(--text); }

/* ---------------------------------------------------------------- forms */
label { display: block; font-weight: 600; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"], textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
}
input:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(46, 230, 255, 0.25); }
.field + .field { margin-top: 12px; }
.form-actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.notice { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(46, 230, 255, 0.06); font-size: 0.9rem; }
.notice.warn { background: rgba(255, 201, 74, 0.08); border-color: rgba(255, 201, 74, 0.35); }

/* ---------------------------------------------------------------- arena */
.arena {
  position: relative;
  display: grid;
  gap: 16px;
  max-width: 840px;
  margin: 0 auto;
}
.track {
  list-style: none;
  margin: 0;
  padding: 10px 4px 4px;
  display: grid;
  grid-template-columns: repeat(15, 58px);
  gap: 2px;
  scroll-snap-type: x proximity;
  overflow-x: auto;
  scrollbar-width: thin;
  position: relative;
}
.track::before {
  content: "";
  position: absolute;
  left: 22px; right: 22px; top: 27px;
  height: 2px;
  background: linear-gradient(90deg, var(--line-strong), var(--line-strong));
}
.node { position: relative; display: grid; justify-items: center; gap: 4px; }
.node-dot {
  position: relative;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-2);
  border: 2px solid var(--line-strong);
  color: var(--dim);
  font: 700 0.75rem var(--font-mono);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.node-dot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; transform: scale(1.7); opacity: 0.35; filter: grayscale(0.8); transition: opacity 0.3s, filter 0.3s; }
.node { scroll-snap-align: center; }
.node-label { max-width: 58px; overflow: hidden; text-overflow: ellipsis; font-size: 0.6rem; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.node.cleared .node-dot { border-color: var(--cyan); box-shadow: 0 0 12px rgba(46, 230, 255, 0.55); color: var(--text); }
.node.cleared .node-dot img { opacity: 1; filter: none; }
.node.cleared .node-label { color: var(--muted); }
.node.current .node-dot { border-color: var(--magenta); transform: scale(1.18); box-shadow: 0 0 0 4px rgba(255, 61, 216, 0.18), 0 0 22px rgba(255, 61, 216, 0.6); color: var(--text); animation: current-glow 1.6s ease-in-out infinite; }
.node.current .node-label { color: var(--magenta); }
.node.banked .node-dot { border-color: var(--gold); box-shadow: 0 0 18px rgba(255, 201, 74, 0.7); }
.node.banked .node-label { color: var(--gold); }
.node.pop .node-dot { animation: node-pop 0.6s var(--ease-out); }
@keyframes current-glow { 50% { box-shadow: 0 0 0 7px rgba(255, 61, 216, 0.1), 0 0 30px rgba(255, 61, 216, 0.75); } }
@keyframes node-pop { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
@media (min-width: 760px) { .track { grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 4px; } .node-label { max-width: 100%; letter-spacing: 0; font-size: 0.58rem; } .node-dot { width: 40px; height: 40px; } .track::before { top: 30px; } }

.stage {
  position: relative;
  border-radius: 22px;
  padding: 18px 16px 14px;
  background:
    radial-gradient(circle at 50% 60%, rgba(139, 92, 255, calc(0.18 + 0.25 * var(--tension))), transparent 65%),
    var(--panel);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), 0 0 calc(30px + 60px * var(--tension)) rgba(255, 61, 216, calc(0.12 + 0.4 * var(--tension)));
  overflow: hidden;
  transition: box-shadow 0.8s ease, background 0.8s ease;
}
.stage::before {
  /* scanlines */
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.hud { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; position: relative; }
.round-label { font: 700 1.6rem var(--font-display); letter-spacing: 0.1em; }
.round-label small { font-size: 0.9rem; color: var(--dim); margin-left: 2px; }
.holding { font-size: 0.85rem; color: var(--muted); text-align: right; }
.holding b { color: var(--gold); }
.duel { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 12px 0 10px; }
@media (min-width: 640px) { .duel { margin: 18px 0 12px; } }
.fighter { display: grid; justify-items: center; gap: 8px; }
.fighter .tag { font: 700 0.72rem var(--font-display); letter-spacing: 0.24em; color: var(--dim); }
.hand {
  width: clamp(84px, 24vw, 150px);
  aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: clamp(44px, 13vw, 84px);
  font-family: var(--font-emoji);
  line-height: 1;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.35));
  border: 2px solid var(--line-strong);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
  user-select: none;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-out);
}
.you .hand { border-color: rgba(46, 230, 255, 0.55); box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6), 0 0 22px rgba(46, 230, 255, 0.25); }
.house .hand { border-color: rgba(255, 61, 216, 0.55); box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6), 0 0 22px rgba(255, 61, 216, 0.25); }
.house .hand-inner { display: inline-block; transform: scaleX(-1); }
.hand.pumping .hand-inner { animation: pump 0.24s ease-in-out infinite alternate; }
.house .hand.pumping .hand-inner { animation-name: pump-mirror; }
@keyframes pump { from { transform: translateY(-10px) rotate(-8deg); } to { transform: translateY(10px) rotate(6deg); } }
@keyframes pump-mirror { from { transform: scaleX(-1) translateY(-10px) rotate(-8deg); } to { transform: scaleX(-1) translateY(10px) rotate(6deg); } }
.hand.reveal { animation: reveal 0.45s var(--ease-out); }
@keyframes reveal { 0% { transform: scale(0.7); filter: brightness(2.2); } 60% { transform: scale(1.12); } 100% { transform: scale(1); filter: none; } }
.hand.winner { border-color: var(--green) !important; box-shadow: 0 0 36px rgba(61, 255, 162, 0.6), inset 0 0 30px rgba(0, 0, 0, 0.6) !important; }
.hand.loser { opacity: 0.55; filter: grayscale(0.7); }
.verdict {
  font: 700 clamp(1rem, 4vw, 1.4rem) var(--font-display);
  letter-spacing: 0.14em;
  color: var(--dim);
  min-width: 64px;
  text-align: center;
}
.verdict.win { color: var(--green); text-shadow: 0 0 18px rgba(61, 255, 162, 0.8); animation: stamp 0.4s var(--ease-out); }
.verdict.tie { color: var(--gold); animation: stamp 0.4s var(--ease-out); }
.verdict.loss { color: var(--red); text-shadow: 0 0 18px rgba(255, 77, 109, 0.8); animation: stamp 0.4s var(--ease-out); }
@keyframes stamp { 0% { transform: scale(2.2); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.commit-line {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--dim);
}
.commit-line code { color: var(--muted); }
.commit-line .ok { color: var(--green); font-weight: 700; }

.panel { position: relative; }
.moves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.move {
  position: relative;
  display: grid; justify-items: center; gap: 4px;
  padding: 14px 6px 10px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  color: var(--text);
  font: 700 0.85rem var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s var(--ease-out), border-color 0.2s, box-shadow 0.2s;
}
.move .glyph { font-size: 2.4rem; line-height: 1.1; font-family: var(--font-emoji); }
.move kbd { position: absolute; top: 8px; right: 8px; }
.move:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--cyan); box-shadow: 0 10px 30px rgba(46, 230, 255, 0.25); }
.move:active:not(:disabled) { transform: translateY(0) scale(0.97); }
.move:disabled { opacity: 0.5; cursor: wait; }
.move.chosen { border-color: var(--magenta); box-shadow: 0 0 24px rgba(255, 61, 216, 0.45); }
.below-moves { display: flex; justify-content: center; margin-top: 8px; }

.start-panel { text-align: center; }
.start-panel h1 { margin-bottom: 0.25em; }
.start-panel .lede { color: var(--muted); margin: 0 auto 18px; max-width: 46ch; }
.start-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.start-meta { margin-top: 14px; font-size: 0.82rem; color: var(--dim); }
.start-meta summary { cursor: pointer; }
.seed-row { display: flex; gap: 8px; max-width: 420px; margin: 10px auto 0; }

.decision-panel {
  text-align: center;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 201, 74, 0.35);
  background: linear-gradient(180deg, rgba(255, 201, 74, 0.08), rgba(255, 61, 216, 0.06));
  animation: rise 0.45s var(--ease-out);
}
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.decision-panel h2 { margin-bottom: 4px; }
.choices { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-top: 14px; }
.choice {
  display: grid; justify-items: center; gap: 6px; align-content: start;
  padding: 14px 10px;
  border-radius: 18px;
  cursor: pointer;
  color: var(--text);
  font: inherit;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.choice img { width: 76px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55)); }
.choice .choice-title { font: 700 1rem var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; }
.choice small { color: var(--muted); font-size: 0.75rem; }
.choice.bank { border: 1px solid rgba(255, 201, 74, 0.6); background: rgba(255, 201, 74, 0.08); }
.choice.bank:hover { box-shadow: 0 0 30px rgba(255, 201, 74, 0.4); transform: translateY(-2px); }
.choice.risk { border: 1px solid rgba(255, 61, 216, 0.6); background: rgba(255, 61, 216, 0.08); }
.choice.risk:hover { box-shadow: 0 0 30px rgba(255, 61, 216, 0.45); transform: translateY(-2px); }
.choice.risk img { filter: grayscale(0.4) brightness(0.8) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55)); }
.ev-note { margin: 12px 0 0; font-size: 0.78rem; color: var(--dim); }

/* overlays */
.overlay {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  padding: 16px;
  overflow-y: auto;
  background: rgba(3, 3, 8, 0.82);
  backdrop-filter: blur(6px);
  animation: fade-in 0.3s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.overlay canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.claim-card { position: relative; text-align: center; max-width: 520px; width: 100%; }
.claim-card .nft-wrap { position: relative; width: min(260px, 60vw, 30vh); margin: 0 auto 14px; perspective: 1000px; }
.claim-card .nft-wrap img { filter: drop-shadow(0 0 34px rgba(255, 201, 74, 0.6)) drop-shadow(0 18px 30px rgba(0, 0, 0, 0.6)); animation: card-in 1.1s var(--ease-out); }
.rays {
  position: absolute; left: 50%; top: 50%;
  width: 640px; height: 640px; margin: -320px 0 0 -320px;
  background: repeating-conic-gradient(rgba(255, 201, 74, 0.16) 0 8deg, transparent 8deg 20deg);
  border-radius: 50%;
  mask-image: radial-gradient(circle, #000 20%, transparent 65%);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 65%);
  animation: spin 18s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes card-in { 0% { transform: rotateY(180deg) scale(0.4); opacity: 0; } 60% { transform: rotateY(-12deg) scale(1.05); opacity: 1; } 100% { transform: none; } }
.claim-card h2 { font-size: 2.2rem; color: var(--gold); text-shadow: 0 0 24px rgba(255, 201, 74, 0.6); margin-bottom: 0; }
.claim-card .odds-big { font: 700 1.1rem var(--font-display); color: var(--text); margin-bottom: 8px; }
.claim-card .mint-line { font-size: 0.82rem; color: var(--muted); }
.overlay .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

.loss-box { position: relative; text-align: center; max-width: 560px; }
.loss-box h2 {
  font-size: clamp(3rem, 14vw, 5rem);
  color: var(--red);
  letter-spacing: 0.12em;
  text-shadow: 3px 0 0 rgba(46, 230, 255, 0.7), -3px 0 0 rgba(255, 61, 216, 0.7), 0 0 30px rgba(255, 77, 109, 0.7);
  animation: glitch 0.6s steps(2) 2;
  margin-bottom: 4px;
}
@keyframes glitch { 0% { transform: translate(0); } 25% { transform: translate(-4px, 2px) skewX(6deg); } 50% { transform: translate(3px, -2px); } 75% { transform: translate(-2px, 1px) skewX(-4deg); } 100% { transform: none; } }
.loss-box .lost-tier { display: inline-flex; align-items: center; gap: 10px; margin: 12px 0; padding: 8px 14px; border-radius: 12px; background: rgba(255, 77, 109, 0.08); border: 1px solid rgba(255, 77, 109, 0.35); }
.loss-box .lost-tier img { width: 40px; border-radius: 6px; filter: grayscale(1) brightness(0.7); }
.loss-box .lost-tier s { color: var(--muted); }

.flash-red { animation: flash-red 0.7s ease; }
@keyframes flash-red { 0% { box-shadow: inset 0 0 0 2000px rgba(255, 30, 70, 0.35); } 100% { box-shadow: inset 0 0 0 2000px rgba(255, 30, 70, 0); } }
.shake { animation: shake 0.5s cubic-bezier(.36, .07, .19, .97); }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-8px); } 40%, 60% { transform: translateX(8px); } }
.desaturate { filter: grayscale(0.85) brightness(0.8); transition: filter 0.6s ease; }

/* landing extras */
.how { margin-top: 40px; }
.how .grid { grid-template-columns: 1fr; }
@media (min-width: 760px) { .how .grid { grid-template-columns: repeat(3, 1fr); } }
.how .step-n { font: 700 2rem var(--font-display); color: var(--magenta); opacity: 0.75; }
.ladder { width: 100%; border-collapse: collapse; font-size: 0.85rem; }

/* ---------------------------------------------------------------- NFT cards & collection */
.nft-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (min-width: 700px) { .nft-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } }
.nft {
  position: relative;
  display: block;
  padding: 10px 10px 12px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  text-align: center;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, border-color 0.25s;
}
button.nft { font: inherit; cursor: pointer; width: 100%; }
.nft:hover { text-decoration: none; transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 26px var(--glow, rgba(139, 92, 255, 0.35)); border-color: var(--glow, var(--violet)); }
.nft img { aspect-ratio: 2 / 3; object-fit: contain; width: 100%; margin-bottom: 8px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5)); }
.nft .name { font: 700 0.95rem var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; }
.nft .meta { font-size: 0.75rem; color: var(--muted); }
.nft .badge { position: absolute; top: 16px; right: 16px; z-index: 1; }
.nft.locked img { filter: grayscale(1) brightness(0.45); }
.nft.burned { opacity: 0.5; }
.cat-base { --glow: rgba(205, 127, 50, 0.6); }
.cat-metal { --glow: rgba(255, 201, 74, 0.55); }
.cat-stone { --glow: rgba(139, 92, 255, 0.7); }
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem; font-weight: 700;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.badge.gold { border-color: var(--gold); color: var(--gold); }
.badge.green { border-color: var(--green); color: var(--green); }
.badge.red { border-color: var(--red); color: var(--red); }
.badge.cyan { border-color: var(--cyan); color: var(--cyan); }

dialog.lore {
  max-width: 760px; width: calc(100% - 32px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--panel-solid);
  color: var(--text);
  box-shadow: var(--shadow);
}
dialog.lore::backdrop { background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(4px); }
.lore-body { display: grid; gap: 20px; padding: 20px; }
@media (min-width: 640px) { .lore-body { grid-template-columns: 240px 1fr; } }
.lore-body img { filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6)); }
.tier-hero { display: grid; gap: 24px; align-items: start; }
@media (min-width: 760px) { .tier-hero { grid-template-columns: 340px 1fr; } }
.tier-hero img { filter: drop-shadow(0 0 36px var(--glow, rgba(139, 92, 255, 0.45))); }
.tagline { font: 600 1.1rem var(--font-display); color: var(--gold); }
.stat-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.stat { padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); min-width: 96px; }
.stat .v { font: 700 1.2rem var(--font-display); }
.stat .k { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
table.data th, table.data td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th { font: 700 0.7rem var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim); background: rgba(0, 0, 0, 0.25); position: sticky; top: 0; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr.me td { background: rgba(139, 92, 255, 0.14); }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tr.new td { animation: row-in 1.2s ease; }
@keyframes row-in { from { background: rgba(61, 255, 162, 0.16); } to { background: transparent; } }
.rank { font: 700 1rem var(--font-display); color: var(--muted); }
.rank-1 { color: var(--gold); } .rank-2 { color: #d8dbe8; } .rank-3 { color: #e09b62; }
.player-cell { display: flex; align-items: center; gap: 10px; }
.player-cell img { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; object-position: 50% 35%; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; font-size: 0.88rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-all; }
.txtype { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 0.72rem; font-weight: 700; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-strong); }
.txtype.claim { color: var(--gold); border-color: rgba(255, 201, 74, 0.5); }
.txtype.burn { color: var(--red); border-color: rgba(255, 77, 109, 0.5); }
.txtype.throw { color: var(--cyan); }
.txtype.commit { color: var(--violet); }
.txtype.faucet, .txtype.grant { color: var(--green); }
pre.json { max-width: 100%; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--line); border-radius: 12px; padding: 14px; overflow-x: auto; font-size: 0.8rem; }
.search { display: flex; gap: 8px; margin-bottom: 20px; }
.stats-strip { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin-bottom: 20px; }
@media (min-width: 760px) { .stats-strip { grid-template-columns: repeat(5, 1fr); } }

/* ---------------------------------------------------------------- toasts */
.toasts {
  position: fixed;
  z-index: 80;
  left: 16px; right: 16px; top: calc(96px + env(safe-area-inset-top, 0px));
  display: flex; flex-direction: column; gap: 6px;
  pointer-events: none;
}
.toasts .toast { padding: 7px 12px; font-size: 0.8rem; }
@media (min-width: 640px) {
  .toasts { left: auto; top: auto; bottom: 16px; width: 360px; gap: 8px; }
  .toasts .toast { padding: 10px 14px; font-size: 0.85rem; }
}
.toast {
  pointer-events: auto;
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(16, 16, 32, 0.95);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  animation: toast-in 0.35s var(--ease-out);
}
.toast.out { animation: toast-out 0.3s ease forwards; }
.toast .ico { font-size: 1rem; line-height: 1.3; }
.toast .t-body { flex: 1; min-width: 0; }
.toast .t-sub { color: var(--muted); font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast.error { border-color: rgba(255, 77, 109, 0.6); }
.toast.confirmed { border-color: rgba(61, 255, 162, 0.55); }
.toast .spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--cyan); animation: spin 0.8s linear infinite; margin-top: 2px; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-out { to { transform: translateY(8px); opacity: 0; } }

/* ---------------------------------------------------------------- wallet */
.balance-hero { font: 700 clamp(2.4rem, 9vw, 3.6rem) var(--font-display); line-height: 1; }
.balance-hero .unit { font-size: 0.4em; color: var(--gold); margin-left: 6px; }

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .rays { display: none; }
  body.heartbeat::after { animation: none; }
}

/* ================================================================ Phase 2 */

/* tabs */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.tabs a {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--muted); font-weight: 600; font-size: 0.88rem;
}
.tabs a:hover { color: var(--text); text-decoration: none; border-color: var(--cyan); }
.tabs a[aria-current="page"] { color: var(--text); background: rgba(139, 92, 255, 0.22); border-color: rgba(139, 92, 255, 0.6); }

/* live feed + this week */
.pulse-grid { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 900px) { .pulse-grid { grid-template-columns: 1.15fr 1fr; } }
.live-title { display: inline-flex; align-items: center; gap: 10px; margin: 0; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { opacity: 0.35; } }
.feed { list-style: none; margin: 12px 0 0; padding: 0; max-height: 420px; overflow-y: auto; scrollbar-width: thin; }
.feed-item { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 0.86rem; }
.feed-item:last-child { border-bottom: 0; }
.feed-item.new { animation: feed-in 0.6s var(--ease-out); }
@keyframes feed-in { from { transform: translateX(-12px); opacity: 0; background: rgba(61, 255, 162, 0.12); } to { transform: none; opacity: 1; } }
.feed-item a { color: var(--text); }
.feed-item.kind-claim a, .feed-item.kind-daily a { color: var(--gold); }
.feed-item.kind-bust a { color: #ff9cb0; }
.feed-item.kind-risk a { color: var(--magenta); }
.feed-icon { display: grid; place-items: center; width: 30px; }
.feed-art { width: 26px; height: auto; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); }
.feed-art.dead { filter: grayscale(1) brightness(0.7); }
.feed-time { color: var(--dim); font-size: 0.72rem; white-space: nowrap; }
.feed-empty { padding: 16px 4px; font-size: 0.86rem; }
.mini-board { list-style: none; margin: 10px 0 0; padding: 0; }
.mini-board li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.mini-board li:last-child { border-bottom: 0; }
.mini-board img { width: 22px; height: auto; }
.mini-board .rank { width: 18px; font-size: 0.9rem; }

/* arena extras */
.daily-badge { vertical-align: middle; font-size: 0.65rem; letter-spacing: 0.12em; margin-left: 6px; }
.streak-line { margin: 0; font-size: 0.86rem; color: var(--gold); }
.share-slot:empty { display: none; }
.share-slot { margin-top: 14px; }
.share-bar { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.share-card-wrap { display: grid; gap: 14px; margin: 0 0 24px; }
.share-card { width: 100%; max-width: 720px; border-radius: 14px; border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.share-card-wrap .share-bar { justify-content: flex-start; }

/* achievements */
.ach-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.ach { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.ach-icon { display: grid; place-items: center; width: 40px; min-height: 40px; flex: none; }
.ach-emoji { font-family: var(--font-emoji); font-size: 1.5rem; line-height: 1; }
.ach-art { width: 28px; height: auto; filter: drop-shadow(0 0 8px rgba(255, 201, 74, 0.5)); }
.ach-name { font: 700 0.9rem var(--font-display); letter-spacing: 0.04em; }
.ach-desc { font-size: 0.76rem; color: var(--muted); }
.ach-date { font-size: 0.7rem; color: var(--dim); }
.ach.rarity-rare { border-color: rgba(46, 230, 255, 0.4); }
.ach.rarity-epic { border-color: rgba(139, 92, 255, 0.6); box-shadow: 0 0 18px rgba(139, 92, 255, 0.18); }
.ach.rarity-legendary { border-color: rgba(255, 201, 74, 0.7); box-shadow: 0 0 22px rgba(255, 201, 74, 0.22); }
.ach.locked { opacity: 0.42; filter: grayscale(1); }

/* leagues */
.check { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--violet); }
.select { min-height: 36px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, 0.35); color: var(--text); font: inherit; }
.team-card h2 a { color: var(--text); }
.vs-board { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 760px) { .vs-board { grid-template-columns: 1fr auto 1fr; } }
.vs-side { text-align: center; }
.vs-side .kv { text-align: left; max-width: 320px; margin: 14px auto 0; }
.vs-side.leading { border-color: rgba(255, 201, 74, 0.6); box-shadow: 0 0 40px rgba(255, 201, 74, 0.18); }
.vs-side.leading .eyebrow { color: var(--gold); }
.vs-score { font: 700 clamp(3rem, 12vw, 5rem) var(--font-display); line-height: 1; margin: 6px 0; }
.vs-side.leading .vs-score { color: var(--gold); text-shadow: 0 0 24px rgba(255, 201, 74, 0.45); }
.vs-mid { align-self: center; justify-self: center; font: 700 2rem var(--font-display); color: var(--magenta); text-shadow: 0 0 20px rgba(255, 61, 216, 0.6); }
.daily-hero h1 { margin-bottom: 0.3em; }
.page-head .share-bar, .share-card-wrap .share-bar { justify-content: flex-start; }

/* ================================================================ Phase 3 */
:root { --viz-1: #3987e5; --viz-surface: #12122a; --viz-grid: rgba(140, 150, 255, 0.14); }

/* stat tiles */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.tile-label { font-size: 0.8rem; color: var(--muted); }
.tile-value { font: 600 clamp(1.4rem, 4vw, 1.9rem) var(--font-display); line-height: 1.2; }
.tile-sub { font-size: 0.75rem; color: var(--dim); }

/* charts */
.viz-card { position: relative; align-self: start; }
.viz-title { font-size: 1rem; margin-bottom: 10px; }
.viz { position: relative; min-height: 60px; }
.viz-svg { display: block; overflow: visible; }
.viz-grid { stroke: var(--viz-grid); stroke-width: 1; }
.viz-axis { fill: var(--dim); font: 11px var(--font-body); }
.viz-label { fill: var(--muted); font: 12px var(--font-body); }
.viz-value { fill: var(--text); font: 600 12px var(--font-body); }
.viz-crosshair { stroke: var(--muted); stroke-width: 1; }
.viz-bar { transition: opacity 0.15s; outline: none; }
.viz-bar.hover, .viz-bar:focus { opacity: 0.8; }
.viz-bar:focus-visible { stroke: var(--text); stroke-width: 1.5; }
.viz-tip { position: absolute; z-index: 5; pointer-events: none; padding: 8px 10px; border-radius: 10px; background: #1b1b36; border: 1px solid var(--line-strong); box-shadow: var(--shadow); min-width: 120px; }
.viz-tip-value { font-weight: 700; display: flex; align-items: center; gap: 8px; color: var(--text); }
.viz-tip-label { font-size: 0.75rem; color: var(--muted); }
.viz-key { display: inline-block; width: 14px; height: 2px; border-radius: 1px; background: var(--viz-1); }
.viz-table { margin-top: 10px; font-size: 0.85rem; }
.viz-table summary { cursor: pointer; color: var(--muted); }
.viz-table .table-wrap { max-height: 260px; overflow-y: auto; margin-top: 8px; }

/* market & portfolio */
.ref-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: thin; }
.ref-chip { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 0.75rem; white-space: nowrap; }
.ref-chip:hover, .ref-chip.on { text-decoration: none; border-color: var(--cyan); }
.ref-chip img { width: 24px; height: auto; }
.ref-chip > span { line-height: 1.3; }
/* Wide screens: all 15 tiers at once in a wrapping grid; phones keep the swipeable strip. */
@media (min-width: 640px) {
  .ref-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); overflow: visible; padding-bottom: 0; }
}
.filters { margin-bottom: 14px; }
.nft .price { font: 700 1.2rem var(--font-display); margin: 2px 0; }
.nft .price .unit { font-size: 0.7rem; color: var(--gold); }
.nft.listing .btn, .nft.holding .btn { margin-top: 8px; }
.sell-row { display: flex; gap: 6px; margin-top: 8px; }
.sell-row input { min-height: 34px; padding: 4px 8px; font-size: 0.85rem; }
.nft.holding .link-btn { font-size: 0.75rem; padding: 6px 0 0; }
.offer-dialog { max-width: 460px; }

/* duels */
.duel-list { list-style: none; margin: 10px 0 0; padding: 0; }
.duel-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: 8px; font-size: 0.9rem; }
.duel-row a { color: var(--text); }
.duel-room { display: grid; gap: 16px; max-width: 840px; margin: 0 auto; }
.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; padding: 16px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line-strong); }
.sb-side.right { text-align: right; }
.sb-name { font: 700 1.05rem var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-side { min-width: 0; }
@media (max-width: 520px) { .sb-name { font-size: 0.85rem; } .sb-score { font-size: 2rem; } .scoreboard { padding: 12px; gap: 8px; } }
.sb-elo { font-size: 0.75rem; }
.sb-mid { text-align: center; display: grid; justify-items: center; gap: 4px; }
.sb-score { font: 700 2.4rem var(--font-display); line-height: 1; display: flex; gap: 6px; }
.pips { display: flex; gap: 6px; margin-top: 8px; }
.sb-side.right .pips { justify-content: flex-end; }
.pip { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); }
.pip.on { background: var(--green); border-color: var(--green); box-shadow: 0 0 10px rgba(61, 255, 162, 0.6); }
.hand.locked { border-color: var(--gold) !important; box-shadow: 0 0 24px rgba(255, 201, 74, 0.45) !important; }
.duel-msg { min-height: 1.5em; margin: 6px 0 0; color: var(--muted); font-size: 0.9rem; position: relative; }
#deadline.urgent { color: var(--red); font-weight: 700; }
.proof-card summary { cursor: pointer; }
.key-list { list-style: none; padding: 0; margin: 12px 0 0; font-size: 0.88rem; }
.key-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.key-list li:last-child { border-bottom: 0; }

/* ---------------------------------------------------------------- landing */
.landing { overflow-x: clip; }
html:has(.hero-backdrop) { overflow-x: clip; }
.landing:has(.hero-backdrop) { overflow-x: visible; }
.landing > section { margin: 0 0 72px; }
.landing .lede, .download-page .lede { font-size: 1.08rem; color: var(--muted); max-width: 58ch; }
.landing h2 { margin-bottom: 24px; }
.landing .eyebrow.center { margin-bottom: 8px; }
.hero { position: relative; display: grid; gap: 32px; align-items: center; padding-top: 24px; }
.hero > :not(.hero-backdrop) { position: relative; z-index: 1; }
/* NFT characters squaring off over the prize card. They stand in front of the fan on
   smaller screens and move out to the page gutters once the viewport is wide enough. */
.duelist { position: absolute; bottom: 30px; z-index: 3; height: 46%; width: auto; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.7)); }
.duelist-l { left: -6%; }
.duelist-r { right: -6%; }
.hero-backdrop { display: none; position: absolute; top: 0; bottom: -24px; left: 50%; width: 100vw; transform: translateX(-50%); pointer-events: none; z-index: 0; }
.hero-side { position: absolute; bottom: 0; height: min(86%, 380px); width: auto; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.6)); }
.hero-side-l { left: -24px; -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent); mask-image: linear-gradient(90deg, #000 60%, transparent); }
.hero-side-r { right: -24px; -webkit-mask-image: linear-gradient(270deg, #000 60%, transparent); mask-image: linear-gradient(270deg, #000 60%, transparent); }
@media (min-width: 1640px) {
  .hero-backdrop { display: block; }
  .duelist { display: none; }
}
@media (min-width: 1820px) { .hero-side { height: min(90%, 440px); } .hero-side-l { left: 0; } .hero-side-r { right: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .duelist-l, .hero-side-l { animation: sway-l 4s ease-in-out infinite; }
  .duelist-r, .hero-side-r { animation: sway-r 4s ease-in-out infinite; }
}
@keyframes sway-l { 0%, 100% { translate: 0 0; } 50% { translate: 6px -5px; } }
@keyframes sway-r { 0%, 100% { translate: 0 0; } 50% { translate: -6px -5px; } }
.hero h1 { font-size: clamp(2.2rem, 6.4vw, 4rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.hero-note { font-size: 0.85rem; margin: 0; }
.hero-art { position: relative; height: 340px; max-width: 420px; width: 100%; margin: 0 auto; }
.fan { position: absolute; top: 20px; left: 50%; width: min(46%, 170px); filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.6)); transform-origin: 50% 110%; }
.fan-1 { transform: translateX(-50%) rotate(-16deg) translateX(-38%); opacity: 0.85; }
.fan-2 { transform: translateX(-50%) rotate(14deg) translateX(38%); opacity: 0.9; }
.fan-3 { transform: translateX(-50%) translateY(-12px); z-index: 1; filter: drop-shadow(0 0 36px rgba(46, 230, 255, 0.45)) drop-shadow(0 18px 40px rgba(0, 0, 0, 0.6)); animation: float 5s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.hero-odds { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 2; display: flex; gap: 10px; align-items: baseline; white-space: nowrap; padding: 8px 16px; border-radius: 999px; background: var(--panel-solid); border: 1px solid var(--line-strong); font-family: var(--font-display); }
.hero-odds b { color: var(--cyan); letter-spacing: 0.08em; text-transform: uppercase; }
.hero-odds span { color: var(--gold); font-weight: 700; }
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.2fr 1fr; padding-top: 48px; }
  .hero-art { height: 420px; }
  .fan { width: 46%; }
}

.nft-vision { margin-top: 16px; display: grid; gap: 24px; align-items: center; padding: 24px; background: linear-gradient(135deg, rgba(46, 230, 255, 0.07), rgba(255, 201, 74, 0.06)), var(--panel); }
.nft-vision h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
.nft-points { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.nft-points li { padding-left: 18px; position: relative; color: var(--muted); }
.nft-points li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.nft-points b { color: var(--text); }
.nft-disclaimer { font-size: 0.8rem; margin: 0; }
.provenance { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; }
.provenance img { width: 110px; filter: drop-shadow(0 0 24px rgba(46, 230, 255, 0.35)); }
.provenance ol { list-style: none; margin: 0; padding: 0; position: relative; }
.provenance ol::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 2px; background: var(--line-strong); }
.provenance li { position: relative; padding: 0 0 12px 22px; display: flex; flex-direction: column; }
.provenance li:last-child { padding-bottom: 0; }
.provenance .dot { position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.provenance .dot.gold { background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.provenance b { font-family: var(--font-display); font-size: 0.95rem; }
.provenance small { color: var(--dim); font-size: 0.78rem; }
.provenance figcaption { grid-column: 1 / -1; font-size: 0.85rem; }
@media (min-width: 900px) {
  .nft-vision { grid-template-columns: 1.25fr 1fr; padding: 32px; }
  .provenance { grid-template-columns: 150px 1fr; }
  .provenance img { width: 150px; }
}

.offer-grid, .pillars, .mech-grid, .trust-grid, .platforms { display: grid; gap: 16px; }
.offer-grid > *, .pillars > *, .mech-grid > *, .trust-grid > *, .platforms > * { min-width: 0; }
.offer-grid { max-width: 860px; margin: 0 auto; }
.offer-card { display: flex; flex-direction: column; align-items: flex-start; }
.offer-card .btn { margin-top: auto; }
.offer-card.featured { border-color: rgba(255, 201, 74, 0.45); box-shadow: 0 0 40px rgba(255, 201, 74, 0.12), var(--shadow); }
.offer-card .row { width: 100%; }
.offer-big { font: 700 2.4rem/1.1 var(--font-display); margin: 4px 0 10px; }
.offer-big small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.featured .offer-big { color: var(--gold); }
@media (min-width: 720px) { .offer-grid { grid-template-columns: 1fr 1fr; } }

@media (min-width: 760px) { .pillars, .platforms { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .mech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .mech-grid { grid-template-columns: repeat(4, 1fr); } }
.mech-grid .step-n { font: 700 2rem var(--font-display); color: var(--magenta); opacity: 0.75; }

.ladder-strip { list-style: none; margin: 24px 0 0; padding: 4px 0 12px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; }
.ladder-strip li { flex: 0 0 auto; scroll-snap-align: start; }
.ladder-strip a { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 76px; color: var(--text); font-size: 0.72rem; text-align: center; }
.ladder-strip a:hover { text-decoration: none; }
.ladder-strip a:hover img { transform: translateY(-4px); }
.ladder-strip img { width: 60px; transition: transform 0.2s var(--ease-out); }
.ladder-strip span { color: var(--dim); font-family: var(--font-mono); font-size: 0.66rem; }

@media (min-width: 860px) { .trust-grid { grid-template-columns: 1.1fr 1fr; } }
.formula { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); overflow-x: auto; font-size: 0.85rem; line-height: 1.7; }
.live-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 16px; }
.live-stats div { padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.live-stats dt { color: var(--dim); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.live-stats dd { margin: 0; font: 700 1.5rem var(--font-display); color: var(--cyan); }
.trust-points { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.trust-points li { padding-left: 26px; position: relative; color: var(--muted); }
.trust-points li::before { content: "✓"; position: absolute; left: 4px; color: var(--green); font-weight: 700; }
.trust-points b { color: var(--text); }
@media (min-width: 760px) { .trust-points { grid-template-columns: 1fr 1fr; } }

.final-cta { text-align: center; padding: 36px 20px; background: linear-gradient(135deg, rgba(139, 92, 255, 0.18), rgba(255, 61, 216, 0.12)), var(--panel); }
.final-cta .hero-actions { justify-content: center; margin-bottom: 0; }

/* ---------------------------------------------------------------- download */
.download-page { max-width: 920px; margin: 0 auto; }
.download-page .page-head { display: flex; flex-direction: column; align-items: center; }
.download-page .lede { margin: 0 auto; }
.app-icon { border-radius: 22px; box-shadow: 0 0 40px rgba(255, 61, 216, 0.45); margin-bottom: 16px; }
.limit-notice { margin-bottom: 20px; text-align: center; }
.platform { text-align: center; }
.platform h2 { font-size: 1.25rem; margin-bottom: 2px; }
.platform.soon .btn { opacity: 0.5; cursor: default; }
.compare { margin-top: 16px; }
.compare table.data td { white-space: normal; }
.compare table.data td:not(:first-child), .compare table.data th { text-align: center; }
@media (max-width: 480px) { .compare table.data th, .compare table.data td { padding: 8px 6px; } }

/* ---------------------------------------------------------------- web limit (arena) */
.web-limit { text-align: center; }
.web-limit h2 { margin-bottom: 6px; }
.web-limit p { color: var(--muted); max-width: 46ch; margin: 0 auto 16px; }
.web-quota { font-size: 0.82rem; color: var(--dim); margin: 0; }
.web-quota a { font-weight: 600; }

@media (prefers-reduced-motion: reduce) { .fan-3 { animation: none; } }

.official-note { font-size: 0.85rem; margin: 12px auto 0; max-width: 60ch; }
.app-trust { margin-top: 16px; }
.app-trust .trust-points { margin-top: 8px; }
.faq { margin-top: 24px; display: grid; gap: 10px; }
.faq h2 { margin-bottom: 4px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 10px 0 0; }
.web-limit .web-limit-why { font-size: 0.85rem; margin-top: 12px; }
