/* ===== RESET & BASE ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: #0a0a0a;
    transition: background-color 1.5s cubic-bezier(0.23, 1, 0.32, 1);
    overflow-x: hidden;
    font-family: 'Signika', sans-serif;
    margin: 0;
    padding: 0;
    perspective: 1400px;
    cursor: default;
}
body.peach { background-color: #FFDAB9; }
body.peach-after { animation: peachGlow 10s infinite ease-in-out; }
@keyframes peachGlow {
    0%, 100% { background-color: #FFDAB9; }
    25% { background-color: #FFE4B5; }
    50% { background-color: #FFDAB9; }
    75% { background-color: #FFEFD5; }
}

/* ===== CUSTOM AUDIO PLAYER ===== */
.audio-player-box {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10005;
    width: 320px;
    background: linear-gradient(145deg, rgba(255, 250, 245, 0.98), rgba(255, 235, 225, 0.96));
    border-radius: 20px;
    padding: 16px 16px 14px 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.45),
                0 0 0 2px rgba(255, 200, 180, 0.6),
                inset 0 2px 0 rgba(255,255,255,0.95);
    border: 1px solid rgba(255, 180, 160, 0.5);
    display: none;
    opacity: 0;
    transform: translateX(-40px) scale(0.9);
    transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
}
.audio-player-box.visible {
    display: block;
    opacity: 1;
    transform: translateX(0) scale(1);
}
.audio-player-box::before {
    content: "";
    position: absolute;
    top: -2px; left: -2px;
    width: 45px; height: 45px;
    background: linear-gradient(135deg, #FFB6C1 0%, #FF8FA3 50%, transparent 50%);
    border-radius: 20px 0 0 0;
    opacity: 0.65;
    z-index: 1;
}
.audio-player-box::after {
    content: "";
    position: absolute;
    bottom: -2px; right: -2px;
    width: 45px; height: 45px;
    background: linear-gradient(315deg, #FFB6C1 0%, #FF8FA3 50%, transparent 50%);
    border-radius: 0 0 20px 0;
    opacity: 0.65;
    z-index: 1;
}
.ap-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}
.ap-title {
    font-family: 'Dancing Script', cursive;
    font-size: 20px;
    font-weight: 700;
    color: #C4515C;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    gap: 6px;
}
.ap-title::before { content: "🎵"; font-size: 16px; }
.ap-close {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: linear-gradient(145deg, #FF6B8A, #D14D39);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.8);
    box-shadow: 0 3px 10px rgba(209, 77, 57, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    line-height: 1;
    user-select: none;
}
.ap-close:hover { transform: rotate(90deg) scale(1.15); box-shadow: 0 6px 18px rgba(209, 77, 57, 0.7); }
.ap-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 12px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 200, 180, 0.4);
}
.ap-disc {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #2a2a2a, #555, #2a2a2a, #555, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3), inset 0 0 0 2px rgba(255,255,255,0.15);
    position: relative;
}
.ap-disc.playing { animation: discSpin 3s linear infinite; }
@keyframes discSpin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.ap-disc::after {
    content: "";
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #FFD700;
    box-shadow: inset 0 0 0 2px #fff;
}
.ap-info-text { flex: 1; min-width: 0; }
.ap-song-title {
    font-family: 'Signika', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #a13a44;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 2px 0;
}
.ap-song-sub {
    font-family: 'Signika', sans-serif;
    font-size: 10.5px;
    font-weight: 400;
    color: #7a3a42;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}
.ap-progress-wrap { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; position: relative; z-index: 2; }
.ap-time {
    font-family: 'Signika', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    color: #C4515C;
    min-width: 34px;
    text-align: center;
}
.ap-progress-bar {
    flex: 1;
    height: 6px;
    border-radius: 10px;
    background: rgba(196, 81, 92, 0.2);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
}
.ap-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    background: linear-gradient(90deg, #FFB6C1, #D14D39);
    transition: width 0.15s linear;
    box-shadow: 0 0 8px rgba(209, 77, 57, 0.5);
    position: relative;
}
.ap-progress-fill::after {
    content: "";
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px rgba(209, 77, 57, 0.8), 0 0 0 2px #D14D39;
    opacity: 0;
    transition: opacity 0.3s;
}
.ap-progress-bar:hover .ap-progress-fill::after { opacity: 1; }
.ap-controls { display: flex; align-items: center; justify-content: center; gap: 12px; position: relative; z-index: 2; margin-bottom: 12px; }
.ap-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, #FFB6C1, #FF8FA3);
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.35), inset 0 1px 0 rgba(255,255,255,0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
    line-height: 1;
}
.ap-btn:hover { transform: translateY(-3px) scale(1.1); box-shadow: 0 8px 20px rgba(255, 105, 180, 0.55), inset 0 1px 0 rgba(255,255,255,0.4); }
.ap-btn:active { transform: translateY(-1px) scale(1.02); }
.ap-btn-main {
    width: 50px; height: 50px;
    font-size: 20px;
    background: linear-gradient(145deg, #FF6B8A, #D14D39);
    box-shadow: 0 8px 22px rgba(209, 77, 57, 0.45), inset 0 1px 0 rgba(255,255,255,0.35);
}
.ap-btn-main:hover { box-shadow: 0 12px 30px rgba(209, 77, 57, 0.65), inset 0 1px 0 rgba(255,255,255,0.35); }
.ap-playlist {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 130px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    z-index: 2;
    padding: 6px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    border: 1px solid rgba(255, 200, 180, 0.4);
}
.ap-playlist::-webkit-scrollbar { width: 5px; }
.ap-playlist::-webkit-scrollbar-track { background: rgba(255, 200, 180, 0.15); border-radius: 10px; }
.ap-playlist::-webkit-scrollbar-thumb { background: rgba(196, 81, 92, 0.45); border-radius: 10px; }
.ap-track {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Signika', sans-serif;
    font-size: 12px;
    color: #7a3a42;
    font-weight: 500;
    position: relative;
}
.ap-track:hover { background: rgba(255, 255, 255, 0.6); transform: translateX(3px); }
.ap-track.active {
    background: linear-gradient(90deg, rgba(255, 107, 138, 0.25), rgba(209, 77, 57, 0.15));
    color: #a13a44;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(209, 77, 57, 0.3);
}
.ap-track-num {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: rgba(196, 81, 92, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #C4515C;
    flex-shrink: 0;
    transition: all 0.3s;
}
.ap-track.active .ap-track-num {
    background: linear-gradient(145deg, #FF6B8A, #D14D39);
    color: #fff;
    box-shadow: 0 0 8px rgba(209, 77, 57, 0.5);
}
.ap-track-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-track-eq { display: none; gap: 2px; align-items: flex-end; height: 12px; }
.ap-track.active .ap-track-eq { display: flex; }
.ap-track-eq span {
    width: 2.5px;
    background: #D14D39;
    border-radius: 2px;
    animation: eqBounce 0.8s ease-in-out infinite;
}
.ap-track-eq span:nth-child(1) { animation-delay: 0s; height: 6px; }
.ap-track-eq span:nth-child(2) { animation-delay: 0.2s; height: 10px; }
.ap-track-eq span:nth-child(3) { animation-delay: 0.4s; height: 8px; }
@keyframes eqBounce { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }

/* ===== BUTTERFLY GARDEN ===== */
.butterfly-garden {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
    contain: layout paint style;
}
.butterfly {
    position: absolute;
    width: 36px;
    height: 36px;
    pointer-events: none;
    will-change: transform;
}
.butterfly svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.25));
}
.butterfly .wing-left {
    transform-origin: 50% 50%;
    animation: flapLeft 0.35s ease-in-out infinite alternate;
}
.butterfly .wing-right {
    transform-origin: 50% 50%;
    animation: flapRight 0.35s ease-in-out infinite alternate;
}
@keyframes flapLeft { 0% { transform: scaleX(1) rotateY(0deg); } 100% { transform: scaleX(0.6) rotateY(20deg); } }
@keyframes flapRight { 0% { transform: scaleX(1) rotateY(0deg); } 100% { transform: scaleX(0.6) rotateY(-20deg); } }
.bf1 { animation: fly1 18s linear infinite; }
@keyframes fly1 {
    0% { transform: translate(-10vw, 110vh) rotate(-10deg) scale(0.9); }
    20% { transform: translate(15vw, 20vh) rotate(15deg) scale(1); }
    40% { transform: translate(45vw, 60vh) rotate(-8deg) scale(0.85); }
    60% { transform: translate(75vw, 10vh) rotate(20deg) scale(1.05); }
    80% { transform: translate(50vw, 80vh) rotate(-15deg) scale(0.95); }
    100% { transform: translate(-10vw, 110vh) rotate(-10deg) scale(0.9); }
}
.bf2 { animation: fly2 22s linear infinite; }
@keyframes fly2 {
    0% { transform: translate(110vw, 90vh) rotate(10deg) scale(1); }
    25% { transform: translate(70vw, 30vh) rotate(-20deg) scale(0.8); }
    50% { transform: translate(30vw, 70vh) rotate(12deg) scale(1.1); }
    75% { transform: translate(5vw, 25vh) rotate(-8deg) scale(0.9); }
    100% { transform: translate(110vw, 90vh) rotate(10deg) scale(1); }
}
.bf3 { animation: fly3 16s linear infinite; }
@keyframes fly3 {
    0% { transform: translate(-5vw, 50vh) rotate(-20deg) scale(0.85); }
    30% { transform: translate(35vw, 85vh) rotate(15deg) scale(1); }
    60% { transform: translate(80vw, 40vh) rotate(-5deg) scale(1.1); }
    100% { transform: translate(-5vw, 50vh) rotate(-20deg) scale(0.85); }
}
.bf4 { animation: fly4 20s linear infinite; }
@keyframes fly4 {
    0% { transform: translate(50vw, -10vh) rotate(0deg) scale(1); }
    25% { transform: translate(85vw, 35vh) rotate(25deg) scale(0.9); }
    50% { transform: translate(60vw, 75vh) rotate(-12deg) scale(1.05); }
    75% { transform: translate(15vw, 45vh) rotate(18deg) scale(0.95); }
    100% { transform: translate(50vw, -10vh) rotate(0deg) scale(1); }
}
.bf5 { animation: fly5 24s linear infinite; }
@keyframes fly5 {
    0% { transform: translate(120vw, 20vh) rotate(-15deg) scale(0.9); }
    33% { transform: translate(60vw, 65vh) rotate(10deg) scale(1.1); }
    66% { transform: translate(10vw, 15vh) rotate(-22deg) scale(0.85); }
    100% { transform: translate(120vw, 20vh) rotate(-15deg) scale(0.9); }
}
.bf6 { animation: fly6 19s linear infinite; }
@keyframes fly6 {
    0% { transform: translate(20vw, 105vh) rotate(5deg) scale(1); }
    25% { transform: translate(75vw, 55vh) rotate(-18deg) scale(0.9); }
    50% { transform: translate(40vw, 5vh) rotate(22deg) scale(1.15); }
    75% { transform: translate(90vw, 75vh) rotate(-10deg) scale(0.88); }
    100% { transform: translate(20vw, 105vh) rotate(5deg) scale(1); }
}
.bf7 { animation: fly7 21s linear infinite; }
@keyframes fly7 {
    0% { transform: translate(95vw, 100vh) rotate(15deg) scale(0.9); }
    20% { transform: translate(35vw, 45vh) rotate(-25deg) scale(1.05); }
    50% { transform: translate(65vw, 15vh) rotate(8deg) scale(0.95); }
    80% { transform: translate(5vw, 70vh) rotate(-12deg) scale(1.1); }
    100% { transform: translate(95vw, 100vh) rotate(15deg) scale(0.9); }
}
.bf8 { animation: fly8 25s linear infinite; }
@keyframes fly8 {
    0% { transform: translate(-10vw, 30vh) rotate(0deg) scale(1); }
    33% { transform: translate(50vw, 90vh) rotate(-20deg) scale(0.85); }
    66% { transform: translate(100vw, 50vh) rotate(15deg) scale(1.1); }
    100% { transform: translate(-10vw, 30vh) rotate(0deg) scale(1); }
}

/* ===== DHOOM CELEBRATION ===== */
.dhoom-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9990;
    pointer-events: none;
    overflow: hidden;
    contain: layout paint style;
}
.dhoom-overlay.active { display: block; }
.firework {
    position: absolute;
    width: 6px; height: 6px;
    border-radius: 50%;
    pointer-events: none;
    animation: fireworkBurst 2s ease-out forwards;
}
@keyframes fireworkBurst {
    0% { transform: translate(0, 0) scale(1); opacity: 1; box-shadow: 0 0 20px 10px currentColor; }
    70% { opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0.1); opacity: 0; box-shadow: 0 0 10px 2px currentColor; }
}
.confetti-piece {
    position: absolute;
    top: -20px;
    width: 12px; height: 20px;
    pointer-events: none;
    opacity: 0.95;
    animation: confettiFall linear forwards;
}
@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0deg) rotateY(0deg); opacity: 1; }
    25% { transform: translateY(25vh) rotate(180deg) rotateY(180deg); }
    50% { transform: translateY(50vh) rotate(360deg) rotateY(360deg); }
    75% { transform: translateY(75vh) rotate(540deg) rotateY(540deg); }
    100% { transform: translateY(110vh) rotate(720deg) rotateY(720deg); opacity: 0.3; }
}
.sparkle-particle {
    position: absolute;
    width: 8px; height: 8px;
    border-radius: 50%;
    pointer-events: none;
    animation: sparkleFloat 3s ease-out forwards;
}
@keyframes sparkleFloat {
    0% { transform: translate(0, 0) scale(0); opacity: 0; }
    20% { transform: translate(0, -20px) scale(1.2); opacity: 1; }
    100% { transform: translate(var(--sx), var(--sy)) scale(0); opacity: 0; }
}
.dhoom-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-family: 'Signika', sans-serif;
    font-size: 140px;
    font-weight: 900;
    letter-spacing: 12px;
    text-transform: uppercase;
    color: #FFD700;
    text-shadow: 0 0 40px #FF4500, 0 0 80px #FFD700, 0 0 120px #FF69B4, 5px 5px 0 #D14D39;
    pointer-events: none;
    opacity: 0;
    z-index: 9995;
    animation: dhoomPulse 4s ease-out forwards;
}
@keyframes dhoomPulse {
    0% { transform: translate(-50%, -50%) scale(0) rotate(-10deg); opacity: 0; }
    15% { transform: translate(-50%, -50%) scale(1.3) rotate(5deg); opacity: 1; }
    30% { transform: translate(-50%, -50%) scale(1) rotate(-3deg); opacity: 1; }
    45% { transform: translate(-50%, -50%) scale(1.15) rotate(2deg); opacity: 1; }
    60% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
    85% { transform: translate(-50%, -50%) scale(1.05) rotate(-1deg); opacity: 0.9; }
    100% { transform: translate(-50%, -50%) scale(1.5) rotate(0deg); opacity: 0; }
}
.celebration-ring {
    position: absolute;
    top: 50%; left: 50%;
    width: 100px; height: 100px;
    border: 4px solid #FFD700;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    opacity: 0;
    animation: ringExpand 2.5s ease-out forwards;
}
@keyframes ringExpand {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; border-width: 8px; }
    100% { transform: translate(-50%, -50%) scale(15); opacity: 0; border-width: 1px; }
}
.screen-flash {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(255,215,0,0.5) 0%, rgba(255,69,0,0.3) 40%, transparent 70%);
    pointer-events: none;
    z-index: 9989;
    opacity: 0;
    animation: flashScreen 1.5s ease-out forwards;
}
@keyframes flashScreen { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }
.dhoom-balloon {
    position: absolute;
    width: 60px; height: 80px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    pointer-events: none;
    opacity: 0;
    animation: balloonRise 4s ease-out forwards;
}
.dhoom-balloon::after {
    content: '';
    position: absolute;
    bottom: -40px; left: 50%;
    width: 2px; height: 40px;
    background: rgba(255,255,255,0.5);
    transform: translateX(-50%);
}
@keyframes balloonRise {
    0% { transform: translateY(0) rotate(0deg) scale(0.3); opacity: 0; }
    20% { opacity: 1; transform: translateY(-15vh) rotate(5deg) scale(1); }
    80% { opacity: 1; }
    100% { transform: translateY(-110vh) rotate(-10deg) scale(1); opacity: 0; }
}
.heart-particle {
    position: absolute;
    font-size: 24px;
    pointer-events: none;
    animation: heartExplode 2.5s ease-out forwards;
}
@keyframes heartExplode {
    0% { transform: translate(0, 0) scale(0) rotate(0deg); opacity: 0; }
    20% { transform: translate(0, -30px) scale(1.5) rotate(20deg); opacity: 1; }
    100% { transform: translate(var(--hx), var(--hy)) scale(0.5) rotate(360deg); opacity: 0; }
}

