/* File: /public/css/wryon.css */
/* ==========================================================================
   WRYON'S WONDERWHEEL - FULL-SCREEN APP STYLESHEET
   Optimized for app-like experience with no scrolling
   v12.3.0 - Removed Mobile Footer (using floating chat button)
   
   CHANGES IN v12.3.0:
   - REMOVED: Footer-related padding and wallet browser adjustments
   - Simplified mobile padding - floating chat button is self-contained
   - Works better with wallet browser toolbars (MetaMask, Trust, etc.)
   
   CHANGES IN v12.2.0:
   - NEW: Wallet browser support (MetaMask, Trust Wallet, etc.)
   - Added --wallet-browser-extra-padding CSS variable
   - Mobile footer respects wallet browser bottom toolbars
   - Uses env(safe-area-inset-bottom) for iOS notch support
   
   CHANGES IN v12.1.0:
   - NEW: Immersive spinning mode on mobile
   - Wheel goes full-screen when spinning (85vw/vh)
   - All other UI hidden during spin for full focus
   - Pulsing glow effect during spin
   - Body class .wheel-spinning-immersive triggers the mode
   
   CHANGES IN v12.0.0:
   - NEW: Spin Type Selector on left side of wheel (desktop)
   - NEW: Main gold SPIN button under wheel (casino-style)
   - NEW: FREE SPIN button appears only when free spins available
   - Desktop: Vertical selector with APE IN, FULL DEGEN, YOLO options
   - Mobile: Dropdown selector above spin buttons
   - Info button moved to bottom of selector panel
   - Gold-bordered buttons styled like casino interface
   
   CHANGES IN v11.5.0:
   - Spin buttons now use slim pill-style (like Buy Spins/Claim Tokens)
   - Removed .wheel-stats-row wrapper - using .wheel-stats directly
   - Added .btn-info styling for Info button in spin controls
   - Buttons have transparent backgrounds with colored borders
   - Hover states use subtle glow effects
   
   CHANGES IN v11.4.0:
   - Fixed buy modal being hidden behind mobile footer on mobile devices
   - Increased .buy-modal-overlay z-index from 1500 to 9500
   - Mobile footer has z-index 9000, modal must be higher
   - DEV test spins button now clickable on mobile
   
   CHANGES IN v11.2.0:
   - Moved Spin Info button into wheel-stats bar (right side)
   - Button no longer hidden behind wheel pointer
   - Updated wheel-stats layout: centered with gap, align-items center
   - Added .wheel-stats .spin-info-btn styles for button positioning
   - Mobile responsive adjustments for smaller gap and button size
   
   CHANGES IN v11.1.0:
   - Info bar now shown on ALL devices (was mobile-only)
   - Removed desktop legend panel - unified experience
   - Mobile wheel increased 15% to 320px (was 280px)
   - wheel-container now column layout on all devices
   - Cleaner, simpler layout
   
   CHANGES IN v11.0.0:
   - NEW: SpinInfoModal overlay with detailed spin type explanations
   - NEW: Mobile info bar with spin count + "? Info" button
   - Mobile: Desktop legend hidden, replaced with compact info bar
   - Mobile: Wheel increased to 280px (was 220px) for more prominence
   - Modal has smooth slide-up animation and dark overlay
   - Info bar shows spin balance at a glance
   
   CHANGES IN v10.2.0:
   - Mobile: Legend now shows as horizontal compact bar below buttons
   - Mobile: Increased wheel size slightly (220px vs 200px)
   - Added margin-top to wheel-container for spacing from KPI cards
   - Increased summary-cards margin-bottom for better visual separation
   - Mobile legend items show name and cost, hides description to save space
   
   CHANGES IN v10.1.0:
   - Legend now inside wheel-container using flexbox layout
   - Added wheel-main wrapper for wheel + buttons
   - Holly decorations hidden via CSS (backup to HTML removal)
   - wheel-container uses max-height to ensure full visibility on screen
   - Mobile: legend hidden, container stacks vertically
   
   CHANGES IN v10.0.0:
   - Added spin-legend panel styles for spin type explanations
   - Simplified spin button styles (removed subtitles, smaller buttons)
   - Legend positioned to left of wheel on desktop, below on mobile
   - Added btn-free styling for free spin button
   
   CHANGES IN v9.0.4:
   - Added :active state for satisfying tap feedback on mobile
   - :active only shows during actual press, releases immediately (no stuck state)
   - Desktop keeps hover + active effects via media query
   
   CHANGES IN v9.0.3:
   - Simplified: NO hover/active/focus effects on mobile (<769px)
   - Desktop (769px+) gets hover effects as normal
   - Uses simple min-width media query instead of hover detection
   
   CHANGES IN v9.0.2:
   - Added explicit :focus and :focus-visible reset to default appearance
   - Added touch-action: manipulation, user-select: none
   - Moved :active state inside @media (hover: hover) - touch devices get NO altered state
   - This ensures iOS Safari cannot persist any visual state on buttons
   
   CHANGES IN v9.0.1:
   - FIX: Trivia answer buttons no longer stay highlighted after tapping on mobile
   - Used @media (hover: hover) to only apply hover effects on true hover devices
   - Touch devices now use :active for momentary tap feedback only
   
   CHANGES IN v9.0.0:
   - MOBILE: Desktop chat panel hidden on mobile (<768px)
   - MOBILE: Added padding for floating action buttons
   - All mobile component styles injected via JS for modularity
   
   CHANGES IN v8.5.0:
   - Added complete Buy Spins Modal styling (was missing!)
   - Added Disconnect Button styling (was missing - not clickable!)
   
   CHANGES IN v8.3.0:
   - Supports new crypto button names: Ape In, Full Degen, YOLO
   - Same visual hierarchy maintained
   
   CHANGES IN v8.2.0:
   - Ape In (btn-standard): Bronze/copper gradient
   - Full Degen (btn-premium): Larger hero button with enhanced glow
   - YOLO (btn-jackpot): Dark with gold accent (risky look)
   - Added hover states for all button types
   ========================================================================== */

