/* ==================== CSS VARIABLES ==================== */
:root {
    /* Color Palette - Blue Theme */
    --blue-primary: #1E4D8C;
    --blue-dark: #163A6B;
    --blue-light: #E8F4FC;
    --blue-soft: #B8D4E3;
    --blue-medium: #5A8BC7;
    --blue-accent: #3B7DD8;
    --white: #FFFFFF;
    --gray-light: #F5F7FA;
    --gray-soft: #E8ECF0;

    /* Cat Colors */
    --cat-body: #4ECDC4;
    --cat-dark: #3BB5AD;
    --cat-blush: #FF9AA2;
    --cat-tongue: #FF6B7A;

    /* Text Colors */
    --text-primary: #1E4D8C;
    --text-secondary: #5A7A9E;
    --text-light: #8BA4BE;

    /* Gradient Backgrounds */
    --gradient-main: linear-gradient(180deg, #E8F4FC 0%, #F0F7FC 50%, #FFFFFF 100%);
    --gradient-button: linear-gradient(135deg, #5A8BC7 0%, #1E4D8C 100%);
    --gradient-card: linear-gradient(145deg, var(--white) 0%, var(--blue-light) 100%);

    /* Fonts */
    --font-primary: 'Poppins', sans-serif;
    --font-handwriting: 'Indie Flower', cursive;

    /* Shadows */
    --shadow-soft: 0 4px 15px rgba(30, 77, 140, 0.1);
    --shadow-medium: 0 8px 30px rgba(30, 77, 140, 0.15);
    --shadow-numpad: 0 4px 12px rgba(30, 77, 140, 0.08);
    --shadow-glow: 0 0 20px rgba(90, 139, 199, 0.4);

    /* Border Radius */
    --radius-small: 10px;
    --radius-medium: 20px;
    --radius-large: 30px;
    --radius-round: 50px;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--blue-light);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* ==================== SCREEN CONTAINER ==================== */
.screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

/* ==================== LOCK SCREEN ==================== */
#lock-screen {
    background: linear-gradient(180deg, #E8F4FC 0%, #F0F7FC 50%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative Bubbles */
.decorative-bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.bubble-1 {
    width: 150px;
    height: 150px;
    background: var(--blue-primary);
    top: -30px;
    right: -30px;
}

.bubble-2 {
    width: 80px;
    height: 80px;
    background: var(--blue-primary);
    top: 80px;
    right: 60px;
}

.lock-container {
    text-align: center;
    max-width: 380px;
    width: 100%;
    position: relative;
    padding: 30px 20px;
}

/* ==================== CUTE CAT CHARACTER ==================== */
.cat-character {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.cat-body {
    position: relative;
    width: 100px;
    height: 90px;
    background: var(--cat-body);
    border-radius: 50% 50% 45% 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: catBounce 2s ease-in-out infinite;
}

@keyframes catBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.cat-face {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Cat Ears */
.cat-ears {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    display: flex;
    justify-content: space-between;
}

.cat-ear {
    width: 25px;
    height: 25px;
    background: var(--cat-body);
    border-radius: 50% 50% 0 0;
    position: relative;
}

.cat-ear.left {
    transform: rotate(-30deg);
}

.cat-ear.right {
    transform: rotate(30deg);
}

.cat-ear::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--cat-dark);
    border-radius: 50% 50% 0 0;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
}

/* Cat Eyes - Closed/Happy */
.cat-eyes {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 25px;
}

.cat-eye {
    width: 8px;
    height: 4px;
    position: relative;
}

.eye-closed {
    width: 12px;
    height: 6px;
    border-bottom: 3px solid var(--blue-dark);
    border-radius: 0 0 50% 50%;
}

/* Cat Blush */
.cat-blush {
    position: absolute;
    width: 15px;
    height: 8px;
    background: var(--cat-blush);
    border-radius: 50%;
    top: 40px;
    opacity: 0.7;
}

.cat-blush.left {
    left: 12px;
}

.cat-blush.right {
    right: 12px;
}

/* Cat Mouth */
.cat-mouth {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 15px;
    background: var(--blue-dark);
    border-radius: 0 0 50% 50%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 2px;
    overflow: hidden;
}

.cat-tongue {
    width: 12px;
    height: 10px;
    background: var(--cat-tongue);
    border-radius: 50% 50% 50% 50%;
}

/* Cat Hands */
.cat-hands {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--blue-primary);
    opacity: 0.6;
}

.cat-hand {
    animation: sparkle 1.5s ease-in-out infinite;
}

.cat-hand.right {
    animation-delay: 0.5s;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* ==================== LOCK SCREEN TITLES ==================== */
.lock-title {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--blue-primary);
    margin-bottom: 5px;
    line-height: 1.4;
}

.lock-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--blue-primary);
    margin-bottom: 25px;
}

