    /* ============ RESET & BASE ============ */
    * { 
        margin: 0; 
        padding: 0; 
        box-sizing: border-box; 
    }
    
    body {
        font-family: 'Orbitron', sans-serif;
        background: #000;
        color: white;
        width: 100vw;
        height: 100vh;
        overflow: hidden;
    }
    
    /* ============ MAIN CONTAINER ============ */
    .slot-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #000;
    }
    
    /* ============ VIDEO BACKGROUND ============ */
    .background-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 1;
    }
    
    .fallback-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 1;
    }
    
    /* ============ TOP LEFT: BALANCE, MODE & INFO ============ */
    .top-controls {
        position: absolute;
        top: 20px;
        left: 20px;
        z-index: 20;
        background: rgba(0, 0, 0, 0.3);
        padding: 15px;
        border-radius: 10px;
        border: 0px solid #00BFFF; /* DEEP SKY BLUE */
        display: flex;
        gap: 30px;
        align-items: center;
    }
    
    .balance-display {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 20px;
        font-weight: bold;
        color: #00BFFF; /* DEEP SKY BLUE */
        text-shadow: 0 0 3px #00BFFF;
    }
    
    .balance-display i {
        color: #39FF14; /* POISON GREEN - only coin icon is green */
        text-shadow: 0 0 3px #39FF14;
    }
    
    .mode-container {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    #modeText {
        color: #00BFFF; /* DEEP SKY BLUE */
        font-weight: bold;
        font-size: 18px;
        text-shadow: 0 0 3px #00BFFF;
    }
    
    /* Info icon for rules */
    .info-icon {
        background: none;
        border: none;
        color: #00BFFF; /* DEEP SKY BLUE */
        font-size: 24px;
        cursor: pointer;
        padding: 5px;
        transition: transform 0.2s;
        text-shadow: 0 0 3px #00BFFF;
    }
    
    .info-icon:hover {
        transform: scale(1.2);
        color: #1E90FF; /* DODGER BLUE on hover */
        text-shadow: 0 0 10px #1E90FF;
    }
    
    /* Toggle Switch - MUST KEEP .switch and .slider classes */
    .switch {
        position: relative;
        display: inline-block;
        width: 60px;
        height: 30px;
    }
    
    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }
    
    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #003366; /* DARK BLUE */
        transition: .3s;
        border-radius: 34px;
        border: 2px solid #00BFFF; /* DEEP SKY BLUE */
        box-shadow: 0 0 5px #00BFFF;
    }
    
    .slider:before {
        position: absolute;
        content: "";
        height: 22px;
        width: 22px;
        left: 4px;
        bottom: 3px;
        background-color: #39FF14; /* POISON GREEN - slider knob is green */
        transition: .3s;
        border-radius: 50%;
        box-shadow: 0 0 5px #39FF14;
    }
    
    input:checked + .slider {
        background-color: #0066CC; /* MEDIUM BLUE when checked */
    }
    
    input:checked + .slider:before {
        transform: translateX(28px);
        background-color: #7CFC00; /* Lighter green when active */
    }
    
    /* ============ REELS CONTAINER ============ */
    #slotReels {
        position: absolute;
        top:40%;
        left: 33%;
        transform: translate(-50%, -50%);
        width: 40%;
        height: 60%;
        z-index: 10;
        display: flex;
        flex-direction: column;
        gap: 5px;




    }
    



    /* ============ REEL ROWS - JS CREATES .paid-reel-row ============ */
    .paid-reel-row {
        display: flex;
        gap: 5px;
        flex: 1; /* Each row takes equal height */


    }
    
    /* ============ INDIVIDUAL REELS - JS CREATES .paid-reel ============ */
    .paid-reel {
        flex: 1;

        border: 0px solid #00BFFF; /* DEEP SKY BLUE */
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;



    }
    
    .slot-symbol {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }
    
    /* ============ CENTERED CONTROLS UNDER REELS ============ */
    .center-controls {
        position: absolute;
        top: calc(40% + 30%); /* Under the reels (40% top + half of 50% height) */
        left: 33%;
        transform: translate(-50%, 0);
        z-index: 20;
        display: flex;
        align-items: center;
        gap: 20px;
        background: rgba(0, 0, 0, 0.0);
        padding: 15px;
        border-radius: 10px;
        border: 0px solid #00BFFF; /* DEEP SKY BLUE */
    }
    
    /* Control Buttons */
    #autoPlayToggle, #paidSpinBtn, #speedToggle {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        transition: transform 0.2s;
        border-radius: 45px;
    }
    
    #autoPlayToggle:hover, #paidSpinBtn:hover, #speedToggle:hover {
        transform: scale(1.1);
    }
    
    /* Auto spin active state */
    #autoPlayToggle.auto-play-active img {
        filter: brightness(1.2) drop-shadow(0 0 10px #00BFFF); /* BLUE glow */
    }
    
    /* Button images */
    #autoPlayToggle img, #speedToggle img {
        width: 100px;
        height: 100px;
        border-radius: 8px;
        display: block;
    }
    
    #paidSpinBtn img {
        width: 120px;
        height: 120px;
        border-radius: 8px;
        display: block;
    }
    
    /* Speed button states - JS adds .active-slow class to #speedToggle */
    #speedToggle .fast-img {
        display: block;
    }
    
    #speedToggle .slow-img {
        display: none;
    }
    
    /* When active-slow class is added by JS, swap images */
    #speedToggle.active-slow .fast-img {
        display: none;
    }
    
    #speedToggle.active-slow .slow-img {
        display: block;
    }
    
    /* ============ BOTTOM PANEL: BET & RISK/REWARD ============ */
    .bottom-panel {
        position: absolute;
        bottom: 20px;
        left: 20px;
        right: 20px;
        z-index: 20;
        background: rgba(10, 0, 30, 0.75);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 12px 16px;
        border-radius: 16px;
        border: 1px solid rgba(157, 0, 255, 0.3);
        box-shadow: 0 0 30px rgba(157, 0, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .bottom-panel-row {
        display: flex;
        gap: 16px;
    }

    .slider-group {
        display: flex;
        flex-direction: column;
        gap: 4px;
        flex: 1;
    }

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

    .slider-title {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: rgba(255, 102, 255, 0.7);
        font-family: 'Orbitron', sans-serif;
    }

    .slider-title i {
        margin-right: 4px;
        font-size: 10px;
    }

    .slider-value {
        font-size: 16px;
        font-weight: 900;
        color: #fff;
        font-family: 'Orbitron', sans-serif;
        text-shadow: 0 0 12px rgba(255, 102, 255, 0.6);
    }

    .slider-value.rr-value {
        color: #ff66ff;
        text-shadow: 0 0 12px rgba(255, 102, 255, 0.6);
    }

    .slider-track-wrapper {
        position: relative;
        padding: 4px 0;
    }

    /* ---- BET SLIDER ---- */
    .bet-slider-track {
        position: relative;
        width: 100%;
        height: 6px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 8px;
        cursor: pointer;
        overflow: visible;
    }

    #betSliderFill, .rr-fill {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        background: linear-gradient(90deg, #9d00ff, #ff66ff);
        border-radius: 8px;
        pointer-events: none;
        box-shadow: 0 0 10px rgba(157, 0, 255, 0.4);
        width: 0%;
        transition: width 0.1s ease;
    }

    .rr-fill {
        background: linear-gradient(90deg, #00BFFF, #ff66ff, #39FF14);
    }

    .slider-thumb, .rr-thumb {
        position: absolute;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 20px;
        height: 20px;
        background: radial-gradient(circle at 40% 40%, #ff99ff, #9d00ff);
        border: 2px solid #fff;
        border-radius: 50%;
        cursor: grab;
        z-index: 10;
        box-shadow: 0 0 12px rgba(255, 102, 255, 0.6), 0 0 4px #fff;
        transition: box-shadow 0.2s, transform 0.15s;
    }

    .rr-thumb {
        background: radial-gradient(circle at 40% 40%, #66ccff, #0088cc);
    }

    .slider-thumb:hover,
    .slider-thumb.dragging,
    .rr-thumb:hover,
    .rr-thumb.dragging {
        cursor: grabbing;
        transform: translate(-50%, -50%) scale(1.2);
        box-shadow: 0 0 24px rgba(255, 102, 255, 0.9), 0 0 8px #fff;
    }

    /* ---- RISK/REWARD SLIDER ---- */
    .rr-slider-track {
        position: relative;
        width: 100%;
        height: 6px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 8px;
        cursor: pointer;
        overflow: visible;
    }

    .slider-range-labels {
        display: flex;
        justify-content: space-between;
        font-size: 9px;
        color: rgba(255, 255, 255, 0.35);
        font-weight: 600;
        font-family: 'Orbitron', sans-serif;
    }

    /* ---- COMPACT MULTIPLIER BAR ---- */
    .multiplier-compact {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .multiplier-compact-label {
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: rgba(255, 102, 255, 0.6);
        font-family: 'Orbitron', sans-serif;
        white-space: nowrap;
    }

    .multiplier-compact-label i {
        margin-right: 3px;
    }

    .multiplier-compact-bar {
        flex: 1;
        height: 6px;
        background: rgba(255, 255, 255, 0.06);
        border-radius: 6px;
        position: relative;
        overflow: hidden;
    }

    .multiplier-compact-bar .multiplier-bar-fill {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        border-radius: 6px;
        width: 0%;
        background: linear-gradient(90deg, #00BFFF 0%, #39FF14 30%, #FFFF00 60%, #FF6600 80%, #FF0044 100%);
        box-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
        transition: width 0.15s ease;
    }

    .multiplier-compact-bar .multiplier-bar-fill.animating {
        transition: width 0.08s linear;
        animation: multiplierPulse 0.3s infinite;
    }

    .multiplier-compact-value {
        font-size: 14px;
        font-weight: 900;
        color: #39FF14;
        font-family: 'Orbitron', sans-serif;
        text-shadow: 0 0 10px rgba(57, 255, 20, 0.6);
        min-width: 50px;
        text-align: right;
        transition: all 0.3s ease;
    }

    /* Multiplier value color states */
    .multiplier-compact-value.tier-low { color: #00BFFF; text-shadow: 0 0 12px rgba(0, 191, 255, 0.6); }
    .multiplier-compact-value.tier-mid { color: #39FF14; text-shadow: 0 0 12px rgba(57, 255, 20, 0.6); }
    .multiplier-compact-value.tier-high { color: #FFFF00; text-shadow: 0 0 12px rgba(255, 255, 0, 0.6); }
    .multiplier-compact-value.tier-epic { color: #FF6600; text-shadow: 0 0 12px rgba(255, 102, 0, 0.6); }
    .multiplier-compact-value.tier-legendary { color: #FF0044; text-shadow: 0 0 16px rgba(255, 0, 68, 0.8); font-size: 16px; }

    @keyframes multiplierPulse {
        0%, 100% { opacity: 0.8; }
        50% { opacity: 1; }
    }

    /* ---- LAST WIN DISPLAY ---- */
    .last-win-display {
        position: absolute;
        bottom: 130px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 25;
        display: flex;
        align-items: center;
        gap: 6px;
        background: rgba(10, 0, 30, 0.8);
        backdrop-filter: blur(8px);
        padding: 6px 14px;
        border-radius: 20px;
        border: 1px solid rgba(57, 255, 20, 0.4);
        font-family: 'Orbitron', sans-serif;
        font-size: 11px;
        color: rgba(255, 255, 255, 0.7);
        letter-spacing: 1px;
        animation: lastWinFadeIn 0.5s ease;
        box-shadow: 0 0 15px rgba(57, 255, 20, 0.15);
    }

    .last-win-display i {
        color: #FFD700;
        font-size: 12px;
    }

    .last-win-amount {
        color: #39FF14;
        font-weight: 900;
        font-size: 13px;
        text-shadow: 0 0 8px rgba(57, 255, 20, 0.5);
    }

    @keyframes lastWinFadeIn {
        from { opacity: 0; transform: translateX(-50%) translateY(10px); }
        to { opacity: 1; transform: translateX(-50%) translateY(0); }
    }
    
    /* ============ WIN POPUP SYSTEM ============ */
    .win-popup-overlay {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 1000;
        font-family: 'Orbitron', sans-serif;
        animation: winPopupEntry 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    .win-popup-overlay.win-popup-exit {
        animation: winPopupExit 0.4s ease-in forwards;
    }

    .win-popup-card {
        position: relative;
        background: radial-gradient(ellipse at center, rgba(0, 30, 60, 0.97) 0%, rgba(5, 5, 25, 0.98) 100%);
        border: 2px solid rgba(0, 191, 255, 0.6);
        border-radius: 24px;
        padding: 36px 48px;
        text-align: center;
        overflow: hidden;
        min-width: 300px;
        backdrop-filter: blur(20px);
    }

    .win-popup-glow {
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle at center, rgba(0, 191, 255, 0.15) 0%, transparent 60%);
        animation: glowRotate 4s linear infinite;
        pointer-events: none;
    }

    .win-popup-ring {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 120%;
        height: 120%;
        transform: translate(-50%, -50%);
        border: 1px solid rgba(0, 191, 255, 0.2);
        border-radius: 50%;
        animation: ringPulse 2s ease-in-out infinite;
        pointer-events: none;
    }

    .win-popup-ring.ring-2 {
        width: 140%;
        height: 140%;
        animation-delay: 0.5s;
        border-color: rgba(57, 255, 20, 0.15);
    }

    .win-popup-particles {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: 
            radial-gradient(2px 2px at 20% 30%, rgba(0, 191, 255, 0.8), transparent),
            radial-gradient(2px 2px at 80% 20%, rgba(57, 255, 20, 0.8), transparent),
            radial-gradient(2px 2px at 40% 80%, rgba(255, 102, 255, 0.8), transparent),
            radial-gradient(2px 2px at 70% 60%, rgba(255, 215, 0, 0.8), transparent);
        animation: particleFloat 3s ease-in-out infinite;
        pointer-events: none;
    }

    .win-popup-icon {
        position: relative;
        z-index: 2;
        margin-bottom: 8px;
    }

    .win-popup-icon img {
        width: 64px;
        height: 64px;
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
        animation: iconBounce 1.5s ease-in-out infinite;
    }

    .win-popup-icon.bonus-icon {
        font-size: 48px;
        filter: drop-shadow(0 0 20px rgba(255, 102, 0, 0.8));
        animation: iconBounce 1.5s ease-in-out infinite;
    }

    .win-popup-icon.total-icon {
        font-size: 56px;
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.9));
        animation: iconBounce 1.2s ease-in-out infinite;
    }

    .win-popup-title {
        position: relative;
        z-index: 2;
        font-size: 32px;
        font-weight: 900;
        color: #00BFFF;
        text-shadow: 0 0 20px rgba(0, 191, 255, 0.8), 0 0 40px rgba(0, 191, 255, 0.4);
        letter-spacing: 3px;
        margin-bottom: 12px;
        animation: titleShimmer 2s ease-in-out infinite;
    }

    .win-popup-amount {
        position: relative;
        z-index: 2;
        font-size: 44px;
        font-weight: 900;
        color: #39FF14;
        text-shadow: 0 0 30px rgba(57, 255, 20, 0.8), 0 0 60px rgba(57, 255, 20, 0.3);
        letter-spacing: 2px;
        animation: amountPulse 1.5s ease-in-out infinite;
    }

    .win-popup-label {
        position: relative;
        z-index: 2;
        font-size: 11px;
        letter-spacing: 4px;
        color: rgba(255, 255, 255, 0.4);
        margin-top: 8px;
        text-transform: uppercase;
    }

    .win-popup-sparks {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        overflow: hidden;
    }

    .spark {
        position: absolute;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: #FFD700;
        box-shadow: 0 0 6px #FFD700;
        animation: sparkFly 2s ease-out infinite;
    }

    .spark:nth-child(1) { top: 50%; left: 50%; animation-delay: 0s; --spark-angle: 30deg; }
    .spark:nth-child(2) { top: 50%; left: 50%; animation-delay: 0.3s; --spark-angle: 90deg; }
    .spark:nth-child(3) { top: 50%; left: 50%; animation-delay: 0.6s; --spark-angle: 150deg; }
    .spark:nth-child(4) { top: 50%; left: 50%; animation-delay: 0.9s; --spark-angle: 210deg; }
    .spark:nth-child(5) { top: 50%; left: 50%; animation-delay: 1.2s; --spark-angle: 270deg; }
    .spark:nth-child(6) { top: 50%; left: 50%; animation-delay: 1.5s; --spark-angle: 330deg; }

    /* ---- Bonus Theme ---- */
    .win-popup-card.bonus-theme {
        border-color: rgba(255, 140, 0, 0.6);
        background: radial-gradient(ellipse at center, rgba(40, 20, 0, 0.97) 0%, rgba(15, 5, 0, 0.98) 100%);
    }

    .bonus-glow { background: radial-gradient(circle at center, rgba(255, 140, 0, 0.15) 0%, transparent 60%); }
    .bonus-ring { border-color: rgba(255, 140, 0, 0.25) !important; }
    .bonus-title-text { color: #FF8C00 !important; text-shadow: 0 0 20px rgba(255, 140, 0, 0.8) !important; }
    .bonus-amount { color: #FFD700 !important; text-shadow: 0 0 30px rgba(255, 215, 0, 0.8) !important; }

    /* ---- Total Theme ---- */
    .win-popup-card.total-theme {
        border-color: rgba(255, 215, 0, 0.6);
        background: radial-gradient(ellipse at center, rgba(30, 25, 0, 0.97) 0%, rgba(10, 5, 0, 0.98) 100%);
        padding: 30px 40px;
    }

    .total-glow { background: radial-gradient(circle at center, rgba(255, 215, 0, 0.12) 0%, transparent 60%); }
    .total-ring { border-color: rgba(255, 215, 0, 0.2) !important; }
    .total-title-text { color: #FFD700 !important; text-shadow: 0 0 25px rgba(255, 215, 0, 0.8) !important; }

    .total-win-breakdown {
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 12px;
    }

    .total-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 16px;
        border-radius: 10px;
        font-size: 16px;
        font-weight: 700;
    }

    .total-row.first-row {
        background: rgba(0, 191, 255, 0.1);
        border: 1px solid rgba(0, 191, 255, 0.3);
    }

    .total-row.first-row .total-row-label { color: rgba(0, 191, 255, 0.7); }
    .total-row.first-row .total-row-value { color: #00BFFF; text-shadow: 0 0 8px rgba(0, 191, 255, 0.5); }

    .total-row.bonus-row {
        background: rgba(255, 140, 0, 0.1);
        border: 1px solid rgba(255, 140, 0, 0.3);
    }

    .total-row.bonus-row .total-row-label { color: rgba(255, 140, 0, 0.7); }
    .total-row.bonus-row .total-row-value { color: #FF8C00; text-shadow: 0 0 8px rgba(255, 140, 0, 0.5); }

    .total-divider {
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.5), transparent);
        margin: 4px 0;
    }

    .total-amount-value {
        font-size: 36px !important;
        color: #FFD700 !important;
        text-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.3) !important;
    }

    /* ---- Bonus Unlocked Popup ---- */
    .bonus-popup-overlay {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 9999;
        font-family: 'Orbitron', sans-serif;
        animation: winPopupEntry 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        pointer-events: none;
    }

    .bonus-popup-overlay.bonus-popup-exit {
        animation: winPopupExit 0.4s ease-in forwards;
    }

    .bonus-popup-card {
        position: relative;
        background: radial-gradient(ellipse at center, rgba(40, 0, 60, 0.95) 0%, rgba(10, 0, 20, 0.98) 100%);
        border: 2px solid rgba(255, 102, 255, 0.6);
        border-radius: 20px;
        padding: 30px 50px;
        text-align: center;
        overflow: hidden;
    }

    .bonus-popup-glow {
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle at center, rgba(255, 102, 255, 0.15) 0%, transparent 60%);
        animation: glowRotate 3s linear infinite;
        pointer-events: none;
    }

    .bonus-popup-ring {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 130%;
        height: 130%;
        transform: translate(-50%, -50%);
        border: 1px solid rgba(255, 102, 255, 0.2);
        border-radius: 50%;
        animation: ringPulse 1.5s ease-in-out infinite;
        pointer-events: none;
    }

    .bonus-popup-icon {
        font-size: 48px;
        margin-bottom: 8px;
        animation: iconBounce 1s ease-in-out infinite;
        filter: drop-shadow(0 0 15px rgba(255, 102, 255, 0.8));
    }

    .bonus-popup-title {
        font-size: 28px;
        font-weight: 900;
        color: #ff66ff;
        text-shadow: 0 0 20px rgba(255, 102, 255, 0.8);
        letter-spacing: 3px;
        margin-bottom: 6px;
    }

    .bonus-popup-subtitle {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.6);
        letter-spacing: 1px;
    }

    /* ---- Popup Animations ---- */
    @keyframes winPopupEntry {
        0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
        60% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
        100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    }

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

    @keyframes glowRotate {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }

    @keyframes ringPulse {
        0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
        50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.6; }
    }

    @keyframes particleFloat {
        0%, 100% { transform: translateY(0); opacity: 0.6; }
        50% { transform: translateY(-8px); opacity: 1; }
    }

    @keyframes iconBounce {
        0%, 100% { transform: translateY(0) scale(1); }
        50% { transform: translateY(-6px) scale(1.05); }
    }

    @keyframes titleShimmer {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.85; text-shadow: 0 0 30px rgba(0, 191, 255, 1), 0 0 60px rgba(57, 255, 20, 0.4); }
    }

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

    @keyframes sparkFly {
        0% { transform: translate(0, 0) scale(1); opacity: 1; }
        100% { 
            transform: translate(
                calc(cos(var(--spark-angle)) * 120px), 
                calc(sin(var(--spark-angle)) * 120px)
            ) scale(0);
            opacity: 0;
        }
    }

    @keyframes textPulse {
        0% { text-shadow: 0 0 10px #FF00FF, 0 0 20px #00BFFF; }
        100% { text-shadow: 0 0 20px #FF00FF, 0 0 40px #00BFFF, 0 0 60px #39FF14; }
    }

/* Banana Rain Effect for Big Wins */
#banana-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
    overflow: hidden;
    display: none;
}

.banana {
    position: absolute;
    font-size: 30px;
    top: -50px;
    animation: bananaFall linear forwards;
    z-index: 9997;
}

@keyframes bananaFall {
    to {
        transform: translateY(calc(100vh + 50px)) rotate(360deg);
    }
}

/* Win Transition Effect */
.win-transition {
    animation: winFlash 0.5s ease-out;
}

@keyframes winFlash {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.5); }
    100% { filter: brightness(1); }
}

/* Flying Symbol Animation */
.flying-symbol {
    position: fixed;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

/* Column Glow Effect */
.column-glowing {
    border-left: 3px solid #00BFFF !important;
    border-right: 3px solid #00BFFF !important;
    box-shadow: 
        inset 0 0 20px rgba(0, 191, 255, 0.4),
        0 0 25px rgba(0, 191, 255, 0.7) !important;
    animation: columnGlow 1s infinite alternate !important;
}

@keyframes columnGlow {
    from { 
        border-left-color: #00BFFF;
        border-right-color: #00BFFF;
        box-shadow: 
            inset 0 0 15px rgba(0, 191, 255, 0.3),
            0 0 20px rgba(0, 191, 255, 0.5);
    }
    to { 
        border-left-color: #39FF14;
        border-right-color: #39FF14;
        box-shadow: 
            inset 0 0 25px rgba(57, 255, 20, 0.6),
            0 0 30px rgba(57, 255, 20, 0.9);
    }
}

/* Machine Glow during Spin */
.machine-glowing {
    box-shadow: 
        0 0 20px #FF00FF,
        0 0 40px #00BFFF,
        0 0 60px #39FF14 !important;
    transition: box-shadow 0.3s ease;
}

/* Button Glow during Win */
.button-glowing {
    animation: buttonPulse 1s infinite alternate;
    box-shadow: 0 0 20px #FFD700 !important;
}

@keyframes buttonPulse {
    from { box-shadow: 0 0 10px #FFD700; }
    to { box-shadow: 0 0 30px #FFD700, 0 0 40px #FF00FF; }
}

/* Anticipation Effect */
.anticipation {
    animation: anticipationPulse 0.5s infinite;
}

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

/* Pattern Effects */
.pattern-horizontal .paid-reel-row:first-child .paid-reel {
    animation: rowGlow 1s infinite alternate;
}

.pattern-vertical .paid-reel {
    animation: columnPulse 1s infinite alternate;
}

.pattern-diagonal .paid-reel {
    animation: diagonalShimmer 1.5s infinite alternate;
}

@keyframes rowGlow {
    from { background: rgba(0, 191, 255, 0.3); }
    to { background: rgba(57, 255, 20, 0.3); }
}

@keyframes columnPulse {
    from { transform: scaleY(1); }
    to { transform: scaleY(1.05); }
}

@keyframes diagonalShimmer {
    from { 
        background: linear-gradient(45deg, transparent, rgba(0, 191, 255, 0.3), transparent);
    }
    to { 
        background: linear-gradient(45deg, transparent, rgba(57, 255, 20, 0.3), transparent);
    }
}

    
    /* ============ RULES MODAL POPUP ============ */
    .rules-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.9);
        z-index: 1000;
        display: flex;
        justify-content: center;
        align-items: center;
        display: none;
    }
    
    .rules-modal.active {
        display: flex;
    }
    
    .rules-content {
        background: rgba(0, 0, 0, 0.95);
        border: 3px solid #00BFFF; /* DEEP SKY BLUE */
        border-radius: 15px;
        padding: 30px;
        width: 70%;
        height: 70%;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    .rules-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 2px solid #00BFFF; /* DEEP SKY BLUE */
    }
    
    .rules-title {
        color: #00BFFF; /* DEEP SKY BLUE */
        font-size: 28px;
        font-weight: bold;
        text-shadow: 0 0 5px #00BFFF;
    }
    
    .close-rules {
        background: none;
        border: 2px solid #00BFFF; /* DEEP SKY BLUE */
        color: #00BFFF;
        font-size: 24px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s;
    }
    
    .close-rules:hover {
        background: #39FF14; /* POISON GREEN on hover */
        color: #000;
        box-shadow: 0 0 15px #39FF14;
    }
    
    #powerStructureGrid {
        flex: 1;
        overflow-y: auto;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
        padding: 10px;
    }
    
    .power-item {
        background: rgba(0, 0, 0, 0.7);
        border: 1px solid #00BFFF; /* DEEP SKY BLUE */
        border-radius: 8px;
        padding: 15px;
        text-align: center;
    }
    
    .symbol-preview {
        width: 60px;
        height: 60px;
        margin: 0 auto 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .symbol-preview img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
    
    .symbol-name {
        color: #00BFFF; /* DEEP SKY BLUE */
        font-weight: bold;
        margin-bottom: 10px;
        font-size: 16px;
    }
    
    .payouts {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .payout {
        display: flex;
        justify-content: space-between;
        font-size: 14px;
        color: #39FF14; /* POISON GREEN - payout amounts are green */
    }
    
    /* ============ MESSAGE AREA ============ */
    #spinMessageExtra {
        position: absolute;
        top: 100px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.8);
        color: #00BFFF; /* DEEP SKY BLUE */
        padding: 10px 20px;
        border-radius: 8px;
        border: 2px solid #00BFFF; /* DEEP SKY BLUE */
        z-index: 20;
        text-align: center;
        text-shadow: 0 0 5px #00BFFF;
        box-shadow: 0 0 10px #00BFFF;
    }
    
    /* ============ UTILITY ============ */
    .hidden {
        display: none !important;
    }
    
    /* ============ VERSION ============ */
    .version {
        position: fixed;
        bottom: 5px;
        right: 5px;
        font-size: 12px;
        color: rgba(255, 255, 255, 0.5);
        z-index: 1000;
    }
    
    /* Scrollbar styling - blue/green mix */
    #powerStructureGrid::-webkit-scrollbar {
        width: 8px;
    }
    
    #powerStructureGrid::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.3);
        border-radius: 4px;
    }
    
    #powerStructureGrid::-webkit-scrollbar-thumb {
        background: #00BFFF; /* DEEP SKY BLUE */
        border-radius: 4px;
    }
    
    #powerStructureGrid::-webkit-scrollbar-thumb:hover {
        background: #39FF14; /* POISON GREEN on hover */
    }



/* ============ PRE-GAME INTRO VIDEO ============ */
/* ============ PRE-GAME INTRO VIDEO ============ */
.intro-video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Add this to prevent scrollbars */
}

