@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Lora:wght@400;500;600&display=swap');

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

:root {
    --sand: #d4a574;
    --terracotta: #c75b39;
    --midnight: #1a1a2e;
    --deep-blue: #16213e;
    --gold: #d4af37;
    --ivory: #f5f0e8;
    --bronze: #8b5a2b;
}

body {
    font-family: 'Lora', serif;
    background: var(--midnight);
    color: var(--ivory);
    line-height: 1.75;
}

h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: 0.25s ease;
}

a:hover {
    color: var(--sand);
}

/* Header */
.masthead {
    position: fixed;
    width: 100%;
    top: 0;
    background: linear-gradient(180deg, var(--midnight) 0%, rgba(26, 26, 46, 0.95) 100%);
    z-index: 1000;
    border-bottom: 2px solid var(--bronze);
}

.masthead-inner {
    max-width: 1500px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo svg {
    width: 50px;
    height: 50px;
}

.site-logo span {
    font-family: 'Cinzel', serif;
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 2px;
}

.menu-btn {
    display: none;
    background: none;
    border: 2px solid var(--gold);
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
}

.menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gold);
    margin: 5px 0;
}

.site-nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.site-nav a {
    display: block;
    padding: 0.7rem 1.3rem;
    color: var(--ivory);
    font-weight: 500;
    border-radius: 3px;
}

.site-nav a:hover {
    background: var(--terracotta);
    color: var(--ivory);
}

/* Hero Banner */
.hero-banner {
    padding: 10rem 2rem 4rem;
    background: linear-gradient(135deg, var(--midnight) 0%, var(--deep-blue) 50%, #0f3460 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d4af37' fill-opacity='0.05'%3E%3Cpath d='M30 0l30 30-30 30L0 30z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--gold);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--sand);
    max-width: 700px;
    margin: 0 auto;
}

/* Cards Row */
.cards-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.info-card {
    flex: 1 1 300px;
    max-width: 380px;
    background: linear-gradient(145deg, var(--deep-blue), var(--midnight));
    border: 1px solid var(--bronze);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.info-card .symbol {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    color: var(--gold);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.info-card p {
    color: rgba(245, 240, 232, 0.8);
    font-size: 0.95rem;
}

/* Game Display */
.game-display {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.game-box {
    background: #0d0d1a;
    border: 3px solid var(--terracotta);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(199, 91, 57, 0.3);
}

.game-box iframe {
    width: 100%;
    height: 580px;
    border: none;
    display: block;
}

/* Two Column Layout */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1300px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.split-block {
    background: rgba(22, 33, 62, 0.6);
    padding: 2.5rem;
    border-radius: 8px;
    border-top: 3px solid var(--gold);
}

.split-block h3 {
    color: var(--terracotta);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.split-block p {
    color: rgba(245, 240, 232, 0.85);
}

/* Page Styles */
.page-title-section {
    padding: 8rem 2rem 2rem;
    text-align: center;
    background: linear-gradient(to bottom, var(--deep-blue), var(--midnight));
}

.page-title-section h1 {
    color: var(--gold);
    font-size: 2.4rem;
}

.text-content {
    max-width: 880px;
    margin: 0 auto;
    padding: 2.5rem 2rem 4rem;
}

.text-content h2 {
    color: var(--terracotta);
    margin: 2rem 0 0.8rem;
    font-size: 1.5rem;
}

.text-content p {
    color: rgba(245, 240, 232, 0.85);
    margin-bottom: 1rem;
}

.text-content ul {
    margin: 0.8rem 0 1.5rem 1.5rem;
}

.text-content li {
    color: rgba(245, 240, 232, 0.75);
    margin-bottom: 0.4rem;
}

/* Game Help */
.game-help {
    background: rgba(139, 90, 43, 0.2);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    border-left: 3px solid var(--gold);
}

.game-help h3 {
    color: var(--gold);
    margin-bottom: 0.6rem;
}

/* Footer */
.page-footer {
    background: var(--deep-blue);
    border-top: 2px solid var(--bronze);
    padding: 2.5rem 2rem;
    text-align: center;
}

.responsible-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.responsible-links a {
    font-weight: 600;
}

.copyright-text {
    color: rgba(245, 240, 232, 0.4);
    font-size: 0.85rem;
}

/* Age Overlay */
.age-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 46, 0.98);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.age-overlay.dismissed {
    display: none;
}

.age-popup {
    background: linear-gradient(145deg, var(--deep-blue), var(--midnight));
    border: 2px solid var(--gold);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 450px;
    margin: 1rem;
    text-align: center;
}

.age-popup h2 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.age-popup p {
    color: var(--sand);
    margin-bottom: 1.5rem;
}

.age-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--bronze));
    color: var(--midnight);
    border: none;
    padding: 0.9rem 2rem;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-outline {
    background: transparent;
    color: var(--sand);
    border: 2px solid var(--sand);
    padding: 0.9rem 2rem;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 6px;
    cursor: pointer;
}

.btn-gold:hover, .btn-outline:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--midnight);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .site-nav.visible {
        max-height: 350px;
        border-bottom: 2px solid var(--bronze);
    }

    .site-nav ul {
        flex-direction: column;
        padding: 1rem;
    }

    .site-nav a {
        padding: 1rem;
        text-align: center;
    }

    .hero-banner {
        padding: 7rem 1.5rem 3rem;
    }

    .game-box iframe {
        height: 400px;
    }

    .split-section {
        grid-template-columns: 1fr;
    }

    .cards-row {
        flex-direction: column;
        align-items: center;
    }

    .info-card {
        max-width: 100%;
    }
}
