/* Game UI & Mechanics Styling */

.game-play-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    width: 100%;
}

@media (max-width: 900px) {
    .game-play-wrapper {
        grid-template-columns: 1fr;
    }
}

.game-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.btn-back-lobby {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.btn-back-lobby:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.game-display-area {
    background: #0d1118;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 440px;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.5);
}

.jackpot-display-area {
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    min-height: 460px;
}

.pizza-wheel-wrapper {
    position: relative;
    width: 340px;
    height: 340px;
    max-width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.wheel-pizza-pointer {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8));
    font-size: 38px;
    color: #fbbf24;
}

#pizza-jackpot-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(251, 191, 36, 0.25);
    will-change: transform;
}

#pizza-jackpot-wheel svg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
}

.dice-display-area {
    flex-direction: column;
    justify-content: center;
    padding: 30px 24px;
    min-height: 440px;
}

.keno-display-area {
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    min-height: 460px;
}

.target-display-area {
    position: relative;
    min-height: 440px;
    padding: 20px;
}

.target-canvas-box {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.target-canvas-box svg {
    width: 100%;
    height: 100%;
}

.mines-display-area,
.tower-display-area,
.plinko-display-area,
.hilo-display-area {
    min-height: 460px;
    padding: 20px;
}

/* ========================================================
   PREMIUM ROULETTE ARENA (DESKTOP & MOBILE OPTIMIZED)
   ======================================================== */
.roulette-play-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 1080px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

/* 1. Previous Rolls & Streak Bar */
.roulette-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(13, 17, 24, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg, 14px);
    padding: 10px 18px;
    gap: 16px;
    backdrop-filter: blur(10px);
}

.roulette-top-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.roulette-history-scroll {
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
}

.roulette-history-scroll::-webkit-scrollbar {
    display: none;
}

