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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0f212e;
    color: #b1bad3;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1a2c38 0%, #152530 100%);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    border-right: 1px solid #2f4553;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    overflow-x: visible;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(135deg, #00e701 0%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 32px;
    text-align: center;
    letter-spacing: 2px;
    flex-shrink: 0;
    position: relative;
    z-index: 10000;
    background-color: #0f212e;
    padding: 20px 10px;
    margin-top: -20px;
    margin-left: -10px;
    margin-right: -10px;
    transition: all 0.3s ease;
    cursor: pointer;
    filter: drop-shadow(0 0 10px rgba(0, 231, 1, 0.4));
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(0, 231, 1, 0.8)) drop-shadow(0 0 30px rgba(0, 231, 1, 0.5));
}

.logo:active {
    transform: scale(0.98);
    filter: drop-shadow(0 0 15px rgba(0, 231, 1, 0.6));
}

.logo:active {
    transform: scale(0.95);
    animation: logoClick 0.6s ease;
}

@keyframes logoClick {
    0% { 
        transform: scale(0.95); 
    }
    25% { 
        transform: scale(1.2) rotate(5deg); 
    }
    50% { 
        transform: scale(1.15) rotate(-5deg); 
    }
    75% { 
        transform: scale(1.2) rotate(5deg); 
    }
    100% { 
        transform: scale(1); 
    }
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.nav-item {
    background: transparent;
    border: none;
    color: #b1bad3;
    padding: 14px 16px;
    text-align: left;
    cursor: pointer;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #00e701;
    transform: scaleY(0);
    transition: transform 0.2s;
}

.nav-item:hover {
    background: rgba(33, 55, 67, 0.6);
    transform: translateX(4px);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(0, 231, 1, 0.15) 0%, transparent 100%);
    color: #00e701;
    font-weight: 600;
}

.nav-item.active::before {
    transform: scaleY(1);
}

.icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.disclaimer {
    font-size: 11px;
    color: #556b7c;
    text-align: center;
    margin-top: 20px;
    line-height: 1.4;
    flex-shrink: 0;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.top-bar {
    background: #1a2c38;
    padding: 16px 32px;
    border-bottom: 1px solid #2f4553;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-shrink: 0;
}

.balance-container {
    background: #213743;
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.balance-label {
    font-size: 11px;
    color: #556b7c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-amount {
    font-size: 20px;
    color: #00e701;
    font-weight: 600;
}

.game-container {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    width: 100%;
    scroll-padding-top: 80px;
}

.game-panel {
    display: none;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

.game-panel.active {
    display: flex;
    gap: 24px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start;
}

.game-controls {
    background: #1a2c38;
    padding: 24px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: fit-content;
    width: 350px;
    flex-shrink: 0;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    font-size: 13px;
    color: #556b7c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.control-group input[type="number"],
.control-group select {
    background: #0f212e;
    border: 1px solid #2f4553;
    color: #b1bad3;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
}

/* Hide number input arrows */
.control-group input[type="number"]::-webkit-inner-spin-button,
.control-group input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.control-group input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.control-group input[type="range"] {
    width: 100%;
    height: 6px;
    background: #2f4553;
    border-radius: 3px;
    outline: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: #00e701;
    border-radius: 50%;
    cursor: pointer;
}

.multiplier, .chance, .profit {
    font-size: 18px;
    color: #00e701;
    font-weight: 600;
}

.bet-button, .cashout-button {
    background: #00e701;
    color: #0f212e;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bet-button:hover {
    background: #00ff00;
    transform: translateY(-1px);
}

.cashout-button {
    background: #ffc800;
}

.cashout-button:hover {
    background: #ffd700;
}

.max-button {
    padding: 8px 16px;
    background: #2f4553;
    color: #b1bad3;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    margin-left: 8px;
}

.max-button:hover {
    background: #3d5a6b;
    color: #fff;
}

.bet-button:disabled {
    background: #2f4553;
    color: #556b7c;
    cursor: not-allowed;
    transform: none;
}

.game-display {
    background: #1a2c38;
    padding: 32px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    overflow-y: auto;
    flex: 1;
    width: 100%;
    position: relative;
}

/* Dice Game */
.dice-result-display {
    width: 100%;
    max-width: 600px;
}

.dice-number {
    font-size: 96px;
    font-weight: bold;
    color: #00e701;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 20px rgba(0, 231, 1, 0.8),
                 0 0 40px rgba(0, 231, 1, 0.5),
                 0 0 60px rgba(0, 231, 1, 0.3);
    transition: all 0.3s ease;
}

.dice-number.rolling {
    animation: diceRoll 0.08s ease-in-out infinite;
}

@keyframes diceRoll {
    0% { 
        transform: scale(1);
        filter: blur(2px);
    }
    25% { 
        transform: scale(1.15);
        filter: blur(1px);
    }
    50% { 
        transform: scale(0.95);
        filter: blur(2px);
    }
    75% { 
        transform: scale(1.15);
        filter: blur(1px);
    }
    100% { 
        transform: scale(1);
        filter: blur(2px);
    }
}

.dice-number.win {
    animation: diceWin 0.8s ease;
}

@keyframes diceWin {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3) rotate(10deg); }
    50% { transform: scale(1.25) rotate(-10deg); }
    75% { transform: scale(1.3) rotate(10deg); }
}

.dice-number.lose {
    animation: diceLose 0.5s ease;
}

@keyframes diceLose {
    0%, 100% { transform: scale(1); }
    20%, 60% { transform: translateX(-15px); }
    40%, 80% { transform: translateX(15px); }
}

.dice-bar {
    position: relative;
    height: 60px;
    background: linear-gradient(to right, #ff4757 0%, #ffa502 50%, #00e701 100%);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3), inset 0 2px 5px rgba(255, 255, 255, 0.2);
}

.dice-target-line {
    position: absolute;
    width: 4px;
    height: 100%;
    background: #fff;
    left: 50%;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.4);
    animation: targetPulse 2s ease-in-out infinite;
}

@keyframes targetPulse {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.4);
    }
    50% { 
        box-shadow: 0 0 25px rgba(255, 255, 255, 1), 0 0 50px rgba(255, 255, 255, 0.6);
    }
}

.dice-roll-indicator {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Plinko Game */
.game-display canvas {
    display: block;
    margin: 0 auto;
}

#plinko-canvas {
    background: linear-gradient(135deg, #0f212e 0%, #1a2c38 100%);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 2px 5px rgba(255, 255, 255, 0.05);
}

.plinko-multipliers {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 8px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.plinko-multiplier {
    padding: 14px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    flex: 1;
    min-width: 0;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.plinko-multiplier:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.plinko-multiplier.hit {
    animation: plinkoHit 0.6s ease;
}

@keyframes plinkoHit {
    0%, 100% { 
        transform: scale(1); 
    }
    25% { 
        transform: scale(1.3) rotate(5deg); 
    }
    50% { 
        transform: scale(1.25) rotate(-5deg); 
    }
    75% { 
        transform: scale(1.3) rotate(5deg); 
    }
}

/* Mines Game */
.mines-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    width: 100%;
    padding: 10px;
}

.mine-tile {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #213743, #1a2c38);
    border: 3px solid #2f4553;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    transition: all 0.3s ease;
    min-height: 80px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.mine-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.mine-tile:hover:not(.revealed)::before {
    left: 100%;
}

.mine-tile:hover:not(.revealed) {
    background: linear-gradient(135deg, #2a4556, #213743);
    transform: scale(1.08) translateY(-3px);
    border-color: #00e701;
    box-shadow: 0 0 20px rgba(0, 231, 1, 0.4), 0 6px 15px rgba(0, 0, 0, 0.4);
    animation: mineHover 0.6s ease infinite;
}

@keyframes mineHover {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(0, 231, 1, 0.4), 0 6px 15px rgba(0, 0, 0, 0.4);
    }
    50% { 
        box-shadow: 0 0 30px rgba(0, 231, 1, 0.6), 0 8px 20px rgba(0, 0, 0, 0.5);
    }
}

.mine-tile.revealed {
    cursor: default;
    transform: scale(0.95);
}

.mine-tile.gem {
    background: linear-gradient(135deg, #00e701 0%, #00b300 100%);
    border-color: #00e701;
    box-shadow: 0 0 30px rgba(0, 231, 1, 0.6), 0 6px 15px rgba(0, 0, 0, 0.4);
    animation: mineGem 0.5s ease;
}

@keyframes mineGem {
    0% { 
        transform: scale(1) rotateY(0deg);
    }
    50% { 
        transform: scale(1.15) rotateY(180deg);
    }
    100% { 
        transform: scale(0.95) rotateY(360deg);
    }
}

.mine-tile.bomb {
    background: linear-gradient(135deg, #ff4757 0%, #cc0000 100%);
    border-color: #ff4757;
    box-shadow: 0 0 40px rgba(255, 71, 87, 0.8), 0 6px 15px rgba(0, 0, 0, 0.4);
    animation: mineBomb 0.6s ease;
    font-size: 60px;
}

@keyframes mineBomb {
    0% { 
        transform: scale(1);
    }
    10% { 
        transform: scale(1.3);
    }
    20% { 
        transform: scale(0.9) rotate(10deg);
    }
    30% { 
        transform: scale(1.3) rotate(-10deg);
    }
    40% { 
        transform: scale(0.9) rotate(10deg);
    }
    50% { 
        transform: scale(1.3) rotate(-10deg);
    }
    60% { 
        transform: scale(0.9);
    }
    100% { 
        transform: scale(0.95);
    }
}

@keyframes minesLoseShake {
    0%, 100% { 
        transform: scale(0.95);
    }
    10%, 30%, 50%, 70%, 90% { 
        transform: translateX(-10px) scale(0.95);
    }
    20%, 40%, 60%, 80% { 
        transform: translateX(10px) scale(0.95);
    }
}

/* Limbo Game */
.limbo-display {
    text-align: center;
}

.limbo-result {
    font-size: 120px;
    font-weight: bold;
    color: #00e701;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 231, 1, 0.8),
                 0 0 40px rgba(0, 231, 1, 0.5),
                 0 0 60px rgba(0, 231, 1, 0.3);
    transition: all 0.3s ease;
}

.limbo-result.rolling {
    animation: limboRoll 0.1s ease-in-out infinite;
}

@keyframes limboRoll {
    0%, 100% { 
        transform: scale(1);
        filter: blur(1px);
    }
    50% { 
        transform: scale(1.05);
        filter: blur(2px);
    }
}

.limbo-result.win {
    animation: limboWin 0.8s ease;
    text-shadow: 0 0 30px rgba(0, 231, 1, 1),
                 0 0 60px rgba(0, 231, 1, 0.7),
                 0 0 90px rgba(0, 231, 1, 0.5);
}

@keyframes limboWin {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3) rotate(10deg); }
    50% { transform: scale(1.25) rotate(-10deg); }
    75% { transform: scale(1.3) rotate(10deg); }
}

.limbo-result.lose {
    animation: limboLose 0.5s ease;
    color: #ff4757;
    text-shadow: 0 0 30px rgba(255, 71, 87, 0.8),
                 0 0 60px rgba(255, 71, 87, 0.5);
}

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

.limbo-status {
    font-size: 28px;
    color: #b1bad3;
    font-weight: 600;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.win-animation {
    animation: pulse 0.3s ease-in-out;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f212e;
}

::-webkit-scrollbar-thumb {
    background: #2f4553;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3d5a6b;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: auto;
}

.toast {
    background: #1a2c38;
    color: #b1bad3;
    padding: 16px 24px;
    border-radius: 8px;
    border-left: 4px solid #556b7c;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
    max-width: 300px;
    word-wrap: break-word;
    cursor: pointer;
    user-select: none;
}

.toast:hover {
    transform: translateX(0) scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    border-left-color: #00e701;
    background: linear-gradient(135deg, #1a2c38 0%, #1a3d2c 100%);
}

.toast-error {
    border-left-color: #ff4757;
    background: linear-gradient(135deg, #1a2c38 0%, #3d1a1f 100%);
}

.toast-info {
    border-left-color: #ffc800;
    background: linear-gradient(135deg, #1a2c38 0%, #3d3520 100%);
}

/* Crash Game */
.crash-display {
    text-align: center;
    width: 100%;
    max-width: 700px;
}

.crash-multiplier {
    font-size: 96px;
    font-weight: bold;
    color: #00e701;
    margin-bottom: 30px;
    text-shadow: 0 0 30px rgba(0, 231, 1, 0.8),
                 0 0 60px rgba(0, 231, 1, 0.5);
    transition: all 0.1s ease;
}

.crash-multiplier.rising {
    animation: crashRise 0.3s ease-in-out infinite;
}

@keyframes crashRise {
    0%, 100% { 
        transform: scale(1);
        text-shadow: 0 0 30px rgba(0, 231, 1, 0.8), 0 0 60px rgba(0, 231, 1, 0.5);
    }
    50% { 
        transform: scale(1.05);
        text-shadow: 0 0 40px rgba(0, 231, 1, 1), 0 0 80px rgba(0, 231, 1, 0.7);
    }
}

.crash-multiplier.crashed {
    animation: crashExplode 0.6s ease;
    color: #ff4757;
    text-shadow: 0 0 30px rgba(255, 71, 87, 0.8), 0 0 60px rgba(255, 71, 87, 0.5);
}

@keyframes crashExplode {
    0% { 
        transform: scale(1);
    }
    50% { 
        transform: scale(1.5) rotate(10deg);
    }
    100% { 
        transform: scale(0.8) rotate(-5deg);
        opacity: 0.7;
    }
}

.crash-graph {
    background: linear-gradient(135deg, #0f212e 0%, #1a2c38 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 0 auto;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 2px 5px rgba(255, 255, 255, 0.05);
}

#crash-canvas {
    display: block;
    width: 100%;
    height: auto;
}

/* Roulette Game */
.roulette-display {
    display: flex;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    align-items: flex-start;
}

.roulette-wheel-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.roulette-container {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto 20px;
}

.roulette-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle, #2a1810 0%, #1a2c38 70%);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), inset 0 0 60px rgba(0, 0, 0, 0.5);
    border: 10px solid #8b6914;
    transition: all 0.3s ease;
}

.roulette-wheel.spinning {
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.6), 0 0 40px rgba(0, 0, 0, 0.8), inset 0 0 60px rgba(0, 0, 0, 0.5);
    animation: wheelGlow 0.5s ease-in-out infinite;
}

@keyframes wheelGlow {
    0%, 100% { 
        box-shadow: 0 0 60px rgba(255, 215, 0, 0.6), 0 0 40px rgba(0, 0, 0, 0.8), inset 0 0 60px rgba(0, 0, 0, 0.5);
    }
    50% { 
        box-shadow: 0 0 80px rgba(255, 215, 0, 0.8), 0 0 40px rgba(0, 0, 0, 0.8), inset 0 0 60px rgba(0, 0, 0, 0.5);
    }
}

.roulette-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: conic-gradient(
        #ff4757 0deg 10deg,
        #2f4553 10deg 20deg,
        #ff4757 20deg 30deg,
        #2f4553 30deg 40deg,
        #ff4757 40deg 50deg,
        #2f4553 50deg 60deg,
        #ff4757 60deg 70deg,
        #2f4553 70deg 80deg,
        #ff4757 80deg 90deg,
        #2f4553 90deg 100deg,
        #00e701 100deg 110deg,
        #2f4553 110deg 120deg,
        #ff4757 120deg 130deg,
        #2f4553 130deg 140deg,
        #ff4757 140deg 150deg,
        #2f4553 150deg 160deg,
        #ff4757 160deg 170deg,
        #2f4553 170deg 180deg,
        #ff4757 180deg 190deg,
        #2f4553 190deg 200deg,
        #ff4757 200deg 210deg,
        #2f4553 210deg 220deg,
        #ff4757 220deg 230deg,
        #2f4553 230deg 240deg,
        #ff4757 240deg 250deg,
        #2f4553 250deg 260deg,
        #ff4757 260deg 270deg,
        #2f4553 270deg 280deg,
        #ff4757 280deg 290deg,
        #2f4553 290deg 300deg,
        #ff4757 300deg 310deg,
        #2f4553 310deg 320deg,
        #ff4757 320deg 330deg,
        #2f4553 330deg 340deg,
        #ff4757 340deg 350deg,
        #2f4553 350deg 360deg
    );
    overflow: visible;
    border: 3px solid #2f4553;
    transition: transform 8s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.roulette-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 50%);
    pointer-events: none;
}

.roulette-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20%;
    height: 20%;
    background: radial-gradient(circle, #ffd700 0%, #8b6914 100%);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #0f212e;
    z-index: 10;
    border: 2px solid #b8860b;
    animation: centerPulse 2s ease-in-out infinite;
}

@keyframes centerPulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }
    50% { 
        box-shadow: 0 0 35px rgba(255, 215, 0, 0.8);
    }
}

.roulette-number {
    position: absolute;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 5;
}

.roulette-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 25px solid #ffd700;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
    z-index: 20;
    animation: pointerBounce 1s ease-in-out infinite;
}

