/* File: /public/css/games/wheel.css */
/* ==========================================================================
   WHITE-LABEL WONDERWHEEL - WHEEL GAME STYLES
   Game-specific styles only - base styles handled by core CSS
   v16.1.0 - Style: layered texture background on wheel-container (diamond crosshatch + radial glow)
           - Fix: hide ::after vignette in immersive modes (caused ghost circle behind wheel on mobile)
   v16.0.0 - Cleanup: removed 578 lines of dead code (snowfall, particles, Christmas, legacy chat, duplicate trivia/KPI cards)
   v15.6.0 - Style: transparent bg + gradient border on wheel container, removed rotateRays
   v15.5.1 - Fix: mobile raffle stat alignment (label/value stacking)
   v15.5.0 - Count selector: CSS grid layout (multiplier spans rows left, name+cost stack right) matching old wryon.css style
   v15.4.0 - Count selector: vertical stacked list layout
   v15.2.0 - Mobile UX overhaul (smaller wheel, tap-to-expand, compact UI)
   
   CHANGES IN v16.0.0 (Dead code cleanup — 578 lines removed):
   - REMOVED: KPI cards (.summary-cards, .card) — replaced by status-bar.css
   - REMOVED: .wheel-particles, .wheel-particle — no JS/HTML creates these
   - REMOVED: .wheel-glow — no JS/HTML creates this
   - REMOVED: .wheel-container-border — no JS/HTML creates this
   - REMOVED: Spin Legend (§6e DEPRECATED) — display:none, unused
   - REMOVED: Snowfall/snowflakes — Christmas leftover, ambient-effects.js handles effects now
   - REMOVED: .particles/.particle (old) — replaced by .ambient-particle in ambient-effects.css
   - REMOVED: Christmas Decorations (§9) — all display:none, seasonal feature fully removed
   - REMOVED: Legacy Chat Styles (§11) — old chat replaced by shared-chat component
   - REMOVED: Duplicate trivia styles — now in trivia.css component file
   - TODO (Stage 2): Extract AI Chat Panel (~300 lines) → shared-chat.css
   - TODO (Stage 2): Extract Buy Spins Modal (~208 lines) → modal.css
   - TODO (Stage 2): Consolidate 4 duplicate @media (max-width: 768px) blocks
   
   CHANGES IN v15.2.0:
   - MOBILE: 25% smaller wheel to ensure SPIN button is visible
   - MOBILE: Tap wheel to expand to full-screen view (tap again to close)
   - MOBILE: Compact dropdown for spin type selection
   - MOBILE: Hide KPI cards (redundant with stats bar)
   - MOBILE: Added Raffle Tickets to stats bar
   - MOBILE: Spins stat clickable to open Buy Spins modal
   - MOBILE: "Tap to enlarge" / "Tap to close" hints
   - Consolidated all mobile patches into single section
   
   CHANGES IN v15.1.0:
   - REMOVED: Batch modal styles (lines 3154-3381) - these now live in modal.css
   - Fixes duplicate/conflicting styles that caused oversized cards
   - modal.css now has single source of truth for batch results styling
   
   CHANGES IN v15.0.0:
   - Removed variable aliases (now in css/core/variables.css)
   - Removed global reset (now in css/core/base.css)
   - Removed body styles & background (now in css/core/base.css)
   - Reduced from 3,152 to 3,058 lines (-94 lines)
   - File now contains ONLY wheel-specific styles
   
   CHANGES IN v14.0.0:
   - Replaced hardcoded background url with var(--asset-background)
   - Replaced all font-family: 'Cinzel' with var(--font-display)
   - Replaced font-family: 'Helvetica Neue' with var(--font-body)
   - Removed @import for Cinzel (themes handle font imports)
   
   DEPENDENCIES (load in this order):
   1. css/core/variables.css    - Theme variables + legacy aliases
   2. css/core/base.css         - Global reset, body, background
   3. css/core/animations.css   - Shared keyframes
   4. css/components/modal.css  - ALL modal styles including batch results
   5. css/components/*.css      - Header, chat, other components
   6. css/games/wheel.css       - THIS FILE (wheel-specific only)
   7. css/themes/[client].css   - Brand overrides (colors, fonts, assets)
   
   WHITE-LABEL:
   - All colors via CSS variables (--brand-primary, etc.)
   - All fonts via CSS variables (--font-display, --font-body)
   - All assets via CSS variables (--asset-background, etc.)
   - Switch themes by changing one <link> tag
   ========================================================================== */


/* ==========================================================================
   1. APP WRAPPER - FULL VIEWPORT LAYOUT
   ========================================================================== */
.app-wrapper {
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 15px;
    padding-right: 15px; /* Reduced - chat will overlap */
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.container {
    max-width: 1100px; /* Wider container */
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ==========================================================================
   2. PAGE HEADER - COMPACT
   ========================================================================== */
.page-header { 
    text-align: center; 
    padding: 10px 0 15px;
    flex-shrink: 0;
    position: relative; /* For sound toggle positioning */
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(135deg, var(--wryon-green) 0%, #fff 50%, var(--greek-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(var(--brand-primary-rgb),0.4);
    letter-spacing: -1px;
}

.page-subtitle {
    font-size: clamp(0.7rem, 2vw, 1rem);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0.8;
}

/* Title Icons - Dancing Wryon */
.title-icon {
    width: clamp(40px, 6vw, 60px);
    height: auto;
    vertical-align: middle;
    filter: drop-shadow(0 0 10px rgba(var(--brand-primary-rgb), 0.5));
    animation: iconDance 1.5s ease-in-out infinite;
}

.title-icon-left {
    margin-right: 10px;
    animation-name: iconDanceLeft;
}

.title-icon-right {
    margin-left: 10px;
    animation-name: iconDanceRight;
    animation-delay: 0.75s;
}

@keyframes iconDanceLeft {
    0%, 100% {
        transform: translateY(0) rotate(-5deg) scale(1);
    }
    25% {
        transform: translateY(-8px) rotate(5deg) scale(1.1);
    }
    50% {
        transform: translateY(0) rotate(-3deg) scale(1);
    }
    75% {
        transform: translateY(-4px) rotate(8deg) scale(1.05);
    }
}

@keyframes iconDanceRight {
    0%, 100% {
        transform: translateY(0) rotate(5deg) scale(1);
    }
    25% {
        transform: translateY(-8px) rotate(-5deg) scale(1.1);
    }
    50% {
        transform: translateY(0) rotate(3deg) scale(1);
    }
    75% {
        transform: translateY(-4px) rotate(-8deg) scale(1.05);
    }
}

/* Hover effect - dance faster */
.title-icon:hover {
    animation-duration: 0.5s;
    filter: drop-shadow(0 0 20px rgba(var(--brand-primary-rgb), 0.8));
}

/* 6. WONDERWHEEL STAGE - FLEXIBLE */
.wheel-container {
    background: 
        /* Layer 1: Soft radial glow from center — draws eye to wheel */
        radial-gradient(
            ellipse 60% 50% at 50% 45%,
            rgba(var(--brand-primary-rgb), 0.10) 0%,
            transparent 70%
        ),
        /* Layer 2: Diamond crosshatch pattern — subtle felt/gaming-table texture */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 18px,
            rgba(255, 255, 255, 0.015) 18px,
            rgba(255, 255, 255, 0.015) 19px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 18px,
            rgba(255, 255, 255, 0.015) 18px,
            rgba(255, 255, 255, 0.015) 19px
        ),
        /* Layer 3: Vertical gradient — darker at top/bottom, lighter center band */
        linear-gradient(
            180deg,
            rgba(5, 15, 5, 0.55) 0%,
            rgba(10, 25, 10, 0.30) 40%,
            rgba(10, 25, 10, 0.30) 60%,
            rgba(5, 15, 5, 0.55) 100%
        );
    border: none;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column; /* Vertical layout: info bar, wheel, buttons */
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-premium), var(--shadow-glow-green);
    flex: 0 1 auto; /* Don't grow, can shrink, auto basis */
    max-height: calc(100vh - 200px); /* Ensure it fits on screen with header/cards */
    overflow: visible;
    max-width: 800px; /* Narrower now without side legend */
    margin: 0 auto;
    width: 100%;
}

/* Inner wrapper for wheel and buttons */
.wheel-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Gradient border overlay */
.wheel-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    border: 3px solid transparent;
    background: linear-gradient(135deg,
        rgba(var(--brand-primary-rgb), 0.55),
        rgba(var(--brand-secondary-rgb), 0.3),
        rgba(var(--brand-primary-rgb), 0.2)) border-box;
    -webkit-mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
}