/* 1. VARIABLES & THEME CONFIGURATION */
:root {
    /* Wryon's Premium Palette */
    --wryon-green: #39ff14;
    --wryon-green-dim: #2cb810;
    --wryon-dark: #0a200a;
    --wryon-glow: 0 0 15px rgba(57, 255, 20, 0.6);
    
    /* Christmas / Greek Palette */
    --greek-gold: #d4af37;
    --christmas-red: #c41e3a;
    --christmas-red-dark: #8b0000;
    --holly-green: #00563f;
    --snow-white: #f8f9fa;

    /* Semantic Colors */
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0a0;
    
    /* Premium Gradients */
    --gradient-hero: radial-gradient(circle at 50% 0%, #0a2e0a 0%, #051405 60%, #000000 100%);
    --gradient-card: linear-gradient(145deg, rgba(20, 30, 20, 0.6), rgba(10, 15, 10, 0.8));
    
    /* Glassmorphism Backgrounds */
    --bg-glass-heavy: rgba(10, 20, 10, 0.85);
    --bg-glass-light: rgba(57, 255, 20, 0.05);
    --border-glass: 1px solid rgba(57, 255, 20, 0.3);
    --bg-primary: #0a0a0a;
    --bg-card: rgba(20, 30, 20, 0.8);
    --border: rgba(57, 255, 20, 0.2);
    --hover-bg: rgba(57, 255, 20, 0.1);
    
    /* Shadows */
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --shadow-glow-green: 0 0 40px rgba(57, 255, 20, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    
    /* Chat panel height for mobile - used for spacing calculations */
    --chat-collapsed-height: 60px;
    
    /* Wallet browser padding - set dynamically by shared-header.js */
    --wallet-browser-extra-padding: 0px;
}

/* 2. GLOBAL RESET & FULL-SCREEN APP SETUP */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden; /* Prevent scrolling - app-like */
}

body {
    background: var(--gradient-hero);
    color: var(--text-primary);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    position: relative;
}

/* Background image with adjustable opacity */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/wryon-background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.55; /* Adjust this value: 0 = invisible, 1 = fully visible */
    z-index: 0;
    pointer-events: none;
}

/* Dark overlay for better contrast (optional - adjust or remove) */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.3) 100%);
    z-index: 0;
    pointer-events: none;
}

