/* STRATEGRA design system. One deliberate dark theme: deep navy, electric blue to violet, gold for value,
   red for LIVE and BET NOW. Layout: mobile app first (top bar, quick nav, bottom tabs); on wide screens a
   left sidebar replaces the quick nav and bottom tabs. */
@font-face { font-family: 'Outfit'; src: url('/fonts/Outfit-Variable.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #050816; --bg-2: #081027; --panel: #0d1530; --panel-2: #121c3c; --panel-3: #18244c;
  --line: #1c2a55; --line-2: #2a3c74;
  --text: #eef2ff; --muted: #a6b2d6; --faint: #7380ab;
  --blue: #3b82f6; --blue-2: #60a5fa; --violet: #8b5cf6; --violet-2: #a78bfa; --cyan: #22d3ee;
  --gold: #f5c04a; --gold-2: #ffdc80; --red: #f43f5e; --red-2: #fb7185; --green: #34d399; --orange: #fb923c; --pink: #f472b6;
  --grad: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --grad-soft: linear-gradient(135deg, rgba(37, 99, 235, .18), rgba(124, 58, 237, .18));
  --grad-gold: linear-gradient(135deg, #fcd34d, #f59e0b);
  --grad-red: linear-gradient(135deg, #fb3b63, #be123c);
  --r: 16px; --r-sm: 10px; --r-xs: 7px;
  --shadow: 0 14px 40px -18px rgba(0, 0, 0, .8);
  --glow: 0 0 0 1px rgba(96, 165, 250, .25), 0 10px 40px -12px rgba(59, 130, 246, .45);
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Consolas, monospace;
  --side-w: 248px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; font: 400 15px/1.5 var(--font); color: var(--text); background: var(--bg);
  background-image: radial-gradient(900px 500px at 85% -10%, rgba(124, 58, 237, .16), transparent 60%), radial-gradient(800px 500px at -10% 10%, rgba(37, 99, 235, .14), transparent 60%);
  background-attachment: fixed; -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-2); text-decoration: none; }
a:hover { color: #93c5fd; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; text-wrap: balance; font-weight: 700; }
p { margin: 0; }
img, video, canvas, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; border-radius: 6px; }
.ic { width: 20px; height: 20px; flex: none; }
::selection { background: rgba(139, 92, 246, .45); }

/* ---------- utilities ---------- */
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.nowrap { flex-wrap: nowrap; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.s { gap: 6px; } .stack.l { gap: 20px; }
.spacer { flex: 1; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.cols { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .cols.side-r { grid-template-columns: minmax(0, 1fr) 320px; } .cols.side-l { grid-template-columns: 300px minmax(0, 1fr); } .cols.half { grid-template-columns: 1fr 1fr; } }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.small { font-size: 13px; } .tiny { font-size: 11.5px; } .big { font-size: 20px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }
.center { text-align: center; } .right { text-align: right; }
.good { color: var(--green); } .bad { color: var(--red-2); } .warn { color: var(--gold); }
.gold { color: var(--gold); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mt { margin-top: 14px; } .mb { margin-bottom: 14px; }
.wrap-any { overflow-wrap: anywhere; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-2); }
.fine { font-size: 12.5px; color: var(--faint); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; min-height: 42px;
  border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text);
  font-weight: 600; font-size: 14.5px; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: transform .12s, border-color .15s, background .15s, filter .15s;
}
.btn:hover { border-color: var(--blue-2); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 18px; height: 18px; }
/* Sculpted 3D buttons (Nwudu house style): metallic face, hard bottom edge, press-in on tap. */
.btn.primary, .btn.gold, .btn.red, .btn.danger, .btn.green, .bet-now { position: relative; overflow: hidden; isolation: isolate; border: 0; transition: transform .1s ease, box-shadow .1s ease, filter .15s; }
.btn.primary { background: linear-gradient(180deg, #6d8dff 0%, #4f6ef7 46%, #4458e6 54%, #6a46e8 100%); color: #fff; text-shadow: 0 1px 0 rgba(20, 20, 80, .45);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -4px 0 rgba(30, 20, 120, .45), 0 5px 0 #2a2190, 0 12px 26px -8px rgba(80, 70, 230, .8); }
.btn.gold { background: linear-gradient(180deg, #fff4cf 0%, #f2d283 46%, #d9a846 54%, #e8bd62 100%); color: #2a1c05; text-shadow: 0 1px 0 #fff6d8;
  box-shadow: inset 0 2px 0 #fffbe9, inset 0 -4px 0 #b4842f, 0 5px 0 #6b4c14, 0 12px 26px -8px rgba(245, 180, 60, .7); }
.btn.red, .btn.danger, .bet-now { background: linear-gradient(180deg, #ff6b86 0%, #f43f5e 46%, #e11d48 54%, #f0365b 100%); color: #fff; text-shadow: 0 1px 0 rgba(90, 0, 20, .5);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -4px 0 rgba(120, 0, 30, .45), 0 5px 0 #7f0f27, 0 12px 26px -8px rgba(244, 63, 94, .75); }
.btn.green { background: linear-gradient(180deg, #6ef2b0 0%, #22c983 46%, #10b06e 54%, #19c07c 100%); color: #04281a; text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -4px 0 rgba(0, 80, 50, .35), 0 5px 0 #0b5a3b, 0 12px 26px -8px rgba(16, 185, 129, .6); }
.btn.primary:hover, .btn.gold:hover, .btn.red:hover, .btn.danger:hover, .btn.green:hover, .bet-now:hover { filter: brightness(1.07) saturate(1.05); transform: translateY(-1px); }
.btn.primary:active, .btn.gold:active, .btn.red:active, .btn.danger:active, .btn.green:active, .bet-now:active { transform: translateY(4px); }
.btn.primary:active { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), 0 1px 0 #2a2190, 0 4px 10px -4px rgba(80, 70, 230, .8); }
.btn.gold:active { box-shadow: inset 0 2px 0 #fffbe9, 0 1px 0 #6b4c14, 0 4px 10px -4px rgba(245, 180, 60, .7); }
.btn.red:active, .btn.danger:active, .bet-now:active { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), 0 1px 0 #7f0f27, 0 4px 10px -4px rgba(244, 63, 94, .7); }
.btn.green:active { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), 0 1px 0 #0b5a3b, 0 4px 10px -4px rgba(16, 185, 129, .6); }
/* Light sweep across gold and BET NOW buttons, and a breathing glow for hero calls to action. */
.btn.gold::before, .bet-now::before, .btn.pulse::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(105deg, transparent 30%, rgba(255, 253, 240, .75) 48%, transparent 66%); transform: translateX(-120%); animation: btn-sweep 3.6s ease-in-out 1.2s infinite; }
@keyframes btn-sweep { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn.pulse { animation: btn-breathe 2.6s ease-in-out 1.5s infinite; }
@keyframes btn-breathe { 50% { filter: brightness(1.1); transform: translateY(-1px) scale(1.02); } }
.btn.primary:disabled, .btn.gold:disabled, .btn.red:disabled, .btn.green:disabled { transform: none; filter: grayscale(.4); }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 34px; padding: 6px 12px; font-size: 13.5px; border-radius: 10px; }
.btn.xs { min-height: 28px; padding: 3px 9px; font-size: 12.5px; border-radius: 8px; }
.btn.lg { min-height: 52px; padding: 12px 22px; font-size: 16px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.busy { position: relative; color: transparent !important; }
.btn.busy::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.bet-now { font-weight: 900; letter-spacing: .05em; text-transform: uppercase; font-style: italic; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- inputs ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 11px; padding: 10px 12px; color: var(--text); min-height: 42px;
}
textarea { min-height: 90px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(96, 165, 250, .18); }
input[type=range] { width: 100%; accent-color: var(--violet); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--violet); flex: none; }
.input-group { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 11px; background: var(--bg-2); overflow: hidden; }
.input-group input { border: 0 !important; box-shadow: none !important; background: transparent !important; min-width: 0; }
.input-group > span, .input-group > button { display: flex; align-items: center; gap: 6px; padding: 0 12px; border: 0; border-left: 1px solid var(--line); background: var(--panel); color: var(--muted); font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; }
.input-group > span:first-child { border-left: 0; border-right: 1px solid var(--line); }
.input-group > button:hover { color: var(--text); }

/* ---------- surfaces ---------- */
.card { background: linear-gradient(180deg, var(--panel), rgba(13, 21, 48, .85)); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; min-width: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 1px 0 #16224a, 0 2px 0 #121c3e, 0 3px 0 #0e1632, 0 14px 28px -16px rgba(0, 0, 0, .9); }
.card.pad-l { padding: 22px; }
.card.flat { background: var(--panel); }
.card.glow { box-shadow: var(--glow); border-color: rgba(96, 165, 250, .35); }
.card.hl { background: var(--grad-soft), var(--panel); border-color: rgba(139, 92, 246, .35); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-h h2, .card-h h3 { font-size: 16.5px; display: flex; align-items: center; gap: 8px; }
.card-h .ic { color: var(--blue-2); }
a.card { display: block; color: inherit; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--line-2); transform: translateY(-1px); color: inherit; }
.divider { height: 1px; background: var(--line); margin: 12px 0; border: 0; }
.list { display: flex; flex-direction: column; }
.list > * { padding: 11px 0; border-top: 1px solid var(--line); }
.list > *:first-child { border-top: 0; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.kv > span:first-child { color: var(--muted); }
.stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat .k { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.stat .v { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 12.5px; color: var(--muted); }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.stats > .stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }

/* ---------- chips, badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-2); font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.chip .ic { width: 14px; height: 14px; }
.chip.blue { color: var(--blue-2); border-color: rgba(96, 165, 250, .4); background: rgba(59, 130, 246, .12); }
.chip.violet { color: var(--violet-2); border-color: rgba(167, 139, 250, .4); background: rgba(139, 92, 246, .12); }
.chip.gold { color: var(--gold); border-color: rgba(245, 192, 74, .4); background: rgba(245, 192, 74, .1); }
.chip.green { color: var(--green); border-color: rgba(52, 211, 153, .4); background: rgba(52, 211, 153, .1); }
.chip.red { color: var(--red-2); border-color: rgba(251, 113, 133, .4); background: rgba(244, 63, 94, .12); }
.chip.orange { color: var(--orange); border-color: rgba(251, 146, 60, .4); background: rgba(251, 146, 60, .1); }
button.chip { cursor: pointer; }
button.chip[aria-pressed=true] { background: var(--grad); color: #fff; border-color: transparent; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.vbadge { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--blue); color: #fff; margin-left: 4px; vertical-align: -2px; }
.vbadge .ic { width: 11px; height: 11px; stroke-width: 3; }
.tbadge { display: inline-block; margin-left: 5px; padding: 0 6px; border-radius: 5px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #1a1205; vertical-align: 2px; line-height: 16px; }
.tbadge.bronze { background: linear-gradient(135deg, #e7a46b, #b4692d); }
.tbadge.silver { background: linear-gradient(135deg, #f1f5f9, #94a3b8); }
.tbadge.gold { background: var(--grad-gold); }
.tbadge.plus { background: var(--grad); color: #fff; }
.dia { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dia .ic { width: 1em; height: 1em; color: var(--cyan); stroke-width: 2; }
.dia.lg { font-size: 26px; }

/* ---------- avatars & users ---------- */
.av { display: inline-block; border-radius: 50%; overflow: hidden; flex: none; background: var(--panel-2); line-height: 0; }
.av svg { width: 100%; height: 100%; }
.av.ring-bronze { box-shadow: 0 0 0 2px #c27a3e; } .av.ring-silver { box-shadow: 0 0 0 2px #cbd5e1; } .av.ring-gold { box-shadow: 0 0 0 2px var(--gold), 0 0 14px rgba(245, 192, 74, .5); }
.uchip { display: inline-flex; align-items: center; gap: 10px; color: inherit; min-width: 0; }
.uchip:hover { color: inherit; }
.uchip-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.uchip-n { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uchip-s { font-size: 12.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- tabs ---------- */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 13px; background: var(--bg-2); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--muted); padding: 7px 13px; border-radius: 9px; font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.seg button .ic { width: 16px; height: 16px; }
.seg button[aria-selected=true], .seg button[aria-pressed=true] { background: var(--grad); color: #fff; }

/* ---------- progress ---------- */
.bar { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; border: 1px solid var(--line); }
.bar > i { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width .4s; }
.bar.gold > i { background: var(--grad-gold); } .bar.green > i { background: linear-gradient(90deg, #10b981, #34d399); } .bar.red > i { background: var(--grad-red); }
.bar.xp { height: 6px; margin: 8px 0; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 10px 12px; background: var(--panel); border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.r, table.t th.r { text-align: right; font-variant-numeric: tabular-nums; }
table.t tr.me td { background: rgba(59, 130, 246, .08); }

/* ---------- feedback ---------- */
#toasts { position: fixed; left: 0; right: 0; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 90; pointer-events: none; padding: 0 var(--gutter); }
@media (min-width: 960px) { #toasts { bottom: 24px; left: var(--side-w); } }
.toast { display: flex; align-items: center; gap: 10px; max-width: 520px; width: 100%; padding: 12px 14px; border-radius: 14px; background: #121c3d; border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 14px; animation: tin .25s; pointer-events: auto; }
.toast .ic { color: var(--blue-2); } .toast.good .ic { color: var(--green); } .toast.bad .ic { color: var(--red-2); }
.toast.bad { border-color: rgba(244, 63, 94, .5); } .toast.good { border-color: rgba(52, 211, 153, .45); }
.toast.out { opacity: 0; transform: translateY(8px); transition: .4s; }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }
.modal-wrap { position: fixed; inset: 0; z-index: 80; background: rgba(2, 4, 12, .72); backdrop-filter: blur(4px); display: grid; place-items: end center; padding: 0; animation: fade .15s; }
@media (min-width: 640px) { .modal-wrap { place-items: center; padding: 24px; } }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 20px 20px 0 0; box-shadow: var(--shadow); padding-bottom: env(safe-area-inset-bottom, 0px); }
.modal.wide { max-width: 720px; }
@media (min-width: 640px) { .modal { border-radius: 20px; } }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 6px; }
.modal-h h3 { font-size: 18px; }
.modal-b { padding: 8px 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.modal-f { display: flex; gap: 10px; justify-content: flex-end; padding: 12px 18px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 40px 16px; color: var(--muted); }
.empty > .ic { width: 40px; height: 40px; color: var(--violet-2); opacity: .8; }
.empty h4 { color: var(--text); font-size: 17px; }
.skel-list { display: flex; flex-direction: column; gap: 12px; }
.skel { height: 84px; border-radius: 16px; background: linear-gradient(90deg, var(--panel) 0%, var(--panel-2) 50%, var(--panel) 100%); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(96, 165, 250, .35); background: rgba(59, 130, 246, .08); font-size: 14px; color: var(--muted); }
.notice .ic { color: var(--blue-2); margin-top: 1px; }
.notice.warn { border-color: rgba(245, 192, 74, .4); background: rgba(245, 192, 74, .07); } .notice.warn .ic { color: var(--gold); }
.notice.bad { border-color: rgba(244, 63, 94, .45); background: rgba(244, 63, 94, .08); } .notice.bad .ic { color: var(--red-2); }

/* ---------- page ---------- */
.page-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-h h1 { font-size: clamp(22px, 4vw, 30px); letter-spacing: .01em; display: flex; align-items: center; gap: 10px; }
.page-h p { color: var(--muted); margin-top: 4px; max-width: 64ch; }
/* "?" help: explanations live in a pop-up, not on the page. */
.help-btn { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--muted); font: 700 13px/1 var(--font); cursor: pointer; vertical-align: middle; padding: 0; }
.help-btn:hover { color: var(--text); border-color: var(--blue-2); }
.help-btn.sm { width: 20px; height: 20px; font-size: 11.5px; }
.help-body { display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 15px; }
.help-body b { color: var(--text); }
/* Image tiles (generated art in /img/art). */
.img-tile { position: relative; display: block; overflow: hidden; border-radius: 18px; border: 1px solid var(--line-2); background: var(--panel); color: #fff; aspect-ratio: 16 / 10; max-width: 100%; isolation: isolate; }
.img-tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; z-index: -2; }
.img-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 8, 22, 0) 35%, rgba(5, 8, 22, .88) 100%); }
.img-tile:hover > img { transform: scale(1.05); }
.img-tile:hover { color: #fff; border-color: var(--blue-2); }
.img-tile .img-tile-l { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 800; font-size: 17px; letter-spacing: .02em; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }
.img-banner { position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--line-2); min-height: 150px; display: flex; align-items: flex-end; padding: 18px; isolation: isolate; margin-bottom: 16px; }
.img-banner > img, .img-banner > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.img-banner > picture { position: absolute; inset: 0; z-index: -2; }
.img-banner::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 8, 22, .9) 0%, rgba(5, 8, 22, .35) 60%, rgba(5, 8, 22, .1) 100%); }
/* Pills in horizontally scrolling rows keep their full label width. */
.quick-nav > *, .seg > *, .pill-row > *, .gm-nav > *, .soc-subtabs > *, .soc-strip > *, .live-giftbar > *, .avb-shop-row > *, .adm-nav > *, .gm-hist > * { flex-shrink: 0; }
.page-h-r { display: flex; gap: 8px; flex-wrap: wrap; }
.section-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 0 10px; }
.section-h h2 { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.section-h h2 .ic { color: var(--blue-2); }

/* ---------- shell ---------- */
.test-banner { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 5px var(--gutter); font-size: 12px; font-weight: 600; letter-spacing: .04em; color: #241500; background: var(--grad-gold); }
.test-banner .ic { width: 14px; height: 14px; }
.shell { display: block; }
.side { display: none; }
.main-col { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 8px; padding: 10px var(--gutter); padding-top: calc(10px + env(safe-area-inset-top, 0px)); background: rgba(5, 8, 22, .86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.tb-me { display: inline-flex; border-radius: 50%; }
.tb-tile { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 58px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tb-tile .ic { width: 20px; height: 20px; }
.tb-tile.draws .ic { color: var(--gold); } .tb-tile.games .ic { color: var(--violet-2); }
.tb-live { position: absolute; top: -7px; left: 50%; transform: translateX(-50%); padding: 0 5px; border-radius: 4px; background: var(--red); color: #fff; font-size: 8.5px; font-weight: 800; letter-spacing: .08em; line-height: 13px; }
.tb-logo { display: inline-flex; margin: 0 2px; }
.tb-icon { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--muted); }
.tb-icon:hover { color: var(--text); background: var(--panel); }
.tb-icon .count { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; }
.tb-dia { display: inline-flex; align-items: center; gap: 6px; padding: 6px 6px 6px 10px; border-radius: 12px; border: 1px solid rgba(34, 211, 238, .35); background: rgba(34, 211, 238, .07); color: var(--text); font-variant-numeric: tabular-nums; }
.tb-dia > .ic { color: var(--cyan); }
.tb-dia b { font-size: 15px; }
.tb-plus { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--grad); }
.tb-plus .ic { width: 15px; height: 15px; color: #fff; stroke-width: 2.6; }
.quick-nav { display: flex; gap: 6px; overflow-x: auto; padding: 10px var(--gutter); scrollbar-width: none; border-bottom: 1px solid var(--line); }
.quick-nav::-webkit-scrollbar { display: none; }
.quick-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.quick-nav a .ic { width: 16px; height: 16px; }
.quick-nav a.on { background: var(--grad); color: #fff; border-color: transparent; }
.view { padding: 18px var(--gutter) calc(110px + env(safe-area-inset-bottom, 0px)); max-width: 1180px; margin: 0 auto; outline: none; }
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; padding: 6px 8px calc(8px + env(safe-area-inset-bottom, 0px)); background: rgba(6, 10, 26, .94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; color: var(--faint); font-size: 11px; font-weight: 600; }
.bottom-nav a.on { color: var(--blue-2); }
.bottom-nav a .ic { width: 23px; height: 23px; }
.bn-plus { justify-self: center; width: 56px; height: 56px; margin-top: -24px; border-radius: 50%; border: 4px solid var(--bg); background: var(--grad); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 30px -8px rgba(99, 102, 241, .9); }
.bn-plus .ic { width: 26px; height: 26px; stroke-width: 2.6; }
@media (max-width: 420px) { .hide-sm { display: none !important; } .tb-tile { width: 52px; } }
@media (min-width: 960px) {
  .shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); }
  .side { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 0; height: 100vh; padding: 18px 14px; border-right: 1px solid var(--line); background: rgba(6, 10, 26, .7); overflow-y: auto; }
  .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; color: var(--text); font-size: 21px; font-weight: 800; letter-spacing: .14em; }
  .side-nav { display: flex; flex-direction: column; gap: 2px; }
  .side-nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 11px; color: var(--muted); font-weight: 600; font-size: 14.5px; }
  .side-nav a:hover { background: var(--panel); color: var(--text); }
  .side-nav a.on { background: var(--grad-soft); color: var(--text); box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .35); }
  .side-nav a.on .ic { color: var(--blue-2); }
  .side-nav a em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 800; background: var(--red); color: #fff; border-radius: 9px; padding: 0 6px; }
  .side-me { margin-top: auto; padding: 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
  .side-bal { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
  .side-bal .usd { color: var(--muted); font-variant-numeric: tabular-nums; }
  .quick-nav, .bottom-nav, .tb-logo { display: none; }
  .view { padding-bottom: 60px; }
  .topbar { padding-left: 24px; padding-right: 24px; }
  .view { padding-left: 24px; padding-right: 24px; }
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: .14em; }
.brand:hover { color: var(--text); }
.create-list { display: flex; flex-direction: column; gap: 8px; }
.create-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); }
.create-item:hover { border-color: var(--blue-2); color: var(--text); }
.create-item > .ic:first-child { width: 24px; height: 24px; color: var(--blue-2); }
.create-item span { flex: 1; display: flex; flex-direction: column; }
.create-item small { color: var(--muted); font-size: 12.5px; }
.create-item > .ic:last-child { color: var(--faint); }

/* ---------- landing: image first, almost no copy ---------- */
.landing { min-height: 100vh; background: var(--bg); }
.lx-hero { position: relative; min-height: min(100svh, 920px); display: flex; flex-direction: column; isolation: isolate; overflow: hidden; }
.lx-hero picture { position: absolute; inset: 0; z-index: -2; }
.lx-hero picture img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; animation: lxzoom 16s ease-out both; }
@keyframes lxzoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.lx-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 8, 22, .92) 0%, rgba(5, 8, 22, .5) 42%, rgba(5, 8, 22, .05) 72%), linear-gradient(0deg, var(--bg) 0%, rgba(5, 8, 22, 0) 28%); }
.lx-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; max-width: 1280px; margin: 0 auto; padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) 14px; }
.lx-top .brand { font-size: 19px; }
.lx-test { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border-radius: 999px; background: rgba(245, 192, 74, .14); border: 1px solid rgba(245, 192, 74, .45); color: var(--gold); font-size: 10.5px; font-weight: 800; letter-spacing: .12em; white-space: nowrap; }
.lx-copy { margin: auto auto 0; width: 100%; max-width: 1280px; padding: 24px var(--gutter) clamp(40px, 9vh, 96px); display: flex; flex-direction: column; gap: 22px; }
.lx-copy h1 { font-size: clamp(58px, 11vw, 136px); font-weight: 900; line-height: .88; letter-spacing: -.02em; text-transform: uppercase; text-shadow: 0 8px 40px rgba(0, 0, 0, .65); }
.lx-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.lx-cta .btn.ghost { background: rgba(5, 8, 22, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lx-perks { display: flex; gap: 8px; flex-wrap: wrap; }
.lx-perks span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(5, 8, 22, .55); border: 1px solid var(--line-2); font-size: 13px; font-weight: 700; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lx-perks .ic { width: 15px; height: 15px; color: var(--cyan); }
.lx-perks .gold-chip { color: var(--gold-2); border-color: rgba(245, 192, 74, .6); box-shadow: 0 0 18px rgba(245, 192, 74, .3); }
.lx-perks .gold-chip .ic { color: var(--gold); }
@media (max-width: 760px) {
  .lx-hero picture img { object-position: 72% center; }
  .lx-hero::after { background: linear-gradient(180deg, rgba(5, 8, 22, .6) 0%, rgba(5, 8, 22, .05) 30%, rgba(5, 8, 22, .7) 62%, var(--bg) 100%); }
  .lx-cta .btn { flex: 1 1 140px; }
}
.lx-prizes { max-width: 1280px; margin: -10px auto 18px; padding: 0 var(--gutter); }
.lx-prizes-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.lx-jackpot { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: linear-gradient(135deg, rgba(252, 211, 77, .2), rgba(245, 158, 11, .12)); border: 1px solid rgba(245, 192, 74, .6); box-shadow: 0 0 24px rgba(245, 192, 74, .35); color: var(--gold-2); font-weight: 900; font-variant-numeric: tabular-nums; }
.lx-jackpot .ic { width: 16px; height: 16px; color: var(--cyan); }
.lx-jackpot span { font-size: 10.5px; letter-spacing: .14em; color: var(--gold); }
.lx-prize-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.lx-prize-row::-webkit-scrollbar { display: none; }
.lx-prize { position: relative; aspect-ratio: 4 / 5; max-width: 100%; border-radius: 20px; overflow: hidden; border: 1px solid rgba(245, 192, 74, .45); background: var(--panel); padding: 0; cursor: pointer; isolation: isolate; color: #fff; text-align: left; scroll-snap-align: start; box-shadow: 0 18px 40px -20px rgba(245, 158, 11, .6); }
.lx-prize img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.lx-prize::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 8, 22, 0) 40%, rgba(5, 8, 22, .95) 100%); }
.lx-prize:hover img { transform: scale(1.06); }
.lx-prize-v { position: absolute; left: 14px; right: 14px; bottom: 50px; font-size: clamp(28px, 4vw, 38px); font-weight: 900; line-height: 1; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .8)); }
.lx-prize-t { position: absolute; left: 14px; right: 14px; bottom: 28px; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.lx-prize-c { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: rgba(5, 8, 22, .72); border: 1px solid var(--line-2); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; backdrop-filter: blur(6px); }
.lx-prize-c .ic { width: 13px; height: 13px; color: var(--gold); }
.lx-grid { max-width: 1280px; margin: 0 auto; padding: 6px var(--gutter) 22px; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lx-tile { position: relative; display: block; aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; border-radius: 20px; border: 1px solid var(--line-2); background: var(--panel); padding: 0; cursor: pointer; isolation: isolate; color: #fff; text-align: left; }
.lx-tile.wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.lx-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.lx-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 8, 22, 0) 45%, rgba(5, 8, 22, .9) 100%); }
.lx-tile:hover img { transform: scale(1.06); }
.lx-tile:hover { border-color: var(--blue-2); }
.lx-tile span { position: absolute; left: 14px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: clamp(16px, 2.2vw, 22px); font-weight: 900; letter-spacing: .04em; text-transform: uppercase; text-shadow: 0 2px 14px rgba(0, 0, 0, .8); }
.lx-tile span .ic { width: 22px; height: 22px; flex: none; }
@media (min-width: 900px) {
  .lx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .lx-tile { aspect-ratio: 3 / 4; }
  .lx-tile.wide { aspect-ratio: auto; }
  .lx-tile.wide:last-child { grid-column: span 4; aspect-ratio: 4 / 1; }
}
.lx-band { position: relative; max-width: 1280px; width: calc(100% - 2 * var(--gutter)); margin: 0 auto 10px; min-height: clamp(260px, 42vw, 480px); display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; border-radius: 24px; }
.lx-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.lx-band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5, 8, 22, .92) 0%, rgba(5, 8, 22, .15) 60%); }
.lx-band > div { padding: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.lx-band h2 { font-size: clamp(30px, 5.5vw, 60px); font-weight: 900; text-transform: uppercase; line-height: .95; text-shadow: 0 6px 30px rgba(0, 0, 0, .7); }
.lx-foot { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 26px var(--gutter) calc(30px + env(safe-area-inset-bottom, 0px)); color: var(--faint); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; }
.test-banner .help-btn { background: rgba(0, 0, 0, .14); border-color: rgba(0, 0, 0, .25); color: #241500; }
.boot { min-height: 100vh; display: grid; place-items: center; font-weight: 800; letter-spacing: .3em; color: var(--faint); }

/* ---------- shared media ---------- */
.hero-card { position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--line-2); background: var(--panel); }
.hero-card .art { aspect-ratio: 16 / 8; max-width: 100%; width: 100%; display: block; object-fit: cover; background: var(--grad-soft); }
.tile-grid { display: grid; gap: 10px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 520px) { .tile-grid { gap: 8px; } }
.tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; text-align: center; }
.tile:hover { border-color: var(--blue-2); color: var(--text); }
.tile .ic { width: 28px; height: 28px; }
.pill-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pill-row::-webkit-scrollbar { display: none; }
.odds-btn { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 6px; min-width: 0; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); cursor: pointer; font-size: 12px; line-height: 1.25; }
.odds-btn b { font-size: 15px; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.odds-btn:hover { border-color: var(--gold); }
.odds-btn.on { background: var(--grad); border-color: transparent; } .odds-btn.on b { color: #fff; }
.odds-btn:disabled { opacity: .4; cursor: not-allowed; }
.media-16x9 { position: relative; aspect-ratio: 16 / 9; max-width: 100%; width: 100%; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.media-16x9 > video, .media-16x9 > canvas, .media-16x9 > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chat-log { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; font-size: 14px; }
.chat-msg b { color: var(--blue-2); font-weight: 600; margin-right: 6px; }
.chat-msg.sys { color: var(--faint); font-style: italic; }
.chat-msg.gift { padding: 6px 10px; border-radius: 10px; background: rgba(245, 192, 74, .1); border: 1px solid rgba(245, 192, 74, .3); }
.code-box { font-family: var(--mono); font-size: 12px; word-break: break-all; padding: 8px 10px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

/* ---------- 3D effects (js/fx.js) ---------- */
/* Thick 3D coin: stacked edge discs + two faces (Crush It style). */
.coin3d { position: relative; display: inline-block; width: var(--s); height: var(--s); transform-style: preserve-3d; flex: none; }
.coin3d.spin { animation: fx-spin 2.8s cubic-bezier(.45, 0, .55, 1) infinite; }
.coin3d.drop { animation: fx-drop .7s cubic-bezier(.2, 1.5, .4, 1) both, fx-spin 2.6s .7s cubic-bezier(.45, 0, .55, 1) infinite; }
.coin3d i { position: absolute; inset: 0; border-radius: 50%; }
.coin3d .edge { background: linear-gradient(90deg, #8a5a06, #e0a11c 50%, #8a5a06); transform: translateZ(var(--z)); }
.coin3d .face { display: grid; place-items: center; backface-visibility: hidden; background: radial-gradient(circle at 35% 30%, #fff6c4, #ffd23f 30%, #f0a417 62%, #b8700a 100%); box-shadow: inset 0 0 0 calc(var(--s) * .05) #f7c33b, inset 0 0 0 calc(var(--s) * .07) #b8700a, inset 0 0 calc(var(--s) * .18) rgba(120, 60, 0, .6); }
.coin3d .front { transform: translateZ(6.5px); }
.coin3d .back { transform: rotateY(180deg) translateZ(6.5px); }
.coin3d .face b { font-size: calc(var(--s) * .5); font-weight: 900; line-height: 1; color: #fff3b0; text-shadow: 0 2px 0 #b8700a, 0 4px 0 #8a5a06, 0 0 18px rgba(255, 255, 255, .6); }
@keyframes fx-spin { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
@keyframes fx-drop { from { transform: translateY(-260px) scale(.4) rotateY(-540deg); opacity: 0; } }
/* Casino chip: striped rim and a dashed inlay. */
.chip3d { position: relative; display: inline-block; width: var(--s); height: var(--s); transform-style: preserve-3d; flex: none; --c1: #2563eb; --c2: #1e3a8a; --c3: #eef2ff; }
.chip3d.c-red { --c1: #e11d48; --c2: #7f0f27; } .chip3d.c-violet { --c1: #7c3aed; --c2: #3b1580; } .chip3d.c-gold { --c1: #d9a846; --c2: #6b4c14; --c3: #fff4cf; } .chip3d.c-black { --c1: #1f2937; --c2: #050816; --c3: #f5c04a; }
.chip3d.spin { animation: fx-spin 3.4s linear infinite; }
.chip3d i { position: absolute; inset: 0; border-radius: 50%; }
.chip3d .edge { transform: translateZ(var(--z)); background: repeating-conic-gradient(var(--c1) 0 15deg, var(--c3) 15deg 30deg); filter: brightness(.75); }
.chip3d .face { display: grid; place-items: center; backface-visibility: hidden; background: radial-gradient(circle, var(--c1) 0 50%, var(--c3) 51% 54%, transparent 55%), repeating-conic-gradient(var(--c1) 0 22.5deg, var(--c3) 22.5deg 45deg); box-shadow: inset 0 0 0 calc(var(--s) * .04) var(--c2), inset 0 0 calc(var(--s) * .2) rgba(0, 0, 0, .45); }
.chip3d .front { transform: translateZ(5px); }
.chip3d .back { transform: rotateY(180deg) translateZ(5px); }
.chip3d .face b { font-size: calc(var(--s) * .26); font-weight: 900; color: #fff; text-shadow: 0 2px 0 var(--c2); }
/* Extruded gold numerals (jackpots, wins). */
.gold-3d { font-weight: 900; color: #ffd23f; font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 #f0a417, 0 2px 0 #e08f12, 0 3px 0 #c97a0c, 0 4px 0 #b8700a, 0 5px 0 #8a5a06, 0 8px 14px rgba(0, 0, 0, .55), 0 0 30px rgba(255, 210, 63, .45); }
/* Win celebration overlay. */
.fx-win { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: radial-gradient(circle at 50% 42%, rgba(30, 20, 80, .82), rgba(2, 4, 12, .94) 70%); animation: fade .25s; cursor: pointer; overflow: hidden; }
.fx-win.out { opacity: 0; transition: opacity .3s; }
.fx-win-rays { position: absolute; left: 50%; top: 42%; width: 900px; height: 900px; margin: -450px 0 0 -450px; pointer-events: none; background: repeating-conic-gradient(from 0deg, rgba(255, 210, 63, .2) 0deg 10deg, transparent 10deg 24deg); -webkit-mask: radial-gradient(circle, #000 15%, transparent 62%); mask: radial-gradient(circle, #000 15%, transparent 62%); animation: fx-rays 14s linear infinite; }
@keyframes fx-rays { to { transform: rotate(360deg); } }
.fx-win-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 20px; }
.fx-win-label { font-size: 15px; font-weight: 900; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-2); animation: fx-pop .5s cubic-bezier(.2, 1.8, .4, 1) both; }
.fx-win-stage { position: relative; height: 210px; width: 210px; display: grid; place-items: center; perspective: 700px; }
.fx-win-shadow { position: absolute; bottom: 8px; width: 120px; height: 16px; border-radius: 50%; background: radial-gradient(rgba(0, 0, 0, .6), transparent 70%); }
.fx-win-amount b { display: block; font-size: clamp(54px, 15vw, 92px); line-height: 1; font-weight: 900; color: #ffd23f; font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 #f0a417, 0 2px 0 #e08f12, 0 3px 0 #c97a0c, 0 4px 0 #b8700a, 0 5px 0 #8a5a06, 0 9px 16px rgba(0, 0, 0, .6), 0 0 34px rgba(255, 210, 63, .55); animation: fx-pop .7s .15s cubic-bezier(.2, 1.8, .4, 1) both; }
.fx-win-unit { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.fx-win-title { color: var(--muted); font-weight: 700; max-width: 30ch; }
.fx-win .btn { margin-top: 10px; min-width: 200px; }
@keyframes fx-pop { from { transform: scale(.2) rotate(-8deg); opacity: 0; } }
.fx-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 130; }
.fx-credit { position: fixed; z-index: 140; transform: translate(-50%, 0); pointer-events: none; font-weight: 900; font-size: 18px; color: var(--gold-2); text-shadow: 0 2px 0 #8a5a06, 0 0 12px rgba(255, 210, 63, .7); animation: fx-rise 1.3s ease-out forwards; }
@keyframes fx-rise { to { transform: translate(-50%, -70px); opacity: 0; } }
/* Tilt toward the pointer. */
.lx-tile, .lx-prize, .img-tile, .tilt3d, .gm-tile, .draw-card, .live-card, .nft-coll, .nft-hero-card, .trn-card, .soc-tiles > a { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s ease, border-color .2s; will-change: transform; }
.is-tilting { transition: transform .05s linear, border-color .2s; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }
/* Landing hero 3D props. */
.lx-props { position: absolute; right: max(4%, var(--gutter)); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 22px; pointer-events: none; perspective: 900px; z-index: 0; }
.lx-props .chip3d:nth-child(2) { margin-right: 120px; animation-duration: 4.2s; }
.lx-props .chip3d:nth-child(3) { margin-left: 90px; animation-duration: 3s; }
.lx-props .float { animation: fx-float 4s ease-in-out infinite alternate; }
@keyframes fx-float { to { translate: 0 -14px; } }
@media (max-width: 900px) { .lx-props { display: none; } }
.lx-jackpot b { font-size: 18px; }
@media (prefers-reduced-motion: reduce) { .coin3d, .chip3d, .fx-win-rays, .btn.pulse, .btn.gold::before, .bet-now::before { animation: none !important; } }