/* Vignette effect - darker edges */
.wheel-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 30%,
        rgba(0, 0, 0, 0.3) 70%,
        rgba(0, 0, 0, 0.6) 100%
    );
    pointer-events: none;
    z-index: 1;
    border-radius: 20px;
}

/* Corner decorations container */
.wheel-container-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Greek corner ornaments */
.corner-decoration {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0.4;
    z-index: 3;
    pointer-events: none;
}

.corner-decoration::before,
.corner-decoration::after {
    content: '';
    position: absolute;
    background: var(--greek-gold);
}

.corner-tl { top: 15px; left: 15px; }
.corner-tr { top: 15px; right: 15px; transform: scaleX(-1); }
.corner-bl { bottom: 15px; left: 15px; transform: scaleY(-1); }
.corner-br { bottom: 15px; right: 15px; transform: scale(-1, -1); }

.corner-decoration::before {
    width: 100%;
    height: 2px;
    top: 0;
    left: 0;
    box-shadow: 0 0 10px var(--greek-gold);
}

.corner-decoration::after {
    width: 2px;
    height: 100%;
    top: 0;
    left: 0;
    box-shadow: 0 0 10px var(--greek-gold);
}

/* Inner corner curl */
.corner-decoration span {
    position: absolute;
    width: 15px;
    height: 15px;
    border: 2px solid var(--greek-gold);
    border-radius: 0 0 100% 0;
    border-top: none;
    border-left: none;
    bottom: 0;
    right: 0;
    box-shadow: 0 0 8px var(--greek-gold);
}

.wheel-canvas-container {
    position: relative;
    width: min(320px, 42vh, 90%);
    height: min(320px, 42vh, 90%);
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.5));
    flex-shrink: 1;
    z-index: 5; /* Above the decorative elements */
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    border: 4px solid var(--brand-primary);
    transition: transform 3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#wheel-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid var(--brand-primary);
    transition: transform 3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wheel-pointer {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid var(--brand-primary);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.8));
    z-index: 10;
}

.spin-controls {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
    z-index: 5; /* Above decorative elements */
    position: relative;
    justify-content: center;
    flex-shrink: 0;
}

/* ==========================================================================
   6b. SPIN TYPE SELECTOR - Desktop sidebar for choosing spin mode
   ========================================================================== */

.wheel-main {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.wheel-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Desktop: Spin Type Selector Panel */
.spin-type-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(var(--brand-secondary-rgb), 0.3);
    border-radius: 12px;
    min-width: 140px;
    z-index: 5;
    overflow: hidden;
}

.selector-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: rgba(var(--brand-secondary-rgb), 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(var(--brand-secondary-rgb), 0.2);
    padding-bottom: 8px;
}

.selector-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(100, 100, 100, 0.4);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-display);
}

.selector-option:hover {
    background: rgba(var(--brand-secondary-rgb), 0.1);
    border-color: rgba(var(--brand-secondary-rgb), 0.5);
}

.selector-option.active {
    background: rgba(var(--brand-secondary-rgb), 0.2);
    border-color: var(--brand-secondary);
    box-shadow: 0 0 10px rgba(var(--brand-secondary-rgb), 0.3);
}

.option-icon {
    font-size: 1.2rem;
}

.option-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.selector-option.active .option-name {
    color: var(--brand-secondary);
}

.option-cost {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: lowercase;
}

.selector-info-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 12px;
    margin-top: 5px;
    background: transparent;
    border: 1px solid rgba(var(--brand-primary-rgb), 0.4);
    border-radius: 6px;
    color: var(--wryon-green);
    font-family: var(--font-display);
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.selector-info-btn:hover {
    background: rgba(var(--brand-primary-rgb), 0.15);
    box-shadow: 0 0 8px rgba(var(--brand-primary-rgb), 0.2);
}

/* ==========================================================================
   6c. MOBILE DROPDOWN SELECTOR - Compact spin type chooser
   ========================================================================== */

.spin-type-dropdown-container {
    display: none; /* Hidden on desktop */
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 8px;
    z-index: 5;
}

.spin-type-dropdown {
    flex: 1;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(var(--brand-secondary-rgb), 0.5);
    border-radius: 8px;
    color: var(--brand-secondary);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4af37' d='M2 4l4 4 4-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.spin-type-dropdown:focus {
    outline: none;
    border-color: var(--brand-secondary);
    box-shadow: 0 0 10px rgba(var(--brand-secondary-rgb), 0.3);
}

.spin-type-dropdown option {
    background: #1a1a1a;
    color: var(--brand-secondary);
    padding: 10px;
}

.dropdown-info-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(var(--brand-primary-rgb), 0.5);
    border-radius: 8px;
    color: var(--wryon-green);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-info-btn:hover {
    background: rgba(var(--brand-primary-rgb), 0.15);
    box-shadow: 0 0 8px rgba(var(--brand-primary-rgb), 0.3);
}

/* ==========================================================================
   6d. MAIN SPIN BUTTONS - Gold casino-style buttons
   ========================================================================== */

.spin-buttons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    z-index: 5;
    position: relative;
    justify-content: center;
    flex-shrink: 0;
}

.main-spin-btn {
    padding: 14px 50px;
    background: linear-gradient(180deg, #3a3a3a 0%, #1a1a1a 50%, #0a0a0a 100%);
    border: 3px solid var(--brand-secondary);
    border-radius: 8px;
    color: var(--brand-secondary);
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(var(--brand-secondary-rgb), 0.2);
}

.main-spin-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--brand-secondary-rgb), 0.2), transparent);
    transition: left 0.5s ease;
}

