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

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

:root {
    --fruit-red: #dc2626;
    --fruit-orange: #ea580c;
    --fruit-yellow: #eab308;
    --fruit-green: #16a34a;
    --cream-bg: #fef9ef;
    --dark-text: #1f2937;
    --mid-gray: #6b7280;
    --light-gray: #f3f4f6;
}

html {
    scroll-behavior: smooth;
}

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

.fruit-header {
    background: linear-gradient(90deg, var(--fruit-red), var(--fruit-orange), var(--fruit-yellow), var(--fruit-green));
    background-size: 300% 100%;
    animation: gradientFlow 8s ease infinite;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0.9rem 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

.fruit-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.fruit-brand svg {
    width: 40px;
    height: 40px;
}

.fruit-brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.fruit-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    z-index: 1001;
}

.fruit-toggle span {
    display: block;
    width: 22px;
    height: 3px;
    background: white;
    margin: 4px 0;
    border-radius: 3px;
    transition: 0.3s;
}

.fruit-toggle.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.fruit-toggle.active span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}

.fruit-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.fruit-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    transition: all 0.3s;
}

.fruit-nav a:hover {
    background: rgba(255, 255, 255, 0.25);
}

.fresh-hero {
    padding: 9rem 2rem 4rem;
    background: linear-gradient(135deg, var(--cream-bg), #fff9e6);
    text-align: center;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.fresh-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--dark-text);
}

.fresh-hero p {
    font-size: 1.1rem;
    color: var(--mid-gray);
    margin-bottom: 2rem;
}

.fruit-tags {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.fruit-tag {
    background: white;
    border: 2px solid var(--fruit-green);
    padding: 0.6rem 1.3rem;
    border-radius: 25px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--fruit-green);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.game-area {
    padding: 4rem 2rem;
    background: white;
}

.game-heading {
    text-align: center;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--fruit-orange);
    margin-bottom: 1.5rem;
}

.game-container {
    max-width: 1100px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--fruit-red), var(--fruit-orange));
    border-radius: 24px;
    padding: 6px;
    box-shadow: 0 15px 40px rgba(234, 88, 12, 0.2);
}

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

.benefits-section {
    padding: 4rem 2rem;
    background: var(--light-gray);
}

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

.benefit-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-card .emoji {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.benefit-card h3 {
    color: var(--fruit-red);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.benefit-card p {
    color: var(--mid-gray);
    font-size: 0.9rem;
}

.about-section {
    padding: 4rem 2rem;
    background: white;
}

.about-wrapper {
    max-width: 950px;
    margin: 0 auto;
}

.about-wrapper h2 {
    font-size: 1.8rem;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    text-align: center;
}

.about-wrapper p {
    color: var(--mid-gray);
    margin-bottom: 1rem;
}

.notice-card {
    background: linear-gradient(135deg, #fef3c7, #fef9c3);
    border-left: 4px solid var(--fruit-yellow);
    border-radius: 0 16px 16px 0;
    padding: 1.5rem;
    margin: 2rem 0;
}

.notice-card h3 {
    color: var(--fruit-orange);
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
}

.notice-card p {
    color: var(--dark-text);
    margin: 0;
}

.text-page {
    padding: 7rem 2rem 4rem;
    min-height: 80vh;
    background: var(--cream-bg);
}

.text-wrapper {
    max-width: 880px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.text-wrapper h1 {
    font-size: 2rem;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.text-wrapper h2 {
    font-size: 1.25rem;
    color: var(--fruit-orange);
    margin: 1.8rem 0 0.8rem;
    font-weight: 700;
}

.text-wrapper p {
    color: var(--mid-gray);
    margin-bottom: 1rem;
}

.text-wrapper ul {
    list-style: none;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.text-wrapper ul li {
    color: var(--mid-gray);
    margin-bottom: 0.4rem;
    position: relative;
    padding-left: 1.5rem;
}

.text-wrapper ul li::before {
    content: '🍎';
    position: absolute;
    left: -0.5rem;
    font-size: 0.8rem;
}

.fruit-footer {
    background: var(--dark-text);
    padding: 2.5rem 2rem;
    text-align: center;
}

.footer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.help-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.help-links a {
    color: var(--mid-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.help-links a:hover {
    color: var(--fruit-yellow);
}

.footer-text {
    color: var(--mid-gray);
    font-size: 0.85rem;
}

.age-popup {
    position: fixed;
    inset: 0;
    background: rgba(31, 41, 55, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 1rem;
}

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

.age-box {
    background: white;
    border-radius: 28px;
    padding: 2.5rem;
    text-align: center;
    max-width: 420px;
    width: 100%;
}

.age-box .popup-icon {
    font-size: 3.5rem;
    margin-bottom: 0.8rem;
}

.age-box h2 {
    color: var(--dark-text);
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.age-box p {
    color: var(--mid-gray);
    margin-bottom: 1.8rem;
}

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

.popup-btns button {
    padding: 0.85rem 2rem;
    border-radius: 25px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.3s;
    border: none;
}

.btn-yes {
    background: linear-gradient(135deg, var(--fruit-green), #22c55e);
    color: white;
}

.btn-yes:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(22, 163, 74, 0.3);
}

.btn-no {
    background: var(--light-gray);
    color: var(--mid-gray);
}

.btn-no:hover {
    background: #fee2e2;
    color: #dc2626;
}

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

@media (max-width: 768px) {
    .fruit-toggle {
        display: block;
    }

    .fruit-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: var(--dark-text);
        padding: 5rem 1.5rem 2rem;
        transition: right 0.3s;
    }

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

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

    .fruit-nav a {
        display: block;
        color: white;
        padding: 0.8rem;
    }

    .fresh-hero {
        padding: 7rem 1.5rem 3rem;
    }

    .fresh-hero h1 {
        font-size: 2rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .game-container iframe {
        height: 420px;
    }

    .game-heading {
        font-size: 1.4rem;
    }

    .fruit-tag {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .help-links {
        flex-direction: column;
        gap: 0.8rem;
    }

    .age-box {
        padding: 1.8rem 1.2rem;
    }

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

    .popup-btns button {
        width: 100%;
    }

    .text-wrapper {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .fruit-header {
        padding: 0.7rem 1rem;
    }

    .fruit-brand-name {
        font-size: 1.2rem;
    }

    .fresh-hero h1 {
        font-size: 1.6rem;
    }

    .text-wrapper h1 {
        font-size: 1.6rem;
    }
}
