@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800&family=Geist+Mono:wght@500;600;700&display=swap');

/* GAGAMBETS — 2026 UI
   Flat near-black canvas, layered hairline surfaces, pill controls, one acid-lime action colour,
   red / blue reserved for the two sides. Numbers are always tabular mono. */
:root {
  --bg: #07080A;
  --s1: #0E1013;           /* card */
  --s2: #14171B;           /* raised / inputs */
  --s3: #1B1F25;           /* hover */
  --hair: rgba(255,255,255,.07);
  --hair2: rgba(255,255,255,.12);
  --text: #F2F4F7;
  --dim: #A3AAB5;
  --mute: #8B929E;
  --lime: #D4FF3A;
  --lime-ink: #0B0D04;
  --red: #FF4D5E;
  --blue: #4D8BFF;
  --gold: #FFC24D;
  --green: #3DE08F;
  --danger: #FF8A94;
  --r-card: 22px; --r-in: 14px; --r-pill: 999px;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --sans: 'Geist', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; font-feature-settings: 'ss01', 'cv11'; }
a { color: var(--dim); text-decoration: none; } a:hover { color: var(--text); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 10px; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.02em; }
h1 { font-size: 28px; } h2 { font-size: 15px; letter-spacing: -.01em; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.dim { color: var(--dim); } .mute { color: var(--mute); font-size: 13px; }
.red { color: var(--red); } .blue { color: var(--blue); } .gold { color: var(--gold); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 24px; background: rgba(7,8,10,.78); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--hair);
}
.top .left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.logo { width: 38px; height: 32px; object-fit: contain; flex: none; display: block; filter: drop-shadow(0 0 6px rgba(255,42,42,.5)); }
.brand b { font-weight: 800; font-size: 17px; letter-spacing: -.03em; }
.nav { display: flex; gap: 2px; padding: 4px; border-radius: var(--r-pill); background: var(--s1); border: 1px solid var(--hair); flex-wrap: wrap; }
.nav a { padding: 7px 14px; border-radius: var(--r-pill); font-weight: 500; font-size: 13px; color: var(--dim); }
.nav a:hover { color: var(--text); background: var(--s2); }
.nav a.on { color: var(--text); background: var(--s3); }
.right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r-pill); background: var(--s1); border: 1px solid var(--hair); font-size: 13px; font-weight: 500; }
.pill.gold { color: var(--lime); border-color: rgba(212,255,58,.3); } .pill.red { color: var(--red); border-color: rgba(255,77,94,.3); }
.tag { padding: 5px 10px; border-radius: var(--r-pill); background: rgba(212,255,58,.12); color: var(--lime); font-size: 11px; font-weight: 700; letter-spacing: .08em; }