/* ===== CONGRATS POPUP ===== */
.congrats-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 10002;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.congrats-overlay.active { display: flex; opacity: 1; }
.congrats-popup {
    position: relative;
    max-width: 620px;
    width: 100%;
    background: linear-gradient(145deg, rgba(255, 250, 245, 0.98), rgba(255, 235, 225, 0.96));
    border-radius: 32px;
    padding: 40px 30px 32px 30px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6),
                0 0 0 3px rgba(255, 200, 180, 0.6),
                0 0 70px rgba(255, 215, 0, 0.35),
                inset 0 2px 0 rgba(255,255,255,0.95);
    border: 1px solid rgba(255, 180, 160, 0.5);
    transform: scale(0.6) translateY(60px) rotateX(15deg);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.7s ease;
    text-align: center;
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.congrats-overlay.active .congrats-popup { transform: scale(1) translateY(0) rotateX(0deg); opacity: 1; }
.congrats-popup::before {
    content: "";
    position: absolute;
    top: -3px; left: -3px;
    width: 100px; height: 100px;
    background: linear-gradient(135deg, #FFB6C1 0%, #FF8FA3 50%, transparent 50%);
    border-radius: 32px 0 0 0;
    opacity: 0.65;
    z-index: 1;
    pointer-events: none;
}
.congrats-popup::after {
    content: "";
    position: absolute;
    bottom: -3px; right: -3px;
    width: 100px; height: 100px;
    background: linear-gradient(315deg, #FFB6C1 0%, #FF8FA3 50%, transparent 50%);
    border-radius: 0 0 32px 0;
    opacity: 0.65;
    z-index: 1;
    pointer-events: none;
}
.congrats-header { position: relative; z-index: 2; margin-bottom: 15px; }
.congrats-emoji {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 8px;
    display: inline-block;
    animation: congratsEmojiBounce 1.5s ease-in-out infinite;
    filter: drop-shadow(0 8px 20px rgba(255, 215, 0, 0.5));
}
@keyframes congratsEmojiBounce {
    0%, 100% { transform: translateY(0) rotate(-5deg) scale(1); }
    50% { transform: translateY(-12px) rotate(5deg) scale(1.1); }
}
.congrats-title {
    font-family: 'Dancing Script', cursive;
    font-size: 42px;
    font-weight: 700;
    color: #C4515C;
    margin: 0 0 5px 0;
    text-shadow: 2px 2px 6px rgba(255,255,255,0.9), 0 0 30px rgba(255,215,0,0.6);
    line-height: 1.1;
}
.congrats-subtitle {
    font-family: 'Signika', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #a13a44;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 15px 0;
}
.congrats-slider-frame {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3),
                inset 0 0 0 3px rgba(255, 255, 255, 0.8),
                0 0 0 6px rgba(255, 200, 180, 0.45);
    background: #1a1a1a;
    margin: 0 0 18px 0;
    z-index: 2;
    flex-shrink: 0;
}
.congrats-slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}
.congrats-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.congrats-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 7s ease;
}
.congrats-slide.active img { transform: scale(1.1); }
.congrats-slide-caption {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 35px 18px 14px 18px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    color: #fff;
    font-family: 'Dancing Script', cursive;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.congrats-slide.active .congrats-slide-caption { opacity: 1; transform: translateY(0); }
.congrats-slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 20;
    padding: 4px 10px;
    background: rgba(0,0,0,0.35);
    border-radius: 20px;
    backdrop-filter: blur(4px);
    pointer-events: auto;
}
.congrats-slider-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.4s ease;
    cursor: pointer;
}
.congrats-slider-dot.active {
    background: #FFD700;
    width: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}
