/* ============================================
   GLOBAL STYLES & VARIABLES
   ============================================ */
:root {
    --primary-pink: #ff6fa5;
    --light-lavender: #e6e6fa;
    --soft-gold: #ffd700;
    --white: #ffffff;
    --soft-pink: #ffb6c1;
    --rose-pink: #ff69b4;
    --deep-pink: #ff1493;
}

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

body {
    font-family: 'Georgia', serif;
    overflow: hidden;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-pink), var(--light-lavender));
}

/* ============================================
   PAGE SYSTEM
   ============================================ */
.page {
    position: absolute;
    width: 100%;
    height: 100vh;
    display: none;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.page.active {
    display: block;
    opacity: 1;
}

/* ============================================
   PAGE 1: ANGEL ANIMATION SCENE
   ============================================ */
.sky-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        #87ceeb 0%, 
        var(--soft-pink) 40%, 
        var(--soft-gold) 70%, 
        var(--primary-pink) 100%);
    overflow: hidden;
}

.cloud {
    position: absolute;
    background: var(--white);
    border-radius: 100px;
    opacity: 0.8;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: var(--white);
    border-radius: 100px;
}

.cloud1 {
    width: 100px;
    height: 40px;
    top: 20%;
    left: 20%;
    animation: float 20s infinite ease-in-out;
}

.cloud1::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 10px;
}

.cloud1::after {
    width: 60px;
    height: 40px;
    top: -15px;
    right: 10px;
}

.cloud2 {
    width: 80px;
    height: 35px;
    top: 40%;
    right: 30%;
    animation: float 25s infinite ease-in-out reverse;
}

.cloud2::before {
    width: 40px;
    height: 40px;
    top: -20px;
    left: 15px;
}

.cloud2::after {
    width: 50px;
    height: 35px;
    top: -10px;
    right: 15px;
}

.cloud3 {
    width: 120px;
    height: 45px;
    top: 60%;
    left: 10%;
    animation: float 30s infinite ease-in-out;
}

.cloud3::before {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 20px;
}

.cloud3::after {
    width: 70px;
    height: 45px;
    top: -20px;
    right: 20px;
}

@keyframes float {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(20px) translateY(-10px); }
    50% { transform: translateX(-10px) translateY(5px); }
    75% { transform: translateX(15px) translateY(-5px); }
}

.sparkle-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--soft-gold);
    border-radius: 50%;
    animation: sparkle 3s infinite;
}

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

.angel-container {
    position: absolute;
    top: 30%;
    left: 20%;
    transform: translate(-50%, -50%);
}

.angel {
    position: relative;
    width: 80px;
    height: 120px;
}

.halo {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    border: 3px solid var(--soft-gold);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--soft-gold);
    animation: halo-glow 2s infinite ease-in-out;
}

@keyframes halo-glow {
    0%, 100% { box-shadow: 0 0 20px var(--soft-gold); }
    50% { box-shadow: 0 0 40px var(--soft-gold); }
}

.body {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 60px;
    background: var(--white);
    border-radius: 15px;
}

.wing {
    position: absolute;
    top: 25px;
    width: 40px;
    height: 60px;
    background: linear-gradient(135deg, var(--white), var(--light-lavender));
    border-radius: 50% 10% 50% 10%;
    animation: wing-flap 3s infinite ease-in-out;
}

.left-wing {
    left: -35px;
    transform-origin: right center;
}

.right-wing {
    right: -35px;
    transform-origin: left center;
    animation-delay: 0.5s;
}

@keyframes wing-flap {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-10deg); }
}

.bow {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 20px;
}

.bow-body {
    position: absolute;
    width: 40px;
    height: 8px;
    background: var(--soft-gold);
    border-radius: 4px;
    transform: rotate(-30deg);
}

.bow-string {
    position: absolute;
    width: 2px;
    height: 30px;
    background: var(--white);
    left: 50%;
    top: -25px;
    transform-origin: bottom;
}

.arrow {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    opacity: 0;
}

