@import url('theme.css');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg-deep);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.app-shell {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    min-height: 100vh;
}

/* ─── Sidebar ─── */
.sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: var(--sidebar-w);
    background: var(--bg-panel);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 200;
    overflow-y: auto;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo svg { width: 32px; height: 32px; }
.sidebar-logo span { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; }
.sidebar-logo .bc { color: var(--brand); }

.sidebar-nav { padding: 12px 10px; flex: 1; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
    margin-bottom: 2px;
}

.nav-item svg { width: 18px; height: 18px; opacity: 0.7; flex-shrink: 0; }
.nav-item:hover { background: var(--bg-hover); color: var(--text); }
.nav-item.active { background: var(--bg-hover); color: var(--brand); }
.nav-item.active svg { opacity: 1; color: var(--brand); }

.nav-divider { height: 1px; background: var(--border); margin: 10px 14px; }
.nav-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); padding: 8px 14px 4px; font-weight: 700; }

.sidebar-promo {
    margin: 12px;
    padding: 14px;
    background: linear-gradient(135deg, #0c2137 0%, #071827 100%);
    border: 1px solid rgba(250, 77, 0, 0.3);
    border-radius: var(--radius);
}

.sidebar-promo strong { display: block; font-size: 0.8rem; color: var(--brand); margin-bottom: 4px; }
.sidebar-promo p { font-size: 0.72rem; color: var(--text-muted); line-height: 1.4; }

/* ─── Main area ─── */
.app-main { grid-column: 2; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    position: sticky; top: var(--banner-h); z-index: 100;
    height: var(--header-h);
    background: rgba(7, 24, 39, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 20px;
}

.topbar-search {
    flex: 1;
    max-width: 360px;
    margin-right: auto;
    position: relative;
}

.topbar-search input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 14px 9px 38px;
    color: var(--text);
    font-size: 0.85rem;
    font-family: inherit;
    transition: var(--transition);
}

.topbar-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
.topbar-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; opacity: 0.5; }

.wallet-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 6px 6px 14px;
}

.wallet-chip .amount { font-weight: 700; font-size: 0.9rem; color: var(--gold); min-width: 70px; text-align: right; }

.content { flex: 1; padding-bottom: 48px; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1600px; margin: 0 auto; padding: 0 24px 48px; }

.accent { color: var(--brand); }
.text-muted { color: var(--text-muted); }

/* ─── Buttons ─── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border-radius: var(--radius-sm);
    font-weight: 700; font-size: 0.85rem; border: none; cursor: pointer;
    font-family: inherit; transition: var(--transition); white-space: nowrap;
}

.btn-brand {
    background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dim) 100%);
    color: #fff;
    box-shadow: 0 2px 0 var(--brand-dim);
}
.btn-brand:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-brand:active { transform: translateY(1px); box-shadow: none; }

.btn-gold { background: linear-gradient(180deg, #ffc933 0%, var(--gold) 100%); color: #000; box-shadow: 0 2px 0 var(--gold-dim); }
.btn-outline { background: transparent; border: 2px solid var(--border-light); color: var(--text-secondary); }
.btn-outline:hover { border-color: var(--text-muted); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text); background: var(--bg-hover); }
.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 0 20px var(--danger-glow); }
.btn-sm { padding: 7px 14px; font-size: 0.78rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* ─── Hero banner ─── */
.hero-banner {
    position: relative;
    margin: 20px 24px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 280px;
    background: linear-gradient(120deg, #040b14 0%, #0c2137 45%, #071827 100%);
    border: 1px solid var(--border-light);
}

.hero-banner::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 85% 40%, rgba(250, 77, 0, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 15% 75%, rgba(20, 117, 225, 0.12) 0%, transparent 45%);
}

.hero-banner-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 340px;
    align-items: center;
    padding: 48px 56px;
    gap: 32px;
}

.hero-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(250, 77, 0, 0.12); color: var(--brand);
    padding: 5px 12px; border-radius: 999px;
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    margin-bottom: 16px; border: 1px solid rgba(250, 77, 0, 0.3);
}

.hero-banner h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800; line-height: 1.08; letter-spacing: -0.03em;
    margin-bottom: 14px;
}

.hero-banner h1 em { font-style: normal; color: var(--brand); }

.hero-banner p { color: var(--text-secondary); font-size: 1rem; max-width: 440px; margin-bottom: 24px; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}

.hero-stat {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(8px);
}

.hero-stat .num { font-size: 1.75rem; font-weight: 800; color: var(--brand); display: block; }
.hero-stat .lbl { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }

/* ─── Section headers ─── */
.section { padding: 32px 0; }
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; padding: 0;
}

.section-head h2 {
    font-size: 1.1rem; font-weight: 700;
    display: flex; align-items: center; gap: 10px;
}

