:root {
    --primary-forest: #2D5016;
    --secondary-amber: #D97706;
    --accent-rose: #E11D48;
    --light-sage: #84CC16;
    --dark-earth: #1C1917;
    --darker-earth: #0C0A09;
    --card-bg: #292524;
    --text-primary: #FAFAF9;
    --text-secondary: #A8A29E;
    --border-color: #44403C;
    --heading-font: 'Georgia', serif;
    --body-font: 'Arial', sans-serif;
    --border-radius: 12px;
    --shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    --glow: 0 0 20px rgba(132, 204, 22, 0.3);
}

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

body {
    font-family: var(--body-font);
    background: linear-gradient(135deg, var(--darker-earth) 0%, var(--dark-earth) 50%, #1F2937 100%);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
}

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

a:hover {
    color: var(--secondary-amber);
    text-shadow: 0 0 8px rgba(217, 151, 6, 0.5);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header with Hamburger Menu */
.site-header {
    background: rgba(41, 37, 36, 0.72);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    padding: 1.2rem 0;
    border-bottom: 2px solid rgba(132,204,22,0.18);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.18), 0 1.5px 8px 0 rgba(132,204,22,0.08);
    border-radius: 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--heading-font);
    font-size: 2rem;
    font-weight: 700;
    color: var(--light-sage);
    text-shadow: 0 2px 8px rgba(132, 204, 22, 0.4);
    letter-spacing: 1px;
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 12px;
    background: var(--primary-forest);
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: var(--secondary-amber);
    border-color: var(--light-sage);
    box-shadow: var(--glow);
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--light-sage);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Navigation Menu */
.nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(41, 37, 36, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid var(--primary-forest);
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--shadow);
    min-width: 220px;
    display: none;
}

.nav-menu.active {
    display: block;
}

.nav-links {
    list-style: none;
    padding: 15px 0;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    display: block;
    padding: 15px 25px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--primary-forest);
    color: var(--light-sage);
    border-left-color: var(--light-sage);
    box-shadow: inset 0 0 10px rgba(132, 204, 22, 0.2);
}

/* Hero Section */
.hero-section {
    padding: 100px 20px 80px;
    text-align: center;
    /* background image with a subtle gradient overlay to keep text readable */
    background: linear-gradient(135deg, rgba(12,10,9,0.28), rgba(12,10,9,0.18)), url('hero.webp') center/cover no-repeat;
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(132,204,22,0.3)"/><circle cx="80" cy="40" r="1" fill="rgba(217,151,6,0.4)"/><circle cx="40" cy="80" r="1.5" fill="rgba(225,29,72,0.3)"/></svg>') repeat;
    /* slightly reduce pattern opacity so background image and content remain clear */
    opacity: 0.15;
    z-index: 1;
}

/* About section uses same hero image but slightly different overlay so the section-card remains prominent */
.about-section {
    position: relative;
    background: linear-gradient(135deg, rgba(12,10,9,0.36), rgba(12,10,9,0.22)), url('bg.jpeg') center/cover no-repeat;
    overflow: hidden;
    /* keep spacing consistent with other content sections */
    padding-top: 60px;
    padding-bottom: 60px;
}

.about-section .section-card {
    /* keep the semi-opaque card so text is easy to read while allowing the bg to show through */
    background: rgba(41, 37, 36, 0.78);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-family: var(--heading-font);
    font-size: 4rem;
    margin-bottom: 25px;
    color: var(--light-sage);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.hero-section p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-image-placeholder {
    width: 100%;
    max-width: 500px;
    height: 200px;
    background: linear-gradient(45deg, var(--primary-forest), var(--secondary-amber));
    border-radius: var(--border-radius);
    margin: 30px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    border: 2px solid var(--light-sage);
    box-shadow: var(--shadow);
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary-forest), var(--secondary-amber));
    color: white;
    padding: 16px 36px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border: none;
    cursor: pointer;
    margin: 0 10px;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, var(--light-sage), var(--accent-rose));
    color: white;
}

/* Disclaimer Box */
.disclaimer-box {
    background: linear-gradient(135deg, rgba(225,29,72,0.15), rgba(217,151,6,0.15)), url('bg.jpeg') center/cover no-repeat;
    border: 2px solid var(--accent-rose);
    border-radius: var(--border-radius);
    padding: 35px;
    margin: 50px auto;
    max-width: 850px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
}

.disclaimer-box::before {
    content: '⚠️';
    font-size: 2rem;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    padding: 0 15px;
}