.arrow-head {
    position: absolute;
    right: -10px;
    top: -8px;
    width: 0;
    height: 0;
    border-left: 20px solid var(--rose-pink);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.arrow-shaft {
    position: absolute;
    width: 50px;
    height: 4px;
    background: var(--rose-pink);
    box-shadow: 0 0 10px var(--rose-pink);
}

.arrow.shoot {
    animation: arrow-shoot 2s ease-out forwards;
}

@keyframes arrow-shoot {
    0% { 
        opacity: 0; 
        transform: translateX(-50%) translateY(0) rotate(0deg); 
    }
    20% { 
        opacity: 1; 
        transform: translateX(-50%) translateY(0) rotate(0deg); 
    }
    100% { 
        opacity: 1; 
        transform: translateX(-50%) translateY(400px) rotate(45deg); 
    }
}

.floating-heart {
    position: absolute;
    top: 50%;
    right: 20%;
    transform: translate(50%, -50%);
    width: 100px;
    height: 100px;
    animation: heart-float 3s infinite ease-in-out;
}

.heart-shape {
    position: relative;
    width: 100px;
    height: 90px;
    background: var(--rose-pink);
    transform: rotate(-45deg);
    box-shadow: 0 0 30px var(--rose-pink);
}

.heart-shape::before,
.heart-shape::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--rose-pink);
    border-radius: 50%;
}

.heart-shape::before {
    top: -50px;
    left: 0;
}

.heart-shape::after {
    top: 0;
    left: 50px;
}

@keyframes heart-float {
    0%, 100% { transform: translate(50%, -50%) scale(1); }
    50% { transform: translate(50%, -50%) scale(1.1); }
}

.floating-heart.burst .heart-shape {
    animation: heart-burst 1s ease-out forwards;
}

@keyframes heart-burst {
    0% { transform: rotate(-45deg) scale(1); }
    50% { transform: rotate(-45deg) scale(1.5); }
    100% { transform: rotate(-45deg) scale(0); opacity: 0; }
}

.message-text {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    opacity: 0;
}

.message-text.show {
    opacity: 1;
    animation: message-fade 3s ease-in-out forwards;
}

@keyframes message-fade {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.start-button {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    padding: 20px 40px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    background: linear-gradient(45deg, var(--rose-pink), var(--primary-pink));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255,105,180,0.4);
    animation: button-glow 2s infinite ease-in-out;
    opacity: 0;
}

.start-button.show {
    opacity: 1;
}

.start-button:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 8px 30px rgba(255,105,180,0.6);
}

@keyframes button-glow {
    0%, 100% { 
        box-shadow: 0 5px 20px rgba(255,105,180,0.4);
        transform: translateX(-50%) scale(1);
    }
    50% { 
        box-shadow: 0 5px 30px rgba(255,105,180,0.8);
        transform: translateX(-50%) scale(1.05);
    }
}

/* ============================================
   PROPOSAL SCENE
   ============================================ */
.proposal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.floating-hearts-bg {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    pointer-events: none;
}

.heart-bg {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    animation: float-heart 4s infinite ease-in-out;
}

.heart-bg.heart1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.heart-bg.heart2 {
    top: 30%;
    right: 20%;
    animation-delay: 0.5s;
}

.heart-bg.heart3 {
    top: 50%;
    left: 10%;
    animation-delay: 1s;
}

.heart-bg.heart4 {
    top: 60%;
    right: 10%;
    animation-delay: 1.5s;
}

.heart-bg.heart5 {
    top: 80%;
    left: 50%;
    animation-delay: 2s;
}

@keyframes float-heart {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-20px) rotate(10deg); opacity: 0.8; }
}

.proposal-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border: 3px solid var(--rose-pink);
    max-width: 400px;
    animation: card-appear 1s ease-out;
}

.proposal-message {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--rose-pink);
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: message-glow 2s infinite ease-in-out;
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.proposal-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.proposal-btn {
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.proposal-btn.yes-btn {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    box-shadow: 0 5px 20px rgba(255,105,180,0.4);
}

.proposal-btn.yes-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,105,180,0.6);
}

