<style type="text/css">
/* REMOVE BROWSER FOCUS RINGS AND TAP HIGHLIGHTS */
    .cab-card, .cab-card-inner, .cab-card:focus, .cab-card-inner:focus, .cab-card:active, .cab-card-inner:active {
        outline: none !important;
        box-shadow: none !important;
        -webkit-tap-highlight-color: transparent !important;
        -webkit-focus-ring-color: rgba(0, 0, 0, 0) !important;
    }
    /* ========================================== */
    /* 0. TISLAND BACKGROUND & KIOSK LOCK         */
    /* ========================================== */
/* ========================================== */
    /* 0. TISLAND BACKGROUND & KIOSK LOCK         */
    /* ========================================== */
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        overflow: hidden !important; 
        
        /* The Background Image */
        background-image: url('/woocasino/resources/images/tisland_bg.png') !important; 
        background-size: 100% 100% !important; /* THE FIX: Forces the entire image to fit the screen without cropping */
        background-position: center top !important; /* Anchors the image to the top edge */
        background-repeat: no-repeat !important;
        background-attachment: fixed !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Make sure the main wrapper doesn't block the background */
    .carcass__body, .main-content, .wrapper { 
        background: transparent !important; 
        width: 100%;
    }

    /* Keep the arcade wrap contained inside the screen */
    .arcade-master-wrap { 
        display: flex; flex-direction: column; gap: 15px; padding: 10px; 
        margin: 0 auto; 
        width: 100%; max-width: 1800px; 
        height: 85vh; 
    }

   /* ========================================== */
    /* 1. HIDE THE OLD THEME ELEMENTS FORCEFULLY  */
    /* ========================================== */
    .bento-sidebar, .header-v50, .mobile-categories-bar { display: none !important; }
    .main-content .contain { max-width: 98% !important; width: 100% !important; height: 100%; margin: 0 auto; }
    
    /* THE FIX: Strip the native Vanguard sidebar padding from the master layout wrappers */
    .section_main, .section, .carcass__body { 
        padding-left: 0 !important; 
        padding-right: 0 !important;
        margin-left: 0 !important; 
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100vh; 
    }

    /* ========================================== */
    /* 2. MODAL & ANTI-GHOST STYLES               */
    /* ========================================== */
    .modal-backdrop, .overlay, .modal-overlay { z-index: 999990 !important; }
    .modal { position: fixed !important; z-index: 999995 !important; }
    html.modal-open, body.modal-open, html.overflow, body.overflow { overflow: hidden !important; }
    #my-account, #login-modal, #registration-confirm, .modal-dialog, .modal-content, .modal-base { z-index: 999999 !important; pointer-events: auto !important; opacity: 1 !important; visibility: visible !important; }
    #my-account button, #my-account a, #my-account input, #my-account select, #login-modal button, #login-modal a, #login-modal input, #login-modal select, #registration-confirm button, #registration-confirm a, #registration-confirm input, #registration-confirm select, .fyre-modal-close { position: relative !important; z-index: 1000000 !important; pointer-events: auto !important; }
    #my-account.modal, #login-modal.modal, #registration-confirm.modal { max-width: 520px !important; width: 92% !important; margin: 6vh auto !important; border-radius: 25px !important; overflow-y: auto !important; max-height: 85vh !important; background: var(--midnight-glass, rgba(15, 23, 42, 0.95)) !important; backdrop-filter: blur(35px) !important; border: 2px solid var(--neon-magenta, #d946ef) !important; box-sizing: border-box; }

    /* ========================================== */
    /* 3. KIOSK ARCHITECTURE: MASTER WRAP & HDR   */
    /* ========================================== */
    .kiosk-top-header { 
        position: relative; 
        z-index: 50; 
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        background: transparent !important; 
        backdrop-filter: none !important;   
        padding: 15px 25px 0 25px;          
        border: none !important;            
        box-shadow: none !important;        
        flex-shrink: 0; 
    }
    .kiosk-header-left { flex: 1; display: flex; justify-content: flex-start; align-items: center; }
    .kiosk-header-center { flex: 3; display: flex; justify-content: center; align-items: center; }
    .kiosk-header-right { flex: 1; display: flex; justify-content: flex-end; align-items: center; }

    .kiosk-header-jackpots { display: flex; gap: 25px; align-items: center; padding-left: 20px; }
    .center-jackpot-spacer { width: 180px; height: 10px; position: relative; display: flex; justify-content: center; align-items: center; }
    
    /* Original jackpot logo - overriden by section 8 */
    .center-jackpot-logo { position: absolute; top: -35px; width: 320px; z-index: 100; filter: drop-shadow(0 15px 25px rgba(0,0,0,0.8)); pointer-events: none; }

/* ========================================== */
    /* NEW: PORTHOLE JACKPOTS                     */
    /* ========================================== */
 .porthole-jackpot-entry {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px; 
        /* Removed the margin-top so it stops pushing the games up */
    }
	/* Floats the jackpots above the bottom background without squishing games */