/* ==================== PIN DOTS ==================== */
.pin-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.pin-dot {
    width: 18px;
    height: 18px;
    border: 2px solid var(--blue-primary);
    border-radius: 50%;
    background: transparent;
    transition: all 0.2s ease;
}

.pin-dot.filled {
    background: var(--blue-primary);
    transform: scale(1.1);
}

.pin-dot.error {
    border-color: #FF6B6B;
    animation: dotShake 0.4s ease;
}

@keyframes dotShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* ==================== NUMBER PAD ==================== */
.numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 280px;
    margin: 0 auto 25px;
}

.numpad-btn {
    width: 80px;
    height: 60px;
    font-size: 1.6rem;
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--blue-primary);
    background: var(--white);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: var(--shadow-numpad);
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.numpad-btn:hover:not(.empty) {
    background: var(--gray-soft);
    transform: scale(1.02);
}

.numpad-btn:active:not(.empty) {
    transform: scale(0.95);
    box-shadow: none;
}

.numpad-btn.empty {
    background: transparent;
    box-shadow: none;
    cursor: default;
}

.numpad-btn.backspace {
    color: var(--blue-primary);
}

.numpad-btn.backspace svg {
    width: 24px;
    height: 24px;
    stroke: var(--blue-primary);
}

/* ==================== PASSWORD CLUE ==================== */
.password-clue {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ==================== MAIN CONTENT ==================== */
#main-content {
    background: var(--gradient-main);
    padding-bottom: 100px;
}

/* Music Toggle Button */
.music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    background: var(--white);
    border: 2px solid var(--blue-soft);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    z-index: 100;
    transition: all 0.3s ease;
}

.music-toggle:hover {
    transform: rotate(15deg) scale(1.1);
    box-shadow: var(--shadow-medium);
}

.music-toggle.playing {
    animation: musicPulse 1s ease-in-out infinite;
    background: var(--blue-light);
}

@keyframes musicPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Sticker Container */
.sticker-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}

.sticker {
    position: absolute;
    font-size: 2.5rem;
    animation: floatSticker 6s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes floatSticker {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-20px) rotate(10deg);
    }

    66% {
        transform: translateY(-10px) rotate(-10deg);
    }
}

/* Greeting Section */
.greeting-section {
    text-align: center;
    padding: 40px 20px;
    max-width: 600px;
    width: 100%;
}

.main-title {
    font-family: var(--font-handwriting);
    font-size: 3rem;
    color: var(--blue-primary);
    margin-bottom: 30px;
    text-shadow: 3px 3px 6px rgba(30, 77, 140, 0.2);
    animation: titleBounce 2s ease-in-out infinite;
}

@keyframes titleBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

/* Typing Effect */
.typing-container {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--blue-light);
}

.typed-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.cursor {
    display: inline-block;
    color: var(--blue-primary);
    font-weight: bold;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Action Button */
.action-btn {
    padding: 18px 40px;
    font-size: 1.2rem;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--white);
    background: var(--gradient-button);
    border: none;
    border-radius: var(--radius-round);
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(30, 77, 140, 0.3);
}

/* ==================== LOVE QUESTION SECTION ==================== */
.love-question-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.question-container {
    background: var(--gradient-card);
    padding: 50px 40px;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-medium);
    text-align: center;
    max-width: 450px;
    width: 100%;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.question-title {
    font-family: var(--font-handwriting);
    font-size: 2.2rem;
    color: var(--blue-primary);
    margin-bottom: 35px;
}

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

.answer-btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-family: var(--font-primary);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-round);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-yes {
    background: var(--gradient-button);
    color: var(--white);
    box-shadow: var(--shadow-soft);
}

.btn-yes:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.btn-no {
    background: var(--blue-light);
    color: var(--text-primary);
    position: relative;
    transition: all 0.1s ease;
}

