/* ============================================================
   BURN2PLANET — Design System v2
   Three-tier tokens → components → layout
   References: Linear (restraint/motion), Vercel Geist (tokens,
   surfaces), Uniswap (transaction widget), Polymarket (live data
   abstraction), Blur/Hyperliquid (tabular data density)
   ============================================================ */

/* ---------- 1. TOKENS: foundations ---------- */
:root {
  /* surfaces */
  --bg-0: #060609;
  --bg-1: #0B0B12;
  --bg-2: #12121B;
  --bg-3: #181822;
  --line-1: rgba(244, 242, 248, .07);
  --line-2: rgba(244, 242, 248, .13);
  --line-3: rgba(244, 242, 248, .24);

  /* text */
  --tx-1: #F7F4FA;
  --tx-2: rgba(247, 244, 250, .62);
  --tx-3: rgba(247, 244, 250, .38);

  /* brand */
  --void: #7C3AED;   --void-2: #A78BFA;   --void-glow: rgba(124, 58, 237, .38);
  --burn: #FF6A00;   --burn-2: #FF9040;   --burn-glow: rgba(255, 106, 0, .35);
  --planet: #C7FF3D; --planet-2: #D9FF75; --planet-glow: rgba(199, 255, 61, .28);
  --danger: #FF5468;

  --grad-burn: linear-gradient(180deg, #FF8A2E, #FF6200);
  --grad-planet: linear-gradient(180deg, #D9FF6E, #C0F82C);
  --grad-void: linear-gradient(180deg, #9D6BFF, #7433E0);

  /* type */
  --font-display: 'Sora', 'Inter', 'PingFang SC', 'Hiragino Sans', 'Microsoft YaHei', 'Malgun Gothic', sans-serif;
  --font-body: 'Inter', 'Sora', -apple-system, 'Segoe UI', 'PingFang SC', 'Hiragino Sans', 'Microsoft YaHei', 'Malgun Gothic', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, 'PingFang SC', 'Microsoft YaHei', 'Malgun Gothic', monospace;

  /* shape + motion */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --d1: .15s; --d2: .25s; --d3: .45s;
  --nav-h: 68px;
}

/* ---------- 2. TOKENS: base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background:
    radial-gradient(1200px 560px at 82% -10%, rgba(124, 58, 237, .11), transparent 60%),
    radial-gradient(900px 480px at 4% 2%, rgba(255, 106, 0, .045), transparent 52%),
    var(--bg-0);
  color: var(--tx-1);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(199, 255, 61, .25); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #23232e; border-radius: 8px; border: 2px solid var(--bg-0); }
::-webkit-scrollbar-track { background: transparent; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
input, select { font-family: inherit; }
[hidden] { display: none !important; }
.mono { font-family: var(--font-mono); }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
section { scroll-margin-top: calc(var(--nav-h) + 24px); }
:focus-visible { outline: 2px solid var(--planet); outline-offset: 2px; border-radius: 4px; }

/* ---------- 3. PRIMITIVES ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .24em;
  color: var(--tx-3);
}

.dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--planet);
  box-shadow: 0 0 10px var(--planet-glow);
}
.dot.orange { background: var(--burn); box-shadow: 0 0 10px var(--burn-glow); animation: pulse 1.1s infinite; }
.dot.violet { background: var(--void-2); box-shadow: 0 0 12px var(--void-glow); animation: pulse 1.6s infinite; }
.dot.white  { background: var(--tx-1); box-shadow: 0 0 10px rgba(247, 244, 250, .6); }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }

.live-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--planet);
  box-shadow: 0 0 10px var(--planet-glow);
  animation: pulse 1.4s infinite;
}

.card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(247, 244, 250, .03), 0 12px 40px rgba(0, 0, 0, .25);
}

.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--line-1);
}
.card-head h3 {
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
}

.ic { width: 14px; height: 14px; flex: none; }
.ic-lg { width: 22px; height: 22px; flex: none; }

/* ---------- 4. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 0 22px; height: 46px;
  color: #0A0A0F;
  transition: transform var(--d1) var(--ease), box-shadow var(--d2), filter var(--d2), opacity var(--d2), border-color var(--d2), background var(--d2);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { cursor: not-allowed; opacity: .5; transform: none; }

.btn-planet {
  background: var(--grad-planet);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-planet:hover:not(:disabled) { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 30px var(--planet-glow); transform: translateY(-1px); }

.btn-burn {
  background: var(--grad-burn);
  color: #1A0B00;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn-burn:hover:not(:disabled) { box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 6px 30px var(--burn-glow); transform: translateY(-1px); }

.btn-void {
  background: var(--grad-void);
  color: #FBF9FF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-void:hover:not(:disabled) { box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 6px 30px var(--void-glow); transform: translateY(-1px); }

.btn-ghost {
  background: transparent; color: var(--tx-1);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--line-3); background: rgba(247, 244, 250, .04); }
.btn-ghost svg { width: 13px; height: 13px; opacity: .7; }

.btn-sm { height: 38px; padding: 0 16px; font-size: 11.5px; border-radius: 10px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 13.5px; border-radius: 14px; }
.btn-block { width: 100%; }

.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 5. NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(6, 6, 10, .82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line-1);
}
.nav-inner { display: flex; align-items: center; gap: 18px; height: var(--nav-h); }

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 13.5px; letter-spacing: .14em; }
.brand-ticker {
  font-size: 10px; font-weight: 700;
  color: var(--planet);
  border: 1px solid rgba(199, 255, 61, .3);
  border-radius: 6px; padding: 1px 6px;
  background: rgba(199, 255, 61, .08);
}

.nav-round {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .12em;
  color: var(--tx-2);
  border: 1px solid var(--line-1);
  border-radius: 999px; padding: 6px 13px;
  background: var(--bg-1);
  white-space: nowrap;
}

.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a {
  font-size: 13.5px; font-weight: 500; color: var(--tx-2);
  transition: color var(--d1);
}
.nav-links a:hover { color: var(--tx-1); }
.nav-contract { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px !important; font-weight: 700 !important; }
.nav-contract svg { width: 12px; height: 12px; opacity: .6; }

.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }

/* language switcher */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 13px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--tx-2);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  transition: border-color var(--d1), color var(--d1);
}
.lang-btn:hover { border-color: var(--line-3); color: var(--tx-1); }
.lang-btn svg { width: 14px; height: 14px; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 70;
  min-width: 168px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(247, 244, 250, .04);
  animation: menuIn var(--d2) var(--ease);
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.lang-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%;
  background: none; border: 0; border-radius: 8px;
  color: var(--tx-2);
  font-family: var(--font-body); font-size: 13.5px; font-weight: 500;
  padding: 9px 11px;
  transition: background var(--d1), color var(--d1);
}
.lang-menu button:hover { background: rgba(247, 244, 250, .05); color: var(--tx-1); }
.lang-menu button[aria-selected="true"] { color: var(--planet); }
.lang-menu .check { font-style: normal; font-size: 11px; visibility: hidden; }
.lang-menu button[aria-selected="true"] .check { visibility: visible; }

/* ---------- 6. TICKER ---------- */
.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line-1);
  background: rgba(11, 11, 18, .6);
  user-select: none;
}
.ticker-track {
  display: flex; align-items: center; gap: 42px;
  width: max-content;
  padding: 9px 0;
  animation: ticker 40s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .06em;
  color: var(--tx-3);
  white-space: nowrap;
}
.ticker-item b { color: var(--burn); font-weight: 700; }
.ticker-item .tk-addr { color: var(--tx-2); }
.ticker-item svg { width: 11px; height: 11px; color: var(--burn); opacity: .8; }

