* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --forest-dark: #2d5016;
    --forest-medium: #558b2f;
    --leaf-green: #7cb342;
    --sage-green: #9ccc65;
    --gold-accent: #ffd54f;
    --cream: #faf8f3;
    --white: #ffffff;
    --text-dark: #1b3409;
    --text-medium: #4a5e3a;
}

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(to bottom, var(--cream) 0%, #f0ebe3 100%);
    color: var(--text-dark);
    line-height: 1.7;
}

.entry-gate {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.96) 0%, rgba(85, 139, 47, 0.96) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(12px);
}

.entry-gate.hidden {
    display: none;
}

.gate-panel {
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
    padding: 4rem 3.5rem;
    border-radius: 30px;
    max-width: 560px;
    text-align: center;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.4);
    border: 4px solid var(--gold-accent);
}

.gate-emblem {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: sway 3s ease-in-out infinite;
}

@keyframes sway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.gate-panel h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--forest-dark);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.gate-panel p {
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
    color: var(--text-medium);
}

.gate-options {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    justify-content: center;
}

.enter-btn,
.leave-btn {
    padding: 1.2rem 2.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.enter-btn {
    background: linear-gradient(135deg, var(--leaf-green) 0%, var(--forest-medium) 100%);
    color: white;
    box-shadow: 0 6px 25px rgba(124, 179, 66, 0.4);
}

.enter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(124, 179, 66, 0.6);
}

.leave-btn {
    background: #d0d0d0;
    color: var(--text-dark);
}

.leave-btn:hover {
    background: #b8b8b8;
}

.page-header {
    background: var(--white);
    padding: 1.5rem 0;
    box-shadow: 0 3px 20px rgba(45, 80, 22, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.page-header .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-mark svg {
    height: 80px;
    width: auto;
}

.menu-icon {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-icon span {
    width: 28px;
    height: 3px;
    background: var(--forest-dark);
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.menu-items {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.menu-items a {
    color: var(--forest-dark);
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    position: relative;
}

.menu-items a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--leaf-green);
    transition: width 0.3s ease;
}

.menu-items a:hover {
    color: var(--leaf-green);
}

.menu-items a:hover::after {
    width: 100%;
}

.welcome-area {
    padding: 6rem 2.5rem;
    background: linear-gradient(135deg, var(--sage-green) 0%, var(--leaf-green) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.welcome-area::before {
    content: '🍃';
    position: absolute;
    font-size: 15rem;
    opacity: 0.1;
    top: -3rem;
    right: -3rem;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

.welcome-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.subheading {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    font-style: italic;
    opacity: 0.95;
}

.essence-markers {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.marker {
    background: rgba(255, 255, 255, 0.25);
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.story-section,
.showcase-area,
.declaration-section,
.virtues-section {
    padding: 5rem 2.5rem;
}

.story-section h2,
.showcase-area h2,
.declaration-section h2,
.virtues-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--forest-dark);
    text-align: center;
    margin-bottom: 3rem;
}

.story-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.panel {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-left: 6px solid var(--leaf-green);
}

.panel-decoration {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.panel h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    color: var(--forest-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.panel p {
    font-size: 1.05rem;
    color: var(--text-medium);
    line-height: 1.8;
}

.showcase-area {
    background: var(--white);
}

.showcase-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-note {
    font-size: 1.2rem;
    color: var(--text-medium);
    font-style: italic;
    margin-top: 1rem;
}

.showcase-frame {
    margin: 0 auto;
    max-width: 100%;
    border: 6px solid var(--gold-accent);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 60px rgba(124, 179, 66, 0.25);
}

.game-portal {
    width: 100%;
    height: 680px;
    border: none;
    display: block;
}

.showcase-attributes {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.attribute {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--cream);
    padding: 1.2rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 3px solid var(--sage-green);
}

.attr-symbol {
    font-size: 2rem;
}

.attr-text {
    font-weight: 700;
    color: var(--forest-dark);
    font-size: 1.1rem;
}

.declarations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.declaration-card {
    padding: 3rem 2.5rem;
    border-radius: 25px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    color: white;
    text-align: center;
    transition: transform 0.3s ease;
}

.declaration-card:hover {
    transform: translateY(-10px);
}

.emerald {
    background: linear-gradient(135deg, var(--forest-medium) 0%, var(--forest-dark) 100%);
}

.jade {
    background: linear-gradient(135deg, var(--leaf-green) 0%, var(--forest-medium) 100%);
}

.forest {
    background: linear-gradient(135deg, var(--sage-green) 0%, var(--leaf-green) 100%);
}

.card-symbol {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.declaration-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.declaration-card p {
    font-size: 1.05rem;
    line-height: 1.8;
}

.virtues-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.virtue-tile {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    border-top: 5px solid var(--leaf-green);
    transition: transform 0.3s ease;
}

.virtue-tile:hover {
    transform: scale(1.05);
}

.virtue-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.virtue-tile h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--forest-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.virtue-tile p {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.page-footer {
    background: linear-gradient(135deg, var(--forest-dark) 0%, #1b3409 100%);
    color: white;
    padding: 4rem 2.5rem 1.5rem;
    margin-top: 5rem;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--gold-accent);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-section p {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.9;
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 0.8rem;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    opacity: 0.9;
}

.footer-nav a:hover {
    color: var(--gold-accent);
    opacity: 1;
}

.footer-base {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 2px solid rgba(255, 213, 79, 0.3);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .menu-icon {
        display: flex;
    }

    .menu-items {
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        padding: 2rem;
        box-shadow: -5px 5px 25px rgba(0, 0, 0, 0.2);
        border-radius: 0 0 0 20px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        gap: 1.5rem;
    }

    .menu-items.active {
        transform: translateX(0);
    }

    .menu-icon.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-icon.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-icon.active span:nth-child(3) {
        transform: rotate(-45deg) translate(9px, -9px);
    }

    .welcome-content h1 {
        font-size: 2.2rem;
    }

    .subheading {
        font-size: 1.1rem;
    }

    .essence-markers {
        flex-direction: column;
        align-items: center;
    }

    .game-portal {
        height: 480px;
    }

    .showcase-attributes {
        flex-direction: column;
        align-items: center;
    }

    .gate-panel {
        margin: 1.5rem;
        padding: 3rem 2rem;
    }

    .gate-options {
        flex-direction: column;
    }
}