/* 3. Dropping the Jackpots into the empty center */
    .bottom-jackpots-row {
        position: fixed !important; /* THE FIX: Glued to the screen */
        bottom: 30px !important; 
        left: 50vw !important; /* Centered using viewport width */
        transform: translateX(-50%) !important;
        width: max-content !important;
        z-index: 50 !important;
        pointer-events: none !important; 
    }

    .porthole-img-wrap {
        position: relative;
        width: 100px;  /* SCALED DOWN: from 120px to 100px to fit bottom area perfectly */
        height: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .porthole-img-wrap img {
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        object-fit: contain;
        filter: drop-shadow(0 8px 15px rgba(0,0,0,0.7)); 
    }
	.porthole-img-wrap .porthole-bg {
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        object-fit: contain;
        filter: drop-shadow(0 8px 15px rgba(0,0,0,0.7)); 
        z-index: 1;
    }

    /* 2. The Text Image Overlay */
    .porthole-img-wrap .porthole-text-img {
        position: relative;
        z-index: 10;
        width: 75%; /* Scales the text image to fit beautifully inside the glass */
        max-height: 50%;
        object-fit: contain;
        filter: drop-shadow(0 3px 5px rgba(0,0,0,0.9)); /* Adds a heavy shadow so it pops off the blue glass */
    }

    .porthole-name {
        position: relative;
        z-index: 10; 
        font-family: 'Arial', sans-serif;
        font-weight: 900;
        font-size: 18px; /* SCALED DOWN: from 22px to 18px */
        color: #fff;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        text-shadow: 0 2px 4px rgba(0,0,0,0.9), 0 0 12px rgba(0,0,0,0.9); 
    }

    .porthole-value {
        font-family: 'Arial', sans-serif;
        font-weight: 900;
        font-size: 20px; /* SCALED DOWN: from 24px to 20px */
        color: #00ff00; 
        text-shadow: 0 2px 5px rgba(0,0,0,0.9), 0 0 15px rgba(0,255,0,0.5); 
        letter-spacing: 1px;
    }

    /* ========================================== */
    /* 4. THE NEON GAMING HUB                     */
    /* ========================================== */
    .neon-gaming-hub { display: flex; flex-grow: 1; gap: 0; align-items: stretch; min-height: 0; }
    .neon-menu-column { width: 220px; display: flex; flex-direction: column; gap: 15px; margin-right: -3px !important; z-index: 10 !important; }

    .neon-menu-box { 
        background: transparent !important; 
        backdrop-filter: none !important; 
        border: 3px solid #ff007f !important; 
        border-right: none !important; 
        border-radius: 12px 0 0 12px !important; 
        padding: 12px 10px; 
        box-shadow: -5px 0 20px rgba(255, 0, 127, 0.3), inset 4px 0 15px rgba(255, 0, 127, 0.3) !important; 
        flex-grow: 1; 
    }
    .glass-reflection { position: absolute; top: 0; left: 0; right: 0; height: 40%; background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 100%); pointer-events: none; z-index: 10; }

    .kiosk-menu-list { display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 400px); overflow-y: auto; padding-right: 5px; padding-top: 15px; }
    .kiosk-menu-list::after { content: ""; display: block; height: 25px; flex-shrink: 0; }
    
    .kiosk-menu-btn { display: block; width: 100%; padding: 10px 5px; text-align: center; font-family: 'Arial', sans-serif; font-weight: 900; font-size: 15px; text-transform: uppercase; text-decoration: none; background: linear-gradient(180deg, rgba(68,75,97,0.9) 0%, rgba(40,45,66,0.9) 49%, rgba(17,20,34,0.9) 50%, rgba(34,39,58,0.9) 100%); border: 1px solid #111; border-top: 2px solid #8e95b0; border-bottom: 2px solid #0a0a10; border-radius: 6px; box-shadow: 0 5px 8px rgba(0,0,0,0.8); transition: all 0.1s; }
    .kiosk-menu-btn span { color: #00e5ff; text-shadow: 0 2px 3px rgba(0,0,0,0.9); letter-spacing: 0.5px; }
    .kiosk-menu-btn.active { box-shadow: inset 0 1px 1px rgba(255,255,255,0.4), 0 0 10px rgba(255,0,127,0.4); border-top: 2px solid #e0e4f5; }
    .kiosk-menu-btn.active span { background: linear-gradient(90deg, #00ffff 0%, #ff00ff 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; color: transparent; filter: drop-shadow(0 0 4px rgba(255, 0, 255, 0.4)); }

    .kiosk-promo-box { border: 2px solid #00e5ff !important; border-radius: 10px !important; overflow: hidden; box-shadow: 0 0 15px rgba(0, 229, 255, 0.4), inset 0 0 15px rgba(0, 229, 255, 0.2) !important; margin-right: 15px; margin-left: 5px; min-height: 160px; background: rgba(17,17,17,0.8); display: flex; align-items: center; justify-content: center; margin-top: auto; }
    .kiosk-promo-box img { width: 100%; height: 100%; object-fit: cover; display: block; }

    /* ========================================== */
    /* 5. PERFECT CENTER MATH GAME GRID           */
    /* ========================================== */
    .cabinet-grid-container { 
        flex: 1 1 0%; 
        background: transparent !important; 
        backdrop-filter: none !important; 
        border-radius: 12px !important; 
        padding: 0 15px; 
        display: flex; 
        flex-direction: column; 
        z-index: 5 !important; 
        overflow: hidden; 
        min-width: 0; 
        min-height: 0; 
        position: relative; 
        border: none !important;      
        box-shadow: none !important;  
        margin: 0 auto !important;
    }
    .cabinet-grid-container::after { content: ""; position: absolute; top: 3px; left: 3px; right: 3px; height: 40%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0) 100%); pointer-events: none; border-radius: 12px 12px 0 0; z-index: 10; }

    .inner-games-grid { 
        display: grid; 
        grid-template-rows: minmax(0, 1fr); 
        grid-auto-flow: column; 
        
        /* PERFECT MATH: Exactly 4 cards fill the screen. Gap between #2 and #3 is DEAD CENTER */
        grid-auto-columns: calc(25% - 11.25px) !important; 
        gap: 15px !important; 
        
        /* Start from left so scrolling isn't broken */
        justify-content: flex-start !important; 
        transform: none !important; 
        
        overflow-x: auto; 
        overflow-y: hidden; 
        padding-top: 15px; 
        padding-bottom: 5px; 
        scroll-behavior: smooth; 
        scroll-snap-type: x mandatory; 
        scrollbar-width: none; 
        flex: 1 1 0%; 
        min-height: 0; 
    }
    .inner-games-grid::-webkit-scrollbar { display: none; }

    .grid-scroll-controls { display: flex; justify-content: space-between; align-items: center; padding: 5px 25px; margin-top: 5px; margin-bottom: 15px; pointer-events: none; flex-shrink: 0; }
    .grid-scroll-btn { pointer-events: auto; background: transparent; border: none; cursor: pointer; padding: 0 15px; outline: none; transition: transform 0.2s; filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5)); }
    .grid-scroll-btn img { height: 60px; }
    .grid-scroll-btn:active { transform: scale(0.9); }
    .grid-scroll-btn:hover { transform: scale(1.1); filter: drop-shadow(0 0 15px rgba(0, 255, 0, 0.6)); }

/* 1. Splitting the User Stats to the Corners */
    .center-user-stats { 
        position: fixed !important; /* THE FIX: Glued to the screen */
        bottom: 20px !important; 
        left: 50px !important;  
        right: 50px !important; 
        transform: none !important; 
        display: flex !important; 
        justify-content: space-between !important; 
        align-items: center !important; 
        z-index: 60 !important;
        pointer-events: none !important; 
    }

    /* 2. Styling the Stat Text to Pop */
    /* 2. Styling the Stat Text to Pop */
    .stat-block {
        font-family: 'Georgia', 'Times New Roman', serif !important;
        font-weight: 900 !important;
        font-size: 42px !important; 
        color: #ffdf00 !important; 
        -webkit-text-stroke: 1.5px #4a2e00 !important; 
        text-transform: uppercase !important;
        letter-spacing: 3px !important;
        
        text-shadow: 
            2px 2px 0px #311c00, 
            4px 4px 0px #1a0f00, 
            0px 10px 20px rgba(0, 0, 0, 0.9),
            0px 0px 15px rgba(255, 223, 0, 0.4) !important;
            
        /* NEW: The Dark Backing Plaque */
        background: rgba(15, 10, 5, 0.85) !important; /* Very dark, warm brown/black */
        padding: 8px 30px !important; /* Gives the text wide breathing room */
        border-radius: 15px !important; /* Smooth, rounded corners */
        border: 2px solid #8b6508 !important; /* Antique gold/wood border */
        
        /* Inner shadow pushes the glass down, outer shadow lifts the whole plaque off the sand */
        box-shadow: 
            inset 0 0 20px rgba(0,0,0,0.9), 
            0 10px 20px rgba(0,0,0,0.7) !important; 
            
        animation: creditPulse 3s infinite alternate;
    }

    @keyframes creditPulse {
        0%   { filter: brightness(1); }
        100% { filter: brightness(1.25); }
    }
    /* ========================================== */
    /* 6. GAME CARDS: FLOATING IMAGE FIX          */
    /* ========================================== */
    .cab-card { border: none !important; background: transparent !important; padding: 5px; display: flex; flex-direction: column; position: relative; cursor: pointer; transition: transform 0.2s; box-shadow: none !important; scroll-snap-align: start; height: 100% !important; min-height: 0; }
    .cab-card:active { transform: scale(0.95); filter: brightness(0.8); }
    .cab-card-inner { flex: 1 1 0%; display: flex; flex-direction: column; text-decoration: none; overflow: hidden; height: 100% !important; min-height: 0; background: transparent !important; }
    
    .cab-card img { 
        flex: 1 1 0%; 
        width: 100%; 
        height: 100%; 
        min-height: 0; 
        object-fit: contain; 
        border-radius: 12px; 
        border: none !important; 
        background: transparent !important; 
        box-shadow: 0 15px 25px rgba(0,0,0,0.7); 
    }

    .feat-banner-img { object-fit: contain !important; background: transparent !important; }
    .cab-min-bet { display: none !important; }
    .cab-tall { grid-row: 1; }
    .cab-featured { background: transparent !important; border: none !important; box-shadow: none !important; overflow: visible; }
    .cab-featured-label { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: rgba(17,20,34,0.9); color: #00e5ff; padding: 2px 15px; font-weight: 900; font-size: 13px; letter-spacing: 1px; z-index: 2; white-space: nowrap; border-radius: 6px; border: 1px solid #00e5ff; box-shadow: 0 0 10px rgba(0,229,255,0.4); }

    .cab-mega-header { flex-shrink: 0; text-align: center; color: #fde047; font-weight: 900; font-size: 12px; padding: 0 0 6px 0; line-height: 1.2; text-shadow: 0 0 5px rgba(253, 224, 71, 0.5); }
    .cab-mega-header span { font-size: 15px; color: #fff; text-shadow: 0 0 5px #fde047, 0 0 10px #fde047; }

   /* ========================================== */
    /* 7 & 8. BULLETPROOF ZOOMING 3D WHEEL        */
    /* ========================================== */
    #interactive-wheel-container {
        position: fixed;
        z-index: 999999;
        left: 50vw;
        top: 50vh; 
        transform: translate(-50%, -50%);
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: none; 
    }

    /* SHRUNK STATE (Acts as a Button) */
    #interactive-wheel-container.interactive-wheel-shrunk {
        top: 145px !important; /* Distance above the game tiles */
        transform: translate(-50%, -50%) scale(0.4) !important; /* Shrinks to button size */
        transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    /* EXPANDED STATE (Playable) */
    #interactive-wheel-container.wheel-expanded {
        top: 50vh !important;
        transform: translate(-50%, -50%) scale(1) !important;
        transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
        pointer-events: auto;
    }

    /* Backdrop Blur */
    #interactive-wheel-container .wheel-backdrop {
        position: fixed;
        top: -50vh; left: -50vw; width: 200vw; height: 200vh;
        background: transparent !important; 
        backdrop-filter: none !important;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.5s ease;
        z-index: -1;
    }
    #interactive-wheel-container.wheel-expanded .wheel-backdrop { 
        opacity: 1 !important; pointer-events: auto !important; 
    }

    /* Content Wrapper - REMOVES THE UGLY BOX */
    #interactive-wheel-container .interactive-wheel-content {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        pointer-events: auto !important;
    }

    /* Hide Elements when shrunk */
    .interactive-wheel-shrunk .close-wheel,
    .interactive-wheel-shrunk .wheel-title,
    .interactive-wheel-shrunk .btn-spin-wheel {
        opacity: 0 !important;
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        pointer-events: none !important;
        border: none !important;
    }

    /* Show Elements when Expanded */
    .wheel-expanded .close-wheel {
        position: absolute; top: -50px; right: -50px; 
        color: #fff !important; font-size: 50px !important; cursor: pointer;
        opacity: 1 !important; visibility: visible !important;
        transition: opacity 0.4s ease 0.4s;
    }