@keyframes pointerBounce {
    0%, 100% { 
        transform: translateX(-50%) translateY(0);
    }
    50% { 
        transform: translateX(-50%) translateY(-5px);
    }
}

.roulette-pointer.spinning {
    animation: pointerShake 0.1s ease-in-out infinite;
}

@keyframes pointerShake {
    0%, 100% { 
        transform: translateX(-50%) translateY(0) rotate(0deg);
    }
    25% { 
        transform: translateX(-50%) translateY(-2px) rotate(-3deg);
    }
    75% { 
        transform: translateX(-50%) translateY(-2px) rotate(3deg);
    }
}

.roulette-result {
    font-size: 32px;
    font-weight: bold;
    color: #00e701;
    margin-top: 20px;
    min-height: 50px;
    text-shadow: 0 0 15px rgba(0, 231, 1, 0.6);
    animation: resultFadeIn 0.6s ease;
}

@keyframes resultFadeIn {
    0% { 
        opacity: 0; 
        transform: scale(0.8) translateY(20px); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

.roulette-result.win {
    animation: rouletteWin 0.8s ease;
}

@keyframes rouletteWin {
    0%, 100% { 
        transform: scale(1); 
    }
    25% { 
        transform: scale(1.2) rotate(5deg); 
    }
    50% { 
        transform: scale(1.15) rotate(-5deg); 
    }
    75% { 
        transform: scale(1.2) rotate(5deg); 
    }
}

/* Roulette Betting Board */
.roulette-board {
    width: 280px;
    flex-shrink: 0;
}

.board-section {
    margin-bottom: 20px;
}

.board-label {
    color: #b1bad3;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.color-bets {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.bet-option {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.bet-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.bet-option:hover::before {
    left: 100%;
}

.bet-option:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.bet-option.selected {
    border-color: #ffc800;
    box-shadow: 0 0 20px rgba(255, 200, 0, 0.5);
}

.color-red {
    background: linear-gradient(135deg, #ff4757, #cc0000);
}

.color-black {
    background: linear-gradient(135deg, #2f4553, #1a2c38);
}

.color-green {
    background: linear-gradient(135deg, #00e701, #00b300);
}

.bet-label {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 4px;
}

.bet-payout {
    font-size: 12px;
    color: #ffc800;
    font-weight: 600;
}

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

.number-bet {
    aspect-ratio: 1;
    background: #213743;
    border: 2px solid #2f4553;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #b1bad3;
    cursor: pointer;
    transition: all 0.2s;
}

.number-bet:hover {
    background: #2a4556;
    transform: scale(1.1);
    border-color: #00e701;
}

.number-bet.selected {
    border-color: #ffc800;
    background: #ffc800;
    color: #0f212e;
    box-shadow: 0 0 15px rgba(255, 200, 0, 0.6);
}

.number-bet.red-number {
    color: #ff4757;
}

.number-bet.black-number {
    color: #b1bad3;
}

.number-bet.green-number {
    color: #00e701;
}

/* Coin Flip */
.coin-display {
    text-align: center;
}

.coin {
    width: 220px;
    height: 220px;
    margin: 0 auto 30px;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.coin-face {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 90px;
    font-weight: bold;
    position: absolute;
    backface-visibility: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.coin-face:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.coin-heads {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    color: #8b6914;
    border: 10px solid #b8860b;
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.5), inset 0 2px 10px rgba(255, 255, 255, 0.3);
}

.coin-tails {
    background: linear-gradient(135deg, #4a90e2 0%, #7bb3ff 50%, #4a90e2 100%);
    color: #1a4d8f;
    border: 10px solid #2e5f9e;
    transform: rotateY(180deg);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.5), inset 0 2px 10px rgba(255, 255, 255, 0.3);
}

@keyframes coinFlipHeads {
    0% { transform: rotateY(0deg) translateY(0) scale(1); }
    25% { transform: rotateY(450deg) translateY(-60px) scale(1.1); }
    50% { transform: rotateY(900deg) translateY(0) scale(1); }
    75% { transform: rotateY(1350deg) translateY(-40px) scale(1.05); }
    100% { transform: rotateY(1800deg) translateY(0) scale(1); }
}

@keyframes coinFlipTails {
    0% { transform: rotateY(0deg) translateY(0) scale(1); }
    25% { transform: rotateY(450deg) translateY(-60px) scale(1.1); }
    50% { transform: rotateY(900deg) translateY(0) scale(1); }
    75% { transform: rotateY(1350deg) translateY(-40px) scale(1.05); }
    100% { transform: rotateY(1980deg) translateY(0) scale(1); }
}

.coin.flipping-heads {
    animation: coinFlipHeads 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.coin.flipping-tails {
    animation: coinFlipTails 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.coin.win {
    animation: coinWin 0.6s ease;
}

@keyframes coinWin {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2) rotate(10deg); }
    50% { transform: scale(1.15) rotate(-10deg); }
    75% { transform: scale(1.2) rotate(10deg); }
}
.coin-result {
    font-size: 32px;
    font-weight: bold;
    color: #00e701;
    margin-top: 20px;
}

.button-group {
    display: flex;
    gap: 8px;
}

.choice-button {
    flex: 1;
    background: #213743;
    border: 2px solid #2f4553;
    color: #b1bad3;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.choice-button:hover {
    background: #2a4556;
}

.choice-button.active {
    background: #00e701;
    color: #0f212e;
    border-color: #00e701;
    font-weight: 600;
}

/* Keno Game */
.keno-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 600px;
}

.keno-tile {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #213743, #1a2c38);
    border: 3px solid #2f4553;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #b1bad3;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.keno-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.keno-tile:hover::before {
    left: 100%;
}

.keno-tile:hover {
    background: linear-gradient(135deg, #2a4556, #213743);
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.keno-tile.selected {
    background: linear-gradient(135deg, #00e701, #00a801);
    color: #0f212e;
    border-color: #00e701;
    box-shadow: 0 0 20px rgba(0, 231, 1, 0.6), 0 6px 20px rgba(0, 0, 0, 0.4);
    animation: kenoSelect 0.3s ease;
}

@keyframes kenoSelect {
    0% { transform: scale(1); }
    50% { transform: scale(1.15) rotate(5deg); }
    100% { transform: scale(1); }
}

.keno-tile.hit {
    background: linear-gradient(135deg, #ffc800, #ff9500);
    color: #0f212e;
    border-color: #ffc800;
    box-shadow: 0 0 30px rgba(255, 200, 0, 0.8), 0 6px 20px rgba(0, 0, 0, 0.4);
    animation: kenoHit 0.6s ease;
}

@keyframes kenoHit {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.25) rotate(10deg); }
    50% { transform: scale(1.2) rotate(-10deg); }
    75% { transform: scale(1.25) rotate(10deg); }
}

.keno-tile.miss {
    background: linear-gradient(135deg, #ff4757, #c92a2a);
    color: #fff;
    border-color: #ff4757;
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.6), 0 6px 20px rgba(0, 0, 0, 0.4);
    animation: kenoMiss 0.4s ease;
}

@keyframes kenoMiss {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.9); opacity: 0.7; }
}

/* Scrollbar for nav menu */
.nav-menu::-webkit-scrollbar {
    width: 6px;
}

.nav-menu::-webkit-scrollbar-track {
    background: transparent;
}

.nav-menu::-webkit-scrollbar-thumb {
    background: #2f4553;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #2f4553;
    border-radius: 3px;
}


/* Stocks Game */
.stocks-result-display {
    width: 100%;
    max-width: 700px;
}

#stocks-canvas {
    background: linear-gradient(135deg, #0f212e 0%, #1a2c38 100%);
    border-radius: 12px;
    display: block;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 2px 5px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

#stocks-canvas.rising {
    box-shadow: 0 0 30px rgba(0, 231, 1, 0.4), 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: stocksRising 0.5s ease-in-out infinite;
}

@keyframes stocksRising {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(0, 231, 1, 0.4), 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    50% { 
        box-shadow: 0 0 50px rgba(0, 231, 1, 0.6), 0 10px 30px rgba(0, 0, 0, 0.5);
    }
}

#stocks-canvas.falling {
    box-shadow: 0 0 30px rgba(255, 71, 87, 0.4), 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: stocksFalling 0.5s ease-in-out infinite;
}

@keyframes stocksFalling {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(255, 71, 87, 0.4), 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    50% { 
        box-shadow: 0 0 50px rgba(255, 71, 87, 0.6), 0 10px 30px rgba(0, 0, 0, 0.5);
    }
}

.stock-info {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.stock-stat {
    background: linear-gradient(135deg, #213743, #1a2c38);
    padding: 18px 28px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stock-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.stock-stat:hover::before {
    left: 100%;
}

.stock-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-label {
    font-size: 13px;
    color: #556b7c;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #00e701;
    text-shadow: 0 0 10px rgba(0, 231, 1, 0.5);
    transition: all 0.3s ease;
}

.stat-value.positive {
    color: #00e701;
    text-shadow: 0 0 15px rgba(0, 231, 1, 0.6);
    animation: statPositive 0.5s ease;
}

@keyframes statPositive {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.stat-value.negative {
    color: #ff4757;
    text-shadow: 0 0 15px rgba(255, 71, 87, 0.6);
    animation: statNegative 0.5s ease;
}

@keyframes statNegative {
    0%, 100% { transform: scale(1); }
    25%, 75% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
}

/* VFX Particles */
.particle {
    position: fixed;
    pointer-events: none;
    font-size: 24px;
    font-weight: bold;
    z-index: 9999;
    animation: particleFloat 1s ease-out forwards;
}

@keyframes particleFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0.5);
    }
}

/* Confetti particles for big wins */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    pointer-events: none;
    z-index: 9999;
    animation: confettiFall 2s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg);
    }
}

/* Win flash effect */
@keyframes winFlash {
    0%, 100% { box-shadow: 0 0 0 rgba(0, 231, 1, 0); }
    50% { box-shadow: 0 0 30px rgba(0, 231, 1, 0.8), inset 0 0 30px rgba(0, 231, 1, 0.3); }
}

.win-flash {
    animation: winFlash 0.5s ease-in-out 2;
}

/* Lose shake effect */
@keyframes loseShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.lose-shake {
    animation: loseShake 0.3s ease-in-out;
}

/* Glow pulse effect */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 231, 1, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 231, 1, 1), 0 0 50px rgba(0, 231, 1, 0.5);
    }
}

.glow-pulse {
    animation: glowPulse 1s ease-in-out infinite;
}

/* Bounce animation */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.bounce {
    animation: bounce 0.5s ease-in-out;
}

/* Spin animation */
@keyframes spin360 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin-360 {
    animation: spin360 1s ease-in-out;
}

/* Scale pop animation */
@keyframes scalePop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.scale-pop {
    animation: scalePop 0.3s ease-in-out;
}

