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

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

:root {
    --forest-deep: #1a2f23;
    --emerald-dark: #2d4a3e;
    --jade-glow: #4a9c7d;
    --mint-light: #7dd3b3;
    --gold-accent: #d4af37;
    --cream-soft: #f8f4e8;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    background: var(--forest-deep);
    color: var(--cream-soft);
    line-height: 1.75;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

a {
    color: var(--mint-light);
    text-decoration: none;
    transition: all 0.3s;
}

a:hover {
    color: var(--gold-accent);
}

/* Header */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(26, 47, 35, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(74, 156, 125, 0.2);
}

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

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

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

.logo-wrap h1 {
    font-size: 1.8rem;
    color: var(--gold-accent);
    letter-spacing: 2px;
}

.burger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1001;
}

.burger span {
    height: 3px;
    background: var(--gold-accent);
    border-radius: 2px;
    transition: all 0.3s;
}

.burger.active span:first-child {
    transform: rotate(45deg) translate(7px, 7px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:last-child {
    transform: rotate(-45deg) translate(6px, -6px);
}

.navigation ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.navigation a {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--cream-soft);
    position: relative;
}

.navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-accent);
    transition: width 0.3s;
}

.navigation a:hover {
    color: var(--gold-accent);
}

.navigation a:hover::after {
    width: 100%;
}

/* Main Banner */
.main-banner {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--forest-deep) 0%, var(--emerald-dark) 60%, var(--jade-glow) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 2rem 80px;
    text-align: center;
    position: relative;
}

.main-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='none' fill-rule='evenodd'%3E%3Cg fill='%234a9c7d' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

.banner-inner {
    max-width: 800px;
    z-index: 1;
}

.banner-inner h2 {
    font-size: clamp(2.8rem, 7vw, 5rem);
    color: var(--cream-soft);
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.banner-inner h2 span {
    color: var(--gold-accent);
}

.banner-text {
    font-size: 1.2rem;
    color: rgba(248, 244, 232, 0.85);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.banner-cta {
    display: inline-block;
    background: var(--gold-accent);
    color: var(--forest-deep);
    padding: 1rem 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: all 0.3s;
}

.banner-cta:hover {
    background: var(--mint-light);
    color: var(--forest-deep);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* Cards Section */
.cards-section {
    padding: 5rem 2rem;
    background: var(--forest-deep);
}

.cards-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.info-card {
    background: linear-gradient(145deg, var(--emerald-dark), rgba(45, 74, 62, 0.5));
    border: 1px solid rgba(74, 156, 125, 0.3);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s;
}

.info-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold-accent);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.info-card h3 {
    font-size: 1.5rem;
    color: var(--gold-accent);
    margin-bottom: 1rem;
}

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

/* Game Area */
.game-area {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, var(--forest-deep), var(--emerald-dark));
}

.game-area-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--cream-soft);
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--mint-light);
    font-size: 1.05rem;
}

.game-wrapper {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--jade-glow);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

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

/* About Block */
.about-block {
    padding: 6rem 2rem;
    background: var(--forest-deep);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--gold-accent);
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.1rem;
    color: rgba(248, 244, 232, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.9;
}

/* Footer */
.site-footer {
    background: rgba(26, 47, 35, 0.98);
    border-top: 1px solid rgba(74, 156, 125, 0.2);
    padding: 3rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

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

.footer-nav a {
    color: var(--cream-soft);
    font-size: 0.9rem;
}

.responsible-section {
    padding-top: 2rem;
    border-top: 1px solid rgba(74, 156, 125, 0.15);
}

.responsible-section p {
    font-size: 0.85rem;
    color: rgba(248, 244, 232, 0.7);
    margin-bottom: 1rem;
}

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

.responsible-links a {
    font-size: 0.85rem;
    color: var(--jade-glow);
}

.copyright {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: rgba(248, 244, 232, 0.5);
}

/* Age Modal */
.age-modal {
    position: fixed;
    inset: 0;
    background: rgba(26, 47, 35, 0.98);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.age-modal.closed {
    display: none;
}

.age-popup {
    background: linear-gradient(145deg, var(--emerald-dark), var(--forest-deep));
    border: 2px solid var(--gold-accent);
    border-radius: 20px;
    padding: 3rem;
    max-width: 480px;
    text-align: center;
}

.age-popup h2 {
    font-size: 2rem;
    color: var(--gold-accent);
    margin-bottom: 1.5rem;
}

.age-popup p {
    color: var(--cream-soft);
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.btn-age {
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 6px;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-confirm {
    background: var(--gold-accent);
    color: var(--forest-deep);
}

.btn-confirm:hover {
    background: var(--mint-light);
}

.btn-decline {
    background: transparent;
    color: var(--cream-soft);
    border: 2px solid var(--jade-glow);
}

.btn-decline:hover {
    background: var(--jade-glow);
    color: var(--forest-deep);
}

/* Page Content */
.page-body {
    padding: 110px 2rem 4rem;
    max-width: 950px;
    margin: 0 auto;
    min-height: calc(100vh - 250px);
}

.page-body h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    color: var(--gold-accent);
    margin-bottom: 2.5rem;
    text-align: center;
}

.page-body h2 {
    font-size: 1.5rem;
    color: var(--mint-light);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(74, 156, 125, 0.3);
}

.page-body p {
    color: rgba(248, 244, 232, 0.9);
    margin-bottom: 1.2rem;
}

.page-body ul {
    margin: 1rem 0 1.5rem 2rem;
}

.page-body li {
    color: rgba(248, 244, 232, 0.85);
    margin-bottom: 0.5rem;
}

/* Play Page */
.play-page {
    padding: 110px 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.play-page h1 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--gold-accent);
    margin-bottom: 1rem;
}

.play-note {
    text-align: center;
    color: rgba(248, 244, 232, 0.7);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: var(--forest-deep);
        transition: right 0.35s;
        padding: 100px 2rem;
        border-left: 1px solid rgba(74, 156, 125, 0.2);
    }

    .navigation.open {
        right: 0;
    }

    .navigation ul {
        flex-direction: column;
        gap: 2rem;
    }

    .navigation a {
        font-size: 1.1rem;
    }

    .main-banner {
        padding: 100px 1.5rem 60px;
    }

    .game-wrapper iframe {
        height: 480px;
    }

    .age-actions {
        flex-direction: column;
    }

    .footer-nav {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .logo-wrap h1 {
        font-size: 1.4rem;
    }

    .game-wrapper iframe {
        height: 380px;
    }
}
