/* Volmex palette (from volmex-site tailwind config), on a soft charcoal instead of pure black:
   #000 bg with #fff text (21:1) glares; this keeps every text pair WCAG AA without the halation. */
:root {
  --mint: #00ffb2;
  --mint-dim: #27ad75;
  --mint-soft: rgba(0, 255, 178, 0.08);
  --pink: #f0616d;
  --gold: #ffd56a;
  --bg: #0f1115;
  --bg-2: #15181d;
  --card: #1a1d23;
  --line: #262b34;
  --line-2: #333a46;
  --text: #e8eaed;
  --muted: #b1b6be;
  --muted-2: #8c939e;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 14px;
  --max: 1160px;
  --header-h: 64px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--mint); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code { font-family: var(--mono); font-size: 0.88em; color: var(--mint); background: var(--mint-soft); padding: 0.1em 0.4em; border-radius: 6px; white-space: nowrap; }
strong { color: var(--text); font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--mint); color: #000; padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

.draft-banner { background: var(--pink); color: #000; text-align: center; font-weight: 600; font-size: 14px; padding: 6px 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20; height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 max(20px, calc((100vw - var(--max)) / 2));
  background: rgba(15, 17, 21, 0.85); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand img { display: block; height: 22px; width: auto; }
.site-header nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.site-header nav a { color: var(--muted); font-size: 14px; font-weight: 500; }
.site-header nav a:hover { color: var(--text); text-decoration: none; }
.site-header nav a[aria-current='page'] { color: var(--text); }
.site-header nav a[aria-current='page']::after { content: ''; display: block; height: 2px; margin-top: 3px; background: var(--mint); border-radius: 2px; }
.status-pill {
  font-family: var(--mono); font-size: 12px; padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap;
}
.status-pill.live { color: var(--mint); border-color: rgba(0, 255, 178, 0.35); }
.status-pill.live::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); margin-right: 7px; vertical-align: 1px; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 15px; line-height: 1;
  padding: 13px 20px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--mint); color: #000; }