.wheel-expanded .wheel-title {
        color: #fef08a !important; font-weight: 900 !important; font-size: 45px !important; 
        letter-spacing: 4px !important; 
        text-shadow: 0 4px 10px rgba(0,0,0,0.9), 0 0 20px #b8860b !important; /* Gold glow instead of purple */
        margin-bottom: 40px !important; margin-top: 0 !important;
        opacity: 1 !important; visibility: visible !important; height: auto !important;
        transition: opacity 0.4s ease 0.4s;
    }
    .wheel-expanded .btn-spin-wheel {
        background: linear-gradient(180deg, #991b1b, #7f1d1d) !important; /* Weathered Crimson */
        border: 2px solid #fbbf24 !important; /* Gold border */
        box-shadow: 0 10px 20px rgba(0,0,0,0.6), 0 0 15px rgba(153, 27, 27, 0.8) !important;
        color: #fef08a !important; padding: 15px 60px !important;
        border-radius: 30px !important; font-weight: 900 !important;
        font-size: 18px !important; cursor: pointer; margin-top: 40px !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.8) !important;
        opacity: 1 !important; visibility: visible !important; height: auto !important;
        transition: opacity 0.4s ease 0.4s;
    }

    /* The "SPIN WHEEL" Text under the button */
  .wheel-shrunk-text {
        font-family: 'Arial', sans-serif !important; font-weight: 900 !important;
        font-size: 45px !important; /* Huge because it gets scaled down */
        color: #fef08a !important; /* Light gold instead of pure white */
        text-shadow: 0 8px 12px rgba(0,0,0,0.9), 0 0 30px #b8860b !important; /* Antique gold glow instead of magenta */
        text-transform: uppercase !important; letter-spacing: 4px !important;
        margin-top: 25px !important; display: block !important;
    }
    .wheel-expanded .wheel-shrunk-text { display: none !important; }

    /* The 3D Wheel Construct */
    #interactive-wheel-container .wheel-wrapper {
        perspective: 1000px !important; transform-style: preserve-3d !important;
        position: relative !important; width: 360px !important; height: 360px !important;
        cursor: pointer !important; margin: 0 !important; transition: transform 0.3s !important;
    }
    .interactive-wheel-shrunk .wheel-wrapper:hover { transform: scale(1.05) rotate(5deg) !important; }

