:root {
    --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --squircle-sm: 18px;
    --squircle-md: 24px;
    --squircle-lg: 32px;
    --shadow-candy: 0 8px 32px rgba(255, 105, 180, 0.15);
    --shadow-lifted: 0 12px 40px rgba(45, 45, 63, 0.12);
    --outline-thick: 4px;
    --dot-size: 8px;
    --dot-gap: 12px;
    --pink: #FF69B4;
    --blue: #4FC3F7;
    --yellow: #FFD54F;
    --green: #81C784;
    --purple: #BA68C8;
    --orange: #FF8A65;
    --bg-light: #FFF5F9;
    --bg-mint: #F0FFF4;
    --text-dark: #2D2D3F;
    --white: #FFFFFF;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', -apple-system, sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
    line-height: 1.65;
    letter-spacing: 0.01em;
}

/* Nav Bubble */
.nav-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: var(--pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(255,105,180,0.4);
    transition: transform 0.3s var(--bounce);
    font-size: 24px;
    color: white;
}

.nav-bubble:hover {
    transform: scale(1.1);
}

.nav-radial {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    pointer-events: none;
}

.nav-radial.open {
    pointer-events: auto;
}

.nav-option {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transform: translate(0, 0) scale(0);
    transition: all 0.4s var(--bounce);
}

.nav-option:nth-child(1) { background: var(--pink); }
.nav-option:nth-child(2) { background: var(--blue); }
.nav-option:nth-child(3) { background: var(--green); }
.nav-option:nth-child(4) { background: var(--purple); }
.nav-option:nth-child(5) { background: var(--orange); }

.nav-radial.open .nav-option:nth-child(1) { opacity: 1; transform: translate(-80px, -10px) scale(1); }
.nav-radial.open .nav-option:nth-child(2) { opacity: 1; transform: translate(-70px, -65px) scale(1); }
.nav-radial.open .nav-option:nth-child(3) { opacity: 1; transform: translate(-35px, -110px) scale(1); }
.nav-radial.open .nav-option:nth-child(4) { opacity: 1; transform: translate(10px, -135px) scale(1); }
.nav-radial.open .nav-option:nth-child(5) { opacity: 1; transform: translate(10px, -75px) scale(1); }

.nav-option::after {
    content: attr(data-label);
    position: absolute;
    right: 56px;
    white-space: nowrap;
    font-family: 'Sniglet', cursive;
    font-size: 0.75rem;
    color: var(--text-dark);
    background: var(--white);
    padding: 2px 8px;
    border-radius: var(--squircle-sm);
    box-shadow: var(--shadow-candy);
    opacity: 0;
    transition: opacity 0.2s;
}

.nav-option:hover::after {
    opacity: 1;
}

/* Zones */
.zone {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Zone 1: Marquee */
.zone-marquee {
    background: linear-gradient(135deg, #E8D5F5, #D5F5E8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Ccircle cx='15' cy='15' r='4' fill='%232D2D3F'/%3E%3Crect x='40' y='10' width='10' height='10' rx='2' fill='%232D2D3F'/%3E%3Cpolygon points='15,45 20,55 10,55' fill='%232D2D3F'/%3E%3Ccircle cx='45' cy='48' r='3' fill='%232D2D3F'/%3E%3C/svg%3E");
    background-size: 80px 80px;
}

.hero-content {
    text-align: center;
    z-index: 1;
    position: relative;
}

.hero-title {
    font-family: 'Baloo 2', cursive;
    font-size: clamp(3rem, 8vw, 10rem);
    font-weight: 800;
    color: var(--pink);
    text-shadow: 4px 4px 0 rgba(255,255,255,0.8);
    line-height: 1;
    -webkit-text-stroke: 2px white;
    paint-order: stroke fill;
}

.hero-title .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(-60px);
}

.hero-title .letter.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s var(--bounce);
}

.hero-title .pro-suffix {
    display: inline-block;
    opacity: 0;
    transform: translateX(40px) rotate(-10deg);
    color: var(--purple);
}

.hero-title .pro-suffix.visible {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
    transition: all 0.6s var(--bounce);
}

.license-tokens {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 40px;
}

.token {
    width: 100px;
    height: 100px;
    opacity: 0;
    transform: scale(0);
}

