@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Lato:wght@300;400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --royal-purple: #5b2c6f;
    --deep-purple: #3e1f47;
    --gold: #d4af37;
    --light-gold: #f4e4c1;
    --crimson: #8b0000;
    --dark-bg: #1a0f1f;
    --cream: #faf8f3;
    --text-light: #f0e6d2;
}

body {
    font-family: 'Lato', sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--deep-purple) 100%);
    color: var(--text-light);
    min-height: 100vh;
}

/* Royal Header */
.royal-header {
    background: linear-gradient(180deg, var(--royal-purple), var(--deep-purple));
    border-bottom: 3px solid var(--gold);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
    position: relative;
}

.royal-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.crown-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
}

.site-name {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.royal-motto {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--light-gold);
    font-style: italic;
    letter-spacing: 1px;
}

/* Elegant Navigation */
.elegant-nav {
    background: var(--deep-purple);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-menu {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    list-style: none;
    justify-content: center;
}

.nav-menu li {
    flex: 1;
    text-align: center;
    border-right: 1px solid rgba(212, 175, 55, 0.2);
}

.nav-menu li:last-child {
    border-right: none;
}

.nav-menu a {
    display: block;
    padding: 1.5rem 1rem;
    color: var(--light-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gold);
    transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    background: var(--gold);
    color: var(--deep-purple);
    border: none;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
}

/* Main Content */
.majestic-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.royal-banner {
    background: linear-gradient(135deg, var(--royal-purple), var(--crimson));
    border: 3px solid var(--gold);
    border-radius: 12px;
    padding: 3.5rem 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
}

.royal-banner::before,
.royal-banner::after {
    content: "♛";
    position: absolute;
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.3;
}

.royal-banner::before {
    top: 1rem;
    left: 2rem;
}

.royal-banner::after {
    bottom: 1rem;
    right: 2rem;
}

.royal-banner h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 900;
}

.royal-banner p {
    font-size: 1.2rem;
    line-height: 1.9;
    text-align: center;
    margin-bottom: 1rem;
}

.proclamation {
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid var(--gold);
    border-radius: 10px;
    padding: 2.5rem;
    margin: 2.5rem 0;
}

.proclamation h2 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.decree-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.decree-item {
    background: var(--deep-purple);
    border: 2px solid var(--gold);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.decree-item h4 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.decree-item p {
    font-size: 1.05rem;
    line-height: 1.7;
}

.game-chamber {
    background: var(--deep-purple);
    border: 3px solid var(--gold);
    border-radius: 15px;
    padding: 3rem;
    margin: 3rem 0;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}

.game-chamber h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.game-chamber > p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    color: var(--light-gold);
}

.game-frame-wrapper {
    background: #000;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--gold);
    display: inline-block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.game-frame {
    width: 100%;
    max-width: 850px;
    height: 650px;
    border: none;
    border-radius: 8px;
    display: block;
}

.chambers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.chamber-card {
    background: var(--royal-purple);
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s;
}

.chamber-card:hover {
    transform: translateY(-10px);
}

.chamber-card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.chamber-card p {
    line-height: 1.9;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.chamber-card ul,
.chamber-card ol {
    margin: 1.2rem 0 1.5rem 2rem;
    line-height: 1.9;
}

.scroll {
    background: var(--cream);
    color: var(--dark-bg);
    border: 3px solid var(--gold);
    border-radius: 12px;
    padding: 3.5rem;
    margin: 2.5rem 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.scroll h2 {
    font-family: 'Playfair Display', serif;
    color: var(--royal-purple);
    font-size: 2.5rem;
    margin-bottom: 1.8rem;
    font-weight: 900;
}

.scroll h3 {
    font-family: 'Playfair Display', serif;
    color: var(--crimson);
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    font-weight: 700;
}

.scroll p {
    line-height: 1.9;
    margin-bottom: 1.2rem;
    color: #333;
    font-size: 1.05rem;
}

.scroll ul,
.scroll ol {
    margin: 1.2rem 0 1.5rem 2.5rem;
    line-height: 1.9;
    color: #333;
}

footer {
    background: var(--deep-purple);
    border-top: 3px solid var(--gold);
    padding: 3.5rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

footer h4 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.footer-links a {
    color: var(--light-gold);
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--gold);
    border-radius: 8px;
    transition: all 0.3s;
}

.footer-links a:hover {
    background: var(--gold);
    color: var(--deep-purple);
}

/* Age Gate */
.age-gate {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(91, 44, 111, 0.98), rgba(62, 31, 71, 0.98));
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.age-gate.visible {
    display: flex;
}

.gate-content {
    background: var(--cream);
    color: var(--dark-bg);
    padding: 4rem 3.5rem;
    border-radius: 15px;
    border: 4px solid var(--gold);
    max-width: 600px;
    margin: 1rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.gate-content h2 {
    font-family: 'Playfair Display', serif;
    color: var(--royal-purple);
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.gate-content p {
    color: #333;
    font-size: 1.15rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.gate-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.gate-btn {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    border: 3px solid var(--gold);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.gate-btn.enter {
    background: var(--gold);
    color: var(--deep-purple);
}

.gate-btn.enter:hover {
    background: var(--deep-purple);
    color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.gate-btn.exit {
    background: #666;
    color: white;
    border-color: #666;
}

.gate-btn.exit:hover {
    background: #444;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.open {
        max-height: 600px;
    }

    .nav-menu li {
        border-right: none;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }

    .site-name {
        font-size: 2.5rem;
    }

    .majestic-container {
        padding: 2rem 1rem;
    }

    .royal-banner {
        padding: 2.5rem 1.5rem;
    }

    .royal-banner h1 {
        font-size: 2.2rem;
    }

    .game-frame {
        height: 500px;
    }

    .gate-buttons {
        flex-direction: column;
    }

    .gate-content {
        padding: 2.5rem 1.5rem;
    }
}