/* Rainbow glow for jackpots */
@keyframes rainbowGlow {
    0% { box-shadow: 0 0 20px #ff0000, 0 0 40px #ff0000; }
    16% { box-shadow: 0 0 20px #ff7f00, 0 0 40px #ff7f00; }
    33% { box-shadow: 0 0 20px #ffff00, 0 0 40px #ffff00; }
    50% { box-shadow: 0 0 20px #00ff00, 0 0 40px #00ff00; }
    66% { box-shadow: 0 0 20px #0000ff, 0 0 40px #0000ff; }
    83% { box-shadow: 0 0 20px #8b00ff, 0 0 40px #8b00ff; }
    100% { box-shadow: 0 0 20px #ff0000, 0 0 40px #ff0000; }
}

.rainbow-glow {
    animation: rainbowGlow 2s linear infinite;
}

/* Fade in animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Slide in from bottom */
@keyframes slideInBottom {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-in-bottom {
    animation: slideInBottom 0.5s ease-out;
}


/* Simple result display - DELETED */

/* Slots Game */
.slots-result-display {
    width: 100%;
    max-width: 600px;
}

.slots-reels {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.slot-reel {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #2f4553, #1a2c38);
    border: 4px solid #00e701;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    transition: all 0.3s;
}

@keyframes slotSpin {
    0%, 100% { 
        transform: translateY(0);
    }
    50% { 
        transform: translateY(-10px);
    }
}

.slot-reel.spinning {
    animation: slotSpin 0.1s ease-in-out infinite;
    filter: blur(2px);
}

.slot-reel.stopped {
    animation: slotStop 0.3s ease-out;
    border-color: #ffc800;
    box-shadow: 0 0 20px rgba(255, 200, 0, 0.6), 0 8px 16px rgba(0, 0, 0, 0.4);
}

@keyframes slotStop {
    0% {
        transform: scale(1.2);
        filter: blur(2px);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
        filter: blur(0);
    }
}

.slot-reel.winning {
    animation: slotWinPulse 0.5s ease-in-out 3;
    border-color: #ffc800;
    box-shadow: 0 0 30px rgba(255, 200, 0, 0.8), 0 8px 16px rgba(0, 0, 0, 0.4);
}

@keyframes slotWinPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.slots-result {
    font-size: 28px;
    font-weight: bold;
    color: #b1bad3;
    min-height: 40px;
    text-align: center;
}

/* 3x5 Slots Grid */
.slots-reels-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.slot-reel-small {
    width: 100px;
    height: 80px;
    background: linear-gradient(135deg, #2f4553, #1a2c38);
    border: 3px solid #00e701;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.3s;
}

.slot-reel-small.spinning {
    animation: slotSpin 0.1s ease-in-out infinite;
    filter: blur(2px);
}

.slot-reel-small.stopped {
    animation: slotStop 0.3s ease-out;
    border-color: #ffc800;
    box-shadow: 0 0 15px rgba(255, 200, 0, 0.6), 0 4px 8px rgba(0, 0, 0, 0.4);
}

.slot-reel-small.winning {
    animation: slotWinPulse 0.5s ease-in-out 3;
    border-color: #ffc800;
    box-shadow: 0 0 25px rgba(255, 200, 0, 0.8), 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* Blackjack Game */
.blackjack-result-display {
    width: 100%;
    max-width: 700px;
}

.blackjack-hands {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 30px;
}

.blackjack-dealer,
.blackjack-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.hand-label {
    font-size: 18px;
    font-weight: 600;
    color: #b1bad3;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blackjack-cards {
    display: flex;
    gap: 12px;
    justify-content: center;
    min-height: 100px;
}

.bj-card {
    width: 60px;
    height: 90px;
    background: #fff;
    border: 3px solid #2f4553;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s;
    animation: dealCard 0.3s ease-out;
}

@keyframes dealCard {
    0% {
        transform: translateY(-100px) rotateY(180deg);
        opacity: 0;
    }
    100% {
        transform: translateY(0) rotateY(0deg);
        opacity: 1;
    }
}

.bj-card:hover {
    transform: translateY(-5px);
}

.bj-card.red {
    color: #ff4757;
}

.bj-card.black {
    color: #2f4553;
}

.bj-card.flip-animation {
    animation: flipCard 0.6s ease-in-out;
}

@keyframes flipCard {
    0% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(90deg);
    }
    100% {
        transform: rotateY(0deg);
    }
}

.hand-total {
    font-size: 16px;
    font-weight: 600;
    color: #00e701;
}

.blackjack-result {
    font-size: 24px;
    font-weight: bold;
    color: #b1bad3;
    min-height: 40px;
    text-align: center;
}

/* Tower Game */
.tower-result-display {
    width: 100%;
    max-width: 500px;
}

.tower-grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
}

.tower-row {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.tower-tile {
    width: 85px;
    height: 65px;
    background: linear-gradient(135deg, #213743, #1a2c38);
    border: 3px solid #2f4553;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.tower-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.tower-tile:hover:not(.revealed):not(.disabled)::before {
    left: 100%;
}

.tower-tile:hover:not(.revealed):not(.disabled) {
    background: linear-gradient(135deg, #2a4556, #213743);
    transform: scale(1.08) translateY(-3px);
    border-color: #00e701;
    box-shadow: 0 0 20px rgba(0, 231, 1, 0.4), 0 6px 15px rgba(0, 0, 0, 0.4);
}

.tower-tile.disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.tower-tile.revealed.safe {
    background: linear-gradient(135deg, #00e701 0%, #00b300 100%);
    border-color: #00e701;
    box-shadow: 0 0 30px rgba(0, 231, 1, 0.6), 0 6px 15px rgba(0, 0, 0, 0.4);
    animation: towerSafe 0.5s ease;
}

@keyframes towerSafe {
    0% { 
        transform: scale(1) rotateY(0deg);
    }
    50% { 
        transform: scale(1.15) rotateY(180deg);
    }
    100% { 
        transform: scale(1) rotateY(360deg);
    }
}

.tower-tile.revealed.danger {
    background: linear-gradient(135deg, #ff4757 0%, #cc0000 100%);
    border-color: #ff4757;
    box-shadow: 0 0 30px rgba(255, 71, 87, 0.6), 0 6px 15px rgba(0, 0, 0, 0.4);
    animation: towerDanger 0.5s ease;
}

@keyframes towerDanger {
    0%, 100% { 
        transform: scale(1);
    }
    20%, 60% { 
        transform: translateX(-10px) rotate(-5deg);
    }
    40%, 80% { 
        transform: translateX(10px) rotate(5deg);
    }
}

/* Music Controls */
.music-controls {
    display: flex;
    gap: 10px;
}

.music-btn {
    background: #213743;
    border: 2px solid #2f4553;
    color: #b1bad3;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.music-btn:hover {
    background: #2f4553;
    border-color: #00e701;
    color: #00e701;
    transform: translateY(-2px);
}

.music-btn.active {
    background: #00e701;
    border-color: #00e701;
    color: #0f212e;
}

#music-config-btn {
    padding: 8px 12px;
    font-size: 16px;
    min-width: auto;
}

#music-config-btn:hover {
    transform: translateY(-2px) scale(1.1);
}

.music-selector-container {
    position: relative;
}

#music-selector-btn {
    padding: 8px 12px;
    font-size: 16px;
    min-width: auto;
}

.music-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    background: #213743;
    border: 2px solid #2f4553;
    border-radius: 8px;
    padding: 8px;
    z-index: 1000;
    min-width: 200px;
}

.music-dropdown select {
    width: 100%;
    background: #0f212e;
    border: 2px solid #2f4553;
    color: #b1bad3;
    padding: 8px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.music-dropdown select:hover {
    border-color: #00e701;
}

/* Shop Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #1a2c38;
    border: 2px solid #2f4553;
    border-radius: 12px;
    padding: 30px;
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2f4553;
    position: sticky;
    top: -30px;
    background: #1a2c38;
    z-index: 100;
    margin-top: -30px;
    margin-left: -30px;
    margin-right: -30px;
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 30px;
}

.modal-header h2 {
    color: #b1bad3;
    margin: 0;
    font-size: 24px;
}

.close-btn {
    background: #213743;
    border: 2px solid #2f4553;
    color: #b1bad3;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #ff4757;
    border-color: #ff4757;
    color: #fff;
    transform: rotate(90deg);
}

.shop-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.shop-item {
    background: #213743;
    border: 2px solid #2f4553;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s;
}

.shop-item:hover {
    border-color: #00e701;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 231, 1, 0.2);
}

.shop-item.owned {
    border-color: #00e701;
    background: rgba(0, 231, 1, 0.1);
}

.track-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    margin-bottom: 8px;
}

.track-details {
    flex: 1;
}

.track-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.track-name {
    color: #b1bad3;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.track-status {
    font-size: 12px;
    color: #556b7c;
}

.track-status.locked {
    color: #ff4757;
}

.track-status.owned {
    color: #00e701;
}

.buy-btn {
    background: #00e701;
    border: 2px solid #00e701;
    color: #0f212e;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s;
}

.preview-btn {
    background: #556b7c;
    border: 2px solid #556b7c;
    color: #b1bad3;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    min-width: 45px;
    flex-shrink: 0;
}

.preview-btn:hover {
    background: #2f4553;
    border-color: #00e701;
    transform: scale(1.1);
}

.track-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.buy-btn:hover {
    background: #00ff00;
    transform: scale(1.05);
}

.buy-btn:disabled {
    background: #556b7c;
    border-color: #556b7c;
    color: #2f4553;
    cursor: not-allowed;
    transform: none;
}

.buy-btn.legendary {
    background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700);
    border-color: #ffd700;
    color: #8b6914;
    animation: legendaryGlowGreen 2s infinite;
}

@keyframes legendaryGlowGreen {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 231, 1, 0.5); }
    50% { box-shadow: 0 0 20px rgba(0, 231, 1, 0.8); }
}

/* Green glow for owned track 777 */
.shop-item[data-track="777"].owned {
    border-color: #00e701;
    background: rgba(0, 231, 1, 0.1);
    animation: hakariGlow 2s infinite;
}

@keyframes hakariGlow {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(0, 231, 1, 0.4);
    }
    50% { 
        box-shadow: 0 0 30px rgba(0, 231, 1, 0.7);
    }
}

.track-selector {
    background: #213743;
    border: 2px solid #2f4553;
    border-radius: 10px;
    padding: 15px;
}

.track-selector label {
    color: #b1bad3;
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.track-selector select {
    width: 100%;
    background: #1a2c38;
    border: 2px solid #2f4553;
    color: #b1bad3;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.track-selector select:focus {
    outline: none;
    border-color: #00e701;
}

.shop-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #2f4553, transparent);
    margin: 30px 0;
}

.shop-section {
    margin-top: 20px;
}

.shop-section-title {
    color: #00e701;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2f4553;
    text-shadow: 0 0 10px rgba(0, 231, 1, 0.3);
}

/* Game Selection Overlay */
.game-selection-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f212e;
    z-index: 20000;
    overflow-y: auto;
    padding: 40px 20px;
}

.game-selection-overlay.active {
    display: block;
}

.game-selection-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.game-selection-header h1 {
    color: #00e701;
    font-size: 48px;
    margin: 0;
    text-shadow: 0 0 20px rgba(0, 231, 1, 0.5);
}

.close-selection-btn {
    position: absolute;
    top: 0;
    right: 20px;
    background: #213743;
    border: 2px solid #2f4553;
    color: #b1bad3;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
}

.close-selection-btn:hover {
    background: #ff4757;
    border-color: #ff4757;
    color: #fff;
    transform: rotate(90deg);
}

.game-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.game-card {
    background: linear-gradient(135deg, #1a2c38, #213743);
    border: 3px solid #2f4553;
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 231, 1, 0.1), transparent);
    transition: left 0.5s;
}

.game-card:hover::before {
    left: 100%;
}

.game-card:hover {
    border-color: #00e701;
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 231, 1, 0.3);
}

.game-card-icon {
    font-size: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 231, 1, 0.3));
}

.game-card-name {
    font-size: 24px;
    font-weight: 700;
    color: #b1bad3;
    margin-bottom: 10px;
}

.game-card-desc {
    font-size: 14px;
    color: #556b7c;
}

/* Case Opening Styles */
.case-result-display {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.case-animation {
    margin-bottom: 30px;
}

.case-box {
    font-size: 120px;
    animation: caseFloat 2s ease-in-out infinite;
    display: inline-block;
    filter: drop-shadow(0 10px 30px rgba(255, 200, 0, 0.4)) drop-shadow(0 0 40px rgba(255, 200, 0, 0.3));
    transition: all 0.3s ease;
}

.case-box:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 15px 40px rgba(255, 200, 0, 0.6)) drop-shadow(0 0 60px rgba(255, 200, 0, 0.5));
}

@keyframes caseFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
        filter: drop-shadow(0 10px 30px rgba(255, 200, 0, 0.4)) drop-shadow(0 0 40px rgba(255, 200, 0, 0.3));
    }
    50% { 
        transform: translateY(-20px) rotate(10deg); 
        filter: drop-shadow(0 15px 40px rgba(255, 200, 0, 0.6)) drop-shadow(0 0 60px rgba(255, 200, 0, 0.5));
    }
}

.case-box.opening {
    animation: caseOpen 1s ease-out forwards;
}

@keyframes caseOpen {
    0% { 
        transform: scale(1) rotate(0deg); 
        filter: drop-shadow(0 10px 30px rgba(255, 200, 0, 0.4));
    }
    30% { 
        transform: scale(1.3) rotate(90deg); 
        filter: drop-shadow(0 0 80px rgba(255, 200, 0, 1)) drop-shadow(0 0 120px rgba(255, 200, 0, 0.8));
    }
    50% { 
        transform: scale(1.5) rotate(180deg); 
        filter: drop-shadow(0 0 100px rgba(255, 215, 0, 1)) drop-shadow(0 0 150px rgba(255, 215, 0, 0.9));
    }
    100% { 
        transform: scale(0) rotate(360deg); 
        opacity: 0; 
        filter: none;
    }
}

.case-result {
    font-size: 24px;
    color: #b1bad3;
    margin: 20px 0;
    min-height: 30px;
    animation: resultFadeIn 0.5s ease;
}

@keyframes resultFadeIn {
    0% { 
        opacity: 0; 
        transform: translateY(-20px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.case-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.case-item {
    background: #213743;
    border: 2px solid #2f4553;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    animation: itemReveal 0.5s ease-out;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.case-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
}

.case-item:hover::before {
    left: 100%;
}

.case-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@keyframes itemReveal {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    60% {
        transform: scale(1.15) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.case-item.legendary {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.15));
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), inset 0 0 20px rgba(255, 215, 0, 0.2);
    animation: itemReveal 0.5s ease-out, legendaryGlow 2s ease-in-out infinite;
}

@keyframes legendaryGlow {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), inset 0 0 20px rgba(255, 215, 0, 0.2);
        border-color: #ffd700;
    }
    50% { 
        box-shadow: 0 0 50px rgba(255, 215, 0, 0.9), 0 0 70px rgba(255, 215, 0, 0.6), inset 0 0 30px rgba(255, 215, 0, 0.4);
        border-color: #ffed4e;
    }
}

.case-item.epic {
    border-color: #8b00ff;
    background: linear-gradient(135deg, rgba(139, 0, 255, 0.3), rgba(139, 0, 255, 0.15));
    box-shadow: 0 0 25px rgba(139, 0, 255, 0.5), inset 0 0 15px rgba(139, 0, 255, 0.2);
    animation: itemReveal 0.5s ease-out, epicGlow 2s ease-in-out infinite;
}

@keyframes epicGlow {
    0%, 100% { 
        box-shadow: 0 0 25px rgba(139, 0, 255, 0.5), inset 0 0 15px rgba(139, 0, 255, 0.2);
    }
    50% { 
        box-shadow: 0 0 40px rgba(139, 0, 255, 0.8), 0 0 60px rgba(139, 0, 255, 0.5), inset 0 0 25px rgba(139, 0, 255, 0.3);
    }
}

.case-item.rare {
    border-color: #00e701;
    background: linear-gradient(135deg, rgba(0, 231, 1, 0.3), rgba(0, 231, 1, 0.15));
    box-shadow: 0 0 20px rgba(0, 231, 1, 0.4), inset 0 0 10px rgba(0, 231, 1, 0.2);
    animation: itemReveal 0.5s ease-out, rareGlow 2s ease-in-out infinite;
}

@keyframes rareGlow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(0, 231, 1, 0.4), inset 0 0 10px rgba(0, 231, 1, 0.2);
    }
    50% { 
        box-shadow: 0 0 35px rgba(0, 231, 1, 0.7), 0 0 50px rgba(0, 231, 1, 0.4), inset 0 0 20px rgba(0, 231, 1, 0.3);
    }
}