.token.visible {
    opacity: 1;
    transform: scale(1);
    transition: all 0.6s var(--bounce);
}

.token svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

@keyframes orbit {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
    100% { transform: translateY(0px) scale(1); }
}

.token.orbiting {
    animation: orbit 4s ease-in-out infinite;
}

.token-2.orbiting { animation-delay: 1.3s; }
.token-3.orbiting { animation-delay: 2.6s; }

/* Zone 2: Conveyor Belt */
.zone-conveyor {
    background: linear-gradient(180deg, var(--bg-light), var(--bg-mint));
    padding: 100px 20px;
}

.conveyor-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.panel {
    background: var(--white);
    border-radius: var(--squircle-md);
    padding: 40px;
    width: 100%;
    max-width: 500px;
    opacity: 0;
    transform: translateX(-80px);
    transition: all 0.6s var(--bounce);
}

.panel.panel-right {
    transform: translateX(80px);
}

.panel.visible {
    opacity: 1;
    transform: translateX(0);
}

.panel.panel-left {
    align-self: flex-start;
    border: 4px solid var(--blue);
    box-shadow: 0 20px 60px rgba(79,195,247,0.15);
}

.panel.panel-right {
    align-self: flex-end;
    border: 4px solid var(--orange);
    box-shadow: 0 20px 60px rgba(255,138,101,0.15);
}

.panel-left:last-child {
    border-color: var(--green);
    box-shadow: 0 20px 60px rgba(129,199,132,0.15);
}

.panel-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
}

.panel-icon svg {
    width: 100%;
    height: 100%;
}

.panel h2 {
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.panel p {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-dark);
    opacity: 0.85;
}

.connector {
    width: 40px;
    height: 80px;
    flex-shrink: 0;
}

.connector svg {
    width: 100%;
    height: 100%;
}

/* Scallop Dividers */
.scallop-divider {
    height: 24px;
    width: 100%;
    position: relative;
}

.scallop-top {
    background: repeating-radial-gradient(circle at 12px 24px, transparent 0, transparent 10px, var(--pink) 10px, var(--pink) 12px, transparent 12px);
    background-size: 24px 24px;
    opacity: 0.3;
}

.scallop-bottom {
    background: repeating-radial-gradient(circle at 12px 0px, transparent 0, transparent 10px, var(--purple) 10px, var(--purple) 12px, transparent 12px);
    background-size: 24px 24px;
    opacity: 0.3;
}

/* Zone 3: Stamps */
.zone-stamps {
    background: var(--bg-mint);
    padding: 80px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 60px;
}

.stamps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    padding: 20px;
}

