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

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

:root {
    --spectral-green: #10b981;
    --ghost-teal: #14b8a6;
    --phantom-dark: #042f2e;
    --shadow: #0a1f1c;
    --ectoplasm: #34d399;
    --mist: #d1fae5;
    --pale: #ecfdf5;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    background: var(--shadow);
    color: var(--pale);
    line-height: 1.7;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(180deg, var(--shadow) 0%, transparent 100%);
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-brand {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--spectral-green);
    text-decoration: none;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

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

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--spectral-green);
    border-radius: 2px;
}

.site-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.site-nav a {
    color: var(--mist);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
}

.site-nav a:hover {
    color: var(--spectral-green);
}

main {
    padding-top: 75px;
}

.spectral-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(20, 184, 166, 0.1) 0%, transparent 50%),
        var(--shadow);
    text-align: center;
    position: relative;
}

.spectral-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2310b981' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-container {
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero-container h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--mist);
}

.hero-container h1 span {
    color: var(--spectral-green);
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
}

.hero-container .lead {
    font-size: 1.3rem;
    color: var(--ghost-teal);
    margin-bottom: 1rem;
    font-style: italic;
}

.hero-container p {
    font-size: 1.1rem;
    color: var(--mist);
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.9;
}

.ghost-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--spectral-green);
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid var(--spectral-green);
    transition: 0.3s;
}

.ghost-btn:hover {
    background: var(--spectral-green);
    color: var(--shadow);
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.4);
}

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

.notice-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.8rem 1.3rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-portal {
    padding: 5rem 2rem;
    background: var(--phantom-dark);
}

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

.portal-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--spectral-green);
}

.game-window {
    max-width: 1200px;
    margin: 0 auto;
    border: 2px solid var(--ghost-teal);
    background: var(--shadow);
    overflow: hidden;
    box-shadow: 0 0 60px rgba(16, 185, 129, 0.2);
}

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

.features-haunt {
    padding: 6rem 2rem;
    background: var(--shadow);
}

.haunt-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.haunt-title {
    text-align: center;
    margin-bottom: 4rem;
}

.haunt-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.3rem;
    color: var(--pale);
}

.haunt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.haunt-card {
    background: linear-gradient(145deg, var(--phantom-dark), var(--shadow));
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 2.5rem;
    text-align: center;
    transition: 0.3s;
}

.haunt-card:hover {
    border-color: var(--spectral-green);
    transform: translateY(-8px);
}

.haunt-icon {
    font-size: 3rem;
    margin-bottom: 1.2rem;
}

.haunt-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--ghost-teal);
    margin-bottom: 1rem;
}

.haunt-card p {
    color: var(--mist);
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.7;
}

.story-haunt {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, var(--phantom-dark) 0%, var(--shadow) 100%);
}

.story-inner {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.story-inner h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--spectral-green);
    margin-bottom: 2rem;
}

.story-inner p {
    font-size: 1.1rem;
    color: var(--mist);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

footer {
    background: var(--phantom-dark);
    padding: 3rem 2rem;
    border-top: 1px solid rgba(16, 185, 129, 0.2);
}

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

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

.footer-links a {
    color: var(--mist);
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--spectral-green);
}

.help-area {
    padding-top: 2rem;
    border-top: 1px solid rgba(16, 185, 129, 0.1);
    margin-top: 1rem;
}

.help-area p {
    font-size: 0.9rem;
    color: var(--mist);
    opacity: 0.7;
    margin-bottom: 0.8rem;
}

.help-area a {
    color: var(--ghost-teal);
    margin: 0 0.7rem;
    text-decoration: none;
}

.help-area a:hover {
    text-decoration: underline;
}

.footer-copy {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--mist);
    opacity: 0.5;
}

/* Age Modal */
.phantom-gate {
    position: fixed;
    inset: 0;
    background: rgba(10, 31, 28, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.phantom-gate.hidden {
    display: none;
}

.gate-card {
    background: linear-gradient(145deg, var(--phantom-dark), var(--shadow));
    border: 2px solid var(--spectral-green);
    padding: 3rem;
    max-width: 500px;
    margin: 1rem;
    text-align: center;
}

.gate-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--spectral-green);
    margin-bottom: 1.5rem;
}

.gate-card p {
    color: var(--mist);
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.gate-btn {
    padding: 0.9rem 2rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.gate-btn.proceed {
    background: var(--spectral-green);
    color: var(--shadow);
}

.gate-btn.retreat {
    background: transparent;
    border: 2px solid var(--mist);
    color: var(--mist);
}

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

.blocked-gate {
    position: fixed;
    inset: 0;
    background: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    text-align: center;
    padding: 2rem;
}

.blocked-gate.hidden {
    display: none;
}

.blocked-gate h2 {
    font-family: 'Playfair Display', serif;
    color: var(--spectral-green);
    font-size: 1.8rem;
}

/* Page styles */
.page-header {
    padding: 9rem 2rem 4rem;
    background: linear-gradient(180deg, var(--phantom-dark) 0%, var(--shadow) 100%);
    text-align: center;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--spectral-green);
}

.page-content {
    padding: 4rem 2rem;
    background: var(--shadow);
}

.content-inner {
    max-width: 900px;
    margin: 0 auto;
}

.content-inner h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--ghost-teal);
    margin: 2.5rem 0 1rem;
}

.content-inner p {
    color: var(--mist);
    line-height: 1.8;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.content-inner ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--mist);
    opacity: 0.9;
}

.content-inner li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

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

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

    .site-nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: var(--phantom-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s;
        gap: 2rem;
    }

    .site-nav ul.active {
        right: 0;
    }

    .hero-container h1 {
        font-size: 2.4rem;
    }

    .haunt-grid {
        grid-template-columns: 1fr;
    }

    .game-window iframe {
        height: 420px;
    }

    .gate-btns {
        flex-direction: column;
    }

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