.history-label {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: var(--text-muted, #94a3b8);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    text-transform: uppercase;
}

.roulette-history-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-chip {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.85rem;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    color: #ffffff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    user-select: none;
}

.history-chip.chip-new {
    animation: chipPopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes chipPopIn {
    0% { transform: scale(0) rotate(-45deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.history-chip:hover {
    transform: scale(1.18);
}

.chip-red {
    background: radial-gradient(circle at 35% 35%, #fb7185 0%, #e11d48 60%, #9f1239 100%);
    border: 2px solid #fecdd3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.chip-black {
    background: radial-gradient(circle at 35% 35%, #475569 0%, #1e293b 60%, #0f172a 100%);
    border: 2px solid #94a3b8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.chip-green {
    background: radial-gradient(circle at 35% 35%, #34d399 0%, #10b981 60%, #064e3b 100%);
    border: 2px solid #a7f3d0;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.roulette-stats-section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.streak-pill {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.streak-red { color: #f43f5e; border-color: rgba(244, 63, 94, 0.25); }
.streak-green { color: #10b981; border-color: rgba(16, 185, 129, 0.25); }
.streak-black { color: #94a3b8; border-color: rgba(148, 163, 184, 0.25); }

/* 2. Wheel Stage & Laser Pointer */
.roulette-wheel-stage {
    position: relative;
    width: 100%;
    height: 156px;
    background: radial-gradient(ellipse at 50% 50%, #141c2b 0%, #080b11 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: inset 0 2px 30px rgba(0, 0, 0, 0.85), 0 12px 36px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
}

.wheel-vignette {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 160px;
    pointer-events: none;
    z-index: 8;
}

.vignette-left {
    left: 0;
    background: linear-gradient(to right, #080b11 12%, rgba(8, 11, 17, 0.85) 45%, transparent 100%);
}

.vignette-right {
    right: 0;
    background: linear-gradient(to left, #080b11 12%, rgba(8, 11, 17, 0.85) 45%, transparent 100%);
}

.wheel-pointer-container {
    position: absolute;
    left: 50%;
    top: 4px;
    bottom: 4px;
    transform: translateX(-50%);
    width: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    z-index: 14;
}

.pointer-arrow-top {
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 13px solid #ffffff;
    filter: drop-shadow(0 0 8px #10b981) drop-shadow(0 2px 5px rgba(0,0,0,0.9));
    transform: translateY(1px);
}

.pointer-laser-line {
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #10b981 30%, #38bdf8 70%, #ffffff 100%);
    box-shadow: 0 0 10px #10b981, 0 0 20px rgba(16, 185, 129, 0.6);
    opacity: 0.95;
}

.pointer-arrow-bottom {
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 13px solid #ffffff;
    filter: drop-shadow(0 0 8px #10b981) drop-shadow(0 -2px 5px rgba(0,0,0,0.9));
    transform: translateY(-1px);
}

.roulette-wheel-track {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    will-change: transform;
}

.roulette-card {
    width: 82px;
    height: 96px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    flex-shrink: 0;
    user-select: none;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 6px 14px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
}

.roulette-card .card-num {
    font-size: 1.65rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.roulette-card .card-crown {
    position: absolute;
    top: 6px;
    font-size: 0.85rem;
    filter: drop-shadow(0 0 4px #fbbf24);
}

.card-red {
    background: linear-gradient(155deg, #f43f5e 0%, #be123c 100%);
    border: 1px solid rgba(251, 113, 133, 0.4);
    border-bottom: 4px solid #9f1239;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.card-black {
    background: linear-gradient(155deg, #242f40 0%, #0f172a 100%);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-bottom: 4px solid #020617;
    color: #e2e8f0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.card-green {
    background: linear-gradient(155deg, #10b981 0%, #047857 100%);
    border: 1px solid rgba(52, 211, 153, 0.6);
    border-bottom: 4px solid #064e3b;
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 20px rgba(16, 185, 129, 0.35);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.card-winner-glow {
    animation: winnerCardPulse 1.2s infinite alternate ease-in-out;
    z-index: 5;
}

@keyframes winnerCardPulse {
    0% { transform: scale(1.05); box-shadow: 0 0 22px #10b981, inset 0 0 14px #fff; }
    100% { transform: scale(1.10); box-shadow: 0 0 34px #34d399, inset 0 0 22px #fff; }
}

/* 3. Live Status & Result Ribbon */
.roulette-status-ribbon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(16, 24, 38, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 10px 18px;
    min-height: 44px;
    text-align: center;
}

.status-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: statusPulse 1.5s infinite;
    flex-shrink: 0;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.75); }
}

.status-text {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-secondary, #cbd5e1);
}

.status-text.status-win {
    color: #34d399;
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}

.status-text.status-loss {
    color: #f87171;
}

/* 4. 3 Target Betting Cards */
.roulette-targets-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.roulette-target-card {
    background: rgba(18, 24, 38, 0.75);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 0;
    box-sizing: border-box;
    text-align: left;
}

.roulette-target-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.target-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.target-chip-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.red-chip { background: rgba(244, 63, 94, 0.2); color: #f43f5e; border: 1.5px solid #f43f5e; }
.green-chip { background: rgba(16, 185, 129, 0.2); color: #10b981; border: 1.5px solid #10b981; }
.black-chip { background: rgba(148, 163, 184, 0.2); color: #94a3b8; border: 1.5px solid #94a3b8; }

.target-title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-weight: 800;
    font-size: 1.15rem;
    color: #ffffff;
    flex: 1;
    margin-left: 12px;
}

.target-payout-badge {
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.88rem;
    color: #ffffff;
    letter-spacing: 0.4px;
}

.jackpot-badge {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25) 0%, rgba(16, 185, 129, 0.25) 100%);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.5);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.25);
}

.target-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.84rem;
    color: var(--text-muted, #94a3b8);
}

.target-numbers-range {
    font-weight: 700;
}

.target-prob {
    font-size: 0.8rem;
    opacity: 0.85;
}

.target-selection-indicator {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Active Selected States */
.target-red.active {
    background: linear-gradient(160deg, rgba(244, 63, 94, 0.22) 0%, rgba(190, 18, 60, 0.12) 100%);
    border-color: #f43f5e;
    box-shadow: 0 0 24px rgba(244, 63, 94, 0.35), inset 0 0 20px rgba(244, 63, 94, 0.12);
}
.target-red.active .target-selection-indicator { display: flex; color: #f43f5e; }
.target-red.active .target-payout-badge { background: #f43f5e; color: #fff; }

.target-green.active {
    background: linear-gradient(160deg, rgba(16, 185, 129, 0.24) 0%, rgba(5, 150, 105, 0.14) 100%);
    border-color: #10b981;
    box-shadow: 0 0 28px rgba(16, 185, 129, 0.45), inset 0 0 20px rgba(16, 185, 129, 0.18);
}
.target-green.active .target-selection-indicator { display: flex; color: #10b981; }
.target-green.active .target-payout-badge { background: #10b981; color: #fff; }

.target-black.active {
    background: linear-gradient(160deg, rgba(51, 65, 85, 0.4) 0%, rgba(15, 23, 42, 0.25) 100%);
    border-color: #38bdf8;
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.3), inset 0 0 20px rgba(56, 189, 248, 0.1);
}
.target-black.active .target-selection-indicator { display: flex; color: #38bdf8; }
.target-black.active .target-payout-badge { background: #38bdf8; color: #0b0e14; }

/* 5. Action Bar & Bet Controller */
.roulette-action-bar {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    background: rgba(18, 24, 38, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 22px 26px;
    align-items: center;
}

.roulette-bet-config {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bet-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bet-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-muted, #94a3b8);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.roulette-input-row {
    display: flex;
    width: 100%;
}

.roulette-quick-chips {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

.roulette-spin-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.btn-spin-roulette {
    width: 100%;
    height: 64px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1px solid rgba(52, 211, 153, 0.5);
    border-radius: 14px;
    color: #ffffff;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.4);
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-spin-roulette:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.6);
    filter: brightness(1.1);
}

.btn-spin-roulette:active:not(:disabled) {
    transform: translateY(1px);
}

.btn-spin-roulette:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.spin-icon-wrap {
    font-size: 1.2rem;
    transition: transform 0.4s;
}

.btn-spin-roulette:hover:not(:disabled) .spin-icon-wrap {
    transform: rotate(90deg);
}

.roulette-meta-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted, #94a3b8);
    opacity: 0.8;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
    .roulette-action-bar {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .roulette-quick-chips {
        grid-template-columns: repeat(4, 1fr);
    }
    .roulette-wheel-stage {
        height: 138px;
    }
    .wheel-vignette {
        width: 80px;
    }
    .roulette-card {
        width: 72px;
        height: 86px;
    }
    .roulette-card .card-num {
        font-size: 1.45rem;
    }
}

@media (max-width: 650px) {
    .roulette-play-wrapper {
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    /* Top Bar Mobile Layout */
    .roulette-top-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
        padding: 8px 10px !important;
        border-radius: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .roulette-top-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 4px !important;
    }
    .history-label {
        font-size: 0.70rem !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    .roulette-stats-section {
        display: flex !important;
        align-items: center !important;
        gap: 3px !important;
        flex-shrink: 0 !important;
    }
    .streak-pill {
        padding: 2px 5px !important;
        font-size: 0.64rem !important;
        border-radius: 12px !important;
    }
    .roulette-history-scroll {
        width: 100% !important;
        padding-bottom: 2px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .roulette-history-list {
        gap: 6px !important;
    }
    .history-chip {
        width: 26px !important;
        height: 26px !important;
        font-size: 0.74rem !important;
        flex-shrink: 0 !important;
    }

    /* Wheel Stage Mobile Layout */
    .roulette-wheel-stage {
        height: 114px !important;
        border-radius: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .wheel-vignette {
        width: 36px !important;
    }
    .roulette-card {
        width: 56px !important;
        height: 72px !important;
        border-radius: 8px !important;
    }
    .roulette-card .card-num {
        font-size: 1.25rem !important;
    }
    .roulette-card .card-crown {
        top: 2px !important;
        font-size: 0.62rem !important;
    }
    .pointer-arrow-top {
        border-left-width: 8px !important;
        border-right-width: 8px !important;
        border-top-width: 11px !important;
    }
    .pointer-arrow-bottom {
        border-left-width: 8px !important;
        border-right-width: 8px !important;
        border-bottom-width: 11px !important;
    }

    /* Target Cards: Strictly 3 Equal Columns without Overflow */
    .roulette-targets-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .roulette-target-card {
        padding: 6px 4px !important;
        border-radius: 10px !important;
        gap: 3px !important;
        min-width: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .target-card-header {
        flex-direction: column !important;
        align-items: center !important;
        gap: 2px !important;
        text-align: center !important;
        width: 100% !important;
    }
    .target-chip-badge {
        width: 22px !important;
        height: 22px !important;
        font-size: 0.70rem !important;
    }
    .target-title {
        font-size: 0.75rem !important;
        font-weight: 800 !important;
        margin-left: 0 !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }
    .target-payout-badge {
        font-size: 0.66rem !important;
        padding: 1px 5px !important;
        border-radius: 5px !important;
        white-space: nowrap !important;
    }
    .target-card-body {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1px !important;
        width: 100% !important;
    }
    .target-numbers-range {
        font-size: 0.65rem !important;
        white-space: nowrap !important;
        text-align: center !important;
    }
    .target-prob {
        display: none !important;
    }
    .target-selection-indicator {
        font-size: 0.60rem !important;
        justify-content: center !important;
        margin-top: 1px !important;
        white-space: nowrap !important;
    }

    /* Status Ribbon Mobile */
    .roulette-status-ribbon {
        padding: 6px 10px !important;
        min-height: 34px !important;
        border-radius: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .status-text {
        font-size: 0.78rem !important;
        line-height: 1.3 !important;
    }

    /* Action Bar Mobile */
    .roulette-action-bar {
        grid-template-columns: 1fr !important;
        padding: 10px 12px !important;
        gap: 10px !important;
        border-radius: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .roulette-bet-config {
        gap: 8px !important;
        width: 100% !important;
    }
    .bet-label {
        font-size: 0.72rem !important;
    }
    .bet-input-wrapper {
        position: relative !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .bet-input-wrapper .input-field {
        width: 100% !important;
        height: 42px !important;
        font-size: 0.92rem !important;
        padding: 0 95px 0 10px !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
    }
    .bet-input-wrapper .input-actions {
        position: absolute !important;
        right: 4px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        display: flex !important;
        gap: 2px !important;
    }
    .bet-input-wrapper .input-actions .btn-xs {
        height: 28px !important;
        padding: 0 5px !important;
        font-size: 0.68rem !important;
        min-width: 24px !important;
        border-radius: 5px !important;
    }
    .roulette-quick-chips {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: 4px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .btn-quick-bet {
        padding: 6px 1px !important;
        font-size: 0.70rem !important;
        min-width: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .btn-spin-roulette {
        height: 46px !important;
        font-size: 0.98rem !important;
        border-radius: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .roulette-meta-hint {
        font-size: 0.65rem !important;
    }
}


.game-controls-area {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: fit-content;
}

/* Control Inputs */
.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bet-input-wrapper {
    position: relative;
    display: flex;
}

.input-field {
    width: 100%;
    height: 48px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    padding: 0 16px;
    font-family: var(--font-heading);
    transition: 0.2s;
}

.input-field:focus {
    border-color: var(--accent-mint);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-mint-glow);
}

.input-actions {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 4px;
}

/* Splash Result Overlay */
.game-result-splash {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 28px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 100;
    animation: splashDrop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

@keyframes splashDrop {
    from { opacity: 0; transform: translate(-50%, -20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.win-banner {
    background: rgba(0, 231, 149, 0.2);
    border: 1px solid var(--accent-mint);
    box-shadow: 0 0 30px rgba(0, 231, 149, 0.3);
}

.loss-banner {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--accent-danger);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.3);
}

.mult-text {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: var(--font-heading);
    color: #ffffff;
}

.profit-text {
    font-size: 0.85rem;
    font-weight: 800;
    font-family: var(--font-mono);
}

.win-banner .profit-text { color: var(--accent-mint); }
.loss-banner .profit-text { color: var(--accent-danger); }

/* ==========================================================================
   TARGET (DARTS) GAME STYLES - 3D TOURNAMENT ARENA & FLYING DART PHYSICS
   ========================================================================== */
.target-display-area {
    position: relative;
    min-height: 440px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: radial-gradient(circle at 50% 35%, rgba(0, 231, 149, 0.05) 0%, rgba(11, 14, 20, 0.95) 75%), #0c1017;
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
}

/* Arena Header */
.target-arena-header {
    width: 100%;
    max-width: 360px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 4px;
}

.target-title-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
}

.target-jackpot-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #00e795;
    background: rgba(0, 231, 149, 0.1);
    border: 1px solid rgba(0, 231, 149, 0.25);
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    animation: targetGlowPulse 2.5s infinite ease-in-out;
}

@keyframes targetGlowPulse {
    0%, 100% { box-shadow: 0 0 6px rgba(0, 231, 149, 0.2); }
    50% { box-shadow: 0 0 14px rgba(0, 231, 149, 0.5); }
}

.target-board-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    margin: 4px 0 12px;
}

.target-canvas-box {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.target-canvas-box svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.75));
    transition: transform 0.3s ease;
}

/* Board SVG Typography */
.target-board-svg text {
    user-select: none;
    pointer-events: none;
    letter-spacing: 0.3px;
}

/* 3D Realistic Flying & Sticking Dart Projectile */
.target-dart-projectile {
    position: absolute;
    width: 34px;
    height: 85px;
    pointer-events: none;
    z-index: 25;
    transform-origin: 50% 0%; /* Anchored at sharp steel tip */
    transition: none;
}

.dart-body {
    width: 100%;
    height: 100%;
    position: relative;
    transform-origin: 50% 0%;
}

.dart-graphic {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

/* Flight Trajectory Animation */
.target-dart-projectile.flying {
    animation: dartFlightMotion 0.38s cubic-bezier(0.12, 0.75, 0.35, 1) forwards;
}

@keyframes dartFlightMotion {
    0% {
        opacity: 0;
        transform: translate(65px, 220px) scale(2.5) rotate(-35deg);
    }
    15% {
        opacity: 1;
    }
    85% {
        transform: translate(-50%, 0) scale(1.06) rotate(var(--dart-angle, -6deg));
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1) rotate(var(--dart-angle, -6deg));
    }
}

/* Sisal Penetration & Harmonic Wobble Physics ("Tahtaya Yapışma ve Titreşim") */
.target-dart-projectile.stuck {
    animation: dartStickWobble 0.44s ease-out forwards;
}

@keyframes dartStickWobble {
    0% {
        transform: translate(-50%, 0) scale(1) rotate(calc(var(--dart-angle, -6deg) + 16deg));
    }
    22% {
        transform: translate(-50%, 0) scale(1.02) rotate(calc(var(--dart-angle, -6deg) - 11deg));
    }
    45% {
        transform: translate(-50%, 0) scale(0.99) rotate(calc(var(--dart-angle, -6deg) + 7deg));
    }
    68% {
        transform: translate(-50%, 0) scale(1.01) rotate(calc(var(--dart-angle, -6deg) - 3deg));
    }
    85% {
        transform: translate(-50%, 0) scale(1) rotate(calc(var(--dart-angle, -6deg) + 1deg));
    }
    100% {
        transform: translate(-50%, 0) scale(1) rotate(var(--dart-angle, -6deg));
    }
}

/* Impact Shockwave Ring */
.target-hit-ripple {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 18;
    border: 2.5px solid #00e795;
    animation: hitRippleExpand 0.5s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

.target-hit-ripple.miss-ripple {
    border-color: #64748b;
}

.target-hit-ripple.bullseye-ripple {
    border-color: #fde047;
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.9);
}

@keyframes hitRippleExpand {
    0% {
        width: 6px;
        height: 6px;
        opacity: 1;
    }
    100% {
        width: 60px;
        height: 60px;
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Payout Table Cards */
.target-payout-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 12px;
    border-radius: var(--radius-md);
    margin-top: 8px;
}

.payout-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-secondary);
    padding: 5px 8px;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.payout-row.active-hit {
    background: rgba(0, 231, 149, 0.15) !important;
    border-color: #00e795 !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(0, 231, 149, 0.35) !important;
    transform: scale(1.02);
}

.payout-row.active-bullseye {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(217, 119, 6, 0.2)) !important;
    border-color: #fbbf24 !important;
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.5) !important;
}

.badge-ring {
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.74rem;
    font-weight: 800;
    font-family: var(--font-mono, monospace);
    color: #fff;
}

/* Shoot Button */
.btn-target-shoot {
    margin-top: 14px !important;
    height: 46px !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #00e795 0%, #00b374 100%) !important;
    box-shadow: 0 4px 16px rgba(0, 231, 149, 0.35) !important;
    color: #05140e !important;
    border: none !important;
    transition: all 0.2s ease !important;
}

.btn-target-shoot:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 22px rgba(0, 231, 149, 0.5) !important;
    filter: brightness(1.08) !important;
}

.btn-target-shoot:disabled {
    opacity: 0.6 !important;
    transform: none !important;
    filter: grayscale(0.5) !important;
}

/* ==========================================================================
   CYBER TOWER QUEST - 3D TACTILE VAULT & SPIRE CLIMB SYSTEM
   ========================================================================== */
.tower-display-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px 14px 22px 14px;
    min-height: 520px;
}

.tower-arena-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 370px;
    margin: 0 auto 10px auto;
    gap: 8px;
}

.tower-arena-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: #c084fc;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.15);
}

.tower-jackpot-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.08));
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    font-size: 0.76rem;
    font-weight: 800;
    font-family: var(--font-mono);
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.15);
}

.tower-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: 370px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(15, 21, 32, 0.96), rgba(9, 13, 20, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 12px 12px 14px 12px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
}

/* Tower Spire Pinnacle Crest */
.tower-spire-crown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 5px 12px;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.08), rgba(234, 179, 8, 0.18), rgba(245, 158, 11, 0.08));
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 12px;
    margin-bottom: 2px;
}

.spire-crown-icon {
    color: #fbbf24;
    font-size: 0.95rem;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.6));
}

.spire-crown-text {
    font-size: 0.72rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #fef08a;
    letter-spacing: 0.8px;
}

.tower-grid {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

/* 8 Floors Row */
.tower-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 6px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.45);
    border: 1.5px solid rgba(255, 255, 255, 0.05);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.tower-row.active-row {
    background: linear-gradient(90deg, rgba(0, 231, 149, 0.14), rgba(16, 185, 129, 0.05));
    border-color: rgba(0, 231, 149, 0.65);
    box-shadow: 0 0 18px rgba(0, 231, 149, 0.2), inset 0 0 8px rgba(0, 231, 149, 0.08);
    animation: activeRowPulse 2s ease-in-out infinite;
}

.tower-row.cleared-row {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.12), rgba(14, 165, 233, 0.05));
    border-color: rgba(59, 130, 246, 0.35);
}

@keyframes activeRowPulse {
    0%, 100% {
        border-color: rgba(0, 231, 149, 0.45);
        box-shadow: 0 0 14px rgba(0, 231, 149, 0.15);
    }
    50% {
        border-color: rgba(0, 231, 149, 0.85);
        box-shadow: 0 0 22px rgba(0, 231, 149, 0.35);
    }
}

/* Floor Badge on Left */
.tower-floor-badge {
    min-width: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3px 4px;
    border-radius: 8px;
    background: rgba(8, 12, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.25s ease;
    user-select: none;
}

.badge-floor-tag {
    font-size: 0.60rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.badge-floor-mult {
    font-size: 0.74rem;
    font-weight: 900;
    font-family: var(--font-mono);
    color: #94a3b8;
    line-height: 1.1;
}

.active-row .tower-floor-badge {
    background: rgba(0, 231, 149, 0.18);
    border-color: #00e795;
    box-shadow: 0 0 10px rgba(0, 231, 149, 0.3);
}
.active-row .badge-floor-tag {
    color: #34d399;
}
.active-row .badge-floor-mult {
    color: #00e795;
    text-shadow: 0 0 8px rgba(0, 231, 149, 0.6);
}

.cleared-row .tower-floor-badge {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.45);
}
.cleared-row .badge-floor-tag {
    color: #60a5fa;
}
.cleared-row .badge-floor-mult {
    color: #93c5fd;
}

/* 4 Mystery Tiles */
.tower-tiles {
    display: flex;
    gap: 6px;
    flex: 1;
}

.tower-tile {
    flex: 1;
    height: 38px;
    background: linear-gradient(180deg, #1b2333, #111826);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    cursor: default;
    padding: 0;
}

.tower-tile .tile-icon {
    transition: transform 0.2s ease;
    opacity: 0.65;
}

/* Active Floor Tiles: Glowing, tactile, clickable */
.active-row .tower-tile:not(:disabled) {
    cursor: pointer;
    background: linear-gradient(180deg, #222e44, #162033);
    border-color: rgba(0, 231, 149, 0.5);
    color: #34d399;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 231, 149, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    animation: activeTileGlow 1.8s ease-in-out infinite alternate;
}

.active-row .tower-tile:not(:disabled) .tile-icon {
    opacity: 1;
    color: #34d399;
}

@keyframes activeTileGlow {
    0% {
        border-color: rgba(0, 231, 149, 0.4);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), 0 0 6px rgba(0, 231, 149, 0.2);
    }
    100% {
        border-color: rgba(0, 231, 149, 0.8);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 12px rgba(0, 231, 149, 0.4);
    }
}

.active-row .tower-tile:hover:not(:disabled) {
    transform: translateY(-2px);
    background: linear-gradient(180deg, #2c3c58, #1b273d);
    border-color: #00e795;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 231, 149, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.active-row .tower-tile:active:not(:disabled) {
    transform: translateY(1px) scale(0.97);
}

/* Revealed Safe Tile (Gem) */
.tower-tile.safe-tile {
    background: linear-gradient(135deg, rgba(0, 231, 149, 0.35), rgba(6, 78, 59, 0.85)) !important;
    border-color: #00e795 !important;
    color: #34d399 !important;
    font-size: 1.1rem !important;
    box-shadow: 0 0 18px rgba(0, 231, 149, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.35) !important;
    animation: gemRevealPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tower-tile.safe-tile .tile-icon {
    opacity: 1 !important;
    filter: drop-shadow(0 0 8px rgba(0, 231, 149, 0.8));
}

/* Revealed Bomb Tile (Explosion) */
.tower-tile.bomb-tile {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.4), rgba(69, 10, 10, 0.9)) !important;
    border-color: #ef4444 !important;
    color: #f87171 !important;
    font-size: 1.1rem !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.3) !important;
    animation: bombExplodeShake 0.45s ease-out;
}

.tower-tile.bomb-tile .tile-icon {
    opacity: 1 !important;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.8));
}

@keyframes gemRevealPop {
    0% { transform: scale(0.4) rotate(-15deg); opacity: 0; }
    70% { transform: scale(1.18) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes bombExplodeShake {
    0% { transform: scale(0.6); }
    25% { transform: scale(1.18) translate(-2px, 2px); }
    50% { transform: scale(0.95) translate(2px, -2px); }
    75% { transform: scale(1.05) translate(-1px, 1px); }
    100% { transform: scale(1) translate(0, 0); }
}

/* Compact Metric Cards (Tower Stage & Multiplier) */
.tower-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.tower-metric-card {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    padding: 6px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: all 0.2s ease;
}

.tower-metric-card label {
    font-size: 0.64rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    line-height: 1.2;
}

.tower-metric-card .stat-val {
    font-size: 0.95rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #ffffff;
    line-height: 1.2;
}

.tower-metric-card .stat-val.highlight {
    color: var(--accent-mint);
    text-shadow: 0 0 8px rgba(0, 231, 149, 0.4);
}

/* High-Voltage Cash Out Button */
.btn-cashout-tower {
    background: linear-gradient(135deg, #00e795, #10b981) !important;
    color: #064e3b !important;
    font-weight: 900 !important;
    border: none !important;
    box-shadow: 0 4px 18px rgba(0, 231, 149, 0.45) !important;
    animation: cashoutPulse 1.8s ease-in-out infinite alternate;
}

@keyframes cashoutPulse {
    0% {
        box-shadow: 0 4px 14px rgba(0, 231, 149, 0.35);
    }
    100% {
        box-shadow: 0 6px 24px rgba(0, 231, 149, 0.65), 0 0 14px rgba(0, 231, 149, 0.4);
    }
}

/* ==========================================================================
   KENO GAME STYLES - NEXT-GEN CRYPTO CASINO ARENA
   ========================================================================== */
.keno-display-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 16px 14px;
    background: radial-gradient(circle at 50% 20%, rgba(0, 231, 149, 0.05) 0%, rgba(11, 14, 20, 0.95) 75%), #0c1017;
    border-radius: var(--radius-lg, 12px);
    position: relative;
    overflow: hidden;
    min-height: 440px;
}

/* Arena Header */
.keno-arena-header {
    width: 100%;
    max-width: 470px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 4px;
}

.keno-title-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
}

.keno-jackpot-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.25);
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    animation: kenoJackpotGlow 2.5s infinite ease-in-out;
}

@keyframes kenoJackpotGlow {
    0%, 100% { box-shadow: 0 0 6px rgba(251, 191, 36, 0.2); }
    50% { box-shadow: 0 0 14px rgba(251, 191, 36, 0.45); }
}

/* 40-Number Keno Board (8x5) */
.keno-board {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 7px;
    width: 100%;
    max-width: 470px;
    margin: 0 auto;
    perspective: 800px;
}

.keno-tile {
    aspect-ratio: 1;
    min-width: 0;
    background: linear-gradient(150deg, #172132 0%, #0d1523 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #94a3b8;
    font-weight: 800;
    font-size: 0.95rem;
    font-family: var(--font-mono, monospace);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 3px 6px rgba(0, 0, 0, 0.35);
    transition: transform 0.12s cubic-bezier(0.2, 0.8, 0.2, 1), 
                background 0.2s ease, 
                border-color 0.2s ease, 
                box-shadow 0.2s ease, 
                color 0.15s ease;
    position: relative;
    overflow: hidden;
}

.keno-tile::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
    pointer-events: none;
    border-radius: 8px 8px 0 0;
}

.keno-tile:hover {
    background: linear-gradient(150deg, #223048 0%, #131e31 100%);
    color: #ffffff;
    border-color: rgba(0, 231, 149, 0.4);
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 5px 12px rgba(0, 0, 0, 0.45);
}

.keno-tile:active {
    transform: translateY(1px) scale(0.96);
}

/* Selected Tile: Radiant Mint Emerald */
.keno-tile.selected {
    background: linear-gradient(135deg, #00e795 0%, #059669 100%);
    color: #04140e;
    font-weight: 900;
    border-color: #34d399;
    box-shadow: 0 0 14px rgba(0, 231, 149, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 3px 6px rgba(0,0,0,0.3);
    transform: scale(1.03);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.keno-tile.selected::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 100%);
}

/* Drawn Tile (missed - not in user selection) */
.keno-tile.drawn {
    background: linear-gradient(145deg, #243044 0%, #162030 100%);
    border-color: #475569;
    color: #cbd5e1;
    opacity: 0.85;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* HIT Tile (JACKPOT MATCH!) */
.keno-tile.hit {
    background: linear-gradient(135deg, #fef08a 0%, #f59e0b 55%, #d97706 100%);
    color: #2e1603;
    font-weight: 900;
    border-color: #fde047;
    box-shadow: 0 0 22px rgba(245, 158, 11, 0.85), inset 0 1px 2px #fff, 0 4px 8px rgba(0,0,0,0.4);
    transform: scale(1.1);
    z-index: 2;
    animation: kenoHitPulse 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.keno-tile.hit::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, transparent 100%);
}

@keyframes kenoHitPulse {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.22); }
    100% { transform: scale(1.1); }
}

/* Drawn Balls Lottery Carousel / Rack */
.keno-drawn-area {
    margin-top: 16px;
    width: 100%;
    max-width: 470px;
    background: rgba(14, 20, 31, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

.keno-drawn-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 0.74rem;
    color: var(--text-muted, #94a3b8);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.6px;
}

.keno-drawn-label span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.keno-drawn-counter {
    color: #00e795;
    font-family: var(--font-mono, monospace);
    font-weight: 800;
}

.keno-drawn-rack {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

/* Pre-rendered Glass Sockets */
.keno-ball-socket {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    border: 1.5px dashed rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.keno-socket-num {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
    font-family: var(--font-mono, monospace);
}

/* 3D Spherical Lottery Balls */
.keno-ball-drawn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 32%, #94a3b8 0%, #475569 55%, #1e293b 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.86rem;
    font-weight: 900;
    color: #ffffff;
    font-family: var(--font-mono, monospace);
    box-shadow: inset 0 -3px 5px rgba(0, 0, 0, 0.5), 0 3px 8px rgba(0, 0, 0, 0.4);
    animation: popBall 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    user-select: none;
    flex-shrink: 0;
}

.keno-ball-drawn.match {
    background: radial-gradient(circle at 32% 30%, #fff 0%, #fbbf24 35%, #d97706 75%, #92400e 100%);
    color: #381a02;
    border-color: #fde047;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.8), inset 0 -3px 4px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.7);
    animation: popMatchBall 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popBall {
    0% { transform: scale(0.2) translateY(-15px); opacity: 0; }
    70% { transform: scale(1.15) translateY(2px); }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes popMatchBall {
    0% { transform: scale(0.2) translateY(-20px); opacity: 0; }
    60% { transform: scale(1.28); }
    100% { transform: scale(1); opacity: 1; }
}

/* KENO CONTROLS AREA */
.keno-config-group {
    margin-top: 10px;
    margin-bottom: 8px;
}

.keno-stats-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 8px 12px;
    border-radius: var(--radius-md);
}

.keno-stat-badge {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.keno-stat-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.keno-stat-num {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    font-family: var(--font-mono, monospace);
    line-height: 1.2;
}

.keno-stat-max {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.keno-action-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-keno-util {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 10px;
    font-size: 0.74rem;
    font-weight: 700;
    border-radius: var(--radius-sm, 6px);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    height: 32px;
    user-select: none;
}

.btn-keno-random {
    background: rgba(0, 231, 149, 0.12);
    border-color: rgba(0, 231, 149, 0.28);
    color: #00e795;
}

.btn-keno-random:hover {
    background: rgba(0, 231, 149, 0.22);
    border-color: #00e795;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 231, 149, 0.25);
}

.btn-keno-clear {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary, #94a3b8);
}

.btn-keno-clear:hover {
    background: rgba(255, 51, 102, 0.15);
    border-color: rgba(255, 51, 102, 0.35);
    color: #ff3366;
    transform: translateY(-1px);
}

/* Multiplier Milestone Ladder */
.keno-ladder-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 52px;
}

.keno-ladder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.70rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.4px;
}

.keno-ladder-track {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
}

.keno-ladder-step {
    flex: 1 1 auto;
    min-width: 52px;
    padding: 5px 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: all 0.2s ease;
}

.keno-step-hits {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 700;
}

.keno-step-mult {
    font-size: 0.78rem;
    font-weight: 800;
    font-family: var(--font-mono, monospace);
    color: #e2e8f0;
}

.keno-ladder-step.active-target {
    border-color: rgba(0, 231, 149, 0.35);
    background: rgba(0, 231, 149, 0.06);
}

.keno-ladder-step.active-target .keno-step-mult {
    color: #00e795;
}

.keno-ladder-step.top-tier {
    border-color: rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.08);
}

.keno-ladder-step.top-tier .keno-step-mult {
    color: #fbbf24;
}

/* LIVE HIT REACHED DURING DRAW */
.keno-ladder-step.hit-reached {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3) 0%, rgba(217, 119, 6, 0.3) 100%) !important;
    border-color: #fbbf24 !important;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.5) !important;
    transform: scale(1.06);
}

.keno-ladder-step.hit-reached .keno-step-hits {
    color: #fde047;
}

.keno-ladder-step.hit-reached .keno-step-mult {
    color: #ffffff;
    font-weight: 900;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.8);
}

/* Keno Play Button */
.btn-keno-play {
    margin-top: 10px !important;
    height: 46px !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #00e795 0%, #00b374 100%) !important;
    box-shadow: 0 4px 16px rgba(0, 231, 149, 0.35) !important;
    color: #05140e !important;
    border: none !important;
    transition: all 0.2s ease !important;
}

.btn-keno-play:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 22px rgba(0, 231, 149, 0.5) !important;
    filter: brightness(1.08) !important;
}

.btn-keno-play:disabled {
    opacity: 0.6 !important;
    transform: none !important;
    filter: grayscale(0.5) !important;
}


/* ==========================================================================
   19. ROYAL HILO QUEST - CASINO TABLE FELT, 3D CARDS & PREDICTOR CONTROLS
   ========================================================================== */
.hilo-play-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}

.hilo-display-area {
    position: relative;
    background: radial-gradient(ellipse at 50% 25%, #142a38 0%, #0a1722 60%, #050a10 100%);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.7), 0 10px 30px rgba(0, 0, 0, 0.4);
    min-height: 480px;
    overflow: hidden;
}

/* Casino Table Felt Watermark Accent */
.hilo-display-area::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.05) 0%, transparent 70%),
        radial-gradient(circle at 50% 0%, rgba(0, 231, 149, 0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.hilo-arena-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    z-index: 2;
    position: relative;
}

.hilo-title-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(18, 25, 38, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #e2e8f0;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hilo-jackpot-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(14, 165, 233, 0.25) 100%);
    border: 1px solid rgba(56, 189, 248, 0.4);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #38bdf8;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
    text-transform: uppercase;
}

.hilo-jackpot-tag strong {
    color: #ffffff;
    font-weight: 900;
}

/* Past Cards History Trail */
.hilo-history-lane {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    margin-bottom: 16px;
    z-index: 2;
    overflow-x: auto;
    max-width: 100%;
    padding: 4px;
}

.hilo-past-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 46px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    font-weight: 900;
    line-height: 1;
    animation: hiloCardSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    user-select: none;
}

.hilo-past-card .past-rank {
    font-size: 0.72rem;
    font-family: var(--font-heading);
}

.hilo-past-card .past-suit {
    font-size: 0.62rem;
    margin-top: 1px;
}

@keyframes hiloCardSlideIn {
    0% { transform: scale(0.6) translateY(-10px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Main Playing Card Arena Felt */
.hilo-table-felt {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    width: 100%;
    z-index: 2;
    position: relative;
    padding: 10px 0 20px 0;
}

.hilo-card-view {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 3D Luxury Playing Card */
.playing-card {
    width: 160px;
    height: 232px;
    background: linear-gradient(150deg, #ffffff 0%, #f8fafc 55%, #e2e8f0 100%);
    border-radius: 14px;
    border: 2px solid rgba(212, 175, 55, 0.55);
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.65), 
        0 0 25px rgba(56, 189, 248, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    position: relative;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    user-select: none;
    animation: cardHoverFloat 4s ease-in-out infinite;
}

@keyframes cardHoverFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(0.4deg); }
}

.card-corner {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.bottom-right {
    transform: rotate(180deg);
}

.card-val {
    font-size: 1.45rem;
    font-weight: 900;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.card-suit {
    font-size: 1.15rem;
    margin-top: 2px;
}

.card-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4.4rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
}

/* Predictor Odds & Status Banner */
.hilo-predictor-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.74rem;
    font-weight: 800;
    color: #e2e8f0;
    margin-top: 16px;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* Multiplier & Profit HUD */
.hilo-metrics-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.hilo-metric-card {
    background: rgba(18, 26, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hilo-metric-card label {
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 !important;
}

.hilo-metric-card .stat-val {
    font-size: 1.15rem;
    font-weight: 900;
    color: #ffffff;
    font-family: var(--font-mono, monospace);
}

.hilo-metric-card .stat-val.highlight {
    color: #00e795;
    text-shadow: 0 0 10px rgba(0, 231, 149, 0.4);
}

/* Guess Action Buttons (Higher / Lower) */
.hilo-guess-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    margin-bottom: 10px;
}

.btn-hilo-guess {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.btn-hilo-guess:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-hilo-guess:active {
    transform: translateY(0);
}

.btn-hilo-guess .guess-main {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.btn-hilo-guess .guess-sub {
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    opacity: 0.9;
    margin-top: 1px;
}

.btn-hilo-guess .guess-chance {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 0.62rem;
    font-weight: 900;
    margin-top: 4px;
    background: rgba(0, 0, 0, 0.25);
}

/* HIGHER Button Styling */
.btn-hilo-higher {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(2, 132, 199, 0.35);
}

.btn-hilo-higher:hover {
    box-shadow: 0 6px 22px rgba(2, 132, 199, 0.55);
}

/* LOWER Button Styling */
.btn-hilo-lower {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    border-color: #f59e0b;
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(217, 119, 6, 0.35);
}

.btn-hilo-lower:hover {
    box-shadow: 0 6px 22px rgba(217, 119, 6, 0.55);
}

/* Cash Out Button */
.btn-hilo-cashout {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    font-size: 1.02rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #00e795 0%, #00b374 100%) !important;
    color: #042416 !important;
    border: 1px solid #00ffaa !important;
    box-shadow: 0 4px 18px rgba(0, 231, 149, 0.35);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
}

.btn-hilo-cashout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 231, 149, 0.55);
    filter: brightness(1.08);
}

.btn-hilo-cashout:active {
    transform: translateY(0);
}

/* Start Button */
.btn-hilo-start {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #00e795 0%, #00b374 100%) !important;
    color: #042416 !important;
    border: 1px solid #00ffaa !important;
    box-shadow: 0 4px 18px rgba(0, 231, 149, 0.35);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    margin-top: 6px;
}

.btn-hilo-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 231, 149, 0.55);
    filter: brightness(1.08);
}

/* ==========================================================================
   ROYAL JACKPOT WHEEL - LUXURY HIGH-ROLLER THEME & 3D WHEEL
   ========================================================================== */
.jackpot-display-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 24px 24px;
    min-height: 480px;
    position: relative;
    background: radial-gradient(circle at 50% 45%, rgba(245, 158, 11, 0.08) 0%, rgba(15, 23, 42, 0) 65%), #0c111d;
}

.jackpot-arena-header {
    width: 100%;
    max-width: 440px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    z-index: 5;
    position: relative;
}

.jackpot-arena-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(217, 119, 6, 0.08) 100%);
    border: 1px solid rgba(251, 191, 36, 0.35);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fef08a;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}

.jackpot-arena-badge i {
    color: #fbbf24;
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6));
}

.jackpot-max-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2) 0%, rgba(180, 83, 9, 0.25) 100%);
    border: 1px solid rgba(250, 204, 21, 0.4);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #fde047;
    box-shadow: 0 0 16px rgba(234, 179, 8, 0.25);
}

.jackpot-max-pill .jackpot-pill-label {
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 700;
}

.jackpot-max-pill .jackpot-pill-value {
    color: #ffffff;
    font-weight: 900;
    font-family: var(--font-mono);
}

.pizza-wheel-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    max-width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.wheel-pizza-pointer {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    pointer-events: none;
    transform-origin: 50% 12px;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.9));
    transition: transform 0.08s ease-out;
}

.wheel-pizza-pointer.tick-flapper {
    animation: pointerTick 0.12s ease-out;
}

@keyframes pointerTick {
    0% { transform: translateX(-50%) rotate(0deg); }
    35% { transform: translateX(-50%) rotate(-12deg); }
    100% { transform: translateX(-50%) rotate(0deg); }
}

.pointer-arrow-svg {
    width: 38px;
    height: 48px;
    display: block;
}

#pizza-jackpot-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(245, 158, 11, 0.25), inset 0 0 20px rgba(0, 0, 0, 0.6);
    will-change: transform;
    overflow: hidden;
}

#pizza-jackpot-wheel svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Result Splash Banner */
.jackpot-result-splash {
    margin-top: 14px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.jackpot-result-splash.hidden {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
    pointer-events: none;
}

.jp-splash {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    animation: splashPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

.jp-splash-win {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.22) 0%, rgba(16, 185, 129, 0.35) 100%);
    border: 1px solid rgba(74, 222, 128, 0.5);
    color: #4ade80;
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.35);
}

.jp-splash-jackpot {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.3) 0%, rgba(217, 119, 6, 0.45) 100%);
    border: 1px solid rgba(253, 224, 71, 0.7);
    color: #fef08a;
    box-shadow: 0 0 35px rgba(234, 179, 8, 0.55);
}

.jp-splash-loss {
    background: rgba(30, 41, 59, 0.75);
    border: 1px solid rgba(71, 85, 105, 0.4);
    color: #94a3b8;
}

/* Multiplier Payout Badges (HUD) */
.jackpot-payout-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
    width: 100%;
    max-width: 440px;
}

.jp-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
    cursor: default;
    min-width: 62px;
}

