:root {
    /* Colors */
    --color-primary: #DAA520; /* Goldenrod */
    --color-secondary: #00FFFF; /* Cyan */
    --color-background: #1A0033; /* Deep Purple */
    --color-footer-bg: #0F0F23; /* Darker Purple-Blue */
    --color-button: #DC143C; /* Crimson - Main Button Color */
    --color-neon-glow-btn: #FF00FF; /* Magenta for button glow */
    --color-neon-glow-text: #00FFFF; /* Cyan for text glow */
    --color-text-light: #E0E0E0;
    --color-text-dark: #A0A0A0;

    /* Section Backgrounds - derived from user_specific_css_requests */
    --section-bg-1: #3A0066; /* Dark Purple */
    --section-bg-2: #00004D; /* Dark Blue */
    --section-bg-3: #800000; /* Maroon */
    --section-bg-4: #DAA520; /* Goldenrod - Primary Color as BG */
    --section-bg-5: #483D8B; /* Dark Slate Blue */
    --section-bg-6: #2B1A53; /* Medium Purple */
    --section-bg-7: #006666; /* Dark Cyan */
    --section-bg-8: #FF4500; /* Orange Red */

    /* Fonts */
    --font-family-heading: 'Space Mono', monospace;
    --font-family-body: 'Montserrat', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;

    /* Border Radius */
    --border-radius-sm: 0.5rem;
    --border-radius-md: 1rem;
    --border-radius-lg: 1.5rem; /* For buttons */

    /* Shadows */
    --shadow-neon-btn: 0 0 10px var(--color-neon-glow-btn), 0 0 20px var(--color-neon-glow-btn), 0 0 30px var(--color-neon-glow-btn);
    --shadow-neon-text: 0 0 5px var(--color-neon-glow-text), 0 0 10px var(--color-neon-glow-text);
    --shadow-glass-inner: inset 0 0 10px rgba(255, 255, 255, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.05);
    --shadow-brutalist: 8px 8px 0px var(--color-primary); /* For brutalist elements */
    --shadow-brutalist-hover: 12px 12px 0px var(--color-secondary);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    background-color: var(--color-background);
    color: var(--color-text-light);
    line-height: 1.7; /* Generous line-height for readability */
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll from shadows/animations */
    position: relative; /* For pseudo-elements */
}

/* Global Pseudo-element for background gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, var(--section-bg-6) 0%, transparent 40%),
                radial-gradient(circle at bottom right, var(--section-bg-2) 0%, transparent 40%);
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    color: var(--color-secondary);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.05em; /* Subtle spacing for futuristic feel */
    text-shadow: var(--shadow-neon-text);
}

h1 {
    font-size: 3.5rem;
    text-align: center;
    color: var(--color-primary);
    text-shadow: 0 0 15px var(--color-primary), 0 0 30px var(--color-primary);
}

h2 {
    font-size: 2.8rem;
    color: var(--color-secondary);
}

h3 {
    font-size: 2.2rem;
    color: var(--color-text-light);
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-light);
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    position: relative;
}

a:hover {
    color: var(--color-primary);
    text-shadow: var(--shadow-neon-text);
}

/* Section Backgrounds */
.section-bg-1 { background-color: var(--section-bg-1); }
.section-bg-2 { background-color: var(--section-bg-2); }
.section-bg-3 { background-color: var(--section-bg-3); }
.section-bg-4 { background-color: var(--section-bg-4); }
.section-bg-5 { background-color: var(--section-bg-5); }
.section-bg-6 { background-color: var(--section-bg-6); }
.section-bg-7 { background-color: var(--section-bg-7); }
.section-bg-8 { background-color: var(--section-bg-8); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-family: var(--font-family-heading);
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--color-text-light);
    background-color: var(--color-button);
    border: 3px solid var(--color-neon-glow-btn); /* Strong neon outline */
    border-radius: var(--border-radius-lg); /* Rounded rectangles */
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.2), /* Subtle inner shadow */
                0 0 15px var(--color-button),
                0 0 25px var(--color-neon-glow-btn); /* Initial outer glow */
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--color-secondary) 0%, transparent 70%);
    opacity: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease-out;
    z-index: 0;
}

.btn:hover {
    color: var(--color-secondary);
    background-color: darken(var(--color-button), 10%);
    border-color: var(--color-secondary);
    box-shadow: 0 0 20px var(--color-neon-glow-btn),
                0 0 40px var(--color-neon-glow-btn),
                0 0 60px var(--color-neon-glow-btn); /* Pulsating glow */
    transform: translateY(-2px);
}

.btn:hover::before {
    width: 200%;
    height: 200%;
    opacity: 0.3;
}

.btn:active {
    transform: translateY(1px);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5),
                0 0 10px var(--color-neon-glow-btn);
}

/* Brutalist elements - For specific sections/cards */
.brutalist-panel {
    background-color: rgba(0, 0, 0, 0.4);
    border: 4px solid var(--color-primary);
    box-shadow: var(--shadow-brutalist);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    position: relative;
    transition: all 0.3s ease;
}

.brutalist-panel:hover {
    box-shadow: var(--shadow-brutalist-hover);
    transform: translate(-4px, -4px); /* Shift to emphasize shadow */
    border-color: var(--color-secondary);
}