/* ---------- 7. HERO ---------- */
.hero { position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; left: 50%; top: -30%;
  width: 900px; height: 500px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(124, 58, 237, .09), transparent);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: 40px; align-items: center;
  padding: 52px 0 48px;
  min-height: calc(100vh - var(--nav-h) - 96px);
}

@supports (height: 100dvh) {
  .hero-grid { min-height: calc(100dvh - var(--nav-h) - 96px); }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .2em;
  color: var(--tx-2);
  border: 1px solid var(--line-1);
  background: var(--bg-1);
  border-radius: 999px;
  padding: 8px 15px;
  margin-bottom: 24px;
}
.hero-eyebrow .sep { color: var(--tx-3); }
.status-word { color: var(--planet); }
.status-word.closing { color: var(--burn); }
.status-word.randomness { color: var(--void-2); animation: pulse 1.6s infinite; }
.status-word.settled { color: var(--tx-1); }

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 4.8vw, 66px);
  line-height: 1.02;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(94deg, var(--burn) 8%, var(--burn-2) 48%, var(--planet) 105%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
/* CJK display tweaks */
html[lang="zh"] .hero-title, html[lang="ja"] .hero-title, html[lang="ko"] .hero-title {
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: .01em;
  line-height: 1.12;
}

.hero-sub { margin-top: 16px; font-size: 16.5px; color: var(--tx-2); font-weight: 500; }

/* countdown */
.countdown { margin-top: 34px; }
.cd-title {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: .26em; color: var(--tx-3);
  margin-bottom: 6px;
}
.cd-row { display: flex; align-items: flex-start; gap: 12px; }
.cd-cell { display: flex; flex-direction: column; gap: 8px; }
.cd-num {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(56px, 6.2vw, 88px);
  line-height: .95;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 40px rgba(124, 58, 237, .3);
}
.cd-num.hot { color: var(--burn); text-shadow: 0 0 40px rgba(255, 106, 0, .35); }
.cd-cell label {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: .3em; color: var(--tx-3);
}
.cd-sep {
  font-family: var(--font-mono); font-weight: 800;
  font-size: clamp(38px, 4.4vw, 60px);
  line-height: 1.4; color: var(--tx-3);
  animation: blink 1s steps(2, jump-none) infinite;
}
@keyframes blink { 50% { opacity: .35; } }

.cd-bar {
  position: relative;
  height: 4px; border-radius: 4px; overflow: hidden;
  background: rgba(247, 244, 250, .08);
  max-width: 430px; margin-top: 20px;
  /* milestone ticks at 25/50/75% */
  background-image:
    linear-gradient(90deg, var(--bg-0) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-0) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-0) 1px, transparent 1px);
  background-repeat: no-repeat;
  background-size: 1px 100%;
  background-position: 25% 0, 50% 0, 75% 0;
}
.cd-bar i {
  display: block; height: 100%; width: 40%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--void), var(--burn) 55%, var(--planet));
  transition: width 1s linear;
}
.cd-label {
  margin-top: 10px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .22em;
  color: var(--tx-3);
  transition: color var(--d2);
}
.cd-label.warn { color: var(--burn); }
.cd-label.rand { color: var(--void-2); }

.hero-ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

/* hero visual */
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.bh-stage { position: relative; width: min(560px, 100%); aspect-ratio: 1; }
.bh-stage canvas { position: absolute; inset: 0; display: block; }

.bh-state {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .16em;
  color: var(--tx-2);
  border: 1px solid var(--line-1);
  background: var(--bg-1);
  padding: 9px 15px; border-radius: 999px;
}

.bh-tag {
  position: absolute; top: 4%; right: 2%;
  display: flex; align-items: center;
  animation: tagIn .5s var(--ease);
}
@keyframes tagIn { from { opacity: 0; transform: translateX(14px); } }
.bh-tag-line { width: 34px; height: 1.5px; background: linear-gradient(90deg, transparent, var(--planet)); }
.bh-tag div {
  border: 1px solid rgba(199, 255, 61, .4);
  background: rgba(6, 6, 10, .92);
  border-radius: 10px; padding: 8px 12px;
  display: flex; flex-direction: column; gap: 1px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
}
.bh-tag b { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .18em; color: var(--planet); }
.bh-tag span { font-size: 12px; color: var(--tx-2); }

