:root {
    /* Palette: Dark Modern */
    --bg-dark: #121212;
    --bg-card: rgba(30, 30, 30, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-gold: #FFD700;
    --accent-gold-hover: #ffea70;
    --accent-blue: #00f2ea;
    --danger: #ff4d4d;
    --success: #4caf50;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --backdrop-blur: blur(10px);
    
    /* Spacing */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 48px;
    
    /* Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    background-image: radial-gradient(circle at 10% 20%, rgba(0, 242, 234, 0.05) 0%, transparent 20%),
                      radial-gradient(circle at 90% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 20%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

header {
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: var(--backdrop-blur);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: var(--glass-border);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: none; /* Mobile default */
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    margin-left: var(--spacing-lg);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

footer {
    background: #0a0a0a;
    padding: var(--spacing-xl) 0;
    margin-top: auto;
    border-top: var(--glass-border);
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    text-align: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 var(--spacing-sm);
    display: inline-block;
}

.badges {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.badge {
    border: 1px solid var(--text-secondary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Components */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-gold);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    background: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-secondary:hover {
    background: rgba(255, 215, 0, 0.1);
}

.btn-disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.7;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.3);
}

.game-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
}

/* Popups & Overlays */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

.popup {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--accent-gold);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.95);
    border-top: 1px solid var(--text-secondary);
    padding: var(--spacing-md);
    z-index: 900;
    transform: translateY(100%);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Sections */
.hero {
    text-align: center;
    padding: 60px 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(to right, #fff, var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
}

.feature-item {
    flex: 1 1 200px;
    text-align: center;
    padding: var(--spacing-md);
    border: var(--glass-border);
    border-radius: var(--radius-md);
}

/* Responsive */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    .mobile-menu-btn {
        display: none;
    }
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }
    .cookie-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* Mobile Menu Active State */
@media (max-width: 767px) {
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px; /* Header height approx */
        left: 0;
        width: 100%;
        background: rgba(18, 18, 18, 0.95);
        padding: var(--spacing-md);
        border-bottom: var(--glass-border);
        backdrop-filter: var(--backdrop-blur);
    }
    .nav-links.active li {
        margin: var(--spacing-sm) 0;
    }
    .nav-links.active a {
        margin-left: 0;
        display: block;
    }
}

.hidden {
    display: none !important;
}

/* Responsible Gaming Logos */
footer a img {
    transition: opacity 0.3s ease;
}

footer a:hover img {
    opacity: 1 !important;
}