.main-spin-btn:hover:not(:disabled)::before {
    left: 100%;
}

.main-spin-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 30px rgba(var(--brand-secondary-rgb), 0.4);
    border-color: #ffd700;
    color: #ffd700;
}

.main-spin-btn:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.5),
        inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.main-spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.free-spin-btn {
    padding: 14px 35px;
    background: linear-gradient(180deg, #2a4a2a 0%, #1a3a1a 50%, #0a2a0a 100%);
    border: 3px solid var(--wryon-green);
    border-radius: 8px;
    color: var(--wryon-green);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(var(--brand-primary-rgb), 0.2);
    animation: freeSpinPulse 2s ease-in-out infinite;
}

@keyframes freeSpinPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(var(--brand-primary-rgb), 0.2); }
    50% { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 30px rgba(var(--brand-primary-rgb), 0.5); }
}

.free-spin-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 35px rgba(var(--brand-primary-rgb), 0.5);
}

.free-spin-btn:active:not(:disabled) {
    transform: translateY(1px);
}

.free-spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.5);
    animation: none;
}

/* Keep old button styles for backward compatibility */
.spin-btn {
    padding: 6px 14px;
    border: none;
    border-radius: 20px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.65rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 85px;
    position: relative;
    overflow: hidden;
}

.btn-standard {
    background: rgba(205, 127, 50, 0.15);
    color: #cd7f32;
    border: 1px solid #cd7f32;
}

.btn-premium {
    background: rgba(var(--brand-primary-rgb), 0.15);
    color: var(--wryon-green);
    border: 1px solid var(--wryon-green);
}

.btn-jackpot {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    border: 1px solid #ffd700;
}

.btn-free {
    background: rgba(var(--brand-secondary-rgb), 0.2);
    color: var(--brand-secondary);
    border: 1px solid var(--brand-secondary);
}

.btn-info {
    background: rgba(var(--brand-primary-rgb), 0.1);
    color: var(--wryon-green);
    border: 1px solid rgba(var(--brand-primary-rgb), 0.5);
}

/* ==========================================================================
   6c. SPIN INFO BAR - Compact spin count + info button (ALL DEVICES)
   ========================================================================== */

.spin-info-bar {
    display: flex; /* Show on all devices */
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(var(--brand-primary-rgb), 0.2);
    border-radius: 10px;
    margin-bottom: 12px;
}

.spin-info-bar-balance {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.spin-info-bar-count {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--wryon-green);
}

.spin-info-bar-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.spin-info-bar-free {
    font-size: 0.75rem;
    color: var(--brand-secondary);
    font-weight: 600;
}

.spin-info-btn {
    background: linear-gradient(135deg, rgba(var(--brand-primary-rgb), 0.2), rgba(var(--brand-primary-rgb), 0.1));
    border: 1px solid var(--wryon-green);
    color: var(--wryon-green);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.spin-info-btn:hover {
    background: linear-gradient(135deg, rgba(var(--brand-primary-rgb), 0.3), rgba(var(--brand-primary-rgb), 0.2));
    box-shadow: 0 0 10px rgba(var(--brand-primary-rgb), 0.3);
}

/* ==========================================================================
   6d. SPIN INFO MODAL - Detailed spin type explanations
   ========================================================================== */

.spin-info-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.spin-info-modal {
    background: linear-gradient(145deg, rgba(20, 30, 20, 0.98), rgba(10, 15, 10, 0.98));
    border: 2px solid var(--wryon-green);
    border-radius: 16px;
    max-width: 400px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 40px rgba(var(--brand-primary-rgb), 0.3);
    animation: slideUp 0.3s ease;
}

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

.spin-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(var(--brand-primary-rgb), 0.2);
}

.spin-info-header h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--wryon-green);
    margin: 0;
}

.spin-info-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.spin-info-close:hover {
    color: var(--wryon-green);
    background: rgba(var(--brand-primary-rgb), 0.1);
}

.spin-info-content {
    padding: 16px 20px;
}

.spin-info-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border-left: 4px solid transparent;
}

.spin-info-item.spin-info-standard {
    border-left-color: #cd7f32;
}

.spin-info-item.spin-info-premium {
    border-left-color: var(--wryon-green);
}

.spin-info-item.spin-info-jackpot {
    border-left-color: #ffd700;
}

.spin-info-item.spin-info-free {
    border-left-color: var(--brand-secondary);
    background: rgba(var(--brand-secondary-rgb), 0.1);
}

.spin-info-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.spin-info-details {
    flex: 1;
}

.spin-info-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.spin-info-cost {
    font-size: 0.8rem;
    color: var(--wryon-green);
    font-weight: 600;
    margin-bottom: 6px;
}

.spin-info-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.spin-info-balance {
    padding: 14px 20px;
    border-top: 1px solid rgba(var(--brand-primary-rgb), 0.2);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.spin-info-spins {
    color: var(--wryon-green);
    font-weight: 700;
    font-size: 1.1rem;
}

.spin-info-free-count {
    color: var(--brand-secondary);
    font-weight: 700;
}

/* ==========================================================================
   WHEEL STATS BAR - Matches minesweeper/tower-stack style
   ========================================================================== */

.wheel-stats {
    margin-bottom: 15px;
    z-index: 10;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 440px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(15,35,15,0.95), rgba(10,25,10,0.98));
    border: 1px solid rgba(var(--brand-primary-rgb),0.4);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}



.wheel-stat {
    text-align: center;
}

.wheel-stat-label {
    font-size: 0.6rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wheel-stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wryon-green);
    text-shadow: 0 0 10px rgba(var(--brand-primary-rgb),0.5);
}

.wheel-stat-value.gold {
    color: var(--greek-gold);
    text-shadow: 0 0 10px rgba(var(--brand-secondary-rgb),0.5);
}

.wheel-stat-value.red {
    color: var(--christmas-red);
    text-shadow: 0 0 10px rgba(196,30,58,0.5);
}

@media (max-width: 768px) {
    .wheel-stats {
        max-width: 100%;
        padding: 10px 16px;
        border-radius: 8px;
        gap: 12px;
        margin-bottom: 10px;
    }
    
    .wheel-stat-value {
        font-size: 1.2rem;
    }
    
    .wheel-stat-label {
        font-size: 0.55rem;
    }
}

/* ==========================================================================
   7. WRYON AI CHAT PANEL - Fixed Popup (Kapi-style, Green Theme)
   ========================================================================== */

.ai-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    background: var(--gradient-card);
    border-radius: 16px;
    padding: 0;
    border: 1px solid rgba(var(--brand-primary-rgb), 0.4);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(var(--brand-primary-rgb), 0.25),
        0 0 60px rgba(var(--brand-primary-rgb), 0.15),
        0 0 100px rgba(var(--brand-primary-rgb), 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: panelFloat 4s ease-in-out infinite;
}