/* ---------- 8. STATS BAND ---------- */
.stats-band { border-block: 1px solid var(--line-1); background: rgba(11, 11, 18, .55); }
.stats-grid { display: grid; grid-template-columns: 1fr 1.05fr .85fr 1.25fr; }
.stat {
  padding: 24px 28px;
  display: flex; flex-direction: column; gap: 3px;
  border-left: 1px solid var(--line-1);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .2em;
  color: var(--tx-3);
}
.stat-label .ic { color: var(--tx-3); }
.stat-value {
  font-family: var(--font-mono);
  font-weight: 800; font-size: clamp(21px, 2vw, 27px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  transition: color var(--d2);
}
.stat-value.bump { animation: bump .35s var(--ease); }
@keyframes bump { 30% { transform: translateY(-2px); } 60% { transform: translateY(0); } }
.stat-sub { font-size: 12px; color: var(--tx-3); }
.stat-sub.mono { font-size: 10px; letter-spacing: .12em; }
.burn-text { color: var(--burn); }
.planet-text { color: var(--planet); }
.stat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.spark { width: 92px; height: 26px; overflow: visible; }
.spark polyline {
  fill: none; stroke: var(--planet); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  opacity: .85;
  filter: drop-shadow(0 0 4px var(--planet-glow));
}
.spark circle { fill: var(--planet); }

/* ---------- 9. WINNER BANNER ---------- */
#winner-banner { margin-top: 24px; }
.winner-banner {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid rgba(199, 255, 61, .4);
  background: linear-gradient(90deg, rgba(199, 255, 61, .1), rgba(199, 255, 61, .02) 55%);
  border-radius: var(--r-lg);
  padding: 15px 20px;
  color: var(--planet);
  animation: tagIn .4s var(--ease);
}
.winner-banner p {
  font-family: var(--font-mono); font-weight: 600; font-size: 13px; letter-spacing: .04em;
  color: var(--tx-1);
}
.winner-banner p b { color: var(--planet); font-weight: 800; }

/* ---------- 10. CONSOLE ---------- */
.console { padding: 36px 0 8px; }
.console-grid {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: 24px; align-items: start;
}
.side-col { display: grid; gap: 24px; }

/* feed card */
.feed-card { padding: 24px; }
.feed-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.feed-title {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 800; letter-spacing: .05em;
  margin-top: 5px;
  text-transform: uppercase;
}
.feed-tools { display: flex; align-items: center; gap: 10px; }

.demo-select {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: .14em;
  color: var(--tx-3);
  border: 1px dashed var(--line-2);
  border-radius: 8px; padding: 4px 8px;
}
.demo-select select {
  background: var(--bg-3); color: var(--tx-2);
  border: 0; font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .06em; outline: none;
}

.drawer-close {
  display: none;
  background: var(--bg-3); border: 1px solid var(--line-1);
  border-radius: 8px; color: var(--tx-2);
  width: 32px; height: 32px;
  align-items: center; justify-content: center;
}
.drawer-close svg { width: 14px; height: 14px; }

.bal-row {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-1);
  background: var(--bg-1);
  border-radius: var(--r-md);
  padding: 11px 14px; margin-bottom: 16px;
}
.bal-label { font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: .2em; color: var(--tx-3); }
.bal-val { font-size: 13.5px; margin-left: auto; }
.bal-act {
  background: var(--bg-3); color: var(--tx-2);
  border: 1px solid var(--line-2);
  border-radius: 7px; font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  padding: 4px 9px;
  transition: color var(--d1), border-color var(--d1);
}
.bal-act:hover { color: var(--tx-1); border-color: var(--line-3); }
.faucet { color: var(--planet); border-color: rgba(199, 255, 61, .3); }
.faucet:hover { color: var(--planet); border-color: var(--planet); }

.amt-label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .22em;
  color: var(--tx-3);
  display: block; margin-bottom: 8px;
}
.amt-wrap {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 15px 16px;
  transition: border-color var(--d1), box-shadow var(--d1);
}
.amt-wrap:focus-within {
  border-color: rgba(255, 106, 0, .5);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, .1), inset 0 1px 0 rgba(247,244,250,.03);
}
.amt-wrap.shake { animation: shake .3s; border-color: var(--danger); }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
#amt {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: none;
  color: var(--tx-1);
  font-family: var(--font-mono); font-weight: 700; font-size: 22px;
  font-variant-numeric: tabular-nums;
}
#amt::placeholder { color: var(--tx-3); }
.amt-unit { color: var(--tx-3); font-size: 12px; font-weight: 700; }

.quick {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  margin-top: 8px;
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  border-radius: var(--r-md);
  padding: 4px;
}
.qbtn {
  background: none;
  border: 0; border-radius: 9px;
  color: var(--tx-2);
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  padding: 10px 0;
  transition: all var(--d1);
}
.qbtn:hover { background: var(--bg-3); color: var(--tx-1); }
.qbtn-max { color: var(--planet); }
.qbtn-max:hover { background: rgba(199, 255, 61, .1); color: var(--planet); }

.split {
  margin-top: 18px;
  border: 1px solid var(--line-1);
  border-radius: var(--r-md);
  background: rgba(6, 6, 10, .45);
  padding: 16px 16px 4px;
}
.split-bar {
  display: flex; height: 8px; border-radius: 6px; overflow: hidden;
  gap: 3px; margin-bottom: 6px;
}
.split-bar i { display: block; height: 100%; border-radius: 6px; }
.sb-burn { width: 90%; background: linear-gradient(90deg, var(--burn), var(--burn-2)); box-shadow: 0 0 12px var(--burn-glow); }
.sb-pot { width: 10%; background: var(--planet); box-shadow: 0 0 12px var(--planet-glow); }