.intro-video {
    width: 100vw !important; /* Full viewport width */
    height: auto !important; /* Auto height maintains aspect ratio */
    max-width: 100%;
    object-fit: cover; /* Changed from 'contain' to 'cover' */
    background: #000;
    display: none; /* Hidden until user clicks play */
}

/* For portrait/vertical screens - switch to full height */
@media (orientation: portrait) or (max-aspect-ratio: 16/9) {
    .intro-video {
        width: auto !important;
        height: 100vh !important;
    }
}

/* Play overlay (shown before video starts) */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
}


.play-content {
    text-align: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid #00BFFF;
    border-radius: 15px;
    max-width: 600px;
}

.play-content h2 {
    color: #39FF14;
    font-size: 36px;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #39FF14;
}

.play-content p {
    color: #00BFFF;
    font-size: 20px;
    margin-bottom: 30px;
}

.play-intro-btn {
    background: #39FF14;
    color: #000;
    border: none;
    padding: 15px 40px;
    font-size: 22px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    margin: 10px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.play-intro-btn:hover {
    background: #7CFC00;
    transform: scale(1.05);
    box-shadow: 0 0 20px #39FF14;
}

.skip-intro-btn {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: rgba(0, 0, 0, 0.7);
    color: #39FF14;
    border: 2px solid #39FF14;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 100001;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skip-intro-btn:hover {
    background: #39FF14;
    color: #000;
    box-shadow: 0 0 20px #39FF14;
}

.intro-fallback {
    text-align: center;
    color: #00BFFF;
    padding: 40px;
}

.intro-fallback h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #39FF14;
    text-shadow: 0 0 10px #39FF14;
}

