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

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

:root {
    --pink-fun: #ff69b4;
    --purple-magic: #ba55d3;
    --blue-sky: #87ceeb;
    --yellow-sun: #ffd700;
    --mint-fresh: #98ff98;
    --bg-soft: #fff5f7;
    --text-main: #4a4a4a;
}

body {
    font-family: 'Fredoka', sans-serif;
    background: var(--bg-soft);
    color: var(--text-main);
    line-height: 1.7;
}

header {
    background: linear-gradient(90deg, var(--pink-fun), var(--purple-magic), var(--blue-sky));
    padding: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.brand {
    font-family: 'Pacifico', cursive;
    font-size: 2.5rem;
    color: white;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand::before {
    content: '🦄';
    font-size: 2.5rem;
}

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

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

nav a:hover {
    background: white;
    color: var(--pink-fun);
    transform: scale(1.05);
}

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

.burger-menu span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s;
}

main {
    min-height: 100vh;
}

.splash {
    background: linear-gradient(135deg, var(--pink-fun) 0%, var(--purple-magic) 50%, var(--blue-sky) 100%);
    padding: 5rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.splash::before {
    content: '🌈 ✨ 🎪 🎠 🎡 ⭐';
    position: absolute;
    top: 2rem;
    left: 0;
    right: 0;
    font-size: 2rem;
    opacity: 0.3;
    animation: float 10s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.splash h1 {
    font-family: 'Pacifico', cursive;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.splash p {
    font-size: 1.4rem;
    max-width: 900px;
    margin: 0 auto;
    font-weight: 500;
}

.bubble-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1250px;
    margin: -3rem auto 4rem;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.bubble-card {
    background: white;
    padding: 2.5rem;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.2);
    transition: all 0.3s;
    border: 4px solid transparent;
}

.bubble-card:nth-child(1) {
    border-color: var(--pink-fun);
}

.bubble-card:nth-child(2) {
    border-color: var(--purple-magic);
}

.bubble-card:nth-child(3) {
    border-color: var(--blue-sky);
}

.bubble-card:hover {
    transform: translateY(-10px) rotate(-2deg);
    box-shadow: 0 15px 40px rgba(255, 105, 180, 0.3);
}

.bubble-card h3 {
    font-family: 'Pacifico', cursive;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--pink-fun);
}

.play-area {
    max-width: 1250px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.game-card {
    background: white;
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(186, 85, 211, 0.2);
    border: 5px solid var(--purple-magic);
}

.game-card h2 {
    font-family: 'Pacifico', cursive;
    font-size: 3rem;
    text-align: center;
    color: var(--purple-magic);
    margin-bottom: 2rem;
}

.game-card iframe {
    width: 100%;
    height: 700px;
    border: none;
    border-radius: 20px;
    background: #000;
}

.story-section {
    max-width: 1250px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.story-section h2 {
    font-family: 'Pacifico', cursive;
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: var(--pink-fun);
    text-align: center;
}

.story-section p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    line-height: 1.9;
}

.perk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.perk-box {
    background: white;
    padding: 2rem;
    border-radius: 25px;
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.2);
    border: 3px solid var(--blue-sky);
    transition: all 0.3s;
}

.perk-box:hover {
    border-color: var(--yellow-sun);
    transform: scale(1.03);
}

.perk-box h3 {
    font-family: 'Pacifico', cursive;
    color: var(--purple-magic);
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

footer {
    background: linear-gradient(90deg, var(--pink-fun), var(--purple-magic), var(--blue-sky));
    color: white;
    padding: 3rem 2rem;
    margin-top: 5rem;
}

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

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

.footer-nav a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.footer-nav a:hover {
    transform: scale(1.15);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.age-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(186, 85, 211, 0.95);
    z-index: 999999;
    justify-content: center;
    align-items: center;
}

.age-popup-inner {
    background: white;
    padding: 3rem;
    border-radius: 35px;
    text-align: center;
    max-width: 550px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 6px solid var(--pink-fun);
}

.age-popup-inner h2 {
    font-family: 'Pacifico', cursive;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--purple-magic);
}

.age-popup-inner p {
    margin-bottom: 2rem;
    font-size: 1.15rem;
    color: var(--text-main);
}

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

.age-choices button {
    padding: 1.2rem 3rem;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-enter {
    background: linear-gradient(135deg, var(--pink-fun), var(--purple-magic));
    color: white;
}

.btn-enter:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.5);
}

.btn-leave {
    background: #999;
    color: white;
}

.btn-leave:hover {
    background: #777;
}

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

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: linear-gradient(180deg, var(--pink-fun), var(--purple-magic));
        flex-direction: column;
        padding: 6rem 2rem;
        transition: right 0.3s;
    }

    nav ul.open {
        right: 0;
    }

    .splash h1 {
        font-size: 2.5rem;
    }

    .splash p {
        font-size: 1.1rem;
    }

    .game-card iframe {
        height: 500px;
    }

    .brand {
        font-size: 1.8rem;
    }
}
