* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    background: #0F0A1E;
    color: #E9D5FF;
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
}

/* Age Gate */
.age-gate {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #3B0764 100%);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.age-gate.active {
    display: flex;
}

.gate-panel {
    background: rgba(15, 10, 30, 0.95);
    border: 3px solid #A78BFA;
    padding: 3rem;
    max-width: 500px;
    margin: 20px;
    text-align: center;
    box-shadow: 0 0 50px rgba(167, 139, 250, 0.5);
}

.gate-symbol {
    font-size: 5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(167, 139, 250, 0.8));
}

.gate-panel h1 {
    color: #A78BFA;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.gate-text {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.gate-notice {
    font-size: 0.95rem;
    color: #C4B5FD;
    font-style: italic;
    margin-bottom: 2rem;
}

.gate-choice {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gate-panel button {
    padding: 1rem 2rem;
    border: 2px solid #A78BFA;
    background: transparent;
    color: #A78BFA;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.enter-btn:hover {
    background: #A78BFA;
    color: #0F0A1E;
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.6);
}

.leave-btn:hover {
    border-color: #7C3AED;
    color: #7C3AED;
}

/* Header */
.main-header {
    background: rgba(15, 10, 30, 0.95);
    border-bottom: 2px solid #5B21B6;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(91, 33, 182, 0.3);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-name {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: #A78BFA;
    letter-spacing: 2px;
}

.mobile-nav-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-nav-btn span {
    width: 28px;
    height: 3px;
    background: #A78BFA;
    transition: 0.3s;
}

.main-nav {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: #C4B5FD;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #A78BFA;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #A78BFA;
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.8);
}

/* Hero Banner */
.hero-banner {
    position: relative;
    padding: 6rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #3B0764 100%);
    border-bottom: 3px solid #5B21B6;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50" y="50" font-size="30" opacity="0.05">🎰</text></svg>');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: #A78BFA;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(167, 139, 250, 0.6);
}

.hero-content p {
    font-size: 1.4rem;
    color: #E9D5FF;
    margin-bottom: 2.5rem;
}

.epic-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: transparent;
    border: 3px solid #A78BFA;
    color: #A78BFA;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.epic-button:hover {
    background: #A78BFA;
    color: #0F0A1E;
    box-shadow: 0 0 30px rgba(167, 139, 250, 0.8);
}

/* Split Info */
.split-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    background: #1E1B4B;
}

.split-left,
.split-center,
.split-right {
    padding: 3rem 2rem;
    border-right: 1px solid #5B21B6;
}

.split-right {
    border-right: none;
}

.info-box {
    text-align: center;
}

.info-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(167, 139, 250, 0.6));
}

.info-box h3 {
    color: #A78BFA;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.info-box p {
    color: #C4B5FD;
    line-height: 1.8;
}

/* Lore Section */
.lore-section {
    padding: 5rem 2rem;
    background: #0F0A1E;
}

.lore-container {
    max-width: 900px;
    margin: 0 auto;
}

.lore-section h2 {
    text-align: center;
    color: #A78BFA;
    font-size: 2.8rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 15px rgba(167, 139, 250, 0.5);
}