.proposal-btn.no-btn {
    background: linear-gradient(135deg, #ddd, #bbb);
    color: #666;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.proposal-btn.no-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.thank-you-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    z-index: 10;
}

.thank-you-container.show {
    opacity: 1;
    visibility: visible;
}

.thank-you-message {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border: 3px solid var(--soft-gold);
    max-width: 400px;
    margin-bottom: 30px;
}

.thank-you-message h2 {
    font-size: 2.5rem;
    color: var(--soft-gold);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.thank-you-message p {
    font-size: 1.3rem;
    color: var(--rose-pink);
    margin: 10px 0;
    font-weight: 500;
}

.start-game-btn {
    padding: 18px 40px;
    font-size: 1.3rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--soft-gold), #ffa500);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255,215,0,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.start-game-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,215,0,0.6);
}

/* ============================================
   PAGE 2: LOVE MINI GAME
   ============================================ */
.game-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--light-lavender), var(--primary-pink));
    display: flex;
    flex-direction: column;
}

.game-header {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.score, .timer {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.game-area {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.basket {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 60px;
    cursor: move;
    transition: left 0.1s ease-out;
}

.basket-shape {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--soft-gold), var(--primary-pink));
    border-radius: 0 0 50px 50px;
    border: 3px solid var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.falling-heart {
    position: absolute;
    width: 40px;
    height: 40px;
    animation: fall linear;
}

.falling-heart .heart-shape {
    width: 40px;
    height: 36px;
    background: var(--rose-pink);
    transform: rotate(-45deg);
}

.falling-heart .heart-shape::before,
.falling-heart .heart-shape::after {
    width: 40px;
    height: 40px;
    background: var(--rose-pink);
}

.falling-heart .heart-shape::before {
    top: -20px;
    left: 0;
}

.falling-heart .heart-shape::after {
    top: 0;
    left: 20px;
}

@keyframes fall {
    from { transform: translateY(-50px); }
    to { transform: translateY(100vh); }
}

.falling-heart.caught {
    animation: catch-heart 0.5s ease-out forwards;
}

@keyframes catch-heart {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.5) rotate(180deg); }
    100% { transform: scale(0) rotate(360deg); opacity: 0; }
}

.game-instructions {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.2rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* ============================================
   PAGE 3: WIN SCREEN
   ============================================ */
.win-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--rose-pink), var(--soft-gold));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.rose-garden {
    position: relative;
    width: 100%;
    height: 100%;
}

.falling-petals {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.petal {
    position: absolute;
    width: 15px;
    height: 20px;
    background: var(--rose-pink);
    border-radius: 0 100% 0 100%;
    animation: petal-fall 8s linear infinite;
}

@keyframes petal-fall {
    0% { 
        transform: translateY(-100px) rotate(0deg); 
        opacity: 1; 
    }
    100% { 
        transform: translateY(100vh) rotate(360deg); 
        opacity: 0; 
    }
}

.bouquet {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 10px;
    animation: bouquet-glow 2s infinite ease-in-out;
}

@keyframes bouquet-glow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.flower {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: relative;
}

.flower1 { background: var(--rose-pink); }
.flower2 { background: var(--primary-pink); }
.flower3 { background: var(--soft-pink); }
.flower4 { background: var(--deep-pink); }
.flower5 { background: var(--light-lavender); }

.flower::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: var(--soft-gold);
    border-radius: 50%;
}

.win-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.win-message h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    animation: glow 2s infinite ease-in-out;
}

.win-message h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.sweet-message {
    font-size: 1.2rem;
    color: var(--white);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: glow 3s infinite ease-in-out;
}

/* ============================================
   KISSES DISPLAY
   ============================================ */
.kisses-display {
    margin: 30px 0;
    text-align: center;
}

.kisses-animation {
    font-size: 2.5rem;
    animation: kisses-bounce 2s infinite ease-in-out;
    margin-bottom: 15px;
}

.kisses-count {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--rose-pink);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: glow 2s infinite ease-in-out;
}

@keyframes kisses-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); }
}

