@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Raleway:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --myth-bg: #1a1510;
    --myth-surface: #252015;
    --myth-gold: #d4af37;
    --myth-bronze: #cd7f32;
    --myth-cream: #f5e6c8;
    --myth-text: #e8dcc8;
    --myth-muted: #9a8b75;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    background: var(--myth-bg);
    color: var(--myth-text);
    line-height: 1.8;
    min-height: 100vh;
    background-image: 
        radial-gradient(ellipse at 20% 20%, rgba(212,175,55,0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(205,127,50,0.03) 0%, transparent 50%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    color: var(--myth-gold);
}

a {
    color: var(--myth-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--myth-cream);
}

/* Navigation */
.main-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--myth-bg) 0%, rgba(26,21,16,0.97) 100%);
    border-bottom: 2px solid var(--myth-gold);
}

.header-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
}

.brand {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--myth-gold);
    text-transform: uppercase;
    letter-spacing: 4px;
}

.main-nav {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.main-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.4rem 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--myth-gold);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background: var(--myth-gold);
    transition: all 0.3s ease;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 75px;
        left: 0;
        right: 0;
        background: var(--myth-bg);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        border-bottom: 2px solid var(--myth-gold);
    }

    .main-nav.open {
        transform: translateY(0);
    }

    .menu-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* Content Areas */
main {
    padding-top: 90px;
}

.intro-banner {
    padding: 5rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(212,175,55,0.08) 0%, transparent 100%);
    border-bottom: 1px solid rgba(212,175,55,0.2);
}

.intro-banner h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    margin-bottom: 1.5rem;
    letter-spacing: 6px;
}

.intro-banner .subtitle {
    font-size: 1.15rem;
    max-width: 900px;
    margin: 0 auto;
    color: var(--myth-muted);
    font-weight: 300;
}

/* Info Blocks */
.info-blocks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.info-block {
    flex: 1 1 320px;
    max-width: 450px;
    padding: 2.5rem;
    background: var(--myth-surface);
    border: 1px solid rgba(212,175,55,0.25);
    text-align: center;
    transition: all 0.4s ease;
}

.info-block:hover {
    transform: translateY(-8px);
    border-color: var(--myth-gold);
    box-shadow: 0 15px 40px rgba(212,175,55,0.15);
}

.info-block h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.info-block p {
    color: var(--myth-muted);
    font-size: 0.95rem;
}

/* Game Display */
.game-area {
    padding: 4rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.game-area h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    letter-spacing: 4px;
}

.game-frame {
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 750px;
    border: 3px solid var(--myth-gold);
    background: var(--myth-surface);
    overflow: hidden;
}

.game-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Text Sections */
.text-section {
    padding: 4rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.text-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
}

.text-section p {
    margin-bottom: 1.2rem;
    font-weight: 300;
}

/* Feature Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.feature-card {
    padding: 2rem;
    background: rgba(212,175,55,0.05);
    border-left: 3px solid var(--myth-gold);
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.feature-card p {
    color: var(--myth-muted);
    font-size: 0.9rem;
}

/* Page Titles */
.page-title {
    padding: 4rem 2rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(212,175,55,0.05) 0%, transparent 100%);
}

.page-title h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    letter-spacing: 5px;
}

/* Play Page Styles */
.play-section {
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.play-section > p {
    text-align: center;
    color: var(--myth-muted);
    margin-bottom: 2rem;
}

.controls-info {
    background: var(--myth-surface);
    border: 1px solid rgba(212,175,55,0.25);
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.controls-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.controls-info p {
    color: var(--myth-muted);
    font-size: 0.9rem;
}

/* Legal Pages */
.legal-text {
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.legal-text h2 {
    font-size: 1.4rem;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(212,175,55,0.3);
    letter-spacing: 2px;
}

.legal-text h3 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.8rem;
    color: var(--myth-bronze);
}

.legal-text p {
    margin-bottom: 1rem;
    font-weight: 300;
}

.legal-text ul {
    margin: 1rem 0 1rem 2rem;
}

.legal-text ul li {
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.doc-date {
    color: var(--myth-muted);
    font-size: 0.85rem;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(212,175,55,0.2);
}

/* Footer */
.site-footer {
    background: var(--myth-surface);
    border-top: 2px solid var(--myth-gold);
    padding: 3.5rem 2rem;
    margin-top: 5rem;
}

.footer-inner {
    max-width: 1600px;
    margin: 0 auto;
    text-align: center;
}

.footer-inner h4 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--myth-gold);
    margin-bottom: 1.2rem;
    letter-spacing: 3px;
}

.help-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.help-links a {
    color: var(--myth-muted);
    font-size: 0.9rem;
    font-weight: 400;
}

.help-links a:hover {
    color: var(--myth-gold);
}

.copyright {
    color: var(--myth-muted);
    font-size: 0.85rem;
    font-weight: 300;
}

/* Age Verification */
.age-gate {
    position: fixed;
    inset: 0;
    background: rgba(26,21,16,0.98);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.age-modal {
    background: var(--myth-surface);
    border: 3px solid var(--myth-gold);
    padding: 3.5rem;
    max-width: 520px;
    text-align: center;
}

.age-modal h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
}

.age-modal p {
    color: var(--myth-text);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.age-actions {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
}

.age-button {
    padding: 1rem 2.5rem;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid var(--myth-gold);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.age-button.confirm {
    background: var(--myth-gold);
    color: var(--myth-bg);
}

.age-button.confirm:hover {
    background: var(--myth-cream);
}

.age-button.decline {
    background: transparent;
    color: var(--myth-gold);
}

.age-button.decline:hover {
    background: rgba(255,80,80,0.2);
    border-color: #ff5050;
    color: #ff5050;
}

.hidden {
    display: none !important;
}