.jp-badge .jp-badge-rate {
    font-size: 0.86rem;
    font-weight: 900;
    font-family: var(--font-mono);
}

.jp-badge .jp-badge-title {
    font-size: 0.60rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.75;
}

.jp-badge-20x {
    border-color: rgba(250, 204, 21, 0.35);
    background: rgba(234, 179, 8, 0.1);
}
.jp-badge-20x .jp-badge-rate { color: #fde047; }
.jp-badge-20x .jp-badge-title { color: #fef08a; }

.jp-badge-10x {
    border-color: rgba(249, 115, 22, 0.35);
    background: rgba(249, 115, 22, 0.1);
}
.jp-badge-10x .jp-badge-rate { color: #fb923c; }
.jp-badge-10x .jp-badge-title { color: #fdba74; }

.jp-badge-7x {
    border-color: rgba(168, 85, 247, 0.35);
    background: rgba(168, 85, 247, 0.1);
}
.jp-badge-7x .jp-badge-rate { color: #c084fc; }
.jp-badge-7x .jp-badge-title { color: #e9d5ff; }

.jp-badge-2x {
    border-color: rgba(14, 165, 233, 0.35);
    background: rgba(14, 165, 233, 0.1);
}
.jp-badge-2x .jp-badge-rate { color: #38bdf8; }
.jp-badge-2x .jp-badge-title { color: #bae6fd; }

.jp-badge-0x {
    border-color: rgba(100, 116, 139, 0.25);
    background: rgba(30, 41, 59, 0.5);
}
.jp-badge-0x .jp-badge-rate { color: #64748b; }
.jp-badge-0x .jp-badge-title { color: #475569; }

/* Active Winner Badge Glow */
.jp-badge.active-win {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 0 20px currentColor;
    border-width: 1.5px;
}

.btn-jackpot-spin {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%) !important;
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    font-weight: 900 !important;
    letter-spacing: 0.06em !important;
    border: 1px solid rgba(251, 191, 36, 0.5) !important;
    transition: all 0.2s ease !important;
}

.btn-jackpot-spin:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    filter: brightness(1.1);
}

/* ==========================================================================
   PRO CRYPTO MINES - 3D TACTILE VAULT & CYBER HAZARD GRID
   ========================================================================== */
.mines-display-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px 14px 22px 14px;
    min-height: 480px;
}

.mines-arena-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 440px;
    margin: 0 auto 10px auto;
    gap: 8px;
}

.mines-arena-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.15);
}

.mines-hazard-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 231, 149, 0.15), rgba(16, 185, 129, 0.08));
    border: 1px solid rgba(0, 231, 149, 0.35);
    color: #00e795;
    font-size: 0.76rem;
    font-weight: 800;
    font-family: var(--font-mono);
    box-shadow: 0 2px 10px rgba(0, 231, 149, 0.15);
}

/* Status Pill */
.mines-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 440px;
    margin: 0 auto 12px auto;
    padding: 7px 14px;
    border-radius: 14px;
    font-size: 0.80rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-muted);
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.mines-status-pill.status-active {
    color: #ffffff;
    border-color: rgba(0, 231, 149, 0.45);
    background: linear-gradient(90deg, rgba(0, 231, 149, 0.12), rgba(15, 23, 42, 0.85));
    box-shadow: 0 0 15px rgba(0, 231, 149, 0.2);
}

