/* ==========================================================================
   🎮 MYCHAL SMP - MODERN GAMES & HUB STYLING
   Tactical Dark Gaming UI System
   Strict compliance: AGENTS.md & mychalsmp_ui_mindset.md
   ========================================================================== */

/* Universal Game Modal Dialog */
.game-modal-dialog {
    background: #0d0f17 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85) !important;
    width: 95% !important;
    max-width: 620px !important;
    padding: 0 !important;
    overflow: hidden !important;
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    animation: modalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Modal Headers */
.game-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #12141f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.game-modal-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.game-modal-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.game-modal-title-text {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #ffffff;
    line-height: 1.2;
}

.game-modal-title-text span {
    color: var(--game-theme-color, #0a67e5);
}

.game-modal-subtitle {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-top: 2px;
}

.game-modal-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-modal-balance {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: #21DE00;
    background: rgba(33, 222, 0, 0.08);
    border: 1px solid rgba(33, 222, 0, 0.22);
    padding: 6px 12px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.game-modal-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.7rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.15s ease, transform 0.15s ease;
}

.game-modal-close-btn:hover {
    color: #f51515;
    transform: scale(1.1);
}

/* Modal Body */
.game-modal-body {
    padding: 22px;
    max-height: calc(88vh - 75px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* Tactical Controls Card */
.game-tactical-card {
    background: #12141f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    transition: border-color 0.2s ease;
}

.game-tactical-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

/* Bet Input Box */
.game-bet-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.game-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.game-input-wrapper i {
    position: absolute;
    left: 12px;
    color: #ffb703;
    font-size: 0.9rem;
}

.game-modern-input {
    width: 100%;
    background: #181b2a;
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    padding: 10px 14px 10px 34px;
    border-radius: 9px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.game-modern-input:focus {
    border-color: #0a67e5;
    background: #1c2033;
}

/* Quick Bet Modifier Grid (5%, 10%, 25%, 50%, 75%, 99%) */
.game-quick-bet-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}

.game-qbtn {
    background: #181b2a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 7px 2px;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
}

.game-qbtn:hover {
    background: #23273e;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.game-qbtn:active {
    transform: scale(0.95);
}

.game-qbtn.active {
    background: rgba(10, 103, 229, 0.25) !important;
    border-color: #0a67e5 !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(10, 103, 229, 0.35) !important;
}

/* Primary Action Buttons */
.game-action-btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #0a67e5, #0852b8);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(10, 103, 229, 0.25);
}

.game-action-btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(10, 103, 229, 0.35);
    filter: brightness(1.08);
}

.game-action-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   🎮 1. GAMES HUB LAUNCHER MODAL (#games-menu)
   ========================================================================== */
.games-hub-dialog {
    max-width: 820px !important;
}

.games-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    padding: 6px 0;
}

.games-hub-card {
    background: #12141f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.games-hub-card:hover {
    transform: translateY(-3px);
    background: #181b2a;
    border-color: rgba(10, 103, 229, 0.4);
}

.games-hub-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.games-hub-badge {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.badge-hot {
    background: rgba(245, 21, 21, 0.15);
    color: #f51515;
    border: 1px solid rgba(245, 21, 21, 0.3);
}

.badge-popular {
    background: rgba(255, 183, 3, 0.15);
    color: #ffb703;
    border: 1px solid rgba(255, 183, 3, 0.3);
}

.badge-skill {
    background: rgba(33, 222, 0, 0.15);
    color: #21DE00;
    border: 1px solid rgba(33, 222, 0, 0.3);
}

.badge-classic {
    background: rgba(10, 103, 229, 0.15);
    color: #0a67e5;
    border: 1px solid rgba(10, 103, 229, 0.3);
}

.games-hub-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
    display: inline-block;
}

.games-hub-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}

.games-hub-desc {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.45;
    margin-bottom: 14px;
    min-height: 34px;
}

.games-hub-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 12px;
    margin-top: auto;
}

.games-hub-stat {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 700;
}

.games-hub-play-link {
    font-size: 0.78rem;
    font-weight: 800;
    color: #0a67e5;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.15s ease;
}

