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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #FFF0F5 0%, #FFE4EC 25%, #FFD6E4 50%, #FFE4EC 75%, #FFF0F5 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* ============ SPLASH SCREEN ============ */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFF0F5 0%, #FFE4EC 25%, #FFD6E4 50%, #FFE4EC 75%, #FFF0F5 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    animation: splashFadeIn 0.8s ease-out;
}

@keyframes splashFadeIn {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

.splash-logo {
    margin-bottom: 20px;
}

.splash-character {
    width: 180px;
    height: 180px;
    object-fit: contain;
    animation: splashBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(233, 30, 140, 0.3));
}

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

.splash-title {
    font-size: 48px;
    font-weight: 800;
    color: #E91E8C;
    margin-bottom: 15px;
    text-shadow: 0 4px 15px rgba(233, 30, 140, 0.3);
}

.splash-dot {
    color: #FF69B4;
}

.splash-hearts {
    font-size: 30px;
    margin-bottom: 30px;
    animation: splashHeartPulse 1.5s ease-in-out infinite;
}

.splash-hearts span {
    margin: 0 8px;
}

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

.splash-loader {
    width: 200px;
    height: 6px;
    background: rgba(233, 30, 140, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
}

.splash-loader-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #E91E8C, #FF69B4, #E91E8C);
    background-size: 200% 100%;
    border-radius: 3px;
    animation: splashLoading 2s ease-out forwards, splashGradient 1s linear infinite;
}

@keyframes splashLoading {
    0% { width: 0%; }
    100% { width: 100%; }
}

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

/* App Container */
.app-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-container.hidden {
    display: none;
}

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

.heart {
    position: absolute;
    font-size: 60px;
    opacity: 0.5;
    animation: float 4s ease-in-out infinite;
}

.heart-1 { top: 5%; left: 5%; animation-delay: 0s; font-size: 70px; }
.heart-2 { top: 8%; right: 8%; animation-delay: 0.5s; font-size: 65px; }
.heart-3 { top: 25%; left: -2%; animation-delay: 1s; font-size: 55px; }
.heart-4 { top: 28%; right: -1%; animation-delay: 1.5s; font-size: 68px; }
.heart-5 { bottom: 20%; left: 3%; animation-delay: 0.3s; font-size: 60px; }
.heart-6 { bottom: 15%; right: 5%; animation-delay: 0.8s; font-size: 75px; }
.heart-7 { bottom: 30%; right: 15%; animation-delay: 1.2s; font-size: 50px; }
.heart-8 { bottom: 35%; left: 10%; animation-delay: 0.6s; font-size: 55px; }

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
    50% { transform: translateY(-15px) scale(1.1); opacity: 0.8; }
}

/* App Name */
.app-name {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 20px;
    font-weight: 700;
    color: #E91E8C;
    z-index: 100;
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 16px;
    border-radius: 25px;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(233, 30, 140, 0.15);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.language-selector:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(233, 30, 140, 0.25);
}

.language-selector span:first-child {
    font-size: 24px;
}

.language-selector .arrow {
    font-size: 10px;
    color: #E91E8C;
}

/* Screens */
.screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    z-index: 10;
    min-height: 100vh;
    width: 100%;
}

.screen.active {
    display: flex;
}

/* Back Button */
.back-btn {
    position: fixed;
    top: 20px;
    left: 70px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 100;
    color: #E91E8C;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.back-btn:hover {
    transform: scale(1.1);
}

/* Gender Selection */
.gender-title {
    font-size: 28px;
    color: #E91E8C;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(233, 30, 140, 0.2);
}

