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

body {
    background-color: #FFE4E8;
    font-family: 'Nunito', sans-serif;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-image:
        radial-gradient(circle at 15% 85%, #ffb3c1 0%, transparent 40%),
        radial-gradient(circle at 85% 15%, #d8b4fe 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, #fff0f3 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, #c4b5fd 0%, transparent 35%);
}

/* Floating hearts background */
.hearts-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.hearts-bg::before,
.hearts-bg::after {
    content: '💕 💗 💖 💜 💓';
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.15;
    animation: floatHearts 12s linear infinite;
    white-space: nowrap;
    top: 100%;
    left: 10%;
}

.hearts-bg::after {
    animation-delay: 6s;
    left: 60%;
    content: '💜 💕 💓 💗 💜';
}

@keyframes floatHearts {
    from { transform: translateY(0); opacity: 0.15; }
    to { transform: translateY(-110vh); opacity: 0; }
}

.container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
}

h1 {
    font-size: 2.4rem;
    color: #d63384;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px rgba(147, 51, 234, 0.25);
    animation: wiggle 2s ease-in-out infinite;
    background: linear-gradient(135deg, #d63384, #9333ea, #d63384);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: wiggle 2s ease-in-out infinite, shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-1deg); }
    50% { transform: rotate(1deg); }
}

.gif-container {
    margin: 20px auto;
    display: flex;
    justify-content: center;
}

#cat-gif {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.15));
    transition: opacity 0.3s ease;
}

.buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

#yes-btn {
    background: linear-gradient(135deg, #9333ea, #d63384);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.6rem;
    font-weight: 900;
    font-family: 'Nunito', sans-serif;
    padding: 18px 45px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.4);
    letter-spacing: 1px;
}

#yes-btn:hover {
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 10px 28px rgba(147, 51, 234, 0.55);
}

#yes-btn:active {
    transform: scale(0.98);
}

#no-btn {
    background: linear-gradient(135deg, #e74c3c, #b91c5c);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    padding: 12px 28px;
    cursor: pointer;
    transition: background 0.2s, left 0.25s ease, top 0.25s ease;
    box-shadow: 0 4px 14px rgba(185, 28, 92, 0.4);
}

#no-btn:hover {
    background: linear-gradient(135deg, #b91c5c, #7c3aed);
}


#tease-toast {
    margin-top: 14px;
    font-size: 1rem;
    color: #d63384;
    font-weight: 700;
    font-style: italic;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    min-height: 1.5rem;
}

#tease-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Music toggle button */
#music-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid rgba(147, 51, 234, 0.15);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.12);
    transition: transform 0.2s;
    z-index: 100;
}

#music-toggle:hover {
    transform: scale(1.1);
}

/* Yes page specific */
.yes-container h1.yes-title {
    font-size: 2.8rem;
    animation: bounceTitle 0.6s ease infinite alternate;
}

@keyframes bounceTitle {
    from { transform: translateY(0) rotate(-1deg); }
    to { transform: translateY(-12px) rotate(1deg); }
}

.yes-message {
    font-size: 1.4rem;
    color: #e91e8c;
    font-weight: 700;
    margin-top: 24px;
    animation: fadeIn 1s ease 0.5s both;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.yes-container #cat-gif {
    width: 260px;
    height: 260px;
}

/* Screen shake */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

body.shake {
    animation: shake 0.4s ease-in-out;
}

/* Cursor heart trail */
.cursor-heart {
    position: fixed;
    pointer-events: none;
    z-index: 999;
    font-size: 1.2rem;
    animation: cursorHeartFade 0.8s ease-out forwards;
}

@keyframes cursorHeartFade {
    0% { opacity: 1; transform: scale(1) translateY(0); }
    100% { opacity: 0; transform: scale(0.3) translateY(-30px); }
}

/* Dynamic floating hearts */
.floating-heart {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    animation: floatUp linear forwards;
}

@keyframes floatUp {
    0% { opacity: 0.6; transform: translateY(0) rotate(0deg) scale(1); }
    50% { opacity: 0.4; }
    100% { opacity: 0; transform: translateY(-110vh) rotate(360deg) scale(0.5); }
}

/* Valentine countdown */
.countdown {
    margin-top: 16px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #9333ea;
    opacity: 0.85;
}

.countdown span {
    background: linear-gradient(135deg, #d63384, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1rem;
}

/* Tease overlay */
.tease-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInOverlay 0.4s ease;
}

.tease-overlay.hidden {
    display: none;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tease-content {
    background: linear-gradient(135deg, #fff0f3, #ede9fe);
    border-radius: 24px;
    padding: 32px 28px;
    text-align: center;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(147, 51, 234, 0.3);
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
    from { transform: scale(0.5) translateY(30px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.tease-content h2 {
    font-size: 1.5rem;
    color: #9333ea;
    margin-bottom: 16px;
    -webkit-text-fill-color: #9333ea;
}

.tease-content img {
    width: 100%;
    max-width: 280px;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.tease-content p {
    color: #d63384;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 20px;
    -webkit-text-fill-color: #d63384;
}

#tease-continue {
    background: linear-gradient(135deg, #9333ea, #d63384);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
    padding: 14px 36px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.4);
}

#tease-continue:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 28px rgba(147, 51, 234, 0.55);
}

/* ===== Mobile responsive ===== */
@media (max-width: 480px) {
    .container {
        padding: 24px 16px;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 14px;
    }

    #cat-gif {
        width: 150px;
        height: 150px;
    }

    .buttons {
        gap: 12px;
        margin-top: 20px;
    }

    #yes-btn {
        font-size: 1.2rem;
        padding: 14px 32px;
        max-width: 90vw;
    }

    #no-btn {
        font-size: 0.9rem;
        padding: 10px 22px;
    }

    #tease-toast {
        font-size: 0.85rem;
        padding: 0 10px;
    }

    .countdown {
        font-size: 0.8rem;
    }

    .countdown span {
        font-size: 0.9rem;
    }

    /* Yes page */
    .yes-container h1.yes-title {
        font-size: 1.8rem;
    }

    .yes-message {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    .yes-container #cat-gif {
        width: 200px;
        height: 200px;
    }

    /* Tease overlay */
    .tease-content {
        padding: 24px 20px;
        max-width: 320px;
    }

    .tease-content h2 {
        font-size: 1.2rem;
    }

    .tease-content img {
        max-width: 220px;
    }

    .tease-content p {
        font-size: 0.9rem;
    }

    #tease-continue {
        font-size: 1rem;
        padding: 12px 28px;
    }

    #music-toggle {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        bottom: 14px;
        right: 14px;
    }
}

@media (max-width: 360px) {
    h1 {
        font-size: 1.25rem;
    }

    #cat-gif {
        width: 120px;
        height: 120px;
    }

    #yes-btn {
        font-size: 1rem;
        padding: 12px 24px;
    }

    .yes-container h1.yes-title {
        font-size: 1.4rem;
    }
}
