/* ClawCard: arcade night + collectible foil. No external resources. */
:root {
  --night: #0f1438;
  --night-2: #151b4a;
  --night-3: #1d2560;
  --line: rgba(160, 175, 255, 0.16);
  --cream: #fff5df;
  --text: #d9ddf7;
  --muted: #9ba3d4;
  --cherry: #ff3355;
  --lemon: #ffd23f;
  --teal: #22d6c8;
  --sky: #4f8bff;
  --rare: #b07cff;
  --display: "SF Pro Rounded", ui-rounded, "Arial Rounded MT Bold", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --holo: conic-gradient(from 200deg at 50% 50%, #ff3355, #ffd23f, #7be36b, #22d6c8, #4f8bff, #b07cff, #ff6fb1, #ff3355);
  --modebar-h: 0px;
  --pad: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 72% 8%, rgba(79, 139, 255, 0.22), transparent 60%),
    radial-gradient(900px 600px at 10% 0%, rgba(255, 51, 85, 0.14), transparent 60%),
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.5), transparent 1px),
    radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,.35), transparent 1px),
    radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,.3), transparent 1px),
    var(--night);
  background-size: auto, auto, 220px 220px, 300px 300px, 260px 260px, auto;
  color: var(--text);
  font: 400 1rem/1.6 var(--body);
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: #7ff3ea; }
:focus-visible { outline: 3px solid var(--lemon); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); color: var(--cream); margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 900; line-height: 1.05; }
h3 { font-size: 1.15rem; font-weight: 800; line-height: 1.2; }
p { margin: 0; }
code { font-family: var(--mono); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 44px; padding: 0 1.2em; border-radius: 999px;
  font: 800 1rem/1 var(--display); color: #2a1300; text-decoration: none;
  background: linear-gradient(180deg, #ffe680, var(--lemon) 55%, #f5a623);
  box-shadow: 0 2px 0 #b86a00, 0 8px 22px rgba(255, 210, 63, 0.25), inset 0 1px 0 rgba(255,255,255,.7);
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.06); color: #2a1300; }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #b86a00, inset 0 1px 0 rgba(255,255,255,.6); }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn-small { min-height: 36px; font-size: .9rem; padding: 0 1em; }
.btn-ghost {
  background: rgba(255,255,255,0.06); color: var(--cream);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.22);
}
.btn-ghost:hover { color: var(--cream); background: rgba(255,255,255,0.1); }
.btn-ghost[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--teal); color: #b9fff8; }

/* ---------- mode bar + nav ---------- */
.modebar {
  position: sticky; top: 0; z-index: 30;
  padding: 6px var(--pad); text-align: center;
  font: 700 .82rem/1.35 var(--body); color: #2a1300;
  background: repeating-linear-gradient(-45deg, var(--lemon) 0 14px, #ffc21a 14px 28px);
}
.modebar[data-mode="prelaunch"] { background: var(--teal); color: #032a27; }
.topnav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--pad); max-width: 1320px; margin: 0 auto;
}
.wordmark { display: inline-flex; align-items: center; gap: 8px; color: var(--cream); text-decoration: none; font: 900 1.35rem/1 var(--display); }
.wordmark:hover { color: var(--cream); }
.wordmark-claw { width: 28px; height: 28px; color: var(--lemon); }
.navlinks { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: .95rem; }
.navlinks a { color: var(--text); text-decoration: none; }
.navlinks a:hover { color: var(--cream); }
.navlinks .nav-cta { color: var(--lemon); }

/* ---------- hero ---------- */
.hero {
  max-width: 1320px; margin: 0 auto; padding: 8px var(--pad) 40px;
  display: grid; gap: 18px 40px;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "title stage" "body stage";
  grid-template-rows: auto 1fr;
  align-items: start;
}
.hero-title { grid-area: title; padding-top: clamp(16px, 6vh, 72px); }
.hero-title h1 {
  font-size: clamp(2.3rem, 4.6vw, 4.3rem); font-weight: 900; line-height: .98; letter-spacing: -0.025em;
  text-wrap: balance;
  text-shadow: 0 3px 0 #ad1131, 0 6px 0 rgba(10, 12, 40, .6);
}
.hero-body { grid-area: body; display: grid; gap: 22px; align-content: start; }
.lede { font-size: 1.12rem; max-width: 34em; color: var(--text); }

