:root {
    /* Colors */
    --color-primary: #FFD700; /* Gold - primary accent */
    --color-secondary: #8A2BE2; /* Blue Violet - secondary accent */
    --color-background: #1A1A2E; /* Dark Blue - main background */
    --color-footer-bg: #0F0221; /* Even darker blue/purple for footer */
    --color-button: #FF4500; /* Orange Red - button */
    --color-text: #E0FFFF; /* Light Cyan - main text */
    --color-neon-glow: #00FFFF; /* Cyan for neon effects */
    --color-input-border-focus: #00FFFF; /* Cyan for input focus */
    --color-placeholder-text: rgba(224, 255, 255, 0.6); /* Lighter text for placeholders */

    /* Section Backgrounds (Cyber-Casino Aesthetic) */
    --section-bg-1: #2C073F; /* Dark Purple */
    --section-bg-2: #1E0630; /* Even darker purple */
    --section-bg-3: #3A0F5F; /* Deeper Purple */
    --section-bg-4: #250838; /* Muted Dark Purple */
    --section-bg-5: #170428; /* Very dark purple */
    --section-bg-6: #4C157D; /* Richer Purple */

    /* Fonts */
    --font-family-base: 'Orbitron', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;

    /* Border Radius */
    --border-radius-sm: 0.5rem; /* lg */
    --border-radius-md: 0.75rem; /* xl */
    --border-radius-lg: 1rem; /* 2xl */
    --border-radius-full: 9999px;

    /* Shadows (Subtle, multi-layered with neon inner glows) */
    --shadow-neon-outer: 0 0 15px var(--color-neon-glow), 0 0 30px var(--color-neon-glow);
    --shadow-neon-inner: inset 0 0 8px var(--color-neon-glow);
    --shadow-card: 0 0 20px rgba(0, 0, 0, 0.5), var(--shadow-neon-outer);
    --shadow-button: 0 5px 15px rgba(255, 69, 0, 0.4), var(--shadow-neon-outer);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.7; /* Generous line-height for readability */
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll from animations/shadows */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-base);
    color: var(--color-primary);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.05em; /* Subtle letter spacing for headings */
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7); /* Gold text shadow */
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.3;
}

h3 {
    font-size: 1.8rem;
    font-weight: 500;
}

p {
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: var(--color-neon-glow);
    text-shadow: 0 0 10px var(--color-neon-glow);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--color-button);
    color: var(--color-text);
    border: 2px solid var(--color-button);
    border-radius: var(--border-radius-sm); /* Rounded rectangular */
    font-family: var(--font-family-base);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: var(--shadow-button); /* Neon border glow */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.7s ease;
    opacity: 0;
    z-index: -1;
}

.btn:hover {
    background-color: var(--color-primary);
    color: var(--color-background);
    border-color: var(--color-primary);
    transform: scale(1.05); /* Subtle scale-up */
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.6), var(--shadow-neon-outer);
}

.btn:hover::before {
    opacity: 1;
    transform: rotate(0deg);
}

.btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(255, 69, 0, 0.6);
}


/* Input Fields */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: var(--spacing-sm);
    background-color: rgba(0, 0, 0, 0.5); /* Dark background */
    color: var(--color-text);
    border: 2px solid rgba(138, 43, 226, 0.5); /* Neon-colored border */
    border-radius: var(--border-radius-sm);
    font-family: var(--font-family-base);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-neon-inner); /* Inner glow */
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
textarea::placeholder {
    color: var(--color-placeholder-text); /* Lighter contrasting color */
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-input-border-focus); /* Glow on focus */
    box-shadow: 0 0 15px var(--color-input-border-focus), var(--shadow-neon-inner);
}

/* Cards / UI Elements */
.card {
    background-color: rgba(30, 6, 48, 0.7); /* Semi-transparent dark purple */
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px); /* Subtle glassmorphism effect */
    border: 1px solid rgba(138, 43, 226, 0.3); /* Light border */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5), var(--shadow-card);
}

/* Section Backgrounds */
.section-bg-1 {
    background-color: var(--section-bg-1);
    padding: var(--spacing-xl) 0;
}

.section-bg-2 {
    background-color: var(--section-bg-2);
    padding: var(--spacing-xl) 0;
}

.section-bg-3 {
    background-color: var(--section-bg-3);
    padding: var(--spacing-xl) 0;
}