.case-item.common {
    border-color: #556b7c;
    transition: all 0.3s ease;
}

.case-item.common:hover {
    border-color: #6a7f8f;
    box-shadow: 0 5px 20px rgba(85, 107, 124, 0.3);
}

.case-item-icon {
    font-size: 40px;
    margin-bottom: 10px;
    animation: iconPop 0.6s ease;
}

@keyframes iconPop {
    0% { 
        transform: scale(0) rotate(-180deg); 
        opacity: 0;
    }
    60% { 
        transform: scale(1.3) rotate(10deg); 
    }
    100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 1;
    }
}

.case-item-name {
    font-size: 14px;
    color: #b1bad3;
    margin-bottom: 5px;
}

.case-item-value {
    font-size: 16px;
    font-weight: 700;
    color: #00e701;
    text-shadow: 0 0 10px rgba(0, 231, 1, 0.5);
}

/* Wheel of Fortune Styles */
.wheel-result-display {
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.wheel-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto 30px;
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 40px;
    color: #ff4757;
    z-index: 10;
    filter: drop-shadow(0 0 10px rgba(255, 71, 87, 0.8));
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid #00e701;
    position: relative;
    background: #1a2c38;
    box-shadow: 0 0 30px rgba(0, 231, 1, 0.5);
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.wheel-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    top: 50%;
    left: 50%;
    transform-origin: 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    border: 2px solid #0f212e;
}

.wheel-segment:nth-child(1) { transform: rotate(0deg) skewY(-45deg); background: #ff4757; }
.wheel-segment:nth-child(2) { transform: rotate(45deg) skewY(-45deg); background: #00e701; }
.wheel-segment:nth-child(3) { transform: rotate(90deg) skewY(-45deg); background: #ffc800; }
.wheel-segment:nth-child(4) { transform: rotate(135deg) skewY(-45deg); background: #ff4757; }
.wheel-segment:nth-child(5) { transform: rotate(180deg) skewY(-45deg); background: #00e701; }
.wheel-segment:nth-child(6) { transform: rotate(225deg) skewY(-45deg); background: #ffa502; }
.wheel-segment:nth-child(7) { transform: rotate(270deg) skewY(-45deg); background: #ff4757; }
.wheel-segment:nth-child(8) { transform: rotate(315deg) skewY(-45deg); background: #8b00ff; }

.wheel-result {
    font-size: 24px;
    color: #b1bad3;
    min-height: 30px;
}

/* Scratch Card Styles */
.scratch-result-display {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.scratch-card {
    width: 500px;
    height: 420px;
    margin: 0 auto 30px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border: 5px solid #ff6b35;
}

.scratch-card-header {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    padding: 20px;
    text-align: center;
    border-bottom: 4px dashed #ffd700;
}

.scratch-card-title {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    letter-spacing: 3px;
}

.scratch-card-subtitle {
    font-size: 14px;
    color: #fff;
    margin-top: 8px;
    font-weight: 600;
}

.scratch-overlay {
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    height: calc(100% - 90px);
    cursor: crosshair;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
}

.scratch-text {
    font-size: 48px;
    font-weight: 900;
    color: #808080;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    background: rgba(192, 192, 192, 0.8);
    padding: 20px 40px;
    border-radius: 15px;
    border: 3px dashed #666;
}

.scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

.scratch-symbols {
    width: 100%;
    height: calc(100% - 90px);
    background: linear-gradient(135deg, #fff9e6, #fffef0);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 15px 15px;
}

.scratch-symbols.mega {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 15px;
}

.scratch-symbol {
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    border: 4px solid #ff6b35;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.scratch-symbol::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: scratchShine 3s ease-in-out infinite;
}

@keyframes scratchShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.scratch-symbols.mega .scratch-symbol {
    font-size: 48px;
}

.scratch-symbol.revealed {
    animation: symbolPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), symbolGlow 0.8s ease-out;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.6), 0 0 40px rgba(255, 107, 53, 0.3), inset 0 3px 6px rgba(0, 0, 0, 0.1);
}

@keyframes symbolPop {
    0% { transform: scale(0.5) rotate(-10deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes symbolGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.scratch-result {
    font-size: 28px;
    color: #b1bad3;
    min-height: 40px;
    font-weight: 700;
}

/* Case Spin Mode Styles */
.case-spin-container {
    width: 100%;
    max-width: 600px;
    height: 150px;
    overflow: hidden;
    position: relative;
    background: #1a2c38;
    border: 3px solid #00e701;
    border-radius: 12px;
    margin: 20px auto;
}

.case-spin-items {
    display: flex;
    position: absolute;
    left: 0;
    transition: left 5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.case-spin-item {
    min-width: 120px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 2px solid #2f4553;
    background: #213743;
    padding: 10px;
}

.case-spin-item.legendary {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.1));
    border-color: #ffd700;
}

.case-spin-item.epic {
    background: linear-gradient(135deg, rgba(139, 0, 255, 0.3), rgba(139, 0, 255, 0.1));
    border-color: #8b00ff;
}

.case-spin-item.rare {
    background: linear-gradient(135deg, rgba(0, 231, 1, 0.3), rgba(0, 231, 1, 0.1));
    border-color: #00e701;
}

.case-spin-item-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.case-spin-item-name {
    font-size: 12px;
    color: #b1bad3;
    text-align: center;
}

.case-spin-selector {
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    background: #ff4757;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.8);
    z-index: 10;
}

/* Achievements */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
}

.achievement-card {
    background: #213743;
    border: 2px solid #2f4553;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
    opacity: 0.6;
}

.achievement-card.unlocked {
    opacity: 1;
    border-color: #ffc800;
    background: rgba(255, 200, 0, 0.1);
}

.achievement-card:hover {
    transform: translateY(-2px);
}

.achievement-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.achievement-info {
    flex: 1;
}

.achievement-name {
    color: #b1bad3;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.achievement-desc {
    color: #556b7c;
    font-size: 12px;
}

.achievement-card.unlocked .achievement-name {
    color: #ffc800;
}

.achievement-card.unlocked .achievement-desc {
    color: #b1bad3;
}

.achievement-status {
    font-size: 24px;
    flex-shrink: 0;
}

/* Packs Game */
.packs-result-display {
    width: 100%;
    max-width: 700px;
    text-align: center;
}

.pack-animation {
    margin-bottom: 30px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pack-box {
    width: 150px;
    height: 150px;
    position: relative;
    animation: packFloat 2s ease-in-out infinite;
}

@keyframes packFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

.pack-lid {
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 30px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 8px 8px 0 0;
    border: 3px solid #d45a2a;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform-origin: bottom;
    transition: transform 0.5s ease-out;
}

.pack-body {
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border: 3px solid #d4af37;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.pack-body::before {
    content: '🎴';
    font-size: 64px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Starter Pack - Bronze/Brown */
.pack-starter .pack-lid {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    border-color: #654321;
}

.pack-starter .pack-body {
    background: linear-gradient(135deg, #CD853F 0%, #DEB887 100%);
    border-color: #8B4513;
}

/* Premium Pack - Silver */
.pack-premium .pack-lid {
    background: linear-gradient(135deg, #708090 0%, #778899 100%);
    border-color: #556b7c;
}

.pack-premium .pack-body {
    background: linear-gradient(135deg, #C0C0C0 0%, #D3D3D3 100%);
    border-color: #A9A9A9;
}

.pack-premium .pack-body::before {
    content: '💳';
}

/* Elite Pack - Gold (default) */
.pack-elite .pack-lid {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-color: #d45a2a;
}

.pack-elite .pack-body {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-color: #d4af37;
}

.pack-elite .pack-body::before {
    content: '👑';
}

/* Legendary Pack - Rainbow/Purple */
.pack-legendary .pack-lid {
    background: linear-gradient(135deg, #8b00ff 0%, #ff00ff 100%);
    border-color: #6a0dad;
    animation: legendaryGlow 2s infinite;
}

.pack-legendary .pack-body {
    background: linear-gradient(135deg, #ff00ff 0%, #ffd700 50%, #00ffff 100%);
    border-color: #8b00ff;
    animation: legendaryGlow 2s infinite;
}

.pack-legendary .pack-body::before {
    content: '💎';
}

/* Mythic Pack - Dark Purple/Red */
.pack-mythic .pack-lid {
    background: linear-gradient(135deg, #4B0082 0%, #8B0000 100%);
    border-color: #2F004F;
    animation: mythicPulse 1.5s infinite;
}

.pack-mythic .pack-body {
    background: linear-gradient(135deg, #8B0000 0%, #FF1493 50%, #4B0082 100%);
    border-color: #4B0082;
    animation: mythicPulse 1.5s infinite;
}

.pack-mythic .pack-body::before {
    content: '⭐';
}

/* Cosmic Pack - Galaxy/Space */
.pack-cosmic .pack-lid {
    background: linear-gradient(135deg, #000428 0%, #004e92 100%);
    border-color: #001a33;
    animation: cosmicShimmer 3s infinite;
}

.pack-cosmic .pack-body {
    background: linear-gradient(135deg, #000428 0%, #004e92 50%, #ff00ff 100%);
    border-color: #000428;
    animation: cosmicShimmer 3s infinite;
    position: relative;
    overflow: hidden;
}

.pack-cosmic .pack-body::before {
    content: '🌟';
}

.pack-cosmic .pack-body::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: cosmicSweep 2s infinite;
}

@keyframes legendaryGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(139, 0, 255, 0.6); }
    50% { box-shadow: 0 0 40px rgba(255, 0, 255, 0.8); }
}

@keyframes mythicPulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(139, 0, 0, 0.6);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 40px rgba(255, 20, 147, 0.8);
        transform: scale(1.05);
    }
}

@keyframes cosmicShimmer {
    0%, 100% { box-shadow: 0 0 30px rgba(0, 78, 146, 0.6); }
    50% { box-shadow: 0 0 50px rgba(255, 0, 255, 0.8); }
}

@keyframes cosmicSweep {
    0% { left: -100%; }
    100% { left: 200%; }
}

.pack-box.opening .pack-lid {
    transform: rotateX(-120deg) translateY(-20px);
}

.pack-box.opening .pack-body {
    animation: packShake 0.5s ease-out;
}

@keyframes packShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px) rotate(-2deg); }
    75% { transform: translateX(5px) rotate(2deg); }
}

.pack-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.pack-card {
    background: linear-gradient(135deg, #2f4553, #1a2c38);
    border: 3px solid #00e701;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    animation: cardReveal 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: rotateY(180deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotateY(0deg) scale(1);
    }
}

.pack-card.legendary {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.1));
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}

.pack-card.epic {
    border-color: #8b00ff;
    background: linear-gradient(135deg, rgba(139, 0, 255, 0.3), rgba(139, 0, 255, 0.1));
    box-shadow: 0 0 20px rgba(139, 0, 255, 0.5);
}

.pack-card.rare {
    border-color: #00e701;
    background: linear-gradient(135deg, rgba(0, 231, 1, 0.3), rgba(0, 231, 1, 0.1));
    box-shadow: 0 0 20px rgba(0, 231, 1, 0.5);
}

.pack-card-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.pack-card-name {
    font-size: 14px;
    color: #b1bad3;
    margin-bottom: 8px;
    font-weight: 600;
}

.pack-card-value {
    font-size: 18px;
    font-weight: 700;
    color: #00e701;
}

.pack-result {
    font-size: 24px;
    color: #b1bad3;
    margin-top: 20px;
    min-height: 30px;
}

/* Pump Game */
.pump-result-display {
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.balloon-container {
    min-height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px;
}

.balloon {
    position: relative;
    width: 140px;
    height: 170px;
    transition: all 0.3s ease-out;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    z-index: 2;
}

.balloon-body {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 40% 30%, #ff4d6d, #ff1744 50%, #d81b60 80%, #c2185b);
    border-radius: 50% 50% 45% 45% / 45% 45% 50% 50%;
    box-shadow: 
        inset -20px -25px 40px rgba(0, 0, 0, 0.25),
        inset 25px 25px 40px rgba(255, 255, 255, 0.15);
    animation: balloonFloat 4s ease-in-out infinite;
    overflow: hidden;
}

@keyframes balloonFloat {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

.balloon-highlight {
    position: absolute;
    top: 15%;
    left: 20%;
    width: 50px;
    height: 70px;
    background: radial-gradient(ellipse at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.3) 40%, transparent 70%);
    border-radius: 50%;
    transform: rotate(-30deg);
    pointer-events: none;
}

.balloon-shadow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 15px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.15), transparent 70%);
    border-radius: 50%;
}

.balloon-string {
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, #c2185b, #6d4c41, #5d4037, #4e342e);
    margin-top: -10px;
    z-index: 1;
    animation: stringSwing 3s ease-in-out infinite;
    box-shadow: 1px 0 2px rgba(0, 0, 0, 0.3);
    border-radius: 1px;
}

@keyframes stringSwing {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

.balloon.pumping {
    animation: pumpInflate 0.3s ease-out;
}

@keyframes pumpInflate {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

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

.balloon.popped .balloon-body {
    animation: popEffect 0.6s ease-out forwards;
}

.balloon.popped .balloon-highlight,
.balloon.popped .balloon-shadow {
    opacity: 0;
    transition: opacity 0.3s;
}

@keyframes popEffect {
    0% { 
        transform: scale(1);
        opacity: 1;
    }
    30% { 
        transform: scale(1.3);
        opacity: 0.8;
    }
    100% { 
        transform: scale(0);
        opacity: 0;
    }
}

/* Enhanced pop particles effect */
.pop-particle {
    position: absolute;
    width: 15px;
    height: 15px;
    background: #ff1744;
    border-radius: 50%;
    pointer-events: none;
    animation: popParticle 0.8s ease-out forwards;
    box-shadow: 0 0 10px currentColor;
}

@keyframes popParticle {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0) rotate(360deg);
        opacity: 0;
    }
}

/* Pop shockwave effect */
.pop-shockwave {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 3px solid #ff1744;
    border-radius: 50%;
    pointer-events: none;
    animation: shockwaveExpand 0.6s ease-out forwards;
}

@keyframes shockwaveExpand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

.pump-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
}

.pump-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: #213743;
    padding: 15px 25px;
    border-radius: 8px;
    border: 2px solid #2f4553;
}

.pump-stat .stat-label {
    font-size: 12px;
    color: #556b7c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pump-stat .stat-value {
    font-size: 24px;
    font-weight: 700;
}

.pump-stat .stat-value {
    color: #00e701;
}

/* Pop chance color coding */
#pump-pop-chance {
    transition: color 0.3s ease;
}

#pump-pop-chance[data-danger="low"] {
    color: #00e701;
}

#pump-pop-chance[data-danger="medium"] {
    color: #ffc800;
}

#pump-pop-chance[data-danger="high"] {
    color: #ff4757;
}

.pump-result {
    font-size: 28px;
    color: #b1bad3;
    margin-top: 20px;
    min-height: 40px;
    font-weight: 700;
}

/* Drill Game */
.drill-result-display {
    width: 100%;
    max-width: 700px;
}

.drill-selection {
    display: flex;
    gap: 10px;
}

.drill-choice {
    flex: 1;
    background: #213743;
    border: 3px solid #2f4553;
    color: #b1bad3;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
}

.drill-choice:hover {
    background: #2a4556;
    border-color: #00e701;
}

.drill-choice.selected {
    background: #00e701;
    color: #0f212e;
    border-color: #00e701;
}

.drill-paths {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.drill-path {
    flex: 1;
    max-width: 200px;
    background: linear-gradient(135deg, #213743, #1a2c38);
    border: 3px solid #2f4553;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.drill-path::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 231, 1, 0.05), transparent);
    animation: drillPathShine 3s ease-in-out infinite;
}

@keyframes drillPathShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.drill-path.selected {
    border-color: #00e701;
    box-shadow: 0 0 20px rgba(0, 231, 1, 0.4), inset 0 0 20px rgba(0, 231, 1, 0.1);
    animation: drillPathPulse 1.5s ease-in-out infinite;
}

@keyframes drillPathPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 231, 1, 0.4), inset 0 0 20px rgba(0, 231, 1, 0.1); }
    50% { box-shadow: 0 0 30px rgba(0, 231, 1, 0.6), inset 0 0 30px rgba(0, 231, 1, 0.2); }
}

.drill-path.winner {
    border-color: #ffc800;
    background: linear-gradient(135deg, rgba(255, 200, 0, 0.2), rgba(255, 200, 0, 0.1));
    box-shadow: 0 0 30px rgba(255, 200, 0, 0.6), 0 0 50px rgba(255, 200, 0, 0.3);
    animation: drillWinnerGlow 1s ease-in-out infinite;
}

@keyframes drillWinnerGlow {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(255, 200, 0, 0.6), 0 0 50px rgba(255, 200, 0, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 40px rgba(255, 200, 0, 0.8), 0 0 60px rgba(255, 200, 0, 0.5);
        transform: scale(1.02);
    }
}

.drill-path.loser {
    border-color: #ff4757;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.2), rgba(255, 71, 87, 0.1));
    opacity: 0.5;
    animation: drillLoserFade 0.5s ease-out;
}

@keyframes drillLoserFade {
    0% { opacity: 1; filter: brightness(1); }
    100% { opacity: 0.5; filter: brightness(0.5); }
}

.drill-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 15px;
    animation: drillIconBounce 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes drillIconBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.drill-progress {
    background: #0f212e;
    border-radius: 8px;
    padding: 10px;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.drill-segment {
    background: linear-gradient(135deg, #00e701, #00ff88, #00e701);
    background-size: 200% 100%;
    height: 20px;
    margin-bottom: 5px;
    border-radius: 4px;
    animation: drillDown 0.3s ease-out, drillGradientShift 2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(0, 231, 1, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.drill-segment::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: drillShine 0.8s ease-out;
}

.drill-segment::after {
    content: '⚡';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    animation: drillIconFloat 1.5s ease-in-out infinite;
}

@keyframes drillDown {
    from {
        transform: translateY(-20px) scaleY(0);
        opacity: 0;
    }
    to {
        transform: translateY(0) scaleY(1);
        opacity: 1;
    }
}

@keyframes drillShine {
    from { left: -100%; }
    to { left: 100%; }
}

@keyframes drillGradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes drillIconFloat {
    0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.8; }
    50% { transform: translateY(-60%) scale(1.2); opacity: 1; }
}

.drill-segment.stop {
    background: linear-gradient(135deg, #ff4757, #ff1744, #ff4757);
    background-size: 200% 100%;
    animation: drillStop 0.5s ease-out, drillPulse 0.3s ease-in-out 3, drillGradientShift 1s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.6), 0 0 20px rgba(255, 71, 87, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.drill-segment.stop::after {
    content: '💀';
    animation: drillIconRotate 0.5s ease-out, drillIconFloat 1s ease-in-out infinite;
}

@keyframes drillIconRotate {
    from { transform: translateY(-50%) rotate(0deg) scale(0); }
    to { transform: translateY(-50%) rotate(360deg) scale(1); }
}

@keyframes drillStop {
    0% {
        transform: translateY(-20px) scaleY(0);
        opacity: 0;
    }
    50% {
        transform: translateY(0) scaleY(1.2);
    }
    100% {
        transform: translateY(0) scaleY(1);
        opacity: 1;
    }
}

@keyframes drillPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.drill-multiplier {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #00e701;
    margin-top: 10px;
    text-shadow: 0 0 10px rgba(0, 231, 1, 0.5);
    animation: drillMultiplierGlow 2s ease-in-out infinite;
}

@keyframes drillMultiplierGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(0, 231, 1, 0.5); }
    50% { text-shadow: 0 0 20px rgba(0, 231, 1, 0.8), 0 0 30px rgba(0, 231, 1, 0.4); }
}

.drill-result {
    font-size: 28px;
    color: #b1bad3;
    text-align: center;
    min-height: 40px;
    font-weight: 700;
    animation: drillResultPulse 0.5s ease-out;
}

@keyframes drillResultPulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* Drill particles */
.drill-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: drillParticleExplode 1s ease-out forwards;
    box-shadow: 0 0 10px currentColor;
}

@keyframes drillParticleExplode {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* Drill shake effect */
@keyframes drillShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Enhanced drill path effects */
.drill-path.winner {
    animation: drillWinPulse 0.5s ease-in-out 3;
}

.drill-path.loser {
    animation: drillLoseFade 0.5s ease-out forwards;
}

@keyframes drillWinPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes drillLoseFade {
    to { opacity: 0.3; }
}

/* UI Overlap Prevention */
.top-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 60px;
}

.music-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .music-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .music-btn {
        width: 100%;
    }
}

/* Pack Collection Modal */
.pack-collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.collection-pack {
    background: #213743;
    border: 2px solid #2f4553;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.2s;
}

.collection-pack:hover {
    border-color: #00e701;
    transform: translateY(-2px);
}

.collection-pack h3 {
    color: #ffc800;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 700;
}

.collection-chances {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chance-item {
    color: #b1bad3;
    font-size: 14px;
    padding: 5px;
    background: #0f212e;
    border-radius: 5px;
}

/* Balloon String and Shine */
.balloon-string {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, #556b7c, transparent);
    margin-bottom: -10px;
    animation: stringSwing 2s ease-in-out infinite;
}

@keyframes stringSwing {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

.balloon-shine {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 30px;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.6), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.pump-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
}

.pump-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: #213743;
    padding: 15px 25px;
    border-radius: 8px;
    border: 2px solid #2f4553;
}

.pump-stat .stat-label {
    font-size: 12px;
    color: #556b7c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pump-stat .stat-value {
    font-size: 24px;
    font-weight: 700;
}

.pump-stat .stat-value {
    color: #00e701;
}

/* Pop chance color coding */
#pump-pop-chance {
    transition: color 0.3s ease;
}

