* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --royal-purple: #6b2d7b;
    --purple-light: #8e44ad;
    --gold-bright: #f1c40f;
    --gold-muted: #d4ac0d;
    --bg-deep: #120b14;
    --bg-mid: #1e1322;
    --bg-surface: #2a1b30;
    --text-bright: #f8f4f9;
    --text-faded: #a89aad;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--bg-deep);
    color: var(--text-bright);
    line-height: 1.8;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    line-height: 1.3;
}

a {
    color: var(--gold-bright);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--gold-muted);
}

/* Age Gate */
.age-gate {
    position: fixed;
    inset: 0;
    background: rgba(18, 11, 20, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
}

.age-gate.shown {
    opacity: 1;
    visibility: visible;
}

.age-panel {
    background: linear-gradient(160deg, var(--bg-mid), var(--bg-surface));
    border: 2px solid var(--gold-bright);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    max-width: 440px;
    text-align: center;
    box-shadow: 0 0 60px rgba(241, 196, 15, 0.2);
}

.panel-emblem {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.age-panel h2 {
    color: var(--gold-bright);
    font-size: 1.9rem;
    margin-bottom: 1rem;
}

.age-panel p {
    color: var(--text-faded);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.panel-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.panel-btn {
    padding: 0.85rem 2rem;
    border: none;
    border-radius: 8px;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.panel-btn.accept {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-muted));
    color: var(--bg-deep);
}

.panel-btn.accept:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(241, 196, 15, 0.4);
}

.panel-btn.deny {
    background: transparent;
    color: var(--text-faded);
    border: 1px solid var(--text-faded);
}

.panel-btn.deny:hover {
    border-color: var(--text-bright);
    color: var(--text-bright);
}

/* Header */
.top-header {
    background: var(--bg-mid);
    border-bottom: 1px solid var(--bg-surface);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrap {
    max-width: 1500px;
    margin: 0 auto;
    padding: 1.1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.brand-emblem {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--royal-purple), var(--purple-light));
    border: 2px solid var(--gold-bright);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-emblem span {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--gold-bright);
}

.brand-name {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--gold-bright);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle .bar {
    width: 26px;
    height: 3px;
    background: var(--gold-bright);
    border-radius: 2px;
    transition: all 0.3s;
}

.site-nav {
    display: flex;
    gap: 2.2rem;
}

.site-nav a {
    color: var(--text-faded);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-bright);
    transition: width 0.3s;
}

.site-nav a:hover,
.site-nav a.active-link {
    color: var(--gold-bright);
}

.site-nav a:hover::after,
.site-nav a.active-link::after {
    width: 100%;
}

/* Masthead */
.masthead {
    background: linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 100%);
    padding: 5rem 2rem;
    text-align: center;
}

.masthead h1 {
    font-size: 3.5rem;
    color: var(--gold-bright);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 30px rgba(241, 196, 15, 0.3);
}

.masthead-text {
    font-size: 1.15rem;
    color: var(--text-faded);
    max-width: 800px;
    margin: 0 auto;
}

/* Page Intro */
.page-intro {
    background: linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 100%);
    padding: 4rem 2rem;
    text-align: center;
}

.page-intro h1 {
    font-size: 2.8rem;
    color: var(--gold-bright);
    margin-bottom: 0.8rem;
}

.page-intro p {
    color: var(--text-faded);
    font-size: 1.1rem;
}

/* Pillars */
.pillars-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1500px;
    margin: 0 auto;
}

.pillar {
    background: var(--bg-mid);
    border: 1px solid var(--bg-surface);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}

.pillar:hover {
    border-color: var(--gold-bright);
    transform: translateY(-5px);
}

.pillar-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1.2rem;
}

.pillar h3 {
    color: var(--gold-bright);
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.pillar p {
    color: var(--text-faded);
    font-size: 0.95rem;
}

/* Game Showcase */
.game-showcase {
    padding: 4rem 2rem;
    max-width: 1500px;
    margin: 0 auto;
}

.game-showcase.full-screen {
    padding-top: 2rem;
}

.showcase-header {
    text-align: center;
    margin-bottom: 2rem;
}

.showcase-header h2 {
    color: var(--gold-bright);
    font-size: 2.3rem;
    margin-bottom: 0.5rem;
}

.showcase-header p {
    color: var(--text-faded);
}

.showcase-frame {
    background: var(--bg-mid);
    border: 2px solid var(--bg-surface);
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.showcase-frame.expanded {
    aspect-ratio: 16 / 10;
    max-width: 1200px;
    margin: 0 auto;
}

.embedded-game {
    width: 100%;
    height: 100%;
    border: none;
}

/* Content Articles */
.content-article {
    padding: 3rem 2rem;
    max-width: 1050px;
    margin: 0 auto;
    border-bottom: 1px solid var(--bg-surface);
}

.content-article:last-of-type {
    border-bottom: none;
}

.content-article h2 {
    color: var(--gold-bright);
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
}

.content-article p {
    color: var(--text-faded);
    margin-bottom: 1rem;
}

.content-article p:last-child {
    margin-bottom: 0;
}

.important-notice {
    background: var(--bg-mid);
    border: 1px solid var(--royal-purple);
    border-radius: 12px;
    padding: 2.5rem !important;
    margin: 2rem auto;
}

/* Capabilities List */
.capabilities-list {
    list-style: none;
    margin-top: 1.5rem;
}

.capabilities-list li {
    color: var(--text-faded);
    padding: 0.9rem 1.2rem;
    background: var(--bg-mid);
    border-radius: 6px;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.capabilities-list li::before {
    content: '◆ ';
    color: var(--gold-bright);
}

/* Footer */
.site-footer {
    background: var(--bg-mid);
    border-top: 1px solid var(--bg-surface);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-wrap {
    max-width: 1500px;
    margin: 0 auto;
    text-align: center;
}

.footer-resources {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-resources span {
    color: var(--text-faded);
    font-size: 0.85rem;
}

.footer-resources a {
    font-size: 0.85rem;
}

.footer-legal {
    color: var(--text-faded);
    font-size: 0.8rem;
}

/* Mobile */
@media (max-width: 1024px) {
    .pillars-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .masthead h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: 76px;
        left: 0;
        width: 100%;
        background: var(--bg-mid);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--bg-surface);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s;
    }

    .site-nav.visible {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .header-wrap {
        padding: 1rem 1.5rem;
    }

    .masthead {
        padding: 3.5rem 1.5rem;
    }

    .masthead h1 {
        font-size: 2.2rem;
    }

    .masthead-text {
        font-size: 1rem;
    }

    .page-intro {
        padding: 3rem 1.5rem;
    }

    .page-intro h1 {
        font-size: 2.2rem;
    }

    .pillars-row {
        padding: 2rem 1.5rem;
    }

    .pillar {
        padding: 2rem 1.5rem;
    }

    .game-showcase {
        padding: 2rem 1rem;
    }

    .showcase-frame {
        aspect-ratio: 4 / 3;
    }

    .content-article {
        padding: 2rem 1.5rem;
    }

    .content-article h2 {
        font-size: 1.5rem;
    }

    .footer-resources {
        flex-direction: column;
        gap: 0.8rem;
    }

    .site-footer {
        padding: 2rem 1.5rem;
    }

    .age-panel {
        margin: 1.5rem;
        padding: 2rem 1.5rem;
    }

    .panel-buttons {
        flex-direction: column;
    }
}