.split-row {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line-1);
}
.split-row .ic { width: 16px; height: 16px; }
.split-row.burn .ic { color: var(--burn); }
.split-row.pot .ic { color: var(--planet); }
.split-txt { display: flex; flex-direction: column; gap: 1px; }
.split-txt b { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; }
.split-row.burn .split-txt b { color: var(--burn); }
.split-row.pot .split-txt b { color: var(--planet); }
.split-txt span { font-size: 11.5px; color: var(--tx-3); }
.split-row output { margin-left: auto; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.split-meta {
  padding: 11px 0 12px;
  font-size: 10.5px; color: var(--tx-3); letter-spacing: .05em;
}

.feed-sub { margin-top: 11px; font-size: 12.5px; color: var(--tx-3); text-align: center; min-height: 19px; }
.feed-sub.err { color: var(--danger); }
.feed-sub.ok { color: var(--planet); }

.my-entries {
  margin-top: 14px;
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid rgba(199, 255, 61, .28);
  background: rgba(199, 255, 61, .07);
  border-radius: var(--r-md);
  padding: 11px 14px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .16em;
  color: var(--tx-2);
}
.my-entries b { color: var(--planet); font-size: 14px; }

/* activity */
.act-list, .win-list { list-style: none; padding: 6px 22px 16px; }
.act-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(247, 244, 250, .045);
}
.act-row:last-child { border-bottom: 0; }
.act-row.new { animation: rowIn .35s var(--ease); }
@keyframes rowIn { from { opacity: 0; transform: translateY(-6px); } }