.congrats-message {
    font-family: 'Signika', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #7a3a42;
    line-height: 1.65;
    margin: 0 auto 18px auto;
    max-width: 440px;
    padding: 0 8px;
    position: relative;
    z-index: 2;
}
.congrats-message strong { color: #D14D39; font-weight: 700; }
.congrats-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 20px 0;
    position: relative;
    z-index: 2;
}
.congrats-divider span {
    font-size: 18px;
    animation: dividerPulse 2s ease-in-out infinite;
}
.congrats-divider span:nth-child(1) { animation-delay: 0s; }
.congrats-divider span:nth-child(2) { animation-delay: 0.3s; }
.congrats-divider span:nth-child(3) { animation-delay: 0.6s; }
.congrats-divider span:nth-child(4) { animation-delay: 0.9s; }
.congrats-divider span:nth-child(5) { animation-delay: 1.2s; }
@keyframes dividerPulse { 0%, 100% { transform: scale(1); opacity: 0.7; } 50% { transform: scale(1.3); opacity: 1; } }
.congrats-btn {
    display: inline-block;
    padding: 13px 36px;
    border: none;
    border-radius: 50px;
    font-family: 'Signika', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    background: linear-gradient(145deg, #FF6B8A, #D14D39);
    box-shadow: 0 10px 25px rgba(209, 77, 57, 0.45),
                0 0 0 3px rgba(255, 255, 255, 0.6),
                inset 0 2px 0 rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: sticky;
    bottom: 0;
    margin-top: auto;
    align-self: center;
    z-index: 5;
    overflow: hidden;
}
.congrats-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}
.congrats-btn:hover::after { left: 100%; }
.congrats-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 35px rgba(209, 77, 57, 0.6),
                0 0 0 3px rgba(255, 255, 255, 0.8),
                inset 0 2px 0 rgba(255,255,255,0.3);
}
.congrats-decoration {
    position: absolute;
    font-size: 22px;
    opacity: 0.7;
    pointer-events: none;
    z-index: 1;
    animation: congratsFloat 3s ease-in-out infinite;
}
@keyframes congratsFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(15deg); }
}
.congrats-decoration.cd1 { top: 20px; left: 25px; animation-delay: 0s; }
.congrats-decoration.cd2 { top: 20px; right: 90px; animation-delay: 0.5s; }
.congrats-decoration.cd3 { bottom: 100px; left: 20px; animation-delay: 1s; }
.congrats-decoration.cd4 { bottom: 100px; right: 20px; animation-delay: 1.5s; }
.congrats-decoration.cd5 { top: 50%; left: 15px; animation-delay: 0.8s; }
.congrats-decoration.cd6 { top: 50%; right: 15px; animation-delay: 1.3s; }

