/* CSS Design System & Variables */
:root {
    --primary: #ff477e;
    --primary-hover: #db2777;
    --primary-light: #ffe5ec;
    --primary-glow: rgba(255, 71, 126, 0.35);
    
    --bg-start: #ffe5ec;
    --bg-mid-1: #ffc2d1;
    --bg-mid-2: #e8dbfc;
    --bg-end: #d6e2f8;
    
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: 1.5px solid rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 10px 30px rgba(219, 39, 119, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    
    --text-color: #4c3b4e;
    --text-muted: #7b6d80;
    
    --transition-smooth: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-bounce: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base Setup */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    height: 100vh;
    width: 100vw;
    font-family: 'Quicksand', sans-serif;
    color: var(--text-color);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('birthday_bg.png') no-repeat center center fixed;
    background-size: cover;
    background-color: #fff2f5;
}

/* GPU-Accelerated Liquid Gradient Blobs */
.bg-gradient-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: multiply;
    opacity: 0.45;
    will-change: transform;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 320px;
    height: 320px;
    background: #ffa8ba;
    animation: blobFloat1 18s ease-in-out infinite;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 380px;
    height: 380px;
    background: #c3d9fc;
    animation: blobFloat2 22s ease-in-out infinite;
}

.blob-3 {
    top: 40%;
    left: 30%;
    width: 280px;
    height: 280px;
    background: #f0c2fc;
    animation: blobFloat3 20s ease-in-out infinite;
}

@keyframes blobFloat1 {
    0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
    33% { transform: translate3d(60px, 80px, 0) scale(1.08) rotate(120deg); }
    66% { transform: translate3d(-40px, 50px, 0) scale(0.95) rotate(240deg); }
    100% { transform: translate3d(0, 0, 0) scale(1) rotate(360deg); }
}

@keyframes blobFloat2 {
    0% { transform: translate3d(0, 0, 0) scale(1.04) rotate(0deg); }
    33% { transform: translate3d(-70px, -60px, 0) scale(0.92) rotate(-120deg); }
    66% { transform: translate3d(40px, -80px, 0) scale(1.08) rotate(-240deg); }
    100% { transform: translate3d(0, 0, 0) scale(1.04) rotate(-360deg); }
}

@keyframes blobFloat3 {
    0% { transform: translate3d(0, 0, 0) scale(0.92) rotate(0deg); }
    50% { transform: translate3d(90px, -40px, 0) scale(1.1) rotate(180deg); }
    100% { transform: translate3d(0, 0, 0) scale(0.92) rotate(360deg); }
}

/* Background Floating Elements */
.bg-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.balloon {
    position: absolute;
    bottom: -150px;
    width: 48px;
    height: 60px;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    animation: floatUp 9s linear infinite;
    opacity: 0.7;
    will-change: transform;
}

.balloon::after {
    content: "";
    position: absolute;
    bottom: -7px;
    left: 21px;
    width: 6px;
    height: 6px;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-bottom: 6px solid currentColor;
}

.balloon-string {
    position: absolute;
    bottom: -25px;
    left: 23px;
    width: 1.5px;
    height: 25px;
    background-color: rgba(0, 0, 0, 0.12);
}

.heart-particle {
    position: absolute;
    bottom: -50px;
    animation: floatUp 7s ease-in-out infinite;
    opacity: 0.65;
    will-change: transform;
}

@keyframes floatUp {
    0% {
        transform: translate3d(0, 0, 0) scale(0.7) rotate(0deg);
        opacity: 0;
    }
    15% { opacity: 0.8; }
    85% { opacity: 0.8; }
    100% {
        transform: translate3d(0, -115vh, 0) scale(1.05) rotate(360deg);
        opacity: 0;
    }
}

/* Stage Structure */
.container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    padding: 15px;
}

.stage {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.92) translateY(20px);
    transition: var(--transition-bounce);
}

.stage.active {
    display: flex;
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Premium Glassmorphic Cards */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
}

/* Smooth Interactive Buttons */
.cute-btn {
    background: linear-gradient(135deg, #ff85a1, var(--primary));
    color: white;
    border: none;
    padding: 13px 26px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px var(--primary-glow);
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.25s ease, opacity 0.4s ease;
    margin-top: 20px;
    outline: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cute-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 71, 126, 0.45);
}

.cute-btn:active {
    transform: translateY(1px);
}

.cute-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