/* 3. 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;
}

/* Specialized Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap');

/* 4. HEADER - COMPACT */
.page-header { 
    text-align: center; 
    padding: 10px 0 15px;
    flex-shrink: 0;
    position: relative; /* For sound toggle positioning */
}

.page-title {
    font-family: 'Cinzel', serif;
    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(57,255,20,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(57, 255, 20, 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(57, 255, 20, 0.8));
}

/* 5. KPI CARDS - COMPACT GRID */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px; /* Increased spacing before wheel container */
    flex-shrink: 0;
}

.card {
    background: var(--gradient-card);
    border: var(--border-glass);
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-premium);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--wryon-green), transparent);
    opacity: 0.5;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), var(--shadow-glow-green);
    border-color: var(--wryon-green);
}

.card-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-weight: 600;
}

.card-value {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 700;
    color: #fff;
    font-family: 'Cinzel', serif;
}

.card-value.green { color: var(--wryon-green); text-shadow: 0 0 15px var(--wryon-green); }
.card-value.gold { color: var(--greek-gold); text-shadow: 0 0 15px var(--greek-gold); }
.card-value.red { color: var(--christmas-red); text-shadow: 0 0 15px var(--christmas-red); }

.quick-action {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.6rem;
    padding: 5px 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    background: rgba(255,255,255,0.05);
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quick-action:hover {
    background: var(--wryon-green);
    color: #000;
    border-color: var(--wryon-green);
    box-shadow: 0 0 15px rgba(57,255,20,0.5);
}

/* 6. WONDERWHEEL STAGE - FLEXIBLE */
.wheel-container {
    background: var(--bg-glass-heavy);
    border: 1px solid var(--wryon-green);
    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%;
}

/* Radial light rays emanating from center */
.wheel-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: 
        repeating-conic-gradient(
            from 0deg,
            rgba(57, 255, 20, 0.03) 0deg 10deg,
            transparent 10deg 20deg
        );
    animation: rotateRays 60s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes rotateRays {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 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);
}

/* Floating mystical particles inside wheel container */
.wheel-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.wheel-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--wryon-green);
    border-radius: 50%;
    opacity: 0;
    animation: wheelParticleFloat 8s ease-in-out infinite;
    box-shadow: 0 0 6px var(--wryon-green), 0 0 12px var(--wryon-green);
}

@keyframes wheelParticleFloat {
    0%, 100% { 
        opacity: 0;
        transform: translateY(100%) scale(0.5);
    }
    10% {
        opacity: 0.8;
    }
    50% { 
        opacity: 0.6;
        transform: translateY(-50vh) scale(1);
    }
    90% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: translateY(-100%) scale(0.5);
    }
}

.wheel-particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 7s; }
.wheel-particle:nth-child(2) { left: 20%; animation-delay: 1s; animation-duration: 9s; width: 4px; height: 4px; }
.wheel-particle:nth-child(3) { left: 35%; animation-delay: 2s; animation-duration: 6s; }
.wheel-particle:nth-child(4) { left: 50%; animation-delay: 0.5s; animation-duration: 8s; width: 2px; height: 2px; }
.wheel-particle:nth-child(5) { left: 65%; animation-delay: 3s; animation-duration: 10s; }
.wheel-particle:nth-child(6) { left: 75%; animation-delay: 1.5s; animation-duration: 7s; width: 5px; height: 5px; }
.wheel-particle:nth-child(7) { left: 85%; animation-delay: 2.5s; animation-duration: 9s; }
.wheel-particle:nth-child(8) { left: 90%; animation-delay: 4s; animation-duration: 6s; width: 3px; height: 3px; }

/* Gold accent particles */
.wheel-particle.gold {
    background: var(--greek-gold);
    box-shadow: 0 0 6px var(--greek-gold), 0 0 12px var(--greek-gold);
}

.wheel-particle:nth-child(2),
.wheel-particle:nth-child(5),
.wheel-particle:nth-child(7) {
    background: var(--greek-gold);
    box-shadow: 0 0 6px var(--greek-gold), 0 0 12px var(--greek-gold);
}

/* Pulsing glow behind the wheel */
.wheel-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(57, 255, 20, 0.15) 0%,
        rgba(57, 255, 20, 0.08) 30%,
        rgba(57, 255, 20, 0.03) 50%,
        transparent 70%
    );
    animation: wheelGlowPulse 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes wheelGlowPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 1;
    }
}