/* ==================== ENDING SECTION ==================== */
.ending-section {
    padding: 60px 20px;
    width: 100%;
}

.ending-container {
    max-width: 800px;
    margin: 0 auto;
}

.ending-title {
    font-family: var(--font-handwriting);
    font-size: 2.5rem;
    color: var(--blue-primary);
    text-align: center;
    margin-bottom: 40px;
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.photo-item {
    background: var(--white);
    border-radius: var(--radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: var(--shadow-medium);
}

.photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.photo-caption {
    padding: 15px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: var(--blue-light);
}

/* Love Letter */
.love-letter {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);
    border: 3px dashed var(--blue-soft);
    position: relative;
}

.love-letter::before {
    content: '💌';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    background: var(--white);
    padding: 0 10px;
}

.love-letter h3 {
    font-family: var(--font-handwriting);
    font-size: 1.8rem;
    color: var(--blue-primary);
    text-align: center;
    margin-bottom: 25px;
}

.letter-content {
    font-family: var(--font-handwriting);
    font-size: 1.3rem;
    line-height: 2;
    color: var(--text-primary);
}

.letter-content p {
    margin-bottom: 15px;
}

.letter-signature {
    text-align: right;
    font-style: italic;
    color: var(--blue-primary);
    margin-top: 25px;
}

/* ==================== FOOTER ==================== */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    text-align: center;
    border-top: 2px solid var(--blue-light);
}

.footer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 3px 0;
}

.creator-name {
    color: var(--blue-primary);
    font-weight: 600;
}

.copyright {
    font-size: 0.8rem !important;
}

/* ==================== UTILITY CLASSES ==================== */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

/* ==================== STORY SECTIONS ==================== */
.story-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-section {
    display: none;
    min-height: 100vh;
    width: 100%;
    padding: 40px 20px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
}

.story-section.active {
    display: flex;
    position: relative;
}

.section-content {
    max-width: 500px;
    width: 100%;
    text-align: center;
    padding: 40px 30px;
}

.slide-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(10px);
}

.section-title {
    font-family: var(--font-handwriting);
    font-size: 2.2rem;
    color: var(--blue-primary);
    margin-bottom: 30px;
    line-height: 1.3;
}

/* ==================== SLIDE SYSTEM ==================== */
.slide-container {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.slide {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.slide.active {
    display: flex;
}

.slide p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-primary);
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(15px);
}

.slide p:last-child {
    margin-bottom: 0;
}

.slide strong {
    color: var(--blue-primary);
    font-weight: 600;
}

.slide em {
    font-style: italic;
    color: var(--blue-medium);
}

.slide .highlight {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--blue-primary);
}

/* Continue Button */
.continue-btn {
    padding: 14px 35px;
    font-size: 1rem;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--white);
    background: var(--gradient-button);
    border: none;
    border-radius: var(--radius-round);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    margin-top: 10px;
}

.continue-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-medium);
}

.continue-btn:active {
    transform: translateY(0) scale(0.98);
}

/* ==================== LOADING SECTION ==================== */
#section-loading {
    background: var(--gradient-main);
}

.loading-animation {
    margin-bottom: 30px;
}

.heart-loader {
    font-size: 4rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.2);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.2);
    }

    56% {
        transform: scale(1);
    }
}

.loading-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* ==================== PROLOG SECTION ==================== */
#section-prolog .section-title {
    font-size: 3rem;
    margin-bottom: 50px;
}

#section-prolog .section-text p {
    font-size: 1.3rem;
    opacity: 1;
    transform: none;
}

/* ==================== ENDING SECTION ==================== */
.ending-content {
    max-width: 700px;
}

.final-message {
    margin-top: 50px;
    padding: 30px;
    background: var(--white);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);
    border: 2px solid var(--blue-soft);
}

.final-message p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 5px 0;
}

.final-message .signature {
    font-family: var(--font-handwriting);
    font-size: 1.5rem;
    color: var(--blue-primary);
    margin-top: 15px;
}

