:root {
    --bg-gradient-start: #ffdde1;
    --bg-gradient-end: #ee9ca7;
    --text-color: #592e39;
    --primary-color: #ff4d6d;
    --secondary-color: #ff8fa3;
    --black: #000000;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Nunito', sans-serif;
    background-color: var(--black);
    position: relative;
}

/* Romantic Background Layer */
#romantic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    opacity: 0;
    transition: opacity 3s ease;
    z-index: 0;
    pointer-events: none;
}

#romantic-bg.visible {
    opacity: 1;
}

.scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
    z-index: 1;
}

.scene.active {
    opacity: 1;
    pointer-events: all;
    z-index: 10;
}

/* Scene 1: Loader */
.progress-container {
    width: 80%;
    max-width: 300px;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background-color: var(--white);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    transition: width 0.1s linear;
}

.bouncy {
    animation: bounceBar 0.5s infinite alternate;
}

@keyframes bounceBar {
    from {
        transform: scaleY(1);
    }

    to {
        transform: scaleY(1.5);
    }
}

.blink-green {
    background-color: #4cd964 !important;
    box-shadow: 0 0 15px #4cd964 !important;
    animation: blink 0.5s 3;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Scene 3: Mystery Button */
.content-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mystery-btn {
    background: var(--black);
    border: 2px solid var(--white);
    color: var(--white);
    padding: 15px 40px;
    font-size: 1.2rem;
    font-family: 'Pacifico', cursive;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.1s;
    outline: none;
    z-index: 2;
}

.mystery-btn:active {
    transform: scale(0.95);
}

.tease-text {
    position: absolute;
    /* Removed top: 60% to allow JS/CSS to position it near button */
    /* We'll generally place it around the button */
    white-space: nowrap;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    pointer-events: none;
    transition: all 0.2s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Scene 5: Transition Text */
#scene-transition-text {
    color: var(--white);
    text-align: center;
}

#scene-transition-text h1,
#scene-transition-text p {
    opacity: 0;
    transform: translateY(20px);
}

.fade-up {
    animation: fadeInUp 1s forwards;
}

.delay {
    animation-delay: 2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scene 7: Proposal */
.proposal-text {
    font-family: 'Pacifico', cursive;
    color: var(--text-color);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    position: relative;
    /* Container for relative positioning context if needed */
}

.choice-btn {
    padding: 12px 30px;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.yes {
    background-color: var(--primary-color);
    color: var(--white);
}

.no {
    background-color: var(--white);
    color: var(--text-color);
    position: relative;
    /* Important for movement */
}

/* Particles / Extras */
.particle {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.8;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}