/* Floating animation for the chat panel */
@keyframes panelFloat {
    0%, 100% { 
        transform: translateY(0);
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.6),
            0 0 30px rgba(var(--brand-primary-rgb), 0.25),
            0 0 60px rgba(var(--brand-primary-rgb), 0.15),
            0 0 100px rgba(var(--brand-primary-rgb), 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }
    50% { 
        transform: translateY(-4px);
        box-shadow: 
            0 12px 40px rgba(0, 0, 0, 0.6),
            0 0 40px rgba(var(--brand-primary-rgb), 0.35),
            0 0 80px rgba(var(--brand-primary-rgb), 0.2),
            0 0 120px rgba(var(--brand-primary-rgb), 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
}

/* Desktop: Position chat flush with bottom, wider */
@media (min-width: 1025px) {
    .ai-panel {
        right: 30px;
        bottom: 20px; /* Flush with bottom */
        width: 420px;
    }

    .ai-panel.expanded {
        max-height: calc(100vh - 40px);
        max-height: calc(100dvh - 40px);
    }
}

.ai-panel.collapsed {
    height: auto;
}

.ai-panel.expanded {
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
}

/* AI Header */
.ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.ai-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--wryon-green);
    letter-spacing: 0.5px;
}

.ai-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--gradient-card);
    padding: 3px;
    border: 2px solid var(--wryon-green);
    box-shadow: 0 0 15px rgba(var(--brand-primary-rgb), 0.3);
}

.ai-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ai-toggle {
    background: rgba(var(--brand-primary-rgb), 0.15);
    border: 1px solid rgba(var(--brand-primary-rgb), 0.3);
    color: var(--wryon-green);
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ai-toggle:hover {
    background: rgba(var(--brand-primary-rgb), 0.25);
}

.ai-toggle.expanded {
    background: rgba(var(--brand-primary-rgb), 0.3);
}

/* AI Body */
.ai-body {
    padding: 12px 16px 16px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 120px);
    max-height: calc(100dvh - 120px);
}

.ai-chat-container {
    min-height: 80px;
    max-height: 500px; /* Increased from 350px per IMPLEMENTATION_GUIDE */
    overflow-y: auto;
    margin-bottom: 12px;
    padding-right: 6px;
    flex: 1;
}

.ai-chat-container::-webkit-scrollbar {
    width: 5px;
}

.ai-chat-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.ai-chat-container::-webkit-scrollbar-thumb {
    background: rgba(var(--brand-primary-rgb), 0.3);
    border-radius: 3px;
}

/* AI Messages */
.ai-message {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-message-avatar {
    width: 75px;
    height: 75px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gradient-card);
    padding: 4px;
    border: 2px solid var(--wryon-green);
    box-shadow: 0 0 15px rgba(var(--brand-primary-rgb), 0.3);
}

.ai-message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ai-message-content {
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Formatted AI Response Styles */
.ai-message-content strong {
    color: var(--wryon-green);
    font-weight: 600;
}

.ai-message-content ul,
.ai-message-content ol {
    margin: 6px 0;
    padding-left: 18px;
}

.ai-message-content li {
    margin-bottom: 4px;
}

.ai-message-content p {
    margin-bottom: 6px;
}

.ai-message-content p:last-child {
    margin-bottom: 0;
}

.ai-message.user {
    flex-direction: row-reverse;
}

.ai-message.user .ai-message-content {
    background: rgba(255, 255, 255, 0.08);
    text-align: right;
}

.ai-message.user .ai-message-avatar {
    display: none;
}

.ai-message.assistant .ai-message-content {
    background: rgba(var(--brand-primary-rgb), 0.1);
    border: 1px solid rgba(var(--brand-primary-rgb), 0.15);
    position: relative;
}

/* Speech bubble pointer for assistant messages */
.ai-message.assistant .ai-message-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 18px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 10px solid rgba(var(--brand-primary-rgb), 0.15);
}

.ai-message.assistant .ai-message-content::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 19px;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 9px solid rgba(var(--brand-primary-rgb), 0.1);
}

.ai-message.loading .ai-message-content {
    color: var(--text-secondary);
}

/* AI Suggestions */
.ai-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.ai-suggestion {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.3s;
}

.ai-suggestion:hover {
    background: rgba(var(--brand-primary-rgb), 0.15);
    border-color: rgba(var(--brand-primary-rgb), 0.3);
    color: var(--text-primary);
}

/* ==========================================================================
   7B. BUY SPINS MODAL
   ========================================================================== */

.buy-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9500; /* Must be above mobile footer (9000) */
    backdrop-filter: blur(8px);
}

.buy-modal {
    background: linear-gradient(145deg, rgba(10, 40, 10, 0.98), rgba(5, 20, 5, 0.99));
    border: 2px solid var(--wryon-green);
    border-radius: 20px;
    padding: 30px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 0 40px rgba(var(--brand-primary-rgb), 0.3), 0 0 80px rgba(var(--brand-primary-rgb), 0.15);
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.buy-modal h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--wryon-green);
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 0 0 20px rgba(var(--brand-primary-rgb), 0.5);
}

/* Preset Amount Buttons */
.preset-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.preset-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    background: linear-gradient(145deg, rgba(20, 60, 20, 0.8), rgba(10, 30, 10, 0.9));
    border: 1px solid rgba(var(--brand-primary-rgb), 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    border-color: var(--wryon-green);
    background: linear-gradient(145deg, rgba(30, 80, 30, 0.8), rgba(20, 50, 20, 0.9));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--brand-primary-rgb), 0.2);
}

.preset-btn.active {
    border-color: var(--wryon-green);
    background: linear-gradient(145deg, rgba(var(--brand-primary-rgb), 0.2), rgba(30, 100, 30, 0.4));
    box-shadow: 0 0 20px rgba(var(--brand-primary-rgb), 0.3), inset 0 0 10px rgba(var(--brand-primary-rgb), 0.1);
}

.preset-amount {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    display: block;
}

.preset-discount {
    font-size: 0.65rem;
    color: var(--greek-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Amount Selector (+/-) */
.amount-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.amount-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(var(--brand-primary-rgb), 0.5);
    background: linear-gradient(145deg, rgba(20, 60, 20, 0.8), rgba(10, 30, 10, 0.9));
    color: var(--wryon-green);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.amount-btn:hover {
    background: var(--wryon-green);
    color: #000;
    border-color: var(--wryon-green);
    box-shadow: 0 0 15px rgba(var(--brand-primary-rgb), 0.5);
}

.amount-display {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    min-width: 80px;
    text-align: center;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Price Display */
.price-display {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(var(--brand-primary-rgb), 0.2);
}

.price-display > div:first-child {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: #fff;
    font-weight: 600;
}

.discount-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 15px;
    background: linear-gradient(135deg, rgba(var(--brand-secondary-rgb), 0.2), rgba(180, 150, 40, 0.3));
    border: 1px solid var(--greek-gold);
    border-radius: 20px;
    color: var(--greek-gold);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
}

.buy-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.buy-btn.secondary {
    background: rgba(100, 100, 100, 0.3);
    border: 1px solid rgba(150, 150, 150, 0.5);
    color: #aaa;
}

.buy-btn.secondary:hover {
    background: rgba(150, 150, 150, 0.3);
    color: #fff;
}

.buy-btn.primary {
    background: linear-gradient(135deg, var(--wryon-green), var(--wryon-green-dim));
    color: #000;
    box-shadow: 0 4px 15px rgba(var(--brand-primary-rgb), 0.3);
}

.buy-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(var(--brand-primary-rgb), 0.5);
}

.buy-btn.primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   8. ANIMATIONS & EFFECTS
   ========================================================================== */

/* ----- WHEEL EFFECTS ----- */

/* Idle glow pulse on wheel */
.wheel-canvas-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 105%;
    height: 105%;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 45%, rgba(var(--brand-primary-rgb), 0.1) 50%, transparent 55%);
    animation: wheelPulse 3s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

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