/* ==================== POLAROID CAROUSEL ALBUM ==================== */
.photo-album {
    margin: 40px 0;
    padding: 35px 20px;
    background: linear-gradient(145deg, #3a2114 0%, #5c3a28 50%, #3a2114 100%);
    border-radius: 18px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* Leather texture overlay */
.photo-album::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 70%),
        radial-gradient(ellipse at 80% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    pointer-events: none;
}

.album-title {
    font-family: var(--font-handwriting);
    font-size: 1.9rem;
    color: #F5DEB3;
    text-align: center;
    margin-bottom: 28px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    position: relative;
}

/* ---- Carousel Layout ---- */
.album-carousel {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.carousel-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: 4px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Polaroid Card ---- */
.polaroid-card {
    min-width: 100%;
    padding: 15px;
    display: flex;
    justify-content: center;
}

.polaroid-card>div:not(.polaroid-tape) {
    position: relative;
}

.polaroid-card .polaroid-tape,
.polaroid-card .polaroid-image,
.polaroid-card .polaroid-caption {
    position: relative;
}



/* We need a wrapper approach - using the card itself */
.polaroid-card {
    flex-direction: column;
    align-items: center;
}

/* The actual polaroid frame wrapper */
.polaroid-image {
    background: #fff;
    padding: 12px 12px 0 12px;
    border-radius: 3px 3px 0 0;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.15);
    max-width: 320px;
    width: 100%;
    position: relative;
}

.polaroid-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 1px;
}

.polaroid-caption {
    background: #fff;
    padding: 14px 12px 18px 12px;
    border-radius: 0 0 3px 3px;
    max-width: 320px;
    width: 100%;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.15);
    margin-top: -1px;
}

.polaroid-caption p {
    font-family: var(--font-handwriting);
    font-size: 1.1rem;
    color: #4a3728;
    text-align: left;
    margin: 0;
    line-height: 1.4;
}

/* Tape decoration */
.polaroid-tape {
    width: 70px;
    height: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 200, 0.7) 0%, rgba(255, 255, 180, 0.5) 100%);
    border: 1px solid rgba(200, 180, 120, 0.3);
    border-radius: 2px;
    margin-bottom: -11px;
    z-index: 2;
    transform: rotate(-2deg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.polaroid-card:nth-child(2) .polaroid-tape {
    transform: rotate(3deg);
}

.polaroid-card:nth-child(3) .polaroid-tape {
    transform: rotate(-1deg);
}

/* ---- Carousel Arrows ---- */
.carousel-arrow {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(245, 222, 179, 0.15);
    color: #F5DEB3;
    font-size: 1.8rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
    line-height: 1;
}

.carousel-arrow:hover {
    background: rgba(245, 222, 179, 0.25);
    transform: scale(1.1);
}

.carousel-arrow:active {
    transform: scale(0.95);
}

/* ---- Dot Indicators ---- */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(245, 222, 179, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #F5DEB3;
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(245, 222, 179, 0.4);
}

.carousel-dot:hover:not(.active) {
    background: rgba(245, 222, 179, 0.5);
}

/* ==========================================================================
   MOBILE RESPONSIVE DESIGN — Complete Overhaul
   ========================================================================== */

/* ---- Tablets & Small Laptops (max-width: 768px) ---- */
@media screen and (max-width: 768px) {

    /* --- Lock Screen --- */
    .lock-container {
        padding: 20px 15px;
    }

    .cat-body {
        width: 85px;
        height: 75px;
    }

    .cat-character {
        margin-bottom: 15px;
    }

    .lock-title,
    .lock-subtitle {
        font-size: 1.1rem;
    }

    .lock-subtitle {
        margin-bottom: 20px;
    }

    .numpad {
        gap: 10px;
        max-width: 260px;
    }

    .numpad-btn {
        width: 70px;
        height: 55px;
        font-size: 1.4rem;
    }

    /* --- Main Content --- */
    .main-title {
        font-size: 2.2rem;
    }

    .typed-text {
        font-size: 1rem;
    }

    .typing-container {
        padding: 20px;
        min-height: 120px;
    }

    .action-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }

    /* --- Questions --- */
    .question-title {
        font-size: 1.8rem;
    }

    .answer-btn {
        padding: 12px 28px;
        font-size: 1rem;
    }

    /* --- Ending / Gallery --- */
    .ending-title {
        font-size: 2rem;
    }

    .photo-gallery {
        grid-template-columns: 1fr;
    }

    .photo-item img {
        height: 180px;
    }

    .love-letter {
        padding: 30px 20px;
    }

    .letter-content {
        font-size: 1.1rem;
    }

    /* --- Stickers & Decorations --- */
    .sticker {
        font-size: 2rem;
    }

    /* --- Story Sections --- */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 22px;
    }

    .section-content {
        padding: 30px 22px;
    }

    .slide-container {
        min-height: 120px;
        margin-bottom: 22px;
    }

    .slide p {
        font-size: 1.05rem;
        line-height: 1.75;
    }

    .slide .highlight {
        font-size: 1.2rem;
    }

    #section-prolog .section-title {
        font-size: 2.5rem;
        margin-bottom: 35px;
    }

    #section-prolog .section-text p {
        font-size: 1.1rem;
    }

    .continue-btn {
        padding: 13px 30px;
        font-size: 0.95rem;
    }

    /* --- Album Carousel on tablet --- */
    .photo-album {
        margin: 30px 0;
        padding: 20px 15px;
    }

    .polaroid-image img {
        height: 200px;
    }
}