#interactive-wheel-container .wheel-disc {
        position: relative !important; width: 100% !important; height: 100% !important; 
        border-radius: 50% !important; border: none !important; 
        box-shadow: 0 20px 50px rgba(0,0,0,0.8), inset 0 0 40px rgba(0,0,0,0.9) !important;
        /* NAUTICAL THEME COLORS */
        background: conic-gradient(from 0deg, 
            #1b263b 0deg 51.4deg,       /* 1. TRY - Deep Navy */
            #b8860b 51.4deg 102.8deg,   /* 2. $5.00 - Antique Gold */
            #2d2d2d 102.8deg 154.2deg,  /* 3. BLANK - Iron Charcoal */
            #8b0000 154.2deg 205.6deg,  /* 4. $10.00 - Pirate Crimson */
            #1b263b 205.6deg 257deg,    /* 5. TRY - Deep Navy */
            #0f5257 257deg 308.4deg,    /* 6. $25.00 - Deep Sea Teal */
            #ffc107 308.4deg 360deg     /* 7. JACKPOT - Bright Treasure Gold */
        ) !important;
        transform-style: preserve-3d !important;
    }

    /* THE SHIP WHEEL OVERLAY (The Magic Trick) */
    #interactive-wheel-container .wheel-disc::after {
        content: '' !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 150% !important; 
        height: 150% !important; 
        background-image: url('/woocasino/images/ship_wheel.png') !important; 
        background-size: contain !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        z-index: 5 !important; 
        pointer-events: none !important;
    }

