/* ===== CSS Variables & Reset ===== */
:root {
    --pink-light: #FFB6C1;
    --pink-mid: #FF69B4;
    --pink-deep: #FF1493;
    --rose: #E91E63;
    --red-love: #E53935;
    --purple-soft: #CE93D8;
    --purple-deep: #9C27B0;
    --gold: #FFD700;
    --cream: #FFF5F5;
    --white: #FFFFFF;
    --bg-gradient: linear-gradient(135deg, #FFE4EC 0%, #FFB6C1 25%, #FF69B4 50%, #E91E63 75%, #CE93D8 100%);
    --text-dark: #4A0E2E;
    --shadow-pink: 0 8px 32px rgba(233, 30, 99, 0.3);
    --shadow-glow: 0 0 30px rgba(255, 105, 180, 0.5);
}

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

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

body {
    background: var(--bg-gradient);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-dark);
    position: relative;
}

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

    25% {
        background-position: 100% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    75% {
        background-position: 0% 100%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ===== Sparkle Canvas ===== */
#sparkleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ===== Floating Hearts ===== */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    bottom: -60px;
    animation: floatUp linear infinite;
    opacity: 0.6;
    filter: drop-shadow(0 0 6px rgba(255, 105, 180, 0.4));
    user-select: none;
    pointer-events: none;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 0.7;
    }

    50% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-110vh) rotate(360deg) scale(0.3);
        opacity: 0;
    }
}

/* ===== Main Wrapper ===== */
.main-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 600px;
    padding: 20px;
    text-align: center;
}

/* ===== INTRO SCREEN ===== */
.intro-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Envelope */
.envelope {
    width: 200px;
    height: 140px;
    position: relative;
    cursor: pointer;
    animation: envelopeBounce 2s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.envelope:hover {
    transform: scale(1.1);
}

@keyframes envelopeBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.envelope-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #fff5f5, #ffe4ec);
    border-radius: 8px;
    border: 3px solid var(--pink-mid);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.2);
    position: relative;
    z-index: 2;
}

.envelope-flap {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 75px;
    background: linear-gradient(145deg, #FFB6C1, #FF69B4);
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    border: 3px solid var(--pink-mid);
    z-index: 3;
    transform-origin: top center;
    transition: transform 0.6s ease;
}

.envelope.opened .envelope-flap {
    transform: rotateX(180deg);
}

.letter {
    font-size: 50px;
    animation: letterPulse 1.5s ease-in-out infinite;
}

@keyframes letterPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.intro-text {
    font-family: 'Dancing Script', cursive;
    font-size: 1.6rem;
    color: var(--white);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
    }

    to {
        text-shadow: 2px 2px 20px rgba(255, 105, 180, 0.8);
    }
}

.open-btn {
    padding: 16px 48px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--pink-deep), var(--rose));
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: var(--shadow-pink);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.open-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    50% {
        transform: translateX(100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.open-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(233, 30, 99, 0.5);
}

/* ===== QUESTION SCREEN ===== */
.question-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: fadeInUp 1s ease;
}

/* Bear Character */
.bear-container {
    margin-bottom: 8px;
}

.bear {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.bear-face {
    position: relative;
    width: 120px;
    height: 120px;
}

.bear-ear {
    position: absolute;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #C68B59, #A0704A);
    border-radius: 50%;
    top: -10px;
    border: 3px solid #8B5E3C;
}

.bear-ear.left {
    left: 5px;
}

.bear-ear.right {
    right: 5px;
}

.bear-ear::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: var(--pink-light);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.bear-head {
    position: absolute;
    width: 120px;
    height: 110px;
    background: linear-gradient(180deg, #D4956B, #C68B59);
    border-radius: 50% 50% 45% 45%;
    top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 3px solid #A0704A;
}

.bear-eyes {
    display: flex;
    gap: 30px;
    margin-top: -5px;
}

.bear-eye {
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #5D3A1A;
    position: relative;
    overflow: hidden;
}

.bear-eye .pupil {
    width: 10px;
    height: 10px;
    background: #2C1810;
    border-radius: 50%;
    transition: all 0.1s ease;
    position: relative;
}

.bear-eye .pupil::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    top: 1px;
    right: 1px;
}

.bear-nose {
    width: 16px;
    height: 12px;
    background: #3D2415;
    border-radius: 50%;
    margin-top: 4px;
}

.bear-mouth {
    font-size: 20px;
    margin-top: -2px;
    transition: all 0.3s ease;
    color: #3D2415;
}

.bear-body {
    width: 90px;
    height: 60px;
    background: linear-gradient(180deg, #C68B59, #B07A4A);
    border-radius: 45% 45% 50% 50%;
    margin-top: -15px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid #A0704A;
    border-top: none;
    position: relative;
}

.bear-heart {
    font-size: 24px;
    animation: heartBeat 1s ease-in-out infinite;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.3);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.2);
    }

    60% {
        transform: scale(1);
    }
}