/* Greek key pattern border (inner) */
.wheel-container-border {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 14px;
    pointer-events: none;
    z-index: 0;
}

.wheel-container-border::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px dashed rgba(212, 175, 55, 0.15);
    border-radius: 10px;
}

.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(--greek-gold);
    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(--greek-gold);
    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(--greek-gold);
    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(212, 175, 55, 0.3);
    border-radius: 12px;
    min-width: 140px;
    z-index: 5;
}

.selector-label {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    color: rgba(212, 175, 55, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(212, 175, 55, 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: 'Cinzel', serif;
}

.selector-option:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.5);
}

.selector-option.active {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 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: #d4af37;
}

.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(57, 255, 20, 0.4);
    border-radius: 6px;
    color: var(--wryon-green);
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.selector-info-btn:hover {
    background: rgba(57, 255, 20, 0.15);
    box-shadow: 0 0 8px rgba(57, 255, 20, 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(212, 175, 55, 0.5);
    border-radius: 8px;
    color: #d4af37;
    font-family: 'Cinzel', serif;
    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: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.spin-type-dropdown option {
    background: #1a1a1a;
    color: #d4af37;
    padding: 10px;
}

.dropdown-info-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(57, 255, 20, 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(57, 255, 20, 0.15);
    box-shadow: 0 0 8px rgba(57, 255, 20, 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 #d4af37;
    border-radius: 8px;
    color: #d4af37;
    font-family: 'Cinzel', serif;
    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(212, 175, 55, 0.2);
}

.main-spin-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 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(212, 175, 55, 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: 'Cinzel', serif;
    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(57, 255, 20, 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(57, 255, 20, 0.2); }
    50% { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 30px rgba(57, 255, 20, 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(57, 255, 20, 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: 'Cinzel', serif;
    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(57, 255, 20, 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(212, 175, 55, 0.2);
    color: #d4af37;
    border: 1px solid #d4af37;
}

.btn-info {
    background: rgba(57, 255, 20, 0.1);
    color: var(--wryon-green);
    border: 1px solid rgba(57, 255, 20, 0.5);
}

/* ==========================================================================
   6e. SPIN LEGEND PANEL - Shows spin type details (DEPRECATED)
   ========================================================================== */

/* Desktop legend - Now hidden, using selector instead */
.spin-legend-desktop {
    display: none;
}

/* ==========================================================================
   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(57, 255, 20, 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: 'Cinzel', serif;
    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: #d4af37;
    font-weight: 600;
}

.spin-info-btn {
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.2), rgba(57, 255, 20, 0.1));
    border: 1px solid var(--wryon-green);
    color: var(--wryon-green);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.spin-info-btn:hover {
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.3), rgba(57, 255, 20, 0.2));
    box-shadow: 0 0 10px rgba(57, 255, 20, 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(57, 255, 20, 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(57, 255, 20, 0.2);
}

.spin-info-header h3 {
    font-family: 'Cinzel', serif;
    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(57, 255, 20, 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: #d4af37;
    background: rgba(212, 175, 55, 0.1);
}

.spin-info-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.spin-info-details {
    flex: 1;
}

.spin-info-name {
    font-family: 'Cinzel', serif;
    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(57, 255, 20, 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: #d4af37;
    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(57,255,20,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: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wryon-green);
    text-shadow: 0 0 10px rgba(57,255,20,0.5);
}

.wheel-stat-value.gold {
    color: var(--greek-gold);
    text-shadow: 0 0 10px rgba(212,175,55,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(57, 255, 20, 0.4);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(57, 255, 20, 0.25),
        0 0 60px rgba(57, 255, 20, 0.15),
        0 0 100px rgba(57, 255, 20, 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(57, 255, 20, 0.25),
            0 0 60px rgba(57, 255, 20, 0.15),
            0 0 100px rgba(57, 255, 20, 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(57, 255, 20, 0.35),
            0 0 80px rgba(57, 255, 20, 0.2),
            0 0 120px rgba(57, 255, 20, 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(57, 255, 20, 0.3);
}

.ai-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ai-toggle {
    background: rgba(57, 255, 20, 0.15);
    border: 1px solid rgba(57, 255, 20, 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(57, 255, 20, 0.25);
}

.ai-toggle.expanded {
    background: rgba(57, 255, 20, 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(57, 255, 20, 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(57, 255, 20, 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(57, 255, 20, 0.1);
    border: 1px solid rgba(57, 255, 20, 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(57, 255, 20, 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(57, 255, 20, 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(57, 255, 20, 0.15);
    border-color: rgba(57, 255, 20, 0.3);
    color: var(--text-primary);
}

/* ==========================================================================
   TRIVIA MODE CONTROLS
   ========================================================================== */
.trivia-controls {
    padding: 12px;
    background: rgba(0, 50, 0, 0.4);
    border-radius: 12px;
    margin: 8px 0;
    border: 1px solid rgba(57, 255, 20, 0.3);
}

.trivia-score {
    text-align: center;
    font-family: 'Cinzel', serif;
    color: var(--greek-gold);
    font-size: 14px;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.trivia-choices {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.trivia-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(0, 80, 0, 0.8), rgba(0, 40, 0, 0.9));
    border: 1px solid rgba(57, 255, 20, 0.4);
    border-radius: 8px;
    color: #e0e0e0;
    font-family: 'Cinzel', serif;
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    outline: none;
}

/* Mobile tap feedback - only shows during actual press */
.trivia-choice:active:not(:disabled) {
    background: linear-gradient(135deg, rgba(0, 100, 0, 0.95), rgba(0, 60, 0, 1));
    border-color: var(--wryon-green);
    box-shadow: 0 0 12px rgba(57, 255, 20, 0.4);
}

/* Desktop only: hover and active effects */
@media (min-width: 769px) {
    .trivia-choice {
        transition: all 0.2s ease;
    }
    
    .trivia-choice:hover:not(:disabled) {
        background: linear-gradient(135deg, rgba(0, 100, 0, 0.9), rgba(0, 60, 0, 0.95));
        border-color: var(--wryon-green);
        transform: translateX(4px);
        box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
    }
    
    .trivia-choice:active:not(:disabled) {
        transform: translateX(2px);
    }
}

.trivia-choice:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.choice-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--greek-gold), #b8962e);
    color: #0a200a;
    border-radius: 50%;
    font-weight: bold;
    font-size: 12px;
    flex-shrink: 0;
}

.trivia-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.trivia-hint-btn {
    flex: 1;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(100, 80, 0, 0.8), rgba(60, 50, 0, 0.9));
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 8px;
    color: var(--greek-gold);
    font-family: 'Cinzel', serif;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.trivia-hint-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(120, 100, 0, 0.9), rgba(80, 60, 0, 0.95));
    border-color: var(--greek-gold);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.trivia-exit-btn {
    flex: 1;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.8), rgba(80, 0, 0, 0.9));
    border: 1px solid rgba(255, 100, 100, 0.5);
    border-radius: 8px;
    color: #ff6b6b;
    font-family: 'Cinzel', serif;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.trivia-exit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(180, 0, 0, 0.9), rgba(100, 0, 0, 0.95));
    border-color: #ff6b6b;
    box-shadow: 0 0 12px rgba(255, 100, 100, 0.4);
    transform: scale(1.02);
}

.trivia-hint-btn:disabled,
.trivia-exit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* AI Input Row */
.ai-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.ai-input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: all 0.3s;
}