#interactive-wheel-container .wheel-center-hub {
        position: absolute !important; top: 50% !important; left: 50% !important;
        transform: translate(-50%, -50%) translateZ(40px) !important;
        width: 70px !important; height: 70px !important;
        background: radial-gradient(circle, #facc15 0%, #b45309 80%) !important; /* Brass/Gold */
        border: 4px solid #fff !important; border-radius: 50% !important;
        box-shadow: 0 0 15px rgba(0,0,0,0.8), inset 0 0 10px rgba(0,0,0,0.5) !important; z-index: 100 !important;
    }

    #interactive-wheel-container .wheel-pointer {
        position: absolute !important; 
        top: -50px !important; 
        left: 50% !important; 
        transform: translateX(-50%) !important; z-index: 110 !important; width: 0 !important; height: 0 !important;
        border-left: 25px solid transparent !important;
        border-right: 25px solid transparent !important;
        border-top: 45px solid #fbbf24 !important; /* Gold pointer */
        filter: drop-shadow(0 5px 5px rgba(0,0,0,0.8)) !important;
    }

    #interactive-wheel-container .wheel-label {
        position: absolute !important; top: 50% !important; left: 50% !important;
        width: 90px !important; margin-left: -45px !important; margin-top: -15px !important;
        text-align: center !important; z-index: 10 !important;
        font-weight: 900 !important; font-size: 14px !important;
        text-transform: uppercase !important; color: #fff !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.9), 0 0 10px rgba(0,0,0,0.5) !important;
        pointer-events: none !important;
    }
    #interactive-wheel-container .wheel-label i { font-size: 20px !important; margin-bottom: 4px !important; }
