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

:root {
    --crimson: #8b0000;
    --gold: #c9a227;
    --bronze: #cd7f32;
    --parchment: #f4e4c1;
    --dark-brown: #3e2723;
    --wood: #5d4037;
    --light-text: #f5f5f5;
    --dim-text: #bdbdbd;
}

body {
    font-family: 'Crimson Text', serif;
    background: linear-gradient(180deg, var(--dark-brown) 0%, var(--wood) 100%);
    color: var(--light-text);
    line-height: 1.7;
}

/* Age Gate */
.age-gate-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(62, 39, 35, 0.97);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.age-gate-modal.hidden {
    display: none;
}

.gate-panel {
    background: linear-gradient(135deg, var(--wood) 0%, var(--dark-brown) 100%);
    border: 5px solid var(--gold);
    padding: 60px 50px;
    max-width: 550px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(201, 162, 39, 0.5);
    border-radius: 10px;
}

.gate-emblem {
    font-size: 80px;
    margin-bottom: 20px;
    animation: emblem-glow 3s ease-in-out infinite;
}

@keyframes emblem-glow {
    0%, 100% { filter: drop-shadow(0 0 10px var(--gold)); }
    50% { filter: drop-shadow(0 0 20px var(--bronze)); }
}

.gate-title {
    font-family: 'Merriweather', serif;
    font-size: 38px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.gate-message, .gate-question {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--dim-text);
}

.gate-choices {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.gate-btn {
    padding: 18px 35px;
    font-family: 'Merriweather', serif;
    font-size: 16px;
    font-weight: 700;
    border: 3px solid;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.enter-btn {
    border-color: var(--gold);
    color: var(--gold);
}

.enter-btn:hover {
    background: var(--gold);
    color: var(--dark-brown);
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.5);
}

.deny-btn {
    border-color: var(--crimson);
    color: var(--crimson);
}

.deny-btn:hover {
    background: var(--crimson);
    color: var(--light-text);
}

/* Page Structure */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    background: var(--dark-brown);
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.site-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-emblem {
    font-size: 40px;
}

.brand-title {
    font-family: 'Merriweather', serif;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.toggle-bar {
    width: 30px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
    transition: 0.3s;
}

.site-navigation {
    display: flex;
    gap: 35px;
}

.nav-anchor {
    color: var(--dim-text);
    text-decoration: none;
    font-family: 'Merriweather', serif;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
}

.nav-anchor:hover, .nav-anchor.current {
    color: var(--gold);
}

.nav-anchor.current::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold);
}

/* Main Area */
.main-area {
    flex: 1;
}

/* Grand Entrance */
.grand-entrance {
    position: relative;
    padding: 100px 30px;
    background: linear-gradient(135deg, var(--crimson) 0%, var(--bronze) 100%);
    overflow: hidden;
}

.entrance-backdrop {
    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 y="0.9em" font-size="50" opacity="0.1">⚔️</text></svg>') repeat;
    opacity: 0.2;
}