.gender-btn {
    background: #E91E8C;
    color: white;
    border: none;
    padding: 20px 60px;
    font-size: 22px;
    font-weight: 700;
    border-radius: 35px;
    margin: 12px;
    cursor: pointer;
    min-width: 220px;
    box-shadow: 0 8px 25px rgba(233, 30, 140, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.gender-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(233, 30, 140, 0.45);
}

.gender-btn:active {
    transform: scale(0.98);
}

/* Speech Bubble */
.speech-bubble {
    position: absolute;
    top: 18%;
    background: white;
    padding: 12px 24px;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-size: 20px;
    font-weight: 600;
    color: #E91E8C;
    animation: bubblePop 0.4s ease-out;
    z-index: 20;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 14px solid white;
}

.speech-bubble.hidden {
    display: none;
}

@keyframes bubblePop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

/* Bear */
.bear-container {
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    margin-top: 60px;
}

.bear-emoji {
    font-size: 85px;
    transition: transform 0.3s;
}

/* Question */
.question-text {
    font-size: 28px;
    font-weight: 700;
    color: #E91E8C;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(233, 30, 140, 0.2);
    padding: 0 20px;
    max-width: 90%;
}

/* Buttons Container */
.buttons-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 80px;
}

/* YES Button */
.yes-btn {
    background: #E91E8C;
    color: white;
    border: none;
    padding: 18px 45px;
    font-size: 22px;
    font-weight: 700;
    border-radius: 35px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(233, 30, 140, 0.4);
    transition: transform 0.2s, padding 0.3s, font-size 0.3s;
    animation: pulse 1.2s ease-in-out infinite;
    min-width: 120px;
}

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

.yes-btn:hover {
    box-shadow: 0 12px 35px rgba(233, 30, 140, 0.5);
}

/* NO Button */
.no-btn {
    background: white;
    color: #E91E8C;
    border: 3px solid #E91E8C;
    padding: 18px 45px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 35px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.15s ease-out, left 0.15s ease-out, top 0.15s ease-out;
    position: relative;
}

.no-btn:hover {
    background: #FFF0F5;
}

.no-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

/* Celebration Screen */
.gif-container {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
}

.kissing-gif {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
}

.celebration-title {
    font-size: 52px;
    font-weight: 800;
    color: #E91E8C;
    margin-bottom: 5px;
    animation: celebrateBounce 0.6s ease-out;
}

.celebration-subtitle {
    font-size: 32px;
    font-weight: 700;
    color: #FF69B4;
    margin-bottom: 15px;
}

.celebration-message {
    font-size: 20px;
    font-weight: 600;
    color: #DB7093;
    margin-bottom: 40px;
    padding: 0 20px;
}

@keyframes celebrateBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.reset-btn {
    background: rgba(233, 30, 140, 0.15);
    color: #E91E8C;
    border: 2px solid #E91E8C;
    padding: 16px 35px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.reset-btn:hover {
    background: rgba(233, 30, 140, 0.25);
    transform: scale(1.05);
}

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

.celebration-heart {
    position: absolute;
    font-size: 30px;
    animation: riseUp 3s ease-out forwards;
}

@keyframes riseUp {
    0% {
        transform: translateY(0) rotate(0deg) scale(0);
        opacity: 1;
    }
    10% {
        transform: scale(1);
    }
    100% {
        transform: translateY(-120vh) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 25px;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    color: #E91E8C;
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.language-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.language-option {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: #FFF0F5;
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.language-option:hover {
    background: #FFE4EC;
    transform: translateX(5px);
}

.language-option.selected {
    background: #FFE4EC;
    border: 2px solid #E91E8C;
}

.language-option .flag {
    font-size: 28px;
    margin-right: 15px;
}

.language-option .name {
    font-size: 18px;
    color: #333;
    flex: 1;
}

.language-option.selected .name {
    color: #E91E8C;
    font-weight: 600;
}

.language-option .check {
    font-size: 20px;
    color: #E91E8C;
}

/* Responsive */
@media (max-width: 480px) {
    .gender-title, .question-text {
        font-size: 24px;
    }
    
    .gender-btn {
        padding: 18px 50px;
        font-size: 20px;
        min-width: 200px;
    }
    
    .yes-btn, .no-btn {
        padding: 16px 35px;
        font-size: 18px;
    }
    
    .bear-container {
        width: 120px;
        height: 120px;
    }
    
    .bear-emoji {
        font-size: 70px;
    }
    
    .celebration-title {
        font-size: 42px;
    }
    
    .celebration-subtitle {
        font-size: 26px;
    }
}