/* ============================================
   FINGERPRINT LOVE ACTIVATION
   ============================================ */
.fingerprint-container {
    position: absolute;
    top: 72%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

.fingerprint {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fingerprint-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--rose-pink), var(--primary-pink));
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255,105,180,0.4);
    animation: fingerprint-pulse 2s infinite ease-in-out;
    color: var(--white);
}

.fingerprint-icon svg {
    width: 60px;
    height: 60px;
}

.progress-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 140px;
    height: 140px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-ring.active {
    opacity: 1;
}

.progress-ring svg {
    width: 100%;
    height: 100%;
}

.fingerprint-text {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin: 0;
    animation: text-glow 2s infinite ease-in-out;
}

@keyframes fingerprint-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 30px rgba(255,105,180,0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 50px rgba(255,105,180,0.6);
    }
}

@keyframes text-glow {
    0%, 100% { text-shadow: 2px 2px 4px rgba(0,0,0,0.5), 0 0 10px var(--rose-pink); }
    50% { text-shadow: 2px 2px 4px rgba(0,0,0,0.5), 0 0 20px var(--rose-pink); }
}

.fingerprint.holding {
    transform: scale(0.95);
}

.fingerprint.activated {
    animation: fingerprint-activate 0.5s ease-out forwards;
}

@keyframes fingerprint-activate {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { 
        transform: scale(1);
        box-shadow: 0 0 60px var(--soft-gold);
    }
}

/* ============================================
   CONFESSION MODAL
   ============================================ */
.confession-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 100;
    animation: modal-fade-in 0.5s ease-out;
}

.confession-modal.show {
    display: block;
}

.modal-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
}

.confession-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--white), var(--light-lavender));
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: card-appear 0.5s ease-out;
}

.confession-message {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.6;
    font-weight: 500;
}

.confession-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.confession-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.yes-btn {
    background: linear-gradient(45deg, var(--rose-pink), var(--primary-pink));
    color: var(--white);
    box-shadow: 0 5px 20px rgba(255,105,180,0.3);
}

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

.no-btn {
    background: linear-gradient(45deg, #ccc, #999);
    color: var(--white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.no-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* ============================================
   CELEBRATION MESSAGE
   ============================================ */
.celebration-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    display: none;
    z-index: 50;
}

.celebration-message.show {
    display: block;
    animation: celebration-appear 1s ease-out;
}

.celebration-message h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    animation: glow 2s infinite ease-in-out;
}

.celebration-message p {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.restart-btn {
    margin-top: 30px;
    padding: 20px 40px;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--white);
    background: linear-gradient(45deg, var(--rose-pink), var(--primary-pink));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255,105,180,0.4);
    transition: all 0.3s ease;
}

.restart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(255,105,180,0.6);
}

/* ============================================
   CELEBRATION EFFECTS
   ============================================ */
.confetti-heart {
    position: absolute;
    width: 20px;
    height: 20px;
    color: var(--rose-pink);
    font-size: 20px;
    animation: confetti-fall 3s linear forwards;
    pointer-events: none;
    z-index: 200;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.sparkle-burst {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--soft-gold);
    border-radius: 50%;
    animation: sparkle-burst 1s ease-out forwards;
    pointer-events: none;
    z-index: 200;
}

