@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.love-body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 25%, #fecfef 75%, #ff9a9e 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    overflow-x: hidden;
    min-height: 100vh;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.screen.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-10px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(10px);
    }
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.1);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.1);
    }

    70% {
        transform: scale(1);
    }
}

.floating-heart {
    position: absolute;
    animation: float 6s infinite linear;
    z-index: 1;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff6b9d, #c44569);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-heart i {
    font-size: 4rem;
    color: #fff;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.loading-bar {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    margin-top: 30px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #ff6b9d, #ffd93d);
    border-radius: 10px;
    width: 0%;
    animation: loadingProgress 3s ease-in-out forwards;
}

@keyframes loadingProgress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.start-hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    width: 100% !important;
    max-width: 600px;
    padding: 2rem 1rem;
    margin: 0 auto !important;
}

.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 8px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: avatarFloat 3s ease-in-out infinite;
}

@keyframes avatarFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.avatar-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #ff6b9d, #ffd93d, #ff6b9d);
    border-radius: 50%;
    z-index: -1;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    background: linear-gradient(45deg, #ff6b9d, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #6b46c1;
    font-weight: 500;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.start-btn {
    background: linear-gradient(45deg, #ff6b9d, #c44569);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(255, 107, 157, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.start-btn:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 30px 60px rgba(255, 107, 157, 0.6);
}

.start-btn:active {
    transform: translateY(-4px) scale(1.02);
}

/* Question Screen */
.question-container {
    max-width: 800px;
    width: 100%;
    padding: 2rem;
}

.character-scene {
    position: relative;
    height: 200px;
    margin-bottom: 3rem;
}

.character-main {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stars-bg {
    position: absolute;
    top: -20px;
    right: 20px;
    width: 80px;
    animation: sparkle 2s infinite;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.question-title {
    font-size: 1.5rem;
    color: #6b46c1;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.question-big {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    text-align: center;
    margin: 2rem 0;
    line-height: 1;
}

.question-word {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b9d, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: wordPop 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.big-word {
    font-size: 1.3em !important;
}

@keyframes wordPop {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-subtitle-text {
    font-size: 1.2rem;
    color: #6b46c1;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    transition: color 0.3s ease, font-size 0.3s ease;
}

@keyframes subtitlePop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.buttons-container {
    display: flex;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.choice-btn {
    flex: 1;
    min-width: 250px;
    padding: 1.5rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.yes-choice {
    background: linear-gradient(45deg, #48bb78, #38a169);
    color: white;
}

.yes-choice:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 25px 50px rgba(72, 187, 120, 0.5);
}

.no-choice {
    background: linear-gradient(45deg, #a0aec0, #718096);
    color: white;
}

.no-choice:hover:not(.shrunken) {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(160, 174, 192, 0.4);
}

.shrunken {
    pointer-events: none !important;
}

/* Success Screen */
.success-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.celebration {
    overflow: hidden;
}

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.couple-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    margin-bottom: 2rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    animation: celebrateBounce 2s infinite;
}

@keyframes celebrateBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.success-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    color: white;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    animation: successPop 1s ease;
}

@keyframes successPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    70% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-subtitle {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    font-weight: 600;
}

.love-messages {
    max-width: 600px;
    margin: 0 auto 3rem;
    text-align: center;
}

.love-message {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    margin: 1rem 0;
    color: white;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(30px);
    opacity: 0;
    animation: messageSlide 0.6s ease forwards;
}

@keyframes messageSlide {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.success-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.share-btn {
    background: linear-gradient(45deg, #ffd93d, #ff6b9d);
    color: #333;
}

.restart-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* No Screen */
.no-content {
    text-align: center;
    max-width: 500px;
}

.sad-character {
    font-size: 8rem;
    color: #a0aec0;
    margin-bottom: 2rem;
    animation: sadPulse 2s infinite;
}

@keyframes sadPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.no-title {
    font-size: 2.5rem;
    color: #a0aec0;
    margin-bottom: 1rem;
    font-weight: 700;
}

.no-text {
    font-size: 1.3rem;
    color: #cbd5e0;
    margin-bottom: 2.5rem;
}

.try-again-btn {
    background: linear-gradient(45deg, #48bb78, #38a169);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(72, 187, 120, 0.4);
    transition: all 0.3s ease;
}

.try-again-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(72, 187, 120, 0.6);
}

/* Fireworks */
.fireworks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.firework-star {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ffd93d;
    border-radius: 50%;
    animation: fireworkExplode 2s ease-out forwards;
}

@keyframes fireworkExplode {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: scale(3) rotate(720deg);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .buttons-container {
        flex-direction: column;
        gap: 1rem;
    }

    .choice-btn {
        min-width: auto;
    }

    .success-actions {
        flex-direction: column;
        align-items: center;
    }

    .love-message {
        padding: 1rem;
        margin: 0.5rem 0;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff6b9d, #ffd93d);
    border-radius: 10px;
}

.loading-skip-btn {
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.loading-skip-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.loading-progress-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    min-height: 1.5rem;
}

#loading-progress {
    transition: width 0.3s ease !important;
}

/* FIX CENTERING UTAMA */
.screen-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    max-width: 900px;
    padding: 2rem 1rem;
    text-align: center;
}

/* Pastikan semua container center */
.question-container,
.success-content,
.no-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
}

/* ULTRA SHRINK EFFECT */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-20px); }
    75% { transform: translateX(20px); }
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.4); }
}

/* No button shrink ready */
.no-choice {
    will-change: transform, opacity !important;
    contain: layout style !important;
}

/* Pulse glow for Yes button after No disappears */
@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1.3);
        box-shadow: 0 0 40px rgba(255, 107, 157, 0.7), 0 0 80px rgba(255, 107, 157, 0.3);
    }
    50% {
        transform: scale(1.4);
        box-shadow: 0 0 60px rgba(255, 107, 157, 0.9), 0 0 120px rgba(255, 107, 157, 0.5);
    }
}