#interactive-wheel-container .wheel-label-jackpot { 
        color: #7f1d1d !important; /* Dark Crimson Text */
        text-shadow: 0 1px 0px rgba(255,255,255,0.4) !important; 
        font-size: 16px !important; 
        font-weight: 900 !important;
    }    
    /* Keep the Static Jackpot Logo in the Bottom Tray */
    .center-jackpot-logo {
        position: fixed !important; bottom: 25px !important; left: 5vw !important;         
        top: auto !important; right: auto !important; transform: none !important;
        width: 140px !important; height: auto !important;
        z-index: 9999 !important; pointer-events: none !important; 
        filter: drop-shadow(0 5px 15px rgba(0,0,0,0.6)) !important;
    }
   /* ========================================== */
    /* 8. SWAP: WHEEL TO CENTER, LOGO TO TRAY     */
    /* ========================================== */

    /* A. Move the Clickable Wheel to Top Center */
    .feature-wheel-btn {
        position: fixed !important; 
        top: 105px !important;        /* CHANGED: Drops the wheel down closer to the game tiles */
        left: 50vw !important;        
        transform: translateX(-50%) !important; 
        
        bottom: auto !important;
        right: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 99999 !important; 
        
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important; 
        border: none !important;
        width: 240px !important;      /* CHANGED: Gives the larger wheel container breathing room */
        height: auto !important;
    }

    .feature-wheel-btn img, 
    .feature-wheel-btn a img {
        display: block !important;
        width: 180px !important;      /* CHANGED: Increased from 130px to 180px for a massive centerpiece */
        max-height: none !important; 
        height: auto !important;
        filter: drop-shadow(0 15px 25px rgba(0,0,0,0.8)) drop-shadow(0 0 15px rgba(255, 215, 0, 0.4)) !important;
        transition: transform 0.3s ease !important;
        margin: 0 auto !important;
    }

    .feature-wheel-btn img:hover, 
    .feature-wheel-btn a img:hover {
        transform: scale(1.1) rotate(15deg) !important;
    }

    .feature-wheel-btn .feature-slot-text {
        position: absolute !important;
        bottom: -30px !important;    /* CHANGED: Dropped slightly more to clear the bigger wheel */
        width: 250px !important;
        text-align: center !important;
        font-family: 'Arial', sans-serif !important;
        font-weight: 900 !important;
        font-size: 18px !important;  /* CHANGED: Bumped up text size to match the bigger icon */
        color: #fff !important;
        text-shadow: 0 4px 6px rgba(0,0,0,0.9), 0 0 15px #d946ef !important;
        text-transform: uppercase !important;
        display: block !important;
        letter-spacing: 2px !important;
    }

    /* B. Move the Static Jackpot Logo to the Bottom Hardware Tray */
    .center-jackpot-logo {
        position: fixed !important;
        bottom: 25px !important;      
        left: 5vw !important;         
        top: auto !important;         
        right: auto !important;
        transform: none !important;
        width: 140px !important;      
        height: auto !important;
        z-index: 9999 !important;
        pointer-events: none !important; 
        filter: drop-shadow(0 5px 15px rgba(0,0,0,0.6)) !important;
    }
	/* ========================================== */
    /* 9. JACKPOT WIN OVERLAY                     */
    /* ========================================== */
/* ========================================== */
    /* 9. JACKPOT WIN OVERLAY                     */
    /* ========================================== */
#fyre-win-overlay {
        position: fixed !important;
        top: 0 !important; left: 0 !important;
        width: 100vw !important; height: 100vh !important;
        background: transparent !important; /* CHANGED: Removes the dark screen tint */
        z-index: 2147483647 !important; 
        display: flex !important; 
        align-items: center !important;
        justify-content: center !important;
        backdrop-filter: none !important; /* CHANGED: Removes the background blur */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }
    
    #fyre-win-overlay.show-win {
        opacity: 1;
        visibility: visible;
    }

#fyre-win-box {
        text-align: center !important;
        z-index: 1000001 !important;
        transform: scale(0.8);
        background: transparent !important; 
        border: none !important; 
        box-shadow: none !important; 
        padding: 0 !important;
        animation: fyrePopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    @keyframes fyrePopIn { to { transform: scale(1); } }

    .fyre-win-title {
        position: relative; font-size: 90px !important; font-weight: 900 !important; text-transform: uppercase !important; color: transparent !important; text-shadow: 0px 1px 0px #b3b3b3, 0px 5px 0px #808080, 0px 0px 20px #d946ef !important; margin: 0 0 10px 0 !important;
    }
    .fyre-win-title::before { 
        content: attr(data-text); position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 2; background: linear-gradient(to bottom, #ffffff 0%, #9ca3af 50%, #111827 51%, #d1d5db 100%) !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; 
    }

    #fyre-win-amount {
        color: #22d3ee !important;
        font-size: 110px !important;
        font-weight: 900 !important;
        text-shadow: 0 0 40px rgba(34, 211, 238, 0.8), 0 0 15px #fff !important;
        margin-top: -15px !important;
        line-height: 1 !important;
    }

    #fyre-coin-rain {
        position: absolute !important;
        top: 0 !important; left: 0 !important;
        width: 100% !important; height: 100% !important;
        pointer-events: none !important;
        z-index: 1000002 !important;
    }