/* ===== DANCING RABBIT ===== */
.rabbit-stage {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9997;
    pointer-events: none;
    width: 180px;
    height: 220px;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.3));
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                bottom 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                left 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                right 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                width 0.8s ease, height 0.8s ease, opacity 0.8s ease;
    opacity: 0;
    visibility: hidden;
    contain: layout paint style;
}
.rabbit-stage.show-rabbit {
    opacity: 1;
    visibility: visible;
    right: 170px;
    left: auto;
    bottom: 430px;
    transform: translateX(0) translateY(0);
    width: 150px;
    height: 185px;
}
.rabbit-stage.dhoom-dance { animation: dhoomRabbit 0.4s ease-in-out infinite; }
@keyframes dhoomRabbit {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    25% { transform: translateY(-30px) rotate(-10deg) scale(1.1); }
    50% { transform: translateY(0) rotate(0deg) scale(1); }
    75% { transform: translateY(-25px) rotate(10deg) scale(1.1); }
}
.rabbit-stage svg { width: 100%; height: 100%; overflow: visible; }
.rabbit-body { transform-origin: 50% 100%; animation: rabbitDance 1.2s ease-in-out infinite; will-change: transform; }
@keyframes rabbitDance {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    25% { transform: translateY(-18px) rotate(-6deg) scale(1.03); }
    50% { transform: translateY(0) rotate(0deg) scale(0.98); }
    75% { transform: translateY(-12px) rotate(6deg) scale(1.03); }
}
.rabbit-ear-left { transform-origin: 80% 100%; animation: earLeft 0.8s ease-in-out infinite alternate; }
.rabbit-ear-right { transform-origin: 20% 100%; animation: earRight 0.8s ease-in-out infinite alternate; }
@keyframes earLeft { 0% { transform: rotate(-8deg); } 100% { transform: rotate(12deg); } }
@keyframes earRight { 0% { transform: rotate(8deg); } 100% { transform: rotate(-12deg); } }
.rabbit-arm-left { transform-origin: 100% 20%; animation: armLeft 0.6s ease-in-out infinite alternate; }
.rabbit-arm-right { transform-origin: 0% 20%; animation: armRight 0.6s ease-in-out infinite alternate; }
@keyframes armLeft { 0% { transform: rotate(0deg); } 100% { transform: rotate(-25deg); } }
@keyframes armRight { 0% { transform: rotate(0deg); } 100% { transform: rotate(25deg); } }
.rabbit-foot-left { transform-origin: 50% 0%; animation: footLeft 0.4s ease-in-out infinite alternate; }
.rabbit-foot-right { transform-origin: 50% 0%; animation: footRight 0.4s ease-in-out infinite alternate; }
@keyframes footLeft { 0% { transform: rotate(0deg); } 100% { transform: rotate(-15deg); } }
@keyframes footRight { 0% { transform: rotate(0deg); } 100% { transform: rotate(15deg); } }
.rabbit-blush { animation: blushPulse 2s ease-in-out infinite; }
@keyframes blushPulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 0.9; } }
.rabbit-sparkle { animation: sparkleFloat 2s ease-in-out infinite; }
.rabbit-sparkle:nth-child(2) { animation-delay: 0.5s; }
.rabbit-sparkle:nth-child(3) { animation-delay: 1s; }
.rabbit-sparkle:nth-child(4) { animation-delay: 1.5s; }

/* ===== CINEMATIC SINGLE-LINE MESSAGE ===== */
.line-stage {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    pointer-events: none;
    perspective: 1000px;
}
.line-stage.active { display: flex; }
.line-text {
    font-family: 'Signika', sans-serif;
    font-size: 44px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #C4515C;
    text-shadow: 2px 2px 6px #FFF, 0 0 35px rgba(255,215,0,0.5);
    text-align: center;
    max-width: 90vw;
    padding: 0 20px;
    line-height: 1.4;
    opacity: 0;
    transform: scale(0.8) translateY(30px) rotateX(15deg);
    transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
}
.line-text.show { opacity: 1; transform: scale(1) translateY(0) rotateX(0deg); }
.line-text.hide {
    opacity: 0;
    transform: scale(1.05) translateY(-30px) rotateX(-15deg);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.line-text.strong-line {
    color: #a13a44;
    text-shadow: 2px 2px 6px #FFF, 0 0 45px rgba(255,215,0,0.8);
    font-size: 54px;
}
.line-text.name-line {
    font-family: 'Dancing Script', cursive;
    font-size: 68px;
    color: #D14D39;
    text-transform: none;
    text-shadow: 0 0 40px rgba(255,215,0,0.95), 3px 3px 8px #FFF;
    letter-spacing: 3px;
}
.line-text.emoji-line { font-size: 52px; }

/* ===== MESSAGE HISTORY BOX ===== */
.history-box {
    display: none;
    position: fixed;
    bottom: 130px;
    right: 20px;
    width: 300px;
    max-height: 340px;
    z-index: 9500;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(30px) scale(0.9);
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.history-box.visible { display: block; opacity: 1; transform: translateX(0) scale(1); }
.history-box-inner {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 250, 245, 0.97), rgba(255, 235, 225, 0.95));
    border-radius: 22px;
    padding: 18px 16px 14px 16px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.35),
                0 0 0 2px rgba(255, 200, 180, 0.5),
                inset 0 1px 0 rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 180, 160, 0.4);
    overflow: hidden;
}
.history-box-inner::before {
    content: "";
    position: absolute;
    top: -2px; left: -2px;
    width: 50px; height: 50px;
    background: linear-gradient(135deg, #FFB6C1 0%, #FF8FA3 50%, transparent 50%);
    border-radius: 22px 0 0 0;
    opacity: 0.55;
}
.history-box-inner::after {
    content: "";
    position: absolute;
    bottom: -2px; right: -2px;
    width: 50px; height: 50px;
    background: linear-gradient(315deg, #FFB6C1 0%, #FF8FA3 50%, transparent 50%);
    border-radius: 0 0 22px 0;
    opacity: 0.55;
}
.history-title {
    font-family: 'Dancing Script', cursive;
    font-size: 22px;
    font-weight: 700;
    color: #C4515C;
    text-align: center;
    margin: 0 0 8px 0;
    padding-bottom: 6px;
    border-bottom: 1.5px dashed rgba(196, 81, 92, 0.35);
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
    position: relative;
    z-index: 2;
}
.history-title span { font-size: 16px; display: inline-block; margin: 0 4px; }
.history-list {
    list-style: none;
    margin: 0; padding: 0;
    max-height: 240px;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
    z-index: 2;
}
.history-list::-webkit-scrollbar { width: 5px; }
.history-list::-webkit-scrollbar-track { background: rgba(255, 200, 180, 0.15); border-radius: 10px; }
.history-list::-webkit-scrollbar-thumb { background: rgba(196, 81, 92, 0.45); border-radius: 10px; }
.history-item {
    font-family: 'Signika', sans-serif;
    font-size: 13.5px;
    font-weight: 400;
    color: #7a3a42;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 6px 8px 6px 22px;
    margin-bottom: 3px;
    border-radius: 10px;
    position: relative;
    line-height: 1.35;
    background: rgba(255, 255, 255, 0.45);
    transition: background 0.3s, transform 0.3s;
    animation: historyItemIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.history-item::before {
    content: "🌸";
    position: absolute;
    left: 5px; top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    opacity: 0.8;
}
.history-item.highlight {
    background: linear-gradient(90deg, rgba(255, 220, 200, 0.6), rgba(255, 240, 230, 0.4));
    font-weight: 700;
    color: #a13a44;
}
.history-item.final-item {
    background: linear-gradient(90deg, rgba(255, 200, 180, 0.7), rgba(255, 230, 210, 0.5));
    font-weight: 700;
    color: #D14D39;
    font-family: 'Dancing Script', cursive;
    font-size: 16px;
    text-transform: none;
    letter-spacing: 1px;
    padding-top: 8px;
    padding-bottom: 8px;
}
.history-item.final-item::before { content: "🎂"; font-size: 12px; }
@keyframes historyItemIn {
    from { opacity: 0; transform: translateX(20px) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

/* ===== LOADING ===== */
.loading {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #0a0a0a url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><circle cx="30" cy="30" r="26" fill="none" stroke="%23FFDAB9" stroke-width="3" stroke-dasharray="40 120"><animateTransform attributeName="transform" type="rotate" from="0 30 30" to="360 30 30" dur="1.2s" repeatCount="indefinite"/></circle></svg>') center no-repeat;
    z-index: 99999;
    transition: opacity 0.8s ease;
}
.container { display: none; position: relative; padding-bottom: 140px; }

/* ===== BULBS ===== */
.bulb-holder { height: 80px; display: flex; align-items: center; justify-content: center; }
.bulb {
    width: 60px; height: 60px; margin: auto;
    background-repeat: no-repeat; background-position: center; background-size: contain;
    transition: opacity 0.8s, transform 0.8s;
    filter: drop-shadow(0 0 8px rgba(255, 220, 150, 0.4));
}
#bulb_yellow { background-image: url('../images/bulb_off.png'); }
#bulb_red    { background-image: url('../images/bulb_off.png'); }
#bulb_blue   { background-image: url('../images/bulb_off.png'); }
#bulb_green  { background-image: url('../images/bulb_off.png'); }
#bulb_pink   { background-image: url('../images/bulb_off.png'); }
#bulb_orange { background-image: url('../images/bulb_off.png'); }

.bulb-glow-yellow { background-image: url('../images/bulb_yellow.png') !important; animation: bulbGlow 5s forwards; }
.bulb-glow-red    { background-image: url('../images/bulb_red.png') !important;    animation: bulbGlow 5s forwards; }
.bulb-glow-blue   { background-image: url('../images/bulb_blue.png') !important;   animation: bulbGlow 5s forwards; }
.bulb-glow-green  { background-image: url('../images/bulb_green.png') !important;  animation: bulbGlow 5s forwards; }
.bulb-glow-pink   { background-image: url('../images/bulb_pink.png') !important;   animation: bulbGlow 5s forwards; }
.bulb-glow-orange { background-image: url('../images/bulb_orange.png') !important; animation: bulbGlow 5s forwards; }

.bulb-glow-yellow-after { background-image: url('../images/bulb_yellow.png') !important; animation: bulbPulse 1.2s infinite; }
.bulb-glow-red-after    { background-image: url('../images/bulb_red.png') !important;    animation: bulbPulse 1.4s infinite; }
.bulb-glow-blue-after   { background-image: url('../images/bulb_blue.png') !important;   animation: bulbPulse 1.6s infinite; }
.bulb-glow-green-after  { background-image: url('../images/bulb_green.png') !important;  animation: bulbPulse 1.8s infinite; }
.bulb-glow-pink-after   { background-image: url('../images/bulb_pink.png') !important;   animation: bulbPulse 2s infinite; }
.bulb-glow-orange-after { background-image: url('../images/bulb_orange.png') !important; animation: bulbPulse 2.2s infinite; }

@keyframes bulbGlow {
    0% { opacity: 0; transform: scale(0.7); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes bulbPulse {
    0% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
    100% { opacity: 0.6; transform: scale(1); }
}

/* ===== BANNER ===== */
.bannar { max-width: 100%; transform: translate(0, -600px); transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1); }
.bannar-come { animation: bannarCome 6s forwards; }
@keyframes bannarCome {
    0% { transform: translate(0, -1200px); }
    33% { transform: translate(0, 0) rotate(12deg); }
    66% { transform: translate(0, 100px) rotate(-12deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* ===== BALLOONS ===== */
.balloons {
    position: fixed; bottom: -220px; opacity: 0.9; z-index: 99;
    width: 110px; height: 200px;
    background-repeat: no-repeat; background-position: center; background-size: contain;
    transition: opacity 0.6s, transform 0.6s;
    will-change: transform, bottom, left;
}
.balloons h2 {
    text-transform: uppercase; font-family: 'Signika', sans-serif;
    font-size: 54px; font-weight: 700; color: #fff;
    text-shadow: 4px 4px 0 rgba(0,0,0,0.25);
    display: none; margin: 0; line-height: 200px; text-align: center;
}
#b1, #b11 { background-image: url('../images/balloon_yellow.png'); }
#b2, #b22 { background-image: url('../images/balloon_blue.png'); }
#b3, #b33 { background-image: url('../images/balloon_red.png'); }
#b4, #b44 { background-image: url('../images/balloon_green.png'); }
#b5, #b55 { background-image: url('../images/balloon_purple.png'); }
#b6, #b66 { background-image: url('../images/balloon_lightgreen.png'); }
#b7, #b77 { background-image: url('../images/balloon_teal.png'); }

.balloons-rotate-behaviour-one { animation: rotateOne 12s ease-in-out infinite; }
.balloons-rotate-behaviour-two { animation: rotateTwo 12s ease-in-out infinite; }
@keyframes rotateOne { 0%, 100% { transform: rotate(25deg); } 50% { transform: rotate(-25deg); } }
@keyframes rotateTwo { 0%, 100% { transform: rotate(-20deg); } 50% { transform: rotate(20deg); } }
.balloon-border { position: fixed; top: 100%; opacity: 0.6; z-index: 9999; transition: top 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* ===== CAKE ===== */
.cake-cover { margin-top: 60px; }
.cake {
    position: relative;
    display: none;
    left: 50%;
    margin-left: -160px;
    width: 320px; height: 320px;
    z-index: 20;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.8s ease;
}
.cake.show { display: block; animation: cakeAppear 1.2s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes cakeAppear {
    from { opacity: 0; transform: scale(0.4) rotateY(30deg) translateY(40px); }
    to { opacity: 1; transform: scale(1) rotateY(0deg) translateY(0); }
}
.cake.hide-cake { opacity: 0; transform: scale(0.5) rotateY(-25deg) translateY(30px); pointer-events: none; }
.cake:after {
    background: rgba(255,255,255,1);
    border-radius: 320px;
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 320px; height: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}
.velas {
    background: linear-gradient(135deg, #fff, #ccc);
    border-radius: 100%;
    position: absolute;
    top: 50%; left: 50%;
    margin-left: -8px; margin-top: -28px;
    width: 16px; height: 56px;
    z-index: 5;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.35), inset -2px -2px 5px rgba(0,0,0,0.15);
    transform-style: preserve-3d;
}
.velas:after, .velas:before { background: rgba(255,0,0,0.45); content: ""; position: absolute; width: 100%; height: 7px; }
.velas:after { top: 25%; left: 0; }
.velas:before { top: 45%; left: 0; }
.fuego {
    display: none;
    border-radius: 100%;
    box-shadow: 0 0 50px 15px rgba(248,233,209,0.35);
    position: absolute;
    top: -14px; left: 50%;
    margin-left: -12px;
    width: 24px; height: 44px;
    background: rgba(254,248,97,0.6);
    filter: blur(1.5px);
    will-change: transform;
}
.velas.lit .fuego { display: block; }
.fuego:nth-child(1) { animation: fuego 2.2s infinite; }
.fuego:nth-child(2) { animation: fuego 1.7s infinite; }
.fuego:nth-child(3) { animation: fuego 1.2s infinite; }
.fuego:nth-child(4) { animation: fuego 0.7s infinite; }
.fuego:nth-child(5) { animation: fuego 0.3s infinite; }
@keyframes fuego {
    0% { background: rgba(254,248,97,0.6); transform: translateY(0) scale(1); }
    50% { background: rgba(255,80,0,0.15); transform: translateY(-80px) scale(0); }
    100% { background: rgba(254,248,97,0.6); transform: translateY(0) scale(1); }
}
.cobertura {
    background: linear-gradient(145deg, #f5f0ec, #d9d2cc);
    border-radius: 160px;
    position: absolute;
    top: 60%; left: 50%;
    margin-left: -90px; margin-top: -18px;
    width: 180px; height: 42px;
    z-index: 10;
    box-shadow: 6px 6px 20px rgba(0,0,0,0.25), inset -4px -4px 10px rgba(0,0,0,0.12);
    transform: rotateX(6deg);
}
.cobertura:after, .cobertura:before {
    background: rgba(240,235,230,1);
    border-radius: 320px;
    content: "";
    position: absolute;
    width: 18px; height: 34px;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.25);
}
.cobertura:after { top: 22px; right: 46px; }
.cobertura:before { top: 34px; right: 30px; }
.bizcocho {
    background: linear-gradient(145deg, #8a4a32, #5c2e1e);
    position: absolute;
    bottom: 0; left: 50%;
    margin-left: -82px;
    width: 164px; height: 110px;
    box-shadow: 10px 10px 25px rgba(0,0,0,0.45), inset -6px -6px 12px rgba(0,0,0,0.35);
    transform: rotateX(6deg) rotateY(-3deg);
}
.bizcocho:after, .bizcocho:before {
    background: rgba(240,235,230,0.65);
    content: "";
    position: absolute;
    width: 100%; height: 16px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.25);
}
.bizcocho:after { top: 30%; left: 0; }
.bizcocho:before { top: 60%; left: 0; }

/* ===== HUG & KISS ===== */
.hug-kiss-container {
    display: none;
    position: relative;
    width: 100%;
    max-width: 650px;
    margin: 30px auto 50px auto;
    height: 200px;
    perspective: 1200px;
}
.hug-kiss-container.show { display: block; animation: hugKissAppear 1.2s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes hugKissAppear {
    from { opacity: 0; transform: scale(0.6) rotateY(20deg) translateY(30px); }
    to { opacity: 1; transform: scale(1) rotateY(0deg) translateY(0); }
}
.hug-kiss-container svg {
    position: absolute;
    width: 100%; height: 100%;
    overflow: visible;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.35));
}

/* ===== REDESIGNED BUTTONS (no small balloons) ===== */
.navbar-fixed-bottom {
    background: transparent;
    border: none;
    padding: 18px 0;
    z-index: 500;
    pointer-events: none;
}
.navbar-fixed-bottom .row > div {
    pointer-events: auto;
}
.btn-bubble-wrap {
    position: relative;
    display: inline-block;
    margin: 8px 8px;
}
/* Old bubble/balloon elements hidden — cleaner button look */
.btn-bubble-wrap .bubble,
.btn-bubble-wrap .btn-balloon {
    display: none !important;
}
.btn-primary {
    border: none;
    padding: 14px 32px;
    text-transform: uppercase;
    font-family: 'Signika', sans-serif;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(145deg, #5a7fc7, #3a5a9a);
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3),
                0 0 0 2px rgba(255,255,255,0.2) inset,
                0 0 30px rgba(90, 127, 199, 0.4);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 14px;
    letter-spacing: 1.2px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    backdrop-filter: blur(4px);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    min-width: 200px;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.7s ease;
}
.btn-primary:hover::before {
    left: 100%;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(145deg, #6b8fd7, #4a6aaa);
    color: #fff;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.35),
                0 0 0 2px rgba(255,255,255,0.4) inset,
                0 0 45px rgba(107, 143, 215, 0.6);
}
#play, #bannar_coming, #balloons_flying, #cake_fadein,
#light_candle, #wish_message, #story, #dhoom_btn {
    display: none;
}

/* ===== PERFORMANCE OVERRIDES ===== */
/* Promote animated elements to their own GPU layer */
.butterfly,
.rabbit-body,
.fuego {
    will-change: transform;
}

/* Reduce heavy box-shadows on mobile */
@media (max-width: 767px) {
    .ap-progress-fill { box-shadow: none; }
    .btn-primary      { box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
    .bulb             { filter: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .audio-player-box { width: 280px; top: 12px; left: 12px; padding: 12px; }
    .history-box { width: 260px; bottom: 120px; right: 12px; max-height: 300px; }
    .rabbit-stage.show-rabbit { right: 142px; bottom: 380px; width: 120px; height: 148px; }
    .congrats-popup { padding: 32px 22px 25px 22px; max-width: 560px; }
    .congrats-title { font-size: 36px; }
    .congrats-emoji { font-size: 48px; }
    .congrats-slider-frame { height: 210px; }
}
@media (max-width: 767px) {
    .audio-player-box { width: 240px; top: 8px; left: 8px; padding: 10px; border-radius: 16px; }
    .ap-title { font-size: 16px; }
    .ap-disc { width: 36px; height: 36px; }
    .ap-song-title { font-size: 11.5px; }
    .ap-song-sub { font-size: 9.5px; }
    .ap-btn { width: 32px; height: 32px; font-size: 14px; }
    .ap-btn-main { width: 42px; height: 42px; font-size: 17px; }
    .ap-track { font-size: 11px; padding: 5px 6px; }
    .ap-playlist { max-height: 110px; }
    .bulb { width: 44px; height: 44px; }
    .bulb-holder { height: 56px; }
    .btn-primary { padding: 12px 24px; font-size: 12px; min-width: 160px; }
    .balloons { width: 80px; height: 146px; }
    .balloons h2 { font-size: 36px; line-height: 146px; }
    .cake { transform: scale(0.8); margin-left: -160px; }
    .hug-kiss-container { height: 150px; }
    .butterfly { width: 26px; height: 26px; }
    .line-text { font-size: 30px; }
    .line-text.strong-line { font-size: 36px; }
    .line-text.name-line { font-size: 46px; }
    .dhoom-text { font-size: 80px; letter-spacing: 6px; }
    .history-box { width: 220px; bottom: 110px; right: 8px; max-height: 260px; }
    .rabbit-stage.show-rabbit { right: 118px; bottom: 332px; width: 100px; height: 123px; }
    .congrats-popup { padding: 28px 18px 22px 18px; border-radius: 26px; max-width: 94vw; }
    .congrats-title { font-size: 30px; }
    .congrats-message { font-size: 14px; }
    .congrats-emoji { font-size: 42px; }
    .congrats-btn { padding: 11px 28px; font-size: 13px; }
    .congrats-slider-frame { height: 180px; }
}
@media (max-width: 480px) {
    .audio-player-box { width: 200px; top: 6px; left: 6px; padding: 8px; border-radius: 14px; }
    .ap-header { margin-bottom: 6px; }
    .ap-title { font-size: 14px; }
    .ap-close { width: 22px; height: 22px; font-size: 12px; }
    .ap-info { padding: 6px 8px; gap: 8px; margin-bottom: 8px; }
    .ap-disc { width: 30px; height: 30px; }
    .ap-disc::after { width: 12px; height: 12px; }
    .ap-song-title { font-size: 10px; }
    .ap-song-sub { font-size: 8.5px; }
    .ap-progress-wrap { margin-bottom: 8px; gap: 5px; }
    .ap-time { font-size: 9px; min-width: 28px; }
    .ap-controls { gap: 8px; margin-bottom: 8px; }
    .ap-btn { width: 28px; height: 28px; font-size: 12px; }
    .ap-btn-main { width: 36px; height: 36px; font-size: 14px; }
    .ap-track { font-size: 10px; padding: 4px 5px; }
    .ap-track-num { width: 15px; height: 15px; font-size: 9px; }
    .ap-playlist { max-height: 90px; padding: 4px; }
    .cake { transform: scale(0.65); margin-left: -160px; }
    .hug-kiss-container { height: 110px; }
    .butterfly { width: 22px; height: 22px; }
    .line-text { font-size: 24px; padding: 0 15px; }
    .line-text.strong-line { font-size: 28px; }
    .line-text.name-line { font-size: 38px; }
    .dhoom-text { font-size: 52px; letter-spacing: 4px; }
    .history-box { width: 180px; bottom: 95px; right: 5px; max-height: 220px; }
    .rabbit-stage.show-rabbit { right: 97px; bottom: 282px; width: 80px; height: 98px; }
    .congrats-popup { padding: 24px 14px 20px 14px; border-radius: 22px; max-width: 96vw; }
    .congrats-title { font-size: 26px; }
    .congrats-message { font-size: 12.5px; }
    .congrats-emoji { font-size: 36px; }
    .congrats-btn { padding: 10px 22px; font-size: 11px; }
    .congrats-slider-frame { height: 130px; }
    .congrats-decoration { font-size: 16px; opacity: 0.5; }
    .btn-primary { padding: 10px 18px; font-size: 11px; min-width: 140px; }
}