.games-hub-card:hover .games-hub-play-link {
    gap: 8px;
    color: #3b82f6;
}

/* ==========================================================================
   💣 2. MINY (TACTICAL MINESWEEPER)
   ========================================================================== */
.mines-modal-dialog {
    max-width: 680px !important;
    --game-theme-color: #f51515;
}

.mines-arena-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 18px;
    align-items: start;
}

@media (max-width: 640px) {
    .mines-arena-layout {
        grid-template-columns: 1fr;
    }
}

.mines-stats-panel {
    background: #12141f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mines-status-pill {
    background: #181b2a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #94a3b8;
    text-align: center;
    min-height: 18px;
}

.mines-live-win-box {
    background: #181b2a;
    border: 1px solid rgba(33, 222, 0, 0.2);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.mines-live-win-lbl {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 2px;
}

.mines-live-win-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.45rem;
    font-weight: 900;
    color: #21DE00;
    letter-spacing: -0.5px;
}

.mines-info-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.mines-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 6px;
    border-radius: 7px;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
}

.mines-cashout-btn {
    width: 100%;
    background: linear-gradient(135deg, #21DE00, #18a800);
    color: #000000;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    padding: 12px 14px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(33, 222, 0, 0.35);
    animation: cashoutPulse 1.8s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

@keyframes cashoutPulse {
    0% { transform: scale(1); box-shadow: 0 4px 16px rgba(33, 222, 0, 0.35); }
    50% { transform: scale(1.02); box-shadow: 0 6px 24px rgba(33, 222, 0, 0.6); }
    100% { transform: scale(1); box-shadow: 0 4px 16px rgba(33, 222, 0, 0.35); }
}

/* 5x5 Mines Board */
.mines-board-panel {
    background: #12141f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
}

.mines-grid-modern {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 8px !important;
    max-width: 360px !important;
    margin: 0 auto !important;
}

.mine-tile {
    aspect-ratio: 1 !important;
    background: #181b2a !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.4rem !important;
    color: rgba(255, 255, 255, 0.25) !important;
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
    user-select: none !important;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.4) !important;
}

.mine-tile:hover:not(.revealed):not(.exploded):not(.missed) {
    background: #23273e !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.6) !important;
    transform: translateY(-2px) !important;
}

.mine-tile:active:not(.revealed):not(.exploded):not(.missed) {
    transform: scale(0.94) !important;
}

.mine-tile.revealed {
    background: radial-gradient(circle, rgba(33, 222, 0, 0.2) 0%, #15221b 100%) !important;
    border-color: #21DE00 !important;
    color: #21DE00 !important;
    transform: scale(1) !important;
    animation: tilePop 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.mine-tile.exploded {
    background: radial-gradient(circle, rgba(245, 21, 21, 0.3) 0%, #2b1114 100%) !important;
    border-color: #f51515 !important;
    color: #f51515 !important;
    animation: tileShake 0.4s ease !important;
}

.mine-tile.missed {
    background: #11131c !important;
    border-color: rgba(255, 255, 255, 0.03) !important;
    opacity: 0.4 !important;
    cursor: default !important;
}

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

@keyframes tileShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

/* ==========================================================================
   🎰 3. AUTOMATY (ROYAL 3D SLOTS)
   ========================================================================== */
.slots-modal-dialog {
    max-width: 620px !important;
    --game-theme-color: #ffb703;
}

/* Las Vegas Casino Marquee */
.slots-marquee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(180deg, #1f1b0d 0%, #12141f 100%);
    border: 1px solid rgba(255, 183, 3, 0.3);
    border-radius: 10px;
    padding: 8px 14px;
    margin-bottom: 12px;
}

.marquee-title {
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #ffb703;
    text-shadow: 0 0 10px rgba(255, 183, 3, 0.5);
    text-transform: uppercase;
}

.marquee-bulb {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffb703;
    box-shadow: 0 0 8px #ffb703;
    animation: bulbTwinkle 1.2s infinite alternate;
}

.marquee-bulb:nth-child(2) {
    animation-delay: 0.3s;
}

.marquee-bulb:nth-child(4) {
    animation-delay: 0.6s;
}

.marquee-bulb:nth-child(5) {
    animation-delay: 0.9s;
}

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

/* Stage Row (Machine + 3D Lever) */
.slots-stage-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.slots-cabinet-chassis {
    flex: 1;
    background: #0f111a;
    border: 2px solid rgba(255, 183, 3, 0.35);
    border-radius: 14px;
    padding: 14px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.slots-cabinet-chassis.winning {
    border-color: #ffb703;
    box-shadow: 0 0 35px rgba(255, 183, 3, 0.6), inset 0 0 20px rgba(255, 183, 3, 0.2);
}

.slots-window-modern {
    background: #08090e !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    padding: 8px !important;
    position: relative !important;
    box-shadow: inset 0 20px 25px rgba(0, 0, 0, 0.85), inset 0 -20px 25px rgba(0, 0, 0, 0.85) !important;
    overflow: hidden !important;
}

.reel-window {
    display: flex;
    justify-content: center;
    gap: 12px;
    height: 120px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #0d0f17;
    border-radius: 8px;
}

/* 3D Cylindrical Reel look */
.reel {
    width: 84px !important;
    height: 120px !important;
    position: relative !important;
    display: block !important;
    background: #11131c;
    border-left: 1px solid rgba(255, 255, 255, 0.04);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 15px 15px rgba(0, 0, 0, 0.8), inset 0 -15px 15px rgba(0, 0, 0, 0.8);
}

.reel-icon {
    width: 84px !important;
    height: 120px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 52px !important;
    line-height: 120px !important;
    user-select: none !important;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Specular Glass Reflection */
.overlay-shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.1) 25%,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 75%,
        rgba(0, 0, 0, 0.85) 100%
    );
    z-index: 5;
    pointer-events: none;
}

/* Laser Payline */
.slots-payline-laser {
    position: absolute;
    top: 50%;
    left: 4px;
    right: 4px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffb703, #ffffff, #ffb703, transparent);
    box-shadow: 0 0 10px #ffb703;
    z-index: 8;
    pointer-events: none;
    transform: translateY(-50%);
}

.payline-badge {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    font-weight: 800;
    background: rgba(255, 183, 3, 0.2);
    border: 1px solid #ffb703;
    color: #ffb703;
    padding: 2px 4px;
    border-radius: 4px;
    z-index: 9;
    letter-spacing: 0.5px;
}

.payline-badge.left { left: 4px; }
.payline-badge.right { right: 4px; }

/* Mechanical Pull Lever */
.slots-lever-container {
    width: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    user-select: none;
    perspective: 400px;
}

.lever-mount {
    width: 32px;
    height: 110px;
    background: linear-gradient(180deg, #1f2338, #10121d);
    border: 2px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    position: relative;
    box-shadow: inset 0 3px 12px rgba(0, 0, 0, 0.95), 0 6px 18px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
}

.lever-arm {
    position: absolute;
    top: 10px;
    width: 10px;
    height: 80px;
    transform-origin: bottom center;
    transition: transform 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lever-rod {
    width: 8px;
    height: 70px;
    background: linear-gradient(90deg, #64748b 0%, #f8fafc 45%, #cbd5e1 60%, #475569 100%);
    border-radius: 4px;
    margin: 0 auto;
    box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.lever-ball {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 28%, #ff8a80 0%, #ff1744 38%, #b71c1c 82%, #4a0505 100%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.75), inset 0 -3px 6px rgba(0, 0, 0, 0.6), inset 0 2px 5px rgba(255, 255, 255, 0.85);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.slots-lever-container:hover .lever-ball {
    transform: translateX(-50%) scale(1.12);
    box-shadow: 0 8px 20px rgba(255, 23, 68, 0.4), inset 0 -3px 6px rgba(0, 0, 0, 0.6), inset 0 2px 6px #ffffff;
}

.slots-lever-container.pulled .lever-arm {
    transform: rotateX(60deg) translateY(38px);
}

.slots-lever-container.pulled .lever-ball {
    box-shadow: 0 2px 8px rgba(255, 23, 68, 0.9), 0 0 20px rgba(255, 23, 68, 0.7);
}

.lever-label {
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #ffb703;
    margin-top: 6px;
    text-transform: uppercase;
}

/* Interactive Paytable Matrix */
.slots-paytable-matrix {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}

.pay-chip {
    background: #181b2a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 2px;
    text-align: center;
    transition: all 0.2s ease;
}

.pay-chip .pc-sym {
    display: block;
    font-size: 0.82rem;
    margin-bottom: 2px;
}

.pay-chip .pc-mult {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 800;
    color: #ffb703;
}

.pay-chip.highlight {
    background: rgba(255, 183, 3, 0.25);
    border-color: #ffb703;
    transform: scale(1.08);
    box-shadow: 0 0 15px rgba(255, 183, 3, 0.5);
}

.slots-pity-bar {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.slots-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.slots-btn-spin {
    grid-column: span 2;
    background: linear-gradient(135deg, #ffb703, #e69d00) !important;
    color: #000000 !important;
    font-weight: 900 !important;
    font-size: 1.05rem !important;
    padding: 14px !important;
    box-shadow: 0 4px 18px rgba(255, 183, 3, 0.35) !important;
}

.slots-btn-secondary {
    background: #181b2a !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    padding: 10px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

.slots-btn-secondary:hover {
    background: #23273e !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.slots-btn-secondary.active {
    background: rgba(255, 183, 3, 0.15) !important;
    border-color: #ffb703 !important;
    color: #ffb703 !important;
}

/* ==========================================================================
   🏁 4. ZÁVODY (3D STADIUM DERBY)
   ========================================================================== */
.race-modal-dialog {
    max-width: 720px !important;
    --game-theme-color: #2ecc71;
}

/* 3D Leaderboard HUD */
.race-leaderboard-hud {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    background: #12141f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 12px;
}

.race-lead-item {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.race-lead-item.pos-1 { color: #ffb703; }
.race-lead-item.pos-2 { color: #cfd8dc; }
.race-lead-item.pos-3 { color: #cd7f32; }
.race-lead-item.pos-4 { color: #94a3b8; }

/* ==========================================================================
   🏁 3D REAL-TIME WEBGL RACING STAGE (Three.js Engine)
   ========================================================================== */
.race-3d-stage-wrap {
    position: relative;
    width: 100%;
    height: 310px;
    background: #090b14;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85), inset 0 0 25px rgba(0, 0, 0, 0.75);
}

#race-3d-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
}

#race-3d-canvas:active {
    cursor: grabbing;
}

/* 🎥 Dynamic Camera Control Bar */
.race-3d-cam-bar {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(18, 20, 31, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 4px 8px;
    z-index: 20;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.race-cam-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: #94a3b8;
    margin-right: 2px;
    padding-left: 4px;
    letter-spacing: 0.5px;
}

.race-cam-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Outfit', sans-serif;
}

.race-cam-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.race-cam-btn.active {
    background: #0a67e5;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(10, 103, 229, 0.4);
}

/* 🏎️ Telemetry & Speedometer Overlay */
.race-telemetry-hud {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 20;
}

.telemetry-chip {
    background: rgba(18, 20, 31, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 3px 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* ⚡ Photo-Finish Flash */
.race-finish-flash {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(33, 222, 0, 0.4) 50%, transparent 100%);
    pointer-events: none;
    z-index: 25;
    opacity: 0;
    transition: opacity 0.1s ease;
}

.race-finish-flash.active {
    opacity: 1;
}

/* 🎙️ Live Dynamic Commentary Bar */
.race-live-commentary {
    background: #12141f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 14px;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 12px;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* 🔋 3D Realtime Stamina HUD */
.race-stamina-hud {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: rgba(15, 17, 26, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 6px 10px;
    z-index: 20;
}

.r-stm-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.r-stm-name {
    font-size: 0.68rem;
    font-weight: 700;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.r-stm-bar {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.r-stm-fill {
    height: 100%;
    width: 100%;
    background: #21DE00;
    border-radius: 999px;
    transition: width 0.1s linear, background-color 0.2s ease;
}

/* 3D Track Perspective Stage */
.race-track-3d-wrap {
    perspective: 850px;
    perspective-origin: center bottom;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.stadium-spotlight {
    position: absolute;
    top: -40px;
    width: 140px;
    height: 180px;
    background: radial-gradient(ellipse at center top, rgba(46, 204, 113, 0.25) 0%, transparent 70%);
    pointer-events: none;
    z-index: 10;
}

.stadium-spotlight.left { left: 10%; transform: rotate(15deg); }
.stadium-spotlight.right { right: 10%; transform: rotate(-15deg); }

.race-track-3d {
    background: #0f121d !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    padding: 16px 14px !important;
    position: relative !important;
    transform: rotateX(24deg) scaleY(1.06);
    transform-origin: center bottom;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
}

/* F1 Red & White Curb Kerbs */
.track-kerb {
    height: 6px;
    width: 100%;
    background: repeating-linear-gradient(
        90deg,
        #f51515,
        #f51515 14px,
        #ffffff 14px,
        #ffffff 28px
    );
    border-radius: 3px;
    opacity: 0.85;
}

.track-kerb.top { margin-bottom: 10px; }
.track-kerb.bottom { margin-top: 10px; }

/* Distance Milestones */
.distance-marker {
    position: absolute;
    top: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.5px;
    pointer-events: none;
    border-left: 1px dashed rgba(255, 255, 255, 0.1);
    height: calc(100% - 12px);
    padding-left: 4px;
}

.distance-marker.finish {
    color: #21DE00;
    border-left: 2px solid #21DE00;
}

/* 3D Checkered Finish Gate */
.finish-gate-3d {
    position: absolute !important;
    right: 32px !important;
    top: 4px !important;
    bottom: 4px !important;
    width: 10px !important;
    background: repeating-linear-gradient(
        0deg,
        #ffffff,
        #ffffff 10px,
        #111111 10px,
        #111111 20px
    ) !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.7) !important;
    z-index: 5 !important;
    border-radius: 2px;
}

.track-lane {
    background: #151826 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 8px !important;
    height: 48px !important;
    margin-bottom: 8px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 12px !important;
}

.lane-number {
    font-family: 'JetBrains Mono', monospace !important;
    font-weight: 900 !important;
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.3) !important;
    width: 24px !important;
}

.racer-icon {
    position: absolute;
    left: 28px;
    font-size: 2.1rem;
    z-index: 8;
    transform: translateZ(20px);
    transition: transform 0.1s ease;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.racer-icon.running {
    animation: runBob3D 0.28s infinite alternate;
}

.racer-icon.turbo .racer-aura {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: -15px 0 20px #ff3d00, -5px 0 10px #ffb703;
    animation: turboPulse 0.2s infinite alternate;
}

.racer-shadow {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    filter: blur(2px);
    pointer-events: none;
}

.racer-stamina-bar {
    position: absolute;
    right: 12px;
    width: 48px;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.stamina-fill {
    width: 100%;
    height: 100%;
    background: #21DE00;
    transition: width 0.2s ease, background-color 0.2s ease;
}

@keyframes runBob3D {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-4px) rotate(2deg); }
}

@keyframes turboPulse {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Interactive Cheer / Boost Button */
.race-cheer-btn {
    width: 100%;
    background: linear-gradient(135deg, #0a67e5, #0052cc);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 10px 14px;
    border-radius: 9px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(10, 103, 229, 0.35);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: cheerPulse 1s infinite alternate;
}

.race-cheer-btn:active {
    transform: scale(0.96);
}

.cheer-badge {
    background: #ffb703;
    color: #000;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
}

@keyframes cheerPulse {
    0% { box-shadow: 0 4px 16px rgba(10, 103, 229, 0.3); }
    100% { box-shadow: 0 6px 24px rgba(10, 103, 229, 0.6); }
}

#race-commentary {
    background: #181b2a !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    text-align: center !important;
    margin-bottom: 12px !important;
}

.race-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
}

.animal-card {
    background: #181b2a !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    padding: 12px 6px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.animal-card:hover {
    background: #23273e !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
}

.animal-card.selected {
    background: rgba(10, 103, 229, 0.15) !important;
    border-color: #0a67e5 !important;
    box-shadow: 0 0 15px rgba(10, 103, 229, 0.3) !important;
}

.animal-card .big-emoji {
    font-size: 2rem !important;
    margin-bottom: 4px !important;
}

.animal-card span {
    display: block !important;
    font-weight: 800 !important;
    font-size: 0.85rem !important;
    color: #ffffff !important;
}

.animal-card small {
    display: block !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    color: #ffb703 !important;
    margin-top: 2px !important;
}

/* ==========================================================================
   🔔 6. ELEGANT FLOATING TOAST NOTIFICATIONS
   ========================================================================== */
#toast-container {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    max-width: 340px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    z-index: 99999 !important;
    pointer-events: none !important;
}

.toast-card,
.toast-card-modern {
    background: rgba(18, 20, 31, 0.95) !important;
    backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 12px !important;
    padding: 8px 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #ffffff !important;
    pointer-events: auto !important;
    position: relative !important;
    overflow: hidden !important;
    animation: toastSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    transition: opacity 0.25s ease, transform 0.25s ease !important;
}

.toast-card.hide,
.toast-card-modern.hide {
    opacity: 0 !important;
    transform: translateY(12px) scale(0.96) !important;
    pointer-events: none !important;
}

/* Left Accent Stripe */
.t-accent-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3.5px;
    background: #21DE00;
}

.toast-card.is-jackpot .t-accent-bar,
.toast-card-modern.is-jackpot .t-accent-bar {
    background: #ffb703;
}

.t-icon {
    font-size: 1.35rem !important;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.t-content,
.t-body {
    flex: 1;
    min-width: 0;
}

.t-header,
.t-game {
    font-size: 0.72rem !important;
    color: #94a3b8 !important;
    font-weight: 700 !important;
    margin-bottom: 2px !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.t-user {
    color: #ffffff !important;
    font-weight: 800 !important;
}

.t-you-tag {
    background: rgba(10, 103, 229, 0.2);
    color: #0a67e5;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 4px;
}

.t-amount,
.t-msg {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    color: #21DE00 !important;
    line-height: 1.2 !important;
}

.toast-card.is-jackpot .t-amount {
    color: #ffb703 !important;
}

.t-close-btn {
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
    font-size: 1.2rem !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 0 2px !important;
    margin-left: 4px !important;
    opacity: 0.6;
    transition: opacity 0.15s ease, color 0.15s ease;
}

.t-close-btn:hover {
    opacity: 1;
    color: #f51515 !important;
}

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


/* ==========================================================================
   🕹️ 5. HAD (CYBER VIPER)
   ========================================================================== */
.snake-modal-dialog {
    max-width: 500px !important;
    --game-theme-color: #2ecc71;
}

.snake-arcade-box {
    background: #12141f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
}

.snake-hud-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #181b2a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 14px;
    margin-bottom: 12px;
}

.snake-hud-stat {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    font-weight: 800;
    color: #2ecc71;
}

#snake-canvas {
    background: #090a0f !important;
    border: 2px solid rgba(46, 204, 113, 0.4) !important;
    border-radius: 10px !important;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9) !important;
    width: 100% !important;
    max-width: 380px !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 auto 14px auto !important;
    display: block !important;
}

.snake-dpad-grid {
    display: grid !important;
    grid-template-columns: 56px 56px 56px !important;
    gap: 6px !important;
    justify-content: center !important;
    margin: 12px auto !important;
}

.snake-dpad-btn {
    background: #181b2a !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    color: #ffffff !important;
    font-size: 1.2rem !important;
    height: 48px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.1s ease !important;
}

.snake-dpad-btn:hover {
    background: #23273e !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.snake-dpad-btn:active {
    transform: scale(0.92) !important;
    background: #0a67e5 !important;
}
