:root {
    --prairie-night: #0E1A17;
    --forest-green: #163126;
    --buffalo-brown: #5A4128;
    --golden-grass: #C89D4B;
    --sunrise-gold: #F0C86A;
    --sky-blue: #7EC7E8;
    --primary-text: #F7F5EE;
    --secondary-text: #D8D2C2;
    --muted-text: #A49A86;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--primary-text);
    /* The single continuous environment gradient */
    background: linear-gradient(to bottom, 
        var(--sky-blue) 0%, 
        var(--sunrise-gold) 15%, 
        var(--golden-grass) 30%, 
        var(--buffalo-brown) 50%, 
        var(--forest-green) 75%, 
        var(--prairie-night) 100%
    );
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-logo {
    font-family: 'Playfair Display', serif;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(22, 49, 38, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(240, 200, 106, 0.2);
    border-radius: 16px;
    background-image: url('assets/images/subtle-golden-grassland-texture.png');
    background-blend-mode: overlay;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 0;
}

/* Typography */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--sunrise-gold);
    margin-bottom: 3rem;
    text-shadow: 0 4px 12px rgba(14, 26, 23, 0.5);
}

.text-center { text-align: center; }

/* Header & Nav */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(14, 26, 23, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(240, 200, 106, 0.1);
}

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

.brand-logo {
    font-size: 1.5rem;
    color: var(--sunrise-gold);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
}

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

.nav-links a {
    color: var(--primary-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.btn-primary {
    background: var(--sunrise-gold);
    color: var(--prairie-night);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background: #f4d58a;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(240, 200, 106, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--sunrise-gold);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid var(--sunrise-gold);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline:hover {
    background: rgba(240, 200, 106, 0.1);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 4rem 5%;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary-text);
    text-shadow: 0 4px 12px rgba(14, 26, 23, 0.8);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--secondary-text);
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(14, 26, 23, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, var(--prairie-night) 0%, transparent 60%);
    opacity: 0.9;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Game Section */
.game-section {
    padding: 6rem 0;
    background: transparent; /* Relying on body gradient */
}

.game-wrapper {
    width: 75%;
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(14, 26, 23, 0.6);
    border: 2px solid rgba(240, 200, 106, 0.3);
    background: var(--prairie-night);
    position: relative;
}

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

/* Rewards Section */
.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.reward-card {
    padding: 1.5rem;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.reward-card:hover {
    transform: translateY(-10px);
}

.reward-img {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.reward-card h3 {
    color: var(--sunrise-gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.reward-card p {
    color: var(--secondary-text);
    line-height: 1.6;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--sunrise-gold);
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
}

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

/* About Snippet Section */
.about-snippet {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.about-snippet p {
    font-size: 1.25rem;
    color: var(--secondary-text);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

details {
    background: rgba(22, 49, 38, 0.4);
    border: 1px solid rgba(240, 200, 106, 0.2);
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

details:hover {
    border-color: rgba(240, 200, 106, 0.5);
}

summary {
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-text);
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    color: var(--sunrise-gold);
    font-size: 1.5rem;
}

details[open] summary::after {
    content: '-';
}

details p {
    margin-top: 1rem;
    color: var(--secondary-text);
    line-height: 1.6;
}

/* Interior Pages Content (Privacy, Terms, About, Contact) */
.page-header {
    text-align: center;
    padding: 4rem 0 2rem;
}

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

.content-panel {
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto 4rem;
}

.content-panel h2 {
    color: var(--sunrise-gold);
    margin: 2rem 0 1rem;
}

.content-panel p, .content-panel ul {
    color: var(--secondary-text);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-panel ul {
    padding-left: 1.5rem;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

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

.form-control {
    padding: 1rem;
    border-radius: 8px;
    background: rgba(14, 26, 23, 0.6);
    border: 1px solid rgba(240, 200, 106, 0.2);
    color: var(--primary-text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--sunrise-gold);
}

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

.success-state {
    text-align: center;
    padding: 2rem;
}

.success-state h3 {
    color: var(--sunrise-gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    position: relative;
    padding: 6rem 5% 3rem;
    background: var(--prairie-night);
    margin-top: 4rem;
}

/* Pure CSS Landscape Silhouettes */
.footer-hills {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    height: 120px;
    background: var(--prairie-night);
    clip-path: polygon(0 100%, 100% 100%, 100% 40%, 85% 15%, 65% 50%, 45% 20%, 20% 60%, 0 30%);
}

.footer-hills::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: var(--forest-green);
    clip-path: polygon(0 100%, 100% 100%, 100% 60%, 75% 25%, 50% 70%, 25% 35%, 0 80%);
    opacity: 0.6;
    z-index: -1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(240, 200, 106, 0.2);
    padding-bottom: 3rem;
}

.footer-col h3 {
    color: var(--sunrise-gold);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-col p {
    color: var(--muted-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--muted-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--sunrise-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    color: var(--muted-text);
    font-size: 0.9rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.support-email {
    font-weight: bold;
    color: var(--secondary-text);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    padding: 1.5rem;
    z-index: 9999;
    display: none;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(14, 26, 23, 0.8);
}

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

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .game-wrapper { width: 90%; }
    .hero h1 { font-size: 3rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .game-wrapper { width: 100%; border-radius: 8px; }
    .nav-links { display: none; /* In a real app, implement hamburger menu */ }
    .hero h1 { font-size: 2.5rem; }
    .hero { padding: 4rem 1rem; text-align: center; }
    .hero-content { margin: 0 auto; }
    .hero-buttons { justify-content: center; flex-direction: column; }
    .stats-grid { grid-template-columns: 1fr; }
    .container { width: 95%; padding: 3rem 0; }
}