.intro-fallback p {
    font-size: 24px;
    margin-bottom: 30px;
}

.intro-fallback button {
    background: #00BFFF;
    color: #000;
    border: none;
    padding: 15px 30px;
    font-size: 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}





































/* ============ MOBILE RESPONSIVE (768px and under) ============ */
@media (max-width: 768px) {
    /* Reels Container - Center and resize */
    #slotReels {
        top: 38%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 70%;
        height: 30%;
        padding: 0px;
    }
    
    /* Center Controls - Under reels */
    .center-controls {
        top: 67%;
        left: 50%;
        transform: translate(-50%, 0);
        gap: 10px;
        padding: 10px;
    }
    
    /* Button sizes for mobile */
    #autoPlayToggle img, #speedToggle img {
        width: 70px;
        height: 70px;
    }
    
    #paidSpinBtn img {
        width: 85px;
        height: 85px;
    }
    
    /* Top Controls - Balance & Mode */
    .top-controls {
        background: rgba(0, 0, 0, 0.0);
        top: 100px;
        left: 10px;
        right: 10px;
        padding: 10px;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .balance-display {
        font-size: 16px;
    }
    
    .mode-container {
        gap: 8px;
    }
    
    #modeText {
        font-size: 16px;
    }
    
    /* Toggle Switch - Smaller */
    .switch {
        width: 50px;
        height: 25px;
    }
    
    .slider:before {
        height: 18px;
        width: 18px;
    }
    
    input:checked + .slider:before {
        transform: translateX(23px);
    }
    
    /* Info Icon */
    .info-icon {
        font-size: 20px;
    }
    
    /* Bottom Panel - Bet & Risk/Reward */
    .bottom-panel {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 10px 12px;
        gap: 6px;
    }
    
    .bottom-panel-row {
        gap: 10px;
    }

    .slider-title { font-size: 8px; letter-spacing: 1px; }
    .slider-value { font-size: 13px; }
    .slider-value.rr-value { font-size: 13px; }
    
    .bet-slider-track, .rr-slider-track { height: 5px; }
    .slider-thumb, .rr-thumb { width: 18px; height: 18px; }
    .slider-range-labels { font-size: 8px; }

    .multiplier-compact-label { font-size: 8px; }
    .multiplier-compact-bar { height: 5px; }
    .multiplier-compact-value { font-size: 12px; min-width: 42px; }
    .multiplier-compact-value.tier-legendary { font-size: 14px; }

    .last-win-display {
        bottom: 110px;
        font-size: 10px;
        padding: 4px 10px;
    }
    .last-win-amount { font-size: 11px; }
    
    /* Win Popup - Smaller */
    .win-content {
        padding: 20px 30px;
        width: 90%;
        max-width: 350px;
    }
    
    #paidWinMessage {
        font-size: 28px;
    }
    
    .paid-win-amount-large {
        font-size: 32px;
    }
    
    /* Rules Modal */
    .rules-content {
        width: 90%;
        height: 80%;
        padding: 20px;
    }
    
    .rules-title {
        font-size: 22px;
    }
    
    /* Message Area */
    #spinMessageExtra {
        top: 80px;
        padding: 8px 15px;
        font-size: 14px;
        width: 90%;
    }
}