.ca-box { display: grid; gap: 12px; padding: 16px; border-radius: 18px; background: rgba(10, 13, 40, .55); box-shadow: inset 0 0 0 1px var(--line); }
.ca-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.ca-label { font-weight: 700; color: var(--muted); font-size: .88rem; }
.ca-value { font-size: .88rem; color: var(--cream); overflow-wrap: anywhere; min-width: 0; flex: 1 1 200px; }
.ca-value.is-empty { font-family: var(--body); color: var(--muted); font-style: italic; }
.btn-buy { width: 100%; font-size: 1.08rem; min-height: 50px; }
.btn-buy.is-disabled { filter: grayscale(.85) brightness(.75); cursor: not-allowed; pointer-events: none; }

.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.hero-stats div { padding: 4px 0 0; border-top: 2px solid var(--night-3); }
.hero-stats dt { font-size: .82rem; color: var(--muted); }
.hero-stats dd { margin: 2px 0 0; font: 900 1.5rem/1.1 var(--display); color: var(--cream); font-variant-numeric: tabular-nums; }

/* stage */
.stage {
  grid-area: stage; position: relative; min-width: 0;
  height: min(86vh, 860px); min-height: 520px;
  border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 38%, rgba(79, 139, 255, .28), transparent 70%),
    radial-gradient(70% 40% at 50% 100%, rgba(34, 214, 200, .12), transparent 70%),
    linear-gradient(180deg, #121848 0%, #0b0f2e 100%);
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.claw-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.stage-fallback { position: absolute; inset: 40% 10% auto; text-align: center; color: var(--muted); }
.hud { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; }
.hud-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.phase-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  font: 800 .95rem/1 var(--display); color: var(--cream);
  background: rgba(10, 13, 40, .72); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.18);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.phase-chip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.phase-chip[data-tone="hot"]::before { background: var(--cherry); box-shadow: 0 0 12px var(--cherry); animation: blink .6s steps(2) infinite; }
