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

:root {
    --forest-dark: #1a2f1a;
    --forest-mid: #2d4a2d;
    --emerald: #50c878;
    --gold-leaf: #d4af37;
    --cream: #faf8f0;
    --soft-white: #f5f3e8;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--cream);
    color: var(--forest-dark);
    min-height: 100vh;
    line-height: 1.7;
}

h1, h2, h3, h4, h5 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

a {
    color: var(--emerald);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--gold-leaf);
}

/* Top Bar */
.top-bar {
    background: var(--forest-dark);
    color: var(--cream);
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.brand-symbol {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--emerald), var(--gold-leaf));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.brand-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cream);
}

/* Hamburger */
.nav-toggle {
    display: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle div {
    width: 26px;
    height: 3px;
    background: var(--emerald);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-toggle.active div:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active div:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active div:last-child {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-links {
    display: flex;
    gap: 0.25rem;
}

.nav-links a {
    color: var(--cream);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.nav-links a:hover,
.nav-links a.selected {
    background: rgba(80, 200, 120, 0.2);
    color: var(--emerald);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--forest-dark);
        flex-direction: column;
        padding: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s;
    }

    .nav-links.show {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(80, 200, 120, 0.1);
    }
}

/* Main Container */
main {
    margin-top: 60px;
}

/* Welcome Section */
.welcome-section {
    background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest-mid) 100%);
    color: var(--cream);
    padding: 5rem 2rem;
    text-align: center;
}

.welcome-content {
    max-width: 800px;
    margin: 0 auto;
}

.welcome-section h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.welcome-section h1 .highlight {
    color: var(--emerald);
}

.welcome-section p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.action-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--emerald), #3da35d);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 8px 25px rgba(80, 200, 120, 0.35);
    transition: all 0.3s;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(80, 200, 120, 0.45);
    color: white;
}

.notice-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.notice-item {
    background: rgba(250, 248, 240, 0.1);
    border: 1px solid rgba(80, 200, 120, 0.4);
    padding: 0.6rem 1.3rem;
    border-radius: 25px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Game Display */
.game-display {
    padding: 4rem 2rem;
    background: var(--soft-white);
}

.game-container {
    max-width: 1000px;
    margin: 0 auto;
}

.game-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--forest-dark);
    margin-bottom: 2rem;
}

.game-box {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(26, 47, 26, 0.15);
}

.game-box iframe {
    width: 100%;
    height: 550px;
    border: none;
}

/* Benefits Grid */
.benefits-section {
    padding: 5rem 2rem;
    background: var(--cream);
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--forest-dark);
}

.benefits-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(80, 200, 120, 0.1);
    transition: all 0.3s;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(80, 200, 120, 0.15);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.benefit-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--forest-mid);
}

.benefit-card p {
    color: #666;
}

@media (max-width: 992px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* Story Section */
.story-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, var(--soft-white), var(--cream));
}

.story-container {
    max-width: 1100px;
    margin: 0 auto;
}

.story-block {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

.story-block:nth-child(even) {
    flex-direction: row-reverse;
}

.story-visual {
    flex: 0 0 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--emerald), var(--forest-mid));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.story-text {
    flex: 1;
}

.story-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--forest-dark);
}

.story-text p {
    color: #555;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .story-block,
    .story-block:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }

    .story-visual {
        flex: 0 0 150px;
        height: 150px;
        font-size: 3rem;
    }
}

/* Page Styles */
.page-hero {
    background: linear-gradient(135deg, var(--forest-dark), var(--forest-mid));
    color: var(--cream);
    padding: 7rem 2rem 4rem;
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 0.5rem;
}

.page-hero p {
    opacity: 0.8;
}

.page-body {
    max-width: 850px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

.page-body h2 {
    font-size: 1.6rem;
    margin: 2rem 0 1rem;
    color: var(--forest-mid);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--emerald);
}

.page-body p {
    margin-bottom: 1.2rem;
    color: #444;
}

.page-body ul {
    margin: 1rem 0 1.5rem 1.5rem;
    color: #444;
}

.page-body li {
    margin-bottom: 0.5rem;
}

/* Play Page */
.play-section {
    padding: 2rem;
    background: var(--soft-white);
    min-height: calc(100vh - 60px);
}

.play-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.play-frame {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(26, 47, 26, 0.2);
}

.play-frame iframe {
    width: 100%;
    height: 600px;
    border: none;
}

.play-guide {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border-left: 4px solid var(--emerald);
}

.play-guide h3 {
    color: var(--forest-mid);
    margin-bottom: 0.5rem;
}

.play-guide p {
    color: #555;
}

/* Footer */
footer {
    background: var(--forest-dark);
    color: var(--cream);
    padding: 3rem 2rem 1.5rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--emerald);
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.7;
}

.footer-nav h5,
.footer-help h5 {
    margin-bottom: 1rem;
    color: var(--gold-leaf);
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 0.4rem;
}

.footer-nav a {
    color: var(--cream);
    opacity: 0.8;
}

.footer-nav a:hover {
    opacity: 1;
    color: var(--emerald);
}

.help-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.help-links a {
    background: rgba(80, 200, 120, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: var(--cream);
    font-size: 0.9rem;
}

.help-links a:hover {
    background: rgba(80, 200, 120, 0.25);
}

.footer-end {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(250, 248, 240, 0.1);
    opacity: 0.7;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .help-links {
        align-items: center;
    }
}

/* Age Modal */
.age-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 47, 26, 0.97);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.age-modal-box {
    background: var(--cream);
    border-radius: 20px;
    padding: 3rem;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

.age-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.age-modal-box h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--forest-dark);
}

.age-modal-box p {
    color: #555;
    margin-bottom: 2rem;
}

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

.btn-accept {
    background: linear-gradient(135deg, var(--emerald), #3da35d);
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-accept:hover {
    transform: scale(1.05);
}

.btn-decline {
    background: transparent;
    border: 2px solid var(--forest-mid);
    color: var(--forest-dark);
    padding: 0.9rem 2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-decline:hover {
    background: rgba(45, 74, 45, 0.1);
}

.age-modal-overlay.hidden {
    display: none;
}
