/* =====================================================================
   TPL design system — light + dark themes
   ===================================================================== */
:root {
  --bg: #F4F3F1; --surface: #FFFFFF; --surface-2: #ECEAE6; --surface-3: #E2DFDA;
  --text: #1A1A1A; --muted: #5C5F66; --line: #E2E0DC; --line-strong: #CFCCC6;
  --brand: #F6851B; --brand-strong: #D9690A; --brand-soft: #FFF1EB;
  --ink: #1A1A1A; --on-ink: #FFFFFF;
  --peach: #FFDCC8; --lime: #E3FF89; --lilac: #E1A9FF; --sky: #B4D0FF; --sand: #F3F4F6;
  --forest: #013330; --plum: #360853; --tile-text: #1A1A1A;
  --pos: #0E7A3D; --neg: #C62828; --warn: #A15C07; --info: #1D4ED8;
  --pos-bg: #E7F6EC; --neg-bg: #FDECEC; --warn-bg: #FFF4E0;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);
  --r-sm: 10px; --r: 18px; --r-lg: 28px; --r-xl: 36px;
  --display: "Archivo", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  --gutter: clamp(16px, 4.5vw, 64px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C0C0E; --surface: #17171A; --surface-2: #1F1F23; --surface-3: #2A2A2F;
    --text: #F3F2EF; --muted: #A3A3AD; --line: #2A2A30; --line-strong: #3A3A42;
    --brand: #F78D2C; --brand-strong: #FFA14A; --brand-soft: #2A1A0C;
    --ink: #F3F2EF; --on-ink: #111113;
    --pos: #4ADE80; --neg: #F87171; --warn: #FBBF24; --info: #93C5FD;
    --pos-bg: #0F2A1A; --neg-bg: #2C1414; --warn-bg: #2B2110;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 30px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C0C0E; --surface: #17171A; --surface-2: #1F1F23; --surface-3: #2A2A2F;
  --text: #F3F2EF; --muted: #A3A3AD; --line: #2A2A30; --line-strong: #3A3A42;
  --brand: #F78D2C; --brand-strong: #FFA14A; --brand-soft: #2A1A0C;
  --ink: #F3F2EF; --on-ink: #111113;
  --pos: #4ADE80; --neg: #F87171; --warn: #FBBF24; --info: #93C5FD;
  --pos-bg: #0F2A1A; --neg-bg: #2C1414; --warn-bg: #2B2110;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 30px rgba(0,0,0,.35);
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background .25s var(--ease), color .25s var(--ease); }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.12; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.display { font-family: var(--display); font-stretch: 62.5%; font-weight: 850; line-height: .9; letter-spacing: -.005em; }
.h-hero { font-size: clamp(54px, 7.4vw, 112px); }
.h-section { font-size: clamp(40px, 6vw, 80px); }
.h-card { font-size: clamp(28px, 2.6vw, 38px); }
.lead { font-size: clamp(17px, 1.4vw, 21px); color: var(--muted); max-width: 40ch; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.tiny { font-size: 12px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .92em; }
.right { text-align: right; }
.pos { color: var(--pos); } .neg { color: var(--neg); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.icon { flex: none; vertical-align: -3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.spacer { flex: 1; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- buttons */
.btn { --b: var(--surface); --t: var(--text); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--b); color: var(--t); font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s; white-space: nowrap; }
.btn:hover { border-color: var(--text); }
.btn:active { transform: scale(.97); }
.btn.primary { --b: var(--ink); --t: var(--on-ink); border-color: var(--ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--brand)); }
.btn.brand { --b: var(--brand); --t: #1A1A1A; border-color: var(--brand); }
.btn.brand:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn.ghost { --b: transparent; }
.btn.danger { --t: var(--neg); }
.btn.lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn.sm { min-height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; background: transparent; border: 1.5px solid var(--line-strong); color: var(--text); cursor: pointer; transition: border-color .18s, background .18s; }
.icon-btn:hover { border-color: var(--text); }
form.inline { display: inline; }

/* ---------------------------------------------------------------- forms */
label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
input, select, textarea { width: 100%; min-height: 44px; background: var(--surface); color: var(--text); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; font: inherit; font-size: 15px; transition: border-color .18s; }
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
input[readonly] { background: var(--surface-2); }
input[type=checkbox] { width: 18px; min-height: 18px; accent-color: var(--brand); }
textarea { min-height: 96px; resize: vertical; }
.field { margin-bottom: 16px; }
fieldset { border: 1.5px solid var(--line); border-radius: var(--r); padding: 20px; margin: 0 0 18px; background: var(--surface); }
legend { padding: 0 8px; font-weight: 700; }

/* ---------------------------------------------------------------- nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .container { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-mark { width: 36px; height: 36px; }
.logo-word { font-family: var(--display); font-stretch: 62.5%; font-weight: 900; font-size: 30px; letter-spacing: .01em; line-height: 1; }
.logo-sub { font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.15; max-width: 90px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .18s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.wallet-chip { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); font-weight: 600; font-size: 14px; text-decoration: none; }
.wallet-chip:hover { border-color: var(--text); }
.menu-btn { display: none; }
.mobile-menu { display: none; }
@media (max-width: 920px) {
  .nav-links, .nav-actions .hide-m { display: none; }
  .menu-btn { display: inline-grid; }
  .logo-sub { display: none; }
  .mobile-menu.open { display: block; position: fixed; inset: 76px 0 0 0; background: var(--bg); padding: 24px var(--gutter); overflow-y: auto; z-index: 49; }
  .mobile-menu a, .mobile-menu button.link { display: flex; align-items: center; gap: 12px; padding: 16px 0; font-size: 22px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; color: var(--text); font-family: inherit; cursor: pointer; }
}

/* ---------------------------------------------------------------- flashes */
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; margin: 18px 0 0; font-size: 15px; border: 1.5px solid; }
.flash.ok { background: var(--pos-bg); border-color: color-mix(in srgb, var(--pos) 35%, transparent); }
.flash.error { background: var(--neg-bg); border-color: color-mix(in srgb, var(--neg) 35%, transparent); }
.flash.warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.flash .icon { margin-top: 2px; }

/* ---------------------------------------------------------------- badges */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 7px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge.live, .badge.active, .badge.finished, .badge.approved, .badge.paid, .badge.deposit, .badge.target, .badge.topup { background: var(--pos-bg); color: var(--pos); }
.badge.upcoming, .badge.waiting, .badge.pending { background: var(--warn-bg); color: var(--warn); }
.badge.failed, .badge.closed, .badge.ended, .badge.expired, .badge.rejected, .badge.refund, .badge.breached { background: var(--neg-bg); color: var(--neg); }
.badge.daily { background: var(--lime); color: #2B3A00; }
.badge.weekly { background: var(--sky); color: #102A63; }
.badge.monthly { background: var(--lilac); color: #3B0764; }
.badge.custom { background: var(--peach); color: #6B2A07; }
.badge.purchase, .badge.prize { background: color-mix(in srgb, var(--lilac) 40%, var(--surface)); color: var(--text); }
.badge.adjustment, .badge.manual, .badge.migration { background: color-mix(in srgb, var(--sky) 40%, var(--surface)); color: var(--text); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 0 0 color-mix(in srgb, var(--pos) 60%, transparent); animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------------------------------------------------------------- cards / tiles */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 2.4vw, 32px); }
.card h3 { font-size: 18px; }
.tile { position: relative; border-radius: var(--r-lg); padding: clamp(22px, 2.4vw, 32px); color: var(--tile-text); overflow: hidden; display: flex; flex-direction: column; gap: 14px; isolation: isolate; transition: transform .28s var(--ease); }
.tile.lift:hover { transform: translateY(-4px); }
.tile .illo { width: 100%; height: auto; max-height: 260px; transition: transform .45s var(--ease); }
.tile.lift:hover .illo { transform: translateY(-6px) rotate(-1.5deg) scale(1.03); }
.tile p { color: color-mix(in srgb, var(--tile-text) 78%, transparent); margin: 0; }
.tile .btn.primary { --b: #1A1A1A; --t: #fff; border-color: #1A1A1A; }
.tile .btn.primary:hover { background: #000; }
.t-lime { background: var(--lime); } .t-sky { background: var(--sky); } .t-peach { background: var(--peach); }
.t-lilac { background: var(--lilac); } .t-white { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.t-white p { color: var(--muted); }
.t-white .btn.primary { --b: var(--ink); --t: var(--on-ink); border-color: var(--ink); }
.t-forest { background: var(--forest); --tile-text: #F3F2EF; } .t-forest .h-card, .t-forest .display { color: var(--lime); }
.t-plum { background: var(--plum); --tile-text: #F3F2EF; } .t-plum .display { color: var(--lilac); }
.t-ink { background: #111113; --tile-text: #F3F2EF; }
.tile-foot { margin-top: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 6vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 28px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { margin-bottom: 32px; }
.hero-visual { position: relative; min-height: 600px; }
.hero-slab { position: absolute; inset: -40px -30vw -60px 8%; background: linear-gradient(135deg, var(--lilac) 0%, #C77DFF 38%, var(--brand) 100%); clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); border-radius: 0 0 0 48px; z-index: 0; }
.phone { position: relative; z-index: 1; width: min(360px, 82%); margin: 0 auto; background: #0E0E10; color: #F3F2EF; border-radius: 46px; padding: 18px 16px 22px; box-shadow: 0 40px 80px -30px rgba(20,10,40,.55), inset 0 0 0 2px #2A2A30; animation: floaty 7s ease-in-out infinite; }
.phone-top { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 14px; font-size: 13px; color: #A3A3AD; }
.phone-bal { padding: 4px 6px 14px; }
.phone-bal .display { font-size: 48px; color: #fff; }
.phone-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: #1A1A1E; margin-top: 8px; font-size: 14px; }
.phone-row .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone-row.me { background: #2A1A0C; box-shadow: inset 0 0 0 1.5px var(--brand); }
.phone-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 4px; }
.phone-actions span, .phone-actions a { text-decoration: none; display: grid; place-items: center; gap: 4px; padding: 10px 0; border-radius: 14px; background: #1A1A1E; font-size: 12px; color: #D4D4D8; }
.float-chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: #111113; color: #F3F2EF; font-size: 13px; font-weight: 600; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); animation: floaty 6s ease-in-out infinite; }
.float-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
@keyframes floaty { 50% { transform: translateY(-10px); } }
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { min-height: 0; padding: 24px 0 8px; }
  .hero-slab { inset: 0 -20vw -40px -20vw; clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%); border-radius: 0; }
  .float-chip { display: none; }
}

/* ---------------------------------------------------------------- ticker */
.ticker { overflow: hidden; padding: 6px 0 4px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: flex; gap: 14px; width: max-content; animation: marquee 50s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tick { display: flex; align-items: center; gap: 14px; padding: 14px 22px 14px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; white-space: nowrap; }
.tick-ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #1A1A1A; }
.tick b { display: block; font-size: 15px; } .tick span { font-size: 12.5px; color: var(--muted); }
.tick .price { text-align: right; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- sections */
section.block { padding: clamp(56px, 8vw, 128px) 0; }
.section-head { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { max-width: 52ch; color: var(--muted); font-size: 17px; margin: 0; }
.dark-band { background: #0E0E10; color: #F3F2EF; --muted: #A3A3AD; --line: #2A2A30; --line-strong: #3A3A42; --surface: #17171A; --surface-2: #1F1F23; --text: #F3F2EF; --ink: #F3F2EF; --on-ink: #111113; --pos: #4ADE80; --neg: #F87171; --pos-bg: #0F2A1A; --neg-bg: #2C1414; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tabs a { padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line-strong); text-decoration: none; font-weight: 600; font-size: 14px; color: var(--muted); transition: all .18s; }
.tabs a:hover { color: var(--text); border-color: var(--text); }
.tabs a.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

/* challenge cards */
.cgrid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.ccard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 18px; transition: transform .25s var(--ease), border-color .25s; text-decoration: none; }
.ccard:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.ccard .price { font-family: var(--display); font-stretch: 62.5%; font-weight: 850; font-size: 56px; line-height: .9; }
.ccard .price small { font-family: var(--body); font-stretch: normal; font-size: 13px; font-weight: 500; color: var(--muted); display: block; margin-top: 8px; }
.ccard-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ccard-top .countdown { margin-left: auto; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; font-size: 14.5px; }
.kv div span { display: block; color: var(--muted); font-size: 12.5px; }
.countdown { font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; color: var(--warn); }
.meter { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }

/* ---------------------------------------------------------------- leaderboard */
.lb { display: flex; flex-direction: column; gap: 8px; }
.lb-row { display: grid; grid-template-columns: 40px 40px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 10px 16px 10px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease), background .3s; }
.lb-row.me { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.lb-row.breached { opacity: .6; }
.lb-rank { font-family: var(--display); font-stretch: 62.5%; font-weight: 850; font-size: 28px; text-align: center; color: var(--muted); }
.lb-row:nth-child(1) .lb-rank { color: var(--brand); }
.lb-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-name small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.lb-pct { font-family: var(--display); font-stretch: 70%; font-weight: 800; font-size: 26px; text-align: right; min-width: 92px; font-variant-numeric: tabular-nums; }
.lb-bar { width: 120px; height: 8px; border-radius: 99px; background: var(--surface-2); position: relative; overflow: hidden; }
.lb-bar::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--line-strong); }
.lb-bar i { position: absolute; top: 0; bottom: 0; left: 50%; border-radius: 99px; }
.lb-bar i.up { background: var(--pos); } .lb-bar i.down { background: var(--neg); right: 50%; left: auto; }
.lb-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.lb-empty { padding: 28px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line-strong); border-radius: 18px; }
.flash-up { animation: flashUp 1.2s var(--ease); } .flash-down { animation: flashDown 1.2s var(--ease); }
@keyframes flashUp { 0% { background: var(--pos-bg); } } @keyframes flashDown { 0% { background: var(--neg-bg); } }
@media (max-width: 640px) {
  .lb-row { grid-template-columns: 30px 36px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px 10px 8px; }
  .lb-bar { display: none; }
  .lb-pct { font-size: 22px; min-width: 0; }
  .lb-rank { font-size: 22px; }
}

/* ---------------------------------------------------------------- steps / stats */
.steps { counter-reset: s; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); display: block; font-family: var(--display); font-stretch: 62.5%; font-weight: 850; font-size: 52px; line-height: 1; color: var(--brand); margin-bottom: 18px; }
.stat-big { font-family: var(--display); font-stretch: 62.5%; font-weight: 850; font-size: clamp(56px, 7vw, 96px); line-height: .9; }
.stat-label { color: var(--muted); font-size: 14px; max-width: 22ch; margin-top: 10px; }
.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line); padding-top: 32px; }
@media (max-width: 760px) { .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td.wrap { white-space: normal; }
.card table th { background: transparent; }
.person { display: flex; align-items: center; gap: 10px; }
.person .avatar { flex: none; }

/* ---------------------------------------------------------------- footer */
footer.site { background: #0E0E10; color: #D4D4D8; padding: clamp(56px, 7vw, 96px) 0 32px; margin-top: clamp(40px, 6vw, 80px); }
footer.site .foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
footer.site h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
footer.site a { color: #A3A3AD; text-decoration: none; display: block; padding: 4px 0; font-size: 14.5px; }
footer.site a:hover { color: #fff; }
footer.site .legal { border-top: 1px solid #2A2A30; margin-top: 48px; padding-top: 24px; font-size: 13px; color: #8A8A94; }
footer.site .logo { color: #fff; }
@media (max-width: 760px) { footer.site .foot-grid { grid-template-columns: 1fr 1fr; } footer.site .foot-brand { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- auth */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: calc(100vh - 76px); }
.auth-art { background: var(--lime); display: grid; place-items: center; padding: 48px; color: #1A1A1A; position: relative; overflow: hidden; }
.auth-art .illo { width: min(420px, 90%); }
.auth-form { display: grid; place-items: center; padding: 48px var(--gutter); }
.auth-form .card { width: 100%; max-width: 440px; border: 0; background: transparent; padding: 0; }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-art { display: none; } }

/* ---------------------------------------------------------------- page heads */
.page-head { padding: clamp(28px, 4vw, 56px) 0 clamp(20px, 3vw, 32px); display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; }
.stat .lbl { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.stat .num { font-family: var(--display); font-stretch: 62.5%; font-weight: 850; font-size: 42px; line-height: 1; margin-top: 10px; font-variant-numeric: tabular-nums; }
.stat .num small { font-family: var(--body); font-stretch: normal; font-size: 14px; font-weight: 500; color: var(--muted); }

/* ---------------------------------------------------------------- admin */
.admin { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100vh - 76px); }
.side { border-right: 1px solid var(--line); padding: 20px 14px; background: var(--surface); position: sticky; top: 76px; height: calc(100vh - 76px); overflow-y: auto; }
.side a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: var(--muted); margin-bottom: 2px; text-decoration: none; font-size: 14.5px; font-weight: 500; transition: background .15s, color .15s; }
.side a.on, .side a:hover { background: var(--surface-2); color: var(--text); }
.side a.on { font-weight: 600; }
.side .label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); padding: 0 12px; margin: 18px 0 6px; opacity: .8; }
.side .count { margin-left: auto; background: var(--brand); color: #1A1A1A; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 1px 8px; }
.main { padding: 28px clamp(16px, 3vw, 40px) 64px; min-width: 0; }
.main h1 { font-family: var(--display); font-stretch: 62.5%; font-weight: 850; font-size: clamp(36px, 4vw, 52px); line-height: .95; }
.main h2 { font-size: 20px; margin-top: 8px; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
@media (max-width: 920px) {
  .admin { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; display: flex; overflow-x: auto; gap: 4px; padding: 10px var(--gutter); border-right: 0; border-bottom: 1px solid var(--line); }
  .side .label { display: none; }
  .side a { white-space: nowrap; margin: 0; }
}

/* ---------------------------------------------------------------- reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; }
}

/* ---------------------------------------------------------------- composed tiles */
.tile.tall { min-height: 520px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: clamp(28px, 4.5vw, 72px); }
.split.wide { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.split .illo { max-height: 340px; }
@media (max-width: 860px) {
  .split, .split.wide { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .split .illo { max-height: 220px; }
  .split.flip > .illo:first-child { order: 2; }
}
@media (max-width: 640px) { .tile.tall { min-height: 0; } .tile .illo { max-height: 200px; } }

/* ---------------------------------------------------------------- local currency */
.fx { color: var(--muted); font-weight: 500; font-size: .86em; white-space: nowrap; }
.fx.block { display: block; margin-top: 4px; }
.price .fx, .display .fx { font-family: var(--body); font-stretch: normal; font-size: 15px; font-weight: 600; letter-spacing: 0; }
.tile .fx { color: color-mix(in srgb, var(--tile-text) 70%, transparent); }
.ccy { position: relative; display: inline-flex; align-items: center; }
.ccy .icon { position: absolute; left: 13px; pointer-events: none; color: var(--muted); }
.ccy-select { width: auto; min-height: 42px; height: 42px; padding: 0 30px 0 36px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 600; font-size: 14px; cursor: pointer; appearance: none; -webkit-appearance: none; max-width: 112px; text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.ccy-select:hover { border-color: var(--text); }
.mobile-menu .ccy { width: 100%; margin-top: 18px; }
.mobile-menu .ccy-select { max-width: none; width: 100%; height: 52px; font-size: 16px; }
.hero-price { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-top: 28px; padding-top: 24px; border-top: 1.5px solid rgba(0,0,0,.12); }
.hero-price .fx { color: #1A1A1A; opacity: .8; font-size: 15px; font-weight: 700; }
.hero-price-cta .btn.primary { --b: #1A1A1A; --t: #fff; border-color: #1A1A1A; }
.hero-price-cta .btn:not(.primary):not(.brand) { --b: rgba(255,255,255,.6); --t: #1A1A1A; border-color: rgba(0,0,0,.2); }
.join-block .btn, .join-block form { width: 100%; }
.fx.on-dark { color: #E3FF89; opacity: .8; }
.wallet-chip .fx { font-size: 12.5px; }
.ccy-select:disabled { opacity: .6; cursor: default; }
@media (max-width: 1180px) { .wallet-chip .fx { display: none; } }

/* ---------------------------------------------------------------- prizes */
.win { display: grid; grid-template-columns: minmax(0, 1fr) 112px; align-items: center; gap: 12px; padding: 18px 18px 18px 22px; border-radius: 22px; background: var(--tone, var(--peach)); color: #1A1A1A; text-decoration: none; min-height: 150px; overflow: hidden; transition: transform .25s var(--ease); }
.win:hover { transform: scale(1.015); }
.win:hover .win-media > * { transform: translateY(-4px) rotate(-3deg); }
.win-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.win-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.win-title { font-family: var(--display); font-stretch: 62.5%; font-weight: 850; font-size: clamp(36px, 3.3vw, 48px); line-height: .92; overflow-wrap: anywhere; }
.win .fx { color: #1A1A1A; opacity: .75; font-size: 14px; font-weight: 700; }
.win-more { font-size: 13px; font-weight: 600; opacity: .75; margin-top: 4px; }
.win-media { width: 112px; height: 112px; display: grid; place-items: center; }
.win-media > * { transition: transform .35s var(--ease); }
.prize-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; box-shadow: 0 10px 24px -10px rgba(0,0,0,.35); background: #fff; }
.prize-art { width: 100%; height: auto; }
.entry-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 15.5px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
/* Banner on the challenge page */
.prize-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.prize-hero .win-title { font-size: clamp(56px, 7vw, 112px); color: #1A1A1A; }
.prize-hero .hero-media { position: relative; display: grid; place-items: center; }
.prize-hero .hero-media .prize-photo { aspect-ratio: 4 / 3; height: auto; max-height: 360px; border-radius: 28px; }
.prize-hero .hero-media .prize-art { max-height: 320px; }
.rank-flag { position: absolute; top: 12px; left: 12px; background: #1A1A1A; color: #fff; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
@media (max-width: 860px) { .prize-hero { grid-template-columns: minmax(0, 1fr); } .prize-hero .hero-media { order: -1; } }
/* Prize gallery */
.prize-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.prize-card { border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.prize-card .media { aspect-ratio: 4 / 3; background: var(--tone, var(--peach)); display: grid; place-items: center; position: relative; padding: 14px; }
.prize-card .media .prize-photo { border-radius: 0; box-shadow: none; position: absolute; inset: 0; }
.prize-card .media .prize-art { max-height: 100%; width: auto; }
.prize-card .body { padding: 16px 18px 18px; }
.prize-card .body b { display: block; font-family: var(--display); font-stretch: 62.5%; font-weight: 850; font-size: 30px; line-height: .95; }
.prize-card .rank { position: absolute; top: 10px; left: 10px; z-index: 1; background: #1A1A1A; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.hero-fx .fx { color: #1A1A1A; opacity: .8; font-size: 18px; font-weight: 700; }
.hero-price .fx { color: #1A1A1A; }

/* ---------------------------------------------------------------- winner celebration */
.celebrate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(10, 10, 12, .55); backdrop-filter: blur(4px); animation: fadeIn .3s var(--ease); }
.celebrate .confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cel-card { position: relative; width: min(480px, 100%); background: var(--lime); color: #1A1A1A; border-radius: 32px; padding: 28px clamp(20px, 4vw, 36px) 30px; box-shadow: 0 40px 100px -30px rgba(0,0,0,.6); animation: popIn .55s cubic-bezier(.2,1.4,.4,1); text-align: left; max-height: calc(100vh - 32px); overflow-y: auto; }
.cel-card h2 { font-size: clamp(64px, 12vw, 104px); margin: 4px 0 0; color: #1A1A1A; }
.cel-art { width: 150px; margin: -10px 0 4px -8px; }
.cel-art .illo { animation: floaty 3s ease-in-out infinite; }
.cel-prize { display: flex; gap: 14px; align-items: center; background: rgba(255,255,255,.65); border-radius: 18px; padding: 12px 14px; }
.cel-prize b { display: block; font-family: var(--display); font-stretch: 62.5%; font-weight: 850; font-size: 30px; line-height: 1; }
.cel-prize small { display: block; font-size: 13px; opacity: .75; margin-top: 4px; }
.cel-rank { flex: none; width: 52px; height: 52px; border-radius: 50%; background: #1A1A1A; color: #E3FF89; display: grid; place-items: center; font-family: var(--display); font-stretch: 62.5%; font-weight: 900; font-size: 24px; }
.cel-thumb { flex: none; width: 52px; height: 52px; border-radius: 14px; object-fit: cover; }
.cel-card .btn.primary { --b: #1A1A1A; --t: #fff; border-color: #1A1A1A; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(.7) translateY(30px); } }

/* ---------------------------------------------------------------- MT5 credentials */
.creds { background: var(--surface-2); border-radius: 18px; padding: 16px 18px; color: var(--text); }
.cred-row { display: grid; grid-template-columns: minmax(110px, 180px) minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.cred-val { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.cred-copy { width: 34px; height: 34px; }
@media (max-width: 520px) { .cred-row { grid-template-columns: minmax(0, 1fr) auto; } .cred-row > span:first-child { grid-column: 1 / -1; } }

/* House traders: always disclosed */
.badge.house { background: transparent; color: var(--muted); border: 1px dashed currentColor; }
.lb-row.house { opacity: .78; }
.lb-row.house .lb-rank { color: var(--muted); }
.lb-house-note { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.lb-house-note svg { flex: none; margin-top: 2px; }

.test-banner { background: var(--warn-bg); color: var(--warn); text-align: center; font-size: 13px; padding: 8px 16px; }

.chip-check { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; cursor: pointer; background: var(--surface); }
.chip-check input { width: auto; margin: 0; }
.chip-check:has(input:checked) { border-color: var(--text); background: var(--surface-2); }

/* Home hero: the signed-in player's running challenge */
.my-live { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; background: #1A1A1A; color: #FFFFFF; border-radius: var(--r-lg); padding: 20px 24px; margin: 0 0 28px; text-decoration: none; box-shadow: var(--shadow); }
.my-live:hover { transform: translateY(-1px); }
.my-live-l { flex: 1 1 260px; min-width: 0; }
.my-live-title { font-family: var(--display); font-stretch: 62.5%; font-weight: 850; font-size: 32px; line-height: 1; margin: 8px 0 6px; }
.my-live-kpi { display: flex; flex-direction: column; } .my-live-kpi span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .65; }
.my-live-kpi b { font-size: 24px; font-variant-numeric: tabular-nums; } .my-live-kpi small { font-size: 14px; opacity: .6; }
.my-live-kpi .up { color: #4ADE80; } .my-live-kpi .down { color: #F87171; }
.my-live-cta { background: var(--brand); color: #1A1A1A; border-color: var(--brand); }
@media (max-width: 640px) { .my-live-cta { width: 100%; justify-content: center; } }

/* Home hero card: live or next challenge */
.hc-title { font-family: var(--display); font-stretch: 62.5%; font-weight: 850; font-size: 30px; line-height: 1; color: #fff; }
.hc-timer { margin-top: 8px; font-size: 15px; color: #F6B26B; font-weight: 700; }
.hc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 8px; }
.hc-stats div { background: #1A1A1E; border-radius: 12px; padding: 8px 6px; text-align: center; }
.hc-stats span { display: block; font-size: 10px; color: #A3A3AD; text-transform: uppercase; letter-spacing: .04em; }
.hc-stats b { font-size: 14px; color: #fff; } .hc-stats small { color: #A3A3AD; font-weight: 500; }
.hc-prize { display: flex; align-items: center; gap: 8px; background: #1E2A0A; color: #E3FF89; border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; font-size: 13px; text-decoration: none; }
.hc-prize small { color: #B5C97A; }
.phone-actions a:hover { background: #26262C; color: #fff; }
.hc-more { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; color: #A3A3AD; text-decoration: none; }
.hc-more:hover { color: #fff; }
.phone-actions a.hc-mine { background: var(--brand); color: #1A1A1A; font-weight: 700; }
.made-in { display: inline-flex; align-items: center; gap: 6px; }
.made-in::before { content: ""; width: 16px; height: 11px; border-radius: 2px; background: linear-gradient(#EF3340 0 50%, #FFFFFF 50% 100%); box-shadow: 0 0 0 1px rgba(255,255,255,.15); }

/* Prize amount: always highlighted (marker style) */
mark.hl { background: linear-gradient(transparent 12%, #F6851B 12%, #F6851B 88%, transparent 88%); color: #1A1A1A; padding: 0 .12em; border-radius: .08em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hc-prize mark.hl, .phone mark.hl { background: #E3FF89; color: #1A1A1A; padding: 0 4px; border-radius: 4px; }