.mines-status-pill.status-win {
    color: #00e795;
    border-color: rgba(0, 231, 149, 0.6);
    background: rgba(0, 231, 149, 0.15);
    box-shadow: 0 0 20px rgba(0, 231, 149, 0.35);
}

.mines-status-pill.status-loss {
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.6);
    background: rgba(239, 68, 68, 0.15);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.35);
}

/* Mines Grid Chassis */
.mines-grid-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 440px;
}

.mines-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    width: 100%;
    background: linear-gradient(180deg, rgba(14, 20, 31, 0.96), rgba(8, 12, 18, 0.98));
    padding: 16px;
    border-radius: 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

/* 3D Tactile Mystery Tile */
.mine-tile {
    aspect-ratio: 1;
    background: linear-gradient(180deg, #1c2536, #121926);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    user-select: none;
    color: rgba(255, 255, 255, 0.25);
}

.mine-tile .tile-stud {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
}

.mine-tile:hover:not(.revealed) {
    background: linear-gradient(180deg, #25334a, #182233);
    border-color: var(--accent-mint);
    transform: translateY(-2.5px);
    box-shadow: 0 8px 20px rgba(0, 231, 149, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: var(--accent-mint);
}

.mine-tile:hover:not(.revealed) .tile-stud {
    background: var(--accent-mint);
    box-shadow: 0 0 8px rgba(0, 231, 149, 0.8);
}

.mine-tile:active:not(.revealed) {
    transform: scale(0.95);
}

/* Safe Gem Reveal */
.mine-tile.revealed.gem {
    background: linear-gradient(135deg, rgba(0, 231, 149, 0.35), rgba(6, 78, 59, 0.85)) !important;
    border-color: #00e795 !important;
    box-shadow: 0 0 22px rgba(0, 231, 149, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.4) !important;
    animation: gemPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    color: #34d399;
}

.mine-tile.revealed.gem i {
    filter: drop-shadow(0 0 10px rgba(0, 231, 149, 0.85));
}

/* Mine Detonation Reveal */
.mine-tile.revealed.mine {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.45), rgba(69, 10, 10, 0.95)) !important;
    border-color: #ef4444 !important;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.7), inset 0 1px 2px rgba(255, 255, 255, 0.3) !important;
    animation: mineBoom 0.45s ease-out;
    color: #f87171;
}

.mine-tile.revealed.mine i {
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.85));
}

