    /* ============ 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(5, 5, 15, 0.85);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        padding: 15px;
        border-radius: 12px;
        border: 1px solid rgba(247, 147, 26, 0.35);
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 215, 0, 0.08);
        display: flex;
        gap: 30px;
        align-items: center;
    }
    
    .balance-display {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 20px;
        font-weight: bold;
        color: #FFD700;
        text-shadow: 0 0 8px rgba(255, 215, 0, 0.5), 0 1px 3px rgba(0,0,0,0.8);
    }
    
    .balance-display i {
        color: #F7931A;
        text-shadow: 0 0 8px rgba(247, 147, 26, 0.6);
    }
    
    .mode-container {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    #modeText {
        color: #FFD700;
        font-weight: bold;
        font-size: 18px;
        text-shadow: 0 0 6px rgba(255, 215, 0, 0.4), 0 1px 3px rgba(0,0,0,0.8);
    }
    
    /* Info icon for rules */
    .info-icon {
        background: none;
        border: none;
        color: #F7931A;
        font-size: 24px;
        cursor: pointer;
        padding: 5px;
        transition: transform 0.2s;
        text-shadow: 0 0 6px rgba(247, 147, 26, 0.5);
    }
    
    .info-icon:hover {
        transform: scale(1.2);
        color: #FFD700;
        text-shadow: 0 0 12px rgba(255, 215, 0, 0.8);
    }
    
    /* Toggle Switch */
    .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: rgba(20, 15, 5, 0.8);
        transition: .3s;
        border-radius: 34px;
        border: 2px solid #F7931A;
        box-shadow: 0 0 8px rgba(247, 147, 26, 0.3);
    }
    
    .slider:before {
        position: absolute;
        content: "";
        height: 22px;
        width: 22px;
        left: 4px;
        bottom: 3px;
        background: linear-gradient(135deg, #FFD700, #F7931A);
        transition: .3s;
        border-radius: 50%;
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    }
    
    input:checked + .slider {
        background-color: rgba(247, 147, 26, 0.25);
    }
    
    input:checked + .slider:before {
        transform: translateX(28px);
        background: linear-gradient(135deg, #00FF88, #00D4FF);
        box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
    }
    
    /* ============ 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 ============ */
    .paid-reel-row {
        display: flex;
        gap: 5px;
        flex: 1;
    }
    
    /* ============ INDIVIDUAL REELS ============ */
    .paid-reel {
        flex: 1;
        border: 2px solid rgba(247, 147, 26, 0.5);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        transition: all 0.4s ease;
        background: rgba(5, 5, 15, 0.35);
        box-shadow: 
            0 0 8px rgba(247, 147, 26, 0.25),
            0 0 20px rgba(247, 147, 26, 0.1),
            inset 0 0 12px rgba(0, 0, 0, 0.4);
        animation: reelFloat 3s ease-in-out infinite;
    }

    .paid-reel:nth-child(2) { animation-delay: -0.5s; }
    .paid-reel:nth-child(3) { animation-delay: -1s; }
    .paid-reel:nth-child(4) { animation-delay: -1.5s; }
    .paid-reel:nth-child(5) { animation-delay: -2s; }

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

    /* ============ WIN HIGHLIGHT ANIMATIONS ============ */
    .paid-reel.win-highlight {
        border-color: #FFD700 !important;
        border-width: 3px !important;
        background: rgba(255, 215, 0, 0.08) !important;
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 40px rgba(247, 147, 26, 0.4), inset 0 0 15px rgba(255, 215, 0, 0.2);
        z-index: 5;
    }

    .paid-reel.big-win-highlight {
        border-color: #00FF88 !important;
        border-width: 4px !important;
        background: rgba(0, 255, 136, 0.06) !important;
        box-shadow: 0 0 30px rgba(0, 255, 136, 0.9), 0 0 60px rgba(0, 255, 136, 0.4), inset 0 0 20px rgba(0, 255, 136, 0.2);
        z-index: 5;
    }

    @keyframes spin3d {
        0% { transform: perspective(600px) rotateY(0deg) scale(1); }
        25% { transform: perspective(600px) rotateY(90deg) scale(1.1); }
        50% { transform: perspective(600px) rotateY(180deg) scale(1); }
        75% { transform: perspective(600px) rotateY(270deg) scale(1.1); }
        100% { transform: perspective(600px) rotateY(360deg) scale(1); }
    }

    @keyframes spin3dFast {
        0% { transform: perspective(600px) rotateY(0deg) scale(1.05); }
        50% { transform: perspective(600px) rotateY(180deg) scale(1.15); }
        100% { transform: perspective(600px) rotateY(360deg) scale(1.05); }
    }

    @keyframes spin3dMedium {
        0% { transform: perspective(600px) rotateX(0deg) scale(1); }
        50% { transform: perspective(600px) rotateX(180deg) scale(1.1); }
        100% { transform: perspective(600px) rotateX(360deg) scale(1); }
    }

    .winning-symbol-3d-spin .slot-symbol {
        animation: spin3d 1.5s ease-in-out infinite;
    }

    .winning-symbol-3d-spin-fast .slot-symbol {
        animation: spin3dFast 0.8s ease-in-out infinite;
    }

    .winning-symbol-3d-spin-medium .slot-symbol {
        animation: spin3dMedium 1.2s ease-in-out infinite;
    }

    /* Pattern-specific container effects */
    .slot-reels-container.pattern-horizontal {
        box-shadow: 0 0 30px rgba(247, 147, 26, 0.3);
    }

    .slot-reels-container.pattern-vertical {
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    }

    .slot-reels-container.pattern-diagonal {
        box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    }
    
    .slot-symbol {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }
    
    /* ============ CENTERED CONTROLS UNDER REELS ============ */
    .center-controls {
        position: absolute;
        top: calc(40% + 30%);
        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 transparent;
    }
    
    /* Control Buttons */
    #autoPlayToggle, #paidSpinBtn, #speedToggle {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        transition: transform 0.2s, filter 0.2s;
        border-radius: 45px;
    }
    
    #autoPlayToggle:hover, #paidSpinBtn:hover, #speedToggle:hover {
        transform: scale(1.1);
        filter: drop-shadow(0 0 12px rgba(247, 147, 26, 0.6));
    }
    
    /* Auto spin active state */
    #autoPlayToggle.auto-play-active img {
        filter: brightness(1.2) drop-shadow(0 0 12px rgba(255, 215, 0, 0.7));
    }
    
    /* 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 */
    #speedToggle .fast-img {
        display: block;
    }
    
    #speedToggle .slow-img {
        display: none;
    }
    
    #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(5, 5, 15, 0.88);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 12px 16px;
        border-radius: 16px;
        border: 1px solid rgba(247, 147, 26, 0.35);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(247, 147, 26, 0.1), inset 0 1px 0 rgba(255, 215, 0, 0.06);
        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, 215, 0, 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(247, 147, 26, 0.5), 0 1px 3px rgba(0,0,0,0.8);
    }

    .slider-value.rr-value {
        color: #F7931A;
        text-shadow: 0 0 12px rgba(247, 147, 26, 0.5);
    }

    .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, #F7931A, #FFD700);
        border-radius: 8px;
        pointer-events: none;
        box-shadow: 0 0 10px rgba(247, 147, 26, 0.4);
        width: 0%;
        transition: width 0.1s ease;
    }

    .rr-fill {
        background: linear-gradient(90deg, #00D4FF, #F7931A, #00FF88);
    }

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

    .rr-thumb {
        background: radial-gradient(circle at 40% 40%, #00D4FF, #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(247, 147, 26, 0.9), 0 0 8px rgba(255,255,255,0.5);
    }

    /* ---- 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.4);
        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, 215, 0, 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, #00D4FF 0%, #00FF88 30%, #FFD700 60%, #FF6600 80%, #FF0044 100%);
        box-shadow: 0 0 8px rgba(0, 255, 136, 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: #00FF88;
        font-family: 'Orbitron', sans-serif;
        text-shadow: 0 0 10px rgba(0, 255, 136, 0.6), 0 1px 3px rgba(0,0,0,0.8);
        min-width: 50px;
        text-align: right;
        transition: all 0.3s ease;
    }

    /* Multiplier value color states */
    .multiplier-compact-value.tier-low { color: #00D4FF; text-shadow: 0 0 12px rgba(0, 212, 255, 0.6), 0 1px 3px rgba(0,0,0,0.8); }
    .multiplier-compact-value.tier-mid { color: #00FF88; text-shadow: 0 0 12px rgba(0, 255, 136, 0.6), 0 1px 3px rgba(0,0,0,0.8); }
    .multiplier-compact-value.tier-high { color: #FFD700; text-shadow: 0 0 12px rgba(255, 215, 0, 0.6), 0 1px 3px rgba(0,0,0,0.8); }
    .multiplier-compact-value.tier-epic { color: #FF6600; text-shadow: 0 0 12px rgba(255, 102, 0, 0.6), 0 1px 3px rgba(0,0,0,0.8); }
    .multiplier-compact-value.tier-legendary { color: #FF0044; text-shadow: 0 0 16px rgba(255, 0, 68, 0.8), 0 1px 3px rgba(0,0,0,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(5, 5, 15, 0.88);
        backdrop-filter: blur(10px);
        padding: 6px 14px;
        border-radius: 20px;
        border: 1px solid rgba(0, 255, 136, 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 4px 20px rgba(0, 0, 0, 0.5), 0 0 12px rgba(0, 255, 136, 0.12);
    }

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

    .last-win-amount {
        color: #00FF88;
        font-weight: 900;
        font-size: 13px;
        text-shadow: 0 0 8px rgba(0, 255, 136, 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(20, 15, 5, 0.97) 0%, rgba(5, 5, 15, 0.98) 100%);
        border: 2px solid rgba(247, 147, 26, 0.7);
        border-radius: 24px;
        padding: 36px 48px;
        text-align: center;
        overflow: hidden;
        min-width: 300px;
        backdrop-filter: blur(20px);
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7), 0 0 40px rgba(247, 147, 26, 0.15);
    }

    .win-popup-glow {
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle at center, rgba(247, 147, 26, 0.12) 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(247, 147, 26, 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(0, 255, 136, 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(255, 215, 0, 0.8), transparent),
            radial-gradient(2px 2px at 80% 20%, rgba(0, 255, 136, 0.8), transparent),
            radial-gradient(2px 2px at 40% 80%, rgba(247, 147, 26, 0.8), transparent),
            radial-gradient(2px 2px at 70% 60%, rgba(0, 212, 255, 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: #FFD700;
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.7), 0 0 40px rgba(247, 147, 26, 0.4), 0 2px 4px rgba(0,0,0,0.8);
        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: #00FF88;
        text-shadow: 0 0 30px rgba(0, 255, 136, 0.7), 0 0 60px rgba(0, 255, 136, 0.3), 0 2px 4px rgba(0,0,0,0.8);
        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.7);
        background: radial-gradient(ellipse at center, rgba(40, 20, 0, 0.97) 0%, rgba(10, 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), 0 2px 4px rgba(0,0,0,0.8) !important; }
    .bonus-amount { color: #FFD700 !important; text-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 2px 4px rgba(0,0,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), 0 2px 4px rgba(0,0,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(247, 147, 26, 0.1);
        border: 1px solid rgba(247, 147, 26, 0.3);
    }

    .total-row.first-row .total-row-label { color: rgba(255, 215, 0, 0.7); }
    .total-row.first-row .total-row-value { color: #FFD700; text-shadow: 0 0 8px rgba(255, 215, 0, 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, 25, 0, 0.95) 0%, rgba(5, 5, 15, 0.98) 100%);
        border: 2px solid rgba(247, 147, 26, 0.6);
        border-radius: 20px;
        padding: 30px 50px;
        text-align: center;
        overflow: hidden;
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7);
    }

    .bonus-popup-glow {
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle at center, rgba(247, 147, 26, 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(247, 147, 26, 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(247, 147, 26, 0.8));
    }

    .bonus-popup-title {
        font-size: 28px;
        font-weight: 900;
        color: #F7931A;
        text-shadow: 0 0 20px rgba(247, 147, 26, 0.8), 0 2px 4px rgba(0,0,0,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(255, 215, 0, 1), 0 0 60px rgba(247, 147, 26, 0.5); }
    }

    @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 #F7931A, 0 0 20px #FFD700; }
        100% { text-shadow: 0 0 20px #F7931A, 0 0 40px #FFD700, 0 0 60px #00FF88; }
    }

/* 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 #FFD700 !important;
    border-right: 3px solid #FFD700 !important;
    box-shadow: 
        inset 0 0 20px rgba(255, 215, 0, 0.3),
        0 0 25px rgba(247, 147, 26, 0.6) !important;
    animation: columnGlow 1s infinite alternate !important;
}

@keyframes columnGlow {
    from { 
        border-left-color: #F7931A;
        border-right-color: #F7931A;
        box-shadow: 
            inset 0 0 15px rgba(247, 147, 26, 0.3),
            0 0 20px rgba(247, 147, 26, 0.5);
    }
    to { 
        border-left-color: #FFD700;
        border-right-color: #FFD700;
        box-shadow: 
            inset 0 0 25px rgba(255, 215, 0, 0.4),
            0 0 30px rgba(255, 215, 0, 0.7);
    }
}

/* Machine Glow during Spin */
.machine-glowing {
    box-shadow: 
        0 0 20px #F7931A,
        0 0 40px rgba(255, 215, 0, 0.5),
        0 0 60px rgba(247, 147, 26, 0.3) !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 #F7931A; }
}

/* 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(247, 147, 26, 0.2); }
    to { background: rgba(255, 215, 0, 0.25); }
}

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

@keyframes diagonalShimmer {
    from { 
        background: linear-gradient(45deg, transparent, rgba(247, 147, 26, 0.25), transparent);
    }
    to { 
        background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    }
}

    
    /* ============ RULES MODAL POPUP ============ */
    .rules-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.92);
        z-index: 1000;
        display: flex;
        justify-content: center;
        align-items: center;
        display: none;
    }
    
    .rules-modal.active {
        display: flex;
    }
    
    .rules-content {
        background: rgba(5, 5, 15, 0.97);
        border: 2px solid rgba(247, 147, 26, 0.5);
        border-radius: 15px;
        padding: 30px;
        width: 70%;
        height: 70%;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        box-shadow: 0 8px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(247, 147, 26, 0.1);
    }
    
    .rules-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 2px solid rgba(247, 147, 26, 0.4);
    }
    
    .rules-title {
        color: #FFD700;
        font-size: 28px;
        font-weight: bold;
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.4), 0 2px 4px rgba(0,0,0,0.8);
    }
    
    .close-rules {
        background: none;
        border: 2px solid #F7931A;
        color: #F7931A;
        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: #FFD700;
        color: #000;
        border-color: #FFD700;
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    }
    
    #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(10, 10, 20, 0.8);
        border: 1px solid rgba(247, 147, 26, 0.35);
        border-radius: 8px;
        padding: 15px;
        text-align: center;
        transition: transform 0.2s, border-color 0.2s;
    }

    .power-item:hover {
        transform: translateY(-3px);
        border-color: rgba(255, 215, 0, 0.6);
        box-shadow: 0 5px 15px rgba(247, 147, 26, 0.15);
    }
    
    .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: #FFD700;
        font-weight: bold;
        margin-bottom: 10px;
        font-size: 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .payouts {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .payout {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 14px;
        color: #00FF88;
        background: rgba(0, 0, 0, 0.3);
        padding: 6px 10px;
        border-radius: 4px;
        transition: all 0.3s;
    }

    .payout:hover {
        background: rgba(247, 147, 26, 0.1);
        transform: translateX(5px);
    }

    .symbol-count {
        color: #FFFFFF;
    }

    .symbol-power {
        font-size: 12px;
        color: #00FF88;
        opacity: 0.8;
    }
    
    /* ============ MESSAGE AREA ============ */
    #spinMessageExtra {
        position: absolute;
        top: 100px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(5, 5, 15, 0.9);
        color: #FFD700;
        padding: 10px 20px;
        border-radius: 8px;
        border: 2px solid rgba(247, 147, 26, 0.5);
        z-index: 20;
        text-align: center;
        text-shadow: 0 0 8px rgba(255, 215, 0, 0.4), 0 1px 3px rgba(0,0,0,0.8);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 10px rgba(247, 147, 26, 0.15);
        backdrop-filter: blur(10px);
    }
    
    /* ============ 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 */
    #powerStructureGrid::-webkit-scrollbar {
        width: 8px;
    }
    
    #powerStructureGrid::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.3);
        border-radius: 4px;
    }
    
    #powerStructureGrid::-webkit-scrollbar-thumb {
        background: #F7931A;
        border-radius: 4px;
    }
    
    #powerStructureGrid::-webkit-scrollbar-thumb:hover {
        background: #FFD700;
    }