/* Bear sad states */
.bear.sad-1 .bear-mouth {
    font-size: 18px;
}

.bear.sad-2 .bear-mouth {
    font-size: 16px;
}

.bear.sad-3 .bear-mouth {
    font-size: 14px;
}

.bear.sad-2 {
    animation: bearShake 0.8s ease-in-out infinite;
}

@keyframes bearShake {

    0%,
    100% {
        transform: rotate(0);
    }

    25% {
        transform: rotate(-3deg);
    }

    75% {
        transform: rotate(3deg);
    }
}

.bear.sad-3 {
    animation: bearSob 0.5s ease-in-out infinite;
}

@keyframes bearSob {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    25% {
        transform: translateY(-3px) rotate(-2deg);
    }

    50% {
        transform: translateY(0) rotate(0);
    }

    75% {
        transform: translateY(-3px) rotate(2deg);
    }
}

.bear.crying {
    animation: bearCry 0.4s ease-in-out infinite;
}

@keyframes bearCry {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    20% {
        transform: translateY(-5px) rotate(-4deg);
    }

    40% {
        transform: translateY(2px) rotate(2deg);
    }

    60% {
        transform: translateY(-3px) rotate(-2deg);
    }

    80% {
        transform: translateY(1px) rotate(3deg);
    }
}

.bear.crying .bear-head::before,
.bear.crying .bear-head::after {
    content: '💧';
    position: absolute;
    font-size: 14px;
    animation: tearDrop 0.8s ease-in infinite;
}

.bear.crying .bear-head::before {
    left: 20px;
    top: 52px;
}

.bear.crying .bear-head::after {
    right: 20px;
    top: 52px;
    animation-delay: 0.4s;
}

/* Swollen / red eyes when very sad */
.bear.sad-3 .bear-eye,
.bear.crying .bear-eye {
    background: #FFE0E0;
    border-color: #CC4444;
}

.bear.devastated {
    animation: bearDevastated 0.3s ease-in-out infinite;
    filter: saturate(0.7);
}

@keyframes bearDevastated {

    0%,
    100% {
        transform: translateY(0) rotate(0) scale(1);
    }

    25% {
        transform: translateY(-4px) rotate(-5deg) scale(0.98);
    }

    50% {
        transform: translateY(2px) rotate(3deg) scale(1.01);
    }

    75% {
        transform: translateY(-3px) rotate(-3deg) scale(0.99);
    }
}

.bear.devastated .bear-head::before,
.bear.devastated .bear-head::after {
    content: '💧';
    position: absolute;
    font-size: 16px;
    animation: tearStream 0.5s ease-in infinite;
}

.bear.devastated .bear-head::before {
    left: 18px;
    top: 50px;
}

.bear.devastated .bear-head::after {
    right: 18px;
    top: 50px;
    animation-delay: 0.25s;
}

.bear.devastated .bear-eye {
    background: #FFD0D0;
    border-color: #BB3333;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.3);
}

@keyframes tearStream {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(40px);
        opacity: 0;
    }
}


/* Question Title */
.question-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
    animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

.question-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    margin-bottom: 5px;
}

/* Guilt Message */
.guilt-message {
    min-height: 32px;
    font-size: 1.1rem;
    color: var(--white);
    font-weight: 600;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: guiltShake 0.5s ease;
}

