:root {
  color-scheme: dark;
  --bg: #090b14;
  --bg-elevated: #101420;
  --panel: #151a28;
  --panel-2: #1b2131;
  --panel-3: #22293b;
  --text: #f5f7ff;
  --muted: #8e98ae;
  --muted-2: #657087;
  --line: rgba(255,255,255,.075);
  --violet: #8b5cf6;
  --violet-2: #a78bfa;
  --cyan: #2dd4bf;
  --cyan-2: #67e8f9;
  --green: #39e58c;
  --red: #ff5678;
  --yellow: #f4c95d;
  --sidebar: 228px;
  --topbar: 72px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-height: 100vh; overflow-x: hidden; background: radial-gradient(circle at 70% -20%, rgba(139,92,246,.13), transparent 40%), var(--bg); color: var(--text); font-size: 16px; }
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--cyan-2); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.app-shell { min-height: 100vh; }
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--topbar); display: flex; min-width: 0; align-items: center; gap: 14px; padding: 0 18px; background: rgba(9,11,20,.88); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.brand { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; min-width: 190px; border: 0; background: transparent; padding: 0; text-align: left; cursor: pointer; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(145deg, var(--violet), #5f45d9 55%, #2633a4); box-shadow: 0 0 28px rgba(139,92,246,.33); font-weight: 900; transform: skew(-7deg); }
.brand-copy { display: flex; flex-direction: column; letter-spacing: .08em; line-height: 1; }
.brand-copy strong { font-size: .94rem; }
.brand-copy small { margin-top: 5px; color: var(--cyan-2); font-size: .65rem; letter-spacing: .3em; }
.demo-chip { display: flex; align-items: center; gap: 6px; border: 1px solid rgba(45,212,191,.22); background: rgba(45,212,191,.08); color: #8ff5e7; border-radius: 999px; padding: 6px 9px; font-size: .68rem; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.demo-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px rgba(57,229,140,.8); }
.search-wrap { min-width: 150px; max-width: 520px; flex: 1; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.035); color: var(--muted); }
.search-wrap:focus-within { border-color: rgba(139,92,246,.5); background: rgba(255,255,255,.055); }
.search-wrap input { width: 100%; color: var(--text); border: 0; outline: 0; background: transparent; }
.search-wrap input::placeholder { color: var(--muted-2); }
.top-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.balance-pill { display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.balance-pill .coin { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(145deg, var(--cyan), #168b83); color: #06120f; font-size: .72rem; font-weight: 900; }
.balance-pill span:last-child { color: var(--muted); font-size: .75rem; }
.primary-button, .ghost-button, .bet-button, .cashout-button { border: 0; border-radius: 11px; min-height: 42px; padding: 0 17px; font-weight: 750; cursor: pointer; transition: transform .16s ease, filter .16s ease, background .16s ease; }
.primary-button, .bet-button { background: linear-gradient(135deg, var(--violet), #6b47db); color: white; box-shadow: 0 9px 24px rgba(98,66,210,.24); }
.primary-button:hover, .bet-button:hover { filter: brightness(1.1); transform: translateY(-1px); }
.ghost-button { background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.ghost-button:hover { background: rgba(255,255,255,.1); }
.large { min-height: 48px; padding: 0 22px; }
.full { width: 100%; }
.avatar-button { width: 40px; height: 40px; border: 1px solid rgba(167,139,250,.32); border-radius: 12px; background: linear-gradient(145deg, rgba(139,92,246,.25), rgba(45,212,191,.12)); font-weight: 800; cursor: pointer; }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 1.4rem; }

.sidebar { position: fixed; top: var(--topbar); bottom: 0; left: 0; z-index: 30; width: var(--sidebar); padding: 18px 14px; border-right: 1px solid var(--line); background: rgba(11,14,24,.92); overflow-y: auto; }
.sidebar nav { display: grid; gap: 5px; }
.side-link { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; cursor: pointer; text-align: left; font-weight: 650; }
.side-link span { display: grid; place-items: center; width: 22px; color: var(--muted-2); }
.side-link small { margin-left: auto; padding: 3px 6px; border-radius: 6px; background: rgba(255,255,255,.05); color: var(--muted-2); font-size: .6rem; font-weight: 750; }
.side-link:hover, .side-link.is-active { color: var(--text); background: rgba(139,92,246,.12); }
.side-link.is-active span { color: var(--violet-2); }
.sidebar-label { margin: 24px 12px 9px; color: var(--muted-2); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.side-promo { position: relative; overflow: hidden; margin-top: 24px; padding: 16px; border-radius: 14px; background: linear-gradient(145deg, rgba(139,92,246,.22), rgba(45,212,191,.08)); border: 1px solid rgba(139,92,246,.2); }
.side-promo strong, .side-promo p, .side-promo button { position: relative; z-index: 1; }
.side-promo p { margin: 8px 0 14px; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.side-promo button { border: 0; background: rgba(255,255,255,.11); border-radius: 8px; padding: 8px 10px; cursor: pointer; font-size: .78rem; }
.promo-orbit { position: absolute; width: 110px; height: 110px; right: -52px; top: -50px; border: 18px solid rgba(103,232,249,.12); border-radius: 50%; }
.sidebar-footer { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; margin: 24px 10px 0; color: var(--muted); font-size: .75rem; }
.sidebar-footer small { grid-column: 1 / -1; color: var(--muted-2); line-height: 1.4; }
.status-dot, .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(57,229,140,.7); }
.sidebar-backdrop { display: none; }

.main-content { min-width: 0; margin-left: var(--sidebar); padding: calc(var(--topbar) + 26px) 26px 40px; }
.view { display: none; min-width: 0; max-width: 1480px; margin: 0 auto; }
.view.is-active { display: block; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 315px; gap: 18px; }
.hero-card { position: relative; min-height: 370px; overflow: hidden; border-radius: 22px; background: radial-gradient(circle at 75% 35%, rgba(45,212,191,.19), transparent 27%), radial-gradient(circle at 75% 45%, rgba(139,92,246,.32), transparent 50%), linear-gradient(135deg, #1d1735, #10182b 55%, #0c202a); border: 1px solid rgba(167,139,250,.16); }
.hero-noise { position: absolute; inset: 0; opacity: .25; 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: 42px 42px; mask-image: linear-gradient(90deg, black, transparent); }
.hero-copy { position: relative; z-index: 2; width: 56%; padding: 48px; }
.eyebrow { color: var(--cyan-2); font-size: .71rem; font-weight: 850; letter-spacing: .14em; }
.hero-copy h1, .game-view-header h1 { margin: 12px 0 15px; font-size: clamp(2.2rem, 4vw, 4.2rem); line-height: .98; letter-spacing: -.055em; }
.hero-copy h1 em { color: var(--violet-2); font-style: normal; }
.hero-copy p { margin: 0; max-width: 590px; color: #aeb8cc; line-height: 1.65; }
.hero-actions { display: flex; gap: 10px; margin-top: 26px; }
.hero-visual { position: absolute; inset: 0 0 0 47%; overflow: hidden; }
.hero-multiplier { position: absolute; z-index: 3; left: 39%; top: 40%; font-size: clamp(2.7rem, 5vw, 5.6rem); font-weight: 850; letter-spacing: -.06em; text-shadow: 0 0 30px rgba(103,232,249,.25); }
.hero-multiplier span { color: var(--cyan-2); font-size: .45em; }
.planet-ring { position: absolute; border: 1px solid rgba(103,232,249,.24); border-radius: 50%; transform: rotate(-18deg); }
.ring-one { width: 390px; height: 230px; left: 12%; top: 20%; box-shadow: inset 0 0 65px rgba(139,92,246,.13), 0 0 80px rgba(45,212,191,.08); }
.ring-two { width: 610px; height: 350px; left: 0; top: 8%; border-color: rgba(167,139,250,.18); }
.hero-chart-line { position: absolute; width: 520px; height: 260px; left: 10%; bottom: -40px; border-radius: 50% 50% 0 0; border-top: 3px solid rgba(103,232,249,.5); transform: rotate(-20deg); filter: drop-shadow(0 0 14px rgba(103,232,249,.38)); }
.live-panel, .bets-panel, .fairness-panel, .proof-section { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.live-panel { padding: 17px; min-height: 370px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.panel-heading div { display: flex; align-items: center; gap: 8px; }
.panel-heading > span { color: var(--muted-2); font-size: .69rem; font-weight: 850; letter-spacing: .1em; }
.live-feed { display: grid; gap: 2px; }
.live-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.live-row div { display: grid; gap: 3px; }
.live-row strong { font-size: .81rem; }
.live-row small { color: var(--muted-2); font-size: .69rem; }
.live-row > span { align-self: center; color: var(--green); font-size: .8rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.live-summary { display: flex; justify-content: space-between; margin-top: 14px; color: var(--muted); font-size: .77rem; }
.live-summary strong { color: var(--text); }

.game-section { margin-top: 34px; }
.section-heading, .game-view-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-heading h2, .proof-section h2 { margin: 4px 0 0; font-size: 1.45rem; }
.text-button, .back-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.text-button:hover, .back-button:hover { color: var(--text); }
.game-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.game-card { position: relative; min-width: 0; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); cursor: pointer; text-align: left; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.game-card:hover { transform: translateY(-4px); border-color: rgba(167,139,250,.38); box-shadow: 0 18px 38px rgba(0,0,0,.25); }
.game-card[hidden] { display: none; }
.game-badge { position: absolute; z-index: 2; top: 10px; left: 10px; padding: 4px 7px; border-radius: 7px; background: rgba(57,229,140,.14); color: #83f3b7; font-size: .62rem; font-weight: 850; letter-spacing: .08em; }
.game-badge.new { background: rgba(139,92,246,.2); color: #cabaff; }
.card-art { position: relative; display: grid; place-items: center; height: 165px; overflow: hidden; }
.card-art::after { content: ""; position: absolute; inset: auto 0 0; height: 55%; background: linear-gradient(transparent, rgba(9,11,20,.45)); }
.card-art b { position: relative; z-index: 1; font-size: 1.8rem; letter-spacing: -.06em; }
.crash-art { background: radial-gradient(circle at 70% 22%, rgba(45,212,191,.34), transparent 28%), linear-gradient(145deg, #17223b, #381f55); }
.crash-art i { position: absolute; width: 170px; height: 100px; border-top: 3px solid var(--cyan); border-radius: 50%; transform: rotate(-22deg); bottom: 0; left: 26px; }
.limbo-art { background: radial-gradient(circle, rgba(139,92,246,.42), transparent 42%), linear-gradient(145deg, #151c34, #2a1740); }
.limbo-art i { position: absolute; width: 105px; height: 105px; border: 1px solid rgba(103,232,249,.3); border-radius: 50%; box-shadow: 0 0 40px rgba(139,92,246,.35); }
.plinko-art { grid-template-columns: repeat(5, 14px); gap: 10px; background: linear-gradient(145deg, #122b35, #13182a); }
.plinko-art i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 25px 0 rgba(45,212,191,.7), 12px 12px 0 rgba(167,139,250,.8); }
.mines-art { grid-template-columns: repeat(3, 32px); gap: 7px; background: linear-gradient(145deg, #162036, #231c38); }
.mines-art i { width: 32px; height: 32px; border-radius: 7px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.06); }
.mines-art i:nth-child(5) { background: radial-gradient(circle, var(--red), #6d1c39 55%, #1c1827 57%); }
.keno-art { grid-template-columns: repeat(2, 44px); gap: 8px; background: linear-gradient(145deg, #263019, #171c26); }
.keno-art i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(244,201,93,.14); color: #ffe49a; font-style: normal; font-weight: 800; }
.roulette-art { background: radial-gradient(circle, #2b3a36 0 12%, #194738 13% 25%, #242b3a 26% 38%, #111522 39%); }
.roulette-art i { position: absolute; width: 120px; height: 120px; border: 10px dashed rgba(255,255,255,.18); border-radius: 50%; }
.roulette-art b { color: var(--yellow); }
.game-info { display: grid; gap: 5px; padding: 13px 14px 15px; }
.game-info strong { font-size: .92rem; }
.game-info small { color: var(--muted); font-size: .72rem; }
.empty-state { padding: 38px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 16px; }
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 32px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.stats-strip div { display: grid; gap: 6px; padding: 19px; background: var(--panel); }
.stats-strip span { color: var(--muted); font-size: .75rem; }
.stats-strip strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }

.experience-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(280px,.65fr); gap: 14px; margin-top: 16px; }
.session-card, .mission-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.012)); }
.compact-heading { align-items: center; margin-bottom: 15px; }
.compact-heading h2, .mission-card h2 { margin: 5px 0 0; font-size: 1.25rem; }
.session-status { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .7rem; }
.session-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px rgba(57,229,140,.55); }
.session-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.session-metrics > div { display: grid; gap: 5px; min-width: 0; padding: 13px; border-radius: 11px; background: rgba(255,255,255,.03); }
.session-metrics span { color: var(--muted); font-size: .69rem; }
.session-metrics strong { overflow: hidden; color: var(--text); font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.session-metrics small { overflow: hidden; color: var(--muted-2); font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.mission-card { background: radial-gradient(circle at 90% 0,rgba(139,92,246,.2),transparent 42%),var(--panel); }
.mission-list { display: grid; gap: 8px; margin-top: 18px; }
.mission-list > div:not(.mission-track) { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .7rem; }
.mission-list strong { color: var(--text); font-size: .68rem; }
.mission-track { height: 5px; margin: -2px 0 7px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.06); }
.mission-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--violet),var(--cyan)); transition: width .25s ease; }
.mission-card p { margin: 17px 0 0; color: var(--muted-2); font-size: .68rem; line-height: 1.5; }

.game-view-header { align-items: center; }
.game-view-header > div:nth-child(2) { flex: 1; }
.game-view-header h1 { margin: 4px 0 0; font-size: 2rem; }
.back-button { min-height: 40px; font-weight: 700; }
.game-tabs, .control-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line); }
.game-tabs { max-width: min(660px, 58vw); overflow-x: auto; scrollbar-width: thin; }
.game-tab, .control-tabs button { border: 0; border-radius: 8px; background: transparent; color: var(--muted); padding: 9px 15px; cursor: pointer; }
.game-tab.is-active, .control-tabs button.is-active { color: var(--text); background: var(--panel-3); }
.game-panel { display: none; }
.game-panel.is-active { display: grid; }
.play-layout { grid-template-columns: 285px minmax(380px, 1fr) 275px; gap: 14px; }
.bet-controls, .bets-panel, .fairness-panel { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.control-tabs { margin-bottom: 20px; }
.control-tabs button { flex: 1; }
.bet-controls label { display: grid; gap: 8px; margin-top: 15px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.bet-controls label > span { justify-self: end; margin-top: -23px; color: var(--muted-2); font-size: .68rem; font-weight: 600; }
.input-combo { display: grid; grid-template-columns: 1fr 44px 44px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-elevated); }
.input-combo.single { grid-template-columns: 1fr; }
.input-combo input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); padding: 12px; font-weight: 750; font-variant-numeric: tabular-nums; }
.input-combo button { border: 0; border-left: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--muted); cursor: pointer; }
.payout-preview { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; padding: 13px; border-radius: 10px; background: rgba(255,255,255,.035); font-size: .76rem; }
.payout-preview span { color: var(--muted); }
.payout-preview strong { font-variant-numeric: tabular-nums; }
.bet-button, .cashout-button { width: 100%; margin-top: 14px; }
.cashout-button { background: rgba(45,212,191,.12); border: 1px solid rgba(45,212,191,.22); color: #8ef5e7; }
.cashout-button:not(:disabled):hover { background: rgba(45,212,191,.2); }
.cashout-button:disabled, .bet-button:disabled { opacity: .45; cursor: not-allowed; }
.control-note { margin: 14px 2px 0; color: var(--muted-2); font-size: .7rem; line-height: 1.45; }
.game-stage-wrap { min-width: 0; }
.game-stage { position: relative; min-height: 470px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(circle at 50% 60%, rgba(139,92,246,.12), transparent 35%), var(--bg-elevated); }
.crash-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.stage-grid { position: absolute; inset: 0; opacity: .35; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(transparent, black 35%, black); }
.stage-status { position: absolute; z-index: 4; left: 50%; top: 34%; transform: translateX(-50%); color: var(--muted); font-size: .77rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.multiplier-display { position: absolute; z-index: 4; left: 50%; top: 42%; transform: translate(-50%,-50%); font-size: clamp(3.2rem, 7vw, 6.8rem); font-weight: 900; letter-spacing: -.07em; font-variant-numeric: tabular-nums; text-shadow: 0 0 40px rgba(139,92,246,.25); }
.multiplier-display span { color: var(--cyan-2); font-size: .45em; }
.multiplier-display.is-crashed { color: var(--red); text-shadow: 0 0 38px rgba(255,86,120,.24); }
.multiplier-display.is-win { color: var(--green); text-shadow: 0 0 38px rgba(57,229,140,.2); }
.round-chip { position: absolute; z-index: 4; right: 15px; top: 14px; color: var(--muted-2); font-size: .68rem; font-weight: 800; letter-spacing: .09em; }
.quick-history { display: flex; gap: 7px; margin-top: 10px; overflow: hidden; }
.history-chip { flex: 0 0 auto; padding: 7px 10px; border-radius: 8px; background: var(--panel); color: var(--muted); font-size: .72rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.history-chip.high { color: var(--cyan-2); background: rgba(45,212,191,.08); }
.history-chip.loss { color: #ff91a7; background: rgba(255,86,120,.08); }
.bets-panel { padding: 15px; }
.bets-table-head, .bet-row { display: grid; grid-template-columns: 1fr .75fr .55fr; gap: 8px; align-items: center; }
.bets-table-head { padding: 8px 2px; color: var(--muted-2); font-size: .67rem; border-bottom: 1px solid var(--line); }
.bets-table-head span:not(:first-child), .bet-row span:not(:first-child) { text-align: right; }
.round-bets { display: grid; }
.bet-row { padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: .72rem; }
.bet-row span:first-child { overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.bet-row .won { color: var(--green); }
.limbo-wrap .game-stage { min-height: 470px; }
.limbo-stage { background: radial-gradient(circle at 50% 50%, rgba(139,92,246,.24), transparent 29%), linear-gradient(145deg, #0d1323, #15132a); }
.limbo-rings, .limbo-rings i { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); border: 1px solid rgba(103,232,249,.13); border-radius: 50%; }
.limbo-rings { width: 330px; height: 330px; }
.limbo-rings i:nth-child(1) { width: 250px; height: 250px; }
.limbo-rings i:nth-child(2) { width: 170px; height: 170px; }
.limbo-rings i:nth-child(3) { width: 90px; height: 90px; background: rgba(139,92,246,.08); box-shadow: 0 0 70px rgba(139,92,246,.22); }
.target-readout { position: absolute; left: 50%; top: 68%; transform: translateX(-50%); color: var(--muted); font-size: .76rem; }
.target-readout strong { margin-left: 6px; color: var(--text); }
.fairness-panel { align-self: stretch; }
.fair-row { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fair-row span { color: var(--muted); font-size: .7rem; }
.fair-row code, .proof-grid code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #b7c3d9; font-size: .69rem; }
.fairness-panel .ghost-button { margin-top: 16px; }
.fairness-panel p { color: var(--muted-2); font-size: .7rem; line-height: 1.5; }
.proof-section { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 16px; padding: 18px; }
.proof-grid { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.proof-grid div { display: grid; gap: 7px; min-width: 0; padding: 11px; border-radius: 10px; background: rgba(255,255,255,.03); }
.proof-grid span { color: var(--muted); font-size: .68rem; }
.proof-grid code { white-space: normal; overflow-wrap: anywhere; line-height: 1.45; }
.proof-section > .verify-proof { flex: 0 0 auto; }

.feature-layout { grid-template-columns: 285px minmax(420px,1fr) 245px; gap: 14px; }
.feature-stage, .game-side-card { position: relative; min-width: 0; min-height: 500px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(circle at 50% 50%, rgba(139,92,246,.13), transparent 38%), var(--bg-elevated); }
.game-side-card { min-height: 0; padding: 19px; background: var(--panel); }
.side-result { display: block; margin: 22px 0 8px; color: var(--green); font-size: clamp(2rem,4vw,3.8rem); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.game-side-card p { color: var(--muted); line-height: 1.55; }
.muted-copy { color: var(--muted-2) !important; font-size: .73rem; }
.control-kicker { margin-bottom: 18px; color: var(--cyan-2); font-size: .68rem; font-weight: 850; letter-spacing: .12em; }
.bet-controls select { width: 100%; min-height: 44px; padding: 0 42px 0 12px; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: var(--bg-elevated) linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 17px) 18px/6px 6px no-repeat; color: var(--text); appearance: none; font-weight: 750; }
.selection-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.selection-actions button { padding-inline: 8px; }
.quick-history.stacked { flex-wrap: wrap; margin-top: 18px; }

.plinko-stage { min-height: 540px; background: radial-gradient(circle at 50% 26%, rgba(45,212,191,.13), transparent 36%), linear-gradient(160deg,#11182a,#0c1020); }
.plinko-board { position: absolute; inset: 62px 7% 76px; }
.plinko-peg { position: absolute; width: 8px; height: 8px; transform: translate(-50%,-50%); border-radius: 50%; background: #d7ddff; box-shadow: 0 0 10px rgba(103,232,249,.42); }
.plinko-slots { position: absolute; display: grid; grid-template-columns: repeat(13,1fr); gap: 3px; left: 3%; right: 3%; bottom: 18px; }
.plinko-slot { display: grid; place-items: center; min-width: 0; height: 45px; border-radius: 7px 7px 10px 10px; background: rgba(139,92,246,.16); color: #d6d8e6; font-size: clamp(.52rem,.8vw,.68rem); font-weight: 850; }
.plinko-slot.edge { color: #07151a; background: linear-gradient(180deg,var(--cyan-2),#20b9a7); box-shadow: 0 0 18px rgba(45,212,191,.25); }
.plinko-ball { position: absolute; z-index: 5; left: 50%; top: 62px; width: 18px; height: 18px; transform: translate(-50%,-50%); border-radius: 50%; background: #ffcb66; box-shadow: 0 0 20px rgba(255,203,102,.72); transition: left .14s cubic-bezier(.2,.8,.4,1), top .14s ease-in; }

.mines-stage { display: grid; place-items: center; padding: 70px 28px 28px; }
.mines-grid { display: grid; grid-template-columns: repeat(5,minmax(45px,72px)); gap: 9px; }
.mine-cell { aspect-ratio: 1; border: 1px solid rgba(167,139,250,.16); border-radius: 12px; background: linear-gradient(145deg,#222b43,#161d31); color: transparent; cursor: pointer; box-shadow: inset 0 1px rgba(255,255,255,.04); transition: transform .15s ease, background .15s ease; }
.mine-cell:not(:disabled):hover { transform: translateY(-2px); background: linear-gradient(145deg,#2c3754,#1d2640); }
.mine-cell.is-safe { color: var(--green); background: rgba(57,229,140,.13); border-color: rgba(57,229,140,.3); }
.mine-cell.is-mine { color: #ff9aaf; background: rgba(255,86,120,.15); border-color: rgba(255,86,120,.32); }
.mine-cell:disabled { cursor: default; }

.keno-stage { padding: 72px 28px 28px; }
.keno-grid { display: grid; grid-template-columns: repeat(8,1fr); gap: 8px; max-width: 620px; margin: 0 auto; }
.keno-number { aspect-ratio: 1.1; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.035); color: var(--muted); cursor: pointer; font-weight: 800; font-variant-numeric: tabular-nums; }
.keno-number.is-selected { color: white; border-color: rgba(139,92,246,.6); background: rgba(139,92,246,.34); }
.keno-number.is-drawn { color: #071516; border-color: var(--cyan-2); background: var(--cyan-2); box-shadow: 0 0 16px rgba(103,232,249,.25); }
.keno-number.is-hit { color: #04120b; border-color: var(--green); background: var(--green); box-shadow: 0 0 20px rgba(57,229,140,.32); }

.roulette-stage { display: grid; place-items: center; background: radial-gradient(circle,rgba(57,229,140,.09),transparent 40%),#0d1421; }
.roulette-wheel { position: relative; width: min(390px,78%); aspect-ratio: 1; border: 15px solid #252d42; border-radius: 50%; background: repeating-conic-gradient(from -4.86deg,#c83250 0deg 9.72deg,#171b29 9.72deg 19.44deg); box-shadow: 0 24px 70px rgba(0,0,0,.42), inset 0 0 0 5px #8d7442; transition: transform 2.8s cubic-bezier(.12,.7,.12,1); }
.roulette-wheel::after { content: ""; position: absolute; inset: 16%; border: 2px solid rgba(255,255,255,.12); border-radius: 50%; background: radial-gradient(circle,#182037 0 44%,#0b1020 45% 100%); }
.roulette-pointer { position: absolute; z-index: 4; left: 50%; top: -25px; transform: translateX(-50%); width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 26px solid #ffcb66; filter: drop-shadow(0 3px 8px rgba(0,0,0,.5)); }
.roulette-core { position: absolute; z-index: 3; inset: 35%; display: grid; place-items: center; border: 2px solid rgba(167,139,250,.3); border-radius: 50%; background: #11182a; }
.roulette-core span { font-size: clamp(2rem,5vw,4.4rem); font-weight: 900; }
.roulette-core span.is-red { color: #ff6684; }
.roulette-core span.is-black { color: #d7dbeb; }
.roulette-core span.is-green { color: var(--green); }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(3,5,10,.75); backdrop-filter: blur(8px); }
.modal-backdrop[hidden] { display: none; }
.modal { position: relative; width: min(440px, 100%); padding: 28px; border: 1px solid rgba(167,139,250,.24); border-radius: 20px; background: var(--panel); box-shadow: 0 30px 90px rgba(0,0,0,.5); }
.modal h2 { margin: 6px 0 10px; font-size: 1.75rem; }
.modal p { color: var(--muted); line-height: 1.55; }
.modal-close { position: absolute; right: 14px; top: 12px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255,255,255,.06); cursor: pointer; font-size: 1.3rem; }
.wallet-balance { display: grid; gap: 7px; margin: 22px 0 14px; padding: 18px; border-radius: 14px; background: linear-gradient(135deg, rgba(139,92,246,.19), rgba(45,212,191,.08)); }
.wallet-balance span { color: var(--muted); font-size: .76rem; }
.wallet-balance strong { font-size: 1.65rem; font-variant-numeric: tabular-nums; }
.wallet-balance strong span { color: inherit; font-size: inherit; }
.credit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.credit-grid button { display: grid; gap: 4px; padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.04); cursor: pointer; }
.credit-grid button:hover { background: rgba(255,255,255,.08); }
.credit-grid button span { color: var(--muted); font-size: .7rem; }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 12px 16px; border: 1px solid var(--line); border-radius: 11px; background: #22283a; box-shadow: 0 12px 40px rgba(0,0,0,.38); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%,0); }

.utility-button { position: relative; display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.035); color: var(--muted); cursor: pointer; }
.utility-button:hover, .utility-button.is-active { color: var(--text); background: rgba(255,255,255,.08); }
.notification-button { font-size: .48rem; color: var(--cyan-2); }
.notification-button span { position: absolute; right: -3px; top: -4px; display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border: 2px solid var(--bg); border-radius: 99px; background: var(--red); color: white; font-size: .58rem; font-weight: 850; }
.wallet-button { display: flex; align-items: center; gap: 9px; }
.wallet-button b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 7px; background: rgba(255,255,255,.16); font-size: .9rem; }

.account-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin-bottom: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(135deg,rgba(139,92,246,.11),rgba(45,212,191,.035)); }
.account-avatar, .profile-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(145deg,var(--violet),#5035b9); font-weight: 900; }
.account-card div { display: grid; gap: 3px; min-width: 0; }
.account-card strong { overflow: hidden; text-overflow: ellipsis; font-size: .78rem; white-space: nowrap; }
.account-card small { color: var(--muted); font-size: .64rem; }
.account-online { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px rgba(57,229,140,.7); }
.sidebar-footer button { grid-column: 1 / -1; margin-top: 6px; padding: 8px 0 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; text-align: left; font-size: .73rem; }
.sidebar-footer button:hover { color: var(--text); }

.service-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; margin-bottom: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.service-strip > div { display: grid; grid-template-columns: auto 1fr; gap: 2px 9px; align-items: center; min-width: 0; padding: 12px 15px; background: rgba(18,22,35,.95); }
.service-strip > div > span { grid-row: 1 / 3; color: var(--cyan-2); font-weight: 850; }
.service-strip strong { overflow: hidden; text-overflow: ellipsis; font-size: .74rem; white-space: nowrap; }
.service-strip small { overflow: hidden; text-overflow: ellipsis; color: var(--muted-2); font-size: .64rem; white-space: nowrap; }
.pulse-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(57,229,140,.08),0 0 11px rgba(57,229,140,.7); }

.category-rail { display: flex; gap: 8px; margin: 0 0 15px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.category-rail::-webkit-scrollbar { display: none; }
.category-pill { flex: 0 0 auto; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); color: var(--muted); cursor: pointer; font-size: .76rem; font-weight: 720; }
.category-pill:hover, .category-pill.is-active { color: white; border-color: rgba(139,92,246,.35); background: rgba(139,92,246,.13); }

.trust-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 32px; }
.trust-grid article { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 19px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.015)); }
.trust-grid article > span { color: var(--violet-2); font-size: .68rem; font-weight: 850; letter-spacing: .08em; }
.trust-grid article div { display: grid; gap: 7px; }
.trust-grid article strong { font-size: .86rem; }
.trust-grid p { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.55; }
.site-footer { display: grid; grid-template-columns: auto 1fr; gap: 18px 34px; align-items: center; margin-top: 26px; padding: 25px 0 4px; border-top: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-mark { width: 34px; height: 34px; }
.footer-brand div { display: grid; gap: 4px; }
.footer-brand strong { font-size: .8rem; letter-spacing: .08em; }
.footer-brand small { color: var(--muted-2); font-size: .65rem; }
.footer-links { display: flex; justify-content: flex-end; gap: 16px; flex-wrap: wrap; }
.footer-links button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: .7rem; }
.footer-links button:hover { color: var(--text); }
.site-footer p { grid-column: 1 / -1; margin: 0; color: var(--muted-2); font-size: .65rem; line-height: 1.5; }

.game-service-bar { display: flex; align-items: center; gap: 18px; min-height: 42px; margin: -4px 0 13px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); color: var(--muted); font-size: .7rem; }
.game-service-bar > div { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.game-service-bar > div > span:not(.pulse-dot) { color: var(--cyan-2); }
.game-service-bar button { margin-left: auto; border: 0; background: transparent; color: var(--violet-2); cursor: pointer; font-size: .7rem; font-weight: 750; }
.game-detail-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; margin-bottom: 13px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.game-detail-strip div { display: grid; gap: 4px; min-width: 0; padding: 10px 13px; background: rgba(17,21,34,.97); }
.game-detail-strip span { color: var(--muted-2); font-size: .62rem; }
.game-detail-strip strong { overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.amount-presets { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; margin-top: 7px; }
.amount-presets button { min-height: 29px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.025); color: var(--muted); cursor: pointer; font-size: .67rem; font-weight: 750; }
.amount-presets button:hover, .amount-presets button.is-active { color: white; border-color: rgba(139,92,246,.32); background: rgba(139,92,246,.14); }

.wallet-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.wallet-meta div { display: grid; gap: 5px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); }
.wallet-meta span { color: var(--muted-2); font-size: .65rem; }
.wallet-meta strong { font-size: .74rem; }
.wallet-meta i { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: var(--green); }
.wallet-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: -4px 0 16px; }
.wallet-summary div { display: grid; gap: 5px; padding: 11px; border-radius: 10px; background: rgba(255,255,255,.025); }
.wallet-summary span { color: var(--muted-2); font-size: .65rem; }
.wallet-summary strong { font-size: .78rem; font-variant-numeric: tabular-nums; }
.wallet-summary strong.is-positive { color: var(--green); }
.wallet-summary strong.is-negative { color: var(--red); }
.wallet-activity { margin: 18px 0 12px; }
.modal-section-title { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.modal-section-title strong { font-size: .78rem; }
.modal-section-title span { color: var(--muted-2); font-size: .65rem; }
#walletActivity { display: grid; }
.activity-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.activity-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: rgba(139,92,246,.12); color: var(--violet-2); font-size: .66rem; font-weight: 850; }
.activity-row div { display: grid; gap: 2px; }
.activity-row div { min-width: 0; }
.activity-row strong { font-size: .72rem; }
.activity-row small { overflow: hidden; color: var(--muted-2); font-size: .61rem; text-overflow: ellipsis; white-space: nowrap; }
.activity-row > span { color: var(--green); font-size: .7rem; font-weight: 750; }
.activity-row > span.is-positive { color: var(--green); }
.activity-row > span.is-negative { color: var(--red); }
.activity-empty { display: grid; gap: 5px; padding: 18px 4px; text-align: center; }
.activity-empty strong { font-size: .76rem; }
.activity-empty small { color: var(--muted-2); font-size: .65rem; }

.profile-popover { position: fixed; z-index: 90; top: calc(var(--topbar) - 2px); right: 16px; width: 285px; padding: 17px; border: 1px solid rgba(167,139,250,.22); border-radius: 16px; background: rgba(21,26,40,.98); box-shadow: 0 24px 70px rgba(0,0,0,.48); backdrop-filter: blur(20px); }
.profile-popover[hidden] { display: none; }
.profile-heading { display: flex; align-items: center; gap: 10px; }
.profile-heading div { display: grid; gap: 3px; }
.profile-heading strong { font-size: .86rem; }
.profile-heading small { color: var(--muted); font-size: .66rem; }
.level-row { display: flex; justify-content: space-between; margin-top: 18px; color: var(--muted); font-size: .67rem; }
.level-row strong { color: var(--text); }
.level-track { height: 6px; margin: 8px 0 16px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.06); }
.level-track i { display: block; width: 64%; height: 100%; background: linear-gradient(90deg,var(--violet),var(--cyan)); }
.profile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.profile-stats div { display: grid; gap: 4px; padding: 10px; border-radius: 9px; background: rgba(255,255,255,.035); }
.profile-stats span { color: var(--muted-2); font-size: .62rem; }
.profile-stats strong { overflow: hidden; text-overflow: ellipsis; font-size: .72rem; white-space: nowrap; }
.profile-popover > button { width: 100%; padding: 9px 2px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; text-align: left; font-size: .72rem; }
.profile-popover > button:hover { color: var(--text); }
.notification-popover { position: fixed; z-index: 95; top: calc(var(--topbar) - 2px); right: 118px; width: min(390px,calc(100vw - 24px)); padding: 16px; border: 1px solid rgba(167,139,250,.22); border-radius: 16px; background: rgba(21,26,40,.98); box-shadow: 0 24px 70px rgba(0,0,0,.48); backdrop-filter: blur(20px); }
.notification-popover[hidden] { display: none; }
.popover-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.popover-title div { display: grid; gap: 3px; }
.popover-title strong { font-size: .9rem; }
.popover-title small { color: var(--muted); font-size: .65rem; }
.popover-title button { border: 0; background: transparent; color: var(--violet-2); cursor: pointer; font-size: .66rem; }
.notification-list { display: grid; }
.notification-list > button { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; width: 100%; padding: 12px 4px; border: 0; border-top: 1px solid var(--line); background: transparent; cursor: pointer; text-align: left; }
.notification-list i { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--muted-2); }
.notification-list i.is-new { background: var(--cyan-2); box-shadow: 0 0 9px rgba(103,232,249,.5); }
.notification-list span { display: grid; gap: 4px; }
.notification-list strong { font-size: .74rem; }
.notification-list small { color: var(--muted); font-size: .65rem; line-height: 1.45; }
.notification-list time { color: var(--muted-2); font-size: .6rem; }
.info-modal { width: min(590px,100%); max-height: min(760px,calc(100vh - 40px)); overflow-y: auto; }
.info-body { display: grid; gap: 13px; margin: 20px 0; color: var(--muted); line-height: 1.6; }
.info-body h3 { margin: 3px 0 -3px; color: var(--text); font-size: .95rem; }
.info-body p { margin: 0; }
.info-body p strong { color: var(--text); }
.info-body ul, .info-body ol { display: grid; gap: 8px; margin: 0; padding-left: 20px; }
.info-body li::marker { color: var(--violet-2); }
.info-callout { padding: 13px; border: 1px solid rgba(45,212,191,.18); border-radius: 11px; background: rgba(45,212,191,.06); color: #b7d8d5; font-size: .76rem; }
.bet-controls.is-invalid { animation: control-shake .24s ease; border-color: rgba(255,86,120,.5); }
@keyframes control-shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.mobile-dock { display: none; }

@media (max-width: 1180px) {
  .game-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .play-layout { grid-template-columns: 260px minmax(360px,1fr); }
  .feature-layout { grid-template-columns: 260px minmax(380px,1fr); }
  .game-side-card { grid-column: 1 / -1; min-height: 0; }
  .bets-panel, .fairness-panel { grid-column: 1 / -1; }
  .round-bets { grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
  .proof-section { align-items: flex-start; flex-direction: column; }
  .proof-grid { width: 100%; }
  .experience-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1180px) {
  .mobile-menu { display: block; }
  .brand { min-width: auto; }
  .brand-copy { display: none; }
  .demo-chip { display: none; }
  .sidebar { transform: translateX(-105%); transition: transform .2s ease; box-shadow: 20px 0 50px rgba(0,0,0,.4); }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; inset: var(--topbar) 0 0; z-index: 25; background: rgba(0,0,0,.55); }
  .sidebar-backdrop.is-open { display: block; }
  .main-content { margin-left: 0; padding-inline: 18px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { width: 63%; padding: 38px; }
  .hero-visual { left: 45%; }
  .live-panel { min-height: auto; }
  .live-feed { grid-template-columns: repeat(2,1fr); gap: 0 18px; }
  .stats-strip { grid-template-columns: repeat(2,1fr); }
  .service-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .session-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 680px) {
  :root { --topbar: 64px; }
  .topbar { gap: 8px; padding-inline: 11px; }
  .search-wrap { display: none; }
  .top-actions { margin-left: auto; }
  .balance-pill { padding-inline: 9px; }
  .balance-pill > span:last-child { display: none; }
  .avatar-button { display: none; }
  .main-content { padding: calc(var(--topbar) + 14px) 12px 28px; }
  .hero-card { min-height: 490px; }
  .hero-copy { width: 100%; padding: 28px 24px; }
  .hero-copy h1 { max-width: 360px; }
  .hero-copy p { max-width: 90%; }
  .hero-visual { inset: auto 0 0 0; height: 50%; opacity: .78; }
  .hero-multiplier { left: 47%; top: 46%; }
  .hero-actions { flex-wrap: wrap; }
  .hero-actions button { flex: 1; }
  .live-feed { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .card-art { height: 135px; }
  .stats-strip { grid-template-columns: 1fr; }
  .game-view-header { align-items: flex-start; flex-wrap: wrap; }
  .game-view-header > div:nth-child(2) { min-width: 160px; }
  .game-tabs { width: 100%; max-width: 100%; }
  .game-tabs { scrollbar-width: none; }
  .game-tabs::-webkit-scrollbar { display: none; }
  .game-tab { flex: 0 0 auto; }
  .play-layout { grid-template-columns: 1fr; }
  .feature-layout { grid-template-columns: 1fr; }
  .feature-stage { grid-row: 1; min-height: 430px; }
  .feature-layout .bet-controls { grid-row: 2; }
  .game-side-card { grid-column: auto; }
  .game-stage-wrap { grid-row: 1; }
  .bet-controls { grid-row: 2; }
  .bets-panel, .fairness-panel { grid-column: auto; }
  .game-stage, .limbo-wrap .game-stage { min-height: 360px; }
  .round-bets { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .game-detail-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .proof-section > .verify-proof { width: 100%; }
  .plinko-slot { height: 38px; writing-mode: vertical-rl; }
  .mines-grid { grid-template-columns: repeat(5,minmax(40px,58px)); gap: 7px; }
  .keno-grid { grid-template-columns: repeat(5,1fr); }
  .credit-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; gap: 12px; }
  .site-footer p { grid-column: auto; }
  .service-strip > div { padding: 10px 11px; }
  .service-strip small { white-space: normal; }
  .game-service-bar { gap: 10px; overflow: hidden; padding-inline: 11px; scrollbar-width: none; }
  .game-service-bar > div { font-size: .62rem; }
  .game-service-bar > div:nth-child(3) { display: none; }
  .game-service-bar button { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 28px; margin-left: auto; overflow: hidden; border-radius: 8px; background: rgba(139,92,246,.11); font-size: 0; }
  .game-service-bar button::after { content: "Info"; font-size: .61rem; }
  .wallet-meta { grid-template-columns: 1fr; }
  .wallet-summary { grid-template-columns: 1fr 1fr; }
  .profile-popover { left: 10px; right: 10px; width: auto; }
  .notification-popover { left: 10px; right: 10px; width: auto; }
  .mobile-dock { position: fixed; z-index: 70; left: 10px; right: 10px; bottom: 10px; display: grid; grid-template-columns: repeat(4,1fr); min-height: 58px; padding: 5px; border: 1px solid rgba(167,139,250,.18); border-radius: 17px; background: rgba(15,19,31,.94); box-shadow: 0 18px 50px rgba(0,0,0,.5); backdrop-filter: blur(20px); }
  .mobile-dock button { display: grid; place-items: center; gap: 2px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-size: .59rem; cursor: pointer; }
  .mobile-dock button:hover { color: white; background: rgba(139,92,246,.13); }
  .mobile-dock button.is-active { color: white; background: rgba(139,92,246,.16); }
  .mobile-dock span { font-size: .88rem; }
  .main-content { padding-bottom: 94px; }
  .toast { bottom: 82px; width: calc(100% - 34px); text-align: center; }
}

@media (max-width: 480px) {
  .topbar #soundToggle { display: none; }
  .wallet-button span { display: none; }
  .wallet-button { width: 42px; padding: 0; justify-content: center; }
  .balance-pill strong { max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
  .service-strip { grid-template-columns: 1fr; }
  .session-metrics { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: 1fr 1fr; }
  .card-art { height: 122px; }
}

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