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

body {
    min-height: 100vh;
    overflow: hidden;
    font-family: "Chewy", system-ui;
    font-weight: 400;
    font-style: normal;
}

.valentine-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.valentine-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ff91a4 0%, #ffb6c1 50%, #ffc0cb 100%);
    filter: blur(2px);
    z-index: -1;
}

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

.floating-heart {
    position: absolute;
    background: #ff6b8a;
    transform: rotate(45deg);
    animation: floatHeart ease-in-out infinite;
    opacity: 0.7;
}

.floating-heart::before,
.floating-heart::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #ff6b8a;
    border-radius: 50%;
}

.floating-heart::before {
    left: -50%;
}

.floating-heart::after {
    top: -50%;
}

@keyframes floatHeart {
    0%, 100% {
        transform: rotate(45deg) translateY(0) scale(1);
    }
    50% {
        transform: rotate(45deg) translateY(-20px) scale(1.1);
    }
}

/* Valentine Card */
.valentine-card {
    text-align: center;
    z-index: 10;
    padding: clamp(20px, 5vw, 60px);
    max-width: 90vw;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.valentine-image {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 20px;
    margin: 0 auto 20px auto;
    animation: floatImage 3s ease-in-out infinite;
    display: block;
}

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

.title-container {
    position: relative;
    text-align: center;
    display: inline-block;
    margin: 0 auto;
}

.valentine-title {
    font-size: 75px;
    color: #ffffff;
    text-shadow: 
        -1px -1px 0 #ff69b4,
        1px -1px 0 #ff69b4,
        -1px 1px 0 #ff69b4,
        1px 1px 0 #ff69b4,
        2px 2px 4px #ff1493,
        1px 1px 2px rgba(255, 105, 180, 0.8);
    animation: pulseTitle 2s ease-in-out infinite;
    letter-spacing: 2px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
    max-width: fit-content;
    margin: 0 auto 0 auto;
    padding: 0;
}

.korean-text {
    position: absolute;
    bottom: -50px;
    right: -50px;
    font-family: "Hi Melody", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    color: #ff69b4;
    text-shadow: 
        2px 2px 4px rgba(255, 20, 147, 0.6);
    animation: floatKorean 3s ease-in-out infinite;
    opacity: 1;
    transform: rotate(-45deg);
}

@keyframes floatKorean {
    0%, 100% {
        transform: translateY(0) rotate(-45deg);
    }
    50% {
        transform: translateY(-5px) rotate(-45deg);
    }
}

@keyframes pulseTitle {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Button Container */
.button-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-wrap: wrap;
    min-height: 150px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Chewy", system-ui;
    font-weight: 400;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
}

.btn-yes,
.btn-no {
    padding: 18px 40px;
    font-size: 1.2rem;
    min-width: 120px;
}

.btn-yes {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.5);
    transition: transform 0.1s ease, box-shadow 0.3s ease;
    z-index: 5;
    transform-origin: center center;
}

.btn-yes:hover {
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.7);
}

.btn-no {
    background: linear-gradient(135deg, #dda0dd, #ba55d3);
    color: white;
    box-shadow: 0 4px 15px rgba(186, 85, 211, 0.5);
    transition: transform 0.2s ease;
    position: relative;
    z-index: 10;
}

.btn-no:hover {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
}

/* Success Message */
.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    text-align: center;
    animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 90vw;
    padding: clamp(20px, 5vw, 40px);
}

@keyframes popIn {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    60% {
        transform: translate(-50%, -50%) scale(1.15);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.success-message h2 {
    font-size: clamp(1.5rem, 5vw, 3rem);
    color: #ffffff;
    font-family: "Chewy", system-ui;
    font-weight: 400;
    font-style: normal;
    margin-bottom: 30px;
    text-shadow: 
        -1px -1px 0 #ff69b4,
        1px -1px 0 #ff69b4,
        -1px 1px 0 #ff69b4,
        1px 1px 0 #ff69b4,
        2px 2px 4px #ff1493,
        1px 1px 2px rgba(255, 105, 180, 0.8);
    word-wrap: break-word;
    font-weight: bold;
    letter-spacing: 1px;
}

.success-gif {
    width: clamp(250px, 50vw, 400px);
    height: auto;
    animation: bounceGif 1s ease-in-out infinite;
}

.success-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.love-text-success {
    font-family: "Hi Melody", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: clamp(1.2rem, 4vw, 2rem);
    color: #ffffff;
    text-shadow: 
        -1px -1px 0 #ff69b4,
        1px -1px 0 #ff69b4,
        -1px 1px 0 #ff69b4,
        1px 1px 0 #ff69b4,
        2px 2px 4px #ff1493;
    animation: floatText 3s ease-in-out infinite;
}

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

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

/* Confetti */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    overflow: hidden;
}

.confetti-particle {
    position: absolute;
    top: -20px;
    border-radius: 2px;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .valentine-card {
        padding: 20px;
        gap: 20px;
    }

    .button-container {
        flex-direction: column;
        gap: 20px;
        min-height: 150px;
    }

    .btn-no {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .valentine-container {
        padding: 10px;
    }
    
    .valentine-card {
        padding: 15px;
    }
    
    .button-container {
        min-height: 120px;
    }
}