@keyframes guiltShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Buttons */
.buttons-container {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    position: relative;
    min-height: 80px;
}

.btn-yes,
.btn-no {
    padding: 16px 42px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-yes {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.4);
    z-index: 5;
}

.btn-yes::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--gold), #4CAF50, var(--gold));
    border-radius: 52px;
    z-index: -1;
    animation: borderGlow 2s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes borderGlow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

.btn-yes:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 10px 35px rgba(76, 175, 80, 0.6);
}

.btn-no {
    background: linear-gradient(135deg, #EF5350, #C62828);
    color: white;
    box-shadow: 0 6px 25px rgba(239, 83, 80, 0.3);
    z-index: 5;
    /* starts as relative (side by side), JS switches to fixed when running away */
    position: relative;
    transition: transform 0.8s ease, opacity 1.2s ease, font-size 0.8s ease;
}

.btn-no:hover {
    box-shadow: 0 8px 30px rgba(239, 83, 80, 0.5);
}

/* Screen shake */
.screen-shake {
    animation: screenShake 0.5s ease;
}

@keyframes screenShake {

    0%,
    100% {
        transform: translate(0);
    }

    10% {
        transform: translate(-8px, -5px);
    }

    20% {
        transform: translate(8px, 5px);
    }

    30% {
        transform: translate(-6px, 3px);
    }

    40% {
        transform: translate(6px, -3px);
    }

    50% {
        transform: translate(-4px, 5px);
    }

    60% {
        transform: translate(4px, -5px);
    }

    70% {
        transform: translate(-2px, 3px);
    }

    80% {
        transform: translate(2px, -3px);
    }

    90% {
        transform: translate(-1px, 1px);
    }
}

/* Extra Yes Buttons */
.extra-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
    max-width: 500px;
}

.extra-yes-btn {
    padding: 10px 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transition: all 0.2s ease;
}

.extra-yes-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Random Yes Buttons Container */
.random-yes-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

.random-yes-btn {
    position: absolute;
    padding: 10px 22px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 4px 18px rgba(76, 175, 80, 0.4);
    animation: randomYesPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.random-yes-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.6);
}

@keyframes randomYesPop {
    0% {
        transform: scale(0) rotate(-20deg);
        opacity: 0;
    }

    60% {
        transform: scale(1.2) rotate(5deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

/* Attempt text */
.attempt-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
    font-style: italic;
}

/* ===== CELEBRATION SCREEN ===== */
.celebration-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: celebrationEntry 1s ease;
    min-height: 100vh;
}

@keyframes celebrationEntry {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }

    50% {
        transform: scale(1.1) rotate(3deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.celebration-content {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(233, 30, 99, 0.3);
    max-width: 500px;
    width: 100%;
}

.celebration-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: var(--white);
    text-shadow: 3px 3px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
    animation: celebBounce 1s ease infinite;
    white-space: nowrap;
}

@keyframes celebBounce {

    0%,
    100% {
        transform: scale(1) rotate(0);
    }

    25% {
        transform: scale(1.05) rotate(-2deg);
    }

    50% {
        transform: scale(1.1) rotate(0);
    }

    75% {
        transform: scale(1.05) rotate(2deg);
    }
}

.celebration-heart {
    font-size: 80px;
    animation: heartBeat 0.8s ease-in-out infinite;
    margin: 15px 0;
    filter: drop-shadow(0 0 20px rgba(255, 0, 100, 0.6));
}

/* Kiss GIF */
.kiss-gif-container {
    margin: 15px 0;
    display: flex;
    justify-content: center;
}

.kiss-gif {
    width: 180px;
    height: auto;
    border-radius: 20px;
    filter: drop-shadow(0 8px 25px rgba(233, 30, 99, 0.4));
    animation: gifBounce 2s ease-in-out infinite;
}

@keyframes gifBounce {

    0%,
    100% {
        transform: scale(1) rotate(0);
    }

    25% {
        transform: scale(1.05) rotate(-2deg);
    }

    50% {
        transform: scale(1.08) rotate(0);
    }

    75% {
        transform: scale(1.05) rotate(2deg);
    }
}

.celebration-subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 10px;
}

.celebration-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    line-height: 1.6;
}

