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

:root {
    --bg-main: #07090E;
    --bg-sidebar: #0B0E15;
    --bg-card: #0E121C;
    --bg-panel: #0B0E15;
    --bg-input: #07090E;
    --border-color: #161C28;
    --border-subtle: rgba(255, 255, 255, 0.05);

    --accent-cyan: #2EE0C8;
    --accent-cyan-hover: #4FF4DE;
    --accent-blue: #3B82F6;
    --accent-purple: #8B5CF6;
    --accent-gold: #F59E0B;
    --accent-green: #10B981;
    --accent-red: #EF4444;

    --text-primary: #FFFFFF;
    --text-secondary: #8E9BAE;
    --text-muted: #566378;

    --sidebar-w: 240px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: #1B2232; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2A354E; }

/* Main App Shell */
.app-shell {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-w);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    user-select: none;
}

.sidebar-header {
    height: 72px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #2EE0C8 0%, #14B8A6 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    box-shadow: 0 0 15px rgba(46, 224, 200, 0.4);
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.nav-link.active {
    color: var(--accent-cyan);
    background: rgba(46, 224, 200, 0.08);
    border-left: 3px solid var(--accent-cyan);
}

.nav-link svg, .nav-link img {
    width: 18px;
    height: 18px;
    opacity: 0.8;
    flex-shrink: 0;
}

.nav-link:hover svg, .nav-link.active svg,
.nav-link:hover img, .nav-link.active img {
    opacity: 1;
}

.live-badge {
    margin-left: auto;
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.sidebar-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 14px 6px;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.icon-btn:hover { color: #fff; }

/* Main Wrapper */
.main-wrapper {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Topbar */
.topbar {
    height: 72px;
    background: rgba(7, 9, 14, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.top-stats-row {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 0.85rem;
}

.stat-item .val {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
}

.stat-item .lbl {
    color: var(--text-muted);
    font-weight: 500;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10B981;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wallet-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0B0E15;
    border: 1px solid var(--border-color);
    padding: 7px 16px;
    border-radius: var(--radius-sm);
}

.wallet-amount {
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
}

.mode-pill {
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
}

.mode-pill.demo {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
    border-color: rgba(245, 158, 11, 0.25);
}

.mode-pill.smp {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border-color: rgba(16, 185, 129, 0.25);
}

.admin-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 800;
    background: rgba(46, 224, 200, 0.12);
    color: var(--accent-cyan);
    border: 1px solid rgba(46, 224, 200, 0.35);
    text-decoration: none;
    transition: var(--transition);
}

.admin-header-btn:hover {
    background: rgba(46, 224, 200, 0.22);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 224, 200, 0.2);
}

.btn-cyan {
    background: var(--accent-cyan);
    color: #03201B;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-cyan:hover {
    background: var(--accent-cyan-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(46, 224, 200, 0.25);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.12);
}

.avatar-img {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

/* Category Navigation Pills */
.category-nav-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 36px 0;
    overflow-x: auto;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: #0E121C;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
}

.category-pill:hover, .category-pill.active {
    background: #141A28;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
}

.category-pill.active {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* Page Content */
.content-body {
    padding: 24px 36px 60px;
    flex: 1;
}

/* Hero Section */
.hero-compact {
    background: radial-gradient(circle at 75% 50%, rgba(46, 224, 200, 0.07), transparent 60%), #0D111A;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 44px 44px;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
}

.hero-tag {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--accent-cyan);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-tag::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan);
}

.hero-heading {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero-heading span { color: var(--accent-cyan); }

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 580px;
    line-height: 1.6;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    align-items: center;
}

/* Section Header */
.section-headline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.see-all-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

/* 15 Game Grid Cards */
.game-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

@media (max-width: 1400px) { .game-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1100px) { .game-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) {
    .sidebar { transform: translateX(-100%); }
    .main-wrapper { margin-left: 0; }
    .game-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) { .game-grid { grid-template-columns: 1fr; } }

.game-card-glint {
    display: flex;
    flex-direction: column;
    aspect-ratio: 0.73;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.game-card-glint:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.grad-mines { background: linear-gradient(180deg, #104E5B 0%, #082229 100%); }
.grad-moles { background: linear-gradient(180deg, #225132 0%, #0D2315 100%); }
.grad-towers { background: linear-gradient(180deg, #442469 0%, #1C0D2E 100%); }
.grad-coinflip { background: linear-gradient(180deg, #7C5A14 0%, #2F2105 100%); }
.grad-blackjack { background: linear-gradient(180deg, #165636 0%, #092617 100%); }
.grad-dice { background: linear-gradient(180deg, #782622 0%, #300D0B 100%); }
.grad-limbo { background: linear-gradient(180deg, #1D4076 0%, #09172E 100%); }
.grad-plinko { background: linear-gradient(180deg, #6C1B48 0%, #2B081B 100%); }
.grad-crash { background: linear-gradient(180deg, #783818 0%, #2D1306 100%); }
.grad-wheel { background: linear-gradient(180deg, #371D5C 0%, #150828 100%); }
.grad-cases { background: linear-gradient(180deg, #321C54 0%, #130924 100%); }
.grad-chicken { background: linear-gradient(180deg, #6B3414 0%, #291105 100%); }
.grad-hilo { background: linear-gradient(180deg, #1B3C6E 0%, #0A172B 100%); }
.grad-upgrader { background: linear-gradient(180deg, #144B59 0%, #081E24 100%); }
.grad-keno { background: linear-gradient(180deg, #24294F 0%, #0D0F21 100%); }

.card-top-tag {
    text-align: center;
    padding-top: 14px;
    font-size: 0.65rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.card-artwork-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 20px;
}

.card-artwork-wrap img, .card-artwork-wrap svg {
    width: 100%;
    max-width: 135px;
    max-height: 135px;
    filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.55));
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.game-card-glint:hover .card-artwork-wrap img,
.game-card-glint:hover .card-artwork-wrap svg {
    transform: scale(1.12);
}

.card-title-text {
    font-size: 1.35rem;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #fff;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.card-bottom-bar {
    padding: 0 16px 14px;
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ========================================================
   DONUTGLINT TWO-PANEL STUDIO GAME VIEW
   ======================================================== */

.studio-arena {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.studio-arena.active {
    display: flex;
}

.studio-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
}

.studio-game-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.studio-game-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #0E121C;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.studio-game-icon-box img, .studio-game-icon-box svg {
    width: 100%;
    height: 100%;
}

.studio-title-wrap h2 {
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #fff;
}

.studio-title-wrap p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.studio-actions-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.studio-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: #0E121C;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.studio-pill-btn:hover {
    background: #161D2B;
    color: #fff;
}

/* Two-Panel Layout */
.studio-two-panel-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 16px;
    min-height: 620px;
}

@media (max-width: 950px) {
    .studio-two-panel-grid {
        grid-template-columns: 1fr;
    }
}

/* Left Panel: Betting & Options */
.studio-controls-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tab-toggle-group {
    display: flex;
    background: #06080C;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3px;
}

.tab-toggle-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 8px 0;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.tab-toggle-btn.active {
    background: #141A28;
    color: #fff;
}

.ctrl-section-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.bet-input-box {
    display: flex;
    align-items: center;
    background: #0B0E17;
    border: 1px solid #1E2638;
    border-radius: 8px;
    padding: 2px 4px 2px 10px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bet-input-box:focus-within {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(45, 212, 191, 0.2);
}

.bet-currency-symbol {
    color: #64748B;
    font-weight: 800;
    font-size: 1.05rem;
    margin-right: 4px;
    flex-shrink: 0;
    user-select: none;
}

.bet-text-field {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    padding: 7px 4px;
    outline: none;
    font-family: inherit;
}

.bet-quick-math-btns {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    margin-left: auto;
}

.math-btn {
    background: #131A29;
    border: 1px solid #20293D;
    color: #94A3B8;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 7px;
    border-radius: 5px;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.math-btn:hover {
    background: #1E273D;
    color: #F8FAFC;
    border-color: #334155;
}

.quick-chips-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 8px;
}

.chip-pill {
    background: #0E121C;
    border: 1px solid var(--border-color);
    color: var(--accent-cyan);
    font-size: 0.76rem;
    font-weight: 800;
    padding: 7px 0;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.chip-pill:hover {
    background: rgba(46, 224, 200, 0.12);
    border-color: var(--accent-cyan);
}

/* Mines Specific Selector */
.mines-pill-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.mine-count-btn {
    background: #0E121C;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 8px 0;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.mine-count-btn:hover { background: #161D2B; color: #fff; }
.mine-count-btn.active {
    background: rgba(46, 224, 200, 0.15);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* Multiplier Ladder Table */
.ladder-table-box {
    background: #06080C;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.78rem;
}

.ladder-table-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1.2fr;
    padding: 6px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.ladder-table-header {
    background: #0A0D15;
    font-weight: 800;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
}

.ladder-table-row.active-step {
    background: rgba(46, 224, 200, 0.1);
    color: var(--accent-cyan);
    font-weight: 800;
}

.ladder-summary-bar {
    display: flex;
    justify-content: space-between;
    font-size: 0.76rem;
    color: var(--text-muted);
    padding: 4px 2px;
}

.studio-main-action-btn {
    width: 100%;
    padding: 15px;
    background: var(--accent-cyan);
    color: #03201B;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-weight: 900;
    cursor: pointer;
    transition: var(--transition);
    text-transform: capitalize;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.studio-main-action-btn:hover {
    background: var(--accent-cyan-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(46, 224, 200, 0.3);
}

.studio-main-action-btn.cashout {
    background: #10B981;
    color: #fff;
}
.studio-main-action-btn.cashout:hover {
    background: #059669;
}

/* Right Panel: Game Arena / Stage */
.studio-stage-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.stage-top-status-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.82rem;
    font-weight: 700;
}

.stage-stat-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #06080C;
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 8px;
}

.stage-center-canvas {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    position: relative;
}

.big-stage-multiplier {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

/* 5x5 Mines Grid */
.mines-5x5-grid {
    display: grid;
    grid-template-columns: repeat(5, 76px);
    grid-template-rows: repeat(5, 76px);
    gap: 10px;
}

@media (max-width: 600px) {
    .mines-5x5-grid {
        grid-template-columns: repeat(5, 54px);
        grid-template-rows: repeat(5, 54px);
        gap: 6px;
    }
}

.mine-tile {
    background: #131826;
    border: 1px solid #1C2438;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.08);
    transition: transform 0.15s, background 0.15s;
    user-select: none;
    position: relative;
}

.mine-tile:hover {
    background: #1A2234;
    transform: translateY(-2px);
    border-color: #2D3954;
}

.mine-tile.revealed-gem {
    background: radial-gradient(circle, #0F766E 0%, #042F2E 100%);
    border-color: #2DD4BF;
    box-shadow: 0 0 16px rgba(45, 212, 191, 0.4);
    animation: tilePop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mine-tile.revealed-bomb {
    background: radial-gradient(circle, #991B1B 0%, #450A0A 100%);
    border-color: #F87171;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.5);
    animation: tilePop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mine-tile img, .mine-tile svg {
    width: 65%;
    height: 65%;
}

@keyframes tilePop {
    0% { transform: scale(0.85); opacity: 0; }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}

/* 3D Spinning Coin for Coinflip */
.coin-3d-stage {
    perspective: 1000px;
    width: 220px;
    height: 220px;
    margin: 20px auto;
}

.coin-3d-disc {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.coin-3d-disc.flipping {
    animation: coinSpin 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes coinSpin {
    0% { transform: rotateY(0deg) translateY(0); }
    40% { transform: rotateY(1080deg) translateY(-80px); }
    70% { transform: rotateY(1800deg) translateY(-20px); }
    100% { transform: rotateY(2160deg) translateY(0); }
}

/* Dual-Color Dice Slider */
.dice-slider-track {
    width: 100%;
    max-width: 520px;
    position: relative;
    margin: 30px auto;
}

.dice-slider-rail {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #EF4444 0%, #EF4444 50%, #10B981 50%, #10B981 100%);
    position: relative;
}

.dice-range-input {
    width: 100%;
    position: absolute;
    top: -6px;
    left: 0;
    opacity: 0;
    height: 24px;
    cursor: pointer;
}

.dice-thumb-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #000;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    user-select: none;
}

/* Blackjack Felt Table */
.blackjack-felt {
    width: 100%;
    max-width: 640px;
    height: 380px;
    background: radial-gradient(circle at 50% 60%, #064E3B 0%, #022C22 100%);
    border: 2px solid #047857;
    border-radius: 200px 200px 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    position: relative;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.6);
}

.felt-gold-banner {
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #FDE047;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.card-slots-row {
    display: flex;
    gap: 12px;
    min-height: 90px;
    align-items: center;
}

.bj-playing-card {
    width: 60px;
    height: 88px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6px;
    font-weight: 900;
    color: #0F172A;
    animation: dealCard 0.25s ease-out;
}

.bj-playing-card.red { color: #DC2626; }

@keyframes dealCard {
    from { transform: translateY(-40px) scale(0.8); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Recent Results Row */
.stage-recent-bar {
    padding: 12px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ========================================================
   TOWERS, PLINKO, CRASH, UPGRADER, LIMBO STUDIO STYLES
   ======================================================== */

/* TOWERS */
.towers-stage-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.tower-floor-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    opacity: 0.5;
    transition: var(--transition);
}

.tower-floor-row.active-floor {
    opacity: 1;
    transform: scale(1.02);
}

.tower-floor-row.cleared-floor {
    opacity: 0.85;
}

.tower-floor-number {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-muted);
    width: 16px;
    text-align: right;
}

.tower-blocks-group {
    display: flex;
    gap: 8px;
    flex: 1;
}

.tower-block-btn {
    flex: 1;
    height: 38px;
    background: #141A28;
    border: 1px solid #1F283C;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.tower-floor-row.active-floor .tower-block-btn {
    border-color: #2D3954;
    background: #192133;
}

.tower-floor-row.active-floor .tower-block-btn:hover {
    background: #232E47;
    border-color: var(--accent-cyan);
    transform: translateY(-1px);
}

.tower-block-btn.safe-picked {
    background: radial-gradient(circle, #0F766E 0%, #042F2E 100%);
    border-color: #2DD4BF;
    box-shadow: 0 0 12px rgba(45, 212, 191, 0.4);
}

.tower-block-btn.trap-picked {
    background: radial-gradient(circle, #991B1B 0%, #450A0A 100%);
    border-color: #F87171;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

.tower-floor-mult {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    width: 44px;
    text-align: left;
}

.tower-ground-bar {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #10B981 0%, #047857 100%);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
    margin-top: 6px;
}

/* PLINKO */
.plinko-canvas-wrap {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.plinko-buckets-row {
    display: flex;
    gap: 4px;
    width: 100%;
    margin-top: 14px;
    justify-content: center;
}

.plinko-bucket {
    flex: 1;
    max-width: 42px;
    padding: 8px 0;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 900;
    color: #fff;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    transition: transform 0.15s;
    user-select: none;
}

.plinko-bucket.bounce {
    transform: scale(1.18) translateY(-4px);
}

/* CRASH */
.crash-stage-grid {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 16px;
    width: 100%;
    height: 100%;
    min-height: 480px;
}

@media (max-width: 800px) {
    .crash-stage-grid { grid-template-columns: 1fr; }
}

.crash-canvas-container {
    background: #06080C;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crash-top-history {
    position: absolute;
    top: 14px;
    left: 18px;
    right: 18px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    z-index: 10;
}

.crash-pill {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.crash-pill.win { background: rgba(16, 185, 129, 0.15); color: #10B981; }
.crash-pill.loss { background: rgba(239, 68, 68, 0.15); color: #EF4444; }

.crash-hud-multiplier {
    position: absolute;
    font-size: 5rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
    pointer-events: none;
    z-index: 5;
}

.crash-multiplayer-panel {
    background: #06080C;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 14px;
    display: flex;
    flex-direction: column;
}

/* UPGRADER */
.upgrader-wheel-box {
    width: 320px;
    height: 320px;
    position: relative;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upgrader-svg-dial {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.upgrader-center-item-card {
    position: absolute;
    width: 140px;
    height: 140px;
    background: #0E121C;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.upgrader-center-item-card:hover {
    border-color: var(--accent-cyan);
    transform: scale(1.04);
}

.upgrader-pointer-needle {
    position: absolute;
    top: -6px;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 14px solid #fff;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.8));
    z-index: 10;
}


/* ========================================================
   GLOBAL SMOOTH ANIMATIONS & MICRO-INTERACTIONS
   ======================================================== */

@keyframes studioFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.studio-arena.active {
    animation: studioFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pulseWinGlow {
    0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(46, 224, 200, 0)); }
    50% { transform: scale(1.04); filter: drop-shadow(0 0 24px rgba(46, 224, 200, 0.6)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(46, 224, 200, 0)); }
}

.pulse-win {
    animation: pulseWinGlow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Button & Chip Interaction Polish */
button:active:not(:disabled), .chip-pill:active {
    transform: scale(0.96) !important;
}

.game-card-glint {
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease !important;
}

.game-card-glint:hover {
    transform: translateY(-5px) scale(1.018) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(46, 224, 200, 0.16) !important;
    border-color: rgba(46, 224, 200, 0.4) !important;
}

.studio-main-action-btn {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, box-shadow 0.2s ease !important;
}

.studio-main-action-btn:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.01) !important;
    box-shadow: 0 8px 24px rgba(46, 224, 200, 0.35) !important;
}

.studio-main-action-btn.cashout:hover:not(:disabled) {
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4) !important;
}

/* Smooth input focus glow */
.bet-input-box {
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.bet-input-box:focus-within {
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 0 12px rgba(46, 224, 200, 0.25) !important;
}

/* Modal Smooth Entrance */
.modal-window {
    animation: modalSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-14px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ========================================================
   CHICKEN ROAD CROSSING STAGE STYLES & ANIMATIONS
   ======================================================== */

.chicken-road-arena {
    width: 100%;
    max-width: 720px;
    height: 380px;
    background: #0D111A;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    display: flex;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.8);
    user-select: none;
}

/* Left Sidewalk & Grass Border */
.chicken-sidewalk {
    width: 90px;
    height: 100%;
    background: #171E2C;
    border-right: 4px solid #2B384E;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 16px 8px;
    z-index: 5;
    flex-shrink: 0;
}

.chicken-grass-strip {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 16px;
    background: linear-gradient(180deg, #15803D 0%, #166534 100%);
    box-shadow: inset -2px 0 6px rgba(0,0,0,0.4);
}

.chicken-traffic-light {
    width: 24px;
    height: 48px;
    background: #0A0D14;
    border: 2px solid #334155;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 4px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    margin-left: 10px;
}

.traffic-bulb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1E293B;
}

.traffic-bulb.green-active {
    background: #10B981;
    box-shadow: 0 0 10px #10B981;
}

.traffic-bulb.red-active {
    background: #EF4444;
    box-shadow: 0 0 10px #EF4444;
}

.chicken-sign-box {
    width: 38px;
    height: 38px;
    background: #F59E0B;
    border: 2px solid #000;
    border-radius: 4px;
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    margin-left: 10px;
}

.chicken-sign-icon {
    transform: rotate(-45deg);
    font-size: 1.1rem;
}

/* Chicken Character */
.chicken-sprite-actor {
    position: absolute;
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    transition: left 0.35s cubic-bezier(0.2, 0.8, 0.4, 1.2), top 0.35s cubic-bezier(0.2, 0.8, 0.4, 1.2);
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.6));
    pointer-events: none;
}

.chicken-sprite-actor.hopping {
    animation: chickenHop 0.35s cubic-bezier(0.2, 0.8, 0.4, 1.2);
}

.chicken-sprite-actor.splatted {
    animation: chickenSplat 0.4s forwards;
}

.chicken-sprite-actor.celebrating {
    animation: chickenVictory 0.6s infinite alternate;
}

@keyframes chickenHop {
    0% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-80px) scale(1.18) rotate(-6deg); }
    100% { transform: translateY(-50%) scale(1); }
}

@keyframes chickenSplat {
    0% { transform: translateY(-50%) scale(1); opacity: 1; }
    50% { transform: translateY(-50%) scale(1.5) rotate(90deg); filter: brightness(2) drop-shadow(0 0 20px #EF4444); }
    100% { transform: translateY(-50%) scale(0.6) rotate(180deg); opacity: 0; }
}

@keyframes chickenVictory {
    0% { transform: translateY(-50%) scale(1); }
    100% { transform: translateY(-70px) scale(1.2) rotate(10deg); }
}

/* Road Lanes Track */
.chicken-lanes-track {
    flex: 1;
    height: 100%;
    display: flex;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
}

.chicken-road-lane {
    flex: 1;
    min-width: 44px;
    height: 100%;
    position: relative;
    border-right: 1px dashed rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease;
}

.chicken-road-lane.active-lane {
    background: linear-gradient(180deg, rgba(234, 179, 8, 0.0) 0%, rgba(234, 179, 8, 0.16) 50%, rgba(234, 179, 8, 0.0) 100%);
}

.chicken-road-lane.cleared-lane {
    background: linear-gradient(180deg, rgba(46, 224, 200, 0.0) 0%, rgba(46, 224, 200, 0.12) 50%, rgba(46, 224, 200, 0.0) 100%);
}

.chicken-grate-box {
    width: 32px;
    height: 48px;
    background: #111622;
    border: 2px solid #232D42;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.8), 0 3px 6px rgba(0,0,0,0.3);
    transition: all 0.25s ease;
}

.chicken-road-lane.active-lane .chicken-grate-box {
    border-color: #F59E0B;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.5);
    transform: scale(1.08);
}

.chicken-road-lane.cleared-lane .chicken-grate-box {
    border-color: #2DD4BF;
    background: #082422;
    box-shadow: 0 0 14px rgba(45, 212, 191, 0.4);
}

.grate-bar {
    width: 20px;
    height: 2px;
    background: #334155;
    border-radius: 1px;
}

.chicken-road-lane.active-lane .grate-bar {
    background: #F59E0B;
}

.chicken-road-lane.cleared-lane .grate-bar {
    background: #2DD4BF;
}

.chicken-lane-mult-pill {
    margin-top: 14px;
    background: #0B0E16;
    border: 1px solid #1E2738;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 4px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.chicken-road-lane.active-lane .chicken-lane-mult-pill {
    background: rgba(245, 158, 11, 0.15);
    border-color: #F59E0B;
    color: #F59E0B;
}

.chicken-road-lane.cleared-lane .chicken-lane-mult-pill {
    background: rgba(45, 212, 191, 0.15);
    border-color: #2DD4BF;
    color: #2DD4BF;
}

/* Fast Splat Car or Fire Burst */
.splat-hazard-effect {
    position: absolute;
    width: 60px;
    height: 60px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 30;
    animation: hazardBurst 0.5s ease-out forwards;
}

@keyframes hazardBurst {
    0% { transform: translate(-50%, -50%) scale(0.4); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

/* ========================================================
   STUDIO ROULETTE (1:1 DonutGlint 3D European Wheel & Felt)
   ======================================================== */
.roulette-stage-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    user-select: none;
}

.roulette-wheel-wrapper {
    position: relative;
    width: 330px;
    height: 330px;
    margin: 8px auto 20px auto;
    border-radius: 50%;
    background: radial-gradient(circle, #0F1420 0%, #07090F 85%);
    box-shadow: 
        0 0 0 10px #705315,
        0 0 0 14px #C9A043,
        0 0 0 16px #483307,
        0 16px 36px rgba(0, 0, 0, 0.8),
        inset 0 0 25px rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.roulette-wheel-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
}

.roulette-ball {
    position: absolute;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #FFFFFF 0%, #E2E8F0 50%, #94A3B8 100%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.8), 0 0 8px rgba(255, 255, 255, 0.8);
    pointer-events: none;
    z-index: 25;
    transform: translate(-50%, -50%);
    display: none;
}

.roulette-center-turret {
    position: absolute;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 38%, #FDE68A 0%, #D97706 60%, #78350F 100%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

.roulette-turret-cap {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #FEF08A 0%, #B45309 80%);
    border: 2px solid #78350F;
}

/* DonutGlint Circular Chip Selector */
.roulette-chip-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px dashed rgba(255, 255, 255, 0.35);
    background: #181D2A;
    color: #fff;
    font-weight: 900;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.roulette-chip-circle:hover {
    transform: translateY(-2px) scale(1.05);
}

.roulette-chip-circle.active {
    transform: scale(1.12);
    border-color: #fff;
    box-shadow: 0 0 14px rgba(45, 212, 191, 0.8);
}

.roulette-chip-circle[data-chip="1000"] { background: radial-gradient(circle, #4B5563, #1F2937); }
.roulette-chip-circle[data-chip="10000"] { background: radial-gradient(circle, #0D9488, #0F766E); border-color: #2DD4BF; }
.roulette-chip-circle[data-chip="100000"] { background: radial-gradient(circle, #059669, #047857); }
.roulette-chip-circle[data-chip="1000000"] { background: radial-gradient(circle, #DC2626, #991B1B); }
.roulette-chip-circle[data-chip="10000000"] { background: radial-gradient(circle, #7C3AED, #5B21B6); }
.roulette-chip-circle[data-chip="100000000"] { background: radial-gradient(circle, #D97706, #B45309); border-color: #FDE047; }

/* Felt Table Grid */
.roulette-table-grid {
    display: grid;
    grid-template-columns: 52px repeat(12, 1fr) 52px;
    gap: 3px;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    background: #080C14;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid #1E2638;
}

.roulette-felt-cell {
    height: 42px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    color: #fff;
    position: relative;
    user-select: none;
    transition: background 0.15s ease, transform 0.1s ease;
}

.roulette-felt-cell:hover {
    filter: brightness(1.2);
}

.roulette-felt-cell:active {
    transform: scale(0.96);
}

.roulette-chip-on-felt {
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.7);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.7);
    pointer-events: none;
    z-index: 10;
    animation: chipDrop 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes chipDrop {
    0% { transform: scale(1.4) translateY(-8px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* ========================================================
   STUDIO TOWERS (1:1 DonutGlint Aesthetic)
   ======================================================== */
.tower-ground-bar {
    width: 100%;
    max-width: 380px;
    height: 4px;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0) 0%, #10B981 50%, rgba(16, 185, 129, 0) 100%);
    box-shadow: 0 0 12px #10B981;
    margin: 10px auto 4px auto;
    border-radius: 2px;
}

.tower-ground-label {
    text-align: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: #64748B;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.tower-block-btn {
    height: 40px;
    border-radius: 8px;
    background: #141A28;
    border: 1px solid #1E273A;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 3px 6px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.tower-floor-row.active-floor .tower-block-btn {
    background: #182032;
    border-color: #2E3B55;
    cursor: pointer;
}

.tower-floor-row.active-floor .tower-block-btn:hover {
    background: #232E48;
    border-color: #2DD4BF;
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(45, 212, 191, 0.3);
}

.tower-block-btn.safe-picked {
    background: rgba(45, 212, 191, 0.15) !important;
    border-color: #2DD4BF !important;
    box-shadow: 0 0 14px rgba(45, 212, 191, 0.4) !important;
}

.tower-block-btn.trap-picked {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: #EF4444 !important;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.5) !important;
}

/* Plinko Bucket Pulse */
.plinko-bucket-item {
    transition: transform 0.15s ease, filter 0.15s ease;
}

.plinko-bucket-item.bucket-hit {
    animation: bucketBounce 0.35s ease-out;
    filter: brightness(1.5) drop-shadow(0 0 10px currentColor);
}

@keyframes bucketBounce {
    0% { transform: translateY(0) scale(1); }
    40% { transform: translateY(6px) scale(1.12); }
    100% { transform: translateY(0) scale(1); }
}
