@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-primary: #08131b;
    --bg-secondary: #10202b;
    --surface: #162c39;
    --accent-primary: #d8a54b;
    --accent-secondary: #57c6d8;
    --highlight: #f5e2a8;
    --text-primary: #f8fbff;
    --text-secondary: #bfd1da;
    --muted: #7d95a2;
    --glass-bg: rgba(22, 44, 57, 0.65);
    --glass-border: rgba(216, 165, 75, 0.15);
    --header-height: 80px;
    --transition-standard: 250ms ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 🌄 SINGLE BACKGROUND RULE */
.world-environment {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: linear-gradient(to bottom, rgba(8, 19, 27, 0.8), rgba(16, 32, 43, 0.95)), url('images/large-cinematic-scene-featuring-adventurer-slot-symbols-treasure-rewards-explorer-gear.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    color: var(--highlight);
    line-height: 1.2;
}

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

a:hover, a:focus {
    color: var(--accent-primary);
    outline: none;
}

/* 🧱 LOGO SYSTEM (HEADER ONLY) */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--highlight);
    letter-spacing: 1px;
}

.brand-logo svg {
    width: 32px;
    height: 32px;
    fill: var(--accent-primary);
    filter: drop-shadow(0 0 8px rgba(216, 165, 75, 0.4));
}

/* 🧭 HEADER */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(8, 19, 27, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(216, 165, 75, 0.1);
    z-index: 1000;
    transition: background-color var(--transition-standard), box-shadow var(--transition-standard);
}

.site-header.scrolled {
    background: rgba(8, 19, 27, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

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

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-primary);
    transition: width var(--transition-standard);
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 250ms ease-out;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #d8a54b 0%, #b8862d 100%);
    color: #08131b;
    box-shadow: 0 4px 15px rgba(216, 165, 75, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f5e2a8 0%, #d8a54b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(216, 165, 75, 0.4);
    color: #08131b;
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--highlight);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(22, 44, 57, 0.9);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* LAYOUT WRAPPERS */
.main-content {
    flex: 1;
    padding-top: var(--header-height);
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* 🎬 HERO SECTION */
.hero-section {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(to bottom, #ffffff 0%, #f5e2a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.8));
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    font-weight: 300;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* 🎮 GAME PROTECTION SYSTEM */
.game-section {
    padding: 2rem 0 6rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-container {
    width: 75%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px rgba(87, 198, 216, 0.15);
    position: relative;
    z-index: 10;
}

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

/* 🖼️ ADVENTURE STORY MODULE SYSTEM */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.story-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform var(--transition-standard), border-color var(--transition-standard);
}

.story-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4), 0 0 20px rgba(216, 165, 75, 0.1);
}

.story-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.story-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.story-card:hover .story-image-wrapper img {
    transform: scale(1.05);
}

.story-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(8, 19, 27, 0.85);
    color: var(--accent-secondary);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    border: 1px solid rgba(87, 198, 216, 0.3);
    backdrop-filter: blur(4px);
}

.story-content {
    padding: 2rem;
}

.story-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--highlight);
}

.story-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* 🎁 REWARDS SECTION */
.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.reward-item {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(180deg, rgba(22, 44, 57, 0.4) 0%, rgba(8, 19, 27, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: transform var(--transition-standard);
}

.reward-item:hover {
    transform: translateY(-5px);
    border-color: rgba(216, 165, 75, 0.3);
    background: linear-gradient(180deg, rgba(22, 44, 57, 0.6) 0%, rgba(8, 19, 27, 0.9) 100%);
}

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

.reward-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.reward-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.reward-item p {
    font-size: 0.85rem;
    color: var(--muted);
}

/* 📊 STATS SECTION */
.stats-section {
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(8, 19, 27, 0.6);
    backdrop-filter: blur(8px);
}

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

.stat-number {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(216, 165, 75, 0.3);
}

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

/* INTERIOR PAGES (About, Terms, etc.) */
.page-header {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(to bottom, rgba(8, 19, 27, 0.9) 0%, rgba(16, 32, 43, 0) 100%);
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

.prose {
    background: var(--glass-bg);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 3rem;
    border-radius: 8px;
    backdrop-filter: blur(12px);
}

.prose h2 {
    font-size: 2rem;
    margin: 2.5rem 0 1rem;
    color: var(--highlight);
}

.prose h2:first-child {
    margin-top: 0;
}

.prose p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.prose ul {
    margin: 0 0 1.5rem 2rem;
    color: var(--text-secondary);
}

.prose li {
    margin-bottom: 0.5rem;
}

/* 📞 CONTACT FORM */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: rgba(8, 19, 27, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color var(--transition-standard), box-shadow var(--transition-standard);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 10px rgba(87, 198, 216, 0.2);
}

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

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

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

.form-status.loading {
    display: block;
    background: rgba(216, 165, 75, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(216, 165, 75, 0.3);
}

/* 📄 FOOTER SYSTEM */
.site-footer {
    background: rgba(8, 19, 27, 0.98);
    border-top: 1px solid rgba(216, 165, 75, 0.15);
    padding: 5rem 2rem 2rem;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.5;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.footer-brand-col {
    max-width: 450px;
}

.footer-logo {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-title {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-primary);
}

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

.footer-nav a {
    color: var(--muted);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    transition: color var(--transition-standard), transform var(--transition-standard);
}

.footer-nav a:hover {
    color: var(--accent-primary);
    transform: translateX(5px);
}

.footer-email {
    margin-top: 0.5rem;
    color: var(--accent-secondary) !important;
}

.footer-email:hover {
    color: var(--highlight) !important;
}

.footer-disclaimer {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    margin-bottom: 2rem;
}

.footer-disclaimer p {
    color: var(--muted);
    font-size: 0.85rem;
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
}

.footer-bottom {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

/* 🍪 COOKIE SYSTEM */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(16, 32, 43, 0.95);
    border: 1px solid var(--accent-primary);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 9999;
    backdrop-filter: blur(10px);
    width: 90%;
    max-width: 700px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease, visibility 300ms ease;
}

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

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

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

/* 📱 RESPONSIVE SYSTEM */
@media (max-width: 1024px) {
    .game-container {
        width: 85%;
    }
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-brand-col {
        max-width: 100%;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links-col {
        text-align: center;
    }

    .footer-nav {
        align-items: center;
    }
    
    .footer-nav a:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: rgba(8, 19, 27, 0.98);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid rgba(216, 165, 75, 0.1);
    }
    .main-nav.active {
        display: flex;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .hero-actions {
        flex-direction: column;
    }
    .game-container {
        width: 100%;
        border-radius: 0;
    }
    .section-container {
        padding: 4rem 1rem;
    }
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        bottom: 1rem;
    }
}

/* ACCESSIBILITY */
:focus-visible {
    outline: 2px solid var(--accent-secondary);
    outline-offset: 4px;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}