@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Source+Sans+3:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --forest-dark: #1a2f1a;
    --forest-mid: #2d4a2d;
    --leaf-green: #5fa85f;
    --moss-light: #8fbc8f;
    --bark-brown: #5d4037;
    --cream-paper: #f5f2eb;
    --gold-sun: #daa520;
    --berry-red: #a03030;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    background: var(--cream-paper);
    color: var(--forest-dark);
    min-height: 100vh;
    line-height: 1.8;
}

h1, h2, h3, h4 {
    font-family: 'Lora', serif;
    font-weight: 600;
}

a {
    color: var(--leaf-green);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--bark-brown);
}

/* Header */
.forest-header {
    background: var(--forest-dark);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(26, 47, 26, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 35px;
    max-width: 1500px;
    margin: 0 auto;
}

.forest-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.forest-logo svg {
    width: 50px;
    height: 50px;
}

.forest-logo span {
    font-family: 'Lora', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--moss-light);
}

.burger-menu {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.burger-menu span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--moss-light);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.forest-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.forest-nav a {
    color: var(--cream-paper);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 0;
    position: relative;
}

.forest-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--leaf-green);
    transition: width 0.3s ease;
}

.forest-nav a:hover {
    color: var(--leaf-green);
}

.forest-nav a:hover::after {
    width: 100%;
}

/* Hero */
.woodland-hero {
    padding: 150px 35px 90px;
    background: linear-gradient(180deg, var(--forest-dark) 0%, var(--forest-mid) 50%, var(--cream-paper) 100%);
    text-align: center;
}

.woodland-hero h1 {
    font-size: 3rem;
    color: var(--cream-paper);
    margin-bottom: 25px;
}

.woodland-hero h1 span {
    color: var(--leaf-green);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--moss-light);
    max-width: 680px;
    margin: 0 auto;
}

/* Notice Leaves */
.notice-leaves {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 60px 35px;
    flex-wrap: wrap;
    max-width: 1300px;
    margin: 0 auto;
}

.leaf-card {
    background: white;
    border: 2px solid var(--leaf-green);
    border-radius: 15px;
    padding: 35px 30px;
    text-align: center;
    flex: 1;
    min-width: 260px;
    max-width: 350px;
    box-shadow: 0 5px 20px rgba(26, 47, 26, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leaf-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(26, 47, 26, 0.15);
}

.leaf-card .leaf-icon {
    font-size: 2.8rem;
    margin-bottom: 18px;
}

.leaf-card h3 {
    font-size: 1.15rem;
    color: var(--forest-dark);
    margin-bottom: 12px;
}

.leaf-card p {
    color: var(--forest-mid);
    font-size: 0.95rem;
}

/* Game Grove */
.game-grove {
    padding: 70px 35px;
    background: var(--cream-paper);
}

.game-grove h2 {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 40px;
    color: var(--forest-dark);
}

.grove-frame {
    background: var(--forest-dark);
    border: 4px solid var(--bark-brown);
    border-radius: 20px;
    overflow: hidden;
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(93, 64, 55, 0.25);
}

.grove-frame iframe {
    width: 100%;
    height: 560px;
    border: none;
    display: block;
}

/* Trail Features */
.trail-features {
    padding: 80px 35px;
    background: linear-gradient(180deg, var(--cream-paper) 0%, #e8e4db 100%);
}

.trail-features h2 {
    text-align: center;
    font-size: 2.1rem;
    margin-bottom: 50px;
    color: var(--forest-dark);
}

.trail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    max-width: 1350px;
    margin: 0 auto;
}

.trail-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(26, 47, 26, 0.08);
}

.trail-item .trail-symbol {
    font-size: 3.2rem;
    margin-bottom: 18px;
}

.trail-item h4 {
    color: var(--forest-dark);
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.trail-item p {
    color: var(--forest-mid);
    font-size: 0.9rem;
}

/* About Clearing */
.about-clearing {
    padding: 80px 35px;
    background: var(--forest-mid);
}

.clearing-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.clearing-content h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--cream-paper);
}