#pump-pop-chance[data-danger="low"] {
    color: #00e701;
}

#pump-pop-chance[data-danger="medium"] {
    color: #ffc800;
}

#pump-pop-chance[data-danger="high"] {
    color: #ff4757;
}

/* Diamonds Game */
.gems-container {
    display: flex;
    gap: 25px;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    padding: 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    position: relative;
    overflow: visible;
}

.gem {
    font-size: 90px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    position: relative;
    transition: all 0.3s ease;
}

.gem:nth-child(1) { animation: gemFloat 2s ease-in-out 0s infinite; }
.gem:nth-child(2) { animation: gemFloat 2s ease-in-out 0.2s infinite; }
.gem:nth-child(3) { animation: gemFloat 2s ease-in-out 0.4s infinite; }
.gem:nth-child(4) { animation: gemFloat 2s ease-in-out 0.6s infinite; }
.gem:nth-child(5) { animation: gemFloat 2s ease-in-out 0.8s infinite; }

@keyframes gemFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.gem.rolling {
    animation: gemRoll 0.6s ease-in-out !important;
}

@keyframes gemRoll {
    0% { transform: rotateY(0deg) scale(1) translateY(0); filter: brightness(1); }
    25% { transform: rotateY(90deg) scale(1.3) translateY(-5px); filter: brightness(1.5); }
    50% { transform: rotateY(180deg) scale(1.5) translateY(-10px); filter: brightness(2); }
    75% { transform: rotateY(270deg) scale(1.3) translateY(-5px); filter: brightness(1.5); }
    100% { transform: rotateY(360deg) scale(1) translateY(0); filter: brightness(1); }
}

.gem.matched {
    animation: gemMatchGlow 2s ease-in-out forwards !important;
}