.ai-input:focus {
    outline: none;
    border-color: var(--wryon-green);
}

.ai-input::placeholder {
    color: var(--text-secondary);
}

.ai-send {
    background: linear-gradient(135deg, var(--wryon-green), var(--wryon-green-dim));
    border: none;
    color: #000;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
}

.ai-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(57, 255, 20, 0.4);
}

.ai-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   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(57, 255, 20, 0.3), 0 0 80px rgba(57, 255, 20, 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: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--wryon-green);
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 0 0 20px rgba(57, 255, 20, 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(57, 255, 20, 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(57, 255, 20, 0.2);
}

.preset-btn.active {
    border-color: var(--wryon-green);
    background: linear-gradient(145deg, rgba(57, 255, 20, 0.2), rgba(30, 100, 30, 0.4));
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.3), inset 0 0 10px rgba(57, 255, 20, 0.1);
}

.preset-amount {
    font-family: 'Cinzel', serif;
    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(57, 255, 20, 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(57, 255, 20, 0.5);
}

.amount-display {
    font-family: 'Cinzel', serif;
    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(57, 255, 20, 0.2);
}

.price-display > div:first-child {
    font-family: 'Cinzel', serif;
    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(212, 175, 55, 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: 'Cinzel', serif;
    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(57, 255, 20, 0.3);
}

.buy-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(57, 255, 20, 0.5);
}

.buy-btn.primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   8. ANIMATIONS & EFFECTS
   ========================================================================== */

/* ----- SNOWFALL - Enhanced with variety ----- */
.snowfall {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -30px;
    color: #ccffcc;
    font-size: 1rem;
    user-select: none;
    z-index: 1000;
    animation: fall linear infinite, sway ease-in-out infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8), 0 0 10px var(--wryon-green);
    opacity: 0.8;
}

