@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Josefin+Sans:wght@300;400;500;600;700&display=swap');

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

:root {
    --royal: #1e3a8a;
    --gold: #eab308;
    --silver: #94a3b8;
    --pearl: #f8fafc;
    --obsidian: #0f172a;
}

body {
    font-family: 'Josefin Sans', sans-serif;
    background: var(--pearl);
    color: var(--obsidian);
    line-height: 1.8;
}

header {
    background: var(--royal);
    padding: 1rem 2.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1500px;
    margin: 0 auto;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-block svg {
    width: 55px;
    height: 55px;
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
}

.main-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.main-links a {
    color: var(--pearl);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.main-links a:hover {
    color: var(--gold);
}

.menu-icon {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-icon span {
    width: 28px;
    height: 3px;
    background: var(--gold);
}

.grand-hero {
    background: linear-gradient(135deg, var(--royal) 0%, var(--obsidian) 100%);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
}

.grand-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(234, 179, 8, 0.1) 0%, transparent 60%);
}

.grand-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--pearl);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.grand-hero h1 span {
    color: var(--gold);
}

.grand-hero p {
    font-size: 1.2rem;
    color: rgba(248, 250, 252, 0.9);
    max-width: 800px;
    margin: 0 auto 3rem;
    position: relative;
    z-index: 1;
}

.crests {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.crest {
    background: rgba(234, 179, 8, 0.1);
    border: 2px solid var(--gold);
    padding: 1.2rem 2.5rem;
    color: var(--pearl);
}

.crest strong {
    display: block;
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 0.3rem;
}

.game-chamber {
    padding: 5rem 2rem;
    background: var(--pearl);
}

.game-chamber h2 {
    font-family: 'Cormorant Garamond', serif;
    text-align: center;
    font-size: 2.5rem;
    color: var(--royal);
    margin-bottom: 2rem;
}

.chamber-frame {
    max-width: 1300px;
    margin: 0 auto;
    border: 4px solid var(--gold);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(30, 58, 138, 0.2);
}

.chamber-frame iframe {
    width: 100%;
    height: 680px;
    border: none;
    display: block;
}

.virtues {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--obsidian);
}

.virtue {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--pearl);
    border-right: 1px solid rgba(234, 179, 8, 0.2);
}

.virtue:last-child {
    border-right: none;
}

.virtue .symbol {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.virtue h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 0.8rem;
}

.virtue p {
    font-size: 0.95rem;
    color: rgba(248, 250, 252, 0.75);
}

.content-area {
    padding: 5rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.content-area h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: var(--royal);
    margin-bottom: 2rem;
    text-align: center;
}

.content-area h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--royal);
    margin: 2.5rem 0 1rem;
}

.content-area p {
    color: var(--obsidian);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.content-area ul {
    margin: 1rem 0 1.5rem 2rem;
}

.content-area li {
    color: var(--obsidian);
    margin-bottom: 0.7rem;
}

.story-block {
    background: linear-gradient(180deg, var(--pearl) 0%, #e2e8f0 100%);
    padding: 5rem 2rem;
    text-align: center;
}

.story-block h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    color: var(--royal);
    margin-bottom: 2rem;
}

.story-block p {
    max-width: 900px;
    margin: 0 auto 1.5rem;
    font-size: 1.1rem;
    color: var(--obsidian);
}

footer {
    background: var(--royal);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-row a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-row a:hover {
    color: var(--pearl);
}

footer p {
    color: rgba(248, 250, 252, 0.6);
    font-size: 0.9rem;
}

.age-screen {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.97);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.age-screen.hidden {
    display: none;
}

.age-panel {
    background: var(--pearl);
    border: 3px solid var(--gold);
    padding: 3rem;
    text-align: center;
    max-width: 500px;
    margin: 1rem;
}

.age-panel h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--royal);
    margin-bottom: 1.5rem;
}

.age-panel p {
    color: var(--obsidian);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

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

.age-btn {
    padding: 1rem 2.5rem;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.age-btn.proceed {
    background: var(--royal);
    color: var(--pearl);
}

.age-btn.proceed:hover {
    background: var(--obsidian);
}

.age-btn.exit {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--royal);
}

.age-btn.exit:hover {
    background: var(--gold);
    color: var(--obsidian);
}

.play-section {
    padding: 4rem 2rem;
    background: linear-gradient(180deg, var(--pearl) 0%, #e2e8f0 100%);
}

.play-section h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    text-align: center;
    color: var(--royal);
    margin-bottom: 1rem;
}

.play-info {
    text-align: center;
    color: var(--obsidian);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    opacity: 0.8;
}

@media (max-width: 900px) {
    .virtues {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .virtue:nth-child(2) {
        border-right: none;
    }
    
    .virtue {
        border-bottom: 1px solid rgba(234, 179, 8, 0.2);
    }
}

@media (max-width: 768px) {
    .menu-icon {
        display: flex;
    }
    
    .main-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--royal);
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-200%);
        transition: transform 0.4s;
    }
    
    .main-links.open {
        transform: translateY(0);
    }
    
    .grand-hero h1 {
        font-size: 2.2rem;
    }
    
    .grand-hero p {
        font-size: 1.05rem;
    }
    
    .crests {
        flex-direction: column;
        align-items: center;
    }
    
    .chamber-frame iframe {
        height: 420px;
    }
    
    .virtues {
        grid-template-columns: 1fr;
    }
    
    .virtue {
        border-right: none;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .age-actions {
        flex-direction: column;
    }
}