@keyframes gemMatchGlow {
    0% { 
        transform: scale(1) translateY(0); 
        filter: brightness(1) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5)); 
    }
    15% { 
        transform: scale(1.5) translateY(-15px); 
        filter: brightness(2.5) drop-shadow(0 0 40px #ffd700); 
    }
    30% { 
        transform: scale(1.3) translateY(-10px); 
        filter: brightness(2) drop-shadow(0 0 35px #ffd700); 
    }
    50% { 
        transform: scale(1.3) translateY(-10px); 
        filter: brightness(2) drop-shadow(0 0 30px #ffd700); 
    }
    70% {
        transform: scale(1.2) translateY(-8px); 
        filter: brightness(1.5) drop-shadow(0 0 20px #ffd700); 
    }
    85% {
        transform: scale(1.1) translateY(-5px); 
        filter: brightness(1.2) drop-shadow(0 0 10px #ffd700); 
    }
    100% { 
        transform: scale(1) translateY(0); 
        filter: brightness(1) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5)); 
    }
}

/* Darts Game - Simplified */
.dartboard-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 30px auto;
    position: relative;
}

.dartboard-simple {
    width: 450px;
    height: 450px;
    margin: 0 auto;
    position: relative;
    border-radius: 50%;
    background: #1a1a1a;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.dart-ring {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.outer-ring {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #4a4a4a 0%, #3a3a3a 100%);
}

.mid-ring {
    width: 75%;
    height: 75%;
    background: radial-gradient(circle, #ff6348 0%, #ff4757 100%);
}

.inner-ring {
    width: 45%;
    height: 45%;
    background: radial-gradient(circle, #ffd32a 0%, #ffc800 100%);
}

.bullseye-ring {
    width: 18%;
    height: 18%;
    background: radial-gradient(circle, #00e701 0%, #2ecc71 50%, #00e701 100%);
    box-shadow: 0 0 30px rgba(0, 231, 1, 0.6);
}

.dart-simple {
    position: absolute;
    width: 20px;
    height: 20px;
    z-index: 100;
    display: none;
}

.dart-point {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #ff4757 0%, #ff6b81 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 20px rgba(255, 71, 87, 0.8),
        0 0 40px rgba(255, 71, 87, 0.6),
        0 5px 15px rgba(0, 0, 0, 0.8);
    animation: dartPulse 0.5s ease-out;
}

@keyframes dartPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.dart-hit-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 
        0 0 30px rgba(255, 215, 0, 1),
        0 0 60px rgba(255, 215, 0, 0.8),
        0 5px 20px rgba(0, 0, 0, 0.9);
    opacity: 0;
    pointer-events: none;
    z-index: 200;
    white-space: nowrap;
}

.dart-hit-text.show {
    animation: dartHitShow 2s ease-out forwards;
}

@keyframes dartHitShow {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
    }
    15% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    30% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    85% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

.dart-multiplier-box {
    margin-top: 40px;
    text-align: center;
    padding: 0 20px;
}

.multiplier-label {
    font-size: 14px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.multiplier-value-large {
    font-size: 56px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 25px rgba(255, 215, 0, 0.7);
    padding: 25px 50px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
    border-radius: 20px;
    border: 3px solid rgba(255, 215, 0, 0.4);
    display: inline-block;
    min-width: 250px;
    transition: all 0.3s ease;
}

.multiplier-value-large.high-multiplier {
    color: #00e701;
    text-shadow: 0 0 35px rgba(0, 231, 1, 0.9);
    border-color: rgba(0, 231, 1, 0.6);
    animation: highMultGlow 1s ease-in-out infinite;
}

@keyframes highMultGlow {
    0%, 100% {
        box-shadow: 0 0 25px rgba(0, 231, 1, 0.5);
    }
    50% {
        box-shadow: 0 0 50px rgba(0, 231, 1, 0.9);
    }
}

.multiplier-value-large.low-multiplier {
    color: #ff4757;
    text-shadow: 0 0 25px rgba(255, 71, 87, 0.7);
    border-color: rgba(255, 71, 87, 0.4);
}

.dart-impact-wave {
    position: absolute;
    border-radius: 50%;
    border: 4px solid #ffd700;
    animation: dartWave 1s ease-out forwards;
    pointer-events: none;
    z-index: 90;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.9);
}

@keyframes dartWave {
    0% {
        width: 40px;
        height: 40px;
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
        transform: translate(-50%, -50%);
    }
}

/* Chicken Game */
.chicken-viewport {
    width: 100%;
    max-width: 800px;
    height: 400px;
    margin: 20px auto;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 60px rgba(0, 231, 1, 0.2);
    background: linear-gradient(135deg, #1a1a1a 0%, #0f212e 100%);
    border: 2px solid rgba(0, 231, 1, 0.3);
}

.chicken-world {
    position: absolute;
    height: 100%;
    display: flex;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    left: 0;
}

.chicken-zone {
    width: 150px;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.3);
    position: relative;
    border-right: 2px solid rgba(255, 255, 255, 0.1);
}

.start-zone {
    background: linear-gradient(to right, #27ae60, #2ecc71);
    color: rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 0 40px rgba(0, 231, 1, 0.4);
}

.chicken-lane {
    width: 150px;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    background: linear-gradient(to bottom, #34495e 0%, #2c3e50 50%, #34495e 100%);
    border-right: 2px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chicken-lane:hover {
    background: linear-gradient(to bottom, #3d5a6e 0%, #34495e 50%, #3d5a6e 100%);
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.chicken-lane.crossed {
    background: linear-gradient(to bottom, rgba(0, 231, 1, 0.4) 0%, rgba(0, 231, 1, 0.3) 50%, rgba(0, 231, 1, 0.4) 100%);
    box-shadow: inset 0 0 40px rgba(0, 231, 1, 0.6), 0 0 20px rgba(0, 231, 1, 0.4);
    animation: lanePulse 1.5s ease-in-out infinite;
}

@keyframes lanePulse {
    0%, 100% { 
        box-shadow: inset 0 0 40px rgba(0, 231, 1, 0.6), 0 0 20px rgba(0, 231, 1, 0.4);
    }
    50% { 
        box-shadow: inset 0 0 60px rgba(0, 231, 1, 0.8), 0 0 30px rgba(0, 231, 1, 0.6);
    }
}

.lane-number {
    position: absolute;
    top: 10px;
    font-size: 24px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.4);
}

.chicken-icon {
    position: absolute;
    left: 75px;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    transition: left 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 20px rgba(255, 200, 0, 0.5));
    z-index: 100;
    animation: chickenIdle 2s ease-in-out infinite;
}

.chicken-icon::before {
    display: none;
}

@keyframes chickenSparkle {
    0%, 100% { opacity: 0; }
    50% { opacity: 0; }
}

@keyframes chickenIdle {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 20px rgba(255, 200, 0, 0.5));
    }
    50% { 
        transform: translate(-50%, -55%) scale(1.05);
        filter: drop-shadow(0 12px 25px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 30px rgba(255, 200, 0, 0.7));
    }
}

.chicken-icon.hopping {
    animation: chickenHopHorizontal 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes chickenHopSparkle {
    0% { opacity: 0; }
    50% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes chickenHopHorizontal {
    0% { 
        transform: translate(-50%, -50%) scale(1) rotate(0deg); 
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 20px rgba(255, 200, 0, 0.5));
    }
    25% { 
        transform: translate(-50%, -80%) scale(1.15) rotate(-10deg); 
        filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 40px rgba(0, 231, 1, 0.8));
    }
    50% { 
        transform: translate(-50%, -100%) scale(1.2) rotate(0deg); 
        filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 50px rgba(0, 231, 1, 1));
    }
    75% { 
        transform: translate(-50%, -80%) scale(1.15) rotate(10deg); 
        filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 40px rgba(0, 231, 1, 0.8));
    }
    100% { 
        transform: translate(-50%, -50%) scale(1) rotate(0deg); 
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 20px rgba(255, 200, 0, 0.5));
    }
}

.chicken-icon.hit {
    animation: chickenHitHorizontal 1s ease-out forwards;
}

@keyframes chickenHitHorizontal {
    0% { 
        transform: translate(-50%, -50%) scale(1) rotate(0deg); 
        opacity: 1; 
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 20px rgba(255, 200, 0, 0.5));
    }
    20% { 
        transform: translate(-50%, -50%) scale(1.4) rotate(45deg); 
        opacity: 0.9;
        filter: drop-shadow(0 0 60px rgba(255, 71, 87, 1)) drop-shadow(0 0 80px rgba(255, 71, 87, 0.8));
    }
    40% { 
        transform: translate(-50%, -50%) scale(1.2) rotate(180deg); 
        opacity: 0.6;
        filter: drop-shadow(0 0 40px rgba(255, 71, 87, 0.8));
    }
    70% { 
        transform: translate(-50%, -50%) scale(0.6) rotate(300deg); 
        opacity: 0.3;
        filter: drop-shadow(0 0 20px rgba(255, 71, 87, 0.5));
    }
    100% { 
        transform: translate(-50%, -50%) scale(0) rotate(360deg); 
        opacity: 0; 
        filter: none;
    }
}

.car-indicator {
    position: absolute;
    font-size: 50px;
    top: 50%;
    transform: translateY(-50%);
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.6));
    z-index: 50;
}

.car-moving-down {
    animation: carMoveDown 1.5s linear;
}

.car-moving-up {
    animation: carMoveUp 1.5s linear;
}

@keyframes carMoveDown {
    0% { top: -60px; }
    100% { top: 110%; }
}

@keyframes carMoveUp {
    0% { top: 110%; }
    100% { top: -60px; }
}

.chicken-stats {
    display: flex;
    justify-content: space-around;
    margin: 25px 0;
    font-size: 20px;
    font-weight: bold;
    color: #ecf0f1;
    gap: 15px;
}

.chicken-stats > div {
    background: linear-gradient(135deg, rgba(0, 231, 1, 0.15), rgba(0, 0, 0, 0.3));
    padding: 15px 25px;
    border-radius: 12px;
    border: 2px solid rgba(0, 231, 1, 0.3);
    flex: 1;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 231, 1, 0.2);
    transition: all 0.3s ease;
}

.chicken-stats > div:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 231, 1, 0.4);
    border-color: rgba(0, 231, 1, 0.5);
}

.chicken-stats span {
    color: #00e701;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(0, 231, 1, 0.6);
    animation: statGlow 2s ease-in-out infinite;
}

@keyframes statGlow {
    0%, 100% { 
        text-shadow: 0 0 10px rgba(0, 231, 1, 0.6);
    }
    50% { 
        text-shadow: 0 0 20px rgba(0, 231, 1, 0.9), 0 0 30px rgba(0, 231, 1, 0.6);
    }
}

.hop-trail {
    position: absolute;
    font-size: 40px;
    opacity: 0;
    animation: hopTrailHorizontal 0.8s ease-out;
    pointer-events: none;
    z-index: 90;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes hopTrailHorizontal {
    0% {
        opacity: 0.9;
        transform: translateY(-50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-50%) scale(0.3);
    }
}

/* Stats Container in Top Bar */
.stats-container {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stats-container:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.stats-summary {
    display: flex;
    gap: 20px;
}

.stats-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stats-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-value {
    font-size: 16px;
    font-weight: bold;
    color: #ecf0f1;
}

.stats-value.profit {
    color: #00e701;
}

.stats-value.profit.negative {
    color: #ff4757;
}

.stats-graph-mini {
    width: 100px;
    height: 30px;
}

#mini-graph-canvas {
    width: 100%;
    height: 100%;
}

/* Stats Panel Modal */
.stats-modal-content {
    max-width: 900px;
    width: 90%;
}

.stats-panel-body {
    padding: 20px;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
    padding: 20px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.stat-card-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.stat-card-value {
    font-size: 24px;
    font-weight: bold;
    color: #ecf0f1;
}

.stat-card-value.green {
    color: #00e701;
}

.stat-card-value.red {
    color: #ff4757;
}

.stat-card-value.profit-value {
    color: #00e701;
}

.stat-card-value.profit-value.negative {
    color: #ff4757;
}

.stats-graph-container {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.stats-graph-container h3 {
    margin: 0 0 15px 0;
    color: #ecf0f1;
    font-size: 18px;
}

#stats-graph-canvas {
    width: 100%;
    height: 300px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

/* ===== HI-LO GAME ===== */
.hilo-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hilo-card-area {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
    position: relative;
}

.hilo-card {
    width: 160px;
    height: 220px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    font-weight: bold;
    color: white;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6), 0 0 20px rgba(118, 75, 162, 0.4);
    transition: all 0.3s ease;
    animation: cardFloat 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.hilo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: cardShine 3s ease-in-out infinite;
}

@keyframes cardShine {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(1.02); }
}

.hilo-card:hover {
    transform: scale(1.08) translateY(-8px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.8), 0 0 30px rgba(118, 75, 162, 0.6);
}

.hilo-card.flip {
    animation: cardFlip3D 0.6s ease;
}

@keyframes cardFlip3D {
    0% { 
        transform: rotateY(0deg) scale(1);
    }
    50% { 
        transform: rotateY(90deg) scale(1.1);
        box-shadow: 0 25px 60px rgba(102, 126, 234, 1), 0 0 40px rgba(118, 75, 162, 0.8);
    }
    100% { 
        transform: rotateY(0deg) scale(1);
    }
}

.hilo-card.win {
    animation: cardWin 0.8s ease;
}

@keyframes cardWin {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.15) rotate(5deg); }
    50% { transform: scale(1.15) rotate(-5deg); }
    75% { transform: scale(1.15) rotate(5deg); }
}

.hilo-card.lose {
    animation: cardLose 0.6s ease;
}

@keyframes cardLose {
    0%, 100% { transform: scale(1); }
    20%, 60% { transform: translateX(-10px); }
    40%, 80% { transform: translateX(10px); }
}

.hilo-buttons {
    display: flex;
    gap: 30px;
    margin: 20px 0;
}

.hilo-choice-btn {
    padding: 30px 50px;
    font-size: 22px;
    font-weight: bold;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    min-width: 160px;
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hilo-choice-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hilo-choice-btn:hover::before {
    width: 400px;
    height: 400px;
}

.hilo-choice-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.hilo-choice-btn:hover::after {
    left: 100%;
}

.hilo-choice-btn.higher {
    background: linear-gradient(135deg, #00e701, #00a801);
    box-shadow: 0 8px 25px rgba(0, 231, 1, 0.5), 0 0 15px rgba(0, 231, 1, 0.3);
}

.hilo-choice-btn.lower {
    background: linear-gradient(135deg, #ff4757, #c92a2a);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.5), 0 0 15px rgba(255, 71, 87, 0.3);
}

.hilo-choice-btn:hover {
    transform: translateY(-8px) scale(1.08);
}

.hilo-choice-btn.higher:hover {
    box-shadow: 0 15px 40px rgba(0, 231, 1, 0.7), 0 0 30px rgba(0, 231, 1, 0.5);
}

.hilo-choice-btn.lower:hover {
    box-shadow: 0 15px 40px rgba(255, 71, 87, 0.7), 0 0 30px rgba(255, 71, 87, 0.5);
}

.hilo-choice-btn:active {
    transform: translateY(-4px) scale(1.05);
}

.hilo-choice-btn span {
    font-size: 32px;
    display: block;
    animation: arrowBounce 1.5s ease-in-out infinite;
}

.hilo-choice-btn.higher span {
    animation: arrowBounceUp 1.5s ease-in-out infinite;
}

.hilo-choice-btn.lower span {
    animation: arrowBounceDown 1.5s ease-in-out infinite;
}

@keyframes arrowBounceUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes arrowBounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.hilo-stats {
    display: flex;
    gap: 40px;
    font-size: 20px;
    color: #ecf0f1;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.hilo-stats > div {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 25px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hilo-stats > div::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.hilo-stats > div:hover::before {
    left: 100%;
}

.hilo-stats > div:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.hilo-stats span {
    color: #ffa502;
    font-weight: bold;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(255, 165, 2, 0.5);
}

.hilo-result {
    margin-top: 20px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    min-height: 40px;
    animation: resultPop 0.5s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    padding: 15px 30px;
    border-radius: 12px;
}

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

/* ===== TAROT GAME ===== */
.tarot-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.tarot-cards {
    display: flex;
    gap: 25px;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    perspective: 1200px;
}

.tarot-card {
    width: 130px;
    height: 190px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    transition: all 0.8s ease;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    animation: tarotFloat 4s ease-in-out infinite;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

@keyframes tarotFloat {
    0%, 100% { 
        transform: translateY(0px) rotateZ(0deg) scale(1); 
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    }
    25% { 
        transform: translateY(-12px) rotateZ(3deg) scale(1.02); 
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    }
    75% { 
        transform: translateY(-12px) rotateZ(-3deg) scale(1.02); 
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    }
}

.tarot-card:nth-child(1) {
    animation-delay: 0s;
}

.tarot-card:nth-child(2) {
    animation-delay: 0.4s;
}

.tarot-card:nth-child(3) {
    animation-delay: 0.8s;
}

.tarot-card:hover:not(.revealed) {
    transform: translateY(-20px) scale(1.08);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.tarot-card.major {
    width: 150px;
    height: 210px;
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    border: 4px solid #f39c12;
    box-shadow: 0 0 40px rgba(243, 156, 18, 0.8), 0 15px 40px rgba(0, 0, 0, 0.6);
}

.tarot-card.major:hover:not(.revealed) {
    box-shadow: 0 0 60px rgba(243, 156, 18, 1), 0 25px 60px rgba(0, 0, 0, 0.8);
}

.tarot-card .card-back {
    font-size: 54px;
    animation: cardGlow 2s ease-in-out infinite;
}

@keyframes cardGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6)); 
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 25px rgba(255, 255, 255, 1)); 
        transform: scale(1.05);
    }
}

