* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --teal: #14b8a6;
    --emerald: #10b981;
    --dark-teal: #0f766e;
    --darker: #064e3b;
    --darkest: #022c22;
    --cream: #fef3c7;
    --light: #f0fdfa;
    --muted: #ccfbf1;
}

body {
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle at 50% 50%, var(--darker), var(--darkest));
    color: var(--light);
    line-height: 1.6;
    min-height: 100vh;
}

/* Floating Navigation */
.floating-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(6, 78, 59, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid var(--teal);
    border-radius: 50px;
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(20, 184, 166, 0.3);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-symbol {
    font-size: 1.5rem;
    color: var(--teal);
}

.brand-text {
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cream);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '✦';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--teal);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--teal);
}

.nav-link.active::after {
    opacity: 1;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--teal);
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(6, 78, 59, 0.98);
    border: 2px solid var(--teal);
    border-radius: 20px;
    padding: 1rem 0;
    flex-direction: column;
    z-index: 999;
    min-width: 200px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-link {
    padding: 0.8rem 2rem;
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-link:hover {
    background: rgba(20, 184, 166, 0.1);
    border-left-color: var(--teal);
    color: var(--teal);
}

/* Age Gate */
.age-gate {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.age-gate.active {
    display: flex;
}

.gate-panel {
    background: linear-gradient(135deg, var(--darker), var(--darkest));
    border: 3px solid var(--teal);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    margin: 20px;
    text-align: center;
    box-shadow: 0 0 60px rgba(20, 184, 166, 0.5);
}

.gate-emblem {
    font-size: 4rem;
    color: var(--teal);
    margin-bottom: 1rem;
}

.gate-title {
    font-family: 'Crimson Text', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 1rem;
}

.gate-message {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.gate-notice {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 2rem;
}

.gate-buttons {
    display: flex;
    gap: 1rem;
}

.gate-btn {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--teal);
    background: transparent;
    color: var(--light);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gate-btn.enter:hover {
    background: var(--teal);
    color: var(--darkest);
    transform: translateY(-2px);
}

.gate-btn.leave {
    border-color: #f87171;
    color: #f87171;
}

.gate-btn.leave:hover {
    background: #f87171;
    color: var(--light);
}

/* Hero */
.hero,
.play-hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title,
.play-title {
    font-family: 'Crimson Text', serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(20, 184, 166, 0.5);
}

.hero-tagline,
.play-subtitle {
    font-size: 1.5rem;
    color: var(--teal);
    margin-bottom: 2rem;
}

.hero-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--muted);
}

/* Sections */
.principles,
.featured-game,
.about-realm,
.play-guide,
.play-chamber {
    padding: 4rem 2rem;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Crimson Text', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--cream);
    text-align: center;
    margin-bottom: 3rem;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 3rem;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.myth-card {
    background: rgba(20, 184, 166, 0.05);
    border: 2px solid var(--dark-teal);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.myth-card:hover {
    transform: translateY(-5px);
    border-color: var(--teal);
    box-shadow: 0 10px 30px rgba(20, 184, 166, 0.3);
}

.card-symbol {
    font-size: 2.5rem;
    color: var(--teal);
    margin-bottom: 1rem;
}

.card-title {
    font-family: 'Crimson Text', serif;
    font-size: 1.6rem;
    color: var(--teal);
    margin-bottom: 1rem;
}

.card-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--muted);
}

/* Game */
.game-chamber {
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--teal);
    box-shadow: 0 0 50px rgba(20, 184, 166, 0.4);
}

.game-chamber.large {
    max-width: 1200px;
    margin: 0 auto;
}

.game-window {
    width: 100%;
    height: 100%;
    border: none;
}

.game-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(20, 184, 166, 0.1);
    border: 2px solid var(--teal);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
}

/* About */
.about-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

.about-story p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--muted);
}

.realm-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    background: rgba(20, 184, 166, 0.05);
    border: 2px solid var(--dark-teal);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--teal);
    transform: translateX(5px);
}

.feature-icon {
    font-size: 2rem;
    color: var(--teal);
    margin-bottom: 0.5rem;
}

.feature-item h4 {
    font-family: 'Crimson Text', serif;
    font-size: 1.3rem;
    color: var(--cream);
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* Play Page */
.guide-title {
    font-family: 'Crimson Text', serif;
    font-size: 2.5rem;
    color: var(--cream);
    text-align: center;
    margin-bottom: 2rem;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.guide-item {
    background: rgba(20, 184, 166, 0.05);
    border: 2px solid var(--dark-teal);
    border-radius: 10px;
    padding: 1.5rem;
    font-size: 1.05rem;
    color: var(--muted);
}

.play-reminders {
    padding: 3rem 2rem;
}

.reminder-set {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.reminder {
    background: rgba(20, 184, 166, 0.1);
    border: 2px solid var(--teal);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Document Pages */
.document-page {
    padding: 8rem 2rem 3rem;
}

.document-container {
    max-width: 900px;
    margin: 0 auto;
}

.doc-header {
    text-align: center;
    padding-bottom: 3rem;
    border-bottom: 2px solid var(--dark-teal);
    margin-bottom: 3rem;
}

.doc-title {
    font-family: 'Crimson Text', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 0.5rem;
}

.doc-date {
    font-size: 1.1rem;
    color: var(--muted);
}

.doc-content {
    color: var(--muted);
}

.doc-section {
    margin-bottom: 3rem;
}

.doc-section h2 {
    font-family: 'Crimson Text', serif;
    font-size: 2rem;
    color: var(--teal);
    margin-bottom: 1rem;
}

.doc-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--darkest);
    border-top: 2px solid var(--teal);
    padding: 3rem 2rem 1.5rem;
    margin-top: 5rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-heading {
    font-family: 'Crimson Text', serif;
    font-size: 1.8rem;
    color: var(--cream);
    margin-bottom: 1rem;
}

.footer-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 1rem;
}

.footer-resources {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-resources a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-resources a:hover {
    color: var(--teal);
}

.footer-seal {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-teal);
    color: var(--muted);
}

/* Responsive */
@media (max-width: 768px) {
    .floating-nav {
        top: 10px;
        padding: 0.8rem 1.5rem;
        gap: 1rem;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-title,
    .play-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .doc-title {
        font-size: 2.5rem;
    }

    .game-chamber {
        aspect-ratio: 4/3;
    }
}

@media (max-width: 480px) {
    .brand-text {
        font-size: 1.2rem;
    }

    .hero-title,
    .play-title {
        font-size: 2rem;
    }

    .gate-panel {
        padding: 2rem;
    }

    .gate-buttons {
        flex-direction: column;
    }
}