/* Target BOTH video elements */
.background-video.desktop-video,
.background-video.mobile-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* or 'fill' */
    z-index: 1;
}

/* Target BOTH fallback images */
.fallback-bg.desktop-fallback,
.fallback-bg.mobile-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    display: none;
}

/* Hide mobile by default (CSS handles this) */
.background-video.mobile-video,
.fallback-bg.mobile-fallback {
    display: none;
}

/* Show mobile, hide desktop on mobile */
@media (max-width: 768px) {
    .background-video.desktop-video,
    .fallback-bg.desktop-fallback {
        display: none;
    }
    
    .background-video.mobile-video,
    .fallback-bg.mobile-fallback {
        display: block;
    }
}










/* ============ TAB SYSTEM FOR RULES/PAYOUTS ============ */
.tab-system {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* Tab buttons */
.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-shrink: 0;
    justify-content: center;
}

.tab-btn {
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #00BFFF;
    border-radius: 8px;
    color: #00BFFF;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    min-width: 120px;
    text-align: center;
}

.tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 191, 255, 0.3);
}

.tab-btn.active {
    background: linear-gradient(135deg, #00BFFF, #0066CC);
    color: white;
    border-color: #39FF14;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
}

/* Tab content */
.tab-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.tab-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding-right: 10px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Rules panel */
.rules-panel {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00BFFF;
    border-radius: 10px;
    padding: 20px;
}

.rules-panel h1,
.rules-panel h2,
.rules-panel h3 {
    color: #39FF14;
    margin: 15px 0 10px 0;
    text-shadow: 0 0 5px #39FF14;
}

.rules-panel h1 { font-size: 24px; }
.rules-panel h2 { font-size: 20px; }
.rules-panel h3 { font-size: 18px; }

.rules-panel p {
    color: #FFFFFF;
    line-height: 1.5;
    margin-bottom: 10px;
    font-size: 14px;
}

.rules-panel strong {
    color: #39FF14;
}

.rules-panel ul,
.rules-panel ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.rules-panel li {
    margin-bottom: 5px;
    color: #FFFFFF;
}

/* Payouts panel */
.payouts-panel {
    padding: 10px;
}

/* Power grid */
.power-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 5px;
}

