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

:root {
    --sunny-yellow: #ffd93d;
    --playful-orange: #ff6b35;
    --sky-blue: #4ecdc4;
    --fun-pink: #ff6b81;
    --clean-white: #ffffff;
    --soft-gray: #f7f7f7;
    --text-dark: #2d3436;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: var(--soft-gray);
    color: var(--text-dark);
    min-height: 100vh;
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: 'Fredoka One', cursive;
}

a {
    color: var(--playful-orange);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--fun-pink);
}

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

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

.brand-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--sunny-yellow), var(--playful-orange));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.brand-text {
    font-family: 'Fredoka One', cursive;
    font-size: 1.6rem;
    background: linear-gradient(90deg, var(--playful-orange), var(--fun-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile Menu */
.mobile-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-btn span {
    width: 28px;
    height: 3px;
    background: var(--playful-orange);
    border-radius: 3px;
    transition: all 0.3s;
}

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

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

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

.nav-list {
    display: flex;
    gap: 0.25rem;
}

.nav-list a {
    color: var(--text-dark);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.nav-list a:hover,
.nav-list a.now {
    background: linear-gradient(135deg, var(--sunny-yellow), var(--playful-orange));
    color: white;
}

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

    .nav-list {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--clean-white);
        flex-direction: column;
        padding: 1.5rem;
        transform: translateY(-150%);
        transition: transform 0.3s;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-list.show {
        transform: translateY(0);
    }

    .nav-list a {
        padding: 1rem;
        text-align: center;
    }
}

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

/* Hero */
.fun-hero {
    background: linear-gradient(135deg, var(--sunny-yellow) 0%, var(--playful-orange) 50%, var(--fun-pink) 100%);
    padding: 5rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.fun-hero::before {
    content: '🐔🎰🎯🌟';
    position: absolute;
    font-size: 8rem;
    opacity: 0.1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.hero-box {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.fun-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
}

.fun-hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.play-btn {
    display: inline-block;
    background: var(--clean-white);
    color: var(--playful-orange);
    padding: 1.1rem 3rem;
    border-radius: 50px;
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.play-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    color: var(--fun-pink);
}

.info-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.tag {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Game Area */
.game-area {
    padding: 4rem 2rem;
    background: var(--clean-white);
}

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

.game-heading {
    text-align: center;
    font-size: 2.2rem;
    color: var(--playful-orange);
    margin-bottom: 2rem;
}

.game-container {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.15);
}

.game-container iframe {
    width: 100%;
    height: 550px;
    border: none;
}

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

.cards-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

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

.fun-card {
    background: var(--clean-white);
    border-radius: 25px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 3px solid transparent;
}

.fun-card:hover {
    transform: translateY(-10px);
    border-color: var(--sunny-yellow);
    box-shadow: 0 20px 50px rgba(255, 217, 61, 0.2);
}

.card-emoji {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.fun-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--playful-orange);
}

.fun-card p {
    color: #666;
}

@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

/* About Section */
.about-section {
    padding: 5rem 2rem;
    background: var(--clean-white);
}

.about-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.about-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

.about-row:nth-child(even) {
    flex-direction: row-reverse;
}

.about-image {
    flex: 0 0 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--sky-blue), var(--fun-pink));
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.about-content h3 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
    color: var(--playful-orange);
}

.about-content p {
    color: #555;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .about-row,
    .about-row:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        flex: 0 0 150px;
        height: 150px;
        font-size: 4rem;
    }
}

/* Page Styles */
.page-top {
    background: linear-gradient(135deg, var(--sunny-yellow), var(--playful-orange));
    color: white;
    padding: 8rem 2rem 4rem;
    text-align: center;
}

.page-top h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 0.5rem;
}

.page-top p {
    opacity: 0.9;
}

.page-content {
    max-width: 850px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
    background: var(--clean-white);
}

.page-content h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--playful-orange);
    padding-left: 15px;
    border-left: 4px solid var(--sunny-yellow);
}

.page-content p {
    color: #555;
    margin-bottom: 1.2rem;
}

.page-content ul {
    margin: 1rem 0 1.5rem 1.5rem;
    color: #555;
}

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

/* Play Page */
.play-page {
    padding: 2rem;
    background: var(--soft-gray);
    min-height: calc(100vh - 70px);
}

.play-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.play-frame {
    background: var(--clean-white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(255, 107, 53, 0.2);
}

.play-frame iframe {
    width: 100%;
    height: 600px;
    border: none;
}

.play-tips {
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background: var(--clean-white);
    border-radius: 20px;
    border-left: 5px solid var(--sunny-yellow);
}

.play-tips h3 {
    color: var(--playful-orange);
    margin-bottom: 0.5rem;
}

.play-tips p {
    color: #666;
}

/* Footer */
.fun-footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 2rem 1.5rem;
}

.footer-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand h4 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: var(--sunny-yellow);
    margin-bottom: 1rem;
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-menu h5,
.footer-help h5 {
    color: var(--playful-orange);
    margin-bottom: 1rem;
}

.footer-menu ul {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 0.4rem;
}

.footer-menu a {
    color: white;
    opacity: 0.8;
}

.footer-menu a:hover {
    opacity: 1;
    color: var(--sunny-yellow);
}

.help-btns {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.help-btns a {
    background: rgba(255, 217, 61, 0.15);
    padding: 0.6rem 1rem;
    border-radius: 10px;
    color: white;
    font-size: 0.9rem;
}

.help-btns a:hover {
    background: rgba(255, 217, 61, 0.25);
}

.footer-end {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0.7;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .help-btns {
        align-items: center;
    }
}

/* Age Popup */
.age-popup-bg {
    position: fixed;
    inset: 0;
    background: rgba(45, 52, 54, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.age-popup-box {
    background: var(--clean-white);
    border-radius: 30px;
    padding: 3rem;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
}

.age-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.age-popup-box h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--playful-orange);
}

.age-popup-box p {
    color: #666;
    margin-bottom: 2rem;
}

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

.btn-yes {
    background: linear-gradient(135deg, var(--sunny-yellow), var(--playful-orange));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-family: 'Fredoka One', cursive;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-yes:hover {
    transform: scale(1.05);
}

.btn-no {
    background: transparent;
    border: 3px solid #ddd;
    color: #666;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-family: 'Fredoka One', cursive;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-no:hover {
    border-color: var(--fun-pink);
    color: var(--fun-pink);
}

.age-popup-bg.gone {
    display: none;
}