.section-head h2::before {
    content: ''; width: 4px; height: 18px;
    background: var(--brand); border-radius: 2px;
}

.section-link { color: var(--brand); font-size: 0.85rem; font-weight: 600; }
.section-link:hover { text-decoration: underline; }

/* ─── Game cards ─── */
.games-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    padding: 0;
}

.games-row-lg {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.casino-hero {
    background: linear-gradient(135deg, #040b14 0%, #0c2137 50%, #071827 100%);
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.casino-hero::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 0%, rgba(250, 77, 0, 0.12), transparent 60%);
    pointer-events: none;
}

.casino-hero-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 28px 24px;
    position: relative;
    z-index: 1;
}

.casino-hero h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: 4px; }
.casino-hero p { color: var(--text-muted); font-size: 0.9rem; }

.game-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.game-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--brand);
    box-shadow: var(--shadow), 0 0 28px var(--brand-glow);
    z-index: 2;
}

.game-card-cover {
    position: absolute; inset: 0;
    background: var(--bg-panel);
    transition: transform 0.4s ease;
}

.game-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card:hover .game-card-cover { transform: scale(1.08); }

.game-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    display: flex; flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
}

.game-card-overlay h3 { font-size: 0.85rem; font-weight: 700; margin-bottom: 2px; }
.game-card-overlay span { font-size: 0.68rem; color: var(--text-muted); }

.game-card-badge {
    position: absolute; top: 10px; left: 10px;
    background: var(--brand); color: #000;
    font-size: 0.62rem; font-weight: 800;
    padding: 3px 8px; border-radius: 4px;
    text-transform: uppercase; letter-spacing: 0.04em;
}

.game-card-badge.live { background: var(--danger); color: #fff; }
.game-card-badge.new { background: var(--gold); color: #000; left: auto; right: 10px; }
.game-card-play {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--brand), var(--gold));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: var(--transition);
    box-shadow: var(--shadow-glow);
}