.tarot-card.revealed {
    transform: rotateY(180deg) scaleX(-1);
    animation: revealPulse 0.6s ease;
}

@keyframes revealPulse {
    0% { 
        transform: rotateY(0deg) scale(1); 
    }
    50% { 
        transform: rotateY(90deg) scale(1.15); 
        box-shadow: 0 0 50px rgba(255, 255, 255, 0.8), 0 20px 60px rgba(0, 0, 0, 0.8);
    }
    100% { 
        transform: rotateY(180deg) scaleX(-1) scale(1); 
    }
}

.tarot-card.win {
    animation: tarotWin 0.8s ease;
}

@keyframes tarotWin {
    0%, 100% { 
        transform: rotateY(180deg) scaleX(-1) scale(1); 
    }
    25% { 
        transform: rotateY(180deg) scaleX(-1) scale(1.2) rotate(5deg); 
    }
    50% { 
        transform: rotateY(180deg) scaleX(-1) scale(1.15) rotate(-5deg); 
    }
    75% { 
        transform: rotateY(180deg) scaleX(-1) scale(1.2) rotate(5deg); 
    }
}

.tarot-card .card-value {
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-align: center;
    padding: 10px;
    line-height: 1.4;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.tarot-result {
    margin-top: 20px;
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    min-height: 40px;
    animation: resultSlideIn 0.6s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

@keyframes resultSlideIn {
    0% { 
        transform: translateY(30px) scale(0.8); 
        opacity: 0; 
    }
    100% { 
        transform: translateY(0) scale(1); 
        opacity: 1; 
    }
}

/* ===== SNAKES GAME ===== */
.snakes-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.snakes-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 20px 0;
    max-width: 500px;
}

.snakes-tile {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.snakes-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.snakes-tile.spawn {
    animation: tileAppear 0.5s ease backwards;
}

@keyframes tileAppear {
    0% { 
        transform: scale(0) rotate(180deg); 
        opacity: 0; 
    }
    60% { 
        transform: scale(1.15) rotate(-10deg); 
        opacity: 1; 
    }
    100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 1; 
    }
}

.snakes-tile:nth-child(1) { animation-delay: 0.05s; }
.snakes-tile:nth-child(2) { animation-delay: 0.1s; }
.snakes-tile:nth-child(3) { animation-delay: 0.15s; }
.snakes-tile:nth-child(4) { animation-delay: 0.2s; }
.snakes-tile:nth-child(5) { animation-delay: 0.25s; }
.snakes-tile:nth-child(6) { animation-delay: 0.3s; }
.snakes-tile:nth-child(7) { animation-delay: 0.35s; }
.snakes-tile:nth-child(8) { animation-delay: 0.4s; }
.snakes-tile:nth-child(9) { animation-delay: 0.45s; }
.snakes-tile:nth-child(10) { animation-delay: 0.5s; }
.snakes-tile:nth-child(11) { animation-delay: 0.55s; }
.snakes-tile:nth-child(12) { animation-delay: 0.6s; }

.snakes-tile.current {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    transform: scale(1.15);
    box-shadow: 0 0 40px rgba(243, 156, 18, 0.8), 0 0 60px rgba(243, 156, 18, 0.5);
    animation: tilePulse 0.8s ease infinite;
    border-color: #f39c12;
}

@keyframes tilePulse {
    0%, 100% { 
        box-shadow: 0 0 40px rgba(243, 156, 18, 0.8), 0 0 60px rgba(243, 156, 18, 0.5);
        transform: scale(1.15);
    }
    50% { 
        box-shadow: 0 0 60px rgba(243, 156, 18, 1), 0 0 80px rgba(243, 156, 18, 0.7);
        transform: scale(1.2);
    }
}

.snakes-tile.snake {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    animation: snakeShake 0.5s ease;
    box-shadow: 0 0 30px rgba(231, 76, 60, 0.6);
    border-color: #e74c3c;
}

@keyframes snakeShake {
    0%, 100% { 
        transform: translateX(0) scale(1.15); 
        box-shadow: 0 0 30px rgba(231, 76, 60, 0.6);
    }
    25% { 
        transform: translateX(-10px) scale(1.15) rotate(-5deg); 
        box-shadow: 0 0 40px rgba(231, 76, 60, 0.8);
    }
    75% { 
        transform: translateX(10px) scale(1.15) rotate(5deg); 
        box-shadow: 0 0 40px rgba(231, 76, 60, 0.8);
    }
}

.snakes-tile.ladder {
    background: linear-gradient(135deg, #00e701, #00a801);
    animation: ladderBounce 0.6s ease;
    box-shadow: 0 0 30px rgba(0, 231, 1, 0.6);
    border-color: #00e701;
}

@keyframes ladderBounce {
    0% { 
        transform: scale(1.15) translateY(0); 
        box-shadow: 0 0 30px rgba(0, 231, 1, 0.6);
    }
    50% { 
        transform: scale(1.25) translateY(-15px); 
        box-shadow: 0 0 50px rgba(0, 231, 1, 0.9), 0 0 70px rgba(0, 231, 1, 0.6);
    }
    100% { 
        transform: scale(1.15) translateY(0); 
        box-shadow: 0 0 30px rgba(0, 231, 1, 0.6);
    }
}

.snakes-tile .tile-number {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
}

.snakes-tile .tile-icon {
    font-size: 40px;
    animation: iconSpin 0.5s ease;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

@keyframes iconSpin {
    0% { 
        transform: rotate(0deg) scale(0); 
        opacity: 0;
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    }
    50% { 
        transform: rotate(180deg) scale(1.3); 
        opacity: 1;
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
    }
    100% { 
        transform: rotate(360deg) scale(1); 
        opacity: 1;
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    }
}

.snakes-dice-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.dice-display {
    display: flex;
    gap: 20px;
}

.die {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    color: #2c3e50;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), inset 0 2px 5px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.die:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), inset 0 2px 5px rgba(255, 255, 255, 0.5);
}

.die.rolling {
    animation: snakesDiceRoll 0.6s ease;
}

@keyframes snakesDiceRoll {
    0% { 
        transform: rotate(0deg) scale(1); 
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    25% { 
        transform: rotate(90deg) scale(1.3); 
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 40px rgba(243, 156, 18, 0.6);
    }
    50% { 
        transform: rotate(180deg) scale(0.9); 
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4), 0 0 50px rgba(243, 156, 18, 0.8);
    }
    75% { 
        transform: rotate(270deg) scale(1.3); 
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 40px rgba(243, 156, 18, 0.6);
    }
    100% { 
        transform: rotate(360deg) scale(1); 
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
}

.snakes-stats {
    display: flex;
    gap: 30px;
    font-size: 18px;
    color: #ecf0f1;
}

.snakes-stats > div {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
    padding: 12px 20px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.snakes-stats > div:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.snakes-result {
    margin-top: 20px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    min-height: 30px;
    animation: resultZoom 0.5s ease;
}

@keyframes resultZoom {
    0% { 
        transform: scale(0); 
        opacity: 0; 
    }
    60% { 
        transform: scale(1.2); 
        opacity: 1; 
    }
    100% { 
        transform: scale(1); 
        opacity: 1; 
    }
}

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

/* ===== BLACKJACK GAME ===== */
.blackjack-display {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 20px;
}

.blackjack-dealer,
.blackjack-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.blackjack-label {
    font-size: 20px;
    font-weight: bold;
    color: #ecf0f1;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.blackjack-cards {
    display: flex;
    gap: 10px;
    min-height: 140px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.blackjack-card {
    width: 90px;
    height: 130px;
    background: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    font-size: 24px;
    font-weight: bold;
    position: relative;
    animation: cardDeal 0.5s ease;
}

@keyframes cardDeal {
    0% {
        transform: translateY(-100px) rotateZ(-20deg);
        opacity: 0;
    }
    100% {
        transform: translateY(0) rotateZ(0deg);
        opacity: 1;
    }
}

.blackjack-card.red {
    color: #e74c3c;
}

.blackjack-card.black {
    color: #2c3e50;
}

.blackjack-card.hidden {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    font-size: 40px;
}

.blackjack-card .card-suit {
    font-size: 18px;
}

.blackjack-card .card-value-top {
    align-self: flex-start;
}

.blackjack-card .card-value-bottom {
    align-self: flex-end;
    transform: rotate(180deg);
}

.blackjack-total {
    font-size: 28px;
    font-weight: bold;
    color: #00e701;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    min-width: 80px;
    text-align: center;
}

.blackjack-total.bust {
    color: #ff4757;
    animation: bustShake 0.5s ease;
}

@keyframes bustShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.blackjack-total.blackjack {
    color: #f39c12;
    animation: blackjackGlow 1s ease infinite;
}

@keyframes blackjackGlow {
    0%, 100% { text-shadow: 0 0 10px #f39c12; }
    50% { text-shadow: 0 0 30px #f39c12, 0 0 50px #f39c12; }
}

.blackjack-result {
    margin-top: 20px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    min-height: 30px;
    animation: resultFadeIn 0.5s ease;
}

@keyframes resultFadeIn {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

#blackjack-hit-btn,
#blackjack-stand-btn,
#blackjack-double-btn {
    display: inline-block;
    margin: 5px;
}


.blackjack-hands-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.blackjack-hand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.blackjack-hand.active {
    background: rgba(0, 231, 1, 0.1);
    border: 2px solid #00e701;
    box-shadow: 0 0 20px rgba(0, 231, 1, 0.3);
}


.blackjack-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.blackjack-action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.blackjack-action-buttons .bet-button {
    flex: 1;
    min-width: 100px;
}


/* ===== BACCARAT GAME ===== */
.baccarat-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 700px;
}

.baccarat-hands {
    display: flex;
    gap: 40px;
    width: 100%;
    justify-content: center;
}

.baccarat-hand {
    flex: 1;
    max-width: 300px;
    background: linear-gradient(135deg, rgba(15, 33, 46, 0.8), rgba(31, 52, 70, 0.6));
    border-radius: 15px;
    padding: 25px;
    border: 2px solid rgba(0, 231, 1, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.baccarat-hand:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 231, 1, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 231, 1, 0.2);
}

.hand-label {
    font-size: 20px;
    font-weight: bold;
    color: #00e701;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 231, 1, 0.6);
    letter-spacing: 2px;
}

.baccarat-cards {
    display: flex;
    gap: 10px;
    justify-content: center;
    min-height: 140px;
    align-items: center;
    flex-wrap: wrap;
}

.baccarat-card {
    width: 80px;
    height: 115px;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    animation: cardDeal 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.baccarat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    border-radius: 10px;
    opacity: 0;
    animation: cardShine 1s ease 0.5s;
}

@keyframes cardDeal {
    0% { 
        transform: translateY(-100px) rotateY(180deg) scale(0.5); 
        opacity: 0; 
    }
    60% {
        transform: translateY(10px) rotateY(0deg) scale(1.1);
    }
    100% { 
        transform: translateY(0) rotateY(0) scale(1); 
        opacity: 1; 
    }
}

@keyframes cardShine {
    0% { opacity: 0; transform: translateX(-100%); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateX(100%); }
}

.hand-total {
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    margin-top: 20px;
    text-shadow: 0 0 20px rgba(0, 231, 1, 0.6), 0 0 40px rgba(0, 231, 1, 0.3);
    animation: totalPulse 2s ease-in-out infinite;
}

@keyframes totalPulse {
    0%, 100% { 
        transform: scale(1);
        text-shadow: 0 0 20px rgba(0, 231, 1, 0.6), 0 0 40px rgba(0, 231, 1, 0.3);
    }
    50% { 
        transform: scale(1.1);
        text-shadow: 0 0 30px rgba(0, 231, 1, 0.9), 0 0 60px rgba(0, 231, 1, 0.5);
    }
}

.baccarat-result {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    min-height: 45px;
    animation: resultZoom 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-shadow: 0 0 20px currentColor;
}

/* ===== VIDEO POKER GAME ===== */
.videopoker-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 800px;
}

.poker-cards {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.poker-card {
    width: 110px;
    height: 155px;
    background: linear-gradient(135deg, #ffffff, #f5f5f5);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    border: 3px solid transparent;
    animation: cardFlip 0.5s ease;
}

@keyframes cardFlip {
    0% { transform: rotateY(180deg) scale(0.8); opacity: 0; }
    100% { transform: rotateY(0) scale(1); opacity: 1; }
}

.poker-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 231, 1, 0.3);
}

.poker-card.held {
    border-color: #00e701;
    box-shadow: 0 0 30px rgba(0, 231, 1, 0.8), 0 8px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-10px);
    animation: heldPulse 1s ease-in-out infinite;
}

@keyframes heldPulse {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(0, 231, 1, 0.8), 0 8px 20px rgba(0, 0, 0, 0.4);
    }
    50% { 
        box-shadow: 0 0 50px rgba(0, 231, 1, 1), 0 8px 20px rgba(0, 0, 0, 0.4);
    }
}

.poker-card.held::after {
    content: 'HELD';
    position: absolute;
    top: 8px;
    font-size: 14px;
    font-weight: bold;
    color: #00e701;
    background: rgba(0, 0, 0, 0.9);
    padding: 4px 12px;
    border-radius: 6px;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(0, 231, 1, 0.5);
}

.poker-card-suit {
    font-size: 24px;
    margin-top: 8px;
}

.poker-result {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    min-height: 45px;
    text-shadow: 0 0 25px currentColor, 0 0 50px currentColor;
    animation: resultZoom 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding: 15px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    border: 2px solid transparent;
}

.poker-result.win {
    border-color: #00e701;
    animation: resultZoom 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55), winPulse 1.5s ease-in-out infinite;
}

@keyframes winPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 231, 1, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 231, 1, 0.8), 0 0 60px rgba(0, 231, 1, 0.4);
    }
}

.poker-paytable {
    background: linear-gradient(135deg, rgba(15, 33, 46, 0.9), rgba(31, 52, 70, 0.7));
    border-radius: 15px;
    padding: 25px;
    border: 2px solid rgba(0, 231, 1, 0.2);
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.paytable-title {
    font-size: 20px;
    font-weight: bold;
    color: #00e701;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 231, 1, 0.6);
    letter-spacing: 2px;
}

.paytable-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #b1bad3;
    font-size: 15px;
    transition: all 0.3s ease;
}

