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

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

:root {
    --sunny-yellow: #ffc107;
    --grass-green: #4caf50;
    --sky-blue: #03a9f4;
    --warm-orange: #ff9800;
    --barn-red: #e53935;
    --cream-bg: #fffbf0;
    --wood-brown: #795548;
    --soft-white: #ffffff;
    --text-dark: #3e2723;
    --text-muted: #6d4c41;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, var(--cream-bg) 0%, #fff8e1 100%);
    color: var(--text-dark);
    min-height: 100vh;
    line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
}

a {
    color: var(--barn-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--warm-orange);
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--soft-white);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.brand-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 50px;
    height: 50px;
}

.brand-name {
    font-family: 'Nunito', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--warm-orange);
}

.brand-name span {
    color: var(--grass-green);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: var(--sunny-yellow);
    border-radius: 8px;
    border: none;
}

.mobile-menu-btn span {
    width: 24px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:first-child {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

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

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

.site-nav a {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
    color: var(--text-dark);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.site-nav a:hover,
.site-nav a.active {
    background: var(--sunny-yellow);
    color: var(--text-dark);
}

/* Main */
main {
    padding-top: 85px;
}

.welcome-section {
    padding: 5rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, var(--soft-white) 0%, var(--cream-bg) 100%);
}

.welcome-section h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
    color: var(--warm-orange);
    text-shadow: 2px 2px 0 var(--sunny-yellow);
}

.welcome-section .intro {
    font-size: 1.15rem;
    max-width: 850px;
    margin: 0 auto;
    color: var(--text-muted);
}

/* Feature Boxes */
.feature-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1300px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.feature-box {
    background: var(--soft-white);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 3px solid transparent;
    transition: all 0.4s ease;
}

.feature-box:hover {
    transform: translateY(-8px);
    border-color: var(--sunny-yellow);
}

.feature-box .emoji {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.feature-box h3 {
    color: var(--grass-green);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.feature-box p {
    color: var(--text-muted);
}

/* Game Section */
.game-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(76, 175, 80, 0.15) 100%);
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
}

.game-title {
    text-align: center;
    margin-bottom: 2rem;
}

.game-title h2 {
    font-size: 2.2rem;
    color: var(--barn-red);
}

.game-frame {
    position: relative;
    width: 100%;
    padding-bottom: 56%;
    border-radius: 20px;
    overflow: hidden;
    background: var(--wood-brown);
    border: 5px solid var(--wood-brown);
    box-shadow: 0 15px 50px rgba(121, 85, 72, 0.3);
}

.game-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.info-card {
    background: var(--soft-white);
    padding: 2rem;
    border-radius: 16px;
    border-left: 5px solid var(--sky-blue);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.info-card h3 {
    color: var(--sky-blue);
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
}

.info-card p {
    color: var(--text-muted);
}

/* Page Content */
.page-content {
    max-width: 950px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.page-content h1 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--warm-orange);
}

.page-content h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    color: var(--grass-green);
}

.page-content p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.page-content ul {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-muted);
}

.page-content li {
    margin-bottom: 0.5rem;
}

/* Play Page Note */
.gameplay-note {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--soft-white);
    border: 2px dashed var(--sunny-yellow);
    border-radius: 16px;
    text-align: center;
}

.gameplay-note h3 {
    color: var(--warm-orange);
    margin-bottom: 0.8rem;
}

.gameplay-note p {
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    background: var(--wood-brown);
    padding: 3rem 2rem;
    margin-top: 5rem;
}

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

.footer-heading {
    color: var(--sunny-yellow);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

.support-links a {
    padding: 0.6rem 1.4rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    color: var(--soft-white);
    font-weight: 600;
}

.support-links a:hover {
    background: var(--sunny-yellow);
    color: var(--text-dark);
}

.footer-legal {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

/* Age Popup */
.age-popup {
    position: fixed;
    inset: 0;
    background: rgba(62, 39, 35, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 2rem;
}

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

.age-dialog {
    background: var(--soft-white);
    border-radius: 24px;
    padding: 3rem;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.age-dialog h2 {
    color: var(--warm-orange);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.age-dialog p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

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

.btn-confirm, .btn-deny {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-confirm {
    background: linear-gradient(135deg, var(--grass-green), var(--sky-blue));
    color: var(--soft-white);
}

.btn-confirm:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.btn-deny {
    background: transparent;
    border: 3px solid var(--barn-red);
    color: var(--barn-red);
}

.btn-deny:hover {
    background: var(--barn-red);
    color: var(--soft-white);
}

.denied-text {
    display: none;
    margin-top: 1.5rem;
    color: var(--barn-red);
    font-weight: 700;
}

/* Responsive */
@media (max-width: 992px) {
    .feature-row {
        grid-template-columns: 1fr;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: var(--soft-white);
        padding: 80px 1.5rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    }

    .site-nav.open {
        right: 0;
    }

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

    .site-nav a {
        display: block;
        text-align: center;
    }

    .header-content {
        padding: 0.8rem 1rem;
    }

    .brand-name {
        font-size: 1.4rem;
    }

    .welcome-section {
        padding: 3rem 1rem;
    }

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

    .support-links {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 1.2rem;
    }

    .brand-icon {
        width: 40px;
        height: 40px;
    }

    .page-content h1 {
        font-size: 2rem;
    }
}