/* Utility Classes for Spacing (Tailwind-like) */
.py-section {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

/* Footer Specifics */
footer {
    background-color: var(--color-footer-bg);
    color: var(--color-text);
    padding: var(--spacing-xl) 0;
    text-align: center;
    border-top: 2px solid rgba(138, 43, 226, 0.4);
    box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* Scrollbar Styling (Futuristic) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--color-background);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-secondary), var(--color-neon-glow));
    border-radius: 10px;
    border: 2px solid var(--color-background);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--color-neon-glow), var(--color-primary));
}

/* Keyframes for subtle animations */
@keyframes neon-pulse {
    0% {
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.9), 0 0 25px rgba(255, 215, 0, 0.6);
    }
    100% {
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
}

h1.anim-neon-pulse {
    animation: neon-pulse 3s infinite alternate ease-in-out;
}

@keyframes background-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(138, 43, 226, 0.1), rgba(255, 215, 0, 0.1), rgba(0, 255, 255, 0.1));
    background-size: 400% 400%;
    animation: background-shift 20s ease infinite;
    z-index: -2; /* Below content and main background */
    opacity: 0.3;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    p {
        font-size: 1rem;
    }

    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 1rem;
    }

    .card {
        padding: var(--spacing-md);
    }

    .py-section {
        padding-top: var(--spacing-lg);
        padding-bottom: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn {
        width: 100%;
        margin-top: var(--spacing-sm);
    }
}


/* 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;
    }
}

/* ========== СОВРЕМЕННЫЕ ИГРОВЫЕ СТИЛИ ========== */

/* Game Container Styles */
.game-canvas-container {
    position: relative;
    background: linear-gradient(135deg, #0f0f23, #1a1a3a);
    border: 3px solid #FFD700;
    border-radius: 15px;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.5),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    min-height: 500px;
}

.game-table {
    background: radial-gradient(ellipse at center, rgba(0, 100, 0, 0.2) 0%, rgba(0, 50, 0, 0.4) 100%);
}

.game-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Loading Screen Styles */
.loading-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(20, 20, 40, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 215, 0, 0.3);
    border-top: 4px solid #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    from {
        text-shadow: 0 0 10px #FFD700, 0 0 20px #FFD700;
    }
    to {
        text-shadow: 0 0 20px #FFD700, 0 0 30px #FFD700, 0 0 40px #FFD700;
    }
}

/* Game Controls */
.game-controls {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(20, 20, 40, 0.8));
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
}

.game-button {
    background: linear-gradient(135deg, #1a1a3a, #2a2a5a);
    border: 2px solid #FFD700;
    color: white;
    padding: 12px 20px;
    margin: 5px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.game-button:hover {
    background: linear-gradient(135deg, #2a2a5a, #3a3a7a);
    border-color: #FFF700;
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.game-button:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.game-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Specific Button Types */
.spin-button {
    background: linear-gradient(135deg, #e73c7e, #23a6d5);
    border-color: #e73c7e;
    font-size: 16px;
    padding: 15px 25px;
    animation: pulse-spin 2s ease-in-out infinite;
}

@keyframes pulse-spin {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231, 60, 126, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(231, 60, 126, 0); }
}

.deal-button {
    background: linear-gradient(135deg, #28a745, #20c997);
    border-color: #28a745;
}

.bet-button {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    border-color: #ffc107;
    color: #000;
}

.bet-button:hover {
    color: #000;
    background: linear-gradient(135deg, #fff3cd, #ffc107);
}

/* Game Stats Panel */
.game-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.stat-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(30, 30, 60, 0.8));
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 12px;
    padding: 15px;
    min-width: 120px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.stat-label {
    font-size: 12px;
    color: #aaa;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Game Info Display */
.game-info {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(20, 20, 40, 0.7));
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(5px);
}

.game-message {
    text-align: center;
    font-weight: bold;
    color: #FFD700;
    margin: 10px 0;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Responsive Game Styles */
@media (max-width: 768px) {
    .game-controls {
        padding: 15px;
    }
    
    .game-button {
        padding: 10px 15px;
        font-size: 12px;
        margin: 3px;
    }
    
    .spin-button {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .game-stats {
        gap: 10px;
    }
    
    .stat-card {
        min-width: 100px;
        padding: 12px;
    }
    
    .stat-value {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .game-canvas-container {
        min-height: 400px;
    }
    
    .game-controls {
        padding: 10px;
    }
    
    .game-button {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .game-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-card {
        width: 100%;
        max-width: 200px;
    }
}

/* Neon Effects */
.neon-glow-sm {
    box-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 15px currentColor;
}

.neon-glow-md {
    box-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
}

.neon-border-thin {
    border: 1px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Gold Text Color */
.text-gold-400 {
    color: #FFD700;
}

.gold-400 {
    color: #FFD700;
}