.disclaimer-box h3 {
    font-family: var(--heading-font);
    color: var(--accent-rose);
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.secondary-btn {
    background: transparent;
    border: 2px solid var(--light-sage);
    color: var(--light-sage);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.secondary-btn:hover {
    background: var(--light-sage);
    color: var(--dark-earth);
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

/* Content Sections */
.content-section {
    margin: 80px 0;
}

.section-card {
    background: linear-gradient(135deg, rgba(41,37,36,0.82), rgba(41,37,36,0.78)), url('bg.jpeg') center/cover no-repeat;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 50px;
    box-shadow: var(--shadow);
    position: relative;
}

.section-title {
    font-family: var(--heading-font);
    font-size: 2.8rem;
    margin-bottom: 35px;
    text-align: center;
    color: var(--light-sage);
    letter-spacing: 1px;
}

/* Game Section */
.game-section {
    text-align: center;
}

.game-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.game-tab {
    background: var(--primary-forest);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    padding: 14px 28px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: var(--heading-font);
}

.game-tab:hover,
.game-tab.active {
    background: linear-gradient(135deg, var(--light-sage), var(--secondary-amber));
    color: white;
    border-color: var(--light-sage);
    transform: translateY(-3px);
    box-shadow: var(--glow);
}

.game-container {
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 0 auto;
    border: 3px solid var(--primary-forest);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background: var(--darker-earth);
    overflow: hidden;
}

.game-container iframe {
    width: 100%;
    max-width: 900px;
    height: auto;
    aspect-ratio: 16 / 9;
    border: none;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 40px;
}

.feature-card {
    background: linear-gradient(145deg, rgba(45,80,22,0.82), rgba(41,37,36,0.78)), url('bg.jpeg') center/cover no-repeat;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(132, 204, 22, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--light-sage);
    box-shadow: 0 15px 35px rgba(132, 204, 22, 0.2);
}

.feature-card h3 {
    font-family: var(--heading-font);
    color: var(--secondary-amber);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

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

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background: linear-gradient(135deg, rgba(45,80,22,0.82), rgba(41,37,36,0.78)), url('bg.jpeg') center/cover no-repeat;
    border-left: 5px solid var(--accent-rose);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
}

.review-card:hover {
    transform: translateY(-5px);
    border-left-color: var(--secondary-amber);
    box-shadow: 0 10px 25px rgba(217, 151, 6, 0.2);
}

.review-card p {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.reviewer {
    font-weight: 700;
    text-align: right;
    color: var(--light-sage);
    font-family: var(--heading-font);
}

/* Legal Pages */
.legal-page,
.contact-page {
    padding: 60px 0;
}

.legal-content {
    max-width: 950px;
    margin: 0 auto;
}

.legal-content h1 {
    font-family: var(--heading-font);
    font-size: 2.8rem;
    margin-bottom: 35px;
    text-align: center;
    color: var(--light-sage);
}

.legal-block {
    margin-bottom: 40px;
}

.legal-block h2 {
    font-size: 1.6rem;
    color: var(--secondary-amber);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
    font-family: var(--heading-font);
}

.legal-block ul {
    margin-left: 25px;
    color: var(--text-secondary);
}

.legal-block li {
    margin-bottom: 8px;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
}

.form-input {
    width: 100%;
    padding: 18px 24px;
    background: var(--primary-forest);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--body-font);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--light-sage);
    box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.2);
    background: var(--card-bg);
}

.form-input::placeholder {
    color: var(--text-secondary);
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--primary-forest), var(--card-bg));
    border-top: 3px solid var(--light-sage);
    padding: 60px 0 25px;
    margin-top: 100px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: var(--heading-font);
    color: var(--light-sage);
    margin-bottom: 25px;
    font-size: 1.4rem;
}

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

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

.footer-links a {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: inline-block;
    padding: 5px 0;
}

.footer-links a:hover,
.footer-links a.active {
    color: var(--light-sage);
    transform: translateX(8px);
    text-shadow: 0 0 8px rgba(132, 204, 22, 0.5);
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Modal */
.age-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: linear-gradient(135deg, var(--card-bg), var(--primary-forest));
    border: 3px solid var(--light-sage);
    padding: 50px;
    border-radius: var(--border-radius);
    max-width: 550px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
    position: relative;
}

.modal-content h2 {
    font-family: var(--heading-font);
    color: var(--light-sage);
    margin-bottom: 25px;
    font-size: 2.2rem;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 35px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Scroll to Top */
#scrollTop {
    display: none;
    position: fixed;
    bottom: 35px;
    right: 35px;
    z-index: 100;
    background: linear-gradient(135deg, var(--primary-forest), var(--secondary-amber));
    color: white;
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    font-size: 22px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

#scrollTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, var(--light-sage), var(--accent-rose));
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.8rem;
    }

    .hero-section {
        padding: 80px 20px 60px;
    }

    .section-card {
        padding: 35px 25px;
    }

    .game-container {
        height: auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }

    .modal-content {
        margin: 20px;
        padding: 35px 25px;
    }

    .game-container {
        height: auto;
    }

    .game-tabs {
        flex-direction: column;
        align-items: center;
    }
}