/* Mythryxal - Enchanted Forest Theme */
@import url('https://fonts.googleapis.com/css2?family=Uncial+Antiqua&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --forest-deep: #0a1f0a;
    --moss-green: #2d5a27;
    --emerald-glow: #50c878;
    --ancient-gold: #c9a227;
    --mist-white: #e8f4e5;
    --bark-brown: #3d2914;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Crimson Text', Georgia, serif;
    background: var(--forest-deep);
    color: var(--mist-white);
    min-height: 100vh;
    line-height: 1.7;
    background-image: 
        radial-gradient(ellipse at 10% 90%, rgba(45, 90, 39, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 10%, rgba(80, 200, 120, 0.1) 0%, transparent 40%);
}

/* Navigation */
header.forest-nav {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(10, 31, 10, 0.98), rgba(10, 31, 10, 0.92));
    border-bottom: 3px solid var(--moss-green);
}

.nav-wrap {
    max-width: 1500px;
    margin: 0 auto;
    padding: 1rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-name {
    font-family: 'Uncial Antiqua', cursive;
    font-size: 2rem;
    color: var(--emerald-glow);
    text-decoration: none;
    text-shadow: 0 0 20px rgba(80, 200, 120, 0.5);
}

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

nav.forest-links a {
    font-family: 'Crimson Text', serif;
    color: var(--mist-white);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s, text-shadow 0.3s;
}

nav.forest-links a:hover {
    color: var(--emerald-glow);
    text-shadow: 0 0 10px rgba(80, 200, 120, 0.6);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
}

.menu-toggle span {
    width: 26px;
    height: 3px;
    background: var(--emerald-glow);
    border-radius: 3px;
    transition: all 0.3s;
}

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

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

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

/* Enchanted Hero */
.enchanted-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 2rem 60px;
    background: 
        linear-gradient(to bottom, transparent, var(--forest-deep)),
        repeating-linear-gradient(90deg, transparent, transparent 100px, rgba(80, 200, 120, 0.02) 100px, rgba(80, 200, 120, 0.02) 101px);
    position: relative;
}

.hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-text h1 {
    font-family: 'Uncial Antiqua', cursive;
    font-size: 3.2rem;
    color: var(--emerald-glow);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-shadow: 2px 2px 20px rgba(80, 200, 120, 0.4);
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--mist-white);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.forest-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--moss-green), var(--emerald-glow));
    color: var(--forest-deep);
    text-decoration: none;
    font-family: 'Uncial Antiqua', cursive;
    font-size: 1.1rem;
    border-radius: 30px;
    transition: all 0.4s;
    box-shadow: 0 0 30px rgba(80, 200, 120, 0.3);
}

.forest-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(80, 200, 120, 0.5);
}

.hero-notices {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.notice-leaf {
    background: rgba(45, 90, 39, 0.3);
    border-left: 4px solid var(--emerald-glow);
    padding: 1.5rem 2rem;
    border-radius: 0 15px 15px 0;
}

.notice-leaf h4 {
    font-family: 'Uncial Antiqua', cursive;
    color: var(--ancient-gold);
    margin-bottom: 0.5rem;
}

.notice-leaf p {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* Game Grove */
.game-grove {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, var(--forest-deep), rgba(45, 90, 39, 0.2), var(--forest-deep));
}

.grove-title {
    font-family: 'Uncial Antiqua', cursive;
    font-size: 2.2rem;
    color: var(--emerald-glow);
    text-align: center;
    margin-bottom: 2rem;
}

.game-frame {
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(10, 31, 10, 0.8);
    border: 3px solid var(--moss-green);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(80, 200, 120, 0.15);
}

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

/* Magical Features */
.magical-features {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.features-flex {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.magic-card {
    flex: 1;
    min-width: 280px;
    background: linear-gradient(145deg, rgba(45, 90, 39, 0.4), rgba(10, 31, 10, 0.8));
    border: 2px solid rgba(80, 200, 120, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s;
}

.magic-card:hover {
    transform: translateY(-10px);
    border-color: var(--emerald-glow);
    box-shadow: 0 20px 50px rgba(80, 200, 120, 0.2);
}

.magic-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.magic-card h3 {
    font-family: 'Uncial Antiqua', cursive;
    color: var(--ancient-gold);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.magic-card p {
    color: var(--mist-white);
    opacity: 0.85;
}

/* Lore Section */
.lore-section {
    padding: 5rem 2rem;
    background: rgba(61, 41, 20, 0.2);
}

.lore-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.lore-section h2 {
    font-family: 'Uncial Antiqua', cursive;
    color: var(--emerald-glow);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.lore-section p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    color: var(--mist-white);
    opacity: 0.9;
}

/* Footer */
footer.forest-footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 3rem 2rem;
    border-top: 3px solid var(--moss-green);
}

.footer-wrap {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.help-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

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

.help-links a:hover {
    color: var(--ancient-gold);
}

.footer-note {
    color: var(--mist-white);
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Age Verification */
.age-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.age-box {
    background: linear-gradient(145deg, var(--forest-deep), var(--bark-brown));
    border: 3px solid var(--emerald-glow);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 0 80px rgba(80, 200, 120, 0.3);
}

.age-box h2 {
    font-family: 'Uncial Antiqua', cursive;
    color: var(--emerald-glow);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.age-box p {
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.age-enter {
    padding: 0.9rem 2.2rem;
    background: linear-gradient(135deg, var(--moss-green), var(--emerald-glow));
    color: var(--forest-deep);
    border: none;
    font-family: 'Uncial Antiqua', cursive;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s;
}

.age-enter:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(80, 200, 120, 0.5);
}

.age-leave {
    padding: 0.9rem 2.2rem;
    background: transparent;
    color: var(--mist-white);
    border: 2px solid var(--mist-white);
    font-family: 'Uncial Antiqua', cursive;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s;
}

.age-leave:hover {
    border-color: var(--ancient-gold);
    color: var(--ancient-gold);
}

/* Inner Pages */
.inner-page {
    padding: 120px 2rem 60px;
    min-height: 100vh;
}

.inner-wrap {
    max-width: 950px;
    margin: 0 auto;
}

.inner-page h1 {
    font-family: 'Uncial Antiqua', cursive;
    color: var(--emerald-glow);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.inner-page h2 {
    font-family: 'Uncial Antiqua', cursive;
    color: var(--ancient-gold);
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
}

.inner-page p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

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

.inner-page li {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-notices {
        max-width: 500px;
        margin: 0 auto;
    }
}

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

    nav.forest-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--forest-deep);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(-100%);
        transition: transform 0.3s;
        border-bottom: 3px solid var(--moss-green);
    }

    nav.forest-links.open {
        transform: translateX(0);
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

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

    .features-flex {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .site-name {
        font-size: 1.5rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

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

    .age-actions {
        flex-direction: column;
    }
}
