:root {
  /* SolBet.gg palette: mint #02f3b8, deep green #0f8162, ink #00160f */
  --mint: #02f3b8;
  --deep: #0f8162;
  --ink: #00160f;
  --bg: #030504;
  --bg-2: #060908;
  --panel: #0a0d0c;
  --panel-2: #0e1211;
  --panel-3: #141917;
  --line: #161c1a;
  --line-2: #212a27;
  --text: #f1f5f3;
  --muted: #8b9692;
  --dim: #56615d;
  --sol-purple: #0f8162;
  --sol-green: #02f3b8;
  --sol-cyan: #7afce0;
  --sol-magenta: #19c99a;
  --grad: linear-gradient(100deg, #0f8162 0%, #0bbf8f 50%, #02f3b8 100%);
  --grad-soft: linear-gradient(100deg, rgba(2, 243, 184, .09), rgba(2, 243, 184, .02));
  --accent: #02f3b8;
  --accent-ink: #00160f;
  --accent-2: #0f8162;
  --win: #02f3b8;
  --lose: #ff4d6d;
  --warn: #ffb547;
  --glow: 0 0 18px rgba(2, 243, 184, .35);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --font: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --display: 'Sora', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --spd: 1; /* game speed multiplier, set from JS */
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: radial-gradient(1200px 600px at 85% -10%, rgba(15, 129, 98, .10), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(2, 243, 184, .03), transparent 60%), var(--bg); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mono { font-family: var(--mono); font-size: 12.5px; word-break: break-all; }
.win-text { color: var(--win); font-weight: 600; }
.lose-text { color: var(--lose); font-weight: 600; }
.red-text { color: #ff4d61; }
.green-text { color: #02f3b8; }
.black-text { color: #c9dcd7; }
.link { color: var(--accent); background: none; border: 0; padding: 0; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.link:hover { text-decoration: underline; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #1e2724; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* ================= layout ================= */
.app { display: grid; grid-template-columns: minmax(0, 1fr); height: 100vh; }
body.chat-open .app { grid-template-columns: minmax(0, 1fr) 310px; }

.nav-art { width: 20px; height: 20px; display: inline-grid; flex: none; }
.nav-art svg { width: 100%; height: 100%; }
.net-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sol-green); box-shadow: 0 0 10px var(--sol-green); margin-right: 4px; }

.main { overflow-y: auto; height: 100vh; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 40; height: 68px; display: flex; align-items: center; gap: 18px; padding: 0 28px; background: rgba(3, 5, 4, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; position: relative; }
#view { padding: 24px; max-width: 1360px; margin: 0 auto; }

.balance-pill { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 5px 5px 5px 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.coin-dot { width: 16px; height: 16px; border-radius: 50%; flex: none; display: inline-block; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='1' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%230f8162'/%3E%3Cstop offset='1' stop-color='%2302f3b8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='16' cy='16' r='16' fill='%2300160f'/%3E%3Cg fill='url(%23g)'%3E%3Cpath d='M10.4 9h13.4l-2.2 2.6H8.2z'/%3E%3Cpath d='M8.2 14.7h13.4l2.2 2.6H10.4z'/%3E%3Cpath d='M10.4 20.4h13.4L21.6 23H8.2z'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; box-shadow: 0 0 0 1px rgba(2, 243, 184, .35), 0 0 10px rgba(2, 243, 184, .25); }
.coin-dot.sm { width: 13px; height: 13px; margin-right: 6px; vertical-align: -1px; }
.icon-btn.user-btn { gap: 8px; padding: 0 12px; width: auto; }
.user-btn .uname { font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; min-width: 210px; box-shadow: var(--shadow); display: flex; flex-direction: column; z-index: 50; }
.user-menu a, .user-menu button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; background: none; border: 0; text-align: left; color: var(--text); }
.user-menu a:hover, .user-menu button:hover { background: var(--panel-3); }

/* ================= buttons & inputs ================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; font-weight: 700; white-space: nowrap; transition: transform .08s, filter .15s, background .15s, opacity .15s; }
.btn:active:not(:disabled) { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .5; }
.btn-primary { background: var(--grad); background-size: 140% 100%; background-position: 0 0; color: var(--ink); box-shadow: 0 8px 22px -12px rgba(2, 243, 184, .45), inset 0 1px 0 rgba(255, 255, 255, .3); transition: background-position .3s, transform .08s, filter .15s, opacity .15s; }
.btn-primary:hover:not(:disabled) { background-position: 100% 0; }
.btn-primary svg { flex: none; }
.btn-primary:hover:not(:disabled) { filter: brightness(1.06); }
.btn-ghost { background: var(--panel-3); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover:not(:disabled) { background: #222b28; }
.btn-danger { background: var(--lose); color: #fff; box-shadow: 0 6px 20px -6px rgba(255, 77, 109, .55); }
.btn-cash { background: var(--warn); color: #241500; box-shadow: 0 6px 20px -6px rgba(255, 181, 71, .6); }
.btn-lg { height: 50px; font-size: 15px; padding: 0 22px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); flex: none; }
.icon-btn:hover { color: var(--text); background: var(--panel-2); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 12.5px; color: var(--muted); font-weight: 600; display: flex; justify-content: space-between; }
.field-hint { color: var(--dim); font-weight: 500; }
.input-wrap { display: flex; align-items: center; gap: 4px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 4px; min-height: 44px; transition: border-color .15s; }
.input-wrap:focus-within { border-color: var(--deep); box-shadow: 0 0 0 3px rgba(2, 243, 184, .08); }
.input-wrap > .coin-dot { margin-left: 8px; }
.input-wrap > .cur-mark { margin-left: 10px; flex: none; font: 700 14px var(--display); color: var(--mint); }
/* In a fiat display currency the little SOL coin next to amounts is dropped; the number carries the symbol. */
body.fiat .coin-dot.sm { display: none; }
.input-wrap input, .input-wrap select { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 0 8px; height: 34px; font-weight: 600; font-variant-numeric: tabular-nums; }
.input-wrap select { flex: 0 0 auto; background: var(--panel-3); border-radius: 6px; font-size: 12.5px; }
.input-wrap input::-webkit-inner-spin-button { opacity: .3; }
.input-wrap .suffix { color: var(--muted); padding: 0 10px 0 2px; font-weight: 600; }
.mini { background: var(--panel-3); border: 0; height: 34px; min-width: 40px; padding: 0 9px; border-radius: 6px; font-weight: 700; font-size: 12.5px; color: var(--text); }
.mini:hover:not(:disabled) { background: #26302d; }
.select-wrap { position: relative; }
.select-wrap select { width: 100%; height: 44px; appearance: none; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 0 36px 0 12px; font-weight: 600; outline: 0; }
.select-wrap select:focus { border-color: var(--accent); }
.select-wrap::after { content: ''; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.readout { min-height: 44px; display: flex; align-items: center; padding: 0 12px; background: var(--panel-3); border: 1px solid var(--line-2); border-radius: var(--radius-sm); font-weight: 700; font-variant-numeric: tabular-nums; gap: 6px; }
.readout.clickable { cursor: pointer; justify-content: space-between; text-align: left; }
.readout.clickable:hover { border-color: var(--accent); }
.swap { color: var(--accent); }
.seg { display: flex; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 4px; gap: 4px; }
.seg button { flex: 1; height: 34px; border: 0; background: none; border-radius: 6px; font-weight: 700; color: var(--muted); }
.seg button.on { background: var(--panel-3); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset; }
.seg.small { display: inline-flex; }
.seg.small button { padding: 0 14px; flex: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hint { color: var(--dim); font-size: 12px; margin: 0; }

/* ================= panels, tables ================= */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel.flush { padding: 0; overflow: hidden; }
.panel-title { font: 700 15px var(--display); margin-bottom: 14px; }
.panel.flush .panel-title { padding: 16px 18px 0; }
.panel-title.small { font-size: 13px; margin: 18px 0 8px; color: var(--muted); }
.section { margin-top: 28px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.section-head h2 { font-size: 19px; }
.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: 28px; }
.page-head p { margin: 6px 0 0; }
.empty { padding: 34px; text-align: center; color: var(--muted); }
.empty.big { padding: 80px 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; font-size: 15px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); font-weight: 700; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.table td { padding: 11px 16px; border-bottom: 1px solid rgba(38, 61, 54, .6); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(255, 255, 255, .015); }
.table .num { text-align: right; }
.table .player { font-weight: 600; }
.tg { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; }
.rank { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--panel-3); font-weight: 800; font-size: 12px; }
.rank.r1 { background: #f5c542; color: #2a1d00; }
.rank.r2 { background: #c9ded8; color: #161c1a; }
.rank.r3 { background: #d98b4a; color: #2a1300; }

.kv { display: grid; grid-template-columns: 1fr; gap: 3px; margin: 0 0 16px; }
.kv dt { color: var(--muted); font-size: 12px; font-weight: 600; margin-top: 8px; }
.kv dd { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }

/* ================= home ================= */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; border-radius: 22px; padding: 48px; border: 1px solid var(--line-2);
  background: radial-gradient(700px 320px at 0% 0%, rgba(2, 243, 184, .13), transparent 60%), radial-gradient(600px 320px at 100% 100%, rgba(15, 129, 98, .12), transparent 60%), linear-gradient(180deg, #0b0e0d, #050706); }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 36px 36px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); pointer-events: none; }
.hero > * { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; font-size: 13px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); padding: 6px 14px; border-radius: 99px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--sol-green); box-shadow: 0 0 0 0 rgba(2, 243, 184, .7); animation: pulseDot 1.8s infinite; }
@keyframes pulseDot { 70% { box-shadow: 0 0 0 9px rgba(2, 243, 184, 0); } 100% { box-shadow: 0 0 0 0 rgba(2, 243, 184, 0); } }
.hero h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; margin: 18px 0 14px; }
.hero h1 .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); max-width: 520px; font-size: 15px; margin: 0 0 24px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-art { position: relative; min-height: 220px; }
.ha-card { position: absolute; border-radius: 22px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
.ha-1 { width: 130px; height: 130px; left: 8%; top: 18%; transform: rotate(-10deg); }
.ha-1 svg { width: 70px; }
.ha-2 { width: 180px; height: 104px; right: 4%; top: 2%; animation-delay: -2s; background: linear-gradient(135deg, #151a18, #0a0d0c); display: flex; flex-direction: column; border-color: rgba(2, 243, 184, .25); }
.ha-sub { color: var(--sol-green); font-weight: 700; font-size: 13px; }
.ha-token { position: absolute; left: 44%; top: 44%; width: 74px; height: 74px; animation: float 5s ease-in-out infinite -1s; filter: drop-shadow(0 10px 30px rgba(2, 243, 184, .6)); }
.ha-token .coin-dot { width: 100%; height: 100%; }
.ha-mult { font: 800 34px var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ha-3 { width: 110px; height: 110px; right: 18%; bottom: 0; animation-delay: -4s; color: var(--accent); }
.ha-dice { width: 64px; height: 64px; display: block; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 16px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.trust-strip > div { background: var(--panel); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.trust-strip b { font: 800 20px var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
.trust-strip span { color: var(--muted); font-size: 12.5px; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.game-card { position: relative; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: transform .18s, border-color .18s, box-shadow .18s; }
.game-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--gc) 55%, transparent); box-shadow: 0 16px 34px -14px color-mix(in srgb, var(--gc) 50%, transparent); }
.gc-art { aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--gc);
  background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--gc) 22%, transparent), transparent 70%), linear-gradient(160deg, color-mix(in srgb, var(--gc) 6%, #111413), #090b0a); }
.gc-art svg { width: 44%; height: auto; filter: drop-shadow(0 8px 18px color-mix(in srgb, var(--gc) 45%, transparent)); transition: transform .25s; }
.game-card:hover .gc-art svg { transform: scale(1.08) rotate(-3deg); }
.gc-meta { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.gc-meta b { font: 700 15px var(--display); }
.gc-meta span { color: var(--muted); font-size: 12.5px; }
.game-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .2s; pointer-events: none; }
.game-card:hover::after { opacity: 1; }
.gc-edge { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 700; background: rgba(0, 0, 0, .45); padding: 3px 8px; border-radius: 99px; color: #dfeeea; backdrop-filter: blur(4px); }

/* ================= game shell ================= */
.game-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); background: var(--panel); border: 1px solid var(--line); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .8); border-radius: 18px; overflow: hidden; min-height: 580px; }
.controls { border: 0; border-right: 1px solid var(--line); border-radius: 0; background: var(--panel-2); display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.controls-body, .auto-only { display: flex; flex-direction: column; gap: 14px; }
.tabs { display: flex; background: var(--bg); border-radius: 99px; padding: 4px; gap: 4px; }
.tabs button { flex: 1; height: 34px; border-radius: 99px; border: 0; background: none; font-weight: 700; color: var(--muted); }
.tabs button.on { background: var(--panel-3); color: var(--text); box-shadow: inset 0 -2px 0 var(--mint); }
.stage { position: relative; background: radial-gradient(900px 400px at 50% 0%, rgba(255, 255, 255, .025), transparent 60%), var(--bg-2); padding: 24px; display: flex; flex-direction: column; min-width: 0; }
.game-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 4px 0; color: var(--muted); }
.game-tools { display: flex; align-items: center; gap: 10px; }
.speed-seg { display: inline-flex; align-items: center; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px 3px 3px 8px; color: var(--sol-green); }
.speed-seg svg { width: 14px; height: 14px; margin-right: 4px; }
.speed-seg button { border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 12.5px; height: 28px; padding: 0 10px; border-radius: 7px; }
.speed-seg button:hover { color: var(--text); }
.speed-seg button.on { background: var(--panel-3); color: var(--mint); box-shadow: inset 0 0 0 1px rgba(2, 243, 184, .3); }
.speed-seg button[data-spd="4"].on { background: var(--grad); color: #fff; box-shadow: 0 0 14px rgba(2, 243, 184, .5); }
.tool-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 13px; }
.tool-btn:hover { border-color: var(--line-2); }
.tool-btn.off { color: var(--muted); }
.tool-btn svg { width: 16px; height: 16px; }
.realtime-note { font-size: 12.5px; }
.game-title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); }
.game-dot { width: 9px; height: 9px; border-radius: 50%; }
.recent { display: flex; gap: 6px; justify-content: flex-end; min-height: 30px; flex-wrap: wrap; }
.recent.vertical { flex-direction: column; justify-content: flex-start; }
.chip { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 28px; padding: 0 10px; border-radius: 99px; background: var(--panel-3); font-weight: 700; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; animation: chipIn .25s ease; }
.chip.win { background: rgba(2, 243, 184, .14); color: var(--win); }
.chip.bad { background: rgba(255, 77, 109, .13); color: var(--lose); }
.chip.num { min-width: 32px; padding: 0; width: 32px; color: #fff; }
.chip.num.red { background: #e8394d; } .chip.num.black { background: #222c29; } .chip.num.green { background: #17a864; }
@keyframes chipIn { from { transform: scale(.6); opacity: 0; } }
.win-banner { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(15, 24, 21, .94); border: 2px solid var(--win); border-radius: 16px; padding: 18px 34px; text-align: center; display: flex; flex-direction: column; box-shadow: 0 0 60px rgba(2, 243, 184, .3); animation: pop calc(.3s / var(--spd)) cubic-bezier(.3, 1.6, .5, 1); z-index: 5; pointer-events: none; }
.win-banner b { font: 800 34px var(--display); color: var(--win); }
.win-banner span { font-weight: 700; color: var(--text); }
@keyframes pop { from { transform: translate(-50%, -50%) scale(.6); opacity: 0; } }

/* ================= dice ================= */
.dice-stage { justify-content: space-between; gap: 30px; }
.dice-board { margin: auto 0; padding: 30px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.dice-scale { display: flex; justify-content: space-between; color: var(--muted); font-weight: 700; font-size: 12.5px; padding: 0 2px 16px; }
.dice-track { position: relative; height: 12px; }
.dice-fill { position: absolute; inset: 0; border-radius: 99px; background: linear-gradient(90deg, var(--lose) 0 var(--t), var(--win) var(--t) 100%); }
.dice-fill.under { background: linear-gradient(90deg, var(--win) 0 var(--t), var(--lose) var(--t) 100%); }
.dice-track input[type=range] { position: absolute; inset: -14px 0; width: 100%; margin: 0; appearance: none; background: none; z-index: 2; }
.dice-track input[type=range]::-webkit-slider-thumb { appearance: none; width: 34px; height: 34px; border-radius: 9px; background: #eef7f4 linear-gradient(90deg, transparent 13px, #9ab6ae 13px 15px, transparent 15px 19px, #9ab6ae 19px 21px, transparent 21px); box-shadow: 0 4px 14px rgba(0, 0, 0, .45); cursor: grab; }
.dice-track input[type=range]::-moz-range-thumb { width: 34px; height: 34px; border-radius: 9px; border: 0; background: #eef7f4; cursor: grab; }
.dice-marker { position: absolute; bottom: 30px; transform: translateX(-50%); transition: left calc(.45s / var(--spd)) cubic-bezier(.3, 1.3, .5, 1); z-index: 3; pointer-events: none; }
.dice-marker span { display: block; background: var(--panel-3); color: var(--text); font: 800 18px var(--display); padding: 8px 14px; border-radius: 10px; position: relative; font-variant-numeric: tabular-nums; }
.dice-marker span::after { content: ''; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%) rotate(45deg); width: 12px; height: 12px; background: inherit; }
.dice-marker.win span { background: var(--win); color: var(--accent-ink); }
.dice-marker.lose span { background: var(--lose); color: #fff; }
.dice-marker.pop span { animation: markerPop calc(.35s / var(--spd)) ease; }
@keyframes markerPop { 50% { transform: scale(1.12); } }
.dice-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }

/* ================= limbo ================= */
.limbo-stage { align-items: center; }
.limbo-number { margin: auto 0 0; font: 800 clamp(56px, 10vw, 120px) var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.03em; transition: color .2s; }
.limbo-number.win { color: var(--win); text-shadow: 0 0 40px rgba(2, 243, 184, .35); }
.limbo-number.lose { color: var(--lose); }
.limbo-target { margin: 8px 0 auto; color: var(--muted); font-weight: 600; background: var(--panel); border: 1px solid var(--line); padding: 8px 16px; border-radius: 99px; }
.limbo-target b { color: var(--text); }
.limbo-stage .recent { align-self: stretch; }

/* ================= coinflip ================= */
.coin-stage { align-items: center; }
.coin-stage .recent { align-self: stretch; }
.coin-scene { margin: auto 0 0; perspective: 900px; }
.coin { width: 200px; height: 200px; position: relative; transform-style: preserve-3d; transition: transform calc(.9s / var(--spd)) cubic-bezier(.2, .7, .3, 1); }
.coin-face { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; backface-visibility: hidden; font: 800 72px var(--display);
  background: radial-gradient(circle at 35% 30%, #fff3b0, #f5c542 45%, #b77f08); color: #6b4800; box-shadow: inset 0 0 0 10px rgba(255, 255, 255, .18), inset 0 0 0 14px rgba(107, 72, 0, .25), 0 20px 50px rgba(245, 197, 66, .25); }
.coin-face.tails { transform: rotateY(180deg); background: radial-gradient(circle at 35% 30%, #e9f5f2, #aac5bd 45%, #6b877f); color: #222c29; box-shadow: inset 0 0 0 10px rgba(255, 255, 255, .2), inset 0 0 0 14px rgba(0, 0, 0, .2), 0 20px 50px rgba(170, 197, 189, .2); }
.coin-caption { margin: 26px 0 auto; color: var(--muted); font-weight: 600; min-height: 24px; }

/* ================= plinko ================= */
.plinko-stage { justify-content: center; }
.plinko-board { width: 100%; max-width: 760px; margin: 0 auto; }
.plinko-board canvas { width: 100%; display: block; }
.plinko-buckets { display: flex; gap: 3px; margin-top: 4px; }
.pb { flex: 1; text-align: center; padding: 8px 0; border-radius: 6px; font-weight: 800; color: #00160f; background: var(--c); box-shadow: 0 3px 0 color-mix(in srgb, var(--c) 60%, #000); transition: transform .15s; white-space: nowrap; overflow: hidden; }
.pb.hit { animation: bucket calc(.35s / var(--spd)) ease; }
@keyframes bucket { 40% { transform: translateY(6px); filter: brightness(1.3); } }

/* ================= keno ================= */
.keno-stage { justify-content: center; gap: 18px; }
.keno-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; max-width: 680px; width: 100%; margin: 0 auto; }
.kt { aspect-ratio: 1; border-radius: 10px; border: 0; background: var(--panel-3); font: 800 17px var(--display); color: var(--text); box-shadow: 0 4px 0 #101514; transition: transform .1s, background .15s; }
.kt:hover { background: #27312e; }
.kt:active { transform: translateY(2px); }
.kt.picked { background: var(--accent-2); color: #fff; box-shadow: 0 4px 0 #1fb087, 0 0 18px rgba(2, 243, 184, .4); }
.kt.drawn { background: #0e1211; color: var(--lose); box-shadow: inset 0 0 0 2px #1d2523; animation: chipIn calc(.2s / var(--spd)); }
.kt.drawn.hit { background: var(--win); color: var(--accent-ink); box-shadow: 0 4px 0 #32403a, 0 0 24px rgba(2, 243, 184, .4); }
.keno-pays { max-width: 680px; width: 100%; margin: 0 auto; }
.kp-row { display: flex; gap: 4px; }
.kp { flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px 4px; text-align: center; display: flex; flex-direction: column; min-width: 0; }
.kp b { font-size: 12px; white-space: nowrap; }
.kp span { font-size: 11px; color: var(--muted); }
.kp.on { border-color: var(--win); background: rgba(2, 243, 184, .1); }

/* ================= roulette ================= */
.roulette-stage { gap: 24px; }
.roulette-top { display: flex; justify-content: center; gap: 24px; position: relative; }
.roulette-top .recent { position: absolute; right: 0; top: 0; }
.rw-wrap { position: relative; width: 280px; height: 280px; }
.rw { width: 100%; height: 100%; border-radius: 50%; transition: transform calc(3.2s / var(--spd)) cubic-bezier(.15, .8, .25, 1); box-shadow: 0 0 0 8px #181f1d, 0 0 0 11px #0f8162, 0 0 30px rgba(2, 243, 184, .18), 0 20px 50px rgba(0, 0, 0, .5); }
.rw svg, .ww svg { width: 100%; height: 100%; display: block; }
.rw-pointer { position: absolute; left: 50%; top: -12px; transform: translateX(-50%); width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 18px solid #02f3b8; z-index: 2; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); }
.rw-center { position: absolute; inset: 31%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #222c29, #0e1211); display: grid; place-items: center; font: 800 38px var(--display); box-shadow: inset 0 0 0 3px #0f8162, 0 0 24px rgba(2, 243, 184, .4); }
.rw-center.red { color: #ff4d61; } .rw-center.green { color: #02f3b8; } .rw-center.black { color: #e2efeb; }
.rtable { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 4px; max-width: 820px; width: 100%; margin: 0 auto; user-select: none; }
.rt-zero { grid-row: 1; display: grid; }
.rt-nums { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)) 46px; gap: 4px; }
.rt-dozens { grid-column: 2; display: grid; grid-template-columns: repeat(3, 1fr) 46px; gap: 4px; }
.rt-dozens::after { content: ''; }
.rt-outside { grid-column: 2; display: grid; grid-template-columns: repeat(6, 1fr) 46px; gap: 4px; }
.rt-outside::after { content: ''; }
.rc { position: relative; min-height: 42px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 6px; background: #181f1d; color: #fff; font-weight: 800; font-size: 13.5px; display: grid; place-items: center; transition: filter .12s, box-shadow .12s; }
.rc:hover { filter: brightness(1.25); }
.rc.red { background: #c62f42; } .rc.black { background: #1c2422; } .rc.green { background: #17a864; height: 100%; }
.rc.side { background: #232d2a; font-size: 12px; }
.rc.winner { box-shadow: 0 0 0 2px #02f3b8, 0 0 18px rgba(2, 243, 184, .55); z-index: 1; }
.dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; }
.dot.red { background: #e8394d; } .dot.black { background: #0c0f0e; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.rchip { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); min-width: 26px; height: 26px; padding: 0 4px; border-radius: 99px; background: var(--grad); color: #fff; font: 800 10.5px/26px var(--font); text-align: center; font-style: normal; box-shadow: 0 0 0 3px rgba(255, 255, 255, .55) inset, 0 3px 8px rgba(0, 0, 0, .5); pointer-events: none; }

/* ================= wheel ================= */
.wheel-stage { align-items: center; justify-content: center; gap: 26px; }
.ww-wrap { position: relative; width: min(360px, 80vw); aspect-ratio: 1; }
.ww { width: 100%; height: 100%; border-radius: 50%; transition: transform calc(2.6s / var(--spd)) cubic-bezier(.15, .8, .25, 1); filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .5)); }
.ww-pointer { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 22px solid #fff; z-index: 2; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); }
.ww-center { position: absolute; inset: 24%; display: grid; place-items: center; font: 800 34px var(--display); font-variant-numeric: tabular-nums; }
.ww-legend { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.wl { background: var(--panel); border: 1px solid var(--line); border-bottom: 3px solid var(--c); border-radius: 10px; padding: 6px 14px; text-align: center; display: flex; flex-direction: column; min-width: 78px; }
.wl b { font-size: 14px; } .wl span { font-size: 11.5px; color: var(--muted); }
.wl.on { background: color-mix(in srgb, var(--c) 18%, var(--panel)); }

/* ================= slots ================= */
.slots-stage { align-items: center; justify-content: center; gap: 22px; }
.slot-machine { background: linear-gradient(180deg, #1e2724, #101413); border-radius: 22px; padding: 18px; box-shadow: inset 0 0 0 2px rgba(2, 243, 184, .4), 0 0 40px rgba(2, 243, 184, .08), 0 20px 50px rgba(0, 0, 0, .5); }
.reels { position: relative; display: flex; gap: 10px; background: #00160f; padding: 10px; border-radius: 14px; }
.reel { width: 110px; height: 300px; overflow: hidden; border-radius: 10px; background: linear-gradient(180deg, #d9e6e2, #fff 30%, #fff 70%, #d9e6e2); position: relative; }
.reel::before, .reel::after { content: ''; position: absolute; left: 0; right: 0; height: 40px; z-index: 1; pointer-events: none; }
.reel::before { top: 0; background: linear-gradient(#0b0d12aa, transparent); }
.reel::after { bottom: 0; background: linear-gradient(transparent, #0b0d12aa); }
.strip { will-change: transform; }
.sym { height: 100px; display: grid; place-items: center; font-size: 54px; line-height: 1; }
.sym-bar { font: 900 22px var(--display); color: #fff; background: #161c1a; padding: 6px 10px; border-radius: 6px; letter-spacing: .06em; box-shadow: inset 0 0 0 2px #0f8162; }
.sym-seven { font: 900 66px var(--display); color: #e8394d; text-shadow: 2px 3px 0 #7a1020; }
.payline { position: absolute; left: 4px; right: 4px; top: 50%; height: 3px; background: rgba(232, 57, 77, .75); transform: translateY(-50%); z-index: 2; border-radius: 2px; }
.reels.won .payline { background: var(--win); box-shadow: 0 0 16px var(--win); animation: blink calc(.5s / var(--spd)) 4; }
@keyframes blink { 50% { opacity: .2; } }
.slot-msg { text-align: center; margin-top: 12px; color: #b8ffeb; font-weight: 600; min-height: 22px; }
.paytable { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; width: 100%; max-width: 640px; }
.pt-row { display: flex; align-items: center; justify-content: space-between; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 4px 12px; }
.pt-row > span { display: flex; align-items: center; gap: 2px; }
.pt-row .sym { height: 32px; width: 30px; font-size: 22px; }
.pt-row .sym-seven { font-size: 26px; text-shadow: 1px 1px 0 #7a1020; }
.pt-row .sym-bar { font-size: 9px; padding: 2px 4px; }
.pt-mixed, .pt-any { color: var(--muted); font-size: 12px; }
.pt-any { margin-left: 6px; }

/* ================= mines & towers ================= */
.mines-stage, .towers-stage { align-items: center; justify-content: center; }
.mines-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; width: min(520px, 100%); }
.mt, .tt { aspect-ratio: 1; border: 0; border-radius: 12px; background: var(--panel-3); box-shadow: 0 5px 0 #101514; transition: transform .12s, background .15s; display: grid; place-items: center; padding: 14%; }
.mt:hover:not(.open), .tt:hover:not(.open) { background: #283330; transform: translateY(-2px); }
.mt.loading { animation: pulse .6s infinite; }
@keyframes pulse { 50% { background: #2e3a37; } }
.mt.open, .tt.open { background: #0c100f; box-shadow: inset 0 0 0 2px var(--line); animation: flip calc(.3s / var(--spd)) ease; cursor: default; }
.mt.gem-tile:not(.dim), .tt.safe:not(.dim) { box-shadow: inset 0 0 0 2px rgba(2, 243, 184, .5), 0 0 24px rgba(2, 243, 184, .12); }
.mt.boom, .tt.boom { background: rgba(255, 77, 109, .15); box-shadow: inset 0 0 0 2px var(--lose); }
.mt.dim, .tt.dim { opacity: .4; }
.mt svg, .tt svg { width: 100%; height: 100%; }
@keyframes flip { from { transform: rotateY(90deg); } }
.tower { display: flex; flex-direction: column; gap: 8px; width: min(480px, 100%); }
.trow { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 8px; transition: opacity .2s; }
.tower.live .trow { opacity: .55; }
.tower.live .trow.current { opacity: 1; }
.trow.current .tt:not(.open) { background: #25302d; box-shadow: 0 4px 0 #141a18, inset 0 0 0 1px rgba(2, 243, 184, .55); }
.tt { aspect-ratio: auto; height: 46px; padding: 6px; font-weight: 700; font-size: 13px; color: var(--muted); }
.trow.current .tt span { color: var(--text); }
.tt svg { width: 30px; height: 30px; }
.towers-stage .trow:not(.current) .tt:not(.open) { cursor: default; }

/* ================= cards ================= */
.pcard { width: 92px; height: 130px; border-radius: 10px; background: #fff; color: #161c1a; position: relative; box-shadow: 0 8px 22px rgba(0, 0, 0, .45); flex: none; font-family: var(--display); }
.pcard.red { color: #d42a3e; }
.pc-rank { position: absolute; top: 7px; left: 9px; font-weight: 800; font-size: 22px; line-height: 1; }
.pc-suit { position: absolute; top: 31px; left: 10px; font-size: 16px; line-height: 1; }
.pc-big { position: absolute; right: 10px; bottom: 6px; font-size: 44px; line-height: 1; }
.pcard.back { background: linear-gradient(135deg, #0f8162, #02f3b8); }
.pcard-pattern { position: absolute; inset: 6px; border-radius: 6px; border: 2px solid rgba(255, 255, 255, .5); background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .14) 0 6px, transparent 6px 12px); }
.pcard.small { width: 46px; height: 64px; border-radius: 6px; }
.pcard.small .pc-rank { font-size: 14px; top: 4px; left: 5px; }
.pcard.small .pc-suit { top: 20px; left: 6px; font-size: 11px; }
.pcard.small .pc-big { font-size: 20px; right: 5px; bottom: 3px; }
.pcard.deal { animation: deal calc(.35s / var(--spd)) ease both; }
@keyframes deal { from { transform: translate(40px, -60px) rotate(8deg); opacity: 0; } }

/* blackjack */
.bj-stage { background: radial-gradient(ellipse at 50% 40%, #0f2a22 0%, #0a1411 55%, #050807 100%); align-items: center; justify-content: space-between; gap: 18px; min-height: 580px; }
.bj-side { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.bj-hand { display: flex; min-height: 130px; }
.bj-hand .pcard + .pcard { margin-left: -46px; }
.bj-label { display: flex; align-items: center; gap: 8px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.bj-val:empty { display: none; }
.bj-val { background: rgba(0, 0, 0, .45); border-radius: 99px; padding: 2px 10px; font-variant-numeric: tabular-nums; }
.bj-felt-text { color: rgba(255, 255, 255, .25); font: 700 12px var(--display); letter-spacing: .2em; text-align: center; border-top: 1px solid rgba(255, 255, 255, .12); border-bottom: 1px solid rgba(255, 255, 255, .12); padding: 8px 20px; }
.bj-hands { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.bj-side.player.turn .bj-hand { filter: drop-shadow(0 0 14px rgba(2, 243, 184, .6)); }
.bj-result { text-transform: uppercase; font-size: 11px; letter-spacing: .08em; padding: 3px 9px; border-radius: 99px; background: rgba(0, 0, 0, .45); }
.r-win .bj-result, .r-blackjack .bj-result { background: var(--win); color: var(--accent-ink); }
.r-lose .bj-result { background: var(--lose); color: #fff; }
.r-push .bj-result { background: #c9ded8; color: #161c1a; }
.bj-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* hi-lo */
.hilo-stage { align-items: center; justify-content: center; gap: 18px; }
.hilo-main { display: flex; align-items: center; gap: 22px; }
.hilo-card .pcard { width: 130px; height: 184px; border-radius: 14px; }
.hilo-card .pc-rank { font-size: 32px; top: 10px; left: 12px; }
.hilo-card .pc-suit { font-size: 22px; top: 46px; left: 13px; }
.hilo-card .pc-big { font-size: 70px; right: 14px; bottom: 8px; }
.hilo-card.lost .pcard { box-shadow: 0 0 0 4px var(--lose), 0 0 40px rgba(255, 77, 109, .4); }
.hilo-btn { width: 150px; padding: 16px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel-2); display: flex; flex-direction: column; gap: 4px; align-items: center; transition: background .15s, transform .1s; }
.hilo-btn:hover:not(:disabled) { background: var(--panel-3); transform: translateY(-2px); }
.hilo-btn:disabled { opacity: .45; }
.hilo-btn b { font-size: 14px; }
.hilo-btn span { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.hilo-btn[data-dir=higher] b::before { content: '▲ '; color: var(--win); }
.hilo-btn[data-dir=lower] b::before { content: '▼ '; color: var(--lose); }
.hilo-mult { color: var(--muted); font-weight: 600; }
.hilo-mult b { color: var(--text); font-size: 18px; }
.hilo-history { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 100%; }
.hh { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hh-tag { font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 99px; background: var(--panel-3); color: var(--muted); }
.hh.win .hh-tag { background: rgba(2, 243, 184, .15); color: var(--win); }
.hh.lose .hh-tag { background: rgba(255, 77, 109, .15); color: var(--lose); }

/* crash */
.crash-stage { gap: 12px; }
.crash-graph { position: relative; flex: 1; min-height: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.crash-graph canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.crash-readout { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; }
.crash-mult { font: 800 clamp(48px, 8vw, 92px) var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.crash-mult.running { color: var(--text); }
.crash-mult.cashed { color: var(--win); }
.crash-mult.crashed { color: var(--lose); }
.crash-sub { color: var(--muted); font-weight: 600; min-height: 22px; }

/* ================= fairness / profile / leaderboard ================= */
.fair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.steps { margin: 0; padding-left: 20px; color: var(--muted); display: flex; flex-direction: column; gap: 10px; }
.steps b { color: var(--text); }
.prev { border-top: 1px solid var(--line); margin-top: 18px; }
.verify-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.verify-out { margin-top: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.vo-result { font-size: 15px; margin-bottom: 8px; line-height: 1.8; }
.verify-info p { color: var(--muted); margin-top: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.stat span { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.stat b { font: 700 20px var(--display); font-variant-numeric: tabular-nums; }
.lb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lb-wide { grid-column: 1 / -1; }

/* ================= chat ================= */
.chat { display: none; flex-direction: column; background: var(--bg-2); border-left: 1px solid var(--line); height: 100vh; min-width: 0; }
body.chat-open .chat { display: flex; }
.chat-head { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--line); flex: none; }
.chat-list { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.msg { background: var(--panel); border-radius: 10px; padding: 8px 11px; }
.msg-head { display: flex; justify-content: space-between; font-size: 12px; }
.msg-head b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.msg-text { word-wrap: break-word; color: #d6e6e1; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; height: 40px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; outline: 0; }
.chat-form input:focus { border-color: var(--accent); }
.chat-form .send { color: var(--accent); }

/* ================= modal & toasts ================= */
.modal-backdrop { position: fixed; inset: 0; background: rgba(4, 10, 8, .7); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 100; padding: 16px; animation: fade .15s; }
.modal { width: min(440px, 100%); background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow); animation: rise .2s ease; max-height: calc(100vh - 32px); overflow-y: auto; }
.modal-wide { width: min(720px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 0; }
.modal-head h3 { font-size: 18px; }
.modal-body { padding: 18px 20px 20px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.addr-row { gap: 8px !important; border-bottom: 1px solid var(--line) !important; border-radius: 8px 8px 0 0 !important; margin-bottom: 4px; }
.addr-row .muted { margin-left: auto; font-size: 11px; }
.form-error { color: var(--lose); font-weight: 600; min-height: 20px; font-size: 13px; }
.wallet { display: flex; flex-direction: column; gap: 14px; }
.wallet-balance { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.wallet-balance b { display: flex; align-items: center; gap: 10px; font: 800 28px var(--display); font-variant-numeric: tabular-nums; }
.wallet-cards { display: flex; flex-direction: column; gap: 10px; }
.wcard { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.wcard > div:nth-child(2) { display: flex; flex-direction: column; font-size: 13px; }
.wcard-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--grad-soft); color: var(--sol-green); display: grid; place-items: center; }

#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 200; align-items: center; pointer-events: none; }
.toast { background: var(--panel-3); border: 1px solid var(--line-2); padding: 11px 18px; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow); animation: rise .2s; transition: opacity .3s, transform .3s; }
.toast-error { border-color: rgba(255, 77, 109, .6); background: #2b1820; }
.toast-win { border-color: rgba(2, 243, 184, .6); background: #121715; color: #c9ffe6; }
.toast.out { opacity: 0; transform: translateY(8px); }

/* ================= responsive ================= */
@media (max-width: 1180px) {
  body.chat-open .app { grid-template-columns: minmax(0, 1fr); }
  body.chat-open .chat { position: fixed; right: 0; top: 0; bottom: 0; width: min(340px, 100%); z-index: 60; box-shadow: var(--shadow); }
  .game-layout { grid-template-columns: 290px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .app, body.chat-open .app { grid-template-columns: minmax(0, 1fr); }
  .topbar { padding: 0 16px; }
  #view { padding: 16px; }
  .game-layout { grid-template-columns: minmax(0, 1fr); }
  .game-layout .controls { order: 2; border-right: 0; border-top: 1px solid var(--line); }
  .stage { min-height: 420px; padding: 16px; }
  .hero { grid-template-columns: 1fr; padding: 28px 22px; }
  .hero-art { display: none; }
  .fair-grid, .lb-grid { grid-template-columns: 1fr; }
  .user-btn .uname, .balance-pill .btn span { display: none; }
  .hide-sm { display: none; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .top-right [data-connect] span { display: none; }
  .dice-inputs { grid-template-columns: 1fr 1fr; }
  .dice-inputs .field:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
  .hilo-main { gap: 10px; }
  .hilo-btn { width: 108px; }
  .reel { width: 84px; height: 240px; }
  .sym { height: 80px; font-size: 42px; }
  .rw-wrap { width: 220px; height: 220px; }
  .roulette-top .recent { display: none; }
  .rtable, .rt-nums, .rt-dozens, .rt-outside { gap: 2px; }
  .rtable { grid-template-columns: 26px minmax(0, 1fr); }
  .rt-nums { grid-template-columns: repeat(12, minmax(0, 1fr)) 26px; }
  .rt-dozens { grid-template-columns: repeat(3, minmax(0, 1fr)) 26px; }
  .rt-outside { grid-template-columns: repeat(6, minmax(0, 1fr)) 26px; }
  .rc { min-height: 32px; font-size: 10px; border-radius: 4px; }
  .rc.side { font-size: 9px; }
  .rchip { min-width: 20px; height: 20px; line-height: 20px; font-size: 9px; }
  .roulette-stage { padding: 12px 8px; }
  .pcard { width: 70px; height: 100px; }
  .pc-big { font-size: 32px; }
  .bj-hand .pcard + .pcard { margin-left: -36px; }
  .keno-grid { gap: 5px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gc-meta span { display: none; }
  .bj-stage { min-height: 460px; }
  .bj-felt-text { font-size: 10px; letter-spacing: .12em; }
  .kt { font-size: 13px; border-radius: 7px; }
  .kp-row { flex-wrap: wrap; }
  .kp { flex: 1 0 18%; }
}

@media (max-width: 480px) { .hide-xs { display: none; } }

/* ================= cashier ================= */
.wallet-balance .unit { font: 600 14px var(--font); color: var(--muted); }
.cashier-tabs button { height: 38px; }
.cashier [data-pane] { display: flex; flex-direction: column; gap: 12px; }
.cashier [data-pane][hidden] { display: none !important; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips .mini { flex: 1; }
.dep-status { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; font-size: 13px; color: var(--muted); }
.dep-status.ok { border-color: rgba(2, 243, 184, .45); color: var(--text); box-shadow: var(--glow); }
.dep-status.err { border-color: rgba(255, 77, 109, .5); color: var(--lose); }
.manual { border: 1px dashed var(--line-2); border-radius: 10px; padding: 10px 14px; }
.manual summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: 13px; }
.manual[open] summary { margin-bottom: 8px; }
.addr-box { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 9px; padding: 8px 8px 8px 12px; margin-top: 8px; }
.addr-box .mono { flex: 1; color: var(--mint); }
.tx-list { display: flex; flex-direction: column; gap: 6px; }
.tx-list:empty { display: none; }
.tx-list .panel-title.small { margin: 6px 0 2px; }
.tx-row { display: flex; align-items: center; gap: 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.tx-row > .muted { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.tx-row:hover { border-color: var(--line-2); }
.chip.pending, .chip.sending, .chip.sent { background: rgba(255, 181, 71, .14); color: var(--warn); }
.chip.completed { background: rgba(2, 243, 184, .14); color: var(--mint); }
.chip.rejected, .chip.cancelled { background: rgba(255, 77, 109, .13); color: var(--lose); }
.chip.pending, .chip.sending, .chip.sent, .chip.completed, .chip.rejected, .chip.cancelled { height: 24px; font-size: 11.5px; white-space: nowrap; }
.rakeback-row { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.rakeback-row > div { flex: 1; display: flex; flex-direction: column; font-size: 13px; }
.cashier-note p { margin: 0 0 12px; }
.small-text { font-size: 11.5px; margin-top: 4px; max-width: 260px; }
.admin .stat .mono { font-size: 11.5px; }
.admin td.actions { white-space: nowrap; }
.admin td.actions .btn + .btn { margin-left: 6px; }
.deposit-box { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: center; background: var(--bg); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px; }
.deposit-box .qr { width: 132px; height: 132px; border-radius: 10px; background: #fff; overflow: hidden; }
.deposit-box .qr svg { width: 100%; height: 100%; display: block; }
.deposit-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: 12.5px; }
.deposit-info .addr-box { margin: 0; padding: 10px 12px; }
.deposit-info .addr-box .mono { word-break: break-all; font-size: 12px; line-height: 1.45; }
.dep-rules { margin: 0; padding: 0 0 0 18px; color: var(--muted); font-size: 12.5px; display: flex; flex-direction: column; gap: 4px; }
.dep-rules b { color: var(--text); }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); margin-right: 6px; vertical-align: 1px; animation: pulse-dot 1.6s ease-in-out infinite; }
@keyframes pulse-dot { 50% { opacity: .25; } }
@media (max-width: 480px) { .deposit-box { grid-template-columns: 1fr; justify-items: center; } .deposit-info { width: 100%; } }

/* ================= lobby v2: art cards + banner hero ================= */
.hero { display: block; min-height: 340px; padding: 52px 48px; border: 1px solid var(--line);
  background: linear-gradient(90deg, #030504 0%, #030504 34%, rgba(3, 5, 4, .75) 52%, rgba(3, 5, 4, 0) 72%), url('/art/hero.jpg') right center / cover no-repeat, #030504; }
.hero::before { display: none; }
.hero-text { max-width: 540px; }
.hero h1 { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -.02em; }
.hero p { font-size: 15.5px; max-width: 470px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 22px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points svg { width: 15px; height: 15px; color: var(--mint); }

.promo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.promo { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(135deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); text-align: left; color: var(--text); transition: border-color .15s, transform .15s; }
.promo:hover { border-color: rgba(2, 243, 184, .35); transform: translateY(-2px); }
.promo-icon { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--mint); background: rgba(2, 243, 184, .08); box-shadow: inset 0 0 0 1px rgba(2, 243, 184, .18); }
.promo b { display: block; font: 700 15px var(--display); }
.promo small { color: var(--muted); font-size: 12.5px; }

.game-grid { grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 14px; }
.game-card { aspect-ratio: 480 / 637; background: #000; border: 0; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.game-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease, filter .25s; }
.game-card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(2, 243, 184, .55), 0 18px 40px -16px rgba(2, 243, 184, .45); }
.game-card:hover img { transform: scale(1.05); filter: brightness(1.08); }
.game-card::after { display: none; }
.game-card .gc-edge { top: 8px; right: 8px; z-index: 1; }
.gc-play { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(.85); opacity: 0; padding: 9px 20px; border-radius: 99px; background: var(--grad); color: var(--ink); font-weight: 800; font-size: 13px; box-shadow: 0 8px 24px -6px rgba(2, 243, 184, .6); transition: opacity .2s, transform .2s; pointer-events: none; }
.game-card:hover .gc-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }

@media (max-width: 900px) {
  .hero { padding: 30px 22px; min-height: 0; background: linear-gradient(180deg, rgba(3, 5, 4, .55), #030504 70%), url('/art/hero.jpg') 70% top / cover no-repeat, #030504; }
  .promo-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .game-card { border-radius: 12px; }
  .game-card .gc-edge { display: none; }
}

/* ================= top navigation ================= */
.logo { display: flex; align-items: center; flex: none; }
.topnav { display: flex; align-items: center; gap: 2px; min-width: 0; }
.tn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; border: 0; background: none; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .15s, color .15s; }
.tn svg { width: 16px; height: 16px; flex: none; }
.tn .chev { width: 14px; height: 14px; margin-left: -2px; transition: transform .15s; }
.tn:hover { color: var(--text); background: var(--panel); }
.tn.on { color: var(--text); background: var(--panel-2); box-shadow: inset 0 -2px 0 var(--mint); }
.tn.on svg { color: var(--mint); }
.tn-games { position: relative; }
.games-menu { display: none; position: absolute; top: calc(100% + 10px); left: -8px; z-index: 60; width: 560px; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 12px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .85); }
.tn-games::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px; } /* hover bridge */
.tn-games:hover .games-menu, .tn-games.open .games-menu { display: grid; }
.tn-games:hover .chev, .tn-games.open .chev { transform: rotate(180deg); }
.games-menu a { display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 10px; color: var(--muted); font-size: 12px; font-weight: 600; text-align: center; transition: background .15s, color .15s; }
.games-menu a img { width: 100%; aspect-ratio: 480 / 637; object-fit: cover; border-radius: 8px; display: block; transition: transform .2s; }
.games-menu a:hover { background: var(--panel-3); color: var(--text); }
.games-menu a:hover img { transform: translateY(-2px); }
.games-menu a.on { color: var(--mint); background: var(--panel-2); }
.icon-btn.menu-btn { display: none; }
.site-foot { max-width: 1360px; margin: 24px auto 0; padding: 22px 24px 28px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--dim); font-size: 12.5px; }

@media (max-width: 1280px) {
  .tn span { display: none; }
  .tn { padding: 0 11px; }
  .tn-games .tn span { display: inline; }
}
@media (max-width: 900px) {
  .topbar { gap: 10px; height: 60px; padding: 0 14px; }
  .icon-btn.menu-btn { display: inline-flex; }
  .topnav { display: none; position: fixed; left: 0; right: 0; top: 60px; max-height: calc(100vh - 60px); overflow-y: auto; z-index: 70; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px; background: var(--bg-2); border-bottom: 1px solid var(--line-2); box-shadow: 0 30px 60px rgba(0, 0, 0, .7); }
  body.nav-open .topnav { display: flex; }
  .topnav > * { flex: none; }
  .tn span, .tn-games .tn span { display: inline; }
  .tn { height: 44px; }
  .tn-games .tn { width: 100%; }
  .tn-games .chev { margin-left: auto; }
  .games-menu { position: static; width: auto; display: grid; grid-template-columns: repeat(4, 1fr); box-shadow: none; border: 0; background: none; padding: 4px 0 8px; }
  .tn-games::after { display: none; }
  .site-foot { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  #chat-btn { display: none; }
}
.paid-form .addr-box { margin-top: 0; } .paid-form .addr-box .mono { word-break: break-all; }
.approval-note { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(255, 181, 71, .07); border: 1px solid rgba(255, 181, 71, .3); font-size: 12.5px; }
.approval-note svg { flex: none; width: 20px; height: 20px; color: var(--warn); margin-top: 1px; }
.approval-note b { display: block; color: var(--warn); font-size: 13px; margin-bottom: 2px; }
.approval-note span { color: var(--muted); line-height: 1.45; }

/* ================= deposit bonus ================= */
.bonus-banner { position: relative; overflow: hidden; isolation: isolate; margin-top: 14px; padding: 26px 28px 18px; border-radius: 20px;
  background: radial-gradient(600px 220px at 15% 0%, rgba(2, 243, 184, .16), transparent 70%), radial-gradient(500px 240px at 100% 100%, rgba(15, 129, 98, .25), transparent 70%), linear-gradient(135deg, #07110d, #030504); }
.bonus-banner::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1; pointer-events: none;
  background: conic-gradient(from var(--bb-angle), #02f3b8, #0f8162 25%, transparent 40%, transparent 60%, #0f8162 75%, #02f3b8);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: bb-spin 6s linear infinite; }
@property --bb-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes bb-spin { to { --bb-angle: 360deg; } }
.bb-glow { position: absolute; width: 340px; height: 340px; right: -80px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(2, 243, 184, .22), transparent 65%); z-index: -1; animation: bb-breathe 4s ease-in-out infinite; }
@keyframes bb-breathe { 50% { transform: scale(1.15); opacity: .7; } }
.bb-sparkles { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.bb-sparkles i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #02f3b8; box-shadow: 0 0 8px #02f3b8; opacity: 0; animation: bb-twinkle 3.2s ease-in-out infinite; }
.bb-sparkles i:nth-child(1) { left: 8%; top: 20%; animation-delay: 0s; } .bb-sparkles i:nth-child(2) { left: 22%; top: 78%; animation-delay: .4s; }
.bb-sparkles i:nth-child(3) { left: 35%; top: 12%; animation-delay: .9s; } .bb-sparkles i:nth-child(4) { left: 48%; top: 64%; animation-delay: 1.3s; }
.bb-sparkles i:nth-child(5) { left: 61%; top: 18%; animation-delay: 1.7s; } .bb-sparkles i:nth-child(6) { left: 72%; top: 82%; animation-delay: 2.1s; }
.bb-sparkles i:nth-child(7) { left: 84%; top: 30%; animation-delay: 2.5s; } .bb-sparkles i:nth-child(8) { left: 93%; top: 66%; animation-delay: .2s; }
.bb-sparkles i:nth-child(9) { left: 15%; top: 50%; animation-delay: 1.1s; } .bb-sparkles i:nth-child(10) { left: 55%; top: 40%; animation-delay: 2.8s; }
.bb-sparkles i:nth-child(11) { left: 78%; top: 10%; animation-delay: 1.9s; } .bb-sparkles i:nth-child(12) { left: 4%; top: 88%; animation-delay: 2.3s; }
.bb-sparkles i:nth-child(13) { left: 66%; top: 55%; animation-delay: .7s; } .bb-sparkles i:nth-child(14) { left: 40%; top: 90%; animation-delay: 1.5s; }
@keyframes bb-twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1.3); } }
.bb-head { display: flex; gap: 18px; align-items: center; }
.bb-gift { font-size: 54px; line-height: 1; filter: drop-shadow(0 6px 18px rgba(2, 243, 184, .45)); animation: bb-bounce 2.2s ease-in-out infinite; }
@keyframes bb-bounce { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-8px) rotate(6deg); } }
.bb-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mint); }
.bb-title { font: 800 clamp(24px, 3.2vw, 38px)/1.1 var(--display); margin: 6px 0 6px; letter-spacing: -.02em; }
.bb-big { background: linear-gradient(100deg, #02f3b8, #b8ffee 50%, #02f3b8); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: bb-shine 3s linear infinite; font-size: 1.25em; }
@keyframes bb-shine { to { background-position: -200% 0; } }
.bb-sub { margin: 0; color: var(--muted); font-size: 14.5px; max-width: 560px; }
.bb-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 20px 0 16px; }
.bt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); text-align: center; }
.bt-pct { font: 800 30px/1 var(--display); color: var(--text); }
.bt-min { font-weight: 700; font-size: 13px; color: var(--text); margin-top: 6px; }
.bt-sol { font-size: 11.5px; color: var(--dim); }
.bt.best { background: linear-gradient(160deg, rgba(2, 243, 184, .18), rgba(15, 129, 98, .12)); border-color: rgba(2, 243, 184, .6); box-shadow: 0 0 30px -6px rgba(2, 243, 184, .45); transform: scale(1.04); }
.bt.best .bt-pct { color: var(--mint); text-shadow: 0 0 18px rgba(2, 243, 184, .55); font-size: 36px; }
.bt-ribbon { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: 99px; background: var(--mint); color: var(--ink); font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.bonus-cta { position: relative; overflow: hidden; min-width: 240px; font-size: 16px; }
.bonus-cta::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); animation: bb-sweep 2.8s ease-in-out infinite; }
@keyframes bb-sweep { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.bb-terms { margin: 14px 0 0; font-size: 11.5px; color: var(--dim); line-height: 1.5; }
.bb-auth { margin: 0 0 4px; padding: 18px 18px 14px; }
.bb-auth .bb-gift { font-size: 40px; }
.bb-auth .bb-title { font-size: 24px; }
.bb-auth .bb-sub { font-size: 13px; }
.bb-auth .bb-tiers { margin: 16px 0 6px; gap: 8px; }
.bb-auth .bt { padding: 12px 6px 10px; }
.bb-auth .bt-pct { font-size: 22px; } .bb-auth .bt.best .bt-pct { font-size: 26px; }
.bb-auth .bonus-cta { display: none; }
.bb-deposit { margin: 0; padding: 16px 16px 12px; border-radius: 16px; }
.bb-deposit .bb-gift { font-size: 36px; }
.bb-deposit .bb-title { font-size: 21px; }
.bb-deposit .bb-sub { font-size: 12.5px; }
.bb-deposit .bb-tiers { margin: 14px 0 4px; gap: 8px; grid-template-columns: repeat(3, 1fr); }
.bb-deposit .bt { padding: 12px 4px 9px; }
.bb-deposit .bt-pct { font-size: 20px; } .bb-deposit .bt.best .bt-pct { font-size: 24px; }
.bb-deposit .bt-min { font-size: 11.5px; }
.bb-deposit .bb-terms { margin-top: 10px; font-size: 11px; }

.bonus-calc { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line-2); }
.bonus-calc[hidden] { display: none; }
.bonus-calc > label { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.bc-out { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.bc-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); }
.bc-bonus { color: var(--mint); font-size: 14px; }
.bc-bonus em { font-style: normal; margin-left: 4px; padding: 1px 7px; border-radius: 99px; background: rgba(2, 243, 184, .15); font-size: 11.5px; }
.bc-total b { color: var(--text); }
.bc-next { padding: 8px 10px; border-radius: 9px; background: rgba(2, 243, 184, .07); border: 1px dashed rgba(2, 243, 184, .35); color: var(--text); }
.bc-next b { color: var(--mint); }

.wager-lock { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(2, 243, 184, .06); border: 1px solid rgba(2, 243, 184, .3); font-size: 12.5px; }
.wager-lock[hidden] { display: none; }
.wl-icon { font-size: 20px; line-height: 1; }
.wager-lock b { display: block; color: var(--text); font-size: 13px; margin-bottom: 2px; }
.wager-lock span { color: var(--muted); }
.modal-wide { width: min(560px, 100%); }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 200; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; animation: confetti-fall linear forwards; }
@keyframes confetti-fall { to { transform: translate(var(--dx), 110vh) rotate(var(--rot)); } }
.celebrate { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .78); backdrop-filter: blur(6px); animation: fade-in .25s ease; }
@keyframes fade-in { from { opacity: 0; } }
.celebrate-card { position: relative; overflow: hidden; isolation: isolate; width: min(420px, 100%); padding: 34px 26px 22px; border-radius: 24px; text-align: center; background: radial-gradient(400px 220px at 50% 0%, rgba(2, 243, 184, .25), transparent 70%), #07110d; border: 1px solid rgba(2, 243, 184, .5); box-shadow: 0 0 80px -10px rgba(2, 243, 184, .5); animation: pop-in .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop-in { from { transform: scale(.6); opacity: 0; } }
.celebrate-burst { position: absolute; left: 50%; top: 70px; width: 520px; height: 520px; margin: -260px 0 0 -260px; background: repeating-conic-gradient(rgba(2, 243, 184, .1) 0 10deg, transparent 10deg 20deg); border-radius: 50%; animation: burst-spin 12s linear infinite; z-index: -1; -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 65%); mask-image: radial-gradient(circle, #000 20%, transparent 65%); }
@keyframes burst-spin { to { transform: rotate(360deg); } }
.celebrate-gift { font-size: 64px; line-height: 1; animation: bb-bounce 1.6s ease-in-out infinite; }
.celebrate-kicker { margin-top: 10px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
.celebrate-amount { font: 800 46px/1.1 var(--display); margin: 6px 0 2px; background: linear-gradient(100deg, #02f3b8, #e9fff8, #02f3b8); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: bb-shine 2.5s linear infinite; }
.celebrate-amount small { font-size: 22px; }
.celebrate-usd { color: var(--muted); font-weight: 600; }
.celebrate-sum { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 18px 0; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); font-size: 13px; color: var(--muted); }
.celebrate-sum b { color: var(--text); }
.celebrate .hint { margin-top: 10px; }

@media (max-width: 600px) {
  .bonus-banner { padding: 20px 16px 14px; }
  .bb-head { gap: 12px; }
  .bb-gift { font-size: 40px; }
  .bb-tiers { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .bt { padding: 12px 4px 10px; }
  .bt-pct { font-size: 20px; } .bt.best .bt-pct { font-size: 24px; }
  .bt-min { font-size: 11px; }
  .bt-ribbon { font-size: 9px; padding: 2px 6px; }
  .bonus-cta { width: 100%; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bonus-banner::before, .bb-glow, .bb-sparkles i, .bb-gift, .bb-big, .bonus-cta::after, .celebrate-burst, .celebrate-gift, .celebrate-amount { animation: none; }
}

/* ================= display currency ================= */
.bal { display: inline-flex; flex-direction: column; line-height: 1.1; }
.bal-main { font-weight: 800; }
.bal-sub { font-size: 10.5px; font-weight: 600; color: var(--muted); }
.bal-fiat { color: var(--muted); font-weight: 600; font-size: 14px; }
.bal-fiat:empty { display: none; }
.cashier-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.cashier-tabs svg { width: 15px; height: 15px; }
.cur-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 8px; }
.cur { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text); text-align: left; transition: border-color .15s, background .15s; }
.cur:hover { border-color: rgba(2, 243, 184, .35); }
.cur b { font-size: 14px; }
.cur span { font-size: 11px; color: var(--muted); }
.cur.on { border-color: var(--mint); background: rgba(2, 243, 184, .08); box-shadow: inset 0 0 0 1px var(--mint); }
.cur.on b { color: var(--mint); }

/* themed bonus icon (replaces the emoji) */
.bb-gift { font-size: 0; width: 64px; height: 64px; flex: none; }
.bonus-icon { width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 18px rgba(2, 243, 184, .4)); }
.bb-auth .bb-gift, .bb-deposit .bb-gift { width: 48px; height: 48px; }
.celebrate-gift { font-size: 0; width: 84px; height: 84px; margin: 0 auto; }
.wl-icon svg { width: 20px; height: 20px; color: var(--mint); }
@media (max-width: 600px) { .bb-gift { width: 48px; height: 48px; } }

/* ================= nav bar v2: bigger & cleaner ================= */
.topbar { height: 78px; gap: 28px; padding: 0 36px; background: rgba(3, 5, 4, .9); backdrop-filter: blur(16px) saturate(1.2); border-bottom: 1px solid var(--line); box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .9); }
.topnav { gap: 6px; }
.tn { position: relative; height: 46px; padding: 0 16px; font-size: 15.5px; font-weight: 600; letter-spacing: .005em; border-radius: 12px; color: var(--muted); }
.tn:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.tn.on { color: var(--text); background: none; box-shadow: none; }
.tn.on::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: -16px; height: 3px; border-radius: 3px 3px 0 0; background: var(--mint); box-shadow: 0 0 12px rgba(2, 243, 184, .7); }
.tn .chev { width: 15px; height: 15px; margin-left: 2px; opacity: .7; }
.games-menu { top: calc(100% + 18px); }
.tn-games::after { height: 20px; }
.top-right { gap: 12px; }
.balance-pill { padding: 6px 6px 6px 16px; border-radius: 14px; gap: 12px; font-size: 15px; background: var(--panel); border: 1px solid var(--line-2); }
.balance-pill .btn-sm { height: 40px; padding: 0 18px; font-size: 14px; border-radius: 10px; }
.top-right > .btn { height: 46px; padding: 0 20px; font-size: 14.5px; border-radius: 12px; }
.top-right .icon-btn, .topbar > .icon-btn { width: 46px; height: 46px; border-radius: 12px; }
.icon-btn.user-btn { height: 46px; padding: 0 14px; }

@media (max-width: 1280px) {
  .topbar { gap: 18px; padding: 0 22px; }
  .tn { padding: 0 12px; font-size: 14.5px; }
  .tn span { display: inline; }
  .tn.on::after { left: 12px; right: 12px; }
}
@media (max-width: 1100px) {
  .tn { padding: 0 9px; font-size: 14px; }
  .icon-btn.user-btn .uname { display: none; }
}
@media (max-width: 900px) {
  .topbar { height: 64px; gap: 10px; padding: 0 14px; }
  .topnav { top: 64px; max-height: calc(100vh - 64px); }
  .tn { height: 48px; font-size: 16px; padding: 0 14px; }
  .tn.on { background: var(--panel-2); }
  .tn.on::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; border-radius: 0 3px 3px 0; }
  .balance-pill { padding: 4px 4px 4px 12px; font-size: 14px; }
  .balance-pill .btn-sm { height: 36px; padding: 0 12px; }
  .top-right > .btn, .top-right .icon-btn, .topbar > .icon-btn, .icon-btn.user-btn { height: 40px; }
  .top-right .icon-btn, .topbar > .icon-btn { width: 40px; }
}
.top-right .icon-btn.user-btn { width: auto; padding: 0 14px; gap: 8px; }
@media (max-width: 1100px) { .top-right .icon-btn.user-btn { width: 46px; padding: 0; } }
@media (max-width: 900px) { .top-right .icon-btn.user-btn { width: 40px; } }

/* ================= nav bar v3: plain links, icon + name game menu ================= */
.tn, .tn:hover, .tn.on { background: none; box-shadow: none; border-radius: 0; }
.tn { padding: 0 14px; }
.tn:hover { color: var(--text); }
.tn.on { color: var(--mint); }
.tn.on::after { display: none; }
.tn-games:hover > .tn, .tn-games.open > .tn { color: var(--text); }
.games-menu { width: 440px; grid-template-columns: 1fr 1fr; gap: 2px; padding: 8px; border-radius: 14px; }
.games-menu a { flex-direction: row; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); text-align: left; }
.games-menu a:hover { background: var(--panel-2); color: var(--text); }
.games-menu a.on { background: none; color: var(--mint); }
.gm-icon { width: 22px; height: 22px; flex: none; display: inline-grid; }
.gm-icon svg { width: 100%; height: 100%; }
@media (max-width: 900px) {
  .tn.on { background: none; }
  .games-menu { width: auto; grid-template-columns: 1fr 1fr; padding: 4px 0 8px; }
  .games-menu a { padding: 10px 8px; }
}

/* ================= front page: clean full-width hero ================= */
.home .hero { min-height: 380px; padding: 56px 52px; display: flex; align-items: center; border-radius: 22px; }
.home .hero h1 { margin-top: 0; }
.home .hero p { margin-bottom: 26px; }
.home .hero-cta .btn-lg { padding: 13px 26px; }
.home .hero-points { margin-top: 26px; }
.home .hero-points li { padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.home > .section:first-of-type { margin-top: 28px; }
@media (max-width: 900px) { .home .hero { min-height: 0; padding: 34px 22px; } .home .hero-points li { padding: 0; border: 0; background: none; } }

/* ================= game polish ================= */
/* Roulette: room for the pointer and the wheel rim above the table */
.roulette-stage { padding-top: 34px; }
/* Mines / Towers: revealed and dimmed tiles stay readable */
.mt.open, .tt.open { background: #111614; box-shadow: inset 0 0 0 1px var(--line-2); }
.mt.dim, .tt.dim { opacity: .55; }
/* Coinflip: heads in the brand mint, tails in silver */
.coin-face.heads, .coin-face:not(.tails) { background: radial-gradient(circle at 35% 30%, #e6fff8, #02f3b8 45%, #0f8162); color: #00160f; box-shadow: inset 0 0 0 10px rgba(255, 255, 255, .2), inset 0 0 0 14px rgba(0, 22, 15, .25), 0 20px 50px rgba(2, 243, 184, .25); }
@media (max-width: 900px) { .roulette-stage { padding-top: 22px; } }

/* ================= global crash ================= */
.crash-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; }
.crash-top .recent { flex: 1; min-width: 0; overflow: hidden; flex-wrap: nowrap; }
.crash-top .recent .chip { border: 0; cursor: pointer; flex: none; }
.crash-top .recent .chip:hover { filter: brightness(1.25); }
.crash-round { font-size: 11.5px; white-space: nowrap; font-family: var(--mono); }
.crash-graph { min-height: 340px; }
.crash-mult.waiting { color: var(--mint); }
.crash-bar { position: absolute; left: 50%; bottom: 20%; transform: translateX(-50%); width: min(260px, 60%); height: 6px; border-radius: 6px; background: var(--panel-3); overflow: hidden; }
.crash-bar[hidden] { display: none; }
.crash-bar i { display: block; height: 100%; background: var(--grad); border-radius: inherit; transition: width .1s linear; }
.crash-players { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cp-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 6px; font-size: 13px; }
.cp-list { max-height: 220px; overflow-y: auto; }
.cp-row { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr .8fr 1fr; gap: 8px; align-items: center; padding: 7px 14px; font-size: 13px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.cp-row .num { text-align: right; }
.cp-cols { color: var(--dim); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border-top: 0; padding-top: 2px; }
.cp-user { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cp-row.me .cp-user { color: var(--mint); }
.cp-row.won { background: rgba(2, 243, 184, .05); }
.cp-list .empty { padding: 18px; font-size: 13px; }
@media (max-width: 900px) { .crash-graph { min-height: 280px; } .crash-round { display: none; } }
.approval-note[hidden] { display: none; }

/* ================= SolBet.gg logo (public/logo.png, transparent) ================= */
.logo-img { display: block; height: 34px; width: auto; filter: drop-shadow(0 0 12px rgba(1, 171, 142, .35)); }
.foot-logo { display: flex; align-items: center; opacity: .85; }
.foot-logo .logo-img { height: 22px; filter: none; }
@media (max-width: 1280px) { .logo-img { height: 30px; } }
@media (max-width: 900px) { .logo-img { height: 26px; } }
@media (max-width: 480px) { .logo-img { height: 22px; } }

/* Admin: balance editor */
.admin .check, .modal .check { display: flex; align-items: center; gap: 8px; margin: 2px 0 14px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.check input { accent-color: var(--mint); width: 16px; height: 16px; margin: 0; }
.admin .tx-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }

/* Crash: the past-rounds strip is static; it only re-renders when a round finishes and never pops in. */
.crash-top .recent .chip { animation: none; }

/* ================= leaderboards ================= */
.lb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lb-grid .lb-wide { grid-column: 1 / -1; }
.lb-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1100px) { .lb-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .lb-grid, .lb-mini { grid-template-columns: 1fr; } }

/* ================= admin: deposit history ================= */
.dep-history .section-head { flex-wrap: wrap; }
.dep-search { flex: 1; max-width: 420px; min-width: 200px; height: 40px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; outline: 0; }
.dep-search:focus { border-color: var(--accent); }
.dep-history .stat-grid { margin-bottom: 14px; }
.dep-history [data-dep-more] { padding: 14px; }
