:root {
    /* Color Palette - Arabian Nights Luxury Theme */
    --color-bg-dark: #0a0e17;
    --color-bg-surface: #121929;
    --color-primary: #D4AF37; /* Metallic Gold */
    --color-primary-light: #F3E5AB;
    --color-primary-dark: #AA8000;
    --color-text-primary: #f0f4f8;
    --color-text-secondary: #a0aec0;
    --color-danger: #e53e3e;
    
    /* Glassmorphism settings */
    --glass-bg: rgba(18, 25, 41, 0.6);
    --glass-border: rgba(212, 175, 55, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Lora', serif;
    
    /* Spacing & Layout */
    --container-max-width: 1200px;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
}

/* =========================================
   Reset & Base Styles
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    /* Subtle radial gradient mimicking moonlight on dunes */
    background-image: radial-gradient(circle at 50% 0%, #1a2438 0%, #0a0e17 60%);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-light);
}

ul {
    list-style-position: inside;
}

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

strong {
    color: var(--color-primary-light);
    font-weight: 600;
}

/* =========================================
   Utility Classes
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.text-center { text-align: center; }
.mb-4 { margin-bottom: var(--spacing-xl); }
.mt-4 { margin-top: var(--spacing-xl); }
.text-accent { color: var(--color-primary); }

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-bg-dark);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    color: var(--color-bg-dark);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

/* =========================================
   Header & Navigation
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--transition-normal);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.hamburger {
    display: block;
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--color-bg-dark);
    flex-direction: column;
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--glass-border);
    list-style: none;
}

.nav-links.active {
    display: flex;
}

.nav-links li {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.nav-links li:last-child {
    margin-bottom: 0;
}

.nav-link {
    color: var(--color-text-primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: var(--color-primary);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    padding: 160px 0 100px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.legal-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-primary);
    border-radius: 50px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary-light);
    margin-bottom: var(--spacing-lg);
    background: rgba(212, 175, 55, 0.1);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-inline: auto;
}

/* Inner Page Hero */
.page-hero {
    padding: 140px 0 60px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(10, 14, 23, 0) 0%, var(--color-bg-dark) 100%);
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 0;
}

/* =========================================
   Sections & Containers
   ========================================= */
.section {
    padding: var(--spacing-xl) 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
}

.glass-card h2 {
    font-size: 1.8rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Info Box */
.info-box {
    background: rgba(212, 175, 55, 0.05);
    border-left: 4px solid var(--color-primary);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

.info-box h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* =========================================
   Game Section
   ========================================= */
.game-section {
    position: relative;
    padding-top: 2rem;
}

.game-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--color-primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.2);
    background: #000;
}

.game-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* =========================================
   Features Section
   ========================================= */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.features-grid .glass-card {
    text-align: center;
    transition: transform var(--transition-normal);
}

.features-grid .glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.5);
}

.card-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    color: var(--color-primary);
}

/* =========================================
   Forms (Contact)
   ========================================= */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    color: var(--color-text-primary);
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(10, 14, 23, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(10, 14, 23, 0.9);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background: #05070a;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

.footer-disclaimer {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.footer-disclaimer p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    max-width: 900px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
}

.footer-col p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

/* =========================================
   Media Queries (Desktop / Tablet)
   ========================================= */
@media screen and (min-width: 768px) {
    .hamburger {
        display: none;
    }

    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        width: auto;
        background: transparent;
        padding: 0;
        border: none;
        align-items: center;
    }

    .nav-links li {
        margin-bottom: 0;
        margin-left: 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 4rem;
    }
    
    .glass-card {
        padding: 3rem;
    }
}

@media screen and (min-width: 1024px) {
    .hero {
        min-height: 90vh;
    }
}