* {
    font-family: "Instrument Serif", serif;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, #ffd1e9, #ffe9f6, #ffdff0);
    background-size: 300% 300%;
    margin: 0;
    overflow: hidden;
    animation: bgShift 10s ease-in-out infinite;
}

.instrument-serif-regular {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-style: normal;
}

.instrument-serif-regular-italic {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-style: italic;
}

body::before,
body::after {
    content: '';
    position: fixed;
    width: 280px;
    height: 280px;
    background: rgba(255, 105, 180, 0.2);
    z-index: 0;
    filter: blur(1px);
    animation: floatBlob 8s ease-in-out infinite;
}

body::before {
    top: -70px;
    left: -70px;
}

body::after {
    right: -80px;
    bottom: -80px;
    animation-delay: -4s;
}

h1 {
    color: #222;
    font-size: 2.3rem;
    margin-bottom: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: titlePop 0.8s ease-out, titleFloat 2.2s ease-in-out infinite;
}

.buttons {
    display: flex;
    gap: 2rem;
    position: relative;
    width: 320px;
    height: 180px;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

button {
    width: 90px;
    height: 90px;
    font-size: 1.1rem;
    border: none;
    border-radius: 0.3rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
    font-weight: 600;
    box-shadow: 0 2px 8px #f8b6d6;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: buttonBob 2.4s ease-in-out infinite;
}

.yes {
    background: #ff69b4;
    color: #fff;
    border-radius: 0.3rem;
}
.yes:hover {
    background: #e754a6;
    transform: scale(1.08) translateY(-2px);
}

.no {
    background: #fff0fa;
    color: #ff69b4;
    border: 2px solid #ff69b4;
    position: absolute;
    border-radius: 0.3rem;
    animation-delay: -1.2s;
}

@media (max-width: 600px) {
    .no {
        display: none !important;
    }
    .buttons {
        width: 100%;
        justify-content: center;
    }
}

.balloons-container {
    pointer-events: none;
    position: fixed;
    left: 0; top: 0; width: 100vw; height: 100vh;
    z-index: 9999;
}

.balloon {
    position: fixed;
    bottom: -100px;
    border-radius: 0.3rem;
    opacity: 0.85;
    z-index: 9999;
    transition: transform 6s linear, opacity 1s;
    box-shadow: 0 8px 20px #f8b6d6;
}

.sparkle {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 0.2rem;
    z-index: 10000;
    pointer-events: none;
    animation: sparklePop 700ms ease-out forwards;
}

.video-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20000;
}

.video-overlay.show {
    display: flex;
}

.video-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 0, 8, 0.72);
    backdrop-filter: blur(3px);
}

.video-card {
    position: relative;
    z-index: 1;
    width: min(90vw, 820px);
    background: #fff7fc;
    border: 2px solid #ff8ac7;
    border-radius: 0.4rem;
    box-shadow: 0 20px 45px rgba(232, 84, 166, 0.45);
    padding: 0.6rem;
    animation: titlePop 0.25s ease-out;
}

.video-love-text {
    text-align: center;
    font-size: clamp(1.3rem, 3vw, 2rem);
    color: #e754a6;
    margin: 0.2rem 0 0.6rem;
    font-weight: 400;
    letter-spacing: 0.4px;
}

#valentineVideo {
    width: 100%;
    max-height: 78vh;
    display: block;
    border-radius: 0.2rem;
    background: #000;
}

.video-close {
    position: absolute;
    top: -0.9rem;
    right: -0.9rem;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 0.2rem;
    background: #ff69b4;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 15px rgba(231, 84, 166, 0.5);
}

.video-close:hover {
    background: #e754a6;
}

body.celebrate h1 {
    animation: titlePop 0.5s ease-out, titleFloat 1.4s ease-in-out infinite;
}

@keyframes bgShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(18px, -18px) rotate(6deg); }
}

@keyframes titlePop {
    0% { transform: scale(0.88); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

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

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

@keyframes sparklePop {
    0% {
        transform: translate(0, 0) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(var(--dx), var(--dy)) scale(0.2);
        opacity: 0;
    }
}