.stamp {
    width: 170px;
    height: 170px;
    border: 4px dashed currentColor;
    border-radius: var(--squircle-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    opacity: 0;
    transition: transform 0.3s var(--bounce);
}

.stamp.visible {
    opacity: 1;
    transform: scale(1);
}

.stamp:nth-child(1) { color: var(--pink); }
.stamp:nth-child(2) { color: var(--blue); }
.stamp:nth-child(3) { color: var(--green); }
.stamp:nth-child(4) { color: var(--purple); }
.stamp:nth-child(5) { color: var(--yellow); }

.stamp-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stamp-inner svg {
    width: 60px;
    height: 60px;
}

.stamp-inner span {
    font-family: 'Sniglet', cursive;
    font-weight: 800;
    font-size: 0.85rem;
    text-align: center;
}

.stamp.pressed {
    transform: scale(0.92) !important;
    transition: transform 0.1s ease-in;
}

.stamp.released {
    transition: transform 0.3s var(--bounce);
}

.ink-impression {
    position: absolute;
    inset: -10px;
    border-radius: var(--squircle-lg);
    opacity: 0;
    z-index: -1;
    pointer-events: none;
    transition: opacity 2s ease;
}

.stamp:nth-child(1) .ink-impression { background: radial-gradient(circle, rgba(255,105,180,0.3), transparent); }
.stamp:nth-child(2) .ink-impression { background: radial-gradient(circle, rgba(79,195,247,0.3), transparent); }
.stamp:nth-child(3) .ink-impression { background: radial-gradient(circle, rgba(129,199,132,0.3), transparent); }
.stamp:nth-child(4) .ink-impression { background: radial-gradient(circle, rgba(186,104,200,0.3), transparent); }
.stamp:nth-child(5) .ink-impression { background: radial-gradient(circle, rgba(255,213,79,0.3), transparent); }

.ink-impression.show {
    opacity: 1;
}

.ink-impression.fade {
    opacity: 0.6;
}

/* Confetti */
.confetti-piece {
    position: absolute;
    width: 8px;
    height: 8px;
    pointer-events: none;
    z-index: 10;
}

.confetti-piece.circle { border-radius: 50%; }
.confetti-piece.square { border-radius: 2px; }
.confetti-piece.star {
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

@keyframes confettiFall {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
    100% { transform: translate(var(--cx), var(--cy)) rotate(720deg); opacity: 0; }
}

/* Zone 4: Game Board */
.zone-gameboard {
    background: var(--bg-light);
    padding: 80px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gameboard-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 500px;
}

.board-path {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.board-trail {
    filter: drop-shadow(0 0 20px rgba(255,105,180,0.4));
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    transition: stroke-dashoffset 2.5s ease-in-out;
}

.board-trail.drawn {
    stroke-dashoffset: 0;
}

.stepping-stones {
    position: absolute;
    inset: 0;
}

.stone {
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 5px solid var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s var(--bounce);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.stone.visible {
    opacity: 1;
    transform: scale(1);
}

.stone:nth-child(1) { background: var(--pink); }
.stone:nth-child(2) { background: var(--blue); }
.stone:nth-child(3) { background: var(--yellow); }
.stone:nth-child(4) { background: var(--green); }
.stone:nth-child(5) { background: var(--purple); }

.stone-num {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: 2rem;
    color: var(--white);
    line-height: 1;
}

.stone-label {
    font-family: 'Sniglet', cursive;
    font-size: 0.75rem;
    color: var(--white);
    opacity: 0.9;
}

@keyframes stoneFlash {
    0% { background: white; }
    100% { background: inherit; }
}

/* Zone 5: Prize Counter */
.zone-prize {
    background: var(--bg-mint);
    padding: 60px 20px 40px;
    text-align: center;
}

.prize-counter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin: 40px auto;
    max-width: 600px;
}

.prize-tag {
    background: var(--white);
    border-radius: var(--squircle-sm);
    padding: 12px 24px;
    font-family: 'Sniglet', cursive;
    font-size: 1rem;
    color: var(--text-dark);
    box-shadow: var(--shadow-candy);
    position: relative;
    opacity: 0;
    transform: translateY(-40px) rotate(5deg);
    cursor: pointer;
    transition: transform 0.3s var(--bounce);
}

.prize-tag.visible {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
    animation: pendulum 1.5s var(--bounce) forwards;
}

@keyframes pendulum {
    0% { transform: translateY(-40px) rotate(8deg); }
    30% { transform: translateY(4px) rotate(-4deg); }
    60% { transform: translateY(-2px) rotate(2deg); }
    80% { transform: translateY(1px) rotate(-1deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.prize-tag::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 50%;
    width: 2px;
    height: 16px;
    background: var(--text-dark);
    opacity: 0.3;
}

.prize-tag:hover {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: var(--shadow-lifted);
}

.footer-note {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-dark);
    opacity: 0.5;
    margin-top: 40px;
}

/* Floating Decorative Elements */
.floating-decor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.float-item {
    position: absolute;
    opacity: 0.1;
    animation: floatDrift 20s linear infinite;
}

@keyframes floatDrift {
    0% { transform: rotate(0deg) scale(0.95); }
    50% { transform: rotate(180deg) scale(1.05); }
    100% { transform: rotate(360deg) scale(0.95); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2rem, 10vw, 4rem);
    }
    .license-tokens {
        gap: 20px;
    }
    .token {
        width: 70px;
        height: 70px;
    }
    .panel {
        max-width: 100%;
    }
    .stamps-container {
        gap: 12px;
    }
    .stamp {
        width: 140px;
        height: 140px;
    }
    .gameboard-container {
        height: 400px;
    }
    .stone {
        width: 80px;
        height: 80px;
    }
    .stone-num {
        font-size: 1.5rem;
    }
}