/* Dimmed Ghost Tiles on Game Over */
.mine-tile.revealed.dimmed {
    opacity: 0.45;
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: none;
    transform: none !important;
    cursor: default;
}

@keyframes gemPop {
    0% { transform: scale(0.4) rotate(-10deg); opacity: 0; }
    70% { transform: scale(1.15) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes mineBoom {
    0% { transform: scale(0.6); }
    25% { transform: scale(1.2) translate(-2px, 2px); }
    50% { transform: scale(0.95) translate(2px, -2px); }
    75% { transform: scale(1.05) translate(-1px, 1px); }
    100% { transform: scale(1) translate(0, 0); }
}

/* Compact Metrics Grid */
.mines-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.mines-metric-card {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    padding: 6px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: all 0.2s ease;
}

.mines-metric-card label {
    font-size: 0.64rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    line-height: 1.2;
}

.mines-metric-card .stat-val {
    font-size: 0.95rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #ffffff;
    line-height: 1.2;
}

.mines-metric-card .stat-val.highlight {
    color: var(--accent-mint);
    text-shadow: 0 0 8px rgba(0, 231, 149, 0.4);
}

/* Pulsing Cashout Button */
.btn-action-big.btn-cashout {
    background: linear-gradient(135deg, #00e795, #10b981) !important;
    color: #064e3b !important;
    font-weight: 900 !important;
    border: none !important;
    box-shadow: 0 4px 18px rgba(0, 231, 149, 0.45) !important;
    animation: cashoutPulse 1.8s ease-in-out infinite alternate !important;
}

/* ==========================================================================
   PRO CRYPTO DICE - FLASHY & SLEEK DESIGN SYSTEM
   ========================================================================== */
.dice-arena-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 560px;
    margin: 0 auto 12px auto;
    gap: 8px;
}

.dice-arena-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 231, 149, 0.12), rgba(59, 130, 246, 0.08));
    border: 1px solid rgba(0, 231, 149, 0.35);
    color: #00e795;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0, 231, 149, 0.12);
}

.dice-jackpot-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.08));
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    font-size: 0.78rem;
    font-weight: 800;
    font-family: var(--font-mono);
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.15);
}

/* Recent Rolls History Bar */
.dice-history-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 560px;
    margin: 0 auto 14px auto;
    padding: 6px 10px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}
.dice-history-bar::-webkit-scrollbar {
    display: none;
}

.dice-history-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.dice-history-chips {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.dice-chip {
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 0.74rem;
    font-weight: 800;
    font-family: var(--font-mono);
    white-space: nowrap;
    animation: diceChipPop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dice-chip-win {
    background: rgba(0, 231, 149, 0.15);
    color: #00e795;
    border: 1px solid rgba(0, 231, 149, 0.45);
    box-shadow: 0 2px 8px rgba(0, 231, 149, 0.25);
}

.dice-chip-loss {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

@keyframes diceChipPop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Condition Toggle Switcher (Roll Under < vs Roll Over >) */
.dice-condition-tabs {
    display: flex;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 4px;
    gap: 6px;
    width: 100%;
    max-width: 380px;
    margin: 0 auto 16px auto;
}

.btn-dice-tab {
    flex: 1;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-dice-tab:hover:not(.active) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.btn-dice-tab.active {
    background: linear-gradient(135deg, rgba(0, 231, 149, 0.22), rgba(16, 185, 129, 0.1));
    color: #00e795;
    border-color: rgba(0, 231, 149, 0.5);
    box-shadow: 0 4px 14px rgba(0, 231, 149, 0.22);
}

.btn-dice-tab.active.tab-over {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(37, 99, 235, 0.1));
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.22);
}

/* Dice Display Area Container */
.dice-display-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 20px 28px 20px;
    min-height: 480px;
}

/* 3D Cybernetic Visual Card */
.dice-visual-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0 auto 14px auto;
    width: 100%;
    max-width: 560px;
    background: linear-gradient(180deg, rgba(16, 22, 34, 0.95), rgba(10, 14, 22, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 18px 20px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.dice-visual-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(0, 231, 149, 0.6), transparent);
}

/* Tumbler 3D Rotating Icons */
.dice-tumbler-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2px;
}

.dice-tumbler-icon {
    font-size: 2rem;
    color: var(--accent-mint);
    filter: drop-shadow(0 0 10px rgba(0, 231, 149, 0.45));
    transition: transform 0.25s ease;
}

.dice-tumbler-icon.tumbling {
    animation: diceTumbleSpin 0.45s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes diceTumbleSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.22); }
    100% { transform: rotate(360deg) scale(1); }
}

/* High-Contrast Large Number Display */
.dice-number-display {
    background: rgba(8, 12, 18, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 14px 44px;
    min-width: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 4px 14px rgba(0, 0, 0, 0.8), 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dice-number-display span {
    font-size: 3.8rem;
    font-weight: 900;
    font-family: var(--font-mono);
    color: #ffffff;
    letter-spacing: 2px;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.dice-number-display.rolling-pulse {
    border-color: rgba(59, 130, 246, 0.7);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.35), inset 0 0 16px rgba(59, 130, 246, 0.2);
}

.dice-number-display.win-glow {
    border-color: var(--accent-mint);
    box-shadow: 0 0 35px rgba(0, 231, 149, 0.45), inset 0 0 16px rgba(0, 231, 149, 0.2);
}
.dice-number-display.win-glow span {
    color: var(--accent-mint);
    text-shadow: 0 0 25px rgba(0, 231, 149, 0.6);
}

.dice-number-display.loss-glow {
    border-color: var(--accent-danger);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.35), inset 0 0 16px rgba(239, 68, 68, 0.2);
}
.dice-number-display.loss-glow span {
    color: #f87171;
    text-shadow: 0 0 25px rgba(239, 68, 68, 0.5);
}

/* Status Pill */
.dice-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.25s ease;
    min-height: 32px;
}
.dice-status-pill.pill-win {
    color: #00e795;
    background: rgba(0, 231, 149, 0.12);
    border-color: rgba(0, 231, 149, 0.4);
}
.dice-status-pill.pill-loss {
    color: #f87171;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.4);
}

/* Dual-Zone Interactive Neon Slider */
.dice-slider-container {
    width: 92%;
    max-width: 520px;
    margin: 10px auto 4px auto;
    position: relative;
    padding-bottom: 8px;
}

.slider-track {
    height: 20px;
    background: #090e17;
    border-radius: 12px;
    position: relative;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.8);
    user-select: none;
}

.slider-fill-win {
    position: absolute;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, #059669, #00e795);
    border-radius: 10px;
    box-shadow: 0 0 16px rgba(0, 231, 149, 0.4);
    pointer-events: none;
    transition: left 0.05s ease, width 0.05s ease;
}

.slider-fill-loss {
    position: absolute;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, #dc2626, #ef4444);
    border-radius: 10px;
    opacity: 0.85;
    pointer-events: none;
    transition: left 0.05s ease, width 0.05s ease;
}

/* Slider Tactile Handle */
.slider-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    border: 3.5px solid var(--accent-mint);
    border-radius: 50%;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b0e14;
    font-size: 0.88rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7), 0 0 12px rgba(0, 231, 149, 0.45);
    z-index: 20;
    transition: transform 0.12s ease;
}

.slider-handle:active {
    transform: translate(-50%, -50%) scale(1.15);
    cursor: grabbing;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.8), 0 0 18px rgba(0, 231, 149, 0.7);
}

/* Floating Tooltip Bubble on Slider Handle */
.handle-bubble {
    position: absolute;
    bottom: calc(100% + 9px);
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    border: 1.5px solid var(--accent-mint);
    border-radius: 8px;
    padding: 3px 8px;
    font-size: 0.76rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--accent-mint);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
    pointer-events: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.handle-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--accent-mint) transparent transparent transparent;
}

