/* ================================================== */
/* BASE STYLES & COLOR VARIABLES                      */
/* Edit colors and gradients here                     */
/* ================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* EDIT: Main colors */
    --primary: #ff6b9d;
    --secondary: #c44569;
    --accent: #f8b500;
    --dark: #2d3436;
    --light: #fff9f9;
    
    /* EDIT: Background gradients for each scene */
    --gradient-login: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);  /* Scene 0 */
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);      /* Scene 1 */
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);      /* Scene 2 */
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);      /* Scene 4 */
    --gradient-4: linear-gradient(135deg, #fa709a 0%, #fee140 100%);      /* Scene 3 */
    --gradient-5: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);      /* Scene 5 */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    background: var(--dark);
}

.container {
    width: 100vw;
    height: 100vh;
    position: relative;
}


/* ================================================== */
/* SCENE BASE STYLES (DO NOT EDIT)                    */
/* ================================================== */
.scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
}

.scene.active {
    opacity: 1;
    visibility: visible;
}

.content {
    text-align: center;
    z-index: 10;
}


/* ================================================== */
/* SCENE 0: LOGIN / VERIFICATION PAGE                 */
/* ================================================== */
.scene-0 {
    /* EDIT: Change login page background */
    background: var(--gradient-login);
}

.login-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
}

.login-title {
    /* EDIT: Login title style */
    font-size: clamp(2rem, 6vw, 3rem);
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.3);
}

.login-subtitle {
    /* EDIT: Login subtitle style */
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.code-input {
    /* EDIT: Input field style */
    padding: 18px 25px;
    font-size: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
}

.code-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.code-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.4);
}

.verify-btn {
    /* EDIT: Verify button style */
    padding: 18px 40px;
    font-size: 1.2rem;
    background: var(--gradient-2);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(244, 67, 128, 0.4);
}

.verify-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(244, 67, 128, 0.6);
}

.error-msg {
    /* EDIT: Error message style */
    color: #ff6b6b;
    margin-top: 20px;
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-msg.show {
    opacity: 1;
}

.hint-text {
    /* EDIT: Hint text style */
    color: rgba(255, 255, 255, 0.5);
    margin-top: 25px;
    font-size: 0.9rem;
    font-style: italic;
}

/* Attempts remaining indicator */
.attempts-left {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.attempts-left.warning {
    color: #ffa502;
}

.attempts-left.danger {
    color: #ff6b6b;
}

/* Bot Verification Captcha */
.captcha-group {
    margin: 20px 0;
    text-align: left;
}

.captcha-label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.captcha-question {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.captcha-question span {
    font-size: 1.3rem;
    color: white;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 10px;
    flex: 1;
    text-align: center;
}

.refresh-captcha {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.refresh-captcha:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(180deg);
}

.captcha-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
}

.captcha-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.captcha-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(248, 181, 0, 0.4);
}

.captcha-input.shake {
    animation: shake 0.5s ease;
    border-color: #ff6b6b;
}

/* Banned Screen */
.banned-box {
    display: none;
    background: rgba(255, 50, 50, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    border: 2px solid rgba(255, 100, 100, 0.3);
    box-shadow: 0 25px 50px rgba(255, 0, 0, 0.2);
    max-width: 450px;
    width: 90%;
}

.banned-box.show {
    display: block;
}

.banned-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.banned-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    color: #ff6b6b;
    margin-bottom: 10px;
}

.banned-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 30px;
}

/* Countdown Timer */
.countdown-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
}

.countdown-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 12px;
    border-radius: 10px;
    min-width: 60px;
}

.time-unit span:first-child {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
}

.time-unit small {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-top: 5px;
}

/* Reset button (dev only) */
.reset-btn {
    margin-top: 25px;
    padding: 12px 30px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Hide login box when banned */
.login-box.hidden {
    display: none;
}

/* Input shake animation for wrong code */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-10px); }
    40%, 80% { transform: translateX(10px); }
}

.code-input.shake {
    animation: shake 0.5s ease;
    border-color: #ff6b6b;
}


/* ================================================== */
/* SCENE 1: OPENING MESSAGE                           */
/* ================================================== */
.scene-1 {
    /* EDIT: Change background gradient */
    background: var(--gradient-1);
    cursor: pointer;
}

.scene-1 .title {
    /* EDIT: Title style */
    font-size: clamp(3rem, 10vw, 8rem);
    color: white;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(50px);
}

.scene-1 .subtitle {
    /* EDIT: Subtitle style */
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: rgba(255, 255, 255, 0.8);
    margin-top: 20px;
    opacity: 0;
}


/* ================================================== */
/* SCENE 2: WORD-BY-WORD TEXT REVEAL                  */
/* ================================================== */
.scene-2 {
    /* EDIT: Change background gradient */
    background: var(--gradient-2);
}

.text-reveal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 80%;
}

.word {
    /* EDIT: Word style */
    font-size: clamp(2rem, 6vw, 5rem);
    color: white;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(100px) rotateX(90deg);
}