/* ============ 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;
}

.intro-video {
    width: 100vw !important;
    height: auto !important;
    max-width: 100%;
    object-fit: cover;
    background: #000;
    display: none;
}

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

/* Play overlay */
.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(5, 5, 15, 0.9);
    border: 3px solid rgba(247, 147, 26, 0.5);
    border-radius: 15px;
    max-width: 600px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(247, 147, 26, 0.1);
}

.play-content h2 {
    color: #FFD700;
    font-size: 36px;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

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

.play-intro-btn {
    background: linear-gradient(135deg, #F7931A, #FFD700);
    color: #0a0a1a;
    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;
    box-shadow: 0 4px 20px rgba(247, 147, 26, 0.4);
}

.play-intro-btn:hover {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    transform: scale(1.05);
    box-shadow: 0 4px 30px rgba(255, 215, 0, 0.6);
}

.skip-intro-btn {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: rgba(5, 5, 15, 0.8);
    color: #FFD700;
    border: 2px solid rgba(255, 215, 0, 0.5);
    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: #FFD700;
    color: #0a0a1a;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

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

.intro-fallback h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #FFD700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

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

.intro-fallback button {
    background: linear-gradient(135deg, #F7931A, #FFD700);
    color: #0a0a1a;
    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 */
    #slotReels {
        top: 38%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 70%;
        height: 30%;
        padding: 0px;
    }
    
    /* Center Controls */
    .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 */
    .top-controls {
        background: rgba(5, 5, 15, 0.85);
        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 */
    .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;
    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 */
.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(10, 10, 20, 0.7);
    border: 2px solid rgba(247, 147, 26, 0.4);
    border-radius: 8px;
    color: #F7931A;
    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(247, 147, 26, 0.2);
    border-color: rgba(255, 215, 0, 0.6);
}

.tab-btn.active {
    background: linear-gradient(135deg, #F7931A, #E8850F);
    color: #0a0a1a;
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(247, 147, 26, 0.4);
    font-weight: 900;
}

/* 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(5, 5, 15, 0.8);
    border: 2px solid rgba(247, 147, 26, 0.35);
    border-radius: 10px;
    padding: 20px;
}

.rules-panel h1,
.rules-panel h2,
.rules-panel h3 {
    color: #FFD700;
    margin: 15px 0 10px 0;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.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: #FFD700;
}

.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;
}

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

.multiplier.payout-common {
    color: #00D4FF;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.4);
}

.multiplier.payout-uncommon {
    color: #00FF88;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.4);
}

.multiplier.payout-rare {
    color: #F7931A;
    text-shadow: 0 0 7px rgba(247, 147, 26, 0.5);
}

.multiplier.payout-epic {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    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: #F7931A;
    border-radius: 4px;
}

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

/* ============ 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;
}