/* ---- Mobile Phones (max-width: 480px) ---- */
@media screen and (max-width: 480px) {

    /* --- Global --- */
    .screen {
        padding: 15px 10px;
    }

    /* --- Lock Screen Mobile --- */
    #lock-screen {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 0;
    }

    .lock-container {
        padding: 15px 12px;
        max-width: 340px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .cat-character {
        margin-bottom: 12px;
    }

    .cat-body {
        width: 70px;
        height: 62px;
    }

    .cat-ears {
        width: 60px;
        top: -12px;
    }

    .cat-ear {
        width: 20px;
        height: 20px;
    }

    .cat-ear::after {
        width: 12px;
        height: 12px;
    }

    .cat-eyes {
        top: 22px;
        gap: 18px;
    }

    .cat-blush {
        top: 32px;
        width: 12px;
        height: 6px;
    }

    .cat-blush.left {
        left: 10px;
    }

    .cat-blush.right {
        right: 10px;
    }

    .cat-mouth {
        top: 40px;
        width: 20px;
        height: 12px;
    }

    .cat-tongue {
        width: 10px;
        height: 8px;
    }

    .cat-hands {
        width: 100px;
        top: 3px;
        font-size: 10px;
    }

    .lock-title {
        font-size: 1.05rem;
        margin-bottom: 3px;
    }

    .lock-subtitle {
        font-size: 1.05rem;
        margin-bottom: 15px;
    }

    .pin-dots {
        gap: 10px;
        margin-bottom: 20px;
    }

    .pin-dot {
        width: 14px;
        height: 14px;
        border-width: 2px;
    }

    .numpad {
        gap: 8px;
        max-width: 230px;
        margin-bottom: 18px;
    }

    .numpad-btn {
        width: 62px;
        height: 48px;
        font-size: 1.25rem;
        border-radius: 12px;
    }

    .numpad-btn.backspace svg {
        width: 20px;
        height: 20px;
    }

    .password-clue {
        font-size: 0.85rem;
    }

    .decorative-bubble.bubble-1 {
        width: 100px;
        height: 100px;
        top: -20px;
        right: -20px;
    }

    .decorative-bubble.bubble-2 {
        width: 50px;
        height: 50px;
        top: 50px;
        right: 40px;
    }

    /* --- Music Toggle --- */
    .music-toggle {
        top: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    /* --- Story Sections Mobile --- */
    .story-wrapper {
        min-height: 100dvh;
    }

    .story-section {
        padding: 20px 12px;
        min-height: 100dvh;
    }

    .section-content {
        max-width: 100%;
        padding: 25px 18px;
        border-radius: var(--radius-medium);
    }

    .slide-content {
        border-radius: var(--radius-medium);
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 18px;
    }

    .slide-container {
        min-height: 100px;
        margin-bottom: 18px;
    }

    .slide p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 8px;
    }

    .slide .highlight {
        font-size: 1.15rem;
    }

    #section-prolog .section-title {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }

    .continue-btn {
        padding: 12px 28px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 220px;
    }

    /* --- Loading --- */
    .heart-loader {
        font-size: 3rem;
    }

    .loading-text {
        font-size: 0.95rem;
    }

    /* --- Ending / Album Mobile --- */
    .ending-content {
        max-width: 100%;
        padding: 20px 14px;
    }

    .photo-album {
        margin: 25px -5px;
        padding: 15px 10px;
        border-radius: 14px;
    }

    .album-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .polaroid-card {
        padding: 10px 5px;
    }

    .polaroid-image {
        padding: 8px 8px 0 8px;
    }

    .polaroid-image img {
        height: 180px;
    }

    .polaroid-caption {
        padding: 10px 8px 14px 8px;
    }

    .polaroid-caption p {
        font-size: 0.95rem;
    }

    .polaroid-tape {
        width: 55px;
        height: 18px;
    }

    .carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 1.4rem;
    }

    .carousel-dots {
        gap: 8px;
        margin-top: 15px;
    }

    .carousel-dot {
        width: 7px;
        height: 7px;
    }

    .final-message {
        margin-top: 30px;
        padding: 20px 15px;
    }

    .final-message p {
        font-size: 0.95rem;
    }

    .final-message .signature {
        font-size: 1.3rem;
    }

    /* --- Stickers on mobile --- */
    .sticker {
        font-size: 1.6rem;
        opacity: 0.5;
    }
}

