* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #fafaf8;
    color: #2b2b2b;
    line-height: 1.8;
    display: flex;
}

/* Sidebar Layout */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1a1a1a 0%, #2b2b2b 100%);
    color: #f5f5f5;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    border-right: 3px solid #d4af37;
    z-index: 1000;
}

.sidebar-header {
    text-align: center;
    padding: 0 1.5rem 2rem;
    border-bottom: 1px solid #d4af37;
    margin-bottom: 2rem;
}

.site-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.8rem;
    color: #d4af37;
    margin-top: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.sidebar-nav {
    flex: 1;
    padding: 0 1.5rem;
}

.sidebar-link {
    display: block;
    color: #d4af37;
    text-decoration: none;
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(212, 175, 55, 0.1);
    border-left-color: #d4af37;
}

.sidebar-footer {
    padding: 2rem 1.5rem 0;
    border-top: 1px solid #d4af37;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
}

.mobile-sidebar-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: #1a1a1a;
    border: 2px solid #d4af37;
    padding: 0.8rem;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.mobile-sidebar-toggle span {
    width: 24px;
    height: 2px;
    background: #d4af37;
    transition: 0.3s;
}

/* Main Content Area */
.main-content {
    margin-left: 280px;
    flex: 1;
    min-height: 100vh;
}

/* Hero and Headers */
.hero-section,
.page-header-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 100%);
    padding: 5rem 3rem;
    text-align: center;
    border-bottom: 4px solid #d4af37;
}

.hero-title,
.page-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 3rem;
    color: #d4af37;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero-subtitle,
.page-subtitle {
    font-size: 1.3rem;
    color: #c0c0c0;
    font-weight: 300;
    letter-spacing: 1px;
}

.hero-divider,
.header-divider {
    width: 100px;
    height: 3px;
    background: #d4af37;
    margin: 2rem auto 0;
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 3rem;
}

h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #d4af37;
}

.lead-paragraph {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 2rem;
    font-weight: 400;
}

.introduction {
    background: #ffffff;
}

p {
    margin-bottom: 1.5rem;
    color: #555;
}

/* Core Tenets */
.core-tenets {
    background: #f5f5f0;
}

.tenets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.tenet-box {
    background: #ffffff;
    padding: 2.5rem;
    border: 2px solid #d4af37;
    transition: all 0.3s ease;
}

.tenet-box:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.tenet-symbol {
    font-size: 3rem;
    color: #d4af37;
    margin-bottom: 1.5rem;
}

.tenet-box h4 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.4rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.tenet-box p {
    font-size: 1rem;
    line-height: 1.7;
}

/* Game Section */
.featured-entertainment,
.play-section {
    background: #ffffff;
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.game-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #000;
    border: 4px solid #d4af37;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.game-frame {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

/* Features */
.distinguishing-features {
    background: #f5f5f0;
}

.features-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-item h4 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.feature-item p {
    font-size: 1rem;
    line-height: 1.8;
}

/* Gaming Guidelines */
.gaming-guidelines {
    background: #f5f5f0;
}

.guidelines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.guideline-card {
    background: #ffffff;
    padding: 2rem;
    border-left: 4px solid #d4af37;
}

.guideline-card h4 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.guideline-card p {
    font-size: 0.95rem;
}

/* Invitation Section */
.invitation {
    background: #ffffff;
}

/* Document Pages */
.document-section {
    background: #ffffff;
    padding: 4rem 0;
}

.document-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 3rem;
}

.document-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 2.8rem;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 0.5rem;
}

.document-date {
    text-align: center;
    color: #999;
    font-style: italic;
    margin-bottom: 3rem;
}

.document-wrapper h3 {
    font-size: 1.6rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    text-align: left;
}

.document-wrapper h3::after {
    display: none;
}

.document-wrapper h4 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.document-wrapper ul {
    margin-bottom: 1.5rem;
    padding-left: 2.5rem;
}

.document-wrapper li {
    margin-bottom: 0.8rem;
    color: #555;
}

.notice-box {
    background: #fff8e1;
    border: 2px solid #d4af37;
    padding: 2rem;
    margin: 2rem 0;
}

.notice-box h3 {
    color: #1a1a1a;
    margin-top: 0;
}

.summary-box {
    background: #f0f0e8;
    border-left: 4px solid #d4af37;
    padding: 2rem;
    margin-top: 3rem;
}

.summary-box h4 {
    font-family: 'Libre Baskerville', serif;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.summary-box p {
    margin-bottom: 0;
}

/* Footer */
.main-footer {
    background: linear-gradient(180deg, #1a1a1a 0%, #2b2b2b 100%);
    color: #c0c0c0;
    padding: 3rem 3rem 1.5rem;
    margin-top: 4rem;
    border-top: 3px solid #d4af37;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-column h5 {
    font-family: 'Libre Baskerville', serif;
    color: #d4af37;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 0.7rem;
}

.footer-menu a {
    color: #c0c0c0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-menu a:hover {
    color: #d4af37;
}

.footer-bottom {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #888;
    font-size: 0.9rem;
}

/* Age Modal */
.age-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.age-modal-overlay.active {
    display: flex;
}

.age-modal-content {
    background: #fafaf8;
    border: 3px solid #d4af37;
    max-width: 500px;
    padding: 3rem;
    text-align: center;
}

.age-modal-header {
    border-bottom: 2px solid #d4af37;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.crest-icon {
    font-size: 3rem;
    color: #d4af37;
    margin-bottom: 1rem;
}

.age-modal-header h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: 2rem;
    color: #1a1a1a;
    margin: 0;
}

.age-modal-body p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 1rem;
}

.age-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.age-modal-actions button {
    font-family: 'Montserrat', sans-serif;
    padding: 1rem 2rem;
    font-size: 1rem;
    border: 2px solid #d4af37;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: #d4af37;
    color: #1a1a1a;
}

.btn-primary:hover {
    background: #c09d2f;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #1a1a1a;
}

.btn-secondary:hover {
    background: #f0f0f0;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .mobile-sidebar-toggle {
        display: flex;
    }

    .main-content {
        margin-left: 0;
    }

    .hero-title,
    .page-title {
        font-size: 2.2rem;
    }

    .hero-subtitle,
    .page-subtitle {
        font-size: 1.1rem;
    }

    h3 {
        font-size: 1.8rem;
    }

    .section-wrapper,
    .document-wrapper {
        padding: 0 1.5rem;
    }

    .hero-section,
    .page-header-section {
        padding: 3rem 1.5rem;
    }

    .tenets-grid {
        grid-template-columns: 1fr;
    }

    .game-frame {
        height: 400px;
    }

    .features-layout {
        grid-template-columns: 1fr;
    }

    .guidelines-grid {
        grid-template-columns: 1fr;
    }

    .age-modal-content {
        margin: 1rem;
        padding: 2rem;
    }

    .age-modal-actions {
        flex-direction: column;
    }

    .age-modal-actions button {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .main-footer {
        padding: 3rem 1.5rem 1.5rem;
    }
}
