@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --sunny-yellow: #ffc107;
    --barn-red: #c62828;
    --sky-blue: #03a9f4;
    --grass-green: #4caf50;
    --cream-bg: #fff8e1;
    --dark-brown: #3e2723;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--cream-bg);
    color: var(--dark-brown);
    line-height: 1.75;
}

h1, h2, h3, h4 {
    font-family: 'Fredoka One', cursive;
    color: var(--barn-red);
}

a {
    color: var(--barn-red);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--sky-blue);
}

.header-strip {
    background: linear-gradient(135deg, var(--barn-red) 0%, #8e0000 100%);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.header-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-section svg {
    width: 50px;
    height: 50px;
}

.brand-section span {
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    color: var(--sunny-yellow);
    text-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

.nav-row {
    display: flex;
    gap: 2rem;
}

.nav-row a {
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
}

.nav-row a:hover {
    color: var(--sunny-yellow);
}

.burger-icon {
    display: none;
    cursor: pointer;
    padding: 8px;
}

.burger-icon div {
    width: 28px;
    height: 4px;
    background: var(--sunny-yellow);
    margin: 5px 0;
    border-radius: 3px;
}

.popup-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--barn-red);
    z-index: 1001;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: right 0.3s ease;
}

.popup-nav.active {
    right: 0;
}

.popup-nav a {
    color: white;
    font-family: 'Fredoka One', cursive;
    font-size: 1.4rem;
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    color: var(--sunny-yellow);
    cursor: pointer;
}

.page-body {
    padding-top: 85px;
}

.intro-section {
    background: linear-gradient(180deg, var(--sky-blue) 0%, #0288d1 100%);
    padding: 5rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.intro-section::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--cream-bg);
    border-radius: 50% 50% 0 0;
}

.intro-section h1 {
    font-size: 3.5rem;
    color: var(--sunny-yellow);
    text-shadow: 3px 3px 0 var(--barn-red);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.intro-section p {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.fun-button {
    display: inline-block;
    background: var(--sunny-yellow);
    color: var(--dark-brown);
    padding: 1rem 3rem;
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    border-radius: 50px;
    box-shadow: 0 5px 0 #f9a825;
    transition: all 0.2s;
    position: relative;
    z-index: 1;
}

.fun-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 0 #f9a825;
    color: var(--dark-brown);
}

.badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.badge-item {
    background: rgba(255,255,255,0.2);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
}

.game-area {
    padding: 4rem 2rem;
    background: var(--cream-bg);
}

.game-area h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.game-box {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    border: 5px solid var(--barn-red);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.game-box iframe {
    width: 100%;
    height: 620px;
    border: none;
    display: block;
}

.perks-section {
    padding: 5rem 2rem;
    background: var(--grass-green);
    color: white;
}

.perks-row {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.perk-card {
    background: rgba(255,255,255,0.15);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s;
}

.perk-card:hover {
    transform: scale(1.05);
}

.perk-card .emoji {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.perk-card h3 {
    color: var(--sunny-yellow);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.perk-card p {
    font-size: 0.95rem;
    opacity: 0.95;
}

.about-section {
    padding: 5rem 2rem;
    background: var(--cream-bg);
}

.about-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.about-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about-section p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.legal-page {
    padding: 4rem 2rem;
    background: var(--cream-bg);
}

.legal-wrap {
    max-width: 850px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.legal-page h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.legal-page h2 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    color: var(--barn-red);
}

.legal-page p {
    margin-bottom: 1rem;
}

.legal-page ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-page li {
    margin-bottom: 0.5rem;
}

.footer-bar {
    background: var(--barn-red);
    padding: 2.5rem 2rem;
    color: white;
}

.footer-wrap {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: white;
    margin: 0 1rem;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--sunny-yellow);
}

.help-section {
    margin-bottom: 1.5rem;
}

.help-section p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.help-section a {
    color: var(--sunny-yellow);
    margin: 0 0.75rem;
    font-size: 0.9rem;
}

.copy-line {
    font-size: 0.8rem;
    opacity: 0.6;
}

.age-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(62, 39, 35, 0.97);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.age-overlay.hidden {
    display: none;
}

.age-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    max-width: 480px;
    margin: 1rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.age-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.age-card p {
    margin-bottom: 1.5rem;
    color: var(--dark-brown);
}

.age-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.age-btn {
    padding: 1rem 2.5rem;
    font-family: 'Fredoka One', cursive;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s;
}

.age-btn.yes {
    background: var(--grass-green);
    color: white;
}

.age-btn.no {
    background: #e0e0e0;
    color: var(--dark-brown);
}

.age-btn:hover {
    transform: scale(1.05);
}

.denied-view {
    display: none;
    text-align: center;
}

.denied-view h2 {
    color: var(--barn-red);
}

@media (max-width: 768px) {
    .nav-row {
        display: none;
    }
    
    .burger-icon {
        display: block;
    }
    
    .intro-section h1 {
        font-size: 2.2rem;
    }
    
    .game-box iframe {
        height: 400px;
    }
    
    .age-btns {
        flex-direction: column;
    }
    
    .legal-wrap {
        padding: 2rem;
    }
}
