@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=DM+Sans:wght@400;500;600&display=swap');

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

:root {
    --forest: #166534;
    --lime: #84cc16;
    --orange: #f97316;
    --peach: #fed7aa;
    --dark-bg: #0c1810;
    --card-bg: #142318;
    --text: #f0fdf4;
    --text-muted: rgba(240, 253, 244, 0.7);
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--dark-bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

a {
    color: var(--lime);
    text-decoration: none;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(12, 24, 16, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    border-bottom: 1px solid rgba(132, 204, 22, 0.15);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0.9rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo svg {
    width: 44px;
    height: 44px;
}

.logo-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lime);
}

.menu-icon {
    display: none;
    background: none;
    border: 2px solid var(--orange);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
}

.menu-icon span {
    display: block;
    width: 22px;
    height: 3px;
    background: var(--orange);
    margin: 4px 0;
    border-radius: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-menu a {
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: all 0.25s;
}

.nav-menu a:hover {
    color: var(--text);
    background: rgba(132, 204, 22, 0.15);
}

/* Hero */
.hero-section {
    padding: 9rem 2rem 4rem;
    text-align: center;
    background: radial-gradient(ellipse at 50% 20%, rgba(132, 204, 22, 0.1) 0%, transparent 60%);
}

.hero-section h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    color: var(--lime);
}

.hero-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Notice Cards */
.notice-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.notice-card {
    flex: 1 1 280px;
    max-width: 360px;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(132, 204, 22, 0.1);
}

.notice-card .icon {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
}

.notice-card h3 {
    color: var(--orange);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.notice-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Game Container */
.game-wrap {
    max-width: 1400px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.game-frame {
    background: #0a120c;
    border: 3px solid var(--forest);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(22, 101, 52, 0.3);
}

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

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.benefit-item {
    background: var(--card-bg);
    padding: 1.8rem;
    border-radius: 12px;
    border-left: 4px solid var(--lime);
}

.benefit-item h3 {
    color: var(--orange);
    margin-bottom: 0.5rem;
}

.benefit-item p {
    color: var(--text-muted);
}

/* Page Layout */
.page-header {
    padding: 8rem 2rem 2rem;
    text-align: center;
    background: var(--card-bg);
}

.page-header h1 {
    color: var(--lime);
    font-size: 2.2rem;
}

.page-main {
    max-width: 850px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

.page-main h2 {
    color: var(--orange);
    font-size: 1.4rem;
    margin: 2rem 0 0.7rem;
}

.page-main p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.page-main ul {
    margin: 0.8rem 0 1.5rem 1.5rem;
}

.page-main li {
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

/* Tips Box */
.tips-box {
    background: rgba(22, 101, 52, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(132, 204, 22, 0.2);
}

.tips-box h3 {
    color: var(--lime);
    margin-bottom: 0.6rem;
}

/* Footer */
.footer {
    background: var(--card-bg);
    border-top: 1px solid rgba(132, 204, 22, 0.1);
    padding: 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--orange);
    font-weight: 600;
}

.footer-text {
    color: rgba(240, 253, 244, 0.4);
    font-size: 0.85rem;
}

/* Age Popup */
.age-popup {
    position: fixed;
    inset: 0;
    background: rgba(12, 24, 16, 0.97);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.age-popup.closed {
    display: none;
}

.age-content {
    background: var(--card-bg);
    border: 2px solid var(--forest);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 440px;
    margin: 1rem;
    text-align: center;
}

.age-content h2 {
    color: var(--lime);
    font-size: 1.7rem;
    margin-bottom: 1rem;
}

.age-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.age-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-enter {
    background: linear-gradient(135deg, var(--lime), var(--forest));
    color: var(--dark-bg);
    border: none;
    padding: 0.9rem 2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-exit {
    background: transparent;
    color: var(--orange);
    border: 2px solid var(--orange);
    padding: 0.9rem 2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    cursor: pointer;
}

.btn-enter:hover, .btn-exit:hover {
    transform: scale(1.03);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--dark-bg);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }

    .nav-menu.visible {
        max-height: 300px;
        padding: 1rem;
    }

    .nav-menu a {
        display: block;
        padding: 0.9rem;
        text-align: center;
    }

    .hero-section {
        padding: 7rem 1.5rem 3rem;
    }

    .game-frame iframe {
        height: 380px;
    }

    .notice-row {
        flex-direction: column;
        align-items: center;
    }

    .notice-card {
        max-width: 100%;
    }
}