/* Animated Result Landing Puck */
.slider-result-puck {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    pointer-events: none;
    transition: left 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.puck-pointer {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 9px solid #ffffff;
    filter: drop-shadow(0 -2px 4px rgba(0,0,0,0.8));
    margin-top: 18px;
}

.puck-chip {
    padding: 2px 7px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 900;
    font-family: var(--font-mono);
    color: #ffffff;
    background: #1e293b;
    border: 1.5px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
}

.slider-result-puck.puck-win .puck-pointer {
    border-bottom-color: #00e795;
}
.slider-result-puck.puck-win .puck-chip {
    background: #022c22;
    border-color: #00e795;
    color: #34d399;
    box-shadow: 0 0 12px rgba(0, 231, 149, 0.5);
}

.slider-result-puck.puck-loss .puck-pointer {
    border-bottom-color: #ef4444;
}
.slider-result-puck.puck-loss .puck-chip {
    background: #450a0a;
    border-color: #ef4444;
    color: #fca5a5;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.puck-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2.5px solid #00e795;
    pointer-events: none;
    animation: puckShockwave 0.65s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
}

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

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 800;
    font-family: var(--font-mono);
}

.slider-labels span {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slider-labels span::before {
    content: '';
    width: 2px;
    height: 5px;
    background: rgba(255, 255, 255, 0.15);
    margin-bottom: 4px;
    border-radius: 1px;
}

/* Metric Cards Grid (Multiplier & Win Chance) - Sleek & Compact */
.dice-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.dice-metric-card {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    padding: 6px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: all 0.2s ease;
}

.dice-metric-card:focus-within {
    border-color: rgba(0, 231, 149, 0.4);
    background: rgba(15, 23, 42, 0.75);
}

.dice-metric-card label {
    font-size: 0.64rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    line-height: 1.2;
}

.dice-metric-card label i {
    font-size: 0.60rem;
    opacity: 0.75;
}

.dice-metric-card .input-field {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    height: 22px !important;
    min-height: 22px !important;
    line-height: 22px !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    font-family: var(--font-mono) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    margin: 0 !important;
}

/* Quick Bet Amount Buttons (0.10$ - 0.50$ - 1 - 5 - 10 - 100) */
.quick-bets-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    margin-top: 8px;
    width: 100%;
}

.btn-quick-bet {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm, 6px);
    color: var(--text-secondary, #94a3b8);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 2px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    user-select: none;
}

.btn-quick-bet:hover {
    background: rgba(0, 230, 118, 0.15);
    border-color: #00e676;
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-quick-bet:active {
    transform: translateY(0);
}

/* ==========================================================================
   18. CYBER PLINKO ARENA, 3D PEGS, BOUNCING BINS & PARTICLES
   ========================================================================== */
.plinko-play-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}

.plinko-display-area {
    position: relative;
    background: radial-gradient(ellipse at 50% 15%, #162035 0%, #0a0e18 70%, #060910 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.6), 0 10px 30px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

/* Background Cyber Grid Accent */
.plinko-display-area::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(255, 51, 102, 0.08) 0%, transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 36px 36px, 36px 36px;
    pointer-events: none;
    z-index: 1;
}

.plinko-arena-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    z-index: 2;
    position: relative;
}

.plinko-title-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(18, 25, 38, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #e2e8f0;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.plinko-jackpot-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.15) 0%, rgba(239, 68, 68, 0.25) 100%);
    border: 1px solid rgba(255, 51, 102, 0.4);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #ff4d79;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.25);
    text-transform: uppercase;
}

.plinko-jackpot-tag strong {
    color: #ffffff;
    font-weight: 900;
}

/* History Chips Ticker */
.plinko-history-ticker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 28px;
    margin-bottom: 8px;
    z-index: 2;
    overflow-x: auto;
    max-width: 100%;
    padding: 2px 4px;
}

.plinko-history-chip {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    font-family: var(--font-mono, monospace);
    letter-spacing: 0.02em;
    animation: plinkoChipPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    border: 1px solid transparent;
}

.plinko-chip-loss {
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    border-color: rgba(255, 255, 255, 0.08);
}

.plinko-chip-low {
    background: rgba(0, 231, 149, 0.15);
    color: #00ffaa;
    border-color: rgba(0, 231, 149, 0.35);
}

.plinko-chip-mid {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.4);
}

.plinko-chip-high {
    background: rgba(255, 51, 102, 0.22);
    color: #ff4d79;
    border-color: rgba(255, 51, 102, 0.5);
    box-shadow: 0 0 8px rgba(255, 51, 102, 0.3);
}

@keyframes plinkoChipPop {
    0% { transform: scale(0.6) translateY(-4px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

#plinko-canvas {
    position: relative;
    z-index: 2;
    display: block;
    border-radius: 12px;
}

/* Plinko Segmented Control Tabs (Risk & Rows) */
.plinko-tabs {
    display: flex;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    padding: 3px;
    gap: 4px;
    width: 100%;
}

.btn-plinko-tab {
    flex: 1;
    padding: 7px 4px;
    border-radius: 7px;
    font-size: 0.74rem;
    font-weight: 800;
    cursor: pointer;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted, #94a3b8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    user-select: none;
}

.btn-plinko-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.btn-plinko-tab.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Specific Risk Tab Active Highlights */
.btn-plinko-tab.active[data-risk="Low"] {
    background: linear-gradient(135deg, rgba(0, 231, 149, 0.2) 0%, rgba(0, 180, 116, 0.3) 100%);
    border-color: #00e795;
    color: #00ffaa;
    box-shadow: 0 0 12px rgba(0, 231, 149, 0.3);
}

.btn-plinko-tab.active[data-risk="Medium"] {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.3) 100%);
    border-color: #f59e0b;
    color: #fbbf24;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.btn-plinko-tab.active[data-risk="High"] {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.35) 100%);
    border-color: #ef4444;
    color: #f87171;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.35);
}

.btn-plinko-tab.active[data-rows] {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.3) 100%);
    border-color: #3b82f6;
    color: #60a5fa;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

/* Play Action Drop Button */
.btn-plinko-play {
    height: 48px;
    font-size: 1.05rem;
    font-weight: 800;
    width: 100%;
    border-radius: 10px;
    background: linear-gradient(135deg, #00e795 0%, #00b374 100%) !important;
    color: #042416 !important;
    border: 1px solid #00ffaa !important;
    box-shadow: 0 4px 18px rgba(0, 231, 149, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 4px;
}

.btn-plinko-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 231, 149, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    filter: brightness(1.06);
}

.btn-plinko-play:active {
    transform: translateY(0);
}

/* ==========================================================================
   COMPACT SLEEK AUTO-PLAY TOGGLE BUTTON & FALLBACK SWITCHES
   ========================================================================== */
.autoplay-compact-box {
    margin: 6px 0 8px 0;
    width: 100%;
}

.btn-autoplay-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 34px;
    padding: 0 12px;
    background: linear-gradient(135deg, rgba(20, 26, 40, 0.85) 0%, rgba(12, 16, 25, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}

.btn-autoplay-toggle:hover {
    border-color: rgba(0, 231, 149, 0.4);
    background: linear-gradient(135deg, rgba(26, 35, 54, 0.95) 0%, rgba(16, 22, 35, 0.98) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.btn-autoplay-toggle:active {
    transform: translateY(0);
}

.btn-autoplay-toggle .autoplay-native-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.btn-autoplay-toggle .autoplay-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-autoplay-toggle .autoplay-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #475569;
    transition: all 0.22s ease;
}

.btn-autoplay-toggle .autoplay-icon {
    font-size: 0.80rem;
    color: #64748b;
    transition: all 0.22s ease;
}

.btn-autoplay-toggle .autoplay-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #94a3b8;
    text-transform: uppercase;
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    transition: color 0.22s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-autoplay-toggle .autoplay-sub {
    font-size: 0.60rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.04em;
}

.btn-autoplay-toggle .autoplay-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 19px;
    padding: 0 7px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #64748b;
    transition: all 0.22s ease;
}

.btn-autoplay-toggle .autoplay-badge::before {
    content: "OFF";
}

/* ACTIVE STATE - When Checkbox is checked or .is-active class */
.btn-autoplay-toggle:has(.autoplay-native-input:checked),
.btn-autoplay-toggle.is-active {
    background: linear-gradient(135deg, rgba(0, 231, 149, 0.12) 0%, rgba(13, 30, 25, 0.95) 100%);
    border-color: #00e795;
    box-shadow: 0 0 16px rgba(0, 231, 149, 0.28), inset 0 0 8px rgba(0, 231, 149, 0.08);
}

.btn-autoplay-toggle:has(.autoplay-native-input:checked) .autoplay-dot,
.btn-autoplay-toggle.is-active .autoplay-dot {
    background: #00ffaa;
    box-shadow: 0 0 8px #00ffaa;
    animation: autoplayDotPulse 1.4s ease-in-out infinite;
}

.btn-autoplay-toggle:has(.autoplay-native-input:checked) .autoplay-icon,
.btn-autoplay-toggle.is-active .autoplay-icon {
    color: #00ffaa;
    transform: scale(1.12);
}

.btn-autoplay-toggle:has(.autoplay-native-input:checked) .autoplay-title,
.btn-autoplay-toggle.is-active .autoplay-title {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 231, 149, 0.3);
}

.btn-autoplay-toggle:has(.autoplay-native-input:checked) .autoplay-sub,
.btn-autoplay-toggle.is-active .autoplay-sub {
    color: #a7f3d0;
}

.btn-autoplay-toggle:has(.autoplay-native-input:checked) .autoplay-badge,
.btn-autoplay-toggle.is-active .autoplay-badge {
    background: #00e795;
    border-color: #00ffaa;
    color: #042416;
    box-shadow: 0 0 10px rgba(0, 231, 149, 0.45);
}

.btn-autoplay-toggle:has(.autoplay-native-input:checked) .autoplay-badge::before,
.btn-autoplay-toggle.is-active .autoplay-badge::before {
    content: "ACTIVE";
}

@keyframes autoplayDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

/* Fallback & General Modern Toggle Switches (e.g. Crash Auto-Cashout) */
.toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    user-select: none;
    padding: 2px 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    transition: all 0.22s ease;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background: #94a3b8;
    border-radius: 50%;
    transition: all 0.22s ease;
}

.toggle-switch input:checked + .slider {
    background: rgba(0, 231, 149, 0.25);
    border-color: #00e795;
    box-shadow: 0 0 10px rgba(0, 231, 149, 0.3);
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(16px);
    background: #00e795;
    box-shadow: 0 0 6px #00ffaa;
}

.toggle-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #94a3b8;
    text-transform: uppercase;
}