.btn-primary:hover { background: #5effd0; box-shadow: 0 0 0 4px rgba(0, 255, 178, 0.15); }
.btn-primary:disabled { background: var(--mint-dim); cursor: progress; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--mint); color: var(--mint); }
.btn-sm { padding: 9px 14px; font-size: 14px; }
.btn-lg { padding: 16px 24px; font-size: 16px; }
.btn-block { width: 100%; }
.link-btn { white-space: nowrap; font: inherit; font-size: 13px; font-weight: 600; color: var(--mint); background: none; border: 0; padding: 0; cursor: pointer; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-btn:disabled { opacity: 0.5; cursor: progress; }

/* Hero */
main { max-width: var(--max); margin: 0 auto; padding: 0 20px; overflow-x: clip; } /* hero .pixels bleed right; clip (not hidden) keeps sticky header working */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 56px; align-items: center; padding: 80px 0 48px; }
.pixels {
  position: absolute; right: -90px; top: -20px; width: 300px; height: 300px; pointer-events: none; opacity: 0.35; z-index: -1;
  background-image:
    linear-gradient(var(--mint), var(--mint)), linear-gradient(var(--mint), var(--mint)),
    linear-gradient(var(--mint), var(--mint)), linear-gradient(var(--mint), var(--mint)),
    linear-gradient(rgba(0,255,178,.35), rgba(0,255,178,.35)), linear-gradient(rgba(0,255,178,.2), rgba(0,255,178,.2));
  background-size: 36px 36px; background-repeat: no-repeat;
  background-position: 0 0, 72px 0, 144px 72px, 72px 144px, 216px 180px, 180px 252px;
  mask-image: radial-gradient(circle at 50% 40%, #000 25%, transparent 72%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; color: var(--mint); letter-spacing: 0.02em;
  border: 1px solid rgba(0, 255, 178, 0.3); border-radius: 999px; padding: 6px 14px; margin: 0 0 24px;
}
.dot { width: 8px; height: 8px; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
h1 { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.03; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 22px; text-wrap: balance; }
.accent { color: var(--mint); display: inline-block; }
.lede { color: var(--muted); font-size: 19px; max-width: 54ch; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin: 18px 0 0; font-size: 14px; color: var(--muted-2); }

.prize-card {
  border: 1px solid rgba(0, 255, 178, 0.28); border-radius: 20px; padding: 26px;
  background: radial-gradient(120% 80% at 100% 0%, rgba(0, 255, 178, 0.12), transparent 60%), var(--bg-2);
  box-shadow: 0 30px 80px -40px rgba(0, 255, 178, 0.35);
}
.countdown-label { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 10px; }
.countdown-label.live { color: var(--mint); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.countdown div { padding: 12px 6px 8px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); text-align: center; }
.countdown span { display: block; font-family: var(--mono); font-size: 30px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown small { color: var(--muted-2); font-size: 12px; }
.countdown-dates { color: var(--muted-2); font-size: 13px; margin: 10px 0 0; }
.prize-total { display: flex; align-items: baseline; gap: 10px; margin: 24px 0 14px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.prize-total span { font-family: var(--mono); font-size: 36px; font-weight: 600; color: var(--mint); line-height: 1; }
.prize-total small { color: var(--muted); font-size: 14px; }
.podium { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.place { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-family: var(--mono); font-size: 15px; }
.place-n { color: var(--muted); }
.place-amt { font-weight: 600; }
.place-1 { border-color: rgba(255, 213, 106, 0.35); }
.place-1 .place-n { color: var(--gold); }
.prize-metric { margin: 14px 0 0; font-size: 13px; color: var(--muted-2); text-align: center; }


/* Sections */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-title { display: flex; align-items: center; gap: 14px; font-size: 30px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 28px; }
.sq { width: 12px; height: 12px; background: var(--mint); flex: none; }
h3 { font-size: 17px; margin: 0 0 4px; }
p { margin: 0 0 12px; }
.section p, .section li { color: var(--muted); }

/* Register */
.register { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: start; }
.steps { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 22px; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(0, 255, 178, 0.35); background: var(--mint-soft); color: var(--mint); font-family: var(--mono); font-weight: 600; }
.steps p { margin: 0; }
.privacy-note { font-size: 14px; color: var(--muted-2) !important; border-left: 2px solid var(--line-2); padding-left: 14px; }

.card-title { font-size: 20px; margin: 0 0 20px; }
.card { background: var(--card); border: 1px solid var(--line-2); border-radius: 18px; padding: 30px; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; border: 0; padding: 0; margin: 0; min-width: 0; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field label, legend { font-size: 14px; font-weight: 600; color: var(--text); padding: 0; }
legend { margin-bottom: 7px; }
.opt { color: var(--muted-2); font-weight: 400; font-size: 13px; margin-left: 4px; }
.hint, .field-status { font-size: 13px; color: var(--muted-2) !important; margin: 0; min-height: 1.2em; }
.field-status.ok { color: var(--mint) !important; }
.field-status.info { color: var(--gold) !important; }
.field-status.err { color: var(--pink) !important; }
input:not([type]), input[type='search'] {
  font: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#address { font-family: var(--mono); font-size: 15px; }
input::placeholder { color: #6b7380; }
input:hover { border-color: #454e5c; }
input:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(0, 255, 178, 0.15); }
input[aria-invalid='true'] { border-color: var(--pink); }
input[aria-invalid='true']:focus { box-shadow: 0 0 0 3px rgba(240, 97, 109, 0.18); }
.hp { position: absolute; left: -9999px; }

.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented span { display: block; text-align: center; padding: 10px 6px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 14px; color: var(--muted); font-weight: 500; transition: all 0.15s ease; }
.segmented label:hover span { border-color: #454e5c; color: var(--text); }
.segmented input:checked + span { border-color: var(--mint); color: var(--mint); background: var(--mint-soft); }
.segmented input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 2px; }

.verify-status { font-size: 13px; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px dashed var(--line-2); color: var(--muted) !important; }
.verify-status.ok { color: var(--mint) !important; border-color: rgba(0, 255, 178, 0.35); }
.verify-status.err { color: var(--pink) !important; border-color: rgba(240, 97, 109, 0.35); }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--mint); width: 18px; height: 18px; flex: none; }
.form-message { min-height: 1.4em; margin: -6px 0 0; font-size: 14px; color: var(--pink) !important; text-align: center; }
.submit-note { font-size: 13px; color: var(--muted-2) !important; text-align: center; margin: -10px 0 0; line-height: 1.45; }

.success { outline: none; }
.success-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: #000; font-size: 24px; font-weight: 800; margin-bottom: 16px; }
.success .big { font-size: 24px; color: var(--text); margin-bottom: 8px; }
.success .addr { font-family: var(--mono); font-size: 13px; color: var(--mint) !important; word-break: break-all; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; }
.success-when { display: grid; gap: 4px; margin: 16px 0 0; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(0, 255, 178, 0.3); background: var(--mint-soft); }
.success-when strong { color: var(--text); font-size: 15px; line-height: 1.4; }
.success-when span { font-size: 13px; color: var(--muted); line-height: 1.45; }
.next { margin: 16px 0 22px; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
.success-actions { display: grid; gap: 10px; }
.success-share { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); }

/* Leaderboard */
.lb-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.lb-head .section-title { margin: 0 0 6px; }
.lb-meta { font-size: 13px; color: var(--muted-2) !important; margin: 0; }
.lb-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search { width: 240px !important; padding: 9px 12px !important; font-size: 14px !important; }
.tabs { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; padding: 4px; gap: 4px; }
.tabs button { font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); background: none; border: 0; border-radius: 7px; padding: 7px 14px; cursor: pointer; }
.tabs button[aria-selected='true'] { background: var(--mint); color: #000; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.lb { width: 100%; border-collapse: collapse; font-size: 14px; }
.lb th { text-align: left; font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-2); padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); white-space: nowrap; }
.lb th.active { color: var(--mint); }
.lb th.active::after { content: ' ↓'; }
.lb td { padding: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.lb tbody tr { transition: background 0.12s ease; }
.lb tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
.lb tr:last-child td { border-bottom: 0; }
.lb .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.lb .strong { color: var(--text); font-weight: 600; }
.lb .rank-col { width: 56px; text-align: center; }
.rank { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 8px; color: var(--muted); }
.top-1 .rank { background: rgba(255, 213, 106, 0.14); color: var(--gold); font-weight: 700; }
.top-2 .rank { background: rgba(220, 225, 232, 0.12); color: #dfe4ea; font-weight: 700; }
.top-3 .rank { background: rgba(214, 150, 98, 0.15); color: #e0a271; font-weight: 700; }
.lb .prize { color: var(--mint); }
.lb tr.me td { background: rgba(0, 255, 178, 0.06); }
.lb tr.me td:first-child { box-shadow: inset 3px 0 0 var(--mint); }
.lb .pos { color: var(--mint); }
.lb .neg { color: var(--pink); }
.trader { display: flex; align-items: center; gap: 8px; }
.handle { color: var(--text); font-weight: 500; max-width: 18ch; overflow: hidden; text-overflow: ellipsis; }
.trader .addr { font-family: var(--mono); color: var(--muted-2); font-size: 13px; }
.badge { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--mint); color: #000; font-size: 10px; font-weight: 800; }
.you { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #000; background: var(--mint); border-radius: 5px; padding: 1px 6px; }
.stale { font-family: var(--mono); font-size: 11px; color: var(--gold); border: 1px solid rgba(255, 213, 106, 0.3); border-radius: 5px; padding: 0 5px; white-space: nowrap; }
.empty { text-align: center; color: var(--muted) !important; padding: 44px 16px !important; white-space: normal !important; }
.empty p { margin: 0 auto 16px; max-width: 46ch; }
.lb-foot { font-size: 13px; color: var(--muted-2) !important; margin-top: 12px; }

/* "Your standing" card (leaderboard page) */
.standing {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin: 0 0 18px; padding: 16px 20px; border-radius: var(--radius);
  border: 1px solid rgba(0, 255, 178, 0.3);
  background: radial-gradient(120% 120% at 0% 0%, rgba(0, 255, 178, 0.1), transparent 60%), var(--bg-2);
}
.standing-rank { font-family: var(--mono); font-size: 28px; font-weight: 600; color: var(--mint); line-height: 1; }
.standing-main { display: grid; gap: 2px; margin-right: auto; }
.standing-label { font-weight: 600; color: var(--text); }
.standing-sub { font-size: 13px; color: var(--muted-2); }
.standing-prize { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.standing-prize.in { color: var(--gold); border-color: rgba(255, 213, 106, 0.4); }
.standing-pending { border-color: var(--line-2); background: var(--bg-2); }

/* End-of-page CTA on reference pages */
.page-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }

/* Rules & FAQ */
.rules ol { padding-left: 22px; display: grid; gap: 14px; max-width: 80ch; }
.rules li::marker { color: var(--mint); font-family: var(--mono); }
.disclaimer { margin-top: 28px; padding: 18px 20px; border-left: 3px solid var(--pink); background: var(--bg-2); font-size: 14px; max-width: 80ch; }
.faq details { border-bottom: 1px solid var(--line); max-width: 80ch; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; }
.faq summary:hover { color: var(--mint); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); color: var(--mint); font-size: 20px; line-height: 1; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -4px 0 18px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px max(20px, calc((100vw - var(--max)) / 2)); display: flex; gap: 24px; align-items: center; flex-wrap: wrap; color: var(--muted-2); font-size: 14px; }
.site-footer img { height: 17px; width: auto; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer nav a { color: var(--muted); }
.site-footer p { margin: 0 0 0 auto; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 40; background: var(--text); color: #000; font-weight: 600; font-size: 14px; padding: 10px 16px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }

/* Responsive */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; }
  .pixels { display: none; }
  .register { grid-template-columns: 1fr; gap: 36px; }
  .register-copy { order: 2; }
  .hide-md { display: none; }
}
@media (max-width: 760px) {
  :root { --header-h: 58px; }
  .site-header { gap: 14px; }
  .site-header nav { gap: 16px; }
  .nav-secondary { display: none; } /* Rules/FAQ live in the footer on small screens */
  .status-pill { margin-left: auto; }
  .section { padding: 56px 0; }
  .section-title { font-size: 26px; }
  .lb-tools, .search { width: 100% !important; }
}
@media (max-width: 480px) {
  .brand img { height: 18px; }
  .status-pill { display: none; }
  .site-header .btn { margin-left: auto; }
  .hero { padding-top: 40px; }
  .lede { font-size: 17px; }
  .hero-cta .btn { width: 100%; }
  .prize-card, .card { padding: 20px; }
  .countdown span { font-size: 24px; }
  .hide-sm { display: none; }
  .lb td, .lb th { padding: 12px 8px; }
  .trader { gap: 6px; flex-wrap: wrap; row-gap: 4px; } /* the YOU pill drops under the name instead of pushing Prize off-screen */
  .you { font-size: 10px; padding: 1px 4px; }
  .lb .rank-col { width: 44px; }
  .handle { max-width: 14ch; }
  .addr-secondary, .wide-only { display: none; }
  .lb th { letter-spacing: 0.03em; }
  .lb .prize { font-size: 13px; }
  .eyebrow { font-size: 12px; padding: 5px 12px; }
  .site-footer p { margin-left: 0; }
}
/* Small phones (iPhone SE ~375 and narrow Androids): keep the header on one row. */
@media (max-width: 400px) {
  .site-header { padding: 0 14px; gap: 10px; }
  .brand img { height: 16px; }
  .site-header nav { gap: 14px; }
  .site-header nav a { font-size: 13px; }
  .site-header .btn-sm { padding: 8px 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