@keyframes fall {
    0% { transform: translateY(-10vh) rotate(0deg); }
    100% { transform: translateY(110vh) rotate(360deg); }
}

@keyframes sway {
    0%, 100% { margin-left: 0; }
    25% { margin-left: 15px; }
    75% { margin-left: -15px; }
}

/* Snowflake variety - different speeds, positions, sizes */
.snowflake:nth-child(1) { left: 5%; animation-duration: 10s, 3s; font-size: 0.8rem; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 15%; animation-duration: 13s, 4s; font-size: 1.1rem; animation-delay: 1s; }
.snowflake:nth-child(3) { left: 25%; animation-duration: 11s, 3.5s; font-size: 0.7rem; animation-delay: 0.5s; opacity: 0.6; }
.snowflake:nth-child(4) { left: 35%; animation-duration: 14s, 4.5s; font-size: 0.9rem; animation-delay: 2s; }
.snowflake:nth-child(5) { left: 45%; animation-duration: 9s, 3s; font-size: 1.2rem; animation-delay: 1.5s; }
.snowflake:nth-child(6) { left: 55%; animation-duration: 12s, 3.8s; font-size: 0.6rem; animation-delay: 0.8s; opacity: 0.5; }
.snowflake:nth-child(7) { left: 65%; animation-duration: 15s, 4.2s; font-size: 1rem; animation-delay: 3s; }
.snowflake:nth-child(8) { left: 75%; animation-duration: 10s, 3.2s; font-size: 0.8rem; animation-delay: 2.5s; }
.snowflake:nth-child(9) { left: 85%; animation-duration: 11s, 3.6s; font-size: 1.1rem; animation-delay: 1.2s; opacity: 0.7; }
.snowflake:nth-child(10) { left: 95%; animation-duration: 13s, 4s; font-size: 0.7rem; animation-delay: 0.3s; }
/* Additional snowflakes spread across screen */
.snowflake:nth-child(n+11) { animation-duration: calc(8s + var(--i, 0) * 0.5s), calc(3s + var(--i, 0) * 0.2s); }
.snowflake:nth-child(11) { left: 10%; animation-duration: 12s, 3.5s; animation-delay: 4s; }
.snowflake:nth-child(12) { left: 20%; animation-duration: 9s, 2.8s; animation-delay: 2.2s; font-size: 1.3rem; }
.snowflake:nth-child(13) { left: 30%; animation-duration: 14s, 4.1s; animation-delay: 5s; opacity: 0.6; }
.snowflake:nth-child(14) { left: 40%; animation-duration: 11s, 3.3s; animation-delay: 1.8s; }
.snowflake:nth-child(15) { left: 50%; animation-duration: 10s, 3s; animation-delay: 3.5s; font-size: 0.9rem; }
.snowflake:nth-child(16) { left: 60%; animation-duration: 13s, 3.9s; animation-delay: 0.7s; }
.snowflake:nth-child(17) { left: 70%; animation-duration: 8s, 2.5s; animation-delay: 4.5s; font-size: 1.2rem; }
.snowflake:nth-child(18) { left: 80%; animation-duration: 15s, 4.3s; animation-delay: 2.8s; opacity: 0.5; }
.snowflake:nth-child(19) { left: 90%; animation-duration: 11s, 3.4s; animation-delay: 1s; }
.snowflake:nth-child(20) { left: 3%; animation-duration: 12s, 3.7s; animation-delay: 3.2s; }

