:root {
    /* Base Layers */
    --bg-primary: #0b0b0b;
    --bg-secondary: #1a1410;
    --surface-glass: rgba(255, 255, 255, 0.05);
    --surface-leather-glass: rgba(26, 20, 16, 0.85);
    
    /* Earth Tones */
    --brown-primary: #5a3a1e;
    --brown-secondary: #3b2412;
    --brown-highlight: #8b5a2b;
    
    /* Gold / Reward Accents */
    --gold-primary: #facc15;
    --gold-deep: #d4a017;
    --gold-glow: #ffe08a;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #e5e5e5;
    --text-muted: #b5b5b5;
    
    /* UI System */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --shadow-warm: 0 10px 30px rgba(59, 36, 18, 0.4);
    --shadow-gold: 0 0 20px rgba(250, 204, 21, 0.15);
    --shadow-gold-active: 0 0 30px rgba(250, 204, 21, 0.3);
    
    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --space-desk: 100px;
    --max-width: 1320px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Global Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 4rem; text-transform: uppercase; letter-spacing: 2px; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; text-transform: uppercase; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--gold-primary); }
p { margin-bottom: 1rem; color: var(--text-secondary); }

a {
    color: var(--gold-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--gold-glow);
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--surface-leather-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 160, 23, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(11, 11, 11, 0.95);
    box-shadow: var(--shadow-warm);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo span {
    color: var(--gold-primary);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links li a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--gold-primary);
}

.nav-links li a:hover {
    color: var(--gold-glow);
}

.nav-links li a:hover::after, .nav-links li a.active::after {
    width: 100%;
}

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

/* Button System */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-deep) 0%, var(--gold-primary) 100%);
    color: var(--bg-primary);
    border: none;
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-active);
    color: var(--bg-primary);
}

.btn-outline {
    background: transparent;
    color: var(--gold-primary);
    border: 2px solid var(--gold-deep);
}

.btn-outline:hover {
    background: rgba(212, 160, 23, 0.1);
    transform: translateY(-2px);
}

/* Cinematic Page Wrappers */
.page-wrapper {
    padding-top: 90px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Effects */
.bg-cinematic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.bg-cinematic::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(11,11,11,0.6) 0%, rgba(11,11,11,0.95) 100%);
    z-index: -1;
}

.dust-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('images/photo-1542382257-80da9fb9f5abc-dust-layer-dust-layer.png');
    opacity: 0.05;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 999;
}

/* Hero Section */
.hero {
    position: relative;
    padding: var(--space-desk) 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-secondary);
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-warm);
    border: 1px solid rgba(250, 204, 21, 0.2);
}

.hero-visual img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    filter: sepia(0.3) contrast(1.1);
}

/* Game Section */
.game-section {
    padding: var(--space-desk) 0;
    background: linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    text-align: center;
}

.game-header {
    margin-bottom: 50px;
}

.game-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-gold);
    border: 1px solid rgba(250, 204, 21, 0.3);
    overflow: hidden;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    transition: all 0.4s ease;
}

.game-wrapper:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-gold-active);
}

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

/* Feature Sections */
.features-section {
    padding: var(--space-desk) 0;
    background: var(--bg-secondary);
}

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

.feature-card {
    background: var(--surface-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 160, 23, 0.15);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-warm);
    background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
    font-size: 3rem;
    color: var(--gold-primary);
    margin-bottom: 20px;
}

/* Inner Pages & Legal */
.page-header {
    text-align: center;
    padding: 80px 0 40px;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--gold-primary);
}

.content-section {
    padding: 40px 0 100px;
}

.legal-content, .generic-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--surface-glass);
    padding: 60px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-content h2 { margin-top: 40px; font-size: 1.8rem; }
.legal-content h3 { margin-top: 25px; font-size: 1.3rem; color: var(--text-primary); }
.legal-content p, .legal-content ul { margin-bottom: 20px; }
.legal-content ul { padding-left: 20px; }
.legal-content li { margin-bottom: 10px; }

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: var(--surface-glass);
    padding: 60px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(250, 204, 21, 0.2);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--gold-primary);
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 15px;
    background: rgba(11, 11, 11, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.2);
}

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

/* Footer */
.site-footer {
    background: #050505;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(212, 160, 23, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 20px;
    display: block;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 400px;
}

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

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Utilities */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 20px; }
.mb-4 { margin-bottom: 40px; }
.highlight { color: var(--gold-primary); }