/* PHASE 1: Digital Envelope (Auto-scaled for Mobile) */
.envelope-wrapper {
    width: 100%;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(min(1, calc((100vw - 30px) / 310px)));
    transform-origin: center center;
}

.envelope {
    position: relative;
    width: 300px;
    height: 200px;
    background: #ffb3c1;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.envelope::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-top: 110px solid #ffa3b1;
    z-index: 3;
    transition: all 0.4s ease;
}

.flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-top: 110px solid var(--primary);
    transform-origin: top center;
    transition: transform 0.4s ease 0.2s, z-index 0.2s ease 0.2s;
    z-index: 4;
}

.pocket {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--primary), #ff9ebb);
    border-radius: 0 0 15px 15px;
    z-index: 3;
}

.letter {
    position: absolute;
    bottom: 10px;
    left: 15px;
    width: 270px;
    height: 180px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0.4s, z-index 0s ease 0.4s;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.letter-inner {
    text-align: center;
}

.letter-heart {
    font-size: 28px;
    display: block;
    margin-bottom: 5px;
    animation: pulse 1.5s infinite alternate;
}

.letter-to {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 5px;
}

.letter-hint {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

.seal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55px;
    height: 55px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 12px rgba(255, 71, 126, 0.4);
    z-index: 5;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    cursor: pointer;
}

.seal:hover {
    transform: translate(-50%, -50%) scale(1.08);
}

.seal-heart {
    font-size: 24px;
    color: white;
}

/* Open Envelope States */
.envelope.open::before {
    z-index: 1;
}

.envelope.open .flap {
    transform: rotateX(180deg);
    z-index: 1;
}

.envelope.open .letter {
    transform: translateY(-135px);
    z-index: 4;
}

.envelope.open .seal {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
}

/* PHASE 2: The Letter Card */
.letter-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(255, 71, 126, 0.08);
    padding: clamp(20px, 5vw, 35px) clamp(15px, 4vw, 25px);
    text-align: center;
    border: 1.5px solid rgba(255, 182, 193, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-decor {
    position: absolute;
    font-size: 20px;
    opacity: 0.8;
}
.top-left { top: 12px; left: 12px; }
.top-right { top: 12px; right: 12px; }
.bottom-left { bottom: 12px; left: 12px; }
.bottom-right { bottom: 12px; right: 12px; }

.letter-body {
    width: 100%;
}

.letter-body h2 {
    font-family: 'Fredoka', sans-serif;
    color: var(--primary);
    font-size: clamp(22px, 5vw, 26px);
    margin-bottom: 15px;
}

.message-text {
    font-size: clamp(15px, 4vw, 17px);
    line-height: 1.6;
    color: #4b3d4e;
    min-height: 160px;
    max-height: 280px;
    overflow-y: auto;
    text-align: left;
    white-space: pre-line;
    margin-bottom: 20px;
    padding-right: 5px;
}

.message-text::-webkit-scrollbar {
    width: 4px;
}
.message-text::-webkit-scrollbar-thumb {
    background: #ffc2d1;
    border-radius: 10px;
}

.signature {
    text-align: right;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 10px;
    font-family: 'Fredoka', sans-serif;
}

.handwritten {
    font-family: 'Caveat', cursive;
    font-size: 24px;
    color: var(--primary);
    font-weight: 700;
}

.cute-link {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.25s ease;
    border-bottom: 1.5px dashed rgba(255, 71, 126, 0.3);
    padding-bottom: 1px;
}

.cute-link:hover {
    color: var(--primary-hover);
    border-bottom-color: var(--primary-hover);
    text-shadow: 0 0 5px rgba(255, 71, 126, 0.15);
}

/* PHASE 2.5: Scratch Card Booklet */
.scratch-card-wrapper {
    width: 100%;
    max-width: 420px;
    padding: clamp(20px, 4vw, 30px) 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scratch-instruction {
    font-family: 'Fredoka', sans-serif;
    color: var(--primary);
    font-size: clamp(16px, 4vw, 18px);
    margin-bottom: 15px;
    line-height: 1.4;
    padding: 0 10px;
}

.scratch-booklet {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-height: calc(100vh - 280px); /* Leaves space for button and instructions */
    overflow-y: auto;
    padding: 5px;
    -webkit-overflow-scrolling: touch;
}

.scratch-booklet::-webkit-scrollbar {
    width: 4px;
}
.scratch-booklet::-webkit-scrollbar-thumb {
    background: rgba(255, 71, 126, 0.25);
    border-radius: 10px;
}

.scratch-container {
    position: relative;
    width: 280px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px dashed #ffb6c1;
    box-shadow: 0 4px 12px rgba(255, 71, 126, 0.05);
    margin: 0 auto;
    background: #ffffff;
    flex-shrink: 0;
}

.scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><text y="18" font-size="16">🧼</text></svg>'), auto;
    touch-action: none;
}

.scratch-revealed-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff5f7;
    z-index: 1;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.secret-text {
    font-family: 'Fredoka', sans-serif;
    font-size: 13.5px;
    color: var(--primary-hover);
    line-height: 1.5;
    font-weight: 600;
}

/* PHASE 3: The Cake (Auto-scaled for Mobile) */
.cake-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(min(1, calc((100vw - 30px) / 320px)));
    transform-origin: center center;
}

.cake-instruction {
    font-family: 'Fredoka', sans-serif;
    color: var(--primary);
    font-size: 19px;
    line-height: 1.4;
    margin-bottom: 30px;
    text-align: center;
}

.cake-container {
    position: relative;
    width: 100%;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 25px;
}

/* Cake Layers styling (Realistic 3D Cylinder look) */
.cake {
    position: relative;
    width: 220px;
    height: 140px;
    z-index: 2;
}

.layer {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.layer-top-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    border-radius: 50%;
    z-index: 3;
    box-shadow: inset 0 -3px 8px rgba(0, 0, 0, 0.05);
}

.layer-side-face {
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: calc(100% - 15px);
}

.layer-top {
    bottom: 65px;
    width: 180px;
    height: 55px;
    z-index: 2;
}

.layer-top .layer-top-face {
    background: radial-gradient(circle at 50% 30%, #ffeef3 0%, #ffc2d1 80%, #ffa8ba 100%);
}

.layer-top .layer-side-face {
    background: linear-gradient(to right, #e87a90 0%, #ffc2d1 12%, #ffc2d1 85%, #f43f5e 100%);
    border-radius: 0 0 90px 90px / 0 0 15px 15px;
}

.layer-bottom {
    bottom: 0;
    width: 220px;
    height: 70px;
    z-index: 1;
}

.layer-bottom .layer-top-face {
    background: radial-gradient(circle at 50% 30%, #ffd0db 0%, #ff9ebb 80%, #ff85a1 100%);
}

.layer-bottom .layer-side-face {
    background: linear-gradient(to right, #db2777 0%, #ff85a1 12%, #ff85a1 85%, #d91b5c 100%);
    border-radius: 0 0 110px 110px / 0 0 15px 15px;
    box-shadow: inset 0 -12px 10px rgba(0, 0, 0, 0.05);
}

/* Cream Drips */
.drips {
    position: absolute;
    width: 100%;
    top: 15px;
    height: 25px;
    z-index: 4;
    pointer-events: none;
}

.drip {
    position: absolute;
    width: 12px;
    height: 18px;
    background: #ff6482;
    border-radius: 0 0 6px 6px;
    box-shadow: inset -1.5px 0 2px rgba(0,0,0,0.15), 0 2px 3px rgba(0, 0, 0, 0.06);
}

.drip-1 { left: 15px; height: 16px; }
.drip-2 { left: 45px; height: 22px; }
.drip-3 { left: 90px; height: 14px; }
.drip-4 { left: 130px; height: 20px; }
.drip-5 { left: 155px; height: 12px; }

.middle-drips .drip {
    background: #ffffff;
    box-shadow: inset -1.5px 0 2px rgba(0,0,0,0.08), 0 2px 3px rgba(0, 0, 0, 0.04);
}

/* Middle Frosting Cream Layer */
.frosting-middle {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 222px;
    height: 14px;
    z-index: 1.5;
}

.frosting-middle-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    z-index: 2;
    box-shadow: inset 0 -1px 3px rgba(0,0,0,0.03);
}

.frosting-middle-side {
    position: absolute;
    top: 4px;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, #e2e8f0 0%, #ffffff 15%, #ffffff 85%, #cbd5e1 100%);
    border-radius: 0 0 111px 111px / 0 0 5px 5px;
    z-index: 1;
}

/* Cream Dollops & Cherries */
.cream-dollops {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 20px;
    z-index: 6;
    display: flex;
    justify-content: space-around;
    pointer-events: none;
}

.dollop {
    position: relative;
    width: 22px;
    height: 14px;
    background: radial-gradient(circle at 50% 30%, #ffffff 0%, #f1f5f9 100%);
    border-radius: 50% 50% 40% 40%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.d1 { transform: scale(0.9); }
.d2 { transform: scale(1.05) translateY(-2px); }
.d3 { transform: scale(0.9); }

.cherry {
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 35% 35%, #ff4d4d 0%, #cc0000 80%, #7f0000 100%);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.cherry::after {
    content: "";
    position: absolute;
    top: -5px;
    left: 5px;
    width: 4px;
    height: 6px;
    border-left: 1.2px solid #22c55e;
    border-radius: 50% 0 0 50%;
    transform: rotate(25deg);
}

/* Sprinkles decoration */
.sprinkle {
    position: absolute;
    width: 6px;
    height: 2.5px;
    border-radius: 1.5px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.color-1 { background: #60a5fa; }
.color-2 { background: #fca5a5; }
.color-3 { background: #fde047; }
.color-4 { background: #c084fc; }
.color-5 { background: #4ade80; }

/* The Plate */
.plate {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 35px;
    background: radial-gradient(ellipse at 50% 25%, #ffffff 0%, #f1f5f9 65%, #cbd5e1 100%);
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12), inset 0 2px 4px rgba(255,255,255,0.7);
    z-index: 1;
    border: 1px solid #cbd5e1;
}

/* Candles & Flame Animations */
.candles {
    position: absolute;
    bottom: 115px;
    width: 130px;
    display: flex;
    justify-content: space-around;
    z-index: 5;
}

.candle {
    position: relative;
    width: 10px;
    height: 42px;
    background: linear-gradient(to right, #a855f7 0%, #c084fc 35%, #ffffff 50%, #c084fc 65%, #a855f7 100%);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1), inset 0 2px 2px rgba(255,255,255,0.4);
    border-radius: 3px 3px 0 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.candle:hover {
    transform: scaleY(1.06);
}

.wax {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 3px 3px 0 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(255,255,255,0.4) 4px, rgba(255,255,255,0.4) 8px);
}

.flame {
    position: absolute;
    top: -17px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 22px;
    background: radial-gradient(circle at 50% 80%, #60a5fa 0%, #ff4d4d 40%, #ff9f43 70%, #ffeaa7 100%);
    border-radius: 50% 50% 20% 20%;
    transform-origin: bottom center;
    animation: flicker 0.12s ease-in-out infinite alternate;
    box-shadow: 0 0 15px rgba(255, 230, 109, 0.9), 0 -2px 10px rgba(255, 100, 100, 0.4);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.flame.out {
    opacity: 0;
    transform: translateX(-50%) scale(0);
    pointer-events: none;
}

@keyframes flicker {
    0% { transform: translateX(-50%) rotate(-2deg) scaleX(0.92); }
    100% { transform: translateX(-50%) rotate(2deg) scaleX(1.08) scaleY(1.04); }
}

/* PHASE 4: The Final Surprise Card */
.final-card {
    width: 100%;
    max-width: 440px;
    padding: clamp(25px, 5vw, 40px) clamp(20px, 4vw, 30px);
    text-align: center;
    border-radius: 28px;
    animation: cardEntrance 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

@keyframes cardEntrance {
    0% { transform: scale(0.7) translateY(40px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.sparkles-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.sparkle {
    font-size: 24px;
    animation: pulse 1.2s infinite alternate;
}

.bounce-title {
    font-family: 'Fredoka', sans-serif;
    color: var(--primary);
    font-size: clamp(28px, 6vw, 34px);
    line-height: 1.3;
    animation: bounce 2s infinite;
}

.highlight {
    font-size: clamp(32px, 7vw, 40px);
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding-bottom: 3px;
}

.final-message {
    font-size: clamp(14.5px, 4vw, 16px);
    line-height: 1.6;
    color: var(--text-color);
    margin-top: 15px;
    text-align: center;
}

.gift-animation {
    font-size: 50px;
    margin: 20px 0 5px;
    animation: wiggle 2.5s infinite;
}

/* Dynamic Animation Presets */
@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.18); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0) scale(1); }
    15% { transform: rotate(-8deg) scale(1.08); }
    30% { transform: rotate(6deg) scale(1.08); }
    45% { transform: rotate(-4deg) scale(1.04); }
    60% { transform: rotate(3deg) scale(1.04); }
    75% { transform: rotate(0) scale(1); }
}

/* Fixed Overlay Canvas for Confetti */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99;
}