/* ---- Very Small Phones (max-width: 360px) ---- */
@media screen and (max-width: 360px) {
    .lock-container {
        padding: 10px 8px;
        max-width: 300px;
    }

    .cat-body {
        width: 60px;
        height: 52px;
    }

    .cat-ears {
        width: 50px;
        top: -10px;
    }

    .cat-ear {
        width: 17px;
        height: 17px;
    }

    .cat-ear::after {
        width: 10px;
        height: 10px;
    }

    .cat-eyes {
        top: 18px;
        gap: 14px;
    }

    .eye-closed {
        width: 10px;
        height: 5px;
        border-bottom-width: 2px;
    }

    .cat-blush {
        top: 27px;
        width: 10px;
        height: 5px;
    }

    .cat-mouth {
        top: 34px;
        width: 17px;
        height: 10px;
    }

    .cat-tongue {
        width: 8px;
        height: 6px;
    }

    .cat-hands {
        width: 85px;
        font-size: 9px;
    }

    .lock-title,
    .lock-subtitle {
        font-size: 0.95rem;
    }

    .pin-dot {
        width: 13px;
        height: 13px;
    }

    .pin-dots {
        gap: 8px;
        margin-bottom: 16px;
    }

    .numpad {
        gap: 6px;
        max-width: 210px;
        margin-bottom: 14px;
    }

    .numpad-btn {
        width: 56px;
        height: 44px;
        font-size: 1.15rem;
        border-radius: 10px;
    }

    .password-clue {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    #section-prolog .section-title {
        font-size: 1.9rem;
    }

    .slide p {
        font-size: 0.92rem;
        line-height: 1.65;
    }

    .slide .highlight {
        font-size: 1.05rem;
    }

    .section-content {
        padding: 20px 14px;
    }

    .continue-btn {
        padding: 11px 24px;
        font-size: 0.9rem;
    }

    .album-title {
        font-size: 1.1rem;
    }

    .polaroid-image img {
        height: 140px;
    }

    .carousel-arrow {
        width: 28px;
        height: 28px;
        font-size: 1.2rem;
    }
}

/* ---- Landscape mobile fix ---- */
@media screen and (max-height: 500px) and (orientation: landscape) {
    #lock-screen {
        min-height: 100vh;
    }

    .lock-container {
        min-height: auto;
        padding: 10px 15px;
    }

    .cat-character {
        margin-bottom: 8px;
    }

    .cat-body {
        width: 50px;
        height: 45px;
    }

    .lock-title,
    .lock-subtitle {
        font-size: 0.9rem;
    }

    .lock-subtitle {
        margin-bottom: 10px;
    }

    .pin-dots {
        margin-bottom: 12px;
    }

    .pin-dot {
        width: 12px;
        height: 12px;
    }

    .numpad {
        gap: 5px;
        max-width: 200px;
        margin-bottom: 10px;
    }

    .numpad-btn {
        width: 52px;
        height: 36px;
        font-size: 1rem;
        border-radius: 8px;
    }

    .password-clue {
        font-size: 0.75rem;
    }

    .story-section {
        min-height: 100vh;
        padding: 15px 10px;
    }

    .section-content {
        padding: 15px 12px;
    }

    .section-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .slide-container {
        min-height: 60px;
        margin-bottom: 10px;
    }

    .slide p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .continue-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
}