* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cinzel', serif;
    background: #0d0d0d;
    color: #d4d4d4;
    line-height: 1.7;
    min-height: 100vh;
}

/* Main Header */
.main-header {
    background: linear-gradient(90deg, #1a0000 0%, #330000 100%);
    border-bottom: 3px solid #8b0000;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(139, 0, 0, 0.5);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 2rem;
    font-weight: 900;
    color: #c41e3a;
    letter-spacing: 3px;
}

.primary-nav {
    display: flex;
    gap: 2.5rem;
}

.nav-item {
    color: #d4d4d4;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 2px;
    transition: all 0.3s;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-item:hover,
.nav-item.active {
    color: #c41e3a;
    border-bottom-color: #c41e3a;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 30px;
    height: 3px;
    background: #c41e3a;
    transition: 0.3s;
}

/* Hero Area */
.hero-area {
    background: linear-gradient(135deg, #1a0000 0%, #330000 50%, #1a0000 100%);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    border-bottom: 3px solid #8b0000;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 10px,
        rgba(139, 0, 0, 0.1) 10px,
        rgba(139, 0, 0, 0.1) 20px
    );
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-heading {
    font-size: 3.5rem;
    font-weight: 900;
    color: #c41e3a;
    margin-bottom: 1rem;
    letter-spacing: 4px;
    text-shadow: 0 0 30px rgba(196, 30, 58, 0.5);
}

.hero-subheading {
    font-size: 1.3rem;
    color: #d4d4d4;
    letter-spacing: 2px;
    font-weight: 400;
}

.hero-divider {
    width: 150px;
    height: 3px;
    background: #c41e3a;
    margin: 2rem auto 0;
    box-shadow: 0 0 20px rgba(196, 30, 58, 0.5);
}

/* Page Container */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Panels */
.intro-panel,
.game-exhibition,
.proclamation-panel {
    background: linear-gradient(135deg, rgba(26, 0, 0, 0.8) 0%, rgba(51, 0, 0, 0.6) 100%);
    border: 2px solid #8b0000;
    border-radius: 8px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.panel-title {
    color: #c41e3a;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.panel-title.centered {
    text-align: center;
}

/* Declaration Grid */
.declaration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.declaration-banner {
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid;
}

.red-banner {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.3) 0%, rgba(196, 30, 58, 0.2) 100%);
    border-color: #8b0000;
}

.silver-banner {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2) 0%, rgba(169, 169, 169, 0.1) 100%);
    border-color: #a9a9a9;
}

.gold-banner {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(218, 165, 32, 0.1) 100%);
    border-color: #daa520;
}

.banner-symbol {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.declaration-banner h3 {
    color: #c41e3a;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

/* Game Exhibition */
.exhibition-description {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.game-viewport {
    width: 100%;
    height: 600px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid #8b0000;
    box-shadow: 0 0 30px rgba(139, 0, 0, 0.5);
}

.game-viewport iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Virtues Section */
.virtues-section {
    margin: 3rem 0;
}

.virtues-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.virtue-card {
    background: linear-gradient(135deg, rgba(26, 0, 0, 0.6) 0%, rgba(51, 0, 0, 0.4) 100%);
    border: 1px solid #8b0000;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.virtue-card:hover {
    transform: translateY(-5px);
    border-color: #c41e3a;
}

.virtue-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.virtue-card h3 {
    color: #c41e3a;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

/* Proclamation Panel */
.support-chamber {
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    border: 1px solid #8b0000;
}

.support-chamber h3 {
    color: #c41e3a;
    margin-bottom: 1rem;
}

.resource-scrolls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.resource-link {
    background: #c41e3a;
    color: #fff;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.resource-link:hover {
    background: #8b0000;
    transform: scale(1.05);
}

/* Footer */
.main-footer {
    background: #1a0000;
    border-top: 3px solid #8b0000;
    padding: 2.5rem 2rem;
    margin-top: 4rem;
}

.footer-chambers {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-chamber h4 {
    color: #c41e3a;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.footer-chamber a {
    display: block;
    color: #a9a9a9;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-chamber a:hover {
    color: #c41e3a;
}

.footer-seal {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #8b0000;
    color: #a9a9a9;
    letter-spacing: 1px;
}

/* Age Gateway */
.gateway {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.gateway.hidden {
    display: none;
}

.gateway-panel {
    background: linear-gradient(135deg, #1a0000 0%, #330000 100%);
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
    border: 3px solid #8b0000;
    max-width: 550px;
    box-shadow: 0 0 50px rgba(139, 0, 0, 0.8);
}

.gateway-emblem {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.gateway-title {
    color: #c41e3a;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
}

.gateway-subtitle {
    color: #a9a9a9;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.gateway-text {
    margin-bottom: 1rem;
}

.gateway-question {
    font-weight: 700;
    color: #c41e3a;
    margin: 2rem 0;
    font-size: 1.1rem;
}

.gateway-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-enter,
.btn-exit {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 5px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 2px;
}

.btn-enter {
    background: #c41e3a;
    color: #fff;
}

.btn-exit {
    background: #4a4a4a;
    color: #d4d4d4;
}

.btn-enter:hover,
.btn-exit:hover {
    transform: scale(1.05);
}

/* Play Page */
.instructions-panel,
.lore-panel,
.strategy-panel,
.notice-panel {
    background: linear-gradient(135deg, rgba(26, 0, 0, 0.8) 0%, rgba(51, 0, 0, 0.6) 100%);
    border: 2px solid #8b0000;
    border-radius: 8px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.instructions-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.instruction-cell strong {
    color: #c41e3a;
    display: block;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.game-arena {
    margin-bottom: 2rem;
}

.lore-panel h3,
.strategy-panel h3,
.notice-panel h3 {
    color: #c41e3a;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.strategy-list {
    margin-left: 2rem;
    margin-top: 1rem;
}

.strategy-list li {
    margin-bottom: 0.8rem;
}

.notice-panel {
    border-color: #daa520;
}

/* Legal Pages */
.legal-pages {
    max-width: 1000px;
}

.legal-title {
    color: #c41e3a;
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.legal-timestamp {
    color: #a9a9a9;
    margin-bottom: 3rem;
    letter-spacing: 1px;
}

.legal-article {
    background: linear-gradient(135deg, rgba(26, 0, 0, 0.8) 0%, rgba(51, 0, 0, 0.6) 100%);
    border: 2px solid #8b0000;
    border-radius: 8px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.legal-article h2 {
    color: #c41e3a;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.legal-article ul {
    margin-left: 2.5rem;
    margin-top: 1rem;
}

.legal-article li {
    margin-bottom: 0.8rem;
}

.warning-panel {
    border-color: #daa520;
    border-width: 3px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .primary-nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 80px);
        background: #1a0000;
        flex-direction: column;
        padding: 2rem;
        transition: right 0.3s;
        border-left: 3px solid #8b0000;
    }

    .primary-nav.active {
        right: 0;
    }

    .hero-heading {
        font-size: 2.5rem;
    }

    .hero-subheading {
        font-size: 1.1rem;
    }

    .game-viewport {
        height: 400px;
    }

    .gateway-panel {
        margin: 0 1rem;
        padding: 2rem;
    }

    .gateway-actions {
        flex-direction: column;
    }

    .declaration-grid {
        grid-template-columns: 1fr;
    }
}
