:root {
    /* Colors */
    --primary-color: #ffd700; /* Gold */
    --secondary-color: #ff007f; /* Neon Pink */
    --background-color: #1a0033; /* Deep Violet */
    --footer-bg-color: #0d001a; /* Darkest Violet */
    --button-color: #e0115f; /* Raspberry */
    --text-color: #e0e0e0; /* Light Grey */
    --accent-color: #00ffff; /* Cyan for subtle glows */

    --section-bg-1: #4d0099; /* Dark Purple */
    --section-bg-2: #800000; /* Dark Red */
    --section-bg-3: #003366; /* Dark Blue */
    --section-bg-4: #330066; /* Even Darker Purple */
    --section-bg-5: #cc9900; /* Muted Gold */

    /* Typography */
    --heading-font: 'Orbitron', sans-serif;
    --body-font: 'Roboto', sans-serif;
    --base-font-size: 18px;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;

    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;

    /* Shadows & Glows */
    --neon-glow-primary: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
    --neon-glow-secondary: 0 0 5px var(--secondary-color), 0 0 10px var(--secondary-color), 0 0 20px var(--secondary-color);
    --neon-glow-button: 0 0 8px var(--button-color), 0 0 15px var(--button-color), 0 0 25px var(--button-color);
    --glassmorphism-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Transitions */
    --transition-speed: 0.3s;
    --transition-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Ease-out-quad */
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--base-font-size);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
    background-image: radial-gradient(at 50% 100%, var(--section-bg-4) 0%, transparent 70%),
                      radial-gradient(at 0% 0%, var(--section-bg-2) 0%, transparent 70%);
    background-repeat: no-repeat;
    background-size: 60% 60%, 40% 40%;
}

::selection {
    background-color: var(--primary-color);
    color: var(--background-color);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.05em;
    text-shadow: var(--neon-glow-primary);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    text-shadow: var(--neon-glow-primary);
}

h2 {
    font-size: 2.8rem;
    line-height: 1.2;
    text-shadow: var(--neon-glow-primary);
}

h3 {
    font-size: 2.2rem;
    line-height: 1.3;
    text-shadow: var(--neon-glow-secondary);
}

h4 {
    font-size: 1.8rem;
    line-height: 1.4;
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-ease), text-shadow var(--transition-speed) var(--transition-ease);
}

