:root {
  --bg: #0a1411;
  --panel: #0c1713;
  --panel-2: #0f1e19;
  --tile: #13261f;
  --line: #1a2b24;
  --line-2: #273b31;
  --text: #f4f1ea;
  --text-2: #c3c7bc;
  --muted: #6f7f73;
  --accent: #f4f1ea;
  --accent-glow: #f4f1ea29;
  --gold: #e8b84a;
  --gold-glow: #e8b84a33;
  --gold-bg: #e8b84a14;
  --olive: #3a3a1c;
  --green: #1fa06a;
  --green-bg: #1fa06a1c;
  --red: #ff6b6b;
  --red-bg: #ff6b6b17;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --brand: "Quicksand", "Helvetica Neue", Arial, sans-serif;
  --r: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  overflow-x: hidden;
}
body::before {
  content: "";
  pointer-events: none;
  z-index: 0;
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1000px 460px at 50% -160px, #e8b84a26, transparent 70%),
    radial-gradient(700px 400px at 100% 0, #1fa06a1a, transparent 70%),
    linear-gradient(#ffffff06 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, #ffffff06 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: linear-gradient(#000 0%, #0000008c 45%, #00000059 100%);
  mask-image: linear-gradient(#000 0%, #0000008c 45%, #00000059 100%);
}
/* concentric rings, as in the banner */
.rings {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  right: -260px;
  top: -200px;
  width: 760px;
  height: 760px;
  opacity: .55;
}
.rings circle { fill: none; stroke: var(--olive); }
a { color: inherit; }
a:hover { color: var(--gold); }
code {
  font-family: var(--font);
  letter-spacing: .02em;
  border: 1px solid var(--line-2);
  color: var(--text);
  white-space: nowrap;
  background: #12221c;
  border-radius: 8px;
  padding: .05em .45em;
  font-size: .9em;
}
button { font: inherit; color: inherit; cursor: pointer; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.gold { color: var(--gold); }
.green { color: var(--green); }

.app { z-index: 1; max-width: 1320px; margin: 0 auto; padding: 0 28px 56px; position: relative; }

/* ---------- nav ---------- */
.nav { display: flex; justify-content: space-between; align-items: center; padding: 22px 0 8px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo:hover { color: var(--text); }
.logo__mark { width: 38px; height: 38px; flex: none; margin: -4px; }
.logo__word { font-family: var(--brand); font-weight: 700; font-size: 22px; letter-spacing: .12em; }
.nav__right { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px;
  border: 1px solid var(--line-2); background: var(--panel);
  border-radius: 999px; font-size: 14px; text-decoration: none; white-space: nowrap;
  transition: border-color .15s, background .15s;
}
.btn:hover { border-color: #e8b84a80; color: var(--text); }
.btn--solid { background: var(--accent); color: #0a1411; border-color: var(--accent); font-weight: 600; }
.btn--solid:hover { background: #fff; color: #0a1411; border-color: #fff; }
.btn--gold { background: var(--gold); color: #0a1411; border-color: var(--gold); font-weight: 600; }
.btn--gold:hover { background: #f2c865; color: #0a1411; border-color: #f2c865; }
.btn--warn { border-color: #ff6b6b80; color: var(--red); background: var(--red-bg); }
.btn--sm { height: 28px; padding: 0 10px; font-size: 12px; }
.nav__x {
  border: 1px solid var(--line-2); background: var(--panel); border-radius: 12px;
  display: grid; place-items: center; width: 38px; height: 38px; font-size: 17px; text-decoration: none; flex: none;
}
.wdot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-bg); flex: none; }

/* wallet dropdown */
.wallet { position: relative; }
.wallet__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; z-index: 30;
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 8px;
  box-shadow: 0 20px 60px -20px #000; display: none;
}
.wallet__menu.open { display: block; }
.wallet__menu .label { padding: 8px 10px 4px; }
.wallet__menu button, .wallet__menu a {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  padding: 10px; border-radius: 10px; font-size: 14px; text-decoration: none; color: var(--text-2);
}
.wallet__menu button:hover, .wallet__menu a:hover { background: var(--tile); color: var(--text); }

/* ---------- CA bar ---------- */
.ca {
  margin: 14px auto 0; max-width: 780px;
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  border: 1px solid var(--line-2); background: #0c1713cc; border-radius: 14px; padding: 10px 16px;
}
.ca__lbl { font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.ca__val { font-weight: 600; font-size: 14px; letter-spacing: .02em; overflow-wrap: anywhere; }
.ca__val.pending { color: var(--gold); font-weight: 500; letter-spacing: .08em; font-size: 13px; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 38px 0 42px; }
.eyebrow { font-size: 14px; letter-spacing: .2em; color: var(--green); margin: 0 0 12px; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(24px, 3.3vw, 38px); font-weight: 600; line-height: 1.25; letter-spacing: .005em; }
.hero h1 code { color: var(--gold); background: var(--gold-bg); border-color: #e8b84a61; }
.hero p { max-width: 760px; color: var(--text-2); margin: 16px auto 0; font-size: clamp(15px, 1.6vw, 19px); line-height: 1.5; }
.pills { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.pill { font-size: 12px; letter-spacing: .12em; border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 12px; color: var(--text-2); background: #0c1713aa; }
.pill b { color: var(--gold); font-weight: 600; }

/* ---------- panels ---------- */
.panel {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--r);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 30px 80px -40px #000c;
}
.panel__head { border-bottom: 1px solid var(--line); flex: none; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 24px; }
.panel__title { margin: 0; font-size: 14px; font-weight: 400; letter-spacing: .18em; color: var(--text-2); }
.panel__meta { margin-left: auto; color: var(--muted); font-size: 14px; text-decoration: none; }
a.panel__meta:hover { color: var(--gold); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-glow); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px #e8b84a0d; } }
.tag { font-size: 10px; letter-spacing: .14em; color: var(--gold); border: 1px solid #e8b84a59; border-radius: 999px; padding: 3px 8px; }
.label { font-size: 12px; letter-spacing: .16em; color: var(--muted); display: flex; align-items: center; gap: 10px; text-transform: uppercase; }
.label b { color: var(--text); letter-spacing: 0; font-size: 14px; }
.linkish { color: var(--muted); background: none; border: 0; padding: 0; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover { color: var(--gold); }

.grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(360px, 1fr); gap: 28px; }
.stack { display: grid; gap: 28px; margin-top: 28px; }

/* ---------- candidate panel ---------- */
.cand { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 26px; flex: 1; }
.cand__top { display: flex; align-items: center; gap: 22px; }
.ticker-badge {
  width: 88px; height: 88px; border-radius: 24px; flex: none;
  display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 30% 25%, #e8b84a33, transparent 60%), var(--tile);
  border: 1px solid #e8b84a55; box-shadow: 0 0 40px var(--gold-glow);
  font-weight: 700; font-size: 20px; letter-spacing: .04em; color: var(--gold);
}
.cand__sym { font-size: clamp(46px, 6vw, 76px); font-weight: 700; line-height: 1; letter-spacing: .01em; margin: 0; }
.cand__name { color: var(--text-2); margin-top: 8px; font-size: 16px; }
.cand__price { margin-left: auto; text-align: right; }
.cand__price .big { font-size: 26px; font-weight: 700; }
.cand__price .chg { font-size: 14px; margin-top: 4px; }
.up { color: var(--green); }
.down { color: var(--red); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat { background: #0f1e1999; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.stat__v { font-size: 26px; font-weight: 700; margin-top: 10px; white-space: nowrap; }
.stat__v small { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.stat__s { font-size: 13px; color: var(--muted); margin-top: 6px; }
.stat--hl { border-color: #e8b84a55; background: linear-gradient(180deg, #e8b84a12, #0f1e1999); }
.stat--hl .stat__v { color: var(--gold); }

.split { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--line); margin-top: 12px; }
.split span { display: block; height: 100%; }
.split__legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--text-2); }
.split__legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 7px; vertical-align: 0; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.feed li:first-child { border-top: 0; }
.feed .amt { color: var(--text); font-weight: 600; }
.feed .ago { margin-left: auto; color: var(--muted); font-size: 13px; }
.feed li.fresh { animation: arrive .55s cubic-bezier(.2,.9,.3,1.2) both, glow 2.4s ease-out .2s; }
@keyframes arrive { 0% { opacity: 0; transform: translateY(-10px); } }
@keyframes glow { 0% { background: #e8b84a1a; } to { background: transparent; } }

.rotation { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.rot { border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; text-align: center; background: #0f1e1966; }
.rot__d { font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.rot__s { font-weight: 700; margin-top: 5px; font-size: 14px; }
.rot.on { border-color: var(--gold); background: var(--gold-bg); box-shadow: 0 0 22px var(--gold-glow); }
.rot.on .rot__s { color: var(--gold); }
.rot.past { opacity: .45; }

/* ---------- draw panel ---------- */
.draw { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.draw__sec { padding: 20px 0; border-top: 1px solid var(--line); }
.draw__sec:first-child { padding-top: 0; border-top: 0; }
.cd { display: flex; align-items: flex-end; gap: 6px; margin-top: 12px; font-variant-numeric: tabular-nums; }
.cd__u { text-align: center; }
.cd__n { font-size: clamp(40px, 4.4vw, 60px); font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.cd__l { font-size: 10px; letter-spacing: .16em; color: var(--muted); margin-top: 6px; }
.cd__sep { font-size: clamp(32px, 3.6vw, 48px); font-weight: 300; color: var(--muted); line-height: 1; padding-bottom: 18px; }
.bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 18px; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--gold)); border-radius: 999px; transition: width 1s linear; }
.pot { font-size: clamp(36px, 3.6vw, 48px); font-weight: 700; margin-top: 12px; line-height: 1.05; }
.pot small { font-size: 18px; color: var(--text-2); font-weight: 600; margin-left: 6px; }
.you { margin-top: 12px; background: var(--tile); border: 1px solid var(--line-2); border-radius: 14px; padding: 16px; }
.you__row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--text-2); padding: 4px 0; }
.you__row b { color: var(--text); }

/* ---------- winners ---------- */
.empty { padding: 22px 24px; color: var(--muted); font-size: 15px; }

/* ---------- how to play ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 22px 24px 24px; }
.step { background: #0f1e1999; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px 20px; display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; }
.step__n { font-size: 12px; color: var(--text-2); padding-top: 4px; }
.step h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; line-height: 1.3; }
.step p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.fine { padding: 0 24px 22px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; padding: 0 24px 24px; }

/* ---------- footer ---------- */
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot a { text-decoration: none; }
.foot__links { display: flex; gap: 18px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; background: #050a08b3; backdrop-filter: blur(6px); padding: 16px; }
.modal.open { display: grid; }
.modal__box { width: 100%; max-width: 400px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: 0 40px 100px -30px #000; overflow: hidden; }
.modal__head { display: flex; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal__head h3 { margin: 0; font-size: 14px; letter-spacing: .18em; font-weight: 400; color: var(--text-2); }
.modal__close { margin-left: auto; background: none; border: 0; font-size: 22px; color: var(--muted); line-height: 1; }
.modal__body { padding: 14px; display: grid; gap: 8px; }
.wopt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); background: var(--tile); border-radius: 14px; text-align: left; font-size: 15px; text-decoration: none; color: var(--text); }
.wopt:hover { border-color: #e8b84a80; }
.wopt img, .wopt .wopt__ph { width: 32px; height: 32px; border-radius: 9px; flex: none; }
.wopt .wopt__ph { display: grid; place-items: center; background: var(--line-2); font-weight: 700; }
.wopt__sub { margin-left: auto; font-size: 12px; color: var(--muted); }
.modal__note { padding: 4px 20px 18px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.modal__err { color: var(--red); font-size: 13px; padding: 0 20px 14px; display: none; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); opacity: 0; z-index: 60; background: var(--accent); color: #0a1411; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- docs page ---------- */
.docs { max-width: 1000px; margin: 0 auto; }
.card { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 28px 28px; margin-top: 22px; box-shadow: 0 30px 80px -40px #000c; }
.card h2 { margin: 0 0 18px; font-size: 22px; font-weight: 600; }
.card p { color: var(--text-2); line-height: 1.65; margin: 0 0 14px; }
.card p:last-child { margin-bottom: 0; }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; gap: 10px; }
.flow__arrow { align-self: center; color: var(--muted); }
.flow__i { border: 1px solid var(--line-2); background: #0f1e1999; border-radius: 14px; padding: 16px 14px; }
.flow__i h4 { margin: 0 0 8px; font-size: 16px; }
.flow__i p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mini { border: 1px solid var(--line-2); background: #0f1e1999; border-radius: 14px; padding: 18px; }
.mini h4 { margin: 0 0 10px; font-size: 16px; display: flex; gap: 10px; align-items: center; }
.mini h4::before { content: "✓"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font-size: 12px; flex: none; }
.mini p { margin: 0; font-size: 14px; line-height: 1.55; }
.num { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.num:first-of-type { border-top: 0; padding-top: 4px; }
.num__n { font-size: 13px; color: var(--gold); padding-top: 3px; letter-spacing: .1em; }
.num h4 { margin: 0 0 8px; font-size: 17px; }
.num p { margin: 0; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th, .table td { text-align: left; padding: 12px 10px; border-top: 1px solid var(--line); }
.table th { font-weight: 400; font-size: 11px; letter-spacing: .16em; color: var(--muted); border-top: 0; text-transform: uppercase; }
.table td { color: var(--text-2); }
.table td:first-child { color: var(--text); font-weight: 600; }
.table tr.on td { color: var(--gold); }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 0; font-size: 14.5px; }
.kv > div { padding: 11px 0; border-top: 1px solid var(--line); color: var(--text-2); overflow-wrap: anywhere; }
.kv > div:nth-child(-n+2) { border-top: 0; }
.kv > div:nth-child(odd) { color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding-top: 13px; }
details { border-top: 1px solid var(--line); padding: 16px 0; }
details:first-of-type { border-top: 0; padding-top: 4px; }
summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); font-weight: 400; font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0 !important; }
ul.clean { margin: 0; padding-left: 18px; color: var(--text-2); line-height: 1.7; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .app { padding: 0 16px 40px; }
  .logo__word { font-size: 18px; }
  .nav__right { gap: 8px; }
  .nav .btn { padding: 0 12px; font-size: 13px; height: 36px; }
  .nav__x { width: 36px; height: 36px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:first-child { grid-column: 1 / -1; }
  .rotation { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; padding: 16px; }
  .cand { padding: 20px 18px; }
  .cand__top { gap: 16px; }
  .panel__title { font-size: 12px; letter-spacing: .12em; white-space: nowrap; }
  .panel__meta { font-size: 12px; white-space: nowrap; }
  .cd__n { font-size: 38px; }
  .cd__sep { font-size: 28px; }
  .ticker-badge { width: 64px; height: 64px; border-radius: 18px; font-size: 15px; }
  .draw { padding: 20px 18px; }
  .panel__head { padding: 0 18px; }
  .flow { grid-template-columns: 1fr; }
  .flow__arrow { transform: rotate(90deg); justify-self: center; }
  .cards3 { grid-template-columns: 1fr; }
  .card { padding: 22px 18px; }
  .kv { grid-template-columns: 1fr; }
  .kv > div:nth-child(odd) { padding-bottom: 0; }
  .kv > div:nth-child(even) { border-top: 0; padding-top: 4px; }
  .rings { width: 480px; height: 480px; right: -220px; top: -150px; }
}
@media (max-width: 480px) {
  .logo__word { display: none; }
}

/* past rounds list */
.feed.rounds { padding: 6px 24px 10px; }
.feed.rounds li { gap: 16px; }
.feed.rounds li b { min-width: 44px; color: var(--text); }
@media (max-width: 760px) { .feed.rounds { padding: 6px 16px 10px; } .feed.rounds li { flex-wrap: wrap; gap: 6px 12px; } }
