/* ==========================================================================
   GOOMIMI -- Squishy Candy Universe
   ========================================================================== */

:root {
    /* Candy palette */
    --strawberry: #FF4D6D;
    --strawberry-tint: #FFB3C1;
    --grape: #7B2D8E;
    --grape-tint: #C77DFF;
    --melon: #38B000;
    --melon-tint: #9EF01A;
    --tangerine: #FF6D00;
    --tangerine-tint: #FFD166;
    --blueberry: #4361EE;
    --blueberry-tint: #A0C4FF;
    --lemon: #FFE66D;
    --lemon-tint: #FFF3B0;
    --soda: #00F5D4;
    --soda-tint: #B8F2E6;

    --cream: #FFF8F0;
    --grape-deep: #1A0A2E;
    --ink: #2D1B69;
    --ink-soft: #4a3a8a;

    --wobble-intensity: 0.03;
    --wobble-speed: 2.4s;
    --wobble-delay: 0s;

    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

body {
    font-family: 'Nunito', system-ui, sans-serif;
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    line-height: 1.7;
    color: var(--ink);
    background: var(--cream);
    overflow-x: hidden;
    min-height: 100vh;
}

main {
    overflow-x: hidden;
}

/* ==========================================================================
   Wobble system
   ========================================================================== */

@keyframes wobble {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scaleX(calc(1 + var(--wobble-intensity)))
                   scaleY(calc(1 - var(--wobble-intensity)))
                   rotate(calc(var(--wobble-intensity) * -40deg));
    }
    50% {
        transform: scale(1) rotate(0deg);
    }
    75% {
        transform: scaleX(calc(1 - var(--wobble-intensity)))
                   scaleY(calc(1 + var(--wobble-intensity)))
                   rotate(calc(var(--wobble-intensity) * 40deg));
    }
}

.wobble {
    animation: wobble var(--wobble-speed) ease-in-out infinite;
    animation-delay: var(--wobble-delay);
    transform-origin: center;
}

/* ==========================================================================
   Floating Nav
   ========================================================================== */

.floating-nav {
    position: fixed;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 6px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 248, 240, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 3px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(123, 45, 142, 0.18),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: transform 400ms var(--spring), box-shadow 400ms var(--ease-out);
}

.floating-nav:hover {
    transform: translateX(-50%) scale(1.03);
}

.nav-pill {
    font-family: 'Baloo 2', system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    text-decoration: none;
    padding: 9px 18px;
    border-radius: 999px;
    background: transparent;
    transition: background 220ms var(--ease-out),
                color 220ms var(--ease-out),
                transform 300ms var(--spring);
    position: relative;
}

.nav-pill[data-flavor="strawberry"]:hover { background: var(--strawberry); color: var(--cream); }
.nav-pill[data-flavor="melon"]:hover { background: var(--melon-tint); color: var(--ink); }
.nav-pill[data-flavor="tangerine"]:hover { background: var(--tangerine); color: var(--cream); }
.nav-pill[data-flavor="grape"]:hover { background: var(--grape); color: var(--cream); }
.nav-pill[data-flavor="blueberry"]:hover { background: var(--blueberry); color: var(--cream); }

.nav-pill:hover { transform: translateY(-2px) scale(1.06); }
.nav-pill.active { background: rgba(255, 255, 255, 0.7); }

@media (max-width: 640px) {
    .floating-nav { gap: 2px; padding: 6px; }
    .nav-pill { padding: 7px 11px; font-size: 0.8rem; }
}

/* ==========================================================================
   Zones (general)
   ========================================================================== */

.zone {
    position: relative;
    min-height: 100vh;
    padding: clamp(80px, 10vh, 140px) clamp(20px, 5vw, 80px);
    scroll-snap-align: start;
    overflow: hidden;
}

.zone-tag {
    display: inline-block;
    font-family: 'Baloo 2', system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    color: var(--ink);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.zone-tag.light {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--cream);
}

.zone-title {
    font-family: 'Fredoka', system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 6vw, 5.5rem);
    letter-spacing: 0.04em;
    line-height: 1;
    margin: 16px 0 18px;
}

.zone-sub {
    max-width: 680px;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
}

.zone-header {
    margin-bottom: clamp(40px, 5vw, 70px);
    max-width: 820px;
}