/* ========================================== */
    /* 10. COIN PARTICLE PHYSICS & REALISM        */
    /* ========================================== */
    .coin-particle { 
        position: fixed !important; 
        width: 60px !important;  /* CHANGED: Much bigger coins! */
        height: 60px !important; 
        /* CHANGED: Metallic radial shine instead of flat linear */
        background: radial-gradient(circle at 30% 30%, #fff 0%, #ffd700 20%, #daa520 60%, #b8860b 100%) !important; 
        border-radius: 50% !important; 
        border: 2px solid #ffdf00 !important; 
        box-shadow: 
            inset 0 0 10px rgba(184, 134, 11, 0.9), 
            0 10px 20px rgba(0,0,0,0.6) !important; /* Heavy drop shadow for 3D depth */
        z-index: 2147483647 !important; 
        pointer-events: none !important; 
    }
    
    /* NEW: Engraved Inner Coin Ring and Dollar Sign */
    .coin-particle::after {
        content: '$' !important;
        position: absolute !important;
        top: 50% !important; left: 50% !important;
        transform: translate(-50%, -50%) !important;
        color: #b8860b !important; /* Dark gold text */
        font-weight: 900 !important;
        font-family: 'Arial', sans-serif !important;
        font-size: 26px !important;
        text-shadow: 1px 1px 0px #fff8dc, -1px -1px 0px #8b6508 !important; /* Engraved effect */
        border: 2px dotted #daa520 !important; /* Inner rim */
        border-radius: 50% !important;
        width: 75% !important;
        height: 75% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
/* ========================================== */
    /* 11. ATTRACT MODE BUBBLES                   */
    /* ========================================== */
    .kiosk-bubbles-wrap {
        position: fixed;
        top: 0; left: 0;
        width: 100vw; height: 100vh;
        z-index: 1; /* Puts them behind the game tiles, but over the background */
        pointer-events: none;
        overflow: hidden;
    }

    .kiosk-bubble {
        position: absolute;
        bottom: -60px;
        border-radius: 50%;
        /* Creates a realistic 3D glass/water reflection */
        background: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
        border: 1px solid rgba(255,255,255,0.2);
        box-shadow: inset 0 0 10px rgba(255,255,255,0.1);
        animation: floatUp infinite ease-in;
        opacity: 0;
    }

    /* The Wobble and Rise Animation */
    @keyframes floatUp {
        0% { transform: translateY(0) translateX(0px) scale(0.8); opacity: 0; }
        10% { opacity: 0.8; } /* Fade in smoothly */
        33% { transform: translateY(-30vh) translateX(20px) scale(1); } /* Wobble right */
        66% { transform: translateY(-70vh) translateX(-15px) scale(1.1); } /* Wobble left */
        90% { opacity: 0.8; }
        100% { transform: translateY(-120vh) translateX(10px) scale(1.2); opacity: 0; } /* Pop above screen */
    }

 /* Randomizing the 24 bubbles (Position, Size, Speed, Delay) */
    .b1 { left: 10%; width: 40px; height: 40px; animation-duration: 9s;  animation-delay: 0s; }
    .b2 { left: 25%; width: 25px; height: 25px; animation-duration: 12s; animation-delay: 3s; }
    .b3 { left: 40%; width: 50px; height: 50px; animation-duration: 8s;  animation-delay: 1s; }
    .b4 { left: 55%; width: 20px; height: 20px; animation-duration: 14s; animation-delay: 5s; }
    .b5 { left: 70%; width: 35px; height: 35px; animation-duration: 10s; animation-delay: 2s; }
    .b6 { left: 85%; width: 45px; height: 45px; animation-duration: 11s; animation-delay: 6s; }
    .b7 { left: 15%; width: 20px; height: 20px; animation-duration: 13s; animation-delay: 8s; }
    .b8 { left: 35%; width: 30px; height: 30px; animation-duration: 9s;  animation-delay: 4s; }
    .b9 { left: 50%; width: 40px; height: 40px; animation-duration: 11s; animation-delay: 7s; }
    .b10{ left: 65%; width: 15px; height: 15px; animation-duration: 15s; animation-delay: 0.5s; }
    .b11{ left: 80%; width: 35px; height: 35px; animation-duration: 10s; animation-delay: 9s; }
    .b12{ left: 95%; width: 25px; height: 25px; animation-duration: 12s; animation-delay: 2.5s; }
    /* The New Batch */
    .b13{ left: 5%;  width: 22px; height: 22px; animation-duration: 11s; animation-delay: 1.5s; }
    .b14{ left: 18%; width: 38px; height: 38px; animation-duration: 14s; animation-delay: 4.5s; }
    .b15{ left: 32%; width: 18px; height: 18px; animation-duration: 9s;  animation-delay: 6.5s; }
    .b16{ left: 45%; width: 42px; height: 42px; animation-duration: 13s; animation-delay: 2.2s; }
    .b17{ left: 58%; width: 28px; height: 28px; animation-duration: 10s; animation-delay: 8.5s; }
    .b18{ left: 72%; width: 32px; height: 32px; animation-duration: 12s; animation-delay: 0.8s; }
    .b19{ left: 88%; width: 48px; height: 48px; animation-duration: 15s; animation-delay: 5.5s; }
    .b20{ left: 92%; width: 20px; height: 20px; animation-duration: 8s;  animation-delay: 3.5s; }
    .b21{ left: 22%; width: 55px; height: 55px; animation-duration: 16s; animation-delay: 7.2s; }
    .b22{ left: 48%; width: 15px; height: 15px; animation-duration: 11s; animation-delay: 9.5s; }
    .b23{ left: 68%; width: 26px; height: 26px; animation-duration: 13s; animation-delay: 4.8s; }
    .b24{ left: 82%; width: 36px; height: 36px; animation-duration: 10s; animation-delay: 1.2s; }
	/* =========================================
   PIRATE GOLD WIN TEXT (HARDWARE ACCELERATED)
   ========================================= */

/* =========================================
   PIRATE GOLD WIN TEXT (HARDWARE ACCELERATED)
   ========================================= */

.fyre-win-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 6rem;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 10px 0;
    display: inline-block; 
    
    /* Shiny Gold Gradient Fill */
    background: linear-gradient(to bottom, #ffdf00 0%, #d4af37 40%, #996515 50%, #d4af37 60%, #fff8dc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Chunky 3D Drop Shadow Extrusion */
    filter: drop-shadow(2px 2px 0px #4a2e00) 
            drop-shadow(4px 4px 0px #241600) 
            drop-shadow(0px 10px 15px rgba(0,0,0,0.9));
            
    /* NEW: Chaotic Zoom & Shake Animation */
    animation: bigWinShake 1.2s infinite; 
}

/* Zero-CPU Hardware Accelerated Animation */
@keyframes bigWinShake {
    0% { transform: scale(1) rotate(0deg); }
    
    /* The deep zoom out */
    15% { transform: scale(0.7) rotate(-2deg); } 
    
    /* The explosive pop-in and violent shake */
    30% { transform: scale(1.25) rotate(4deg); }  
    40% { transform: scale(1.25) rotate(-4deg); } 
    50% { transform: scale(1.25) rotate(4deg); }
    60% { transform: scale(1.25) rotate(-4deg); }
    70% { transform: scale(1.25) rotate(4deg); }
    80% { transform: scale(1.25) rotate(-2deg); }
    
    /* Settle back to normal */
    100% { transform: scale(1) rotate(0deg); }
}

    /* ========================================== */
    /* ATTRACT MODE VIDEO (GUESTS ONLY)           */
    /* ========================================== */
    #attract-video-container {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.8);
        z-index: 999000;
        display: none;
        opacity: 0;
        pointer-events: none; 
        transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
        
        /* THE FIX: Apply the blend mode to the hardware layer itself */

    }

    #attract-video-container.show-attract {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

#attract-canvas {
        max-width: 80vw;
        max-height: 80vh;
        filter: drop-shadow(0 20px 40px rgba(0,0,0,0.9)) drop-shadow(0 0 20px rgba(217, 70, 239, 0.3));
        border-radius: 15px; 
        outline: none;
    }
	/* ========================================== */
    /* CASCADING JACKPOT SPARKLES                 */
    /* ========================================== */
    .jackpot-sparkle {
        position: absolute;
        top: 8px;   /* Adjust this to hit the top-right metal rim perfectly */
        right: 18px; 
        width: 15px;
        height: 15px;
        z-index: 20;
        pointer-events: none; /* Prevents blocking clicks */
        opacity: 0;
    }

    /* Creating the 4-point star shape */
    .jackpot-sparkle::before,
    .jackpot-sparkle::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #fff;
        border-radius: 50%;
        box-shadow: 0 0 6px #fff, 0 0 12px #ffdf00; /* White core, gold glow */
    }

    /* Horizontal line of the star */
    .jackpot-sparkle::before { width: 100%; height: 2px; }
    /* Vertical line of the star */
    .jackpot-sparkle::after { width: 2px; height: 100%; }

    /* The Flash Animation (Spins, scales up, then vanishes) */
    @keyframes rimSparkle {
        0%   { opacity: 0; transform: scale(0) rotate(0deg); }
        4%   { opacity: 1; transform: scale(1.5) rotate(45deg); } /* The flash */
        8%   { opacity: 0; transform: scale(0) rotate(90deg); }
        100% { opacity: 0; transform: scale(0) rotate(90deg); } /* Wait for the 10s loop */
    }

    /* THE CASCADE: Offsets the start time for each jackpot */
    .porthole-jackpot-entry:nth-child(1) .jackpot-sparkle { animation: rimSparkle 10s infinite 0s; }
    .porthole-jackpot-entry:nth-child(2) .jackpot-sparkle { animation: rimSparkle 10s infinite 0.4s; }
    .porthole-jackpot-entry:nth-child(3) .jackpot-sparkle { animation: rimSparkle 10s infinite 0.8s; }
    .porthole-jackpot-entry:nth-child(4) .jackpot-sparkle { animation: rimSparkle 10s infinite 1.2s; }


</style>