/* ================================================== */
/* SCENE 3: HEARTS ANIMATION                          */
/* ================================================== */
.scene-3 {
    /* EDIT: Change background gradient */
    background: var(--gradient-4);
}

.hearts-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.heart {
    position: absolute;
    font-size: 30px;
    opacity: 0;
}

.big-heart {
    /* EDIT: Big heart style */
    font-size: clamp(5rem, 20vw, 15rem);
    opacity: 0;
    transform: scale(0);
    filter: drop-shadow(0 0 30px rgba(255, 100, 100, 0.5));
}


/* ================================================== */
/* SCENE 4: THE BIG REVEAL                            */
/* ================================================== */
.scene-4 {
    /* EDIT: Change background gradient */
    background: var(--gradient-3);
    overflow: hidden;
}

.reveal-text {
    /* EDIT: Reveal text style */
    font-size: clamp(4rem, 15vw, 12rem);
    color: white;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(255, 255, 255, 0.6),
        0 0 60px rgba(255, 255, 255, 0.4);
    opacity: 0;
    transform: scale(0) rotate(-10deg);
    letter-spacing: 10px;
}

.message {
    /* EDIT: Message style */
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: white;
    margin-top: 30px;
    opacity: 0;
    transform: translateY(30px);
}

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 15px;
    height: 15px;
    opacity: 0;
}


/* ================================================== */
/* SCENE 5: YES OR NO QUESTION                        */
/* ================================================== */
.scene-5 {
    background: var(--gradient-2);
    overflow: hidden;
}

.question-box {
    text-align: center;
    z-index: 10;
}

.question-text {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    color: white;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 50px;
    opacity: 0;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    min-height: 100px;
    align-items: center;
}

.yes-btn {
    padding: 20px 50px;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 184, 148, 0.4);
    opacity: 0;
}

.yes-btn:hover {
    box-shadow: 0 15px 40px rgba(0, 184, 148, 0.6);
}

.no-btn {
    padding: 20px 50px;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #636e72 0%, #b2bec3 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 10px 30px rgba(99, 110, 114, 0.4);
    position: relative;
    opacity: 0;
}

.hearts-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    font-size: 30px;
    opacity: 0.3;
    animation: floatHeart 4s ease-in-out infinite;
}

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


/* ================================================== */
/* SCENE 6 & 7: MEMORY SLIDESHOWS                     */
/* ================================================== */
.scene-6 {
    background: var(--gradient-4);
}

.scene-7 {
    background: var(--gradient-1);
}

.slideshow-content {
    width: 90%;
    max-width: 1000px;
}

.slideshow-container {
    display: flex;
    align-items: center;
    gap: 50px;
    justify-content: center;
}

.slideshow-container.reverse {
    flex-direction: row-reverse;
}

.image-frame {
    position: relative;
    width: 400px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 5px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
}

.image-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

.image-slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.image-slideshow img.active {
    opacity: 1;
}

.video-frame {
    position: relative;
    width: 400px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 5px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
}

.video-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slideshow-text {
    max-width: 350px;
    opacity: 0;
}

.memory-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
}

.memory-description {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 30px;
}

.scene-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px 25px;
    border-radius: 50px;
    width: fit-content;
}

.timer-icon {
    font-size: 1.5rem;
}

.timer-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}


/* ================================================== */
/* SCENE 8: FINAL MESSAGE                             */
/* ================================================== */
.scene-8 {
    background: var(--gradient-5);
}

.final-message {
    position: relative;
}

.line {
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    color: var(--secondary);
    margin: 20px 0;
    opacity: 0;
    transform: translateX(-100px);
}

.line-2 {
    transform: translateX(100px);
}

.emoji-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.emoji {
    position: absolute;
    font-size: 40px;
    opacity: 0;
}

.replay-btn {
    margin-top: 50px;
    padding: 20px 50px;
    font-size: 1.5rem;
    background: var(--gradient-2);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    opacity: 0;
    transform: scale(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(244, 67, 128, 0.4);
}

.replay-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 15px 40px rgba(244, 67, 128, 0.6);
}


/* ================================================== */
/* EFFECTS & UTILITIES                                */
/* ================================================== */
.glow {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5)); }
    to { filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.9)); }
}

.sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
}


/* ================================================== */
/* RESPONSIVE / MOBILE ADJUSTMENTS                    */
/* ================================================== */
@media (max-width: 768px) {
    .text-reveal {
        gap: 10px;
    }
    
    .replay-btn {
        padding: 15px 35px;
        font-size: 1.2rem;
    }
    
    .login-box {
        padding: 40px 25px;
    }
    
    .code-input, .verify-btn {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .button-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .yes-btn, .no-btn {
        padding: 15px 40px;
        font-size: 1.2rem;
    }
    
    .slideshow-container,
    .slideshow-container.reverse {
        flex-direction: column;
        gap: 30px;
    }
    
    .image-frame {
        width: 300px;
        height: 225px;
    }
    
    .video-frame {
        width: 300px;
        height: 225px;
    }
    
    .slideshow-text {
        text-align: center;
    }
    
    .scene-timer {
        margin: 0 auto;
    }
}