.lore-text p {
    color: #C4B5FD;
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

/* Quest Section */
.quest-section {
    padding: 5rem 2rem;
    background: #1E1B4B;
}

.quest-container {
    max-width: 1200px;
    margin: 0 auto;
}

.quest-section h2 {
    text-align: center;
    color: #A78BFA;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(167, 139, 250, 0.5);
}

.quest-intro {
    text-align: center;
    color: #C4B5FD;
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.quest-frame {
    border: 3px solid #5B21B6;
    box-shadow: 0 0 40px rgba(91, 33, 182, 0.4);
    margin-bottom: 2rem;
}

.game-frame {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

.quest-guide {
    background: rgba(91, 33, 182, 0.2);
    border: 2px solid #5B21B6;
    padding: 2rem;
}

.quest-guide h3 {
    color: #A78BFA;
    margin-bottom: 1rem;
}

.quest-guide p {
    color: #C4B5FD;
    line-height: 1.8;
}

/* Features Realm */
.features-realm {
    padding: 5rem 2rem;
    background: #0F0A1E;
}

.realm-container {
    max-width: 1200px;
    margin: 0 auto;
}

.features-realm h2 {
    text-align: center;
    color: #A78BFA;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    text-shadow: 0 0 15px rgba(167, 139, 250, 0.5);
}

.powers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.power-card {
    background: rgba(30, 27, 75, 0.6);
    border: 2px solid #5B21B6;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.power-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(91, 33, 182, 0.5);
}

.power-card h3 {
    color: #A78BFA;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.power-card p {
    color: #C4B5FD;
    line-height: 1.7;
}

/* Wisdom Section */
.wisdom-section {
    padding: 5rem 2rem;
    background: #1E1B4B;
}

.wisdom-container {
    max-width: 900px;
    margin: 0 auto;
}

.wisdom-section h2 {
    text-align: center;
    color: #A78BFA;
    font-size: 2.8rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 15px rgba(167, 139, 250, 0.5);
}

.wisdom-section p {
    color: #C4B5FD;
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

/* Play Realm */
.play-realm {
    padding: 4rem 2rem;
    min-height: 100vh;
    background: #0F0A1E;
}

.play-container {
    max-width: 1200px;
    margin: 0 auto;
}

.play-realm h1 {
    text-align: center;
    color: #A78BFA;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(167, 139, 250, 0.5);
}

.play-desc {
    text-align: center;
    color: #C4B5FD;
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.instructions-panel {
    background: rgba(30, 27, 75, 0.6);
    border: 2px solid #5B21B6;
    padding: 2rem;
    margin-bottom: 3rem;
}

.instructions-panel h3 {
    color: #A78BFA;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.instruction-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.instruction-item {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.inst-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.instruction-item h4 {
    color: #A78BFA;
    margin-bottom: 0.5rem;
}

.instruction-item p {
    color: #C4B5FD;
    line-height: 1.6;
}

.tech-wisdom {
    color: #A78BFA;
    font-size: 0.95rem;
    padding-top: 1rem;
    border-top: 2px solid #5B21B6;
}

.realm-warning {
    background: rgba(91, 33, 182, 0.2);
    border: 2px solid #7C3AED;
    padding: 2rem;
    margin-top: 2rem;
}

.realm-warning h3 {
    color: #A78BFA;
    margin-bottom: 1rem;
}

.realm-warning p {
    color: #C4B5FD;
    line-height: 1.8;
}

/* Legal Realm */
.legal-realm {
    padding: 4rem 2rem;
    min-height: 100vh;
    background: #0F0A1E;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
}

.legal-realm h1 {
    color: #A78BFA;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(167, 139, 250, 0.5);
}

.scribe-date {
    color: #7C3AED;
    font-style: italic;
    margin-bottom: 3rem;
}

.scroll-section {
    margin-bottom: 2.5rem;
}

.scroll-section h2 {
    color: #A78BFA;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.scroll-section p {
    color: #C4B5FD;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.scroll-section ul {
    margin: 1rem 0 1rem 2rem;
    color: #C4B5FD;
    line-height: 1.8;
}

.warning-scroll {
    background: rgba(91, 33, 182, 0.3);
    border: 3px solid #7C3AED;
    padding: 2rem;
    margin-bottom: 3rem;
}

.warning-scroll h2 {
    color: #A78BFA;
    margin-bottom: 1rem;
}

.proclamation {
    background: linear-gradient(135deg, #5B21B6, #7C3AED);
    padding: 2rem;
    border: 2px solid #A78BFA;
    text-align: center;
    margin-top: 3rem;
}

.proclamation h3 {
    color: #E9D5FF;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.proclamation p {
    color: #E9D5FF;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Footer */
.realm-footer {
    background: #1E1B4B;
    border-top: 3px solid #5B21B6;
    padding: 3rem 0 1.5rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-segment h4 {
    color: #A78BFA;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

.footer-segment p {
    color: #C4B5FD;
    line-height: 1.7;
}

.footer-segment ul {
    list-style: none;
}

.footer-segment li {
    margin-bottom: 0.7rem;
}

.footer-segment a {
    color: #C4B5FD;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-segment a:hover {
    color: #A78BFA;
}

.footer-seal {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid #5B21B6;
    color: #7C3AED;
}

/* Mobile */
@media (max-width: 768px) {
    .mobile-nav-btn {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 10, 30, 0.98);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 2px solid #5B21B6;
    }

    .main-nav.active {
        display: flex;
    }

    .nav-link.active::after {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .game-frame {
        height: 400px;
    }

    .split-info {
        grid-template-columns: 1fr;
    }

    .split-left,
    .split-center {
        border-right: none;
        border-bottom: 1px solid #5B21B6;
    }

    .powers-grid {
        grid-template-columns: 1fr;
    }

    .instruction-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .gate-choice {
        gap: 0.8rem;
    }
}