.entrance-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.entrance-heading {
    font-family: 'Merriweather', serif;
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 25px;
    color: var(--gold);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.entrance-text {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 35px;
    color: var(--parchment);
}

.entrance-badges {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.badge-item {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--gold);
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
}

/* Sections */
section {
    padding: 80px 30px;
}

.section-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.section-wrapper-wide {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Merriweather', serif;
    font-size: 42px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 40px;
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* About Realm */
.about-realm {
    background: var(--wood);
}

.about-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

.about-column {
    background: rgba(62, 39, 35, 0.5);
    padding: 35px;
    border-left: 5px solid var(--gold);
    border-radius: 5px;
}

.about-column p {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--dim-text);
}

/* Proclamations */
.proclamations {
    background: var(--dark-brown);
}

.proclamation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.proclamation-card {
    background: var(--wood);
    padding: 40px 35px;
    border: 4px solid;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.proclamation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.red-border {
    border-color: var(--crimson);
}

.gold-border {
    border-color: var(--gold);
}

.blue-border {
    border-color: var(--bronze);
}

.proclamation-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.proclamation-card h4 {
    font-family: 'Merriweather', serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--gold);
}

.proclamation-card p {
    font-size: 16px;
    color: var(--dim-text);
}

/* Featured Game */
.featured-game {
    background: var(--wood);
}

.game-description {
    text-align: center;
    font-size: 19px;
    color: var(--dim-text);
    max-width: 900px;
    margin: 0 auto 40px;
}

.game-showcase {
    max-width: 1000px;
    margin: 0 auto 35px;
    border: 5px solid var(--gold);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(201, 162, 39, 0.4);
}

.game-embed {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

.grand-button {
    display: inline-block;
    margin: 0 auto;
    padding: 20px 50px;
    background: transparent;
    border: 4px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    font-family: 'Merriweather', serif;
    font-size: 20px;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: table;
}

.grand-button:hover {
    background: var(--gold);
    color: var(--dark-brown);
    box-shadow: 0 15px 40px rgba(201, 162, 39, 0.5);
}

/* Hall Features */
.hall-features {
    background: var(--dark-brown);
}

.features-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-tile {
    background: var(--wood);
    border: 3px solid rgba(201, 162, 39, 0.3);
    padding: 35px 30px;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-tile:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.tile-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.feature-tile h5 {
    font-family: 'Merriweather', serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--gold);
}

.feature-tile p {
    font-size: 16px;
    color: var(--dim-text);
}

/* Wisdom Section */
.wisdom-section {
    background: var(--wood);
}

.wisdom-scroll {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(62, 39, 35, 0.6);
    padding: 50px;
    border: 3px solid var(--bronze);
    border-radius: 10px;
}

.wisdom-scroll p {
    font-size: 18px;
    color: var(--dim-text);
    margin-bottom: 20px;
    text-align: center;
}

/* Guidance Section */
.guidance-section {
    background: var(--dark-brown);
}

.guidance-intro {
    text-align: center;
    font-size: 18px;
    color: var(--dim-text);
    max-width: 900px;
    margin: 0 auto 35px;
}

.guidance-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.guidance-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 35px;
    background: var(--wood);
    border: 3px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    font-family: 'Merriweather', serif;
    font-size: 18px;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.guidance-link:hover {
    background: rgba(201, 162, 39, 0.1);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.link-emblem {
    font-size: 28px;
}

/* Footer */
.site-footer {
    background: var(--dark-brown);
    border-top: 3px solid var(--gold);
    padding: 50px 30px 20px;
    margin-top: auto;
}

.footer-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 35px;
}

.footer-heading {
    font-family: 'Merriweather', serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--gold);
}

.footer-description {
    font-size: 15px;
    color: var(--dim-text);
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a {
    color: var(--dim-text);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 16px;
}

.footer-list a:hover {
    color: var(--gold);
}

.footer-seal {
    text-align: center;
    padding-top: 25px;
    border-top: 2px solid rgba(201, 162, 39, 0.3);
    color: var(--dim-text);
    font-size: 14px;
}

/* Play Page */
.play-introduction {
    background: linear-gradient(135deg, var(--crimson) 0%, var(--bronze) 100%);
    padding: 70px 30px;
    text-align: center;
}

.page-heading {
    font-family: 'Merriweather', serif;
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--gold);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.play-subtitle {
    font-size: 20px;
    color: var(--parchment);
    max-width: 900px;
    margin: 0 auto;
}

.play-instructions {
    background: var(--wood);
    padding: 60px 30px;
}

.instructions-scroll {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(62, 39, 35, 0.6);
    padding: 40px;
    border: 3px solid var(--gold);
    border-radius: 8px;
}

.instructions-title {
    font-family: 'Merriweather', serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--gold);
    text-align: center;
}

.instructions-items {
    color: var(--dim-text);
    margin-left: 30px;
    margin-bottom: 25px;
}

.instructions-items li {
    margin-bottom: 12px;
    font-size: 17px;
}

.tech-note {
    color: var(--dim-text);
    font-size: 15px;
    text-align: center;
}

.play-chamber {
    background: var(--dark-brown);
    padding: 60px 30px;
}

.chamber-frame {
    border: 5px solid var(--gold);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(201, 162, 39, 0.4);
}

.chamber-game {
    width: 100%;
    height: 750px;
    border: none;
    display: block;
}

.play-notice {
    background: var(--wood);
    padding: 50px 30px;
}

.notice-banner {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(139, 0, 0, 0.2);
    border: 3px solid var(--crimson);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
}

.notice-banner p {
    color: var(--light-text);
    font-size: 17px;
    margin: 0;
}

/* Document Pages */
.document-header {
    background: linear-gradient(135deg, var(--crimson) 0%, var(--bronze) 100%);
    padding: 70px 30px 40px;
    text-align: center;
}

.document-date {
    color: var(--parchment);
    font-size: 16px;
    font-style: italic;
}

.document-content {
    background: var(--wood);
    padding: 60px 30px;
}

.document-section {
    margin-bottom: 40px;
}

.document-section h3 {
    font-family: 'Merriweather', serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--gold);
}

.document-section h4 {
    font-family: 'Merriweather', serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 20px;
    color: var(--bronze);
}

.document-section p {
    font-size: 17px;
    color: var(--dim-text);
    margin-bottom: 18px;
    line-height: 1.8;
}

.document-section ul {
    color: var(--dim-text);
    margin-left: 35px;
    margin-bottom: 18px;
}

.document-section li {
    margin-bottom: 10px;
    font-size: 16px;
}

.warning-banner {
    background: rgba(201, 162, 39, 0.15);
    border-top: 4px solid var(--gold);
    border-bottom: 4px solid var(--gold);
    padding: 35px 30px;
}

.warning-banner p {
    color: var(--light-text);
    font-size: 17px;
    text-align: center;
    font-weight: 600;
}

.closing-banner {
    background: rgba(205, 127, 50, 0.15);
    border-top: 4px solid var(--bronze);
    border-bottom: 4px solid var(--bronze);
    padding: 35px 30px;
}

.closing-banner p {
    color: var(--light-text);
    font-size: 17px;
    text-align: center;
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .site-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: var(--dark-brown);
        flex-direction: column;
        padding: 100px 30px 30px;
        transition: right 0.3s ease;
        border-left: 3px solid var(--gold);
    }
    
    .site-navigation.active {
        right: 0;
    }
    
    .nav-anchor {
        font-size: 20px;
        padding: 18px 0;
        border-bottom: 2px solid rgba(201, 162, 39, 0.3);
    }
    
    .entrance-heading {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .about-columns {
        grid-template-columns: 1fr;
    }
    
    .proclamation-grid, .features-showcase {
        grid-template-columns: 1fr;
    }
    
    .game-embed {
        height: 450px;
    }
    
    .chamber-game {
        height: 500px;
    }
    
    .footer-sections {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .brand-title {
        font-size: 24px;
    }
    
    .gate-panel {
        padding: 40px 25px;
    }
    
    .gate-title {
        font-size: 28px;
    }
    
    .grand-entrance {
        padding: 70px 20px;
    }
    
    .entrance-heading {
        font-size: 28px;
    }
    
    .page-heading {
        font-size: 32px;
    }
}