.game-card-play svg { width: 20px; margin-left: 2px; }
.game-card:hover .game-card-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* Cover art via CSS gradients per slug */
.cover-rocket-rush { background: linear-gradient(160deg, #1e0a3c 0%, #4c1d95 40%, #7c3aed 100%); }
.cover-gem-mines { background: linear-gradient(160deg, #042f2e 0%, #0d9488 50%, #2dd4bf 100%); }
.cover-lucky-drop { background: linear-gradient(160deg, #431407 0%, #ea580c 50%, #fbbf24 100%); }
.cover-dice-arena { background: linear-gradient(160deg, #172554 0%, #2563eb 50%, #60a5fa 100%); }
.cover-wheel-fortune { background: linear-gradient(160deg, #450a0a 0%, #dc2626 50%, #fbbf24 100%); }
.cover-limbo-x { background: linear-gradient(160deg, #083344 0%, #0891b2 50%, #22d3ee 100%); }
.cover-card-flip { background: linear-gradient(160deg, #14532d 0%, #15803d 50%, #86efac 100%); }
.cover-keno-blast { background: linear-gradient(160deg, #1a3a5c 0%, #1475e1 50%, #4da3ff 100%); }
.cover-blackjack-sprint { background: linear-gradient(160deg, #0c0a09 0%, #292524 50%, #78716c 100%); }
.cover-euro-roulette { background: linear-gradient(160deg, #14532d 0%, #166534 40%, #dc2626 100%); }
.cover-css-gold { background: linear-gradient(160deg, #422006 0%, #ca8a04 50%, #fde047 100%); }
.cover-css-candy { background: linear-gradient(160deg, #831843 0%, #db2777 50%, #f472b6 100%); }
.cover-default { background: linear-gradient(160deg, var(--bg-panel) 0%, var(--bg-hover) 100%); }

.game-card-icon {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -60%);
    font-size: 3.5rem;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
    pointer-events: none;
}

/* ─── Category pills ─── */
.category-bar {
    display: flex; gap: 8px; padding: 0 0 20px;
    overflow-x: auto; scrollbar-width: none;
}
.container-wide > .category-bar { padding: 0 0 20px; }

.category-pill {
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.82rem; font-weight: 600;
    cursor: pointer; white-space: nowrap;
    transition: var(--transition);
    font-family: inherit;
}

.category-pill:hover, .category-pill.active {
    background: rgba(250, 77, 0, 0.15);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 0 16px var(--brand-glow);
}

/* ─── Promo cards ─── */
.promo-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    padding: 0 24px;
}

.promo-tile {
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border);
    background: var(--bg-panel);
    position: relative;
    overflow: hidden;
}

.promo-tile::after {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 200px; height: 200px;
    background: radial-gradient(circle, var(--brand-glow) 0%, transparent 70%);
    pointer-events: none;
}

.promo-tile h3 { font-size: 1.1rem; margin-bottom: 8px; position: relative; }
.promo-tile p { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 16px; position: relative; }
.promo-tile.featured { grid-column: span 2; background: linear-gradient(135deg, #0d2818, var(--bg-panel)); border-color: rgba(0,231,1,0.3); }

/* ─── Live wins ticker ─── */
.live-ticker {
    position: fixed; bottom: 0; left: var(--sidebar-w); right: 0;
    background: var(--bg-panel);
    border-top: 1px solid var(--border);
    padding: 8px 0; overflow: hidden; z-index: 90;
}

.live-ticker-track {
    display: flex; gap: 40px;
    animation: ticker 40s linear infinite;
    white-space: nowrap;
}

.live-ticker-item { font-size: 0.78rem; color: var(--text-muted); }
.live-ticker-item b { color: var(--brand); }
.live-ticker-item .game { color: var(--text-secondary); }

@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── Game page layout ─── */
.game-shell {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: calc(100vh - var(--header-h));
    background: var(--bg-deep);
}

.game-controls {
    background: var(--bg-panel);
    border-right: 1px solid var(--border);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.game-controls-head { border-bottom: 1px solid var(--border); padding-bottom: 16px; }

.back-btn {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--text-muted); font-size: 0.8rem; font-weight: 600;
    margin-bottom: 12px; transition: var(--transition);
}

.back-btn:hover { color: var(--brand); }

.game-controls-head h1 { font-size: 1.25rem; font-weight: 800; margin-bottom: 4px; }
.game-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.game-meta-tag {
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
    padding: 3px 8px; border-radius: 4px;
    background: rgba(0,231,1,0.12); color: var(--brand);
    letter-spacing: 0.04em;
}

.control-panel {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex; flex-direction: column; gap: 14px;
}

.control-label {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--text-muted);
    margin-bottom: 6px; display: block;
}

.bet-input-wrap {
    display: flex;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.bet-input-wrap button {
    width: 40px; background: var(--bg-hover); border: none;
    color: var(--text-secondary); font-size: 1.1rem; cursor: pointer;
    font-family: inherit; transition: var(--transition);
}

.bet-input-wrap button:hover { background: var(--border); color: var(--text); }

.bet-input-wrap input {
    flex: 1; background: transparent; border: none;
    color: var(--text); font-size: 1rem; font-weight: 700;
    text-align: center; padding: 12px 8px; font-family: inherit;
    min-width: 0;
}

.bet-input-wrap input:focus { outline: none; }

.bet-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }

.bet-presets button {
    padding: 8px 4px; background: var(--bg-panel);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text-secondary); font-size: 0.75rem; font-weight: 700;
    cursor: pointer; font-family: inherit; transition: var(--transition);
}

.bet-presets button:hover { border-color: var(--brand); color: var(--brand); }

.form-input, .form-select {
    width: 100%; background: var(--bg-panel);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 11px 14px; color: var(--text);
    font-size: 0.9rem; font-family: inherit;
}

.form-input:focus, .form-select:focus { outline: none; border-color: var(--brand); }

.game-arena {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    padding: 32px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(0,231,1,0.06) 0%, transparent 60%),
        var(--bg-deep);
    overflow: hidden;
}

.game-arena::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(47,69,83,0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47,69,83,0.15) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.game-result {
    padding: 12px 16px; border-radius: var(--radius-sm);
    font-weight: 700; font-size: 0.9rem; text-align: center;
}

.game-result.win { background: rgba(0,231,1,0.12); color: var(--brand); border: 1px solid rgba(0,231,1,0.3); }
.game-result.loss { background: rgba(255,68,68,0.12); color: var(--danger); border: 1px solid rgba(255,68,68,0.3); }
.hidden { display: none !important; }

/* ─── Crash game ─── */
.crash-stage {
    width: 100%; max-width: 900px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.crash-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-input);
}

.crash-mult {
    font-size: 3.5rem; font-weight: 800; letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    transition: color 0.15s;
}

.crash-mult.live { color: var(--brand); text-shadow: 0 0 40px var(--brand-glow); }
.crash-mult.crashed { color: var(--danger); text-shadow: 0 0 40px var(--danger-glow); }

.crash-status-text { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }

#crash-canvas { width: 100%; display: block; background: #071824; }

.crash-history-bar {
    display: flex; gap: 6px; padding: 12px 16px;
    overflow-x: auto; border-top: 1px solid var(--border);
}

.crash-pill {
    padding: 4px 10px; border-radius: var(--radius-sm);
    font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
    background: var(--bg-hover);
}

.crash-pill.low { color: var(--danger); }
.crash-pill.mid { color: var(--gold); }
.crash-pill.high { color: var(--brand); }

.live-bets-panel h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 8px; }
.bet-row { display: flex; justify-content: space-between; font-size: 0.78rem; padding: 6px 0; border-bottom: 1px solid var(--border); }
.bet-row .user { color: var(--text-secondary); }
.bet-row .amt { color: var(--brand); font-weight: 600; }

/* ─── Slots ─── */
.slot-frame {
    width: 100%; max-width: 720px;
    background: linear-gradient(180deg, #2a1810 0%, #1a0f0a 8%, var(--bg-panel) 8%);
    border: 4px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 24px 20px 20px;
    box-shadow: 0 0 60px rgba(255,184,0,0.15), var(--shadow);
    position: relative;
}

.slot-frame::before {
    content: 'CSS GOLD';
    position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
    font-size: 0.65rem; font-weight: 800; letter-spacing: 0.2em;
    color: var(--gold); opacity: 0.8;
}

.slot-frame.candy::before { content: 'CSS CANDY'; }
.slot-frame.candy { border-color: #ec4899; box-shadow: 0 0 60px rgba(236,72,153,0.15), var(--shadow); }

.slot-window {
    background: #000;
    border-radius: var(--radius-sm);
    padding: 8px;
    border: 2px solid #333;
    overflow: hidden;
}

.slot-reels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }

.slot-reel {
    display: flex; flex-direction: column; gap: 4px;
    background: linear-gradient(180deg, #111 0%, #1a1a2e 50%, #111 100%);
    border-radius: 4px; padding: 4px;
    overflow: hidden;
}

.slot-cell {
    aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
    border-radius: 3px;
    background: rgba(255,255,255,0.03);
    transition: background 0.2s;
    overflow: hidden;
}

.slot-cell img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

.slot-cell.win { background: rgba(0,231,1,0.15); animation: pulseWin 0.5s ease; }
.slot-cell.spinning { animation: reelBlur 0.08s linear infinite; }

@keyframes reelBlur { 0%,100% { opacity: 1; } 50% { opacity: 0.5; transform: translateY(-2px); } }
@keyframes pulseWin { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }

.slot-paylines { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.slot-win-chip {
    background: rgba(0,231,1,0.1); color: var(--brand);
    padding: 4px 10px; border-radius: 999px;
    font-size: 0.72rem; font-weight: 700;
}

/* ─── Roulette ─── */
.roulette-stage { display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; max-width: 800px; }

.roulette-wheel-wrap { position: relative; width: 280px; height: 280px; }

#roulette-wheel {
    width: 100%; height: 100%;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.roulette-pointer {
    position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 20px solid var(--gold);
    z-index: 2; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.roulette-result-display {
    font-size: 4rem; font-weight: 800; width: 100px; height: 100px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 4px solid var(--border); box-shadow: var(--shadow);
}

.roulette-result-display.red { background: #dc2626; }
.roulette-result-display.black { background: #1e293b; }
.roulette-result-display.green { background: #16a34a; }

.roulette-felt {
    width: 100%;
    background: #14532d;
    border: 4px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.4), var(--shadow);
}

.rt-layout { display: flex; gap: 8px; }
.rt-zero-col { display: flex; flex-direction: column; }
.rt-zero {
    flex: 1; display: flex; align-items: center; justify-content: center;
    background: #16a34a; border-radius: 6px; font-weight: 800;
    cursor: pointer; min-height: 80px; transition: var(--transition);
    border: 2px solid transparent;
}
.rt-zero:hover, .rt-zero.selected { border-color: var(--gold); box-shadow: 0 0 12px var(--brand-glow); }

.rt-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.rt-cell {
    padding: 10px 4px; text-align: center; border-radius: 4px;
    font-size: 0.78rem; font-weight: 700; cursor: pointer;
    transition: var(--transition); border: 2px solid transparent;
}
.rt-cell.red { background: #991b1b; }
.rt-cell.black { background: #1c1917; border: 1px solid #444; }
.rt-cell:hover, .rt-cell.selected { border-color: var(--gold); transform: scale(1.05); }

.outside-bets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.outside-bet {
    padding: 10px; text-align: center; border-radius: 6px;
    background: rgba(0,0,0,0.3); font-size: 0.75rem; font-weight: 700;
    cursor: pointer; border: 2px solid transparent; transition: var(--transition);
}
.outside-bet:hover, .outside-bet.selected { border-color: var(--gold); }

/* ─── Blackjack ─── */
.bj-felt {
    width: 100%; max-width: 700px;
    background: radial-gradient(ellipse at 50% 50%, #1a5c3a 0%, #0f3d26 70%);
    border: 8px solid #5c3d1e;
    border-radius: 200px / 80px;
    padding: 48px 40px 40px;
    box-shadow: inset 0 0 60px rgba(0,0,0,0.4), 0 20px 60px rgba(0,0,0,0.5);
    min-height: 380px;
}

.bj-hand-area { margin-bottom: 32px; text-align: center; }
.bj-hand-area h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
.bj-hand-area h4 span { color: var(--gold); }

.card-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.playing-card {
    width: 76px; height: 108px;
    border-radius: 8px;
    background: linear-gradient(145deg, #fff 0%, #f0f0f0 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.8) inset;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    font-weight: 800; position: relative;
    animation: dealCard 0.3s ease backwards;
}

@keyframes dealCard { from { transform: translateY(-20px) rotate(-5deg); opacity: 0; } }

.playing-card.red { color: #dc2626; }
.playing-card.black-suit { color: #1a1a1a; }
.playing-card .rank { font-size: 1.4rem; line-height: 1; }
.playing-card .suit { font-size: 1.6rem; }
.playing-card.card-back {
    background: linear-gradient(135deg, #1e3a8a 0%, #312e81 100%);
    color: transparent;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(255,255,255,0.05) 8px, rgba(255,255,255,0.05) 16px),
                      linear-gradient(135deg, #1e3a8a, #312e81);
}

.bj-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ─── Wheel ─── */
.wheel-stage { position: relative; display: flex; align-items: center; justify-content: center; }
.wheel-pointer-top {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%) translateY(-4px);
    font-size: 2rem; color: var(--gold);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.8));
    z-index: 3;
}

#wheel-canvas { border-radius: 50%; box-shadow: 0 0 40px rgba(0,0,0,0.6), 0 0 80px rgba(255,184,0,0.1); }

/* ─── Keno ─── */
.keno-board {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}

.keno-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; max-width: 520px; margin: 0 auto; }

.keno-ball {
    aspect-ratio: 1; border-radius: 50%;
    background: var(--bg-input);
    border: 2px solid var(--border);
    color: var(--text-secondary);
    font-weight: 800; font-size: 0.85rem;
    cursor: pointer; font-family: inherit;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}

.keno-ball:hover { border-color: var(--brand); color: var(--brand); transform: scale(1.08); }
.keno-ball.selected { background: var(--brand); border-color: var(--brand); color: #000; box-shadow: 0 0 16px var(--brand-glow); }
.keno-ball.drawn { border-color: var(--info); animation: kenoPop 0.3s ease; }
.keno-ball.match { background: var(--brand); border-color: var(--brand); color: #000; animation: kenoWin 0.5s ease; }

@keyframes kenoPop { 50% { transform: scale(1.2); } }
@keyframes kenoWin { 0%,100% { box-shadow: 0 0 16px var(--brand-glow); } 50% { box-shadow: 0 0 32px var(--brand-glow); } }

/* ─── Mines ─── */
.mines-board {
    display: grid; grid-template-columns: repeat(5, 72px); gap: 8px;
    padding: 24px;
    background: var(--bg-panel);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.mine-cell {
    width: 72px; height: 72px;
    border-radius: var(--radius-sm);
    background: linear-gradient(145deg, var(--bg-hover) 0%, var(--bg-input) 100%);
    border: 2px solid var(--border);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem;
    transition: var(--transition);
    box-shadow: 0 4px 0 #0a1219;
}

.mine-cell:hover:not(.revealed):not(.disabled) {
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #0a1219, 0 0 16px var(--brand-glow);
}

.mine-cell:active:not(.disabled) { transform: translateY(2px); box-shadow: 0 2px 0 #0a1219; }
.mine-cell img {
    width: 70%; height: 70%;
    object-fit: cover;
    border-radius: 6px;
}

.mine-cell.revealed.gem { background: linear-gradient(145deg, #064e3b, #065f46); border-color: var(--brand); animation: gemReveal 0.3s ease; }
.mine-cell.revealed.mine { background: linear-gradient(145deg, #7f1d1d, #991b1b); border-color: var(--danger); animation: mineExplode 0.4s ease; }
.mine-cell.disabled { opacity: 0.5; cursor: not-allowed; }

@keyframes gemReveal { 50% { transform: scale(1.15); } }
@keyframes mineExplode { 0% { transform: scale(1); } 50% { transform: scale(1.2); background: #ef4444; } }

/* ─── Dice / Limbo ─── */
.dice-display-box, .limbo-display-box {
    text-align: center;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 64px;
    box-shadow: var(--shadow);
    min-width: 360px;
}

.dice-value-big, .limbo-value-big {
    font-size: 5rem; font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 24px;
}

.dice-track {
    height: 12px; background: var(--bg-input);
    border-radius: 999px; position: relative; overflow: visible;
    border: 1px solid var(--border);
}

.dice-marker {
    position: absolute; top: -6px;
    width: 24px; height: 24px;
    background: var(--brand);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 16px var(--brand-glow);
    transition: left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dice-target-line {
    position: absolute; top: -4px; width: 3px; height: calc(100% + 8px);
    background: var(--gold); opacity: 0.8;
    transform: translateX(-50%);
}

/* ─── Plinko ─── */
.plinko-stage {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow);
}

#plinko-canvas { border-radius: var(--radius-sm); display: block; margin: 0 auto; }

/* ─── HiLo ─── */
.hilo-stage { display: flex; align-items: center; gap: 32px; }
.hilo-card-wrap { perspective: 800px; }
.hilo-card-wrap .playing-card { width: 100px; height: 140px; font-size: 1.2rem; }
.hilo-arrow-icon { font-size: 2.5rem; color: var(--text-muted); }
.hilo-card-wrap.hidden-card .playing-card { opacity: 0.35; transform: rotateY(90deg); }

/* ─── Auth ─── */
.auth-screen {
    min-height: calc(100vh - var(--header-h));
    display: grid; grid-template-columns: 1fr 1fr;
}

.auth-visual {
    background: linear-gradient(135deg, #0d2818 0%, var(--bg-deep) 50%, #1a0a2e 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 48px; position: relative; overflow: hidden;
}

.auth-visual::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0,231,1,0.15) 0%, transparent 50%);
}

.auth-visual-content { position: relative; text-align: center; max-width: 400px; }
.auth-visual-content h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.auth-visual-content p { color: var(--text-secondary); }

.auth-form-side {
    display: flex; align-items: center; justify-content: center;
    padding: 48px; background: var(--bg-panel);
}

.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: 6px; }
.auth-box .sub { color: var(--text-muted); margin-bottom: 28px; font-size: 0.9rem; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.form-error { background: rgba(255,68,68,0.1); color: var(--danger); padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.85rem; border: 1px solid rgba(255,68,68,0.3); }
.form-success { background: rgba(0,231,1,0.1); color: var(--brand); padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.85rem; }
.auth-foot { text-align: center; margin-top: 20px; color: var(--text-muted); font-size: 0.85rem; }
.auth-foot a { color: var(--brand); font-weight: 600; }

/* ─── Wallet / Admin tables ─── */
.page-title { padding: 28px 24px 0; }
.page-title h1 { font-size: 1.5rem; font-weight: 800; }

.wallet-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; padding: 24px; }

.wallet-box {
    background: var(--bg-panel); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
}

.wallet-box h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 12px; }
.wallet-big { font-size: 2.5rem; font-weight: 800; color: var(--brand); }
.wallet-split { display: flex; gap: 20px; margin-top: 8px; font-size: 0.82rem; color: var(--text-muted); }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; margin: 0 24px; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th { color: var(--text-muted); font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.win-text { color: var(--brand); font-weight: 600; }
.loss-text { color: var(--danger); }

.stats-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; padding: 24px; }
.stat-box {
    background: var(--bg-panel); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px; text-align: center;
}
.stat-box .val { font-size: 1.75rem; font-weight: 800; color: var(--brand); }
.stat-box .lbl { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; }

/* ─── Footer ─── */
.site-footer {
    margin-left: var(--sidebar-w);
    background: var(--bg-panel);
    border-top: 1px solid var(--border);
    padding: 32px 24px;
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; max-width: 1400px; margin: 0 auto; }
.footer-badges { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.footer-badge {
    font-size: 0.65rem; font-weight: 800; text-transform: uppercase;
    padding: 4px 10px; border-radius: 4px;
    background: rgba(250, 77, 0, 0.15); color: var(--gold);
    border: 1px solid rgba(250, 77, 0, 0.25);
}
.footer-legal-row {
    display: flex; flex-wrap: wrap; gap: 8px 16px;
    justify-content: center; margin-top: 20px; padding-top: 20px;
    border-top: 1px solid var(--border);
    max-width: 1400px; margin-left: auto; margin-right: auto;
}
.footer-legal-row a { font-size: 0.75rem; color: var(--text-muted); }
.footer-legal-row a:hover { color: var(--brand); }

.age-banner {
    background: linear-gradient(90deg, #7f1d1d, #991b1b);
    color: #fecaca; text-align: center;
    padding: 7px 16px; font-size: 0.78rem; font-weight: 600;
    position: sticky; top: 0; z-index: 101;
    min-height: var(--banner-h);
    flex-shrink: 0;
}
.age-banner a { color: #fff; text-decoration: underline; }

.wallet-policy-note {
    margin: 0 24px 24px; padding: 16px 18px;
    background: rgba(250, 77, 0, 0.06);
    border: 1px solid rgba(250, 77, 0, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6;
}
.wallet-policy-note a { color: var(--brand); }

.terms-check {
    display: flex; gap: 10px; align-items: flex-start;
    font-size: 0.82rem; color: var(--text-muted); line-height: 1.5;
}
.terms-check input { margin-top: 3px; accent-color: var(--brand); flex-shrink: 0; }
.terms-check a { color: var(--brand); }

.promo-features { list-style: none; margin: 12px 0 16px; font-size: 0.85rem; color: var(--text-muted); }
.promo-features li { padding: 4px 0; padding-left: 18px; position: relative; }
.promo-features li::before { content: '✓'; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

.faq-page { max-width: 800px; margin: 0 auto; padding: 48px 24px 80px; }
.faq-hero { text-align: center; margin-bottom: 48px; }
.faq-hero h1 { font-size: clamp(26px, 5vw, 40px); font-weight: 800; margin-bottom: 12px; }
.faq-hero p { color: var(--text-muted); font-size: 16px; max-width: 520px; margin: 0 auto; }
.faq-category { margin-bottom: 40px; }
.faq-category-title {
    font-size: 13px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: var(--brand);
    margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; background: var(--bg-panel); }
.faq-q {
    padding: 16px 20px; font-weight: 600; font-size: 15px;
    cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q:hover { background: rgba(255,255,255,0.03); }
.faq-q .chevron { font-size: 12px; color: var(--text-muted); transition: 0.2s; }
.faq-item.open .chevron { transform: rotate(180deg); color: var(--brand); }
.faq-a { display: none; padding: 0 20px 18px; font-size: 14px; color: var(--text-muted); line-height: 1.8; }
.faq-item.open .faq-a { display: block; }
.faq-a a { color: var(--brand); }
.faq-cta { margin-top: 48px; background: var(--bg-panel); border: 1px solid var(--border); border-radius: 16px; padding: 32px; text-align: center; }
.faq-cta h3 { font-size: 18px; margin-bottom: 10px; }
.faq-cta p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }

.contact-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px; padding: 0 24px 48px; max-width: 900px; margin: 0 auto;
}
.contact-card { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.contact-card h3 { font-size: 0.95rem; margin-bottom: 8px; color: var(--gold); }
.contact-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.contact-card a { color: var(--brand); }

.coming-soon { text-align: center; padding: 48px 24px; max-width: 560px; margin: 0 auto; }
.coming-soon-visual img { width: 100%; max-width: 420px; border-radius: var(--radius-lg); margin-bottom: 24px; box-shadow: var(--shadow); }
.coming-soon h2 { margin-bottom: 12px; }
.coming-soon p { color: var(--text-muted); margin-bottom: 24px; }
.footer-grid p { color: var(--text-muted); font-size: 0.82rem; margin-top: 8px; line-height: 1.6; }
.footer-col h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 12px; }
.footer-col a { display: block; color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 8px; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { text-align: center; padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.78rem; max-width: 1400px; margin-left: auto; margin-right: auto; }

/* ─── Mobile ─── */
.mobile-menu-btn {
    display: none;
    background: none; border: none; color: var(--text);
    cursor: pointer; padding: 8px;
}

.game-shell-wide { grid-template-columns: 300px 1fr; }

/* ─── New game stages ─── */
.tower-stage { display: flex; flex-direction: column-reverse; gap: 8px; padding: 24px; max-width: 320px; margin: 0 auto; }
.tower-step { padding: 14px; text-align: center; background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-sm); font-weight: 700; opacity: 0.5; }
.tower-step.done { background: rgba(250,77,0,0.15); border-color: var(--brand); opacity: 1; }
.tower-step.current { background: var(--brand); color: #fff; opacity: 1; transform: scale(1.03); }
.tower-mult { text-align: center; font-size: 2rem; font-weight: 800; color: var(--gold); margin-top: 16px; }

.coin-stage { text-align: center; padding: 40px; }
.coin-stage img { width: 160px; height: 160px; object-fit: cover; border-radius: 50%; box-shadow: 0 12px 40px rgba(0,0,0,0.5); border: 4px solid var(--gold); }
.coin-stage.flipping img { animation: coinFlip 0.6s ease-in-out; }
@keyframes coinFlip { 0% { transform: rotateY(0); } 50% { transform: rotateY(180deg) scale(1.1); } 100% { transform: rotateY(360deg); } }

.hotline-track { position: relative; height: 48px; background: linear-gradient(90deg, #dc2626 0%, #dc2626 33%, #111 33%, #111 66%, #16a34a 66%); border-radius: 24px; margin: 40px 24px; overflow: hidden; }
.hotline-marker { position: absolute; top: 4px; width: 40px; height: 40px; background: #fff; border-radius: 50%; box-shadow: 0 4px 12px rgba(0,0,0,0.4); left: 0; }
.hotline-colors { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.hotline-btn { padding: 10px; border: 2px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-input); color: #fff; font-weight: 700; cursor: pointer; }
.hotline-btn.active { border-color: var(--brand); box-shadow: 0 0 12px var(--brand-glow); }
.hotline-btn.red { background: #7f1d1d; }
.hotline-btn.black { background: #1c1917; }
.hotline-btn.green { background: #14532d; }

.baccarat-table, .dragon-tiger-stage { display: flex; gap: 24px; justify-content: center; align-items: center; padding: 32px; flex-wrap: wrap; }
.baccarat-hand { text-align: center; }
.card-row { display: flex; gap: 8px; justify-content: center; margin: 12px 0; flex-wrap: wrap; }
.playing-card { background: #fff; color: #111; padding: 16px 12px; border-radius: 8px; font-weight: 800; min-width: 52px; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.playing-card.red { color: #dc2626; }
.playing-card.big { font-size: 2rem; padding: 32px 24px; min-width: 80px; }
.score-badge { display: inline-block; background: var(--brand); color: #fff; padding: 4px 16px; border-radius: 20px; font-weight: 800; }
.dt-vs { font-size: 1.5rem; font-weight: 800; color: var(--gold); }
.baccarat-bets, .coin-choice { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }

.sicbo-dice { display: flex; gap: 16px; justify-content: center; padding: 40px; }
.sicbo-dice .die { width: 64px; height: 64px; background: #fff; color: #111; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.sicbo-total { text-align: center; font-size: 1.25rem; font-weight: 700; color: var(--gold); }

.vp-hand { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 24px; }
.vp-card { background: #fff; color: #111; padding: 20px 14px; border-radius: 10px; min-width: 64px; text-align: center; cursor: pointer; border: 3px solid transparent; font-weight: 800; }
.vp-card.red { color: #dc2626; }
.vp-card.held { border-color: var(--gold); background: #fffbeb; }
.vp-card small { display: block; font-size: 0.6rem; color: var(--brand); margin-top: 4px; }
.vp-paytable { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 16px 24px; font-size: 0.75rem; color: var(--text-muted); }

.mini-roulette-wheel { width: 160px; height: 160px; border-radius: 50%; background: var(--bg-panel); border: 4px solid var(--gold); display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: 800; margin: 40px auto; }
.mini-roulette-wheel.red { border-color: #dc2626; color: #dc2626; }
.mini-roulette-wheel.black { border-color: #64748b; }
.mini-roulette-wheel.green { border-color: #16a34a; color: #16a34a; }

/* ─── Live Casino ─── */
.live-hero .casino-hero-inner h1::after {
    content: '';
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--live);
    border-radius: 50%;
    margin-left: 10px;
    box-shadow: 0 0 10px var(--live);
    animation: live-pulse 1.5s infinite;
}
@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}
.game-card-badge.live { background: var(--live); color: #000; font-weight: 800; }
.game-card-live { border-color: rgba(0, 231, 1, 0.2); }
.game-card-live:hover { border-color: var(--live); box-shadow: var(--shadow), 0 0 20px rgba(0, 231, 1, 0.25); }
.live-pagination { text-align: center; padding: 16px 24px 0; }
.live-game-hero { position: relative; min-height: 340px; overflow: hidden; margin-bottom: 24px; }
.live-game-hero-bg { position: absolute; inset: 0; }
.live-game-hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.45); }
.live-game-hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, var(--bg-deep) 0%, transparent 60%);
}
.live-game-hero-content { position: relative; z-index: 1; padding: 48px 24px; }
.live-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(0, 231, 1, 0.15); color: var(--live);
    padding: 6px 14px; border-radius: 999px; font-size: 0.75rem; font-weight: 800;
    margin-bottom: 12px; border: 1px solid rgba(0, 231, 1, 0.35);
}
.live-dot { width: 8px; height: 8px; background: var(--live); border-radius: 50%; animation: live-pulse 1.5s infinite; }
.live-game-hero-content h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.live-game-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.live-info-card {
    background: var(--bg-panel); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px;
}
.live-info-card h3 { font-size: 0.95rem; margin-bottom: 8px; color: var(--brand); }

@media (max-width: 1024px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
    .sidebar.open { transform: translateX(0); }
    .app-main { grid-column: 1; }
    .live-ticker { left: 0; }
    .site-footer { margin-left: 0; }
    .mobile-menu-btn { display: flex; }
    .game-shell { grid-template-columns: 1fr; }
    .game-controls { border-right: none; border-bottom: 1px solid var(--border); }
    .hero-banner-inner { grid-template-columns: 1fr; padding: 32px 24px; }
    .hero-visual { display: none; }
    .promo-tile.featured { grid-column: span 1; }
    .auth-screen { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .live-game-info { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .games-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .mines-board { grid-template-columns: repeat(5, 56px); }
    .mine-cell { width: 56px; height: 56px; font-size: 1.4rem; }
    .crash-mult { font-size: 2.5rem; }
}

/* ─── Language switcher ─── */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px 5px;
}

.lang-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 14px;
    opacity: 0.5;
    transition: opacity .15s, background .15s;
}

.lang-btn:hover { opacity: 0.85; }

.lang-btn.lang-active {
    opacity: 1;
    background: var(--bg-panel);
    box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