.paytable-row:hover {
    background: rgba(0, 231, 1, 0.1);
    padding-left: 25px;
}

.paytable-row:last-child {
    border-bottom: none;
}

.paytable-row span:last-child {
    color: #00e701;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 231, 1, 0.5);
}

/* ===== ROCK PAPER SCISSORS GAME ===== */
.rps-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 600px;
}

.rps-streak-info {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 15px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(15, 33, 46, 0.9), rgba(31, 52, 70, 0.7));
    border-radius: 12px;
    border: 2px solid rgba(0, 231, 1, 0.3);
}

.streak-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.streak-label {
    font-size: 12px;
    color: #b1bad3;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.streak-value {
    font-size: 28px;
    font-weight: bold;
    color: #ffc800;
    text-shadow: 0 0 15px rgba(255, 200, 0, 0.6);
}

.streak-multiplier {
    font-size: 28px;
    font-weight: bold;
    color: #00e701;
    text-shadow: 0 0 15px rgba(0, 231, 1, 0.6);
    animation: multiplierPulse 1.5s ease-in-out infinite;
}

@keyframes multiplierPulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 15px rgba(0, 231, 1, 0.6);
    }
    50% {
        transform: scale(1.1);
        text-shadow: 0 0 25px rgba(0, 231, 1, 0.9), 0 0 40px rgba(0, 231, 1, 0.5);
    }
}

.streak-potential {
    font-size: 28px;
    font-weight: bold;
    color: #00e701;
    text-shadow: 0 0 15px rgba(0, 231, 1, 0.6);
}

.cashout-btn {
    animation: cashoutPulse 1.5s ease-in-out infinite;
}

@keyframes cashoutPulse {
    0%, 100% {
        box-shadow: 0 5px 15px rgba(0, 231, 1, 0.4);
    }
    50% {
        box-shadow: 0 8px 25px rgba(0, 231, 1, 0.7), 0 0 40px rgba(0, 231, 1, 0.5);
        transform: translateY(-2px);
    }
}

.rps-choices {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.rps-choice {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border: 3px solid rgba(0, 231, 1, 0.3);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    color: white;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.rps-choice::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 231, 1, 0.3), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.rps-choice:hover::before {
    width: 200%;
    height: 200%;
}

.rps-choice:hover {
    transform: translateY(-10px) scale(1.1);
    border-color: #00e701;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 231, 1, 0.5);
    background: linear-gradient(135deg, #34495e, #2c3e50);
}

.rps-choice:active {
    transform: translateY(-5px) scale(1.05);
}

.rps-icon {
    font-size: 70px;
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.6));
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.rps-choice:hover .rps-icon {
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 20px rgba(0, 231, 1, 0.6));
    transform: scale(1.1) rotate(5deg);
}

.rps-battle {
    display: flex;
    align-items: center;
    gap: 50px;
    justify-content: center;
}

.rps-player, .rps-opponent {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.battle-label {
    font-size: 20px;
    font-weight: bold;
    color: #b1bad3;
    letter-spacing: 2px;
}

.battle-choice {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, rgba(15, 33, 46, 0.9), rgba(31, 52, 70, 0.7));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    border: 3px solid rgba(0, 231, 1, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: choiceReveal 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes choiceReveal {
    0% { 
        transform: scale(0) rotate(180deg); 
        opacity: 0; 
    }
    60% { 
        transform: scale(1.2) rotate(-10deg); 
        opacity: 1; 
    }
    100% { 
        transform: scale(1) rotate(0); 
        opacity: 1; 
    }
}

.rps-vs {
    font-size: 36px;
    font-weight: bold;
    color: #ff4757;
    text-shadow: 0 0 20px rgba(255, 71, 87, 0.8);
    animation: vsPulse 1s ease-in-out infinite;
}

@keyframes vsPulse {
    0%, 100% { 
        transform: scale(1);
        text-shadow: 0 0 20px rgba(255, 71, 87, 0.8);
    }
    50% { 
        transform: scale(1.2);
        text-shadow: 0 0 40px rgba(255, 71, 87, 1), 0 0 60px rgba(255, 71, 87, 0.6);
    }
}

.rps-result {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    min-height: 45px;
    animation: resultZoom 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-shadow: 0 0 20px currentColor;
}


/* ===== MAKEUP UPDATE - VISUAL ENHANCEMENTS ===== */

/* Smooth button glow on hover */
.bet-button:hover {
    box-shadow: 0 8px 25px rgba(0, 231, 1, 0.4), 0 0 30px rgba(0, 231, 1, 0.2);
    transform: translateY(-2px);
}

/* Enhanced win animations */
@keyframes winPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.05);
        filter: brightness(1.3);
    }
}

.win-effect {
    animation: winPulse 0.5s ease-in-out 3;
}

/* Better particle effects */
.particle {
    pointer-events: none;
    animation: particleFloat 2s ease-out forwards;
}

@keyframes particleFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1.5);
    }
}

/* Improved game panel shadows */
.game-panel {
    box-shadow: none;
}

/* Better balance display */
.balance {
    text-shadow: 0 0 20px rgba(0, 231, 1, 0.6), 0 0 40px rgba(0, 231, 1, 0.3);
    transition: all 0.3s ease;
}

.balance:hover {
    transform: scale(1.05);
    text-shadow: 0 0 30px rgba(0, 231, 1, 0.8), 0 0 60px rgba(0, 231, 1, 0.4);
}

/* Enhanced toast notifications */
#toast-container .toast {
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Smoother transitions everywhere */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Better input focus states */
input[type="number"]:focus {
    outline: none;
    border-color: #00e701;
    box-shadow: 0 0 0 3px rgba(0, 231, 1, 0.2), 0 0 20px rgba(0, 231, 1, 0.3);
}

/* Enhanced logo glow */
.logo {
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 30px rgba(0, 231, 1, 0.8));
}

/* Better game result displays */
.game-result,
.rps-result,
.poker-result,
.baccarat-result {
    font-weight: bold;
    text-shadow: 0 0 15px currentColor;
    transition: all 0.3s ease;
}

/* Improved slot reel effects */
.slot-reel {
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Better card displays */
.baccarat-card,
.poker-card {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.baccarat-card:hover,
.poker-card:hover {
    transform: translateY(-5px) scale(1.05);
}

/* Enhanced multiplier displays */
.multiplier-display,
.streak-multiplier {
    background: linear-gradient(135deg, rgba(0, 231, 1, 0.2), rgba(0, 231, 1, 0.1));
    padding: 10px 20px;
    border-radius: 10px;
    border: 2px solid rgba(0, 231, 1, 0.4);
}

/* Better hover states for choices */
.rps-choice:hover,
.keno-tile:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 231, 1, 0.4);
}

/* Improved loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

/* Better disabled states */
button:disabled,
input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

/* Enhanced success/error states */
.success-state {
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 231, 1, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(0, 231, 1, 0);
    }
}

.error-state {
    animation: errorShake 0.5s ease-out;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Improved scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 33, 46, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00e701, #00b801);
    border-radius: 10px;
    border: 2px solid rgba(15, 33, 46, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00ff00, #00e701);
}

/* ===== END MAKEUP UPDATE ===== */


/* ===== SLIDE GAME ===== */
.slide-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 40px 20px;
}

.slide-carousel {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 150px;
    background: linear-gradient(135deg, rgba(15, 33, 46, 0.9), rgba(31, 52, 70, 0.7));
    border-radius: 15px;
    border: 2px solid rgba(0, 231, 1, 0.3);
    overflow: hidden;
}

.slide-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 40px;
    color: #00e701;
    z-index: 10;
    text-shadow: 0 0 20px rgba(0, 231, 1, 0.8);
}

.slide-multipliers {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: left 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-mult {
    min-width: 120px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #1a2c38, #2f4553);
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin: 0 5px;
}

.slide-result {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    min-height: 40px;
}

/* ===== WHEEL GAME ===== */
.wheel-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 40px 20px;
}

#wheel-canvas {
    border-radius: 50%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 231, 1, 0.3);
    transition: transform 0.3s ease;
}

.wheel-result {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    min-height: 40px;
}

/* ===== TOME OF LIFE GAME ===== */
.tome-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 40px 20px;
}

.tome-reels {
    display: flex;
    gap: 10px;
    background: linear-gradient(135deg, rgba(15, 33, 46, 0.9), rgba(31, 52, 70, 0.7));
    padding: 20px;
    border-radius: 15px;
    border: 2px solid rgba(0, 231, 1, 0.3);
}

.tome-reel {
    width: 100px;
    height: 300px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.tome-symbol {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tome-result {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    min-height: 40px;
}

/* Spinning animation for Tome reels */
@keyframes reelSpin {
    0% { transform: translateY(0); }
    100% { transform: translateY(-300px); }
}

.spinning {
    animation: reelSpin 0.1s linear infinite;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #1a2c38;
    border-radius: 12px;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid #2f4553;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #2f4553;
}

.modal-header h2 {
    color: #00e701;
    margin: 0;
    font-size: 24px;
}

.close-btn {
    background: transparent;
    border: none;
    color: #b1bad3;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.close-btn:hover {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
}

/* Achievements styles */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 30px;
}

.achievement-card {
    background: #213743;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 2px solid #2f4553;
    transition: all 0.3s;
}

.achievement-card.unlocked {
    border-color: #00e701;
    background: linear-gradient(135deg, rgba(0, 231, 1, 0.1) 0%, rgba(0, 231, 1, 0.05) 100%);
}

.achievement-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.achievement-info {
    flex: 1;
}

.achievement-name {
    color: #00e701;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.achievement-desc {
    color: #b1bad3;
    font-size: 14px;
    margin-bottom: 10px;
}

.achievement-status {
    font-size: 24px;
    margin-top: 10px;
}

/* Changelog styles */
.changelog-content {
    padding: 30px;
}

.changelog-entry {
    margin-bottom: 30px;
}

.changelog-entry h3 {
    color: #00e701;
    margin-bottom: 15px;
}

.changelog-entry ul {
    list-style: none;
    padding: 0;
}

.changelog-entry li {
    color: #b1bad3;
    padding: 8px 0;
    border-bottom: 1px solid rgba(47, 69, 83, 0.3);
}

.changelog-entry li:last-child {
    border-bottom: none;
}

/* Horse Betting */
.horse-selection {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.horse-btn {
    background: #213743;
    border: 2px solid #2f4553;
    color: #b1bad3;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
}

.horse-btn:hover { background: #2f4553; color: #fff; }
.horse-btn.selected { border-color: #00e701; color: #00e701; background: rgba(0,231,1,0.1); }


/* Horse Betting */
.horse-selection {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.horse-btn {
    background: #213743;
    border: 2px solid #2f4553;
    color: #b1bad3;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
}

.horse-btn:hover { background: #2f4553; color: #fff; }
.horse-btn.selected { border-color: #00e701; color: #00e701; background: rgba(0,231,1,0.1); }

.race-track {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #0a1929;
    border-radius: 12px;
    padding: 20px 16px;
    width: 100%;
    border: 1px solid #2f4553;
}

.race-lane {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(47,69,83,0.4);
    border-radius: 8px;
    padding: 4px 10px;
    position: relative;
    height: 56px;
    border-left: 3px solid #2f4553;
}

.race-lane-name {
    width: 130px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.race-lane-track {
    flex: 1;
    height: 36px;
    position: relative;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.07);
    overflow: visible;
}

.race-finish-line {
    position: absolute;
    right: 2px;
    top: 0;
    width: 4px;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        #fff 0px, #fff 4px,
        #333 4px, #333 8px
    );
    opacity: 0.6;
    border-radius: 2px;
    z-index: 1;
}

.race-horse {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    left: 2px;
    transition: left 0.05s linear;
    z-index: 2;
    line-height: 1;
    animation: horseGallop 0.22s ease-in-out infinite alternate;
}

@keyframes horseGallop {
    0%   { transform: translateY(-60%) rotate(-4deg); }
    100% { transform: translateY(-40%) rotate(4deg); }
}

.race-event-label {
    position: absolute;
    top: -16px;
    left: 4px;
    font-size: 10px;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 3;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9);
    pointer-events: none;
}

.race-lane.winner { background: rgba(0,231,1,0.12); border-color: #00e701; }
.race-lane.loser { opacity: 0.35; }

.horse-result {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    min-height: 36px;
    margin-top: 14px;
    color: #b1bad3;
}

/* Admin broadcast notification */
.toast-admin {
    border-left: 6px solid #ffc800;
    background: linear-gradient(135deg, #1a2c38 0%, #3d3520 100%);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    padding: 20px 28px;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(255, 200, 0, 0.3), 0 4px 12px rgba(0,0,0,0.5);
    border-radius: 12px;
}

.toast-admin .admin-toast-label {
    font-size: 11px;
    font-weight: 600;
    color: #ffc800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.toast-admin .admin-toast-msg {
    font-size: 16px;
    color: #fff;
    line-height: 1.4;
}

/* Limbo Rocket */
.limbo-rocket-container {
    position: relative;
    width: 100%;
    height: 180px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.limbo-rocket {
    font-size: 52px;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) rotate(-45deg);
    transition: bottom 0.05s linear;
    filter: drop-shadow(0 0 12px rgba(255,200,0,0.8));
    z-index: 2;
}

.limbo-rocket.launching {
    filter: drop-shadow(0 0 20px #ffc800) drop-shadow(0 0 40px #ff6348);
}

.limbo-rocket.win-land {
    animation: rocketLand 0.5s ease forwards;
    filter: drop-shadow(0 0 20px #00e701);
}

.limbo-rocket.crash {
    animation: rocketCrash 0.6s ease forwards;
    filter: drop-shadow(0 0 20px #ff4757);
}

@keyframes rocketLand {
    0% { transform: translateX(-50%) rotate(-45deg); }
    50% { transform: translateX(-50%) rotate(-45deg) scale(1.3); }
    100% { transform: translateX(-50%) rotate(-45deg) scale(1); bottom: 10px; }
}

@keyframes rocketCrash {
    0% { transform: translateX(-50%) rotate(-45deg); }
    30% { transform: translateX(-50%) rotate(45deg) scale(1.2); }
    60% { transform: translateX(-50%) rotate(180deg) scale(0.8); }
    100% { transform: translateX(-50%) rotate(180deg) scale(0); bottom: 0; opacity: 0; }
}