/* ==========================================================================
   Wrapper Zone (hero)
   ========================================================================== */

.wrapper-zone {
    background:
        radial-gradient(circle at 18% 20%, var(--lemon-tint) 0%, transparent 38%),
        radial-gradient(circle at 80% 22%, var(--strawberry-tint) 0%, transparent 42%),
        radial-gradient(circle at 50% 90%, var(--soda-tint) 0%, transparent 45%),
        linear-gradient(160deg, var(--cream) 0%, var(--lemon-tint) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-stage {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1100px;
    width: 100%;
}

.hero-title {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.04em;
    font-family: 'Fredoka', system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 11vw, 9.5rem);
    line-height: 0.95;
    letter-spacing: 0.06em;
    margin: 12px auto 18px;
}

.hero-letter {
    display: inline-block;
    transform-origin: 50% 70%;
    opacity: 0;
    transform: translateY(40px) scale(0.4);
    animation: letterPop 900ms var(--spring) forwards;
    animation-delay: calc(var(--i) * 90ms + 200ms);
    text-shadow:
        0 4px 0 rgba(0, 0, 0, 0.08),
        0 12px 28px rgba(123, 45, 142, 0.25);
}

.hero-letter:nth-child(1) { color: var(--strawberry); }
.hero-letter:nth-child(2) { color: var(--tangerine); }
.hero-letter:nth-child(3) { color: var(--lemon); -webkit-text-stroke: 2px var(--ink); }
.hero-letter:nth-child(4) { color: var(--melon); }
.hero-letter:nth-child(5) { color: var(--soda); -webkit-text-stroke: 1.5px var(--grape); }
.hero-letter:nth-child(6) { color: var(--blueberry); }
.hero-letter:nth-child(7) { color: var(--grape-tint); }

@keyframes letterPop {
    0%   { opacity: 0; transform: translateY(40px) scale(0.4); }
    60%  { opacity: 1; transform: translateY(-6px) scale(1.12); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-tagline {
    font-family: 'Baloo 2', system-ui, sans-serif;
    font-weight: 600;
    font-size: clamp(1.05rem, 1.6vw, 1.4rem);
    color: var(--ink-soft);
    max-width: 620px;
    margin: 0 auto 32px;
    opacity: 0;
    animation: fadeRise 800ms var(--ease-out) forwards;
    animation-delay: 1.1s;
}

@keyframes fadeRise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeRise 800ms var(--ease-out) forwards;
    animation-delay: 1.3s;
}

.candy-btn {
    font-family: 'Baloo 2', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 16px 36px;
    border: 3px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    cursor: pointer;
    color: var(--cream);
    position: relative;
    overflow: hidden;
    transition: transform 300ms var(--spring), box-shadow 300ms var(--ease-out);
    box-shadow:
        0 6px 0 rgba(0, 0, 0, 0.12),
        0 14px 30px rgba(0, 0, 0, 0.12),
        inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.candy-btn--strawberry { background: var(--strawberry); }
.candy-btn--melon { background: var(--melon); }

.candy-btn::after {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    transition: left 600ms var(--ease-out);
}

.candy-btn:hover { transform: translateY(-4px) scale(1.04); }
.candy-btn:hover::after { left: 130%; }
.candy-btn.squish { transform: scale(0.94); transition: transform 100ms ease-in; }

/* Gummy bear (CSS art) */
.gummy-bear {
    position: relative;
    width: clamp(180px, 22vw, 260px);
    height: clamp(220px, 28vw, 320px);
    margin: 0 auto 16px;
    filter: drop-shadow(0 18px 40px rgba(255, 77, 109, 0.3));
}

.bear-head {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 62%; height: 42%;
    background: radial-gradient(circle at 30% 30%,
        var(--strawberry-tint) 0%, var(--strawberry) 70%);
    border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%;
    border: 3px solid rgba(255, 255, 255, 0.45);
    box-shadow: inset -8px -12px 24px rgba(123, 45, 142, 0.2),
                inset 8px 8px 18px rgba(255, 255, 255, 0.4);
}

.bear-ear {
    position: absolute;
    top: 4%;
    width: 20%; height: 22%;
    background: radial-gradient(circle at 30% 30%,
        var(--strawberry-tint) 0%, var(--strawberry) 80%);
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    box-shadow: inset -3px -3px 8px rgba(123, 45, 142, 0.25);
}
.bear-ear--left { left: 14%; }
.bear-ear--right { right: 14%; }

.bear-eye {
    position: absolute;
    top: 18%;
    width: 8%; height: 9%;
    background: var(--ink);
    border-radius: 50%;
    box-shadow: inset -1px -1px 0 rgba(255, 255, 255, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.5);
}
.bear-eye--left { left: 32%; }
.bear-eye--right { right: 32%; }
.bear-eye::after {
    content: "";
    position: absolute;
    top: 18%; left: 18%;
    width: 35%; height: 35%;
    background: white;
    border-radius: 50%;
}

.bear-cheek {
    position: absolute;
    top: 27%;
    width: 12%; height: 7%;
    background: rgba(255, 77, 109, 0.55);
    border-radius: 50%;
    filter: blur(2px);
}
.bear-cheek--left { left: 22%; }
.bear-cheek--right { right: 22%; }

.bear-snout {
    position: absolute;
    top: 28%; left: 50%;
    transform: translateX(-50%);
    width: 22%; height: 12%;
    background: radial-gradient(ellipse at 50% 30%,
        var(--cream) 0%, var(--lemon-tint) 100%);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.bear-mouth {
    position: absolute;
    top: 33%; left: 50%;
    transform: translateX(-50%);
    width: 8%; height: 4%;
    border-bottom: 3px solid var(--ink);
    border-radius: 0 0 12px 12px;
}

.bear-shine {
    position: absolute;
    top: 8%; left: 22%;
    width: 18%; height: 12%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), transparent);
    border-radius: 50%;
    filter: blur(3px);
}
.bear-shine--body {
    top: 12%; left: 25%;
    width: 14%; height: 28%;
}

.bear-body {
    position: absolute;
    top: 36%; left: 50%;
    transform: translateX(-50%);
    width: 70%; height: 50%;
    background: radial-gradient(circle at 30% 30%,
        var(--strawberry-tint) 0%, var(--strawberry) 75%);
    border-radius: 46% 46% 42% 42% / 36% 36% 50% 50%;
    border: 3px solid rgba(255, 255, 255, 0.45);
    box-shadow: inset -10px -16px 30px rgba(123, 45, 142, 0.25),
                inset 10px 10px 20px rgba(255, 255, 255, 0.35);
}

.bear-belly {
    position: absolute;
    top: 22%; left: 50%;
    transform: translateX(-50%);
    width: 60%; height: 60%;
    background: radial-gradient(ellipse at 50% 30%,
        var(--lemon-tint) 0%, rgba(255, 230, 109, 0.45) 100%);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.45);
}

.bear-arm {
    position: absolute;
    top: 40%;
    width: 18%; height: 26%;
    background: radial-gradient(circle at 30% 30%,
        var(--strawberry-tint) 0%, var(--strawberry) 80%);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.45);
    box-shadow: inset -3px -4px 10px rgba(123, 45, 142, 0.2);
}
.bear-arm--left { left: 4%; transform: rotate(-18deg); }
.bear-arm--right { right: 4%; transform: rotate(18deg); }

.bear-leg {
    position: absolute;
    bottom: 0;
    width: 24%; height: 22%;
    background: radial-gradient(circle at 30% 30%,
        var(--strawberry-tint) 0%, var(--strawberry) 80%);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.45);
}
.bear-leg--left { left: 18%; }
.bear-leg--right { right: 18%; }

/* Sprinkles */
.sprinkle-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.sprinkle {
    position: absolute;
    width: 6px;
    height: 16px;
    border-radius: 3px;
    opacity: 0.8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.sprinkle.s1  { top: 8%;  left: 10%; background: var(--strawberry); transform: rotate(28deg); }
.sprinkle.s2  { top: 14%; left: 24%; background: var(--melon-tint); transform: rotate(-14deg); }
.sprinkle.s3  { top: 22%; left: 6%;  background: var(--tangerine); transform: rotate(70deg); }
.sprinkle.s4  { top: 12%; left: 88%; background: var(--blueberry); transform: rotate(40deg); }
.sprinkle.s5  { top: 30%; left: 92%; background: var(--soda); transform: rotate(-30deg); }
.sprinkle.s6  { top: 50%; left: 4%;  background: var(--lemon); transform: rotate(15deg); }
.sprinkle.s7  { top: 60%; left: 90%; background: var(--grape-tint); transform: rotate(-60deg); }
.sprinkle.s8  { top: 70%; left: 12%; background: var(--strawberry); transform: rotate(45deg); }
.sprinkle.s9  { top: 80%; left: 80%; background: var(--melon); transform: rotate(-22deg); }
.sprinkle.s10 { top: 88%; left: 28%; background: var(--tangerine); transform: rotate(55deg); }
.sprinkle.s11 { top: 18%; left: 48%; background: var(--blueberry); transform: rotate(-40deg); }
.sprinkle.s12 { top: 6%;  left: 64%; background: var(--lemon); transform: rotate(25deg); }
.sprinkle.s13 { top: 38%; left: 76%; background: var(--strawberry); transform: rotate(-50deg); }
.sprinkle.s14 { top: 44%; left: 14%; background: var(--soda); transform: rotate(60deg); }
.sprinkle.s15 { top: 92%; left: 60%; background: var(--grape-tint); transform: rotate(-10deg); }
.sprinkle.s16 { top: 24%; left: 38%; background: var(--tangerine); transform: rotate(35deg); }
.sprinkle.s17 { top: 56%; left: 36%; background: var(--melon-tint); transform: rotate(-25deg); }
.sprinkle.s18 { top: 64%; left: 56%; background: var(--blueberry); transform: rotate(80deg); }
.sprinkle.s19 { top: 76%; left: 70%; background: var(--strawberry); transform: rotate(-65deg); }
.sprinkle.s20 { top: 36%; left: 22%; background: var(--lemon); transform: rotate(48deg); }
.sprinkle.s21 { top: 4%;  left: 40%; background: var(--soda); transform: rotate(-18deg); }
.sprinkle.s22 { top: 48%; left: 60%; background: var(--grape); transform: rotate(22deg); }
.sprinkle.s23 { top: 84%; left: 44%; background: var(--strawberry); transform: rotate(-55deg); }
.sprinkle.s24 { top: 16%; left: 76%; background: var(--melon); transform: rotate(70deg); }
.sprinkle.s25 { top: 28%; left: 14%; background: var(--blueberry); transform: rotate(-30deg); }
.sprinkle.s26 { top: 70%; left: 30%; background: var(--lemon); transform: rotate(40deg); }
.sprinkle.s27 { top: 52%; left: 86%; background: var(--tangerine); transform: rotate(-72deg); }
.sprinkle.s28 { top: 6%;  left: 80%; background: var(--strawberry); transform: rotate(12deg); }
.sprinkle.s29 { top: 78%; left: 50%; background: var(--soda); transform: rotate(-42deg); }
.sprinkle.s30 { top: 96%; left: 88%; background: var(--melon-tint); transform: rotate(58deg); }

/* ==========================================================================
   Flavor Grid Zone
   ========================================================================== */

.flavors-zone {
    background:
        radial-gradient(circle at 90% 10%, rgba(158, 240, 26, 0.35) 0%, transparent 40%),
        radial-gradient(circle at 5% 80%, rgba(255, 209, 102, 0.4) 0%, transparent 45%),
        linear-gradient(180deg, var(--cream) 0%, #FFEFC9 100%);
}

.masonry {
    columns: 3;
    column-gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
}

@media (max-width: 980px) {
    .masonry { columns: 2; }
}
@media (max-width: 600px) {
    .masonry { columns: 1; }
}

.flavor-card {
    break-inside: avoid;
    margin-bottom: 24px;
    padding: 28px;
    border-radius: 32px;
    border: 4px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 350ms var(--spring),
                box-shadow 350ms var(--ease-out),
                filter 400ms var(--ease-out);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1),
                inset 0 2px 0 rgba(255, 255, 255, 0.6);
    color: var(--ink);
    will-change: transform;
}

.size-1 { min-height: 220px; }
.size-1half { min-height: 320px; }
.size-2 { min-height: 420px; }

.flavor-card--strawberry { background: rgba(255, 77, 109, 0.55); }
.flavor-card--strawberry:hover { box-shadow: 0 14px 40px rgba(255, 77, 109, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.7); }
.flavor-card--melon { background: rgba(158, 240, 26, 0.55); }
.flavor-card--melon:hover { box-shadow: 0 14px 40px rgba(56, 176, 0, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.7); }
.flavor-card--lemon { background: rgba(255, 230, 109, 0.7); }
.flavor-card--lemon:hover { box-shadow: 0 14px 40px rgba(255, 209, 102, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.7); }
.flavor-card--tangerine { background: rgba(255, 109, 0, 0.6); color: var(--cream); }
.flavor-card--tangerine:hover { box-shadow: 0 14px 40px rgba(255, 109, 0, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.7); }
.flavor-card--blueberry { background: rgba(67, 97, 238, 0.6); color: var(--cream); }
.flavor-card--blueberry:hover { box-shadow: 0 14px 40px rgba(67, 97, 238, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.7); }
.flavor-card--soda { background: rgba(0, 245, 212, 0.5); }
.flavor-card--soda:hover { box-shadow: 0 14px 40px rgba(0, 245, 212, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.7); }
.flavor-card--grape { background: rgba(123, 45, 142, 0.7); color: var(--cream); }
.flavor-card--grape:hover { box-shadow: 0 14px 40px rgba(123, 45, 142, 0.55), inset 0 2px 0 rgba(255, 255, 255, 0.7); }

.flavor-card:hover {
    transform: perspective(800px) rotateX(-2deg) rotateY(2deg) scale(1.04);
    filter: hue-rotate(8deg);
}

.flavor-card.squish {
    transform: scale(0.96);
    transition: transform 100ms ease-in;
}

.card-shine {
    position: absolute;
    top: 0; left: -120%;
    width: 50%; height: 100%;
    background: linear-gradient(
        100deg,
        transparent 0%,
        rgba(255, 255, 255, 0.55) 50%,
        transparent 100%
    );
    transform: skewX(-22deg);
    pointer-events: none;
    transition: left 700ms var(--ease-out);
}

.flavor-card:hover .card-shine { left: 160%; }

.card-badge {
    display: inline-block;
    font-family: 'Baloo 2', system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.6);
    margin-bottom: 14px;
}

.card-title {
    font-family: 'Fredoka', system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    line-height: 1.05;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}

.card-text {
    font-size: 1rem;
    line-height: 1.55;
}

.card-dot-row {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}
.card-dot-row span {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.65);
    box-shadow: inset -1px -2px 4px rgba(0, 0, 0, 0.15);
}

.card-pill-row {
    display: flex;
    gap: 8px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.mini-pill {
    font-family: 'Baloo 2', system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.55);
}

.card-drop {
    position: absolute;
    bottom: 18px; right: 18px;
    width: 36px; height: 36px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50% 50% 50% 0;
    transform: rotate(45deg);
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.card-stripes {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.0) 0px,
        rgba(255, 255, 255, 0.0) 10px,
        rgba(255, 255, 255, 0.18) 10px,
        rgba(255, 255, 255, 0.18) 20px
    );
    opacity: 0.6;
    pointer-events: none;
    border-radius: 28px;
}

/* ==========================================================================
   Stretch Zone
   ========================================================================== */

.stretch-zone {
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 209, 102, 0.6) 0%, transparent 45%),
        radial-gradient(circle at 80% 50%, rgba(255, 179, 193, 0.55) 0%, transparent 45%),
        linear-gradient(180deg, #FFEFC9 0%, var(--lemon-tint) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.stretch-marquee {
    position: relative;
    z-index: 2;
    max-width: 1200px;
}

.stretch-line {
    font-family: 'Fredoka', system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 9vw, 8rem);
    line-height: 1;
    letter-spacing: 0.04em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.18em 0.32em;
    transform: scaleX(0.3);
    opacity: 0;
    transform-origin: center;
    transition: transform 1100ms var(--spring), opacity 700ms var(--ease-out);
}

.stretch-line.is-visible {
    transform: scaleX(1);
    opacity: 1;
}

.stretch-word {
    display: inline-block;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 700ms var(--spring), opacity 500ms var(--ease-out);
    transition-delay: calc(var(--i) * 100ms + 400ms);
}

.stretch-line.is-visible .stretch-word {
    transform: translateY(0);
    opacity: 1;
}

.stretch-word:nth-child(1) { color: var(--strawberry); }
.stretch-word:nth-child(2) { color: var(--tangerine); }
.stretch-word:nth-child(3) { color: var(--melon); }
.stretch-word:nth-child(4) { color: var(--blueberry); }
.stretch-word:nth-child(5) { color: var(--grape); }
.stretch-word:nth-child(6) { color: var(--strawberry); }

.stretch-caption {
    margin-top: 32px;
    font-family: 'Baloo 2', system-ui, sans-serif;
    font-weight: 600;
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    color: var(--ink-soft);
}

.stretch-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(12px);
    opacity: 0.5;
    z-index: 1;
}
.blob-a { width: 320px; height: 320px; background: var(--strawberry-tint); top: -80px; left: -80px; animation: wobble 4s ease-in-out infinite; --wobble-intensity: 0.04; --wobble-speed: 4s; }
.blob-b { width: 380px; height: 380px; background: var(--tangerine-tint); bottom: -100px; right: -100px; animation: wobble 5s ease-in-out infinite; --wobble-intensity: 0.05; --wobble-speed: 5s; }
.blob-c { width: 220px; height: 220px; background: var(--soda-tint); top: 50%; right: 12%; animation: wobble 3.6s ease-in-out infinite; --wobble-intensity: 0.04; --wobble-speed: 3.6s; }

/* ==========================================================================
   Bubble Field Zone
   ========================================================================== */

.bubble-zone {
    background:
        radial-gradient(circle at 50% 50%, #2c1454 0%, var(--grape-deep) 70%),
        var(--grape-deep);
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bubble-field {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.bubble {
    position: absolute;
    bottom: -120px;
    border-radius: 50%;
    opacity: 0;
    animation-name: bubbleRise;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.bubble::after {
    content: "";
    position: absolute;
    top: 16%; left: 22%;
    width: 28%; height: 22%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.85), transparent 70%);
    border-radius: 50%;
}

@keyframes bubbleRise {
    0%   { transform: translate3d(0, 0, 0); opacity: 0; }
    10%  { opacity: var(--bubble-opacity, 0.6); }
    25%  { transform: translate3d(20px, -25vh, 0); }
    50%  { transform: translate3d(-15px, -50vh, 0); }
    75%  { transform: translate3d(18px, -75vh, 0); }
    90%  { opacity: var(--bubble-opacity, 0.6); }
    100% { transform: translate3d(0, -110vh, 0); opacity: 0; }
}

/* 22 unique bubbles */
.bubble.b1  { left: 6%;  width: 60px; height: 60px; background: radial-gradient(circle at 30% 30%, var(--grape-tint), rgba(199, 125, 255, 0.3)); animation-duration: 14s; animation-delay: 0s;  --bubble-opacity: 0.6; }
.bubble.b2  { left: 14%; width: 32px; height: 32px; background: radial-gradient(circle at 30% 30%, var(--soda), rgba(0, 245, 212, 0.25)); animation-duration: 10s; animation-delay: 2s; --bubble-opacity: 0.45; }
.bubble.b3  { left: 22%; width: 70px; height: 70px; background: radial-gradient(circle at 30% 30%, var(--strawberry-tint), rgba(255, 77, 109, 0.25)); animation-duration: 16s; animation-delay: 4s; --bubble-opacity: 0.55; }
.bubble.b4  { left: 30%; width: 26px; height: 26px; background: radial-gradient(circle at 30% 30%, var(--lemon), rgba(255, 230, 109, 0.3)); animation-duration: 8s;  animation-delay: 1s; --bubble-opacity: 0.4; }
.bubble.b5  { left: 38%; width: 50px; height: 50px; background: radial-gradient(circle at 30% 30%, var(--blueberry-tint), rgba(67, 97, 238, 0.3)); animation-duration: 13s; animation-delay: 5s; --bubble-opacity: 0.55; }
.bubble.b6  { left: 46%; width: 80px; height: 80px; background: radial-gradient(circle at 30% 30%, var(--grape-tint), rgba(123, 45, 142, 0.3)); animation-duration: 18s; animation-delay: 0.5s; --bubble-opacity: 0.7; }
.bubble.b7  { left: 54%; width: 36px; height: 36px; background: radial-gradient(circle at 30% 30%, var(--soda-tint), rgba(0, 245, 212, 0.25)); animation-duration: 11s; animation-delay: 3s; --bubble-opacity: 0.5; }
.bubble.b8  { left: 62%; width: 64px; height: 64px; background: radial-gradient(circle at 30% 30%, var(--tangerine-tint), rgba(255, 109, 0, 0.25)); animation-duration: 15s; animation-delay: 6s; --bubble-opacity: 0.55; }
.bubble.b9  { left: 70%; width: 42px; height: 42px; background: radial-gradient(circle at 30% 30%, var(--melon-tint), rgba(56, 176, 0, 0.3)); animation-duration: 12s; animation-delay: 2.5s; --bubble-opacity: 0.5; }
.bubble.b10 { left: 78%; width: 56px; height: 56px; background: radial-gradient(circle at 30% 30%, var(--strawberry-tint), rgba(255, 77, 109, 0.25)); animation-duration: 17s; animation-delay: 7s; --bubble-opacity: 0.55; }
.bubble.b11 { left: 86%; width: 44px; height: 44px; background: radial-gradient(circle at 30% 30%, var(--blueberry-tint), rgba(67, 97, 238, 0.3)); animation-duration: 14s; animation-delay: 1.5s; --bubble-opacity: 0.5; }
.bubble.b12 { left: 92%; width: 28px; height: 28px; background: radial-gradient(circle at 30% 30%, var(--lemon), rgba(255, 230, 109, 0.3)); animation-duration: 9s;  animation-delay: 4.5s; --bubble-opacity: 0.4; }
.bubble.b13 { left: 10%; width: 48px; height: 48px; background: radial-gradient(circle at 30% 30%, var(--grape-tint), rgba(199, 125, 255, 0.3)); animation-duration: 19s; animation-delay: 8s; --bubble-opacity: 0.55; }
.bubble.b14 { left: 18%; width: 22px; height: 22px; background: radial-gradient(circle at 30% 30%, var(--soda), rgba(0, 245, 212, 0.3)); animation-duration: 10s; animation-delay: 6.5s; --bubble-opacity: 0.4; }
.bubble.b15 { left: 26%; width: 72px; height: 72px; background: radial-gradient(circle at 30% 30%, var(--strawberry-tint), rgba(255, 77, 109, 0.25)); animation-duration: 20s; animation-delay: 9s; --bubble-opacity: 0.6; }
.bubble.b16 { left: 34%; width: 38px; height: 38px; background: radial-gradient(circle at 30% 30%, var(--lemon), rgba(255, 230, 109, 0.3)); animation-duration: 11s; animation-delay: 5.5s; --bubble-opacity: 0.5; }
.bubble.b17 { left: 42%; width: 54px; height: 54px; background: radial-gradient(circle at 30% 30%, var(--blueberry-tint), rgba(67, 97, 238, 0.3)); animation-duration: 16s; animation-delay: 3.5s; --bubble-opacity: 0.55; }
.bubble.b18 { left: 50%; width: 30px; height: 30px; background: radial-gradient(circle at 30% 30%, var(--soda-tint), rgba(0, 245, 212, 0.3)); animation-duration: 9s;  animation-delay: 7.5s; --bubble-opacity: 0.45; }
.bubble.b19 { left: 58%; width: 76px; height: 76px; background: radial-gradient(circle at 30% 30%, var(--tangerine-tint), rgba(255, 109, 0, 0.25)); animation-duration: 18s; animation-delay: 0.8s; --bubble-opacity: 0.6; }
.bubble.b20 { left: 66%; width: 40px; height: 40px; background: radial-gradient(circle at 30% 30%, var(--melon-tint), rgba(56, 176, 0, 0.3)); animation-duration: 12s; animation-delay: 4.2s; --bubble-opacity: 0.5; }
.bubble.b21 { left: 74%; width: 24px; height: 24px; background: radial-gradient(circle at 30% 30%, var(--lemon), rgba(255, 230, 109, 0.3)); animation-duration: 8s;  animation-delay: 6.2s; --bubble-opacity: 0.45; }
.bubble.b22 { left: 82%; width: 58px; height: 58px; background: radial-gradient(circle at 30% 30%, var(--grape-tint), rgba(199, 125, 255, 0.3)); animation-duration: 17s; animation-delay: 8.5s; --bubble-opacity: 0.55; }

.bubble-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.bubble-title {
    font-family: 'Fredoka', system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 7vw, 6rem);
    letter-spacing: 0.04em;
    margin: 18px 0 18px;
    background: linear-gradient(120deg, var(--soda) 0%, var(--grape-tint) 50%, var(--strawberry-tint) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bubble-text {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    color: rgba(255, 248, 240, 0.85);
    margin-bottom: 36px;
}

.bubble-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.stat-pop {
    background: rgba(255, 255, 255, 0.08);
    border: 3px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    padding: 18px 28px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 130px;
}

.stat-pop .big {
    font-family: 'Fredoka', system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 3.6vw, 3.2rem);
    color: var(--soda);
}

.stat-pop:nth-child(2) .big { color: var(--strawberry-tint); }
.stat-pop:nth-child(3) .big { color: var(--tangerine-tint); }

.stat-pop .small {
    font-family: 'Baloo 2', system-ui, sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: rgba(255, 248, 240, 0.7);
}

/* ==========================================================================
   Unwrap Zone (Footer)
   ========================================================================== */

.unwrap-zone {
    background:
        repeating-linear-gradient(
            45deg,
            rgba(255, 109, 0, 0.06) 0px,
            rgba(255, 109, 0, 0.06) 10px,
            rgba(255, 230, 109, 0.06) 10px,
            rgba(255, 230, 109, 0.06) 20px
        ),
        linear-gradient(180deg, var(--grape-deep) 0%, #2c1454 60%, var(--grape) 100%);
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.wrapper-flap {
    position: absolute;
    width: 70%;
    height: 60%;
    background:
        linear-gradient(120deg,
            rgba(255, 209, 102, 0.65) 0%,
            rgba(255, 109, 0, 0.5) 30%,
            rgba(255, 77, 109, 0.55) 60%,
            rgba(123, 45, 142, 0.55) 100%);
    box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.18);
}

.wrapper-flap--top {
    top: -10%;
    left: -5%;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0 70%);
    transform: rotate(-3deg);
}

.wrapper-flap--bottom {
    bottom: -10%;
    right: -5%;
    clip-path: polygon(20% 0, 100% 30%, 100% 100%, 0 100%);
    background:
        linear-gradient(300deg,
            rgba(0, 245, 212, 0.45) 0%,
            rgba(67, 97, 238, 0.55) 35%,
            rgba(123, 45, 142, 0.55) 70%,
            rgba(199, 125, 255, 0.5) 100%);
    transform: rotate(2deg);
}

.unwrap-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    padding: 40px;
}

.unwrap-title {
    font-family: 'Fredoka', system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 7vw, 5.5rem);
    letter-spacing: 0.04em;
    margin-bottom: 14px;
    color: var(--lemon-tint);
    text-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
}

.unwrap-sub {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    color: rgba(255, 248, 240, 0.8);
    max-width: 600px;
    margin: 0 auto 36px;
}

.candy-pieces {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 40px;
}

.candy-piece {
    font-family: 'Baloo 2', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    color: var(--cream);
    padding: 14px 28px;
    border-radius: 999px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    transition: transform 350ms var(--spring), box-shadow 300ms var(--ease-out);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18),
                0 12px 24px rgba(0, 0, 0, 0.18),
                inset 0 2px 0 rgba(255, 255, 255, 0.55);
}

.flavor-strawberry { background: var(--strawberry); }
.flavor-melon { background: var(--melon); }
.flavor-tangerine { background: var(--tangerine); }
.flavor-blueberry { background: var(--blueberry); }
.flavor-grape { background: var(--grape); }
.flavor-lemon { background: var(--lemon); color: var(--ink); }
.flavor-soda { background: var(--soda); color: var(--ink); }

.candy-piece:hover {
    transform: translateY(-4px) scale(1.06) rotate(-2deg);
}

.unwrap-footnote {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 36px;
    font-family: 'Baloo 2', system-ui, sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: rgba(255, 248, 240, 0.55);
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