@keyframes sparkle-burst {
    0% {
        transform: scale(0) translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: scale(2) translate(var(--tx), var(--ty));
        opacity: 0;
    }
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes card-appear {
    from { 
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    to { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes celebration-appear {
    from { 
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    to { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* ============================================
   PAGE 4: LOSE SCREEN
   ============================================ */
.lose-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--light-lavender), var(--primary-pink));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sad-angel {
    position: relative;
    width: 80px;
    height: 120px;
    margin-bottom: 40px;
}

.sad-angel .halo {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    border: 3px solid var(--soft-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--soft-gold);
    opacity: 0.7;
}

.sad-angel .body {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 60px;
    background: var(--white);
    border-radius: 15px;
}

.sad-angel .wing {
    top: 25px;
    width: 40px;
    height: 60px;
    background: linear-gradient(135deg, var(--white), var(--light-lavender));
    border-radius: 50% 10% 50% 10%;
    animation: wing-flap 4s infinite ease-in-out;
}

.sad-angel .left-wing {
    left: -35px;
}

.sad-angel .right-wing {
    right: -35px;
}

.sad-face {
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 10px;
    border-bottom: 3px solid #333;
    border-radius: 0 0 10px 10px;
}

.sad-face::before,
.sad-face::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #333;
    border-radius: 50%;
    top: -5px;
}

.sad-face::before {
    left: 2px;
}

.sad-face::after {
    right: 2px;
}

.lose-message {
    text-align: center;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 40px;
}

.lose-message h1 {
    font-size: 2.5rem;
    animation: pulse 2s infinite ease-in-out;
}

.try-again-btn {
    padding: 20px 40px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    background: linear-gradient(45deg, var(--rose-pink), var(--primary-pink));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255,105,180,0.4);
    transition: all 0.3s ease;
    animation: button-glow 2s infinite ease-in-out;
}

.try-again-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(255,105,180,0.6);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .angel-container {
        top: 25%;
        left: 15%;
    }
    
    .floating-heart {
        right: 10%;
        width: 80px;
        height: 80px;
    }
    
    .message-text {
        font-size: 1.8rem;
        top: 65%;
    }
    
    .start-button {
        font-size: 1.2rem;
        padding: 15px 30px;
    }
    
    .game-header {
        padding: 15px;
    }
    
    .score, .timer {
        font-size: 1.2rem;
    }
    
    .basket {
        width: 80px;
        height: 50px;
    }
    
    .falling-heart {
        width: 30px;
        height: 30px;
    }
    
    .win-message h1 {
        font-size: 2rem;
    }
    
    .win-message h2 {
        font-size: 1.5rem;
    }
    
    .sweet-message {
        font-size: 1rem;
        max-width: 400px;
        margin: 0 auto 20px;
    }
    
    .fingerprint {
        width: 100px;
        height: 100px;
    }
    
    .fingerprint-icon svg {
        width: 50px;
        height: 50px;
    }
    
    .progress-ring {
        width: 120px;
        height: 120px;
        top: -10px;
        left: -10px;
    }
    
    .fingerprint-text {
        font-size: 1rem;
    }
    
    .confession-card {
        padding: 30px;
        max-width: 350px;
    }
    
    .confession-message {
        font-size: 1.1rem;
    }
    
    .name-input-container {
        flex-direction: column;
        gap: 15px;
    }
    
    #loveName, #submitNameBtn {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .message-text {
        font-size: 1.5rem;
    }
    
    .start-button {
        font-size: 1rem;
        padding: 12px 25px;
    }
    
    .win-message h1 {
        font-size: 1.8rem;
    }
    
    .win-message h2 {
        font-size: 1.3rem;
    }
    
    .sweet-message {
        font-size: 0.9rem;
        max-width: 350px;
        margin: 0 auto 15px;
    }
    
    .fingerprint {
        width: 80px;
        height: 80px;
    }
    
    .fingerprint-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .progress-ring {
        width: 100px;
        height: 100px;
        top: -10px;
        left: -10px;
    }
    
    .fingerprint-text {
        font-size: 0.9rem;
    }
    
    .confession-card {
        padding: 25px;
        max-width: 300px;
    }
    
    .confession-message {
        font-size: 1rem;
    }
    
    .confession-btn {
        padding: 12px 20px;
        font-size: 1rem;
        min-width: 80px;
    }
    
    .lose-message h1 {
        font-size: 2rem;
    }
}

/* ============================================
   UTILITY ANIMATIONS
   ============================================ */
@keyframes glow {
    0%, 100% { text-shadow: 2px 2px 4px rgba(0,0,0,0.5), 0 0 20px var(--soft-gold); }
    50% { text-shadow: 2px 2px 4px rgba(0,0,0,0.5), 0 0 30px var(--soft-gold); }
}

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