.phase-chip[data-tone="warm"]::before { background: var(--lemon); box-shadow: 0 0 12px var(--lemon); }
.phase-chip[data-tone="win"]::before { background: var(--holo); box-shadow: 0 0 12px #fff; }
.phase-chip[data-tone="soft"]::before { background: var(--muted); box-shadow: none; }
@keyframes blink { 50% { opacity: .25; } }
.hud-blocks {
  padding: 7px 12px; border-radius: 999px; font: 700 .85rem/1 var(--body); font-variant-numeric: tabular-nums;
  color: var(--text); background: rgba(10, 13, 40, .6);
}
.hud-blocks:empty { display: none; }
.hud-panel {
  pointer-events: auto; align-self: stretch;
  max-width: 560px; width: 100%; margin: 0 auto;
  padding: 14px 16px 14px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(14, 18, 52, .82), rgba(9, 12, 36, .9));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 18px 40px -16px rgba(0,0,0,.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: grid; gap: 9px;
}
.pot-line { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.pot-amount b { font: 900 1.7rem/1 var(--display); color: var(--cream); }
.pot-of { color: var(--muted); font-weight: 700; }
.pot-next { color: var(--lemon); font-weight: 700; font-size: .95rem; }
.meter { height: 14px; border-radius: 999px; background: rgba(255,255,255,.08); box-shadow: inset 0 1px 3px rgba(0,0,0,.6); overflow: hidden; }
.meter-fill {
  height: 100%; width: 0%; border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--lemon) 60%, var(--cherry));
  box-shadow: 0 0 14px rgba(255, 210, 63, .5);
  transition: width .8s cubic-bezier(.2,.8,.2,1);
}
.meter.is-full .meter-fill { background: linear-gradient(90deg, #ff6fb1, var(--cherry), var(--lemon), var(--cherry)); background-size: 200% 100%; animation: meterShine 1.4s linear infinite; }
@keyframes meterShine { to { background-position: -200% 0; } }
.phase-detail { font-size: .93rem; color: var(--text); min-height: 3em; }
.phase-detail b { color: var(--cream); }
#showCardBtn { justify-self: start; }

/* ---------- sections ---------- */
.section { max-width: 1120px; margin: 0 auto; padding: clamp(56px, 9vw, 104px) var(--pad) 0; }
.section-head { display: grid; gap: 10px; margin-bottom: 28px; max-width: 46em; }
.section-head p { color: var(--muted); }
.section > h2 { margin-bottom: 28px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; position: relative; }
.steps li { counter-increment: step; position: relative; padding: 58px 22px 0 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font: 900 1.1rem/1 var(--display); color: #2a1300;
  background: radial-gradient(circle at 35% 30%, #fff3a8, var(--lemon) 50%, #e08a00);
  box-shadow: 0 0 0 4px var(--night), 0 0 0 6px rgba(255, 210, 63, .35);
  z-index: 1;
}
.steps li::after { content: ""; position: absolute; left: 40px; right: 0; top: 19px; border-top: 2px dashed rgba(255, 210, 63, .35); }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--text); font-size: .97rem; }

.split { margin: 44px 0 0; padding: 22px; border-radius: 22px; background: rgba(10, 13, 40, .5); box-shadow: inset 0 0 0 1px var(--line); }
.split figcaption { font-weight: 700; color: var(--cream); margin-bottom: 14px; }
.split-bar { display: flex; height: 22px; border-radius: 999px; overflow: hidden; gap: 3px; }
.split-bar span { display: block; }
.split-flap { flex: 0.3; background: #6d76b3; }
.split-cards { flex: 2.16; background: linear-gradient(90deg, var(--teal), var(--lemon)); }
.split-team { flex: 0.54; background: var(--cherry); }
.split-legend { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .93rem; }
.split-legend li { display: inline-flex; align-items: center; gap: 8px; }
.split-legend li::before { content: ""; width: 12px; height: 12px; border-radius: 4px; }
.lg-flap::before { background: #6d76b3; }
.lg-cards::before { background: linear-gradient(90deg, var(--teal), var(--lemon)); }
.lg-team::before { background: var(--cherry); }
.split-legend b { color: var(--cream); font-variant-numeric: tabular-nums; }
.note { margin-top: 14px; color: var(--muted); font-size: .92rem; }

/* holder check: prize-ticket */
.check-ticket {
  position: relative; display: grid; gap: 14px; padding: clamp(24px, 4vw, 40px);
  border-radius: 24px; color: #2a1640;
  background: linear-gradient(135deg, #fff5df, #ffe7b8);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.7);
  -webkit-mask: radial-gradient(circle 14px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 14px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 14px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 14px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.check-ticket h2 { color: #1a1240; }
.check-ticket > p { max-width: 40em; }
.check-form { display: flex; gap: 10px; flex-wrap: wrap; }
.check-form input {
  flex: 1 1 280px; min-width: 0; min-height: 50px; padding: 0 16px; border-radius: 14px;
  border: 2px solid #2a1640; background: #fffdf6; color: #1a1240;
  font: 600 1rem/1 var(--mono);
}
.check-form input:focus-visible { outline: 3px solid var(--cherry); outline-offset: 2px; }
.check-form .btn { min-height: 50px; background: #1a1240; color: var(--lemon); box-shadow: 0 2px 0 #000; }
.check-result { padding: 14px 16px; border-radius: 14px; background: rgba(26, 18, 64, .08); font-size: .98rem; }
.check-result[data-tone="yes"] { background: rgba(34, 214, 200, .22); }
.check-result[data-tone="no"] { background: rgba(255, 51, 85, .14); }
.check-result b { color: #1a1240; }
.check-result .addr { font-family: var(--mono); font-size: .88rem; overflow-wrap: anywhere; }

/* last grabs shelf */
.shelf { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 26px 20px; }
.slab-item { display: grid; gap: 10px; align-content: start; }
.slab-thumb {
  position: relative; aspect-ratio: 360 / 560; border-radius: 14px; overflow: hidden;
  background: #1a2050; box-shadow: 0 18px 30px -18px rgba(0,0,0,.9);
}
.slab-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slab-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.18) 45%, transparent 55%); pointer-events: none; }
.slab-item h3 { font-size: 1rem; font-weight: 800; }
.slab-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .9rem; flex-wrap: wrap; }
.slab-value { font: 900 1.15rem/1 var(--display); color: var(--cream); font-variant-numeric: tabular-nums; }
.slab-meta { color: var(--muted); font-size: .86rem; }
.slab-meta a { font-family: var(--mono); font-size: .84rem; }
.slab-failed { color: #ffb3c0; font-size: .86rem; }
.shelf-more { margin-top: 24px; }
.proof-link { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.empty { color: var(--muted); padding: 24px; border-radius: 16px; box-shadow: inset 0 0 0 1px dashed var(--line); }

.rarity { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 800 .78rem/1.3 var(--display); text-transform: capitalize; color: #10132e; background: #c8cff0; }
.rarity[data-tier="uncommon"] { background: var(--teal); }
.rarity[data-tier="rare"] { background: var(--rare); color: #fff; }
.rarity[data-tier="epic"] { background: var(--holo); color: #10132e; }

/* odds */
.odds-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.odds-table th { text-align: left; font-size: .85rem; color: var(--muted); font-weight: 600; padding: 0 12px 10px 0; }
.odds-table td { padding: 14px 12px 14px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.odds-table td:nth-child(2) { font: 900 1.2rem/1 var(--display); color: var(--cream); width: 90px; }
.odds-table td:last-child { white-space: nowrap; color: var(--text); }
.odds-bar-col { width: 45%; }
.odds-bar { height: 12px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.odds-bar span { display: block; height: 100%; border-radius: inherit; background: #c8cff0; min-width: 4px; }
.odds-bar span[data-tier="uncommon"] { background: var(--teal); }
.odds-bar span[data-tier="rare"] { background: var(--rare); }
.odds-bar span[data-tier="epic"] { background: var(--holo); }

/* fair draw */
.chain-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.chain-steps li { position: relative; padding: 22px 20px 22px; border-radius: 18px; background: rgba(10, 13, 40, .5); box-shadow: inset 0 0 0 1px var(--line); }
.chain-steps li::before {
  content: ""; display: block; width: 34px; height: 34px; margin-bottom: 14px; border-radius: 8px;
  background: linear-gradient(135deg, var(--sky), #2a3a8c); box-shadow: 8px 8px 0 -2px rgba(79, 139, 255, .3), 16px 16px 0 -4px rgba(79, 139, 255, .15);
}
.chain-steps li:nth-child(2)::before { background: linear-gradient(135deg, var(--lemon), #e08a00); box-shadow: 8px 8px 0 -2px rgba(255, 210, 63, .3), 16px 16px 0 -4px rgba(255, 210, 63, .15); }
.chain-steps li:nth-child(3)::before { background: linear-gradient(135deg, var(--teal), #0e8a80); box-shadow: 8px 8px 0 -2px rgba(34, 214, 200, .3), 16px 16px 0 -4px rgba(34, 214, 200, .15); }
.chain-steps h3 { margin-bottom: 8px; }
.chain-steps p { font-size: .95rem; }
.excluded { margin-top: 22px; max-width: 52em; color: var(--text); }
.excluded b { color: var(--cream); }

/* risks */
.risk-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 52em; }
.risk-list li { padding-left: 22px; position: relative; }
.risk-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 2px; background: var(--cherry); transform: rotate(45deg); }
.risk-list b { color: var(--cream); }

/* footer */
.footer { max-width: 1120px; margin: clamp(64px, 10vw, 120px) auto 0; padding: 28px var(--pad) 110px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); display: grid; gap: 16px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-variant-numeric: tabular-nums; }
.footer-row span span { color: var(--text); }
.mode-badge { padding: 4px 10px; border-radius: 6px; font: 900 .8rem/1.2 var(--display); letter-spacing: .04em; color: #10132e; background: #c8cff0; }
.mode-badge[data-mode="test"] { background: var(--lemon); }
.mode-badge[data-mode="prelaunch"] { background: var(--teal); }
.mode-badge[data-mode="live"] { background: var(--cherry); color: #fff; }
.routes { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.routes li { display: inline-flex; align-items: center; gap: 7px; text-transform: capitalize; }
.routes li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #6d76b3; }
.routes li[data-status="ok"]::before { background: #39e58c; box-shadow: 0 0 8px rgba(57, 229, 140, .6); }
.routes li[data-status="warn"]::before { background: var(--lemon); }
.routes li[data-status="error"]::before { background: var(--cherry); }
.footer-note { max-width: 60em; }

/* test panel */
.testpanel {
  border-radius: 18px; background: rgba(12, 15, 44, .7); color: var(--text);
  box-shadow: inset 0 0 0 1.5px rgba(255, 210, 63, .45);
}
.tp-toggle { appearance: none; width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: 0; padding: 12px 16px; color: var(--lemon); font: 800 .95rem/1 var(--display); cursor: pointer; }
.tp-toggle::after { content: "–"; font-size: 1.2rem; }
.tp-toggle[aria-expanded="false"]::after { content: "+"; }
.tp-body { padding: 0 16px 16px; display: grid; gap: 10px; }
.tp-body[hidden] { display: none; }
.tp-note { font-size: .82rem; color: var(--muted); }
.tp-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-buttons .btn { flex: 1 1 auto; }

/* toasts */
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 50; display: grid; gap: 8px; pointer-events: none; width: min(420px, calc(100vw - 32px)); }
.toast { padding: 10px 16px; border-radius: 12px; background: #fff5df; color: #1a1240; font-weight: 600; font-size: .92rem; box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: toastIn .25s ease-out; }
.toast[data-tone="error"] { background: #ffd6dd; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- dialogs ---------- */
dialog { border: 0; padding: 0; color: var(--text); background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(5, 7, 24, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

.reveal { width: 100vw; height: 100dvh; margin: 0; inset: 0; overflow: auto; }
.reveal[open] { display: grid; place-items: center; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.reveal-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: auto minmax(0, 380px); gap: clamp(20px, 4vw, 56px); align-items: center;
  padding: clamp(16px, 3vw, 40px); max-width: 980px; width: 100%;
}
.holo-wrap { perspective: 1100px; display: grid; place-items: center; }
.holo {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --o: 0;
  position: relative; width: min(380px, 70vw, calc((100dvh - 80px) * 0.64)); aspect-ratio: 360 / 560;
  border-radius: 22px; overflow: hidden; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 60px rgba(255, 210, 63, .25);
  transition: transform .15s ease-out;
  animation: cardIn .9s cubic-bezier(.2, .9, .25, 1.15) both;
}
.holo img { width: 100%; height: 100%; object-fit: cover; display: block; background: #1a2050; }
.holo-foil {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: calc(.18 + var(--o) * .3);
  background:
    repeating-linear-gradient(115deg, transparent 0 6%, rgba(255,255,255,.12) 7% 8%, transparent 9% 14%),
    linear-gradient(115deg, #ff3355 0%, #ffd23f 20%, #7be36b 35%, #22d6c8 50%, #4f8bff 65%, #b07cff 80%, #ff6fb1 100%);
  background-size: 200% 200%, 300% 300%;
  background-position: var(--mx) var(--my), calc(100% - var(--mx)) calc(100% - var(--my));
  filter: saturate(1.3);
}
.holo-glare {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay; opacity: calc(.35 + var(--o) * .5);
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.85), rgba(255,255,255,.1) 30%, transparent 60%);
}
@keyframes cardIn {
  0% { transform: translateY(40vh) scale(.3) rotateY(180deg); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: translateY(0) scale(1) rotateY(0deg); }
}
.reveal-info { display: grid; gap: 12px; align-content: center; }
.reveal-kicker { color: var(--lemon); font: 800 1rem/1.2 var(--display); }
.reveal-info h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.08; }
.reveal-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.reveal-value { font: 900 1.6rem/1 var(--display); color: var(--cream); font-variant-numeric: tabular-nums; }
.reveal-winner a { font-family: var(--mono); }
.reveal-minted { font-weight: 700; color: #b9fff8; }
.reveal-small { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.reveal-test { color: #2a1300; background: var(--lemon); padding: 6px 10px; border-radius: 8px; font-size: .85rem; font-weight: 700; justify-self: start; }
.reveal-info form { margin-top: 6px; }

.proof { width: min(720px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; border-radius: 22px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px rgba(0,0,0,.7); overflow: auto; }
.proof-inner { padding: clamp(18px, 4vw, 32px); display: grid; gap: 18px; }
#proofBody { display: grid; gap: 12px; }
#proofBody h3 { margin-top: 10px; }
.proof dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 0; font-size: .93rem; }
.proof dt { color: var(--muted); }
.proof dd { margin: 0; color: var(--cream); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.proof .hash { font-family: var(--mono); font-size: .84rem; }
.proof .formula { padding: 14px; border-radius: 12px; background: rgba(0,0,0,.25); font-size: .9rem; }
.proof table { width: 100%; border-collapse: collapse; font-size: .85rem; font-variant-numeric: tabular-nums; }
.proof th, .proof td { text-align: left; padding: 6px 8px 6px 0; border-top: 1px solid var(--line); }
.proof th { color: var(--muted); font-weight: 600; border-top: 0; }
.proof td:first-child { font-family: var(--mono); }
.proof td.win { color: var(--lemon); font-weight: 700; }
.proof-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "stage" "body"; grid-template-rows: auto; gap: 18px; }
  .hero-title { padding-top: 8px; }
  .stage { height: min(78vh, 640px); min-height: 460px; border-radius: 22px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; }
  .steps li:nth-child(2)::after { display: none; }
  .chain-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .navlinks a:not(.nav-cta) { display: none; }
  .hero { padding-bottom: 20px; }
  .hero-title h1 { font-size: clamp(1.9rem, 8.6vw, 2.6rem); }
  .stage { height: 72vh; min-height: 470px; max-height: 620px; margin: 0 calc(var(--pad) * -0.5); border-radius: 18px; }
  .hud { padding: 10px; }
  .hud-panel { padding: 12px; border-radius: 16px; gap: 7px; }
  .pot-amount b { font-size: 1.4rem; }
  .pot-next { font-size: .86rem; }
  .phase-detail { font-size: .86rem; }
  .phase-chip { font-size: .85rem; }
  .hero-stats dd { font-size: 1.2rem; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li::after { display: none; }
  .steps li { padding: 0 0 0 56px; }
  .odds-bar-col, .odds-table td:nth-child(3) { display: none; }
  .reveal-inner { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 16px; padding: 16px 16px 24px; }
  .reveal-info { justify-items: center; }
  .reveal-meta { justify-content: center; }
  .reveal-test { justify-self: center; }
  .holo { width: min(70vw, calc((100dvh - 440px) * 0.64)); min-width: 170px; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .slab-item h3 { font-size: .9rem; }
  .slab-meta { font-size: .8rem; }
  .reveal[open] { place-items: start center; }
  .proof dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .proof dd { margin-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .holo { transform: none; }
}