/* Wheel spinning state - disable pulse, add intensity */
.wheel-canvas-container.spinning::after {
    animation: wheelSpinGlow 0.5s ease-in-out infinite;
}

@keyframes wheelSpinGlow {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(var(--brand-primary-rgb), 0.3);
        opacity: 0.8;
    }
    50% { 
        box-shadow: 0 0 60px rgba(var(--brand-primary-rgb), 0.6);
        opacity: 1;
    }
}

/* Pointer bounce when not spinning */
.wheel-pointer {
    animation: pointerBounce 2s ease-in-out infinite;
}

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

/* ----- BUTTON EFFECTS ----- */

/* Premium button shimmer effect */
.btn-premium {
    position: relative;
    overflow: hidden;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* Jackpot button sparkle */
.btn-jackpot {
    position: relative;
    overflow: hidden;
}

.btn-jackpot::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        transparent 40%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 60%,
        transparent
    );
    animation: sparkleRotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-jackpot:hover::before {
    opacity: 1;
}

@keyframes sparkleRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button click ripple effect */
.spin-btn {
    position: relative;
    overflow: hidden;
}

.spin-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    opacity: 0;
}

.spin-btn:active::after {
    width: 300px;
    height: 300px;
    opacity: 0;
}

/* ----- CARD EFFECTS ----- */

/* Value glow pulse */
.card-value {
    animation: valuePulse 4s ease-in-out infinite;
}

.card-value.green {
    animation: valuePulseGreen 3s ease-in-out infinite;
}

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

@keyframes valuePulseGreen {
    0%, 100% { 
        text-shadow: 0 0 15px var(--wryon-green);
        filter: brightness(1);
    }
    50% { 
        text-shadow: 0 0 25px var(--wryon-green), 0 0 35px var(--wryon-green);
        filter: brightness(1.3);
    }
}

/* Card hover shine effect */
.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: skewX(-25deg);
    transition: left 0.5s ease;
}

.card:hover::after {
    left: 125%;
}

/* ----- CHAT EFFECTS ----- */

/* Enhanced message entrance */
.ai-message {
    animation: messageSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.ai-message.user {
    animation: messageSlideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes messageSlideInRight {
    0% { 
        opacity: 0;
        transform: translateX(20px) scale(0.95);
    }
    100% { 
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Typing indicator dots */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--wryon-green);
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite;
    opacity: 0.6;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

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

/* Avatar glow effect */
.ai-message-avatar {
    animation: avatarGlow 4s ease-in-out infinite;
}

@keyframes avatarGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(var(--brand-primary-rgb), 0.3); }
    50% { box-shadow: 0 0 25px rgba(var(--brand-primary-rgb), 0.6); }
}

/* ----- WIN CELEBRATION EFFECTS ----- */

/* Screen flash for wins */
.win-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(var(--brand-primary-rgb), 0.4), transparent);
    pointer-events: none;
    z-index: 9999;
    animation: flashBurst 0.6s ease-out forwards;
}

@keyframes flashBurst {
    0% { opacity: 0; transform: scale(0.5); }
    20% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.5); }
}

/* Jackpot special flash */
.jackpot-flash {
    background: radial-gradient(circle, rgba(255, 215, 0, 0.5), rgba(var(--brand-primary-rgb), 0.3), transparent);
    animation: jackpotFlash 1s ease-out forwards;
}

@keyframes jackpotFlash {
    0% { opacity: 0; transform: scale(0.5); }
    10% { opacity: 1; }
    20% { opacity: 0.5; }
    30% { opacity: 1; }
    40% { opacity: 0.5; }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.5); }
}

/* Confetti container */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -20px;
    animation: confettiFall 3s ease-out forwards;
}

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

/* Confetti color variations */
.confetti.green { background: var(--wryon-green); }
.confetti.gold { background: var(--greek-gold); }
.confetti.red { background: var(--christmas-red); }
.confetti.white { background: var(--snow-white); }

/* ----- WALLET BUTTON ----- */
.wallet-btn {
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--wryon-green);
    color: var(--wryon-green);
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-family: var(--font-display);
    margin-top: 12px;
    transition: all 0.3s;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.wallet-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--brand-primary-rgb), 0.2), transparent);
    animation: walletShimmer 2s ease-in-out infinite;
}

@keyframes walletShimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.wallet-btn:hover {
    background: var(--wryon-green);
    color: #000;
    box-shadow: 0 0 20px rgba(var(--brand-primary-rgb), 0.5);
}

/* Disconnect Button */
.disconnect-btn {
    background: rgba(100, 0, 0, 0.4);
    border: 1px solid var(--color-error);
    color: var(--color-error);
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 0.75rem;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.disconnect-btn:hover {
    background: var(--color-error);
    color: #fff;
    box-shadow: 0 0 15px rgba(196, 30, 58, 0.5);
}

/* ----- TITLE EFFECT ----- */
.page-title {
    animation: titleGlow 5s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 10px rgba(var(--brand-primary-rgb), 0.3));
    }
    50% { 
        filter: drop-shadow(0 0 20px rgba(var(--brand-primary-rgb), 0.6)) drop-shadow(0 0 30px rgba(var(--brand-secondary-rgb), 0.3));
    }
}

/* ----- SOUND TOGGLE BUTTON ----- */
.sound-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(var(--brand-primary-rgb), 0.3);
    color: var(--wryon-green);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.sound-toggle:hover {
    background: rgba(var(--brand-primary-rgb), 0.2);
    border-color: var(--wryon-green);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(var(--brand-primary-rgb), 0.4);
}

.sound-toggle:active {
    transform: scale(0.95);
}

@media (max-width: 480px) {
    .sound-toggle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        top: 5px;
        right: 5px;
    }
}

/* ==========================================================================
   10. RESPONSIVE - MOBILE OPTIMIZATION
   v7.5 - FIXED: Chat panel never covers spin buttons
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .app-wrapper {
        padding: 10px;
        /* Add bottom padding to account for collapsed chat header */
        padding-bottom: calc(var(--chat-collapsed-height) + 10px);
    }

    .ai-panel {
        width: 320px;
        right: 15px;
        bottom: 15px;
    }

    .summary-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .card {
        padding: 10px 8px;
    }
    
    .wheel-container {
        gap: 12px;
        padding: 15px;
    }

    .decoration-top-left,
    .decoration-top-right {
        display: none !important;
    }
}