.avatar {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: conic-gradient(from var(--h, 0deg), #7C3AED, #FF6A00, #C7FF3D, #7C3AED);
  box-shadow: inset 0 0 0 2px rgba(6, 6, 10, .85);
}
.act-main { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.act-main b { font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.act-main span { font-size: 12px; color: var(--tx-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-main span b { color: var(--burn); font-weight: 700; display: inline; }
.you-chip {
  font-family: var(--font-mono); font-size: 8.5px; font-weight: 800; letter-spacing: .1em;
  color: var(--planet);
  border: 1px solid rgba(199, 255, 61, .35);
  border-radius: 5px; padding: 1px 5px;
}
.act-side { margin-left: auto; text-align: right; display: flex; flex-direction: column; gap: 2px; flex: none; }
.hash { font-size: 11px; color: var(--tx-3); transition: color var(--d1); }
.hash:hover { color: var(--planet); }
.act-side time { font-size: 10px; color: var(--tx-3); font-family: var(--font-mono); }
.act-empty {
  padding: 20px 0 24px; text-align: center;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em;
  color: var(--tx-3);
}

/* winners */
.win-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(247, 244, 250, .045);
}
.win-row:last-child { border-bottom: 0; }
.win-round {
  font-family: var(--font-mono); font-size: 10px; font-weight: 800; letter-spacing: .1em;
  color: var(--planet);
  border: 1px solid rgba(199, 255, 61, .3);
  background: rgba(199, 255, 61, .07);
  border-radius: 7px; padding: 3px 8px;
  flex: none;
}
.win-main { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.win-main b { font-family: var(--font-mono); font-size: 12.5px; }
.win-main span { font-size: 11.5px; color: var(--tx-3); }
.win-row output {
  margin-left: auto;
  font-family: var(--font-mono); font-weight: 800; font-size: 13.5px;
  color: var(--planet);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---------- 11. TABS (mobile) ---------- */
.tab-bar {
  display: none;
  grid-template-columns: repeat(3, 1fr); gap: 5px;
  margin-top: 20px;
  border: 1px solid var(--line-1);
  background: var(--bg-1);
  border-radius: var(--r-md); padding: 5px;
}
.tab {
  background: none; border: 0; border-radius: 9px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .14em;
  color: var(--tx-3);
  padding: 10px 0;
  transition: all var(--d1);
}
.tab.active { background: var(--bg-3); color: var(--tx-1); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------- 12. SECTIONS ---------- */
.section { padding: 96px 0 8px; }
.section-head { margin-bottom: 30px; max-width: 660px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -.02em;
  margin: 10px 0 8px;
}
.section-head p { color: var(--tx-2); font-size: 15.5px; }

/* history table */
.table-card { overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
thead th {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .2em;
  color: var(--tx-3); text-align: left;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line-2);
  background: rgba(6, 6, 10, .5);
  white-space: nowrap;
}
tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(247, 244, 250, .045);
  font-size: 13.5px;
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background var(--d1); }
tbody tr:hover { background: rgba(247, 244, 250, .028); }
td.r-num { font-family: var(--font-mono); font-weight: 700; }
td.burn-cell { color: var(--burn); font-family: var(--font-mono); font-size: 12.5px; font-variant-numeric: tabular-nums; }
td.pot-cell { font-family: var(--font-mono); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.win-addr { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 12.5px; }
.win-addr .avatar { width: 22px; height: 22px; }
.verify-link {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .12em;
  color: var(--planet);
  border: 1px solid rgba(199, 255, 61, .28);
  border-radius: 8px; padding: 5px 11px;
  transition: background var(--d1), border-color var(--d1);
}
.verify-link:hover { background: rgba(199, 255, 61, .09); border-color: var(--planet); }
tr.fresh { animation: rowGlow 2.4s var(--ease); }
@keyframes rowGlow { 0% { background: rgba(199, 255, 61, .09); } 100% { background: transparent; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }
.step {
  border: 1px solid var(--line-1);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border-radius: var(--r-lg);
  padding: 24px;
  transition: border-color var(--d2), transform var(--d2) var(--ease);
}
.step:hover { border-color: var(--line-2); transform: translateY(-2px); }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.step-num { font-size: 12px; font-weight: 800; color: var(--burn); letter-spacing: .2em; }
.step-ic { width: 20px; height: 20px; color: var(--tx-3); }
.step h4 { font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: .08em; margin-bottom: 7px; text-transform: uppercase; }
.step p { color: var(--tx-2); font-size: 14px; }

/* provably timeline */
.provably { padding: 26px; }
.provably h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: .08em; margin-top: 6px; text-transform: uppercase; }
.provably-links { display: flex; gap: 10px; }

.timeline { list-style: none; margin-top: 14px; display: grid; grid-template-columns: repeat(4, 1fr); }
.tl-step { position: relative; padding: 6px 20px 10px 32px; }
.tl-step::before {
  content: ""; position: absolute; top: 14px; left: 16px; right: 0;
  height: 1.5px; background: var(--line-2);
}
.tl-step:last-child::before { right: 40%; }
.tl-dot {
  position: absolute; top: 8px; left: 8px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--line-2);
  z-index: 1;
  transition: all var(--d2);
}
.tl-step.done .tl-dot { background: var(--planet); border-color: var(--planet); box-shadow: 0 0 12px var(--planet-glow); }
.tl-step.done::before { background: rgba(199, 255, 61, .4); }
.tl-step.active .tl-dot { background: var(--void-2); border-color: var(--void-2); box-shadow: 0 0 14px var(--void-glow); animation: pulse 1.4s infinite; }
.tl-step.active::before { background: linear-gradient(90deg, rgba(167, 139, 250, .55), var(--line-2)); }
.tl-step.warn .tl-dot { background: var(--burn); border-color: var(--burn); box-shadow: 0 0 12px var(--burn-glow); animation: pulse 1.1s infinite; }
.tl-body b { font-family: var(--font-mono); font-size: 11.5px; font-weight: 800; letter-spacing: .18em; }
.tl-step.active .tl-body b { color: var(--void-2); }
.tl-step.warn .tl-body b { color: var(--burn); }
.tl-body p { font-size: 12.5px; color: var(--tx-2); margin: 6px 0 8px; line-height: 1.55; }

.provably-note {
  margin-top: 18px;
  border-top: 1px dashed var(--line-1);
  padding-top: 16px;
  font-size: 13px; color: var(--tx-3);
  max-width: 760px;
}

/* ---------- 13. FOOTER ---------- */
.footer { border-top: 1px solid var(--line-1); margin-top: 96px; padding: 44px 0 120px; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand b { font-family: var(--font-display); font-size: 13.5px; font-weight: 800; letter-spacing: .12em; }
.footer-brand p { font-size: 11.5px; color: var(--tx-3); margin-top: 3px; }
.footer-brand a { color: var(--tx-2); }
.footer-brand a:hover { color: var(--planet); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .16em;
  color: var(--tx-3);
  transition: color var(--d1);
}
.footer-links a:hover { color: var(--planet); }
.footer-legal { margin-top: 30px; }
.footer-legal p { font-size: 12px; color: var(--tx-3); max-width: 880px; }
.copy-line { margin-top: 14px; font-size: 10px; letter-spacing: .12em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.demo-chip {
  border: 1px dashed rgba(255, 106, 0, .45);
  color: var(--burn);
  border-radius: 6px; padding: 2px 9px;
}

/* ---------- 14. TOASTS ---------- */
#toasts {
  position: fixed; right: 20px; bottom: 20px; z-index: 100;
  display: flex; flex-direction: column; gap: 10px;
  max-width: min(390px, calc(100vw - 40px));
}
.toast {
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--planet);
  border-radius: var(--r-md);
  padding: 13px 16px;
  font-size: 13px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .55);
  animation: toastIn .3s var(--ease);
}
.toast.burn { border-left-color: var(--burn); }
.toast.info { border-left-color: var(--void-2); }
.toast.err { border-left-color: var(--danger); }
.toast b { display: block; font-size: 12.5px; }
.toast span { color: var(--tx-2); font-size: 12px; }
.toast .hash { display: inline-block; margin-top: 3px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.toast.out { opacity: 0; transform: translateY(6px); transition: all .3s; }

/* ---------- 15a. GAME COMPONENTS (tickets / vouchers / draw) ---------- */

.cost-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  color: var(--tx-3);
}
.cost-row b { font-size: 12.5px; color: var(--tx-1); font-variant-numeric: tabular-nums; }

/* live token price */
.price-row {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px;
  border: 1px solid var(--line-1);
  background: var(--bg-1);
  border-radius: var(--r-sm);
  padding: 9px 13px;
}
.price-label {
  font-size: 9.5px; font-weight: 700; letter-spacing: .18em;
  color: var(--tx-3);
}
.price-row b { font-size: 13.5px; font-weight: 800; margin-left: auto; }
.chg { font-size: 11px; font-weight: 700; min-width: 64px; text-align: right; color: var(--tx-3); }
.chg.up { color: var(--planet); }
.chg.down { color: var(--danger); }

/* digit tiles — the universe number */
.tiles { display: inline-flex; gap: 4px; }
.tiles i {
  width: 24px; height: 28px; border-radius: 6px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  font-family: var(--font-mono); font-style: normal; font-weight: 800; font-size: 13.5px;
  display: grid; place-items: center;
  color: var(--tx-1);
  box-shadow: inset 0 1px 0 rgba(247, 244, 250, .05);
}
.tiles.sm i { width: 17px; height: 21px; font-size: 10.5px; border-radius: 5px; }
.tiles i.hit { color: var(--planet); border-color: rgba(199, 255, 61, .45); background: rgba(199, 255, 61, .08); }

/* voucher chips */
.voucher-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.vchip {
  display: inline-flex; gap: 2px;
  padding: 3px 4px; border-radius: 8px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  animation: rowIn .3s var(--ease);
}
.vchip i {
  width: 15px; height: 19px; border-radius: 4px;
  font-family: var(--font-mono); font-style: normal; font-weight: 700; font-size: 10.5px;
  display: grid; place-items: center;
  color: var(--tx-2);
}
.vchip i.hit { color: var(--planet); background: rgba(199, 255, 61, .12); }
.vchip.win { border-color: var(--planet); box-shadow: 0 0 14px var(--planet-glow); }

.my-vouchers {
  margin-top: 14px;
  border: 1px solid var(--line-1);
  background: rgba(6, 6, 10, .4);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .16em;
  color: var(--tx-3);
}

/* prize ladder */
.ladder {
  margin-top: 16px;
  border: 1px solid var(--line-1);
  border-radius: var(--r-md);
  background: rgba(6, 6, 10, .45);
  padding: 4px 14px;
}
.ladder-head {
  padding: 11px 0 7px;
  font-size: 9px; font-weight: 700; letter-spacing: .18em;
  color: var(--tx-3);
  border-bottom: 1px solid var(--line-1);
}
.lrow {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-1);
}
.lrow:last-child { border-bottom: 0; }
.tier-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.t-bh { background: var(--void-2); box-shadow: 0 0 10px var(--void-glow); }
.t-sg { background: var(--burn); box-shadow: 0 0 10px var(--burn-glow); }
.t-st { background: #FFC24D; box-shadow: 0 0 10px rgba(255, 194, 77, .4); }
.t-pl { background: var(--planet); box-shadow: 0 0 10px var(--planet-glow); }
.t-du { background: var(--tx-3); }
.lname {
  font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .08em;
  flex: 1; color: var(--tx-2);
}

/* match balls */
.balls { display: inline-flex; gap: 3px; align-items: center; }
.balls i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--line-2);
}
.balls i.on { background: var(--planet); box-shadow: 0 0 6px var(--planet-glow); }
.balls.dust { font-size: 9.5px; color: var(--tx-3); letter-spacing: .1em; }
.lshare { font-size: 10px; color: var(--tx-3); white-space: nowrap; }

/* tier chip in winner rows / banner */
.tier-chip {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 800; letter-spacing: .06em;
  border: 1px solid;
  border-radius: 999px;
  padding: 4px 12px;
  min-width: 88px;
  color: var(--tx-2);
  background: var(--bg-3);
  white-space: nowrap;
}
.tier-chip.t-bh { color: #CDB6FF; border-color: rgba(167, 139, 250, .75); background: rgba(124, 58, 237, .26); }
.tier-chip.t-sg { color: #FFA45C; border-color: rgba(255, 144, 64, .7); background: rgba(255, 106, 0, .2); }
.tier-chip.t-st { color: #FFC24D; border-color: rgba(255, 194, 77, .65); background: rgba(255, 194, 77, .14); }
.tier-chip.t-pl { color: var(--planet); border-color: rgba(199, 255, 61, .6); background: rgba(199, 255, 61, .13); }
.tier-chip.t-du { color: var(--tx-2); border-color: var(--line-3); background: var(--bg-3); }

/* winner banner body with tiles */
.winner-banner-body { display: flex; flex-direction: column; gap: 7px; }
.winner-banner .tiles { margin-bottom: 2px; }
#winner-banner .winner-banner { align-items: flex-start; }
.b-line2 { display: block; color: var(--tx-2); font-size: 12px; margin-top: 3px; font-weight: 500; }
td .roll { color: var(--tx-3); font-size: 11.5px; }

/* expandable history rows */
th.chev-col { width: 36px; }
tr.hist-main { cursor: pointer; }
tr.hist-main .chev svg { transition: transform var(--d2) var(--ease); opacity: .6; }
tr.hist-main:hover .chev svg { opacity: 1; }
tr.hist-main.open { background: rgba(247, 244, 250, .04); }
tr.hist-main.open .chev svg { transform: rotate(180deg); opacity: 1; }
tr.hist-main.open td { border-bottom-color: transparent; }
tr.hist-detail td {
  background: rgba(6, 6, 10, .5);
  padding: 0;
  border-bottom: 1px solid rgba(247, 244, 250, .045);
}
.hist-detail-inner { padding: 14px 20px 16px 64px; animation: rowIn .25s var(--ease); }
.hd-title {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: .2em;
  color: var(--tx-3);
  margin-bottom: 10px;
}
.hd-grid { display: flex; flex-direction: column; gap: 8px; }
.hd-row { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.hd-row b.mono { color: var(--tx-1); font-size: 13px; font-weight: 700; }
.hd-row output {
  margin-left: auto;
  font-family: var(--font-mono); font-weight: 800; font-size: 13px;
  color: var(--planet);
  font-variant-numeric: tabular-nums;
}
.hd-empty { color: var(--tx-3); font-size: 12.5px; }
.hist-empty {
  text-align: center;
  padding: 30px 20px !important;
  font-family: var(--font-mono);
  font-size: 11px !important;
  letter-spacing: .14em;
}
.hd-summary { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.hd-summary .tier-chip { font-size: 10px; padding: 3px 10px; min-width: 0; }
.hd-row { align-items: flex-start; }
.hd-mid { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.vnums { display: flex; flex-wrap: wrap; gap: 4px; }
.vnum {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  color: var(--tx-2);
  border: 1px solid var(--line-2);
  background: var(--bg-1);
  border-radius: 5px;
  padding: 2px 7px;
  letter-spacing: .1em;
}
.vnum.more { color: var(--tx-3); border-style: dashed; }

/* collapsible voucher lists */
.collapsed .vchip { display: none; }
.collapsed .vchip:nth-child(-n+8) { display: inline-flex; }
.vtoggle {
  display: inline-flex; align-items: center; align-self: center;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .08em;
  color: var(--planet);
  background: var(--planet-soft);
  border: 1px dashed rgba(199, 255, 61, .4);
  border-radius: 6px;
  padding: 3px 10px;
  cursor: pointer;
  transition: background var(--d1), color var(--d1), border-color var(--d1);
}
.vtoggle:hover { background: rgba(199, 255, 61, .16); border-color: var(--planet); }
.vnums.long:not(.collapsed), .voucher-list.long:not(.collapsed) {
  max-height: 240px; overflow-y: auto;
}

/* my burn ledger */
.me-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-1);
  background: var(--bg-1);
  border-radius: var(--r-lg);
  margin-bottom: 22px;
  overflow: hidden;
}
.mstat {
  padding: 16px 20px;
  border-left: 1px solid var(--line-1);
  display: flex; flex-direction: column; gap: 3px;
}
.mstat:first-child { border-left: 0; }
.mstat .stat-value { font-size: 20px; }
.hd-dist {
  border: 1px dashed var(--line-2);
  border-radius: var(--r-sm);
  background: rgba(6, 6, 10, .4);
  padding: 4px 14px;
  margin-bottom: 12px;
}
.hd-dist-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line-1);
}
.hd-dist-row:last-child { border-bottom: 0; }
.hd-dist-row b { font-family: var(--font-mono); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hd-dist-row b i { font-style: normal; font-weight: 500; font-size: 10.5px; color: var(--tx-3); margin-left: 4px; }
.hd-dist-row.hd-total b { font-size: 13.5px; font-weight: 800; color: var(--planet); }
.hd-dist-row.hd-total b i { color: var(--planet); opacity: .7; }
.hd-dist-row .tier-chip { font-size: 10px; padding: 2px 9px; min-width: 0; }
.dd-label { font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: .1em; color: var(--tx-3); }

/* ---------- 15. SCROLL REVEAL (JS-gated: content visible without JS) ---------- */
.reveal-pre { opacity: 0; transform: translateY(18px); }
.reveal-in {
  opacity: 1; transform: none;
  transition: opacity var(--d3) var(--ease), transform var(--d3) var(--ease);
}
[data-reveal-stagger].reveal-pre > * { opacity: 0; transform: translateY(14px); }
[data-reveal-stagger].reveal-in > * {
  opacity: 1; transform: none;
  transition: opacity var(--d3) var(--ease), transform var(--d3) var(--ease);
}
[data-reveal-stagger].reveal-in > *:nth-child(2) { transition-delay: 80ms; }
[data-reveal-stagger].reveal-in > *:nth-child(3) { transition-delay: 160ms; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr 1fr; min-height: 0; gap: 28px; }
  .console-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 18px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-top: 1px solid var(--line-1); padding-left: 24px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(-n+2) { border-top: 0; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }

  .hero-grid { grid-template-columns: 1fr; padding: 20px 0 28px; gap: 8px; }
  .hero-visual { order: -1; }
  .bh-stage { width: min(260px, 70vw); }
  .bh-state { display: none; }
  .bh-tag { top: 2%; right: 0; }
  .hero-copy { text-align: center; }
  .hero-eyebrow { margin-bottom: 14px; }
  .hero-sub { font-size: 14.5px; }
  .countdown { margin-top: 20px; }
  .cd-row { justify-content: center; }
  .cd-bar { margin-inline: auto; }
  .hero-ctas { justify-content: center; }

  .stat { padding: 18px 20px; }
  .stat-value { font-size: 18px; }
  .spark { display: none; }

  .console { padding-top: 24px; }
  .console-grid { grid-template-columns: 1fr; }
  .feed-card {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    border-bottom: 0;
    max-height: 86vh; overflow-y: auto;
    transform: translateY(105%);
    transition: transform .32s var(--ease);
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
  body.drawer-open .feed-card { transform: translateY(0); }
  .feed-card::before {
    content: ""; position: absolute; top: 9px; left: 50%; margin-left: -22px;
    width: 44px; height: 4px; border-radius: 2px;
    background: var(--line-3);
  }
  .drawer-close { display: inline-flex; }

  .backdrop {
    position: fixed; inset: 0; z-index: 80;
    background: rgba(4, 4, 8, .72);
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  body.drawer-open .backdrop { opacity: 1; pointer-events: auto; }

  .side-col { display: contents; }
  .tab-bar { display: grid; }
  body.tab-history #history { display: block; }
  body.tab-history .console-grid,
  body.tab-activity .console-grid,
  body.tab-winners .console-grid { display: none; }
  #history { display: none; padding-top: 24px; }
  .tab-panel[hidden] { display: none; }

  .steps { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 16px; }
  .tl-step::before { left: 14px; right: auto; top: 20px; bottom: -18px; width: 1.5px; height: auto; }
  .tl-step:last-child::before { display: none; }

  .bottom-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    display: flex; align-items: center; gap: 14px;
    background: rgba(8, 8, 13, .96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line-2);
    padding: 10px 16px max(10px, env(safe-area-inset-bottom));
  }
  body.drawer-open .bottom-bar { display: none; }
  .bb-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  .bb-cd { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
  .bb-cd.hot { color: var(--burn); }
  .bb-pot { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; color: var(--tx-3); }
  .bb-pot b { color: var(--planet); }
  .bottom-bar .btn { flex: 1; }
  #toasts { bottom: 78px; }
  .footer { padding-bottom: 100px; margin-top: 64px; }
  .section { padding: 64px 0 8px; }
}

@media (min-width: 901px) {
  .bottom-bar, .backdrop { display: none; }
  .tab-bar { display: none; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .bottom-bar .btn { height: 50px; }
  .me-stats { grid-template-columns: 1fr 1fr; }
  .mstat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .mstat:nth-child(-n+2) { border-bottom: 1px solid var(--line-1); }
  .nav-round { display: none; }
  .brand-ticker { display: none; }
  .brand-name { font-size: 12px; letter-spacing: .1em; }
  .nav-inner { gap: 10px; }
  .nav-inner .btn { height: 36px; padding: 0 12px; font-size: 10.5px; }
  .lang-btn { height: 36px; padding: 0 10px; }
  .hero-title { font-size: clamp(30px, 9.4vw, 40px); }
  html[lang="zh"] .hero-title, html[lang="ja"] .hero-title, html[lang="ko"] .hero-title { font-size: clamp(27px, 8.4vw, 36px); }
  .cd-num { font-size: 50px; }
  .demo-select span { display: none; }
  .section-head h2 { font-size: 23px; }
  .provably-links { display: none; }
  .card-head { padding: 16px 18px 12px; }
  .act-list, .win-list { padding: 4px 18px 14px; }
  .feed-card { padding: 20px; }
  .split { padding: 14px 14px 2px; }
}

@media (max-width: 400px) {
  .lang-btn span { display: none; }
  .lang-btn { padding: 0 9px; }
  .nav-inner .btn { padding: 0 10px; font-size: 10px; }
  .brand-name { font-size: 11px; letter-spacing: .08em; }
  .nav-inner { gap: 8px; }
}

/* ---------- mobile: tables become stacked cards (no horizontal swipe) ---------- */
@media (max-width: 700px) {
  .table-scroll { overflow-x: visible; }
  .table-card table { min-width: 0; display: block; }
  .table-card thead { display: none; }
  .table-card tbody, .table-card tr, .table-card td { display: block; }
  .table-card tr {
    position: relative;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line-1);
  }
  .table-card tbody tr:last-child { border-bottom: 0; }
  .table-card td {
    border: 0; padding: 3px 0;
    white-space: normal;
    background: none;
  }
  .table-card td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono); font-size: 9px; font-weight: 700;
    letter-spacing: .18em; color: var(--tx-3);
    margin-bottom: 3px;
  }
  .table-card td.chev { position: absolute; top: 16px; right: 16px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .ticker-track { animation: none; }
}

/* ---------- 16. SOCIAL TASK (Twitter mission) ---------- */
.task-head-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.task-head-left h3 { margin-top: 3px; }
.task-x-ic {
  width: 30px; height: 30px; padding: 7px; flex: none;
  color: var(--tx-1);
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 9px;
}
.task-body { padding: 20px 22px 22px; }
.task-empty {
  padding: 26px 0 20px; text-align: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  color: var(--tx-3);
}
.task-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.task-type {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 800; letter-spacing: .06em;
  border: 1px solid;
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}
.task-type.retweet { color: #CDB6FF; border-color: rgba(167, 139, 250, .75); background: rgba(124, 58, 237, .26); }
.task-type.comment { color: #FFA45C; border-color: rgba(255, 144, 64, .7); background: rgba(255, 106, 0, .2); }
.task-desc { margin-top: 12px; font-size: 14px; color: var(--tx-2); }
.task-openrow { margin-top: 14px; }
.task-open svg { width: 12px; height: 12px; opacity: .7; }
.task-status-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 14px;
  border: 1px solid var(--line-1);
  background: var(--bg-1);
  border-radius: var(--r-md);
  padding: 12px 14px;
}
.task-status {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 800; letter-spacing: .06em;
  border: 1px solid;
  border-radius: 999px;
  padding: 3px 11px;
  white-space: nowrap;
}
.task-status.pending { color: #FFA45C; border-color: rgba(255, 144, 64, .7); background: rgba(255, 106, 0, .2); }
.task-status.approved { color: var(--planet); border-color: rgba(199, 255, 61, .6); background: rgba(199, 255, 61, .13); }
.task-status.rejected { color: var(--danger); border-color: rgba(255, 84, 104, .6); background: rgba(255, 84, 104, .14); }
.task-next { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--tx-3); }
.task-vnums { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.task-form { margin-top: 14px; }
.task-label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .22em;
  color: var(--tx-3);
  display: block; margin-bottom: 8px;
}
.task-input-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 6px 6px 6px 16px;
  transition: border-color var(--d1), box-shadow var(--d1);
}
.task-input-row:focus-within {
  border-color: rgba(124, 58, 237, .55);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .12), inset 0 1px 0 rgba(247, 244, 250, .03);
}
#task-link-input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: none;
  color: var(--tx-1);
  font-family: var(--font-mono); font-weight: 500; font-size: 13px;
}
#task-link-input::placeholder { color: var(--tx-3); }
.task-input-row .btn { flex: none; }

@media (max-width: 700px) {
  .task-body { padding: 16px 16px 18px; }
  .task-input-row { flex-direction: column; align-items: stretch; padding: 10px; }
  #task-link-input { padding: 6px; font-size: 12.5px; }
  .task-input-row .btn { width: 100%; }
  .task-status-row { align-items: flex-start; }
}

/* ============================================================
   Robinhood Chain bridge — draw-source chips + wallet tags
   (additive rules only; all features degrade gracefully)
   ============================================================ */

/* draw-source badge next to a draw number (history rows, winner banner) */
.src-chip {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: .04em;
  color: var(--tx-3);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 6px;
  background: var(--bg-3);
  white-space: nowrap;
  vertical-align: middle;
}
.src-chip.onchain { color: var(--void-2); border-color: rgba(167, 139, 250, .45); }
a.src-chip { text-decoration: none; transition: color var(--d1), border-color var(--d1); }
a.src-chip:hover { color: var(--planet); border-color: rgba(199, 255, 61, .55); }
a.src-chip.onchain:hover { color: #CDB6FF; border-color: rgba(167, 139, 250, .85); }

/* extra timeline row: the real draw block (spans the 4-column grid, single-col on mobile) */
.tl-step[data-step="drawblock"] { grid-column: 1 / -1; margin-top: 8px; padding-top: 14px; }

/* $B2P token balance stays simulated until the token contract ships */
.sim-tag {
  font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: .06em;
  color: var(--tx-3);
  border: 1px solid var(--line-1);
  border-radius: 999px;
  padding: 1px 7px;
  background: var(--bg-1);
  white-space: nowrap;
}

/* native ETH gas balance in the wallet row (real chain read) */
.bal-gas { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.bal-gas-val { font-size: 13px; color: var(--tx-2); }

@media (max-width: 480px) {
  .bal-row { flex-wrap: wrap; row-gap: 8px; }
  .bal-gas { margin-left: 0; }
}