/* Power item */
.power-item {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #00BFFF;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.2s;
}

.power-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 191, 255, 0.2);
}

.symbol-preview {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.symbol-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.symbol-name {
    color: #00BFFF;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.symbol-power {
    font-size: 12px;
    color: #39FF14;
    opacity: 0.8;
}

/* Payouts */
.payouts {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.payout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 10px;
    border-radius: 4px;
    transition: all 0.3s;
}

.payout:hover {
    background: rgba(0, 191, 255, 0.1);
    transform: translateX(5px);
}

.symbol-count {
    color: #FFFFFF;
}

/* Payout color coding */
.multiplier {
    font-weight: bold;
}

.multiplier.payout-common {
    color: #00BFFF;
    text-shadow: 0 0 3px #00BFFF;
}

.multiplier.payout-uncommon {
    color: #39FF14;
    text-shadow: 0 0 5px #39FF14;
}

.multiplier.payout-rare {
    color: #FF00FF;
    text-shadow: 0 0 7px #FF00FF;
}

.multiplier.payout-epic {
    color: #FFD700;
    text-shadow: 0 0 10px #FFD700;
    animation: epicGlow 1.5s infinite alternate;
}

@keyframes epicGlow {
    from {
        text-shadow: 0 0 5px #FFD700, 0 0 10px #FFD700;
    }
    to {
        text-shadow: 0 0 10px #FFD700, 0 0 20px #FFA500, 0 0 30px #FF8C00;
    }
}

/* Scrollbar styling */
.tab-panel::-webkit-scrollbar {
    width: 8px;
}

.tab-panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.tab-panel::-webkit-scrollbar-thumb {
    background: #00BFFF;
    border-radius: 4px;
}

.tab-panel::-webkit-scrollbar-thumb:hover {
    background: #39FF14;
}

/* ============ MOBILE TAB SYSTEM ============ */
@media (max-width: 768px) {
    .tab-buttons {
        margin-bottom: 15px;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 14px;
        min-width: 100px;
    }
    
    /* Rules panel mobile */
    .rules-panel {
        padding: 15px;
        max-height: 40vh;
    }
    
    .rules-panel h1 { font-size: 20px; }
    .rules-panel h2 { font-size: 18px; }
    .rules-panel h3 { font-size: 16px; }
    
    .rules-panel p {
        font-size: 12px;
        line-height: 1.4;
    }
    
    /* Power grid mobile */
    .power-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
        padding: 5px;
    }
    
    .power-item {
        padding: 10px;
    }
    
    .symbol-preview {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }
    
    .symbol-name {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .symbol-power {
        font-size: 10px;
    }
    
    .payout {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .payouts {
        gap: 3px;
    }
}

@media (max-width: 480px) {
    .tab-btn {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 80px;
    }
    
    .power-grid {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
        gap: 8px;
    }
    
    .power-item {
        padding: 8px;
    }
    
    .symbol-preview {
        width: 35px;
        height: 35px;
    }
    
    .payout {
        font-size: 9px;
        padding: 3px 6px;
    }
}

/* ============ MODAL ADJUSTMENTS ============ */
.rules-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#powerStructureGrid {
    flex: 1;
    overflow: hidden;
}

/* ===== WIN HIGHLIGHT / PATTERN EFFECTS ===== */

/* Base highlight glow on winning reels */
.win-highlight {
    position: relative;
    z-index: 2;
    filter: brightness(1.4) drop-shadow(0 0 12px rgba(255, 102, 255, 0.9));
    border: 2px solid rgba(255, 102, 255, 0.8) !important;
    border-radius: 10px;
    box-shadow:
        0 0 15px rgba(255, 102, 255, 0.6),
        0 0 30px rgba(157, 0, 255, 0.4),
        inset 0 0 10px rgba(255, 102, 255, 0.15);
    animation: winHighlightPulse 1.2s ease-in-out infinite;
}

@keyframes winHighlightPulse {
    0%, 100% {
        filter: brightness(1.4) drop-shadow(0 0 12px rgba(255, 102, 255, 0.9));
        box-shadow: 0 0 15px rgba(255, 102, 255, 0.6), 0 0 30px rgba(157, 0, 255, 0.4), inset 0 0 10px rgba(255, 102, 255, 0.15);
    }
    50% {
        filter: brightness(1.8) drop-shadow(0 0 20px rgba(255, 102, 255, 1));
        box-shadow: 0 0 25px rgba(255, 102, 255, 0.9), 0 0 50px rgba(157, 0, 255, 0.6), inset 0 0 15px rgba(255, 102, 255, 0.3);
    }
}

/* Big win highlight - more intense */
.big-win-highlight {
    filter: brightness(2) drop-shadow(0 0 20px rgba(255, 215, 0, 1)) !important;
    border-color: rgba(255, 215, 0, 0.9) !important;
    box-shadow:
        0 0 20px rgba(255, 215, 0, 0.8),
        0 0 40px rgba(255, 102, 255, 0.5),
        inset 0 0 15px rgba(255, 215, 0, 0.2);
    animation: bigWinPulse 0.8s ease-in-out infinite;
}

@keyframes bigWinPulse {
    0%, 100% {
        filter: brightness(2) drop-shadow(0 0 20px rgba(255, 215, 0, 1));
        transform: scale(1);
    }
    50% {
        filter: brightness(2.5) drop-shadow(0 0 30px rgba(255, 215, 0, 1));
        transform: scale(1.08);
    }
}

/* 3D spin animations for winning symbols */
.winning-symbol-3d-spin {
    animation: symbol3dSpin 2s ease-in-out infinite, winHighlightPulse 1.2s ease-in-out infinite;
}

.winning-symbol-3d-spin-medium {
    animation: symbol3dSpinMedium 1.5s ease-in-out infinite, winHighlightPulse 1.2s ease-in-out infinite;
}

.winning-symbol-3d-spin-fast {
    animation: symbol3dSpinFast 1s ease-in-out infinite, winHighlightPulse 1.2s ease-in-out infinite;
}

@keyframes symbol3dSpin {
    0% { transform: perspective(400px) rotateY(0deg) scale(1); }
    25% { transform: perspective(400px) rotateY(15deg) scale(1.05); }
    50% { transform: perspective(400px) rotateY(0deg) scale(1.1); }
    75% { transform: perspective(400px) rotateY(-15deg) scale(1.05); }
    100% { transform: perspective(400px) rotateY(0deg) scale(1); }
}

@keyframes symbol3dSpinMedium {
    0% { transform: perspective(400px) rotateY(0deg) scale(1); }
    25% { transform: perspective(400px) rotateY(20deg) scale(1.08); }
    50% { transform: perspective(400px) rotateY(0deg) scale(1.12); }
    75% { transform: perspective(400px) rotateY(-20deg) scale(1.08); }
    100% { transform: perspective(400px) rotateY(0deg) scale(1); }
}

@keyframes symbol3dSpinFast {
    0% { transform: perspective(400px) rotateY(0deg) scale(1); }
    25% { transform: perspective(400px) rotateY(30deg) scale(1.1); }
    50% { transform: perspective(400px) rotateY(0deg) scale(1.15); }
    75% { transform: perspective(400px) rotateY(-30deg) scale(1.1); }
    100% { transform: perspective(400px) rotateY(0deg) scale(1); }
}

/* Pattern-specific color overrides */
.win-pattern-horizontal {
    border-color: rgba(0, 255, 255, 0.8) !important;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.6), 0 0 30px rgba(0, 255, 255, 0.3);
}

.win-pattern-vertical {
    border-color: rgba(57, 255, 20, 0.8) !important;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.6), 0 0 30px rgba(57, 255, 20, 0.3);
}

.win-pattern-diagonal {
    border-color: rgba(255, 215, 0, 0.8) !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.3);
}