/* Mobile Landscape & Small Tablets */
@media (max-width: 768px) {
    .app-wrapper {
        padding: 8px;
        /* Minimal bottom padding - floating chat button handles its own positioning */
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }

    /* Compact KPI cards - single row */
    .summary-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        margin-bottom: 8px;
    }

    .card {
        padding: 6px 4px;
        border-radius: 8px;
    }

    .card-label {
        font-size: 0.45rem;
        letter-spacing: 0.5px;
        margin-bottom: 3px;
    }

    .card-value {
        font-size: 0.9rem;
    }

    .quick-action {
        font-size: 0.5rem;
        padding: 3px 6px;
        margin-top: 4px;
    }

    .wheel-container {
        padding: 12px;
        border-radius: 14px;
        margin-top: 8px; /* Space between cards and wheel container */
        margin-bottom: 0;
        overflow: visible;
        flex-direction: column; /* Stack vertically on mobile */
        gap: 6px;
        max-height: none; /* Remove max-height constraint on mobile */
    }

    /* Wheel - Large and prominent (15% bigger) */
    .wheel-canvas-container {
        width: min(320px, 52vh, 90%);
        height: min(320px, 52vh, 90%);
    }

    .wheel-pointer {
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
        border-top: 30px solid var(--greek-gold);
        top: -14px;
    }

    .spin-controls {
        gap: 6px;
        margin-top: 8px;
    }

    .spin-btn {
        padding: 8px 12px;
        font-size: 0.65rem;
        min-width: 90px;
    }

    /* NEW: Mobile layout for spin type UI */
    .wheel-main {
        flex-direction: column;
        gap: 10px;
    }

    .spin-type-selector {
        display: none; /* Hidden on mobile, use dropdown instead */
    }

    .spin-type-dropdown-container {
        display: flex; /* Visible on mobile */
        width: 100%;
        max-width: 320px;
    }

    .spin-buttons {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-spin-btn {
        padding: 12px 40px;
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    .free-spin-btn {
        padding: 10px 25px;
        font-size: 0.85rem;
    }

    /* Chat Panel - Mobile: Fixed at bottom, NEVER covers spin buttons */
    .ai-panel {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        animation: none; /* Disable floating animation on mobile */
        transform: none;
    }

    /* Collapsed state - just header visible */
    .ai-panel.collapsed {
        height: auto;
        max-height: none;
    }

    /* Expanded state - limit height to never cover main content */
    .ai-panel.expanded {
        /* Use calc to limit height based on available viewport */
        /* Approximately 35% of viewport so spin buttons stay visible */
        max-height: 35vh;
        max-height: 35dvh;
    }

    .ai-message-avatar {
        width: 50px;
        height: 50px;
    }

    .ai-chat-container {
        /* Reduced max height to fit within the smaller panel */
        max-height: 120px;
    }

    .ai-suggestions {
        display: none;
    }

    .trivia-controls {
        /* Keep trivia visible on mobile - it's more important than suggestions */
        padding: 8px;
    }

    .trivia-choice {
        padding: 10px 12px;
        font-size: 12px;
    }

    .choice-letter {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }

    .trivia-actions {
        flex-direction: row;
        gap: 6px;
    }

    .trivia-hint-btn,
    .trivia-exit-btn {
        padding: 8px 12px;
        font-size: 11px;
    }

    .decoration-bottom-left {
        display: none !important;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .page-header {
        padding: 4px 0 6px;
    }

    .page-title {
        font-size: 1.4rem;
    }

    .page-subtitle {
        font-size: 0.55rem;
        letter-spacing: 2px;
    }

    /* Ultra-compact KPI cards */
    .summary-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
        margin-bottom: 6px;
    }

    .card {
        padding: 5px 3px;
        border-radius: 6px;
    }

    .card-label {
        font-size: 0.4rem;
        margin-bottom: 2px;
        letter-spacing: 0;
    }

    .card-value {
        font-size: 0.8rem;
    }

    .quick-action {
        font-size: 0.45rem;
        padding: 2px 5px;
        margin-top: 3px;
    }

    .wheel-container {
        padding: 10px;
        border-radius: 12px;
    }

    .wheel-canvas-container {
        width: min(160px, 28vh, 70%);
        height: min(160px, 28vh, 70%);
    }

    .wheel-pointer {
        border-left: 12px solid transparent;
        border-right: 12px solid transparent;
        border-top: 24px solid var(--greek-gold);
        top: -12px;
    }

    .spin-controls {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 4px;
        margin-top: 8px;
    }

    .spin-btn {
        flex: 1 1 30%;
        min-width: 80px;
        max-width: 120px;
        padding: 8px 6px;
        font-size: 0.55rem;
    }

    /* NEW: Mobile portrait spin UI */
    .spin-type-dropdown-container {
        max-width: 280px;
    }

    .spin-type-dropdown {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .dropdown-info-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .spin-buttons {
        gap: 8px;
    }

    .main-spin-btn {
        padding: 10px 30px;
        font-size: 0.95rem;
        letter-spacing: 1.5px;
    }

    .free-spin-btn {
        padding: 8px 20px;
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    /* Even smaller chat panel on small phones */
    .ai-panel.expanded {
        max-height: 32vh;
        max-height: 32dvh;
    }

    .ai-header {
        padding: 8px 12px;
    }

    .ai-avatar {
        width: 28px;
        height: 28px;
    }

    .ai-title {
        font-size: 0.75rem;
    }

    .ai-toggle {
        padding: 5px 10px;
        font-size: 0.6rem;
    }

    .ai-body {
        padding: 8px 10px 10px;
    }

    .ai-chat-container {
        max-height: 100px;
    }

    .ai-message-avatar {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }

    .ai-message-content {
        font-size: 0.7rem;
        padding: 6px 8px;
    }

    .ai-input {
        padding: 8px 10px;
        font-size: 0.75rem;
    }

    .ai-send {
        padding: 8px 10px;
        font-size: 0.6rem;
    }

    .decoration-bottom-left {
        display: none !important;
    }
}

/* Very small screens / Landscape phones */
@media (max-height: 500px) {
    .page-header {
        padding: 2px 0 4px;
    }

    .page-title {
        font-size: 1.2rem;
    }

    .page-subtitle {
        display: none;
    }

    .summary-cards {
        margin-bottom: 4px;
        gap: 3px;
    }

    .card {
        padding: 4px 3px;
    }

    .card-label {
        font-size: 0.35rem;
    }

    .card-value {
        font-size: 0.7rem;
    }

    .quick-action {
        display: none;
    }

    .wheel-container {
        padding: 8px;
    }

    .wheel-canvas-container {
        width: min(130px, 22vh, 65%);
        height: min(130px, 22vh, 65%);
    }

    .spin-btn {
        padding: 6px 8px;
        font-size: 0.5rem;
        min-width: 70px;
    }

    /* Very short screens - even smaller chat */
    .ai-panel.expanded {
        max-height: 30vh;
    }

    .ai-chat-container {
        max-height: 80px;
    }
}

/* Large desktop - maximize space usage */
@media (min-width: 1400px) {
    .container {
        max-width: 1200px;
    }

    .wheel-canvas-container {
        width: min(380px, 48vh, 95%);
        height: min(380px, 48vh, 95%);
    }

    .ai-panel {
        width: 420px;
        right: 30px;
        bottom: 20px; /* Flush with bottom */
    }
}

/* Extra large desktop */
@media (min-width: 1700px) {
    .ai-panel {
        width: 450px;
        right: 40px;
    }
}

/* ==========================================================================
   12. MOBILE UX ENHANCEMENTS (v9.0)
   - Thought bubbles for Wryon's comments
   - Full-screen chat/trivia overlays
   - Floating action buttons
   - Mobile wallet deep linking
   ========================================================================== */

/* Hide desktop chat panel on mobile - use floating buttons instead */
@media (max-width: 768px) {
    .ai-panel {
        display: none !important;
    }
    
    /* Add bottom padding for floating buttons */
    .app-wrapper {
        padding-bottom: 100px;
    }
}

/* ==========================================================================
   IMMERSIVE SPINNING MODE
   - Activated when user spins on mobile
   - Bigger wheel, full focus on the spin
   - Body class: .wheel-spinning-immersive
   ========================================================================== */

@media (max-width: 768px) {
    /* When spinning in immersive mode - hide everything except wheel */
    body.wheel-spinning-immersive .summary-cards,
    body.wheel-spinning-immersive .page-header,
    body.wheel-spinning-immersive .wheel-stats,
    body.wheel-spinning-immersive .spin-controls,
    body.wheel-spinning-immersive .mobile-spin-dropdown {
        display: none !important;
    }
    
    /* Make wheel container fill the screen */
    body.wheel-spinning-immersive .wheel-container {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: none;
        height: 100vh;
        height: 100dvh;
        margin: 0;
        padding: 20px;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: none;
        background: radial-gradient(ellipse at center, rgba(10, 40, 10, 0.95) 0%, rgba(5, 20, 5, 0.98) 50%, rgba(0, 10, 0, 1) 100%);
    }
    
    /* Make wheel MUCH bigger during spin */
    body.wheel-spinning-immersive .wheel-canvas-container {
        width: min(85vw, 85vh, 450px) !important;
        height: min(85vw, 85vh, 450px) !important;
    }
    
    /* Center the wheel main area */
    body.wheel-spinning-immersive .wheel-main {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Adjust pointer size for bigger wheel */
    body.wheel-spinning-immersive .wheel-pointer {
        border-left: 20px solid transparent;
        border-right: 20px solid transparent;
        border-top: 40px solid var(--greek-gold);
        top: -18px;
    }
    
    /* Add subtle pulsing glow during spin */
    body.wheel-spinning-immersive .wheel-canvas-container {
        animation: spinningGlow 1s ease-in-out infinite alternate;
    }
    
    @keyframes spinningGlow {
        0% { filter: drop-shadow(0 0 20px rgba(var(--brand-primary-rgb), 0.3)); }
        100% { filter: drop-shadow(0 0 40px rgba(var(--brand-primary-rgb), 0.6)); }
    }
}

/* ==========================================================================
   SPIN CONTROLS PANEL (New v14.0)
   ========================================================================== */
.spin-controls-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(var(--brand-secondary-rgb), 0.3);
    border-radius: 12px;
    min-width: 160px;
    z-index: 5;
    transition: all 0.3s ease;
}

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

/* Spin Count Selector - vertical stack */
.spin-count-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* CSS grid: multiplier spans both rows on left, name+cost stack on right */
.count-option {
    display: grid;
    grid-template-columns: 46px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 68, 0, 0.6);
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
    overflow: hidden;
    box-sizing: border-box;
}

.count-option:hover {
    background: rgba(0, 40, 0, 0.8);
    border-color: var(--brand-secondary);
    box-shadow: 0 0 15px rgba(var(--brand-secondary-rgb), 0.2);
    transform: translateY(-1px);
}

.count-option.active {
    background: linear-gradient(135deg, rgba(0, 60, 0, 0.9), rgba(0, 30, 0, 0.9));
    border-color: var(--brand-secondary);
    box-shadow: 0 0 20px rgba(var(--brand-secondary-rgb), 0.4), inset 0 0 20px rgba(var(--brand-secondary-rgb), 0.08);
}

/* Big multiplier — spans both text rows on the left */
.count-multiplier {
    grid-column: 1;
    grid-row: 1 / 3;
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    color: var(--brand-secondary);
    text-shadow: 0 0 10px rgba(var(--brand-secondary-rgb), 0.8), 0 0 20px rgba(var(--brand-secondary-rgb), 0.4);
}

/* Name on first row, right column */
.count-label {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
}

/* Cost on second row, right column */
.count-cost {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.65rem;
    font-family: var(--font-body);
    font-weight: 400;
    opacity: 0.6;
    margin-top: 2px;
}

/* Active state — name and cost pick up brand color */
.count-option.active .count-label {
    color: var(--brand-secondary);
}
.count-option.active .count-cost {
    color: rgba(var(--brand-secondary-rgb), 0.8);
    opacity: 1;
}

/* Mini info button in label */
.selector-info-btn-mini:hover {
    transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .spin-controls-panel {
        width: 100%;
        margin-top: 15px;
        order: -1; /* Place above wheel logic if layout allows, or keep flow */
    }
    
    .spin-count-selector {
        /* Desktop vertical layout is retained — mobile uses .mobile-spin-controls instead */
    }
    
    .count-option {
        flex: unset;
    }
    
    /* Mobile Responsive */
    .wheel-main {
        flex-direction: column; /* Stack controls and wheel on mobile */
    }
}

/* ==========================================================================
   MOBILE COMPACT SPIN CONTROLS (v15.2.0)
   - Compact dropdown UI for mobile spin selection
   - Hides KPI cards on mobile (redundant with stats bar)
   - 25% smaller wheel + tap-to-expand feature
   ========================================================================== */

/* Mobile controls container - HIDDEN on desktop by default */
.mobile-spin-controls {
    display: none !important;
    flex-direction: column;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(var(--brand-primary-rgb), 0.3);
    border-radius: 10px;
    margin-bottom: 10px;
    width: 100%;
}

/* Row layout for count and type */
.mobile-count-row,
.mobile-type-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-control-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 45px;
    flex-shrink: 0;
}

/* Spin Count Pills - Compact inline buttons */
.mobile-count-pills {
    display: flex;
    gap: 6px;
    flex: 1;
}

.mobile-count-pill {
    flex: 1;
    padding: 8px 4px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(100, 100, 100, 0.4);
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.mobile-count-pill:hover {
    background: rgba(var(--brand-secondary-rgb), 0.1);
    border-color: rgba(var(--brand-secondary-rgb), 0.5);
}

.mobile-count-pill.active {
    background: rgba(var(--brand-secondary-rgb), 0.25);
    border-color: var(--brand-secondary);
    color: var(--brand-secondary);
    box-shadow: 0 0 8px rgba(var(--brand-secondary-rgb), 0.3);
}

/* Named label inside mobile count pill */
.mobile-pill-label {
    display: block;
    font-size: 0.5rem;
    letter-spacing: 0.06em;
    opacity: 0.75;
    margin-top: 1px;
}

/* Spin Type Dropdown - Native select */
.mobile-type-dropdown {
    flex: 1;
    padding: 10px 35px 10px 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(var(--brand-secondary-rgb), 0.4);
    border-radius: 8px;
    color: var(--brand-secondary);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4af37' d='M2 4l4 4 4-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    min-width: 0;
}

.mobile-type-dropdown:focus {
    outline: none;
    border-color: var(--brand-secondary);
    box-shadow: 0 0 12px rgba(var(--brand-secondary-rgb), 0.3);
}

.mobile-type-dropdown option {
    background: #1a1a1a;
    color: var(--brand-secondary);
    padding: 12px;
    font-size: 1rem;
}

/* Info button - small circular */
.mobile-info-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(var(--brand-primary-rgb), 0.4);
    border-radius: 50%;
    color: var(--wryon-green);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-info-btn:hover,
.mobile-info-btn:active {
    background: rgba(var(--brand-primary-rgb), 0.15);
    border-color: var(--wryon-green);
    box-shadow: 0 0 10px rgba(var(--brand-primary-rgb), 0.3);
}

/* ==========================================================================
   CLICKABLE SPINS STAT - Opens Buy Spins modal
   ========================================================================== */
.wheel-stat.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.wheel-stat.clickable:hover {
    background: rgba(var(--brand-primary-rgb), 0.1);
    border-radius: 8px;
}

.wheel-stat.clickable:active {
    transform: scale(0.95);
}

/* ==========================================================================
   MOBILE-ONLY ELEMENTS (hidden on desktop)
   ========================================================================== */
.mobile-only {
    display: none !important;
}

/* ==========================================================================
   MOBILE RESPONSIVE - Main mobile layout overrides
   ========================================================================== */
@media (max-width: 768px) {
    /* HIDE top KPI summary cards on mobile - redundant with stats bar */
    .summary-cards {
        display: none !important;
    }
    
    /* HIDE page header subtitle on mobile for more space */
    .page-subtitle {
        display: none !important;
    }
    
    /* Make page title smaller on mobile */
    .page-title {
        font-size: 1.5rem !important;
        margin-bottom: 8px !important;
    }
    
    .page-header {
        padding: 5px 0 10px !important;
    }
    
    /* Show mobile-only elements (like Raffle stat) */
    .mobile-only {
        display: block !important;
    }
    
    /* Show compact mobile controls */
    .mobile-spin-controls {
        display: flex !important;
    }
    
    /* Hide desktop spin controls panel */
    .desktop-spin-controls {
        display: none !important;
    }
    
    .spin-controls-panel.desktop-spin-controls {
        display: none !important;
    }
    
    /* Make wheel 25% SMALLER to ensure SPIN button visible above browser chrome */
    /* Tap wheel to expand to full screen view */
    .wheel-canvas-container {
        width: min(225px, 58vw, 38vh) !important;
        height: min(225px, 58vw, 38vh) !important;
        cursor: pointer;
        position: relative;
    }
    
    /* Tap hint below wheel */
    .wheel-canvas-container::after {
        content: 'Tap to enlarge';
        position: absolute;
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.6rem;
        color: rgba(255, 255, 255, 0.5);
        white-space: nowrap;
        pointer-events: none;
    }
    
    /* Add subtle "+" indicator on Spins stat */
    .wheel-stat.clickable::after {
        content: '+';
        position: absolute;
        top: 2px;
        right: 2px;
        font-size: 0.6rem;
        color: var(--wryon-green);
        font-weight: bold;
        opacity: 0.8;
    }
    
    /* Compact stats bar - now with 4 items */
    .wheel-stats {
        padding: 8px 10px !important;
        gap: 6px !important;
        margin-bottom: 8px !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
    }
    
    .wheel-stat {
        min-width: 0 !important;
        flex: 1 !important;
        padding: 4px !important;
    }
    
    .wheel-stat-label {
        font-size: 0.55rem !important;
        white-space: nowrap !important;
    }
    
    .wheel-stat-value {
        font-size: 0.95rem !important;
    }
    
    /* Ensure wheel container doesn't overflow */
    .wheel-container {
        padding: 12px !important;
        max-height: none !important;
    }
    
    /* Ensure spin buttons are visible */
    .spin-buttons {
        margin-top: 10px !important;
        gap: 10px !important;
    }
    
    .main-spin-btn {
        padding: 12px 40px !important;
        font-size: 1.1rem !important;
    }
    
    .free-spin-btn {
        padding: 10px 25px !important;
        font-size: 0.9rem !important;
    }
}

/* Very small screens (iPhone SE, etc.) */
@media (max-width: 380px) {
    .mobile-spin-controls {
        padding: 10px 12px;
        gap: 8px;
    }
    
    .mobile-control-label {
        font-size: 0.6rem;
        min-width: 38px;
    }
    
    .mobile-count-pill {
        padding: 6px 2px;
        font-size: 0.7rem;
    }
    
    .mobile-type-dropdown {
        padding: 8px 30px 8px 10px;
        font-size: 0.75rem;
    }
    
    .mobile-info-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    /* Even smaller wheel on tiny screens */
    .wheel-canvas-container {
        width: min(200px, 55vw, 35vh) !important;
        height: min(200px, 55vw, 35vh) !important;
    }
    
    .wheel-stat-label {
        font-size: 0.5rem !important;
    }
    
    .wheel-stat-value {
        font-size: 0.85rem !important;
    }
}

/* ==========================================================================
   IMMERSIVE VIEWING MODE (Tap wheel to enlarge)
   - User taps wheel on mobile → full screen view
   - Tap again to close
   ========================================================================== */
body.wheel-viewing-immersive .summary-cards,
body.wheel-viewing-immersive .page-header,
body.wheel-viewing-immersive .mobile-spin-controls,
body.wheel-viewing-immersive .wheel-stats,
body.wheel-viewing-immersive .spin-buttons {
    display: none !important;
}

body.wheel-viewing-immersive .wheel-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: none;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    background: radial-gradient(ellipse at center, rgba(10, 40, 10, 0.98) 0%, rgba(5, 20, 5, 0.99) 50%, rgba(0, 10, 0, 1) 100%);
    border-radius: 0;
}

/* Hide gradient border + vignette in immersive modes (full-screen, no rounded corners) */
body.wheel-viewing-immersive .wheel-container::before,
body.wheel-spinning-immersive .wheel-container::before,
body.wheel-viewing-immersive .wheel-container::after,
body.wheel-spinning-immersive .wheel-container::after {
    display: none;
}

body.wheel-viewing-immersive .wheel-canvas-container {
    width: min(85vw, 85vh, 450px) !important;
    height: min(85vw, 85vh, 450px) !important;
}

body.wheel-viewing-immersive .wheel-canvas-container::after {
    content: 'Tap to close';
    bottom: -30px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

body.wheel-viewing-immersive .wheel-main {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.wheel-viewing-immersive .wheel-pointer {
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid var(--greek-gold);
    top: -18px;
}

/* Hide mobile controls during immersive spin mode */
body.wheel-spinning-immersive .mobile-spin-controls {
    display: none !important;
}

/* Hide tap hint during spin animation */
body.wheel-spinning-immersive .wheel-canvas-container::after {
    content: '';
    opacity: 0;
}