/* ---------- layout ---------- */
.wrap { display: flex; flex-wrap: wrap; gap: 16px; padding: 18px 24px 40px; max-width: 1560px; margin: 0 auto; }
.main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.side { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.card { padding: 20px; border-radius: var(--r-card); background: var(--s1); border: 1px solid var(--hair); display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.sep { height: 1px; background: var(--hair); }
.label { font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }

/* ---------- stream ---------- */
.stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden; background: #000; border: 1px solid var(--hair); }
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.stage .empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--mute); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; background: var(--s1); }
.stage .tl, .stage .tr { position: absolute; top: 14px; display: flex; gap: 6px; }
.stage .tl { left: 14px; } .stage .tr { right: 14px; }
.chip { padding: 6px 11px; border-radius: var(--r-pill); background: rgba(7,8,10,.62); backdrop-filter: blur(10px); border: 1px solid var(--hair); font-size: 12px; font-weight: 500; }
.live { background: var(--red); border-color: transparent; color: #fff; font-weight: 700; letter-spacing: .06em; }
.stage .bottom {
  position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 12px 16px; border-radius: 16px;
  background: rgba(7,8,10,.66); backdrop-filter: blur(14px); border: 1px solid var(--hair);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.matchup { font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: var(--r-pill); font-weight: 700; font-size: 11px; letter-spacing: .08em; background: var(--s3); color: var(--dim); }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.open { background: rgba(61,224,143,.14); color: var(--green); }
.status.last_call { background: rgba(255,194,77,.16); color: var(--gold); }
.timer { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 28px; font-weight: 700; min-width: 76px; text-align: right; letter-spacing: -.02em; }

.split { height: 8px; border-radius: var(--r-pill); background: var(--s2); overflow: hidden; display: flex; gap: 3px; }
.split .r { background: var(--red); width: 50%; border-radius: var(--r-pill); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.split .b { flex: 1; background: var(--blue); border-radius: var(--r-pill); }

/* ---------- side cards ---------- */
.sidecard {
  position: relative; text-align: left; padding: 22px; border-radius: var(--r-card); background: var(--s1);
  border: 1px solid var(--hair); display: flex; flex-direction: column; gap: 18px; overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.sidecard:hover { border-color: var(--hair2); }
.sidecard:active { transform: scale(.99); }
.sidecard.sel-red { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), 0 18px 48px -18px rgba(255,77,94,.55); }
.sidecard.sel-blue { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 18px 48px -18px rgba(77,139,255,.55); }
.sidecard .name { font-weight: 800; font-size: 24px; letter-spacing: -.03em; }
.sidecard .big { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 40px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.sidecard .pool { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 600; }

/* ---------- results ---------- */
.beads { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 5px; }
.bead { aspect-ratio: 1; border-radius: 7px; background: var(--s2); box-shadow: inset 0 0 0 1.5px #5A616C; }
.bead.red { background: var(--red); box-shadow: none; } .bead.blue { background: var(--blue); box-shadow: none; }
.bead.cancelled { box-shadow: inset 0 0 0 1.5px #5A616C; background: repeating-linear-gradient(45deg, transparent 0 3px, #2A2F37 3px 5px); }
.legend { display: flex; gap: 12px; font-size: 12px; color: var(--mute); flex-wrap: wrap; }
.legend span { display: flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.dot.r { background: var(--red); } .dot.b { background: var(--blue); } .dot.d { box-shadow: inset 0 0 0 1.5px #5A616C; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid var(--hair2);
  background: var(--s2); color: var(--text); font-weight: 600; font-size: 14px; transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover:not(:disabled) { background: var(--s3); }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .45; }
.btn.primary { background: var(--lime); color: var(--lime-ink); border: none; font-weight: 750; font-size: 16px; min-height: 58px; letter-spacing: -.01em; }
.btn.primary:hover:not(:disabled) { background: #E0FF6A; }
.btn.primary:disabled { background: var(--s2); color: var(--mute); opacity: 1; border: 1px solid var(--hair); }
.btn.red { background: var(--red); color: #fff; border: none; } .btn.blue { background: var(--blue); color: #fff; border: none; }
.btn.red:hover:not(:disabled) { background: #FF6676; } .btn.blue:hover:not(:disabled) { background: #6A9EFF; }
.btn.big { min-height: 60px; font-size: 17px; font-weight: 750; border-radius: 18px; }
.btn.warn { border-color: rgba(255,194,77,.4); background: rgba(255,194,77,.1); color: var(--gold); }
.btn.danger { border-color: rgba(255,77,94,.35); background: rgba(255,77,94,.06); color: var(--danger); }
.btn.sm { min-height: 32px; padding: 0 12px; font-size: 12px; }

.pick { min-height: 50px; border-radius: var(--r-pill); border: 1px solid var(--hair2); background: var(--s2); color: var(--text); font-weight: 700; font-size: 14px; transition: all .15s; }
.pick:hover { background: var(--s3); }
.pick.on-red { background: var(--red); border-color: var(--red); color: #fff; }
.pick.on-blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.chips button { min-height: 40px; border-radius: var(--r-pill); border: 1px solid var(--hair); background: var(--s2); font-family: var(--mono); font-size: 13px; font-weight: 600; transition: all .15s; }
.chips button:hover { border-color: var(--hair2); }
.chips button.on { border-color: var(--lime); color: var(--lime); background: rgba(212,255,58,.08); }

input[type=text], input[type=password], input[type=number], input[type=datetime-local], select {
  height: 46px; padding: 0 16px; border-radius: var(--r-in); border: 1px solid var(--hair2); background: var(--s2); color: var(--text); width: 100%; transition: border-color .15s;
}
input:focus, select:focus { outline: none; border-color: var(--lime); }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--lime); flex: none; }
input.stake { height: 64px; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 28px; font-weight: 700; padding: 0 20px; border-radius: 18px; letter-spacing: -.02em; }
.breakdown { padding: 16px; border-radius: 18px; background: var(--bg); border: 1px solid var(--hair); display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
.payout { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 700; color: var(--lime); letter-spacing: -.02em; }
.toast { padding: 12px 14px; border-radius: var(--r-in); font-size: 13px; background: rgba(61,224,143,.1); color: #8FF0BE; border: 1px solid rgba(61,224,143,.2); }
.toast.err { background: rgba(255,77,94,.08); color: var(--danger); border-color: rgba(255,77,94,.22); }
.betrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; border-radius: var(--r-in); background: var(--s2); font-size: 13px; }

/* ---------- chat ---------- */
.chatlog { display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.5; max-height: 300px; overflow-y: auto; scrollbar-width: thin; }
.chatlog .u { font-weight: 650; margin-right: 6px; color: var(--dim); }
.chatlog .staff { color: var(--lime); }
.chatform { display: flex; gap: 8px; }
.chatform input { flex: 1; min-width: 0; border-radius: var(--r-pill); }
.iconbtn { width: 46px; height: 46px; border-radius: 50%; border: none; background: var(--lime); color: var(--lime-ink); display: flex; align-items: center; justify-content: center; flex: none; }
.iconbtn:disabled { background: var(--s2); color: var(--mute); }

/* ---------- tables ---------- */
.tablewrap { overflow-x: auto; margin: 0 -6px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; color: var(--mute); font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 8px 8px; white-space: nowrap; }
td { padding: 11px 8px; border-top: 1px solid var(--hair); vertical-align: middle; }
tr:hover td { background: rgba(255,255,255,.015); }
td.num, th.num { text-align: right; }
td select { height: 34px; padding: 0 10px; border-radius: 10px; width: auto; }
.badge { display: inline-block; padding: 3px 9px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700; letter-spacing: .03em; background: var(--s3); color: var(--dim); }
.badge.ok { background: rgba(61,224,143,.12); color: var(--green); } .badge.bad { background: rgba(255,77,94,.12); color: var(--danger); }

/* ---------- tabs (admin) ---------- */
.tabs { position: sticky; top: 61px; z-index: 15; display: flex; gap: 4px; flex-wrap: wrap; padding: 10px 24px; background: rgba(7,8,10,.78); backdrop-filter: blur(16px); border-bottom: 1px solid var(--hair); }
.tabs button { background: none; border: 1px solid transparent; border-radius: var(--r-pill); padding: 8px 16px; color: var(--dim); font-weight: 600; font-size: 13px; min-height: 38px; }
.tabs button:hover { color: var(--text); background: var(--s1); }
.tabs button.on { color: var(--lime-ink); background: var(--lime); }

/* ---------- stats ---------- */
.stat { padding: 18px; border-radius: var(--r-card); background: var(--s1); border: 1px solid var(--hair); display: flex; flex-direction: column; gap: 6px; }
.stat > span:first-child { font-size: 12px; color: var(--mute); font-weight: 500; }
.stat b { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 26px; font-weight: 700; letter-spacing: -.03em; }

/* ---------- auth / banners ---------- */
.authbox { max-width: 400px; margin: 10vh auto; padding: 32px; border-radius: 28px; background: var(--s1); border: 1px solid var(--hair); display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; color: var(--dim); font-weight: 500; }
.banner { padding: 14px 16px; border-radius: var(--r-in); background: rgba(212,255,58,.07); border: 1px solid rgba(212,255,58,.18); color: #E4FF8A; font-size: 13px; }
.banner.bad { background: rgba(255,77,94,.08); border-color: rgba(255,77,94,.22); color: var(--danger); }
label.row { padding: 12px 14px; border-radius: var(--r-in); background: var(--s2); cursor: pointer; font-size: 13px; }

@media (max-width: 720px) {
  .top { padding: 10px 14px; } .wrap { padding: 12px 14px 32px; }
  .nav { order: 3; width: 100%; justify-content: space-between; }
  .beads { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .sidecard { padding: 16px; } .sidecard .big { font-size: 30px; } .sidecard .name { font-size: 19px; }
  .matchup { font-size: 16px; } .timer { font-size: 22px; }
  .tabs { top: 0; position: static; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
#fatal { padding-bottom: 0; }

/* ---------- site token ---------- */
.tk-head { display: flex; align-items: center; gap: 12px; }
.tk-icon { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; background: var(--s2); }
.tk-ph { display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--lime); }
.tk-id { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tk-id b { font-size: 16px; letter-spacing: -.02em; }
.tk-id a { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-price { display: flex; flex-direction: column; align-items: flex-end; }
.tk-price b { font-size: 20px; letter-spacing: -.02em; }
.tk-ch { font-size: 12px; font-weight: 600; font-family: var(--mono); }
.tk-ch.up { color: var(--green); } .tk-ch.down { color: var(--red); }
.tk-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tk-stat { padding: 10px 12px; border-radius: var(--r-in); background: var(--s2); display: flex; flex-direction: column; gap: 2px; }
.tk-stat b { font-size: 14px; }
.tk-chart { position: relative; height: 380px; border-radius: var(--r-in); overflow: hidden; background: #000; border: 1px solid var(--hair); }
.tk-chart iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tk-buy { width: 100%; text-decoration: none; }
.tk-buy:hover { color: var(--lime-ink); }
.preview-note { font-size: 12px; color: var(--mute); }
.toastwrap { padding-top: 0; padding-bottom: 0; }
.toastwrap:has(> .toast.hidden) { display: none; }
.banner.row { justify-content: space-between; flex-wrap: wrap; }

/* ---------- top-bar token ticker ---------- */
.ticker { display: flex; align-items: center; gap: 10px; padding: 5px 5px 5px 6px; border-radius: var(--r-pill); background: var(--s1); border: 1px solid var(--hair); font-size: 13px; transition: border-color .4s; }
.ticker b { font-weight: 700; letter-spacing: -.01em; }
.ticker .mono { font-weight: 600; }
.tk-mini-icon { width: 26px; height: 26px; border-radius: 50%; background: var(--s3); color: var(--lime); font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.tk-mini-icon img { width: 100%; height: 100%; object-fit: cover; }
.tk-mini-buy { padding: 7px 14px; border-radius: var(--r-pill); background: var(--lime); color: var(--lime-ink); font-weight: 700; font-size: 12px; }
.tk-mini-buy:hover { color: var(--lime-ink); background: #E0FF6A; }
.ticker.flash-up { border-color: var(--green); } .ticker.flash-down { border-color: var(--red); }
@media (max-width: 720px) { .ticker { order: 2; width: 100%; justify-content: space-between; } }

/* ---------- chain switcher ---------- */
.chainsw { display: flex; gap: 2px; padding: 4px; border-radius: var(--r-pill); background: var(--s1); border: 1px solid var(--hair); }
.chainsw button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: var(--r-pill); border: 0; background: none; color: var(--dim); font-weight: 600; font-size: 12px; min-height: 32px; }
.chainsw button.on { background: var(--s3); color: var(--text); }
.chainsw button:disabled { opacity: .75; cursor: not-allowed; }
.cdot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.cdot.sol { background: linear-gradient(135deg, #9945FF 0 50%, #14F195 50% 100%); }
.cdot.rh { background: #CCFF00; }
.soon { padding: 2px 7px; border-radius: var(--r-pill); background: rgba(212,255,58,.12); color: var(--lime); font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.lime { color: var(--lime); }

/* ---------- pay-with + converter ---------- */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--bg); border: 1px solid var(--hair); }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; border-radius: var(--r-pill); border: 0; background: none; color: var(--dim); font-weight: 650; font-size: 13px; }
.seg button.on { background: var(--s3); color: var(--text); box-shadow: inset 0 0 0 1px var(--hair2); }
.tokdot { width: 16px; height: 16px; border-radius: 50%; display: inline-block; }
.tokdot.sol { background: linear-gradient(135deg, #9945FF, #14F195); }
.tokdot.usdt { background: #26A17B; }
.tokdot.gaga { background: var(--lime); }
.stakewrap { position: relative; }
.maxbtn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--hair2); background: var(--s3); color: var(--dim); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.maxbtn:hover { color: var(--text); }
.convert { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 16px; border: 1px dashed var(--hair2); }
.conv-main { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 16px; }
.conv-sub { font-size: 12px; color: var(--mute); }

/* ---------- tickets card ---------- */
.ticketcard { color: var(--text); gap: 10px; transition: border-color .2s; }
.ticketcard:hover { color: var(--text); border-color: rgba(212,255,58,.35); }
.tickets-n { font-size: 26px; font-weight: 700; color: var(--lime); letter-spacing: -.03em; }
.tprog { height: 6px; border-radius: var(--r-pill); background: var(--s2); overflow: hidden; }
.tprog div { height: 100%; width: 0; background: var(--lime); border-radius: var(--r-pill); transition: width .5s; }

/* ---------- lotto ---------- */
.lotto-hero { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.hero-n { font-size: 64px; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--lime); margin: 6px 0; }
.hero-side { display: flex; flex-direction: column; gap: 10px; min-width: 240px; flex: 0 1 320px; }
.game-seg { padding: 6px; }
.game-seg button { min-height: 64px; flex-direction: column; gap: 0; border-radius: 18px; }
.game-seg button b { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.game-seg button span { font-size: 12px; font-weight: 500; color: var(--mute); }
.game-seg button.on { background: var(--lime); color: var(--lime-ink); box-shadow: none; }
.game-seg button.on span { color: rgba(11,13,4,.7); }
.digits { display: flex; justify-content: center; gap: 10px; padding: 8px 0; }
.digit { width: 76px; height: 96px; border-radius: 20px; background: var(--bg); border: 1px solid var(--hair2); display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 52px; font-weight: 700; letter-spacing: -.04em; }
.digit.next { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(212,255,58,.15); }
.digit.empty { color: var(--mute); }
.keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.key { min-height: 54px; border-radius: 16px; border: 1px solid var(--hair); background: var(--s2); font-family: var(--mono); font-size: 20px; font-weight: 700; transition: background .12s, transform .08s; }
.key:hover { background: var(--s3); } .key:active { transform: scale(.96); }
.key.fn { color: var(--dim); font-family: var(--sans); font-size: 16px; }
.stepper { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--bg); border: 1px solid var(--hair); }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--s3); font-size: 18px; font-weight: 700; }
.stepper input { width: 56px; height: 36px; text-align: center; border: 0; background: none; padding: 0; font-family: var(--mono); font-weight: 700; font-size: 16px; }
.mynums { display: flex; flex-wrap: wrap; gap: 8px; }
.numchip { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: var(--r-pill); background: var(--s2); border: 1px solid var(--hair); }
.numchip b { font-size: 16px; color: var(--lime); }
.numchip span { font-size: 12px; color: var(--dim); }
.results { display: flex; flex-direction: column; gap: 10px; }
.result { display: flex; align-items: center; gap: 16px; padding: 12px 14px; border-radius: var(--r-in); background: var(--s2); }
.balls { display: flex; gap: 6px; }
.ball { width: 40px; height: 40px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 800; font-size: 18px; }
.rmeta { display: flex; flex-direction: column; }
.drawlog { margin: 0; padding: 14px; border-radius: var(--r-in); background: var(--bg); border: 1px solid var(--hair); font-family: var(--mono); font-size: 12px; color: var(--dim); max-height: 220px; overflow: auto; white-space: pre-wrap; }
@media (max-width: 720px) { .digit { width: 62px; height: 80px; font-size: 42px; } .hero-n { font-size: 48px; } }
/* lotto 0–42 board */
.keypad { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.keypad .key { min-height: 44px; font-size: 15px; border-radius: 12px; }
.keypad .key.picked { background: rgba(212,255,58,.14); border-color: var(--lime); color: var(--lime); }
.keypad .key:disabled { opacity: .4; cursor: default; }
.digits .digit { font-size: 44px; cursor: pointer; color: var(--text); }

/* ---------- lotto prize pool on the betting page ---------- */
.jackpot { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 18px; align-items: center; padding: 20px 22px; border-radius: var(--r-card);
  background: var(--s1); border: 1px solid rgba(212,255,58,.28); color: var(--text); overflow: hidden; transition: border-color .2s, transform .15s; }
.jackpot:hover { color: var(--text); border-color: var(--lime); }
.jp-main { display: flex; flex-direction: column; gap: 2px; }
.jp-total { font-size: 38px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; color: var(--lime); }
.jp-usd { font-size: 14px; color: var(--dim); font-weight: 500; }
.jp-games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.jp-g { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--r-in); background: var(--s2); }
.jp-g b { font-size: 18px; }
.jp-g .mute { font-size: 12px; }
.jp-k { display: inline-block; width: fit-content; padding: 2px 8px; border-radius: var(--r-pill); background: var(--lime); color: var(--lime-ink); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.jp-cta { grid-column: 1 / -1; font-size: 13px; font-weight: 600; color: var(--lime); }
.jackpot.grow { animation: jpgrow 1.2s ease-out; }
@keyframes jpgrow { 0% { box-shadow: 0 0 0 0 rgba(212,255,58,.5); } 100% { box-shadow: 0 0 0 14px rgba(212,255,58,0); } }
@media (max-width: 720px) { .jackpot { grid-template-columns: 1fr; } .jp-total { font-size: 30px; } }
/* security page */
.authbox.wide { max-width: 520px; }
.secret { padding: 14px; border-radius: var(--r-in); background: var(--bg); border: 1px dashed var(--hair2); font-size: 16px; letter-spacing: .08em; word-break: break-all; }
#tfaSetup, #tfaOff, #tfaOn { display: flex; flex-direction: column; gap: 10px; }
#tfaSetup p, #tfaOff p { margin: 0; }
#otpLink { align-self: flex-start; }
/* web2.5 wallet panels */
.wbox { display: flex; flex-direction: column; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.break { word-break: break-all; }
.geogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; max-height: 460px; overflow: auto; padding-right: 4px; }
.geogrid label { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--s2); border: 1px solid var(--hair); font-size: 13px; cursor: pointer; }
.geogrid label.on { border-color: var(--lime); }
.geogrid label.locked { opacity: .7; cursor: not-allowed; }
.geogrid .cc { font-family: var(--mono); color: var(--dim); font-size: 12px; margin-left: auto; }
/* $GAGAMBA + airdrop */
.tokdot.gaga { background: linear-gradient(135deg, #D4FF3A, #7CFFB2); }
.tokdot.sol { background: linear-gradient(135deg, #9945FF, #14F195); }
.tokdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.airdrop { border-color: rgba(212,255,58,.35); background: linear-gradient(160deg, rgba(212,255,58,.07), var(--s1) 55%); }
.ad-main { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; }
.ad-main > div { display: flex; flex-direction: column; gap: 4px; }
.ad-pts { font-size: 26px; color: var(--lime); }
.ad-top { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.ad-top li.me { color: var(--lime); }
.ad-top li span { float: right; font-family: var(--mono); color: var(--dim); }
.pool-sub { font-size: 12px; color: var(--dim); font-family: var(--mono); }
.seg.stacked button { flex-direction: column; gap: 1px; min-height: 52px; }
.seg.stacked button small { font-size: 11px; font-weight: 500; color: var(--mute); }
.seg.stacked button.on small { color: var(--lime); }
#bTickets { white-space: nowrap; }
.payout.tok { font-size: 18px; }
input[type=datetime-local] { color-scheme: dark; }
.glpreview { position: relative; aspect-ratio: 16/9; border-radius: var(--r-in); background: #000; overflow: hidden; display: grid; place-items: center; }
.glpreview video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
details summary { cursor: pointer; }
.testbar { position: sticky; top: 0; z-index: 30; text-align: center; padding: 6px 12px; font-size: 12px; font-weight: 700; letter-spacing: .04em; background: #FFB020; color: #1a1300; }
.jserr { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999; padding: 12px 16px; border-radius: 12px; background: #3a0a0a; border: 1px solid #ff2a2a; color: #fff; font: 500 14px/1.4 Inter, system-ui, sans-serif; }