a:hover {
    color: var(--primary-color);
    text-shadow: var(--neon-glow-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    font-family: var(--heading-font);
    font-size: var(--base-font-size);
    font-weight: bold;
    color: var(--background-color);
    background-color: var(--button-color);
    border: 2px solid var(--button-color);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all var(--transition-speed) var(--transition-ease);
    position: relative;
    overflow: hidden;
    box-shadow: var(--neon-glow-button);
}

.btn:hover {
    background-color: transparent;
    color: var(--button-color);
    box-shadow: var(--neon-glow-button), 0 0 30px var(--button-color);
    transform: translateY(-2px) scale(1.02);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

/* Ripple Effect for Buttons */
.btn::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    width: 100px;
    height: 100px;
    margin-top: -50px;
    margin-left: -50px;
    opacity: 0;
    transition: all 0.5s var(--transition-ease);
    transform: scale(0);
}

.btn:not([disabled]):active::after {
    transform: scale(1);
    opacity: 1;
    transition: 0s;
}

/* Section Backgrounds */
.section-bg-1 {
    background-color: var(--section-bg-1);
    background-image: linear-gradient(135deg, var(--section-bg-1) 0%, rgba(77, 0, 153, 0.7) 100%),
                      radial-gradient(circle at top left, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    border-top: 2px solid rgba(255, 215, 0, 0.2);
    border-bottom: 2px solid rgba(255, 0, 127, 0.2);
}

.section-bg-2 {
    background-color: var(--section-bg-2);
    background-image: linear-gradient(45deg, var(--section-bg-2) 0%, rgba(128, 0, 0, 0.7) 100%),
                      radial-gradient(circle at bottom right, rgba(255, 0, 127, 0.1) 0%, transparent 50%);
    border-top: 2px solid rgba(255, 0, 127, 0.2);
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
}

.section-bg-3 {
    background-color: var(--section-bg-3);
    background-image: linear-gradient(225deg, var(--section-bg-3) 0%, rgba(0, 51, 102, 0.7) 100%),
                      radial-gradient(circle at center, rgba(0, 255, 255, 0.05) 0%, transparent 60%);
    border-top: 2px solid rgba(0, 255, 255, 0.2);
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
}

.section-bg-4 {
    background-color: var(--section-bg-4);
    background-image: linear-gradient(90deg, var(--section-bg-4) 0%, rgba(51, 0, 102, 0.7) 100%),
                      repeating-linear-gradient(45deg, rgba(255, 215, 0, 0.05) 0px, rgba(255, 215, 0, 0.05) 2px, transparent 2px, transparent 10px);
    border-top: 2px solid rgba(255, 215, 0, 0.2);
    border-bottom: 2px solid rgba(255, 0, 127, 0.2);
}

.section-bg-5 {
    background-color: var(--section-bg-5);
    background-image: linear-gradient(-90deg, var(--section-bg-5) 0%, rgba(204, 153, 0, 0.7) 100%),
                      radial-gradient(circle at 10% 90%, rgba(255, 0, 127, 0.1) 0%, transparent 50%);
    border-top: 2px solid rgba(255, 0, 127, 0.2);
    border-bottom: 2px solid rgba(0, 255, 255, 0.2);
}

/* Cards (Glassmorphism inspired) */
.card {
    background: rgba(255, 255, 255, 0.05); /* Very slight white tint for transparency */
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--glassmorphism-shadow);
    backdrop-filter: blur(10px); /* Glassmorphism blur */
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    transition: transform var(--transition-speed) var(--transition-ease), box-shadow var(--transition-speed) var(--transition-ease);
    position: relative;
    overflow: hidden; /* For inner glow */
}

.card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--glassmorphism-shadow), 0 0 25px rgba(255, 215, 0, 0.3); /* Subtle outer glow */
    border-color: rgba(255, 215, 0, 0.3); /* Border highlight */
}

/* Neon Borders for elements */
.neon-border {
    border: 2px solid var(--primary-color);
    box-shadow: var(--neon-glow-primary);
    transition: all var(--transition-speed) var(--transition-ease);
}

.neon-border:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--neon-glow-secondary);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: var(--base-font-size);
    box-shadow: inset 0 0 5px rgba(255, 0, 127, 0.3);
    transition: border-color var(--transition-speed) var(--transition-ease), box-shadow var(--transition-speed) var(--transition-ease);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: inset 0 0 8px rgba(255, 215, 0, 0.5), 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Footer */
footer {
    background-color: var(--footer-bg-color);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
    border-top: 2px solid rgba(255, 215, 0, 0.1);
    box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.3);
}

footer a {
    color: var(--primary-color);
    text-shadow: none;
}

footer a:hover {
    color: var(--secondary-color);
    text-shadow: var(--neon-glow-secondary);
}

/* Animations */
@keyframes glow-pulse {
    0% { box-shadow: var(--neon-glow-primary); }
    50% { box-shadow: var(--neon-glow-secondary); }
    100% { box-shadow: var(--neon-glow-primary); }
}

.animate-glow-pulse {
    animation: glow-pulse 3s infinite alternate;
}

/* Utility classes for layout (assuming Tailwind is present, these complement) */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* For Firefox */
    background-clip: text;
    color: transparent;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.6rem;
    }

    .btn {
        padding: var(--spacing-sm);
        font-size: 1rem;
    }

    .card {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    :root {
    --base-font-size: 16px;
    }
    
    body {
    line-height: 1.6;
    }
}


/* 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);
}

/* Game Features */
.game-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

/* 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;
}