.clearing-content p {
    margin-bottom: 20px;
    color: var(--moss-light);
    font-size: 1.05rem;
}

/* Footer */
.forest-footer {
    background: var(--forest-dark);
    padding: 50px 35px;
    text-align: center;
}

.forest-footer h4 {
    color: var(--leaf-green);
    margin-bottom: 25px;
    font-size: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 45px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.footer-links a {
    color: var(--moss-light);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--leaf-green);
}

.footer-copyright {
    border-top: 1px solid var(--forest-mid);
    padding-top: 25px;
    color: var(--moss-light);
    font-size: 0.85rem;
}

/* Age Gate */
.age-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 47, 26, 0.97);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.age-panel {
    background: var(--cream-paper);
    border: 3px solid var(--leaf-green);
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.age-panel h2 {
    color: var(--forest-dark);
    margin-bottom: 20px;
    font-size: 1.7rem;
}

.age-panel p {
    color: var(--forest-mid);
    margin-bottom: 30px;
}

.age-buttons {
    display: flex;
    gap: 18px;
    justify-content: center;
}

.btn-enter, .btn-exit {
    padding: 14px 38px;
    border: none;
    border-radius: 25px;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-enter {
    background: var(--leaf-green);
    color: white;
}

.btn-enter:hover {
    background: var(--forest-mid);
    transform: scale(1.05);
}

.btn-exit {
    background: transparent;
    border: 2px solid var(--bark-brown);
    color: var(--bark-brown);
}

.btn-exit:hover {
    background: var(--bark-brown);
    color: white;
}

.gate-hidden {
    display: none !important;
}

/* Page Styles */
.page-header {
    padding: 140px 35px 60px;
    background: linear-gradient(180deg, var(--forest-dark) 0%, var(--forest-mid) 100%);
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--cream-paper);
}

.page-body {
    padding: 50px 35px 80px;
    max-width: 920px;
    margin: 0 auto;
}

.page-body h2 {
    margin: 45px 0 20px;
    font-size: 1.6rem;
    color: var(--forest-dark);
}

.page-body h3 {
    margin: 35px 0 15px;
    font-size: 1.3rem;
    color: var(--bark-brown);
}

.page-body p {
    margin-bottom: 18px;
    color: var(--forest-mid);
}

.page-body ul {
    margin: 20px 0 25px 32px;
    color: var(--forest-mid);
}

.page-body li {
    margin-bottom: 12px;
}

/* Play Page */
.play-intro {
    padding: 130px 35px 50px;
    background: linear-gradient(180deg, var(--forest-dark) 0%, var(--forest-mid) 100%);
    text-align: center;
}

.play-intro h1 {
    font-size: 2.4rem;
    color: var(--cream-paper);
    margin-bottom: 15px;
}

.game-guide {
    max-width: 780px;
    margin: 35px auto;
    padding: 28px;
    background: white;
    border-radius: 12px;
    border-left: 4px solid var(--leaf-green);
    box-shadow: 0 3px 15px rgba(26, 47, 26, 0.1);
}

.game-guide h3 {
    color: var(--forest-dark);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .trail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .burger-menu {
        display: block;
    }
    
    .forest-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--forest-dark);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }
    
    .forest-nav.open {
        max-height: 380px;
    }
    
    .forest-nav ul {
        flex-direction: column;
        padding: 20px 35px;
        gap: 0;
    }
    
    .forest-nav li {
        border-bottom: 1px solid var(--forest-mid);
    }
    
    .forest-nav a {
        display: block;
        padding: 15px 0;
    }
    
    .woodland-hero h1 {
        font-size: 2.1rem;
    }
    
    .notice-leaves {
        flex-direction: column;
        align-items: center;
    }
    
    .leaf-card {
        max-width: 100%;
    }
    
    .trail-grid {
        grid-template-columns: 1fr;
    }
    
    .grove-frame iframe {
        height: 420px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .age-panel {
        margin: 20px;
        padding: 35px 25px;
    }
    
    .age-buttons {
        flex-direction: column;
    }
}