/* Glassmorphism effect */
.glassmorphism-card {
    background: rgba(255, 255, 255, 0.08); /* Slightly visible background */
    backdrop-filter: blur(10px); /* Blur effect */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    border: 1px solid rgba(255, 255, 255, 0.18); /* Subtle border */
    border-radius: var(--border-radius-md);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), var(--shadow-glass-inner);
    padding: var(--spacing-lg);
    margin: var(--spacing-md);
    transition: all 0.3s ease-in-out;
}

.glassmorphism-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45), var(--shadow-glass-inner);
}

/* Hero Section specific styles */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-xl);
    overflow: hidden;
    background: linear-gradient(135deg, var(--section-bg-1) 0%, var(--section-bg-5) 100%);
    border-bottom: 5px solid var(--color-neon-glow-btn); /* Thick glowing border */
    box-shadow: 0 0 20px var(--color-neon-glow-btn);
}

.hero-content {
    z-index: 10;
    max-width: 900px;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
    text-shadow: 0 0 20px var(--color-primary), 0 0 40px var(--color-primary);
    animation: text-flicker 1.5s infinite alternate;
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xl);
    text-shadow: var(--shadow-neon-text);
}

/* Footer Styles */
.site-footer {
    background-color: var(--color-footer-bg);
    color: var(--color-text-dark);
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
    border-top: 3px solid var(--color-neon-glow-btn);
    box-shadow: 0 0 20px var(--color-neon-glow-btn);
    position: relative;
    z-index: 10;
}

.site-footer a {
    color: var(--color-secondary);
    text-decoration: underline;
}

.site-footer a:hover {
    color: var(--color-primary);
}

/* Global utility classes for Tailwind integration */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

/* Keyframe Animations */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 10px var(--color-neon-glow-btn), 0 0 20px var(--color-neon-glow-btn); }
    50% { box-shadow: 0 0 20px var(--color-neon-glow-btn), 0 0 40px var(--color-neon-glow-btn), 0 0 60px var(--color-neon-glow-btn); }
    100% { box-shadow: 0 0 10px var(--color-neon-glow-btn), 0 0 20px var(--color-neon-glow-btn); }
}

@keyframes text-flicker {
    0%, 100% { opacity: 1; text-shadow: 0 0 15px var(--color-primary), 0 0 30px var(--color-primary); }
    50% { opacity: 0.8; text-shadow: 0 0 10px var(--color-primary), 0 0 20px var(--color-primary), 0 0 50px rgba(255, 255, 255, 0.2); }
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.2rem; }
    .hero-content h1 { font-size: 3.5rem; }
    .hero-content p { font-size: 1.2rem; }
}

@media (max-width: 768px) {
    :root {
        --spacing-lg: 1.5rem;
        --spacing-xl: 2.5rem;
    }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content p { font-size: 1rem; }
    .btn { padding: var(--spacing-sm) var(--spacing-md); font-size: 1rem; }
    .brutalist-panel { padding: var(--spacing-md); }
    .glassmorphism-card { padding: var(--spacing-md); }
    .site-footer { padding: var(--spacing-lg) var(--spacing-sm); }
}

@media (max-width: 480px) {
    :root {
        --spacing-md: 1rem;
        --spacing-lg: 1rem;
        --spacing-xl: 1.5rem;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 0.9rem; }
    .btn { font-size: 0.9rem; padding: 0.6rem 1rem; }
}


/* Cookie Banner Additional Styles for Tailwind */
.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner-hover-effect:hover {
        transform: none;
    }
}

/* Enhanced Game Visual Styles */
.game-canvas-container {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 60px rgba(218, 165, 32, 0.3);
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.game-canvas-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(218, 165, 32, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

#loadingScreen {
    z-index: 10;
}

.game-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 2;
    border-radius: 15px;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.3);
    display: block;
}

.game-controls {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9));
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.game-button {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.game-button:hover::before {
    left: 100%;
}

.game-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.game-button:active {
    transform: translateY(0);
}

.game-button.spin-button {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.game-button.deal-button {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.game-button.bet-button {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.game-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(218, 165, 32, 0.5);
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    border-top-color: #FFD700;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    from {
        box-shadow: 0 0 20px rgba(218, 165, 32, 0.5);
    }
    to {
        box-shadow: 0 0 40px rgba(218, 165, 32, 0.8);
    }
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Game Card Hover Effects */
.game-card {
    position: relative;
    overflow: hidden;
}

.game-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 215, 0, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.game-card:hover::after {
    transform: translateX(100%);
}

/* Responsive Gaming Interface */
@media (max-width: 768px) {
    .game-controls {
        padding: 15px;
    }
    
    .game-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .game-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .game-canvas-container {
        max-width: 100%;
        height: 300px !important;
    }
    
    .game-canvas {
        max-width: 100%;
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .game-canvas-container {
        height: 250px !important;
    }
    
    .game-canvas {
        max-height: 250px;
    }
}

/* Win Animation */
@keyframes winPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.win-animation {
    animation: winPulse 0.6s ease-in-out;
}

/* Gaming Table Felt Effect */
.game-table {
    background: 
        radial-gradient(ellipse at center, #0a5d2c 0%, #064d24 70%, #053a1c 100%);
    position: relative;
}

.game-table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px
        );
    pointer-events: none;
}