:root {
    --bg-primary: #0b0f18;
    --bg-secondary: #121926;
    --surface: #1a2436;
    --surface-glass: rgba(26, 36, 54, 0.7);
    --accent-primary: #d4af37;
    --accent-secondary: #78b8ff;
    --highlight: #f4e6a1;
    --text-primary: #f7f8fb;
    --text-secondary: #b8c2d1;
    --text-muted: #7c8798;
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-speed: 250ms;
    --glass-border: 1px solid rgba(212, 175, 55, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

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

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

body {
    background-image: 
        linear-gradient(to bottom, rgba(11, 15, 24, 0.65), rgba(11, 15, 24, 0.95)),
        url('images/photo-1531366936337-77cf5e084ce6.png');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header & Nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 15, 24, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: var(--glass-border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--accent-primary);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

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

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width var(--transition-speed) ease;
    box-shadow: 0 0 8px var(--accent-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37, #f4e6a1, #d4af37);
    background-size: 200% 200%;
    color: #000 !important;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    display: inline-block;
}

.btn-primary:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    color: #000 !important;
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary) !important;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--accent-primary);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2) inset;
}

/* Base Section System */
main {
    flex-grow: 1;
}

.section-wrapper {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-block {
    background: var(--surface-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: var(--glass-border);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--glass-shadow);
    margin-bottom: 4rem;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.context-badge {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-secondary);
    background: rgba(120, 184, 255, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(120, 184, 255, 0.3);
    margin-bottom: 1.5rem;
}

.section-hero-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Game Frame Area */
.game-container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2), 0 10px 40px rgba(0,0,0,0.8);
    position: relative;
    z-index: 10;
}

.game-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Grids & Cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.reward-card {
    background: rgba(18, 25, 38, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.reward-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5), 0 0 15px rgba(212, 175, 55, 0.1) inset;
}

.reward-icon {
    font-size: 2.5rem;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
}

.reward-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.reward-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    border-bottom: 2px solid var(--accent-primary);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--highlight);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(244, 230, 161, 0.3);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Forms */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(18, 25, 38, 0.8);
    padding: 3rem;
    border-radius: 8px;
    border: var(--glass-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: border-color var(--transition-speed) ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(0, 0, 0, 0.6);
}

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

.form-status {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
}

.form-status.loading {
    display: block;
    background: rgba(120, 184, 255, 0.1);
    color: var(--accent-secondary);
    border: 1px solid rgba(120, 184, 255, 0.3);
}

.form-status.success {
    display: block;
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.form-status.error {
    display: block;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Typography Page Content */
.text-content {
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-secondary);
}

.text-content h2, .text-content h3 {
    color: var(--accent-primary);
    margin: 2rem 0 1rem 0;
}

.text-content p {
    margin-bottom: 1.5rem;
}

.text-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.text-content li {
    margin-bottom: 0.5rem;
}

/* Comprehensive Footer */
.site-footer {
    background: #05080c;
    padding: 4rem 2rem 2rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 400px;
    line-height: 1.6;
}

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

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav-col a, .support-email {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition-speed) ease;
}

.footer-nav-col a:hover {
    color: var(--accent-primary);
}

.footer-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-meta p {
    margin-bottom: 0.5rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface);
    border: var(--glass-border);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 9999;
    max-width: 90%;
    width: max-content;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease;
}

.cookie-banner.show {
    opacity: 1;
    visibility: visible;
}

.cookie-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
}

.btn-cookie {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.btn-cookie-accept {
    background: var(--accent-primary);
    color: #000;
}

.btn-cookie-reject {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .game-container {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none; /* In a real app, implement hamburger menu. Keeping flat for constraints. */
    }
    .game-container {
        width: 100%;
    }
    .section-title {
        font-size: 2rem;
    }
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        bottom: 0;
        border-radius: 8px 8px 0 0;
        width: 100%;
    }
    .section-wrapper {
        padding: 4rem 1rem;
    }
    .section-block {
        padding: 2rem 1rem;
    }
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }
    .footer-desc {
        margin: 0 auto;
    }
}