/* ==========================================================================
   MOBILE OPTIMIZATIONS (SLIMMER PADDING, ZERO OVERFLOW & FIXED FOOTER CONTROLS)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Slim Game Layout & Seamless Connection to History Panel */
    .game-play-wrapper {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        margin-bottom: 0 !important;
    }

    #game-view-container {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .main-games-area {
        gap: 8px !important;
    }

    .dashboard-grid {
        gap: 8px !important;
    }

    /* Live bets history panel sits right beneath the game with minimal, clean spacing */
    .live-bets-panel {
        margin-top: 6px !important;
        margin-bottom: 180px !important; /* Space at the very bottom of page scroll for fixed footer */
    }

    .game-header-bar {
        margin-bottom: 8px !important;
        padding-bottom: 6px !important;
    }

    .btn-back-lobby {
        padding: 6px 12px !important;
        font-size: 0.78rem !important;
    }

    #active-game-title {
        font-size: 1.1rem !important;
    }

    /* 2. Compact Display Areas (remove excess empty space) */
    .game-display-area {
        min-height: auto !important;
        padding: 10px 8px !important;
        border-radius: var(--radius-md) !important;
    }

    .jackpot-display-area,
    .dice-display-area,
    .keno-display-area,
    .target-display-area,
    .mines-display-area,
    .tower-display-area,
    .plinko-display-area,
    .hilo-display-area,
    .roulette-display-area {
        min-height: auto !important;
        padding: 10px 6px !important;
        gap: 8px !important;
    }

    .roulette-display-area {
        height: 140px !important;
        min-height: 140px !important;
        padding: 6px !important;
    }

    /* 3. Jackpot Responsive Sizing (Prevent horizontal shifting / overflow) */
    .jackpot-arena-header {
        margin-bottom: 6px !important;
    }

    .jackpot-arena-badge, .jackpot-max-pill {
        font-size: 0.70rem !important;
        padding: 4px 10px !important;
    }

    .pizza-wheel-wrapper {
        width: min(250px, 68vw) !important;
        height: min(250px, 68vw) !important;
        margin: 0 auto !important;
    }

    #pizza-jackpot-wheel {
        width: 100% !important;
        height: 100% !important;
    }

    .wheel-pizza-pointer {
        top: -14px !important;
    }

    .pointer-arrow-svg {
        width: 28px !important;
        height: 36px !important;
    }

    .jackpot-result-splash {
        margin-top: 8px !important;
        min-height: 28px !important;
    }

    .jp-splash {
        font-size: 0.75rem !important;
        padding: 5px 12px !important;
    }

    .jackpot-payout-badges {
        margin-top: 6px !important;
        gap: 4px !important;
    }

    .jp-badge {
        padding: 4px 8px !important;
        min-width: 52px !important;
    }

    .jp-badge .jp-badge-rate {
        font-size: 0.76rem !important;
    }

    .jp-badge .jp-badge-title {
        font-size: 0.52rem !important;
    }

    /* 4. Keno Board Mobile Compactness */
    .keno-display-area {
        padding: 12px 8px !important;
        min-height: auto !important;
    }

    .keno-arena-header {
        margin-bottom: 8px !important;
    }

    .keno-title-badge {
        font-size: 0.72rem !important;
        padding: 2px 7px !important;
    }

    .keno-jackpot-tag {
        font-size: 0.68rem !important;
        padding: 2px 7px !important;
    }

    .keno-board {
        max-width: 340px !important;
        gap: 4px !important;
        margin: 0 auto !important;
    }

    .keno-tile {
        font-size: 0.80rem !important;
        border-radius: 6px !important;
    }

    .keno-drawn-area {
        margin-top: 10px !important;
        padding: 8px !important;
        gap: 6px !important;
    }

    .keno-drawn-label {
        font-size: 0.68rem !important;
    }

    .keno-drawn-rack {
        gap: 4px !important;
    }

    .keno-ball-socket {
        width: 28px !important;
        height: 28px !important;
    }

    .keno-socket-num {
        font-size: 0.64rem !important;
    }

    .keno-ball-drawn {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.74rem !important;
    }

    .keno-ladder-step {
        min-width: 44px !important;
        padding: 4px 3px !important;
    }

    .keno-step-hits {
        font-size: 0.60rem !important;
    }

    .keno-step-mult {
        font-size: 0.72rem !important;
    }

    /* 5. Dice Visual Mobile Compactness */
    .dice-arena-header {
        margin-bottom: 6px !important;
    }

    .dice-arena-badge, .dice-jackpot-pill {
        font-size: 0.70rem !important;
        padding: 3px 9px !important;
    }

    .dice-history-bar {
        margin-bottom: 8px !important;
        padding: 4px 6px !important;
    }

    .dice-chip {
        font-size: 0.68rem !important;
        padding: 2px 6px !important;
    }

    .dice-condition-tabs {
        margin-bottom: 8px !important;
        max-width: 100% !important;
    }

    .btn-dice-tab {
        font-size: 0.74rem !important;
        padding: 6px 8px !important;
    }

    .dice-visual-card {
        padding: 14px 10px !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
        border-radius: 18px !important;
    }

    .dice-tumbler-icon {
        font-size: 1.5rem !important;
    }

    .dice-number-display {
        padding: 8px 24px !important;
        min-width: 190px !important;
        border-radius: 14px !important;
    }

    .dice-number-display span {
        font-size: 2.6rem !important;
        line-height: 1 !important;
    }

    .dice-status-pill {
        font-size: 0.74rem !important;
        padding: 4px 10px !important;
        min-height: 24px !important;
    }

    .dice-slider-container {
        width: 95% !important;
        margin: 10px auto 4px auto !important;
    }

    .slider-track {
        height: 18px !important;
    }

    .slider-handle {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.75rem !important;
    }

    .handle-bubble {
        font-size: 0.70rem !important;
        padding: 2px 6px !important;
        bottom: calc(100% + 7px) !important;
    }

    .slider-labels {
        font-size: 0.72rem !important;
        margin-top: 10px !important;
    }

    /* 6. Target Board Mobile Sizing */
    .target-canvas-box {
        width: min(280px, 78vw) !important;
        height: min(280px, 78vw) !important;
    }

    .target-canvas-box svg {
        width: 100% !important;
        height: 100% !important;
    }

    .target-arena-header {
        margin-bottom: 8px !important;
    }

    .target-title-badge {
        font-size: 0.72rem !important;
        padding: 2px 7px !important;
    }

    .target-jackpot-tag {
        font-size: 0.68rem !important;
        padding: 2px 7px !important;
    }

    .target-payout-table {
        display: flex !important;
        gap: 4px !important;
        padding: 6px 8px !important;
        margin-top: 6px !important;
    }

    .target-payout-table .payout-row {
        padding: 3px 6px !important;
        font-size: 0.70rem !important;
    }

    .target-payout-table .badge-ring {
        font-size: 0.68rem !important;
        padding: 1px 5px !important;
    }

    /* 7. Mines, Tower, HiLo Mobile Sizing */
    .mines-arena-header {
        max-width: 310px !important;
        margin-bottom: 6px !important;
    }

    .mines-arena-badge, .mines-hazard-pill {
        font-size: 0.70rem !important;
        padding: 3px 8px !important;
    }

    .mines-status-pill {
        max-width: 310px !important;
        font-size: 0.72rem !important;
        padding: 4px 8px !important;
        margin-bottom: 8px !important;
    }

    .mines-grid {
        max-width: 310px !important;
        gap: 6px !important;
        padding: 10px !important;
        border-radius: 14px !important;
    }

    .mine-tile {
        font-size: 1.25rem !important;
        border-radius: 8px !important;
    }

    .tower-arena-header {
        max-width: 320px !important;
        margin-bottom: 6px !important;
    }

    .tower-arena-badge, .tower-jackpot-pill {
        font-size: 0.70rem !important;
        padding: 3px 8px !important;
    }

    .tower-container {
        max-width: 320px !important;
        padding: 8px 8px 10px 8px !important;
        gap: 3px !important;
    }

    .tower-spire-crown {
        padding: 3px 8px !important;
    }

    .spire-crown-text {
        font-size: 0.65rem !important;
    }

    .tower-row {
        padding: 2px 4px !important;
        gap: 5px !important;
    }

    .tower-floor-badge {
        min-width: 48px !important;
        padding: 2px 3px !important;
    }

    .badge-floor-tag {
        font-size: 0.54rem !important;
    }

    .badge-floor-mult {
        font-size: 0.68rem !important;
    }

    .tower-tile {
        height: 32px !important;
        font-size: 0.78rem !important;
        border-radius: 7px !important;
    }

    .hilo-display-area {
        min-height: auto !important;
        padding: 10px 8px !important;
    }

    .playing-card {
        width: 120px !important;
        height: 174px !important;
        border-radius: 10px !important;
        padding: 8px !important;
    }

    .card-val {
        font-size: 1.15rem !important;
    }

    .card-suit {
        font-size: 0.95rem !important;
    }

    .card-center {
        font-size: 3.2rem !important;
    }

    .hilo-metrics-row {
        gap: 6px !important;
        margin-bottom: 8px !important;
    }

    .hilo-metric-card {
        padding: 6px 8px !important;
    }

    .hilo-metric-card .stat-val {
        font-size: 0.95rem !important;
    }

    .btn-hilo-guess {
        padding: 6px 4px !important;
    }

    .btn-hilo-guess .guess-main {
        font-size: 0.82rem !important;
    }

    .btn-hilo-guess .guess-sub {
        font-size: 0.58rem !important;
    }

    .btn-hilo-cashout,
    .btn-hilo-start {
        height: 40px !important;
        font-size: 0.92rem !important;
    }

    /* 8. FIXED BOTTOM FOOTER DOCK FOR BET CONTROLS */
    .game-controls-area {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        z-index: 1000 !important;
        background: rgba(13, 17, 24, 0.97) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
        border-radius: 16px 16px 0 0 !important;
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)) 12px !important;
        box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.8) !important;
        gap: 5px !important;
        height: auto !important;
        max-height: 48vh !important;
        overflow-y: auto !important;
    }

    .game-controls-area .control-group {
        gap: 2px !important;
    }

    .game-controls-area .control-group label {
        font-size: 0.68rem !important;
        font-weight: 700 !important;
        margin-bottom: 1px !important;
    }

    .game-controls-area .input-field {
        height: 38px !important;
        font-size: 0.92rem !important;
        padding: 0 10px !important;
        border-radius: 6px !important;
    }

    .game-controls-area .input-actions {
        right: 4px !important;
        gap: 3px !important;
    }

    .game-controls-area .input-actions .btn-xs {
        height: 26px !important;
        padding: 0 8px !important;
        font-size: 0.72rem !important;
        border-radius: 4px !important;
    }

    /* 9. Ultra-compact Quick Bets Row (all 6 chips in 1 row) */
    .game-controls-area .quick-bets-grid {
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 4px !important;
        margin-top: 3px !important;
    }

    .game-controls-area .btn-quick-bet {
        padding: 5px 1px !important;
        font-size: 0.70rem !important;
        font-weight: 700 !important;
        border-radius: 4px !important;
    }

    /* 10. Compact Big Action / Spin / Roll Button */
    .game-controls-area .btn-action-big,
    .game-controls-area button[id^="btn-"]:not(.btn-xs):not(.btn-quick-bet):not(.btn-color) {
        height: 42px !important;
        font-size: 0.95rem !important;
        font-weight: 800 !important;
        margin-top: 4px !important;
        padding: 0 16px !important;
        border-radius: 8px !important;
    }

    /* 11. Dice Controls in Fixed Footer: 2-column layout for Win Chance & Multiplier */
    .dice-play-wrapper .game-controls-area {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 4px 8px !important;
    }

    .dice-play-wrapper .game-controls-area > .control-group:first-child {
        grid-column: 1 / -1 !important; /* Bet amount full width */
    }

    .dice-play-wrapper .game-controls-area > .dice-metrics-grid {
        grid-column: 1 / -1 !important; /* Multiplier & Win Chance row */
        gap: 6px !important;
        margin-bottom: 2px !important;
    }

    .dice-play-wrapper .dice-metric-card {
        padding: 4px 8px !important;
        border-radius: 6px !important;
    }

    .dice-play-wrapper .dice-metric-card label {
        font-size: 0.58rem !important;
    }

    .dice-play-wrapper .dice-metric-card .input-field {
        font-size: 0.85rem !important;
        height: 18px !important;
        min-height: 18px !important;
        line-height: 18px !important;
    }

    .dice-play-wrapper .game-controls-area > .control-group:nth-child(4),
    .dice-play-wrapper .game-controls-area > .control-group:last-of-type {
        grid-column: 1 / -1 !important; /* Auto play toggle full width */
    }

    .dice-play-wrapper .game-controls-area > #btn-roll {
        grid-column: 1 / -1 !important; /* Roll button full width */
    }

    /* 12. Keno & Mines compact stats in Fixed Footer */
    .game-controls-area .keno-stats-header,
    .game-controls-area .keno-selection-stats {
        padding: 4px 8px !important;
        margin: 2px 0 !important;
        gap: 6px !important;
    }

    .game-controls-area .keno-stat-title,
    .game-controls-area .keno-selection-stats .stat-box span {
        font-size: 0.60rem !important;
    }

    .game-controls-area .keno-stat-num,
    .game-controls-area .keno-selection-stats .stat-box strong {
        font-size: 0.82rem !important;
    }

    .game-controls-area .btn-keno-util,
    .game-controls-area .keno-selection-stats .btn-xs {
        padding: 3px 8px !important;
        font-size: 0.68rem !important;
        height: 28px !important;
    }

    .game-controls-area .keno-payout-preview {
        padding: 4px 8px !important;
        font-size: 0.70rem !important;
        min-height: 38px !important;
    }

    .game-controls-area .btn-keno-play {
        height: 38px !important;
        font-size: 0.84rem !important;
    }

    .game-controls-area .color-select-group .btn-color {
        height: 32px !important;
        font-size: 0.82rem !important;
    }

    .game-controls-area .toggle-wrapper {
        padding: 2px 0 !important;
    }

    .game-controls-area .toggle-label {
        font-size: 0.70rem !important;
    }

    .game-controls-area .autoplay-compact-box {
        grid-column: 1 / -1 !important;
        margin: 2px 0 4px 0 !important;
    }

    .game-controls-area .btn-autoplay-toggle {
        height: 28px !important;
        padding: 0 10px !important;
    }

    .game-controls-area .btn-autoplay-toggle .autoplay-icon {
        font-size: 0.72rem !important;
    }

    .game-controls-area .btn-autoplay-toggle .autoplay-title {
        font-size: 0.65rem !important;
    }

    .game-controls-area .btn-autoplay-toggle .autoplay-badge {
        height: 17px !important;
        padding: 0 5px !important;
        font-size: 0.52rem !important;
    }

    .game-controls-area .btn-plinko-tab {
        padding: 5px 2px !important;
        font-size: 0.68rem !important;
    }

    .game-controls-area .btn-plinko-play {
        height: 40px !important;
        font-size: 0.92rem !important;
    }
}

