/* ========================================
   DESERT FORTUNE - THEME
   Egyptian Casino Atmosphere
   ======================================== */

:root {
    /* === SOLANA-ALIGNED COLOR PALETTE === */
    --color-bg-dark: #0a0a0f;
    --color-bg-gradient: linear-gradient(135deg,
        #0a0a0f 0%,
        #12121a 50%,
        #0e0e14 100%);

    /* Warm accent colors */
    --color-primary: #D4AF37;
    --color-secondary: #14F195;
    --color-accent-warm: #FFB800;
    --color-accent-gold: #D4AF37;
    --color-accent-amber: #B8860B;
    --color-accent-bronze: #8B6914;

    /* Status colors */
    --color-success: #14F195;
    --color-warning: #FFB800;
    --color-danger: #FF4545;

    /* Text colors */
    --color-text: #FFFFFF;
    --color-text-muted: rgba(255, 255, 255, 0.6);
    --color-text-gold: rgba(212, 175, 55, 0.9);

    /* Glass with warm tint */
    --color-glass: rgba(25, 18, 12, 0.7);
    --color-glass-border: rgba(212, 175, 55, 0.2);

    /* === SPACING === */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* === TYPOGRAPHY === */
    --font-family: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-xs: clamp(10px, 2vw, 12px);
    --font-sm: clamp(12px, 2.5vw, 14px);
    --font-base: clamp(14px, 3vw, 16px);
    --font-lg: clamp(16px, 3.5vw, 20px);
    --font-xl: clamp(20px, 4vw, 28px);
    --font-2xl: clamp(28px, 5vw, 40px);

    /* === EFFECTS === */
    --blur-glass: blur(20px);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-glow: 0 0 30px rgba(212, 175, 55, 0.3);
    --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.4);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;

    /* === TOUCH === */
    --touch-target-min: 44px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-base);
    color: var(--color-text);
    background: var(--color-bg-dark);
    background-image: var(--color-bg-gradient);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    position: relative;
}

/* ========================================
   UNIFIED ATMOSPHERE
   Consistent with main site design
   ======================================== */

/* Subtle texture layer */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -4;
    background:
        /* Subtle noise/grain texture simulation */
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.01;
    pointer-events: none;
}

/* Warm ambient light orbs */
.slot-ambient {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    overflow: hidden;
}

.slot-ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.08;
    will-change: transform;
}

.slot-ambient-orb-1 {
    width: 60vw;
    height: 60vw;
    max-width: 700px;
    max-height: 700px;
    background: radial-gradient(circle, rgba(153, 69, 255, 0.6) 0%, transparent 70%);
    top: 20%;
    left: 30%;
    animation: ambientDrift1 35s ease-in-out infinite;
}

.slot-ambient-orb-2 {
    width: 50vw;
    height: 50vw;
    max-width: 600px;
    max-height: 600px;
    background: radial-gradient(circle, rgba(20, 241, 149, 0.5) 0%, transparent 70%);
    bottom: 10%;
    right: 20%;
    animation: ambientDrift2 40s ease-in-out infinite;
}

@keyframes ambientDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(3%, 5%) scale(1.05); }
    66% { transform: translate(-2%, 3%) scale(0.98); }
}

@keyframes ambientDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-4%, -3%) scale(1.08); }
}

/* Animated Stars (matching main site) */
.particles {
    position: fixed;
    inset: 0;
    z-index: -5;
    pointer-events: none;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.7; }
}

/* Legacy - hidden */
.slot-stars,
.slot-pyramids {
    display: none;
}

/* Vignette effect - brightness fades toward edges */
.slot-vignette {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(
        ellipse 65% 55% at 50% 45%,
        transparent 0%,
        transparent 30%,
        rgba(10, 10, 15, 0.4) 60%,
        rgba(10, 10, 15, 0.7) 80%,
        rgba(10, 10, 15, 0.9) 100%
    );
    pointer-events: none;
}

/* Central purple glow - slot as light source */
.slot-focus-glow {
    position: fixed;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    z-index: -1;
    background: radial-gradient(
        ellipse 40% 45% at 50% 50%,
        rgba(153, 69, 255, 0.10) 0%,
        rgba(20, 241, 149, 0.05) 30%,
        rgba(153, 69, 255, 0.03) 50%,
        transparent 70%
    );
    pointer-events: none;
    animation: focusGlow 25s ease-in-out infinite;
}

@keyframes focusGlow {
    0%, 100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.85;
        transform: translate(-50%, -50%) scale(1.02);
    }
}

/* Ground shadow / podium effect beneath slot */
.slot-ground-shadow {
    position: fixed;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    max-width: 600px;
    height: 80px;
    z-index: -1;
    background: radial-gradient(
        ellipse 100% 100% at 50% 0%,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 40%,
        transparent 70%
    );
    pointer-events: none;
    filter: blur(20px);
}

.game-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    position: relative;
}

/* ========================================
   GLASS CARDS - Solana Theme
   ======================================== */
.card-glass {
    background: linear-gradient(
        145deg,
        rgba(18, 18, 26, 0.75) 0%,
        rgba(14, 14, 20, 0.85) 100%
    );
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid rgba(153, 69, 255, 0.2);
    border-radius: var(--radius-lg);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(153, 69, 255, 0.08);
}

/* === UTILITIES === */
.text-muted {
    color: var(--color-text-muted);
}

.icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .slot-ambient-orb,
    .slot-focus-glow {
        animation: none;
    }
}

/* === LOW GRAPHICS MODE === */
body.low-graphics-mode .card-glass {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(25, 18, 12, 0.95);
}

body.low-graphics-mode .mascot-container {
    display: none;
}

body.low-graphics-mode .slot-ambient,
body.low-graphics-mode .slot-stars,
body.low-graphics-mode .slot-pyramids,
body.low-graphics-mode .slot-vignette,
body.low-graphics-mode .slot-focus-glow,
body.low-graphics-mode .slot-ground-shadow,
body.low-graphics-mode::before {
    display: none;
}

body.low-graphics-mode {
    background: #0a0806;
}