.celebration-emojis {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 2rem;
    margin-bottom: 20px;
}

.celebration-emojis span {
    animation: emojiDance 0.6s ease infinite;
    display: inline-block;
}

.celebration-emojis span:nth-child(1) {
    animation-delay: 0s;
}

.celebration-emojis span:nth-child(2) {
    animation-delay: 0.08s;
}

.celebration-emojis span:nth-child(3) {
    animation-delay: 0.16s;
}

.celebration-emojis span:nth-child(4) {
    animation-delay: 0.24s;
}

.celebration-emojis span:nth-child(5) {
    animation-delay: 0.32s;
}

.celebration-emojis span:nth-child(6) {
    animation-delay: 0.40s;
}

.celebration-emojis span:nth-child(7) {
    animation-delay: 0.48s;
}

.celebration-emojis span:nth-child(8) {
    animation-delay: 0.56s;
}

@keyframes emojiDance {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    25% {
        transform: translateY(-12px) rotate(-10deg);
    }

    50% {
        transform: translateY(0) rotate(0);
    }

    75% {
        transform: translateY(-8px) rotate(10deg);
    }
}

.celebration-promise {
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
    color: var(--gold);
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.5;
}

/* Message Me Button */
.message-me-btn {
    margin-top: 20px;
    padding: 14px 36px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--pink-deep), var(--purple-deep));
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(233, 30, 99, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.message-me-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: rotate(45deg);
    animation: btnShine 3s ease-in-out infinite;
}

.message-me-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 35px rgba(233, 30, 99, 0.6);
}

/* ===== Message Popup Modal ===== */
.message-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    animation: overlayFadeIn 0.3s ease;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.message-popup {
    background: linear-gradient(135deg, rgba(255, 228, 236, 0.95), rgba(255, 182, 193, 0.95));
    border-radius: 24px;
    padding: 35px 30px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(233, 30, 99, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.4);
    position: relative;
    animation: popupSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-align: center;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--rose);
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s ease;
}

.popup-close:hover {
    transform: scale(1.2) rotate(90deg);
}

.popup-title {
    font-family: 'Dancing Script', cursive;
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 18px;
}

.popup-textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    border: 2px solid var(--pink-light);
    border-radius: 16px;
    resize: vertical;
    min-height: 100px;
    max-height: 200px;
    outline: none;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-dark);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.popup-textarea::placeholder {
    color: #C48B9F;
}

.popup-textarea:focus {
    border-color: var(--pink-deep);
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.2);
}

.popup-send-btn {
    margin-top: 16px;
    padding: 13px 40px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--pink-deep), var(--rose));
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3);
    transition: all 0.3s ease;
    width: 100%;
}

.popup-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(233, 30, 99, 0.5);
}

.popup-sent-msg {
    margin-top: 14px;
    font-size: 1.1rem;
    color: var(--rose);
    font-weight: 600;
    animation: sentPulse 0.5s ease;
}

@keyframes sentPulse {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    60% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== Confetti Canvas ===== */
#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

/* ===== Utility ===== */
.hidden {
    display: none !important;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .question-title {
        font-size: 2rem;
    }

    .celebration-title {
        font-size: 2.5rem;
    }

    .bear-face {
        width: 90px;
        height: 90px;
    }

    .bear-head {
        width: 90px;
        height: 85px;
    }

    .bear-ear {
        width: 30px;
        height: 30px;
    }

    .bear-body {
        width: 70px;
        height: 50px;
    }

    .btn-yes,
    .btn-no {
        padding: 14px 32px;
        font-size: 1rem;
    }

    .celebration-content {
        padding: 25px;
        margin: 20px;
    }

    .intro-text {
        font-size: 1.3rem;
    }

    .celebration-heart {
        font-size: 60px;
    }
}

@media (max-width: 400px) {
    .question-title {
        font-size: 1.7rem;
    }

    .buttons-container {
        gap: 16px;
    }

    .celebration-title {
        font-size: 2rem;
    }
}