/* ==========================================================================
   LIVE COMMUNITY CHAT WIDGET (FLOATING CIRCULAR TRIGGER & EXPANDED CARD)
   ========================================================================== */

/* Floating Circular Chat Button */
.floating-chat-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #131b2e 0%, #090e18 100%);
    border: 2px solid rgba(0, 231, 149, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 20px rgba(0, 231, 149, 0.25);
    cursor: pointer;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, border-color 0.25s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.floating-chat-btn:hover {
    transform: scale(1.08);
    border-color: #00e795;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75), 0 0 35px rgba(0, 231, 149, 0.45);
}

.floating-chat-btn:active {
    transform: scale(0.96);
}

.chat-btn-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #00e795;
    font-size: 1.5rem;
}

.chat-online-pulse-dot {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00e795;
    border: 2px solid #090e18;
    box-shadow: 0 0 8px #00e795;
}

/* Flashing Glow Notification Animation (When unread message arrives) */
.floating-chat-btn.chat-flashing {
    animation: chatPulseFlash 1.6s infinite ease-in-out;
}

@keyframes chatPulseFlash {
    0% {
        transform: scale(1);
        border-color: #00e795;
        box-shadow: 0 0 0 0 rgba(0, 231, 149, 0.7), 0 0 20px rgba(243, 186, 47, 0.3);
    }
    50% {
        transform: scale(1.12);
        border-color: #f3ba2f;
        box-shadow: 0 0 0 16px rgba(0, 231, 149, 0), 0 0 40px rgba(243, 186, 47, 0.85);
    }
    100% {
        transform: scale(1);
        border-color: #00e795;
        box-shadow: 0 0 0 0 rgba(0, 231, 149, 0), 0 0 20px rgba(243, 186, 47, 0.3);
    }
}

/* Unread Count Badge */
.chat-unread-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.65);
    border: 2px solid #090e18;
    animation: badgePop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes badgePop {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Non-blocking Floating Dock on Right (Does NOT cover the screen or block gameplay) */
.chat-floating-dock {
    position: fixed;
    bottom: 92px;
    right: 24px;
    z-index: 9995;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    animation: chatDockSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-floating-dock.hidden {
    display: none !important;
}

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

/* Expanded Chat Widget Card */
.chat-widget-card {
    max-width: 440px !important;
    width: 440px !important;
    height: 660px !important;
    max-height: calc(100vh - 80px) !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 20px !important;
    background: #0a0f1c !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 231, 149, 0.1) !important;
    padding: 18px 20px !important;
    box-sizing: border-box !important;
}

.chat-widget-header {
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-badge-pill {
    background: rgba(0, 231, 149, 0.12);
    border: 1px solid rgba(0, 231, 149, 0.35);
    color: #00e795;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 9px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.chat-dot-ping {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00e795;
    box-shadow: 0 0 6px #00e795;
}

.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.88rem;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.chat-action-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.chat-action-btn.muted {
    color: #ef4444;
}

.chat-event-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    background: linear-gradient(135deg, rgba(243, 186, 47, 0.14) 0%, rgba(0, 230, 118, 0.08) 100%);
    border: 1px solid rgba(243, 186, 47, 0.28);
    border-radius: var(--radius-sm, 8px);
    margin-bottom: 8px;
    font-size: 0.74rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.chat-event-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-event-title {
    font-weight: 600;
    color: #cbd5e0;
}

.chat-event-title strong {
    color: #f3ba2f;
    font-weight: 800;
}

.chat-event-timer {
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-weight: 800;
    color: #00e676;
    background: rgba(0, 0, 0, 0.45);
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 230, 118, 0.25);
}

.chat-event-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: #f3ba2f;
    background: rgba(243, 186, 47, 0.15);
    border: 1px solid rgba(243, 186, 47, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
}

.chat-rules-bar {
    font-size: 0.74rem;
    color: var(--text-muted);
    padding: 4px 0 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-status-indicator {
    color: var(--text-dim);
    font-size: 0.72rem;
}

.chat-messages-scroll-area {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}

/* Scroll to Bottom Pill */
.chat-scroll-bottom-pill {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: #131c2d;
    border: 1px solid rgba(0, 231, 149, 0.5);
    color: #00e795;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    transition: all 0.15s ease;
    animation: fadeInSlideUp 0.2s ease-out;
}

.chat-scroll-bottom-pill:hover {
    background: #00e795;
    color: #05121b;
    border-color: #00e795;
    box-shadow: 0 6px 20px rgba(0, 231, 149, 0.4);
}

/* Quick Emoji Reaction Bar */
.chat-emoji-reaction-bar {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 8px 2px 4px;
    scrollbar-width: none;
    user-select: none;
}

.chat-emoji-reaction-bar::-webkit-scrollbar {
    display: none;
}

.chat-emoji-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    font-size: 1.05rem;
    padding: 3px 7px;
    cursor: pointer;
    line-height: 1.2;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.chat-emoji-chip:hover {
    background: rgba(0, 231, 149, 0.16);
    border-color: rgba(0, 231, 149, 0.4);
    transform: translateY(-2px) scale(1.15);
}

.chat-emoji-chip:active {
    transform: scale(0.95);
}

.chat-guest-box {
    margin-top: 8px;
    background: rgba(243, 186, 47, 0.08);
    border: 1px solid rgba(243, 186, 47, 0.25);
    border-radius: 10px;
    padding: 10px 14px;
    text-align: center;
}

.chat-guest-title {
    font-size: 0.80rem;
    color: #f3ba2f;
    font-weight: 700;
    margin-bottom: 6px;
}

.chat-input-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
}

.chat-text-input {
    height: 42px;
    font-size: 0.88rem;
    flex: 1;
}

.chat-send-btn {
    padding: 0 16px;
    background: linear-gradient(135deg, #00e795, #00c982);
    color: #05140f;
    font-weight: 800;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
}

.chat-send-btn:hover {
    box-shadow: 0 4px 15px rgba(0, 231, 149, 0.4);
    transform: translateY(-1px);
}

.chat-footer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
    font-size: 0.70rem;
    color: var(--text-muted);
}

#chat-cooldown-timer {
    color: var(--accent-gold);
    font-weight: 700;
}

/* Mobile Responsive Optimization */
@media (max-width: 640px) {
    .floating-chat-btn {
        right: 16px;
        bottom: 18px;
        width: 54px;
        height: 54px;
    }

    .chat-btn-content {
        font-size: 1.35rem;
    }

    .chat-floating-dock {
        right: 12px;
        bottom: 78px;
        left: 12px;
    }

    .chat-widget-card {
        max-width: 100% !important;
        width: 100% !important;
        height: 75vh !important;
        max-height: 75vh !important;
        border-radius: 16px !important;
        padding: 14px 14px !important;
    }
/* ====================================================================
   SPACEBAR HOLD-TO-PLAY ACTION OVERLAY & CHARGING ANIMATIONS
   ==================================================================== */
.space-charging {
    position: relative !important;
    overflow: hidden !important;
    transform: scale(0.985) !important;
    box-shadow: 0 0 25px rgba(0, 231, 149, 0.75), 0 0 50px rgba(56, 189, 248, 0.4), inset 0 0 15px rgba(0, 231, 149, 0.4) !important;
    border-color: #00e795 !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.space-hold-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    pointer-events: none;
    z-index: 25;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 17, 26, 0.88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.space-hold-progress {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: linear-gradient(90deg, #00e795 0%, #38bdf8 50%, #00e795 100%);
    background-size: 200% 100%;
    opacity: 0.55;
    animation: spaceHoldGradientMove 1.5s linear infinite;
    pointer-events: none;
}

@keyframes spaceHoldGradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.space-hold-label {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    font-family: var(--font-heading, 'Outfit', sans-serif);
    user-select: none;
}

.space-hold-label i {
    color: #00e795;
    font-size: 1.05rem;
    animation: spaceBoltPulse 0.5s ease-in-out infinite alternate;
}

@keyframes spaceBoltPulse {
    0% { transform: scale(0.9); filter: drop-shadow(0 0 2px #00e795); }
    100% { transform: scale(1.25); filter: drop-shadow(0 0 10px #00e795); }
}

.space-hold-countdown {
    color: #38bdf8;
    font-size: 1.1rem;
    font-family: monospace;
    font-weight: 900;
    margin-left: 2px;
}

/* Community Chat Mention Styling */
.chat-mention {
    display: inline-block;
    padding: 1px 6px;
    margin: 0 1px;
    border-radius: 5px;
    background: rgba(56, 189, 248, 0.14);
    color: #38bdf8;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.2px;
    transition: all 0.15s ease;
    user-select: text;
    cursor: pointer;
}

.chat-mention:hover {
    background: rgba(56, 189, 248, 0.28);
    color: #7dd3fc;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.35);
    transform: translateY(-1px);
}

.chat-mention.chat-mention-me {
    background: linear-gradient(135deg, rgba(243, 186, 47, 0.22), rgba(0, 231, 149, 0.22));
    border: 1px solid rgba(243, 186, 47, 0.55);
    color: #f3ba2f;
    font-weight: 800;
    box-shadow: 0 0 10px rgba(243, 186, 47, 0.3);
    animation: mentionGlowPulse 2.5s ease-in-out infinite alternate;
}

.chat-mention.chat-mention-me:hover {
    background: linear-gradient(135deg, rgba(243, 186, 47, 0.35), rgba(0, 231, 149, 0.35));
    border-color: #f3ba2f;
    box-shadow: 0 0 14px rgba(243, 186, 47, 0.5);
}

@keyframes mentionGlowPulse {
    0% {
        box-shadow: 0 0 6px rgba(243, 186, 47, 0.25);
    }
    100% {
        box-shadow: 0 0 12px rgba(243, 186, 47, 0.55);
    }
}

.chat-author-name {
    transition: color 0.15s ease;
}

.chat-author-name:hover {
    filter: brightness(1.25);
    text-decoration: underline;
}