/* ----- FLOATING PARTICLES (Mystical Orbs) ----- */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--wryon-green);
    border-radius: 50%;
    opacity: 0.4;
    animation: floatParticle 20s ease-in-out infinite;
    box-shadow: 0 0 10px var(--wryon-green), 0 0 20px var(--wryon-green);
}

@keyframes floatParticle {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% { 
        transform: translate(50px, -100px) scale(1.2);
        opacity: 0.6;
    }
    50% { 
        transform: translate(-30px, -200px) scale(0.8);
        opacity: 0.4;
    }
    75% { 
        transform: translate(40px, -150px) scale(1.1);
        opacity: 0.5;
    }
}

.particle:nth-child(1) { left: 10%; bottom: 10%; animation-delay: 0s; animation-duration: 18s; }
.particle:nth-child(2) { left: 20%; bottom: 5%; animation-delay: 2s; animation-duration: 22s; width: 6px; height: 6px; }
.particle:nth-child(3) { left: 30%; bottom: 15%; animation-delay: 4s; animation-duration: 20s; }
.particle:nth-child(4) { left: 50%; bottom: 8%; animation-delay: 1s; animation-duration: 25s; width: 3px; height: 3px; }
.particle:nth-child(5) { left: 70%; bottom: 12%; animation-delay: 3s; animation-duration: 19s; }
.particle:nth-child(6) { left: 85%; bottom: 6%; animation-delay: 5s; animation-duration: 23s; width: 5px; height: 5px; }
.particle:nth-child(7) { left: 40%; bottom: 3%; animation-delay: 6s; animation-duration: 21s; }
.particle:nth-child(8) { left: 60%; bottom: 18%; animation-delay: 2.5s; animation-duration: 24s; }

/* ----- 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(57, 255, 20, 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(57, 255, 20, 0.3);
        opacity: 0.8;
    }
    50% { 
        box-shadow: 0 0 60px rgba(57, 255, 20, 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(57, 255, 20, 0.3); }
    50% { box-shadow: 0 0 25px rgba(57, 255, 20, 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(57, 255, 20, 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(57, 255, 20, 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: 'Cinzel', serif;
    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(57, 255, 20, 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(57, 255, 20, 0.5);
}

/* Disconnect Button */
.disconnect-btn {
    background: rgba(100, 0, 0, 0.4);
    border: 1px solid #c41e3a;
    color: #c41e3a;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.disconnect-btn:hover {
    background: #c41e3a;
    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(57, 255, 20, 0.3));
    }
    50% { 
        filter: drop-shadow(0 0 20px rgba(57, 255, 20, 0.6)) drop-shadow(0 0 30px rgba(212, 175, 55, 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(57, 255, 20, 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(57, 255, 20, 0.2);
    border-color: var(--wryon-green);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(57, 255, 20, 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;
    }
}

/* ==========================================================================
   9. CHRISTMAS DECORATIONS - Present Removed
   ========================================================================== */

.decoration {
    position: fixed;
    z-index: 5;
    pointer-events: none;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.decoration img {
    width: 100%;
    height: auto;
    display: block;
}

/* REMOVED: Holly decorations - hiding via CSS as backup */
.decoration-top-left {
    display: none !important;
}

.decoration-top-right {
    display: none !important;
}

.decoration-bottom-left {
    display: none !important; /* Removed Wryon bottom-left decoration */
}

/* REMOVED: Present decoration */
.decoration-bottom-right {
    display: none !important;
}

.decoration:hover {
    transform: scale(1.1) rotate(5deg);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ==========================================================================
   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;
    }
}

/* ==========================================================================
   11. LEGACY CHAT STYLES (Hidden)
   ========================================================================== */

.chat-container {
    display: none;
}

.messages-container,
.input-container,
.input-wrapper,
.message-input,
.send-btn {
    display: none;
}

/* ==========================================================================
   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;
        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(57, 255, 20, 0.3)); }
        100% { filter: drop-shadow(0 0 40px rgba(57, 255, 20, 0.6)); }
    }
}