* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a1a;
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
    position: relative;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.scene {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 1;
    position: relative;
}

/* ─── Character ─── */
.character-container {
    position: relative;
    width: 280px;
    height: 280px;
    flex-shrink: 0;
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#character, #character-fill {
    position: absolute;
    top: 0;
    left: 0;
}

#character { z-index: 2; }
#character-fill { z-index: 1; }

.draw-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

/* ─── Heart Container ─── */
.heart-container {
    position: relative;
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease, transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.heart-container.show {
    opacity: 1;
    transform: translateX(0);
}

.mini-heart {
    position: absolute;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 0 3px rgba(255, 77, 109, 0.45));
}

.mini-heart.visible {
    opacity: 1;
    transform: scale(1);
}

.mini-heart svg {
    width: 100%;
    height: 100%;
}

.biu-text { opacity: 0; }
.flying-heart { opacity: 0; }

/* ─── Background particles ─── */
.bg-particle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: float-up linear infinite;
}

@keyframes float-up {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

/* ─── Pulse glow behind heart ─── */
.heart-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 77, 109, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(0.9); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .scene { flex-direction: column; align-items: center; gap: 10px; }
    .character-container { transform: scale(0.7) !important; }
    .heart-container { transform: scale(0.7) !important; }
}

@media (max-width: 480px) {
    .character-container { transform: scale(0.55) !important; }
    .heart-container { transform: scale(0.5) !important; }
}
