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

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, #FFF5F7 0%, #FFF9E6 50%, #FEFCFF 100%);
    overflow-x: hidden;
    color: #3D1152;
}

.quest-universe {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* ============ ZONE 1: THE POP ============ */
.zone-pop {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(to bottom, #FFF5F7, #FFF9E6);
}

.polka-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, #FFD23F 2px, transparent 2px);
    background-size: 60px 60px;
    opacity: 0.15;
    pointer-events: none;
}

.wordmark {
    position: relative;
    z-index: 10;
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(3rem, 13vw, 12rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.1em;
    text-shadow: 0 4px 20px rgba(61, 17, 82, 0.1);
}

.letter {
    color: var(--color);
    display: inline-block;
    animation: bounce-letter 0.6s ease-out both;
}

.letter:nth-child(1) { animation-delay: 0s; }
.letter:nth-child(2) { animation-delay: 0.05s; }
.letter:nth-child(3) { animation-delay: 0.1s; }
.letter:nth-child(4) { animation-delay: 0.15s; }
.letter:nth-child(5) { animation-delay: 0.2s; }
.letter:nth-child(6) { animation-delay: 0.25s; }
.letter:nth-child(7) { animation-delay: 0.3s; }
.letter:nth-child(8) { animation-delay: 0.35s; }
.letter:nth-child(9) { animation-delay: 0.4s; }
.letter:nth-child(10) { animation-delay: 0.45s; }
.letter:nth-child(11) { animation-delay: 0.5s; }
.letter:nth-child(12) { animation-delay: 0.55s; }

@keyframes bounce-letter {
    0% {
        opacity: 0;
        transform: translateY(-60px) scale(0.5);
    }
    60% {
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.shape-constellation {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.shape-character {
    position: absolute;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.shape-character:hover {
    transform: scale(1.1);
}

.star-shape {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation: float 4s ease-in-out infinite;
}

.circle-shape {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 15%;
    animation: float 5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.triangle-shape {
    width: 90px;
    height: 90px;
    bottom: 15%;
    left: 8%;
    animation: float 4.5s ease-in-out infinite;
    animation-delay: 1s;
}

.star-shape-sm {
    width: 50px;
    height: 50px;
    top: 45%;
    right: 8%;
    animation: float 3.5s ease-in-out infinite;
    animation-delay: 0.8s;
}

.diamond-shape {
    width: 60px;
    height: 60px;
    bottom: 25%;
    right: 12%;
    animation: float 5.5s ease-in-out infinite;
    animation-delay: 1.3s;
}

.star-shape-lg {
    width: 120px;
    height: 120px;
    top: 35%;
    left: 25%;
    animation: float 6s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

.zone-1-bubble {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    background: #FF5C93;
    color: white;
    padding: 20px 30px;
    border-radius: 50px;
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(255, 92, 147, 0.3);
    animation: bounce-in 0.8s ease-out;
    pointer-events: none;
}

@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.3);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

/* ============ ZONE 2: THE BOUNCE HOUSE ============ */
.zone-bounce-house {
    position: relative;
    width: 100%;
    padding: 80px 40px;
    background: linear-gradient(to bottom, #FFF9E6, #FEFCFF);
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.cushion-cluster {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 500px;
    perspective: 1000px;
}

.cushion {
    position: absolute;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(61, 17, 82, 0.12);
    transform: rotate(var(--rotation)) translateX(var(--offset));
    width: var(--width);
    transition: all 0.3s ease;
}

.cushion:hover {
    transform: rotate(var(--rotation)) translateX(var(--offset)) scale(1.05);
    box-shadow: 0 30px 80px rgba(61, 17, 82, 0.2);
}

.cushion.primary {
    background: linear-gradient(135deg, #FF5C93, #FFD23F);
    color: white;
    top: 0;
    left: 0;
    z-index: 10;
}

.cushion.satellite {
    background: linear-gradient(135deg, #9B5DE5, #00F5D4);
    color: white;
    top: 150px;
    animation: drift 8s ease-in-out infinite;
}

.cushion.satellite:nth-child(2) {
    animation-delay: 0s;
}

.cushion.satellite:nth-child(3) {
    animation-delay: 2s;
}

@keyframes drift {
    0%, 100% {
        transform: rotate(var(--rotation)) translateX(var(--offset)) translateY(0);
    }
    50% {
        transform: rotate(var(--rotation)) translateX(var(--offset)) translateY(-20px);
    }
}

.cushion h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.cushion h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.cushion p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.annotation-bubble {
    background: rgba(255, 255, 255, 0.3);
    padding: 10px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 15px;
}

.caveat-text {
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
    font-weight: 500;
}

/* ============ ZONE 3: THE TREASURE MAP ============ */
.zone-treasure-map {
    position: relative;
    width: 100%;
    padding: 100px 40px;
    background: linear-gradient(to bottom, #FEFCFF, #FFF5F7);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120vh;
}

.quest-path {
    position: absolute;
    width: 90%;
    height: auto;
    max-width: 800px;
    pointer-events: none;
}

.treasure-path {
    stroke-dashoffset: 500;
    animation: draw-path 3s ease-out forwards;
}

@keyframes draw-path {
    from {
        stroke-dashoffset: 500;
    }
    to {
        stroke-dashoffset: 0;
    }
}

.waypoint {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%);
    z-index: 5;
    animation: pop-in 0.5s ease-out both;
}

.waypoint:nth-child(3) { animation-delay: 0.3s; }
.waypoint:nth-child(4) { animation-delay: 0.6s; }
.waypoint:nth-child(5) { animation-delay: 0.9s; }
.waypoint:nth-child(6) { animation-delay: 1.2s; }
.waypoint:nth-child(7) { animation-delay: 1.5s; }

@keyframes pop-in {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.waypoint-content {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(61, 17, 82, 0.15);
    min-width: 150px;
    text-align: center;
    border: 3px solid #3D1152;
}

.waypoint-content h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #FF5C93;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.waypoint-content p {
    font-size: 0.9rem;
    color: #3D1152;
    line-height: 1.4;
}

.quest-arrow {
    position: absolute;
    pointer-events: none;
}

.arrow-1 {
    left: 15%;
    top: 25%;
    animation: bounce-arrow 2s ease-in-out infinite;
}

.arrow-2 {
    right: 20%;
    top: 50%;
    animation: bounce-arrow 2s ease-in-out infinite;
    animation-delay: 0.3s;
}

.arrow-3 {
    left: 25%;
    bottom: 15%;
    animation: bounce-arrow 2s ease-in-out infinite;
    animation-delay: 0.6s;
}

@keyframes bounce-arrow {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    50% {
        transform: translateX(20px) rotate(5deg);
    }
}

/* ============ ZONE 4: THE GRAND FINALE ============ */
.zone-grand-finale {
    position: relative;
    width: 100%;
    padding: 100px 40px;
    background: linear-gradient(135deg, #FF5C93 0%, #FFD23F 50%, #9B5DE5 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.starburst-center {
    position: relative;
    z-index: 5;
    animation: spin 20s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.starburst-svg {
    filter: drop-shadow(0 0 30px rgba(61, 17, 82, 0.3));
}

.starburst-rays {
    animation: pulse-rays 2s ease-in-out infinite;
}

@keyframes pulse-rays {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

.burst-prize {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    --angle-rad: calc(var(--angle) * 0.01745329);
    --x: calc(var(--distance) * cos(var(--angle-rad)));
    --y: calc(var(--distance) * sin(var(--angle-rad)));
    transform: translate(
        calc(-50% + var(--x)),
        calc(-50% + var(--y))
    );
    background: rgba(255, 252, 255, 0.95);
    padding: 25px 35px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(61, 17, 82, 0.2);
    text-align: center;
    border: 3px solid #3D1152;
    animation: float-prize 3s ease-in-out infinite;
    z-index: 3;
}

@keyframes float-prize {
    0%, 100% {
        transform: translate(
            calc(-50% + var(--x)),
            calc(-50% + var(--y))
        ) translateY(0);
    }
    50% {
        transform: translate(
            calc(-50% + var(--x)),
            calc(-50% + var(--y))
        ) translateY(-20px);
    }
}

.burst-prize h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    color: #FF5C93;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.burst-prize p {
    font-size: 0.95rem;
    color: #3D1152;
    line-height: 1.5;
    margin-bottom: 10px;
}

.burst-prize .speech-bubble {
    background: #FF5C93;
    color: white;
    padding: 15px 20px;
    border-radius: 15px;
    display: inline-block;
    margin-top: 10px;
}

/* ============ CONFETTI POOL ============ */
.confetti-pool {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1000;
}

.confetti {
    position: fixed;
    pointer-events: none;
    animation: fall 3s linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .wordmark {
        font-size: clamp(2rem, 10vw, 4rem);
    }

    .cushion {
        padding: 25px;
        width: 90% !important;
        left: 5% !important;
        top: auto !important;
        margin-bottom: 30px;
    }

    .cushion.satellite {
        top: auto !important;
    }

    .cushion h2 {
        font-size: 1.8rem;
    }

    .cushion h3 {
        font-size: 1.3rem;
    }

    .zone-bounce-house {
        gap: 50px;
        padding: 40px 20px;
    }

    .quest-path {
        width: 95%;
    }

    .star-shape {
        width: 50px;
        height: 50px;
    }

    .circle-shape {
        width: 60px;
        height: 60px;
    }

    .star-shape-lg {
        width: 80px;
        height: 80px;
    }
}
