:root {
    --ash-wood: #E7ADA2;   
    --nordic-linen: #E4DED4; 
    --pine-smoke: #7A857C;  
    --iron-grey: #5E6462;    
    --frost-white: #F6F7F4;  
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--iron-grey);
    font-family: 'Playfair Display', serif;
    scroll-snap-type: y mandatory;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 1s ease;
}

/* ==================== VAULT OVERLAY ==================== */
#vault-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background: var(--iron-grey);
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 1.5s cubic-bezier(0.4, 0, 0.2, 1),
                filter 1.5s ease;
}

#vault-overlay::before {
    content: '';
    position: absolute;
    inset: -10%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('assets/vault-bg.jpg') no-repeat center center/cover;
    filter: blur(15px);
    z-index: -1;
}

/* Vault Unlocking Animation */
#vault-overlay.vault-unlocking {
    opacity: 0;
    transform: scale(1.1);
    filter: blur(10px);
}

.vault-container {
    width: 90%;
    max-width: 400px;
    padding: 3rem;
    background: rgba(246, 247, 244, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid var(--ash-wood);
    border-radius: 40px;
    text-align: center;
    color: var(--frost-white);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.vault-container h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.vault-text { 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 300; 
    margin-bottom: 1rem; 
    opacity: 0.9;
}

#unlock-date {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--nordic-linen);
    padding: 10px;
    color: var(--frost-white);
    font-size: 1.5rem;
    letter-spacing: 5px;
    text-align: center;
    margin: 20px 0;
    outline: none;
    transition: border-color 0.3s ease;
}

#unlock-date:focus {
    border-bottom-color: var(--ash-wood);
}

#unlock-date::placeholder {
    color: rgba(246, 247, 244, 0.5);
}

.vault-btn {
    background: var(--ash-wood);
    color: var(--frost-white);
    border: none;
    padding: 12px 40px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vault-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(231, 173, 162, 0.3);
}

.vault-btn:active {
    transform: translateY(0);
}

#error-msg {
    margin-top: 1rem;
    color: var(--ash-wood);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    min-height: 20px;
}

/* Shake Animation for Wrong Password */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.vault-container.shake {
    animation: shake 0.5s ease-in-out;
}

/* ==================== MAIN CONTENT ==================== */
#main-content {
    opacity: 0;
    transition: opacity 1s ease;
}

#main-content.fade-in {
    opacity: 1;
}

.hidden { 
    display: none; 
}

/* ==================== EPISODE 1 ==================== */
#episode-1 {
    min-height: 100vh;
    width: 100vw;
    background-color: var(--nordic-linen);
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    padding: 40px 20px;
}

.content-wrapper { 
    text-align: center; 
    max-width: 600px; 
}

.episode-header {
    margin-bottom: 1rem;
}

.episode-number {
    font-family: 'Montserrat', sans-serif;
    color: var(--ash-wood);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.accent-line {
    width: 40px;
    height: 1px;
    background: var(--pine-smoke);
    margin: 10px auto 20px;
}

.episode-title {
    color: var(--iron-grey);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.image-frame {
    padding: 15px;
    background: var(--frost-white);
    border: 1px solid var(--pine-smoke);
    display: inline-block;
    margin-bottom: 1.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.memory-img {
    max-width: 100%;
    max-height: 40vh;
    display: block;
}

.episode-description {
    max-width: 500px;
    margin: 0 auto;
    font-family: 'Montserrat', sans-serif;
    color: var(--iron-grey);
    line-height: 1.8;
}

.quote-style {
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    font-weight: 300;
}

.highlight {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-style: italic;
    color: var(--ash-wood);
    display: block;
    margin-bottom: 10px;
}

.italic {
    font-style: italic;
    font-weight: 600;
    color: var(--pine-smoke);
}

/* ==================== EPISODE 2 ==================== */
#episode-2 {
    min-height: 100vh;
    width: 100vw;
    background-color: var(--ash-wood);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    padding: 30px 0;
    position: relative;
    overflow: hidden;
}

#episode-2 .episode-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 0 20px;
    flex-shrink: 0;
}

#episode-2 .episode-number {
    color: var(--frost-white);
    opacity: 0.9;
}

#episode-2 .accent-line {
    background: var(--frost-white);
    opacity: 0.7;
}

#episode-2 .episode-title {
    color: var(--frost-white);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin-top: 10px;
}

/* Slider Wrapper */
.slider-wrapper {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* The Slider */
.snap-slider {
    display: flex;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.snap-slider::-webkit-scrollbar {
    display: none;
}

/* Each Slide */
.snap-item {
    min-width: 100vw;
    width: 100vw;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    padding: 20px 30px;
    box-sizing: border-box;
}

/* Photo Frame */
.image-frame-v2 {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 3 / 4;
    background: var(--frost-white);
    padding: 12px;
    border: 1px solid var(--pine-smoke);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.image-frame-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Caption Below Photo */
.snap-caption {
    margin-top: 20px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--frost-white);
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    text-align: center;
    max-width: 350px;
    line-height: 1.6;
    padding: 0 10px;
    flex-shrink: 0;
}

/* Navigation Arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--frost-white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 2rem;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.nav-arrow:hover { 
    background: var(--frost-white); 
    color: var(--ash-wood); 
    border-color: var(--frost-white);
}

.nav-arrow.left { left: 15px; }
.nav-arrow.right { right: 15px; }

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    flex-shrink: 0;
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot.active {
    background: var(--frost-white);
    transform: scale(1.3);
}

.slider-dots .dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Hide arrows on touch devices */
@media (hover: none) and (pointer: coarse) {
    .nav-arrow { 
        display: none; 
    }
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .image-frame-v2 {
        max-width: 280px;
        padding: 10px;
    }
    
    .snap-caption {
        font-size: 0.9rem;
        max-width: 300px;
    }
    
    .slider-dots {
        margin-top: 15px;
    }
}

@media (min-width: 768px) {
    .image-frame-v2 {
        max-width: 380px;
    }
    
    .snap-caption {
        max-width: 450px;
        font-size: 1.2rem;
    }
}
/* Snap Title Above Photo */
.snap-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 3.5vw, 1.8rem);
    font-weight: 400;
    color: var(--frost-white);
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 1px;
    position: relative;
}

.snap-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    margin: 10px auto 0;
}

/* ==================== EPISODE 3 ==================== */
#episode-3 {
    width: 100vw;
    background-color: var(--nordic-linen);
    padding: 80px 0;
    overflow: hidden;
}

.episode-3-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.ep3-header {
    text-align: center;
    margin-bottom: 80px;
}

.ep3-header .episode-number {
    color: var(--ash-wood);
}

.ep3-header .episode-title {
    color: var(--iron-grey);
    margin-bottom: 30px;
}

.ep3-intro {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--iron-grey);
    line-height: 2;
    font-style: italic;
    opacity: 0.9;
}

/* ==================== FLOATING PHOTOS ==================== */
.floating-photo {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-photo:hover {
    transform: scale(1.02) rotate(0deg) !important;
}

.tilt-left {
    transform: rotate(-3deg);
}

.tilt-right {
    transform: rotate(3deg);
}

.photo-frame {
    background: var(--frost-white);
    padding: 12px;
    padding-bottom: 40px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.4s ease;
}

.photo-frame:hover {
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.08);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-frame.large {
    padding: 15px;
    padding-bottom: 50px;
}

/* ==================== MEMORY BLOCKS ==================== */
.memory-block {
    margin-bottom: 100px;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.memory-block.revealed {
    opacity: 1;
    transform: translateY(0);
}

.memory-text {
    margin-top: 30px;
}

.memory-quote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: var(--iron-grey);
    line-height: 1.8;
    font-style: italic;
}

.memory-quote em {
    color: var(--ash-wood);
    font-weight: 600;
}

/* ==================== LAYOUT VARIATIONS ==================== */

/* Layout: Left */
.layout-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 500px;
    margin-left: 5%;
}

.layout-left .photo-frame {
    width: 320px;
    height: auto;
}

.layout-left .photo-frame img {
    height: 380px;
}

/* Layout: Right */
.layout-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    max-width: 500px;
    margin-left: auto;
    margin-right: 5%;
}

.layout-right .photo-frame {
    width: 320px;
    height: auto;
}

.layout-right .photo-frame img {
    height: 380px;
}

.layout-right .memory-text {
    text-align: right;
}

/* Layout: Center */
.layout-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.layout-center .photo-frame {
    width: 350px;
    height: auto;
}

.layout-center .photo-frame img {
    height: 420px;
}

/* Layout: Paired */
.layout-paired {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.paired-photos {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: wrap;
}

.paired-photos .size-small .photo-frame {
    width: 220px;
}

.paired-photos .size-small .photo-frame img {
    height: 280px;
}

.paired-photos .size-medium .photo-frame {
    width: 280px;
}

.paired-photos .size-medium .photo-frame img {
    height: 350px;
}

.layout-paired .memory-text {
    text-align: center;
    max-width: 500px;
}

/* Layout: Hero */
.layout-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 120px 0;
}

.layout-hero .photo-frame.large {
    width: 90%;
    max-width: 550px;
}

.layout-hero .photo-frame.large img {
    height: 450px;
}

.layout-hero .memory-text {
    max-width: 600px;
    margin-top: 40px;
}

.layout-hero .memory-quote {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

/* Layout: Trilogy */
.layout-trilogy {
    text-align: center;
    margin: 100px 0;
}

.trilogy-text-top {
    margin-bottom: 40px;
}

.trilogy-text-top .memory-quote {
    max-width: 700px;
    margin: 0 auto;
}

.trilogy-photos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.trilogy-photos .photo-frame {
    width: 240px;
}

.trilogy-photos .photo-frame img {
    height: 300px;
}

/* ==================== CLOSING ==================== */
.ep3-closing {
    text-align: center;
    padding: 80px 20px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.ep3-closing.revealed {
    opacity: 1;
    transform: translateY(0);
}

.closing-line {
    width: 60px;
    height: 1px;
    background: var(--ash-wood);
    margin: 0 auto 30px;
}

.closing-line:last-child {
    margin: 30px auto 0;
}

.closing-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    color: var(--iron-grey);
    line-height: 2;
    font-style: italic;
}

/* ==================== FLOATING ANIMATION ==================== */
@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(80px) rotate(0deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) var(--final-rotation, rotate(0deg));
    }
}

.floating-photo.animate-in {
    animation: floatIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Subtle floating idle animation */
@keyframes floatIdle {
    0%, 100% {
        transform: translateY(0) var(--tilt);
    }
    50% {
        transform: translateY(-8px) var(--tilt);
    }
}

.memory-block.revealed .floating-photo {
    animation: floatIdle 6s ease-in-out infinite;
}

.memory-block.revealed .floating-photo.tilt-left {
    --tilt: rotate(-3deg);
}

.memory-block.revealed .floating-photo.tilt-right {
    --tilt: rotate(3deg);
}

.memory-block.revealed .floating-photo:not(.tilt-left):not(.tilt-right) {
    --tilt: rotate(0deg);
}

/* Stagger animation for paired/trilogy */
.paired-photos .floating-photo:nth-child(1) {
    animation-delay: 0s;
}

.paired-photos .floating-photo:nth-child(2) {
    animation-delay: 0.2s;
}

.trilogy-photos .floating-photo:nth-child(1) {
    animation-delay: 0s;
}

.trilogy-photos .floating-photo:nth-child(2) {
    animation-delay: 0.15s;
}

.trilogy-photos .floating-photo:nth-child(3) {
    animation-delay: 0.3s;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    #episode-3 {
        padding: 60px 0;
    }

    .ep3-header {
        margin-bottom: 60px;
    }

    .memory-block {
        margin-bottom: 70px;
    }

    /* All layouts become centered on mobile */
    .layout-left,
    .layout-right {
        align-items: center;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }

    .layout-right .memory-text {
        text-align: center;
    }

    .layout-left .photo-frame,
    .layout-right .photo-frame,
    .layout-center .photo-frame {
        width: 85vw;
        max-width: 320px;
    }

    .layout-left .photo-frame img,
    .layout-right .photo-frame img,
    .layout-center .photo-frame img {
        height: 350px;
    }

    /* Paired photos stack */
    .paired-photos {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .paired-photos .size-small .photo-frame,
    .paired-photos .size-medium .photo-frame {
        width: 85vw;
        max-width: 300px;
    }

    .paired-photos .size-small .photo-frame img,
    .paired-photos .size-medium .photo-frame img {
        height: 320px;
    }

    /* Hero */
    .layout-hero {
        margin: 80px 0;
    }

    .layout-hero .photo-frame.large {
        width: 90vw;
        max-width: 350px;
    }

    .layout-hero .photo-frame.large img {
        height: 380px;
    }

    /* Trilogy */
    .layout-trilogy {
        margin: 60px 0;
    }

    .trilogy-photos {
        flex-direction: column;
        gap: 20px;
    }

    .trilogy-photos .photo-frame {
        width: 85vw;
        max-width: 280px;
    }

    .trilogy-photos .photo-frame img {
        height: 320px;
    }

    /* Closing */
    .ep3-closing {
        padding: 60px 20px;
    }
}

@media (min-width: 1024px) {
    .layout-left {
        margin-left: 10%;
    }

    .layout-right {
        margin-right: 10%;
    }

    .layout-left .photo-frame,
    .layout-right .photo-frame {
        width: 380px;
    }

    .layout-left .photo-frame img,
    .layout-right .photo-frame img {
        height: 450px;
    }

    .layout-hero .photo-frame.large {
        max-width: 650px;
    }

    .layout-hero .photo-frame.large img {
        height: 520px;
    }

    .trilogy-photos .photo-frame {
        width: 280px;
    }

    .trilogy-photos .photo-frame img {
        height: 350px;
    }
}
/* ==================== EPISODE 4: CATCH THE MOMENTS ==================== */
#episode-4 {
    min-height: 100vh;
    width: 100vw;
    background: linear-gradient(145deg, #7A857C 0%, #5C6B5E 100%);
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
}

.episode-4-container {
    width: 100%;
    height: 100vh;
    position: relative;
}

/* ==================== GAME INTRO ==================== */
.game-intro {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    z-index: 10;
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#episode-4 .episode-header {
    margin-bottom: 20px;
}

#episode-4 .episode-number {
    color: var(--ash-wood);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

#episode-4 .accent-line {
    background: var(--frost-white);
    opacity: 0.6;
    margin: 15px auto 20px;
}

#episode-4 .episode-title {
    color: var(--frost-white);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 400;
    margin-bottom: 40px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.intro-text {
    max-width: 500px;
    margin-bottom: 40px;
}

.intro-quote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: var(--frost-white);
    line-height: 2;
    font-style: italic;
    opacity: 0.95;
}

.game-instructions {
    margin-bottom: 50px;
}

.instruction-text {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--nordic-linen);
    line-height: 1.8;
    font-weight: 300;
}

.golden-text {
    color: var(--ash-wood);
    font-weight: 600;
}

.silver-text {
    color: var(--frost-white);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(246, 247, 244, 0.5);
}

/* Start Button */
.start-game-btn {
    position: relative;
    background: transparent;
    border: 1px solid var(--ash-wood);
    color: var(--frost-white);
    padding: 18px 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.start-game-btn:hover {
    background: var(--ash-wood);
    border-color: var(--ash-wood);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(231, 173, 162, 0.3);
}

.start-game-btn .btn-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, transparent, var(--ash-wood), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.start-game-btn:hover .btn-glow {
    opacity: 0.3;
    animation: glowPulse 2s ease infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

/* ==================== GAME AREA ==================== */
.game-area {
    position: absolute;
    inset: 0;
    z-index: 20;
}

.game-area.hidden {
    display: none;
}

#gameCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* HUD */
.game-hud {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    text-align: center;
}

.memory-counter {
    background: rgba(94, 100, 98, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(246, 247, 244, 0.2);
    padding: 15px 30px;
    border-radius: 50px;
}

.counter-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    color: var(--nordic-linen);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.counter-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--frost-white);
}

.counter-value #caughtCount {
    color: var(--ash-wood);
    font-weight: 600;
}

/* Catcher Element */
.catcher {
    position: absolute;
    width: 80px;
    height: 80px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 25;
    transition: transform 0.1s ease-out;
}

.catcher-icon {
    width: 100%;
    height: 100%;
    color: var(--frost-white);
    opacity: 0.8;
    filter: drop-shadow(0 0 10px rgba(246, 247, 244, 0.3));
}

.catcher-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(231, 173, 162, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: catcherPulse 2s ease infinite;
}

@keyframes catcherPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Memory Reveal Popup */
.memory-reveal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    pointer-events: none;
}

.memory-reveal.hidden {
    display: none;
}

.memory-card {
    background: var(--frost-white);
    padding: 12px;
    padding-bottom: 30px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: memoryPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    max-width: 280px;
}

@keyframes memoryPopIn {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(2deg);
    }
}

.memory-image-frame {
    width: 250px;
    height: 200px;
    overflow: hidden;
}

.memory-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.memory-caption {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    color: var(--iron-grey);
    text-align: center;
    margin-top: 15px;
    font-style: italic;
    line-height: 1.5;
}

/* Dream Reveal */
.dream-reveal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    pointer-events: none;
    text-align: center;
}

.dream-reveal.hidden {
    display: none;
}

.dream-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--frost-white);
    font-style: italic;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    animation: dreamFadeIn 0.8s ease forwards;
    opacity: 0;
}

@keyframes dreamFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== GAME COMPLETE ==================== */
.game-complete {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 60;
    background: linear-gradient(145deg, #7A857C 0%, #5C6B5E 100%);
}

.game-complete.hidden {
    display: none;
}

.completion-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 600px;
    animation: completionFadeIn 1.5s ease forwards;
}

@keyframes completionFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.memory-constellation {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 50px;
}

.constellation-orb {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--ash-wood);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--ash-wood);
    animation: orbitFloat 8s ease-in-out infinite;
}

@keyframes orbitFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); }
}

.completion-text {
    margin-bottom: 40px;
}

.completion-quote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: var(--frost-white);
    line-height: 2;
    font-style: italic;
}

.completion-quote .highlight {
    color: var(--ash-wood);
    font-size: inherit;
    display: inline;
}

.completion-quote em {
    color: var(--nordic-linen);
}

.completion-message {
    margin-bottom: 50px;
    padding: 30px;
    border-top: 1px solid rgba(246, 247, 244, 0.2);
    border-bottom: 1px solid rgba(246, 247, 244, 0.2);
}

.completion-message p {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--nordic-linen);
    line-height: 2;
    font-weight: 300;
}

/* Continue Button */
.continue-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--ash-wood);
    border: none;
    color: var(--frost-white);
    padding: 18px 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.continue-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(231, 173, 162, 0.4);
}

.continue-btn .arrow-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.continue-btn:hover .arrow-icon {
    transform: translateX(5px);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .game-intro {
        padding: 30px 20px;
    }
    
    .intro-quote {
        font-size: 1rem;
    }
    
    .memory-card {
        max-width: 240px;
        padding: 10px;
        padding-bottom: 25px;
    }
    
    .memory-image-frame {
        width: 220px;
        height: 180px;
    }
    
    .catcher {
        width: 100px;
        height: 100px;
    }
    
    .game-hud {
        top: 20px;
    }
    
    .memory-counter {
        padding: 12px 25px;
    }
}

@media (max-width: 480px) {
    .memory-image-frame {
        width: 200px;
        height: 160px;
    }
    
    .memory-caption {
        font-size: 0.85rem;
    }
}
/* ==================== PARTICLE TRANSITION ==================== */
.particle-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
    background: transparent;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform, opacity;
}

.transition-flash {
    position: fixed;
    inset: 0;
    background: var(--frost-white);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.transition-flash.active {
    opacity: 1;
}

/* ==================== EPISODE 5: TWO JARS ==================== */
#episode-5 {
    min-height: 100vh;
    width: 100vw;
    background: linear-gradient(180deg, var(--frost-white) 0%, #EDE9E3 100%);
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    padding: 60px 20px;
}

.episode-5-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    justify-content: center;
}

/* Header */
.ep5-header {
    text-align: center;
    margin-bottom: 60px;
}

#episode-5 .episode-number {
    color: var(--pine-smoke);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

#episode-5 .accent-line {
    background: var(--ash-wood);
    width: 50px;
    margin: 15px auto 25px;
}

#episode-5 .episode-title {
    color: var(--iron-grey);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    margin-bottom: 25px;
}

.ep5-intro {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    color: var(--iron-grey);
    line-height: 2;
    font-style: italic;
    opacity: 0.85;
}

.ep5-intro span {
    color: var(--ash-wood);
    display: block;
}

/* ==================== JARS ==================== */
.jars-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 60px;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.jar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.jar-container:hover {
    transform: translateY(-10px);
}

.jar-container:hover .jar {
    transform: scale(1.02);
}

.jar-container:hover .jar-lid {
    transform: translateY(-5px) rotate(-3deg);
}

/* Jar Structure */
.jar {
    position: relative;
    width: 160px;
    height: 220px;
    transition: transform 0.4s ease;
}

.jar-lid {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lid-top {
    width: 90px;
    height: 20px;
    background: linear-gradient(180deg, #C9A87C 0%, #A68B5B 100%);
    border-radius: 8px 8px 0 0;
    margin: 0 auto;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.lid-band {
    width: 110px;
    height: 15px;
    background: linear-gradient(180deg, #D4B896 0%, #C9A87C 100%);
    border-radius: 3px;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.jar-body {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.jar-glass {
    width: 140px;
    height: 180px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(240, 240, 240, 0.7) 50%,
        rgba(255, 255, 255, 0.8) 100%);
    border: 2px solid rgba(200, 200, 200, 0.5);
    border-radius: 15px 15px 40px 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        inset 0 0 30px rgba(255, 255, 255, 0.5),
        0 10px 40px rgba(0, 0, 0, 0.1),
        0 2px 10px rgba(0, 0, 0, 0.05);
}

.jar-reflection {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 80px;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(255, 255, 255, 0) 100%);
    border-radius: 20px;
    transform: rotate(-10deg);
}

/* Jar Contents */
.jar-contents {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 120px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
    padding: 10px;
}

.floating-heart,
.floating-star {
    font-size: 1.2rem;
    animation: floatContent 3s ease-in-out infinite;
    opacity: 0.9;
}

.floating-heart {
    color: var(--ash-wood);
}

.floating-star {
    color: var(--pine-smoke);
}

.floating-heart:nth-child(1) { animation-delay: 0s; }
.floating-heart:nth-child(2) { animation-delay: 0.5s; }
.floating-heart:nth-child(3) { animation-delay: 1s; }
.floating-heart:nth-child(4) { animation-delay: 1.5s; }
.floating-heart:nth-child(5) { animation-delay: 2s; }

.floating-star:nth-child(1) { animation-delay: 0.2s; }
.floating-star:nth-child(2) { animation-delay: 0.7s; }
.floating-star:nth-child(3) { animation-delay: 1.2s; }
.floating-star:nth-child(4) { animation-delay: 1.7s; }
.floating-star:nth-child(5) { animation-delay: 2.2s; }

@keyframes floatContent {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(5deg); }
    75% { transform: translateY(-4px) rotate(-5deg); }
}

/* Jar Label */
.jar-label {
    margin-top: 25px;
    padding: 12px 25px;
    background: var(--iron-grey);
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.jar-container:hover .jar-label {
    background: var(--ash-wood);
    transform: scale(1.05);
}

.label-text {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    color: var(--frost-white);
    font-style: italic;
    white-space: nowrap;
}

.jar-instruction {
    margin-top: 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    color: var(--pine-smoke);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.jar-container:hover .jar-instruction {
    opacity: 1;
}

/* ==================== NOTE POPUP ==================== */
.note-overlay {
    position: fixed;
    inset: 0;
    background: rgba(94, 100, 98, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.note-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.note-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.note-popup {
    position: relative;
    max-width: 450px;
    width: 100%;
    animation: noteSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes noteSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) rotate(-5deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

/* Close Button */
.note-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 45px;
    height: 45px;
    background: var(--frost-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
    transition: all 0.3s ease;
}

.note-close svg {
    width: 20px;
    height: 20px;
    color: var(--iron-grey);
}

.note-close:hover {
    background: var(--ash-wood);
    transform: scale(1.1) rotate(90deg);
}

.note-close:hover svg {
    color: var(--frost-white);
}

/* Note Paper */
.note-paper {
    background: linear-gradient(145deg, #FFF9F0 0%, #F5EDE3 100%);
    padding: 50px 40px 40px;
    border-radius: 4px;
    position: relative;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: rotate(-1deg);
}

.note-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: repeating-linear-gradient(
        transparent,
        transparent 27px,
        rgba(200, 180, 160, 0.2) 28px
    );
    pointer-events: none;
}

/* Pin */
.note-pin {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: radial-gradient(circle at 30% 30%, #E7ADA2 0%, #C48B7F 100%);
    border-radius: 50%;
    box-shadow: 
        0 3px 10px rgba(0, 0, 0, 0.3),
        inset 0 -2px 5px rgba(0, 0, 0, 0.2);
}

.note-pin::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

/* Note Content */
.note-content {
    position: relative;
    z-index: 2;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.note-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 4vw, 1.7rem);
    color: var(--iron-grey);
    text-align: center;
    line-height: 1.8;
    font-style: italic;
    padding: 20px 0;
}

/* Note Decoration */
.note-decoration {
    position: absolute;
    bottom: 20px;
    right: 25px;
    font-size: 2.5rem;
    opacity: 0.15;
    color: var(--ash-wood);
}

/* Different decorations for different jars */
.note-popup[data-jar="1"] .note-decoration::after {
    content: '♥';
}

.note-popup[data-jar="2"] .note-decoration::after {
    content: '✦';
}

/* Navigation */
.note-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 25px;
}

.note-nav-btn {
    width: 50px;
    height: 50px;
    background: var(--frost-white);
    border: 2px solid var(--nordic-linen);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.note-nav-btn svg {
    width: 24px;
    height: 24px;
    color: var(--iron-grey);
    transition: color 0.3s ease;
}

.note-nav-btn:hover {
    background: var(--ash-wood);
    border-color: var(--ash-wood);
    transform: scale(1.1);
}

.note-nav-btn:hover svg {
    color: var(--frost-white);
}

.note-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.note-nav-btn:disabled:hover {
    background: var(--frost-white);
    border-color: var(--nordic-linen);
}

.note-counter {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--frost-white);
    letter-spacing: 1px;
}

.note-counter span {
    font-weight: 600;
}

/* ==================== EPISODE 5 CLOSING ==================== */
.ep5-closing {
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
}

.ep5-closing .closing-line {
    width: 60px;
    height: 1px;
    background: var(--ash-wood);
    margin: 0 auto 30px;
}

.ep5-closing .closing-line:last-child {
    margin: 30px auto 0;
}

.ep5-closing .closing-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--iron-grey);
    line-height: 2;
    font-style: italic;
}

.ep5-closing .closing-text em {
    color: var(--ash-wood);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .jars-wrapper {
        gap: 40px;
    }
    
    .jar {
        width: 140px;
        height: 190px;
    }
    
    .jar-glass {
        width: 120px;
        height: 150px;
    }
    
    .lid-top {
        width: 75px;
        height: 16px;
    }
    
    .lid-band {
        width: 95px;
        height: 12px;
    }
    
    .jar-label {
        padding: 10px 18px;
    }
    
    .label-text {
        font-size: 0.85rem;
    }
    
    .note-paper {
        padding: 40px 25px 30px;
    }
    
    .note-text {
        font-size: 1.2rem;
    }
    
    .note-navigation {
        gap: 20px;
    }
    
    .note-nav-btn {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .jars-wrapper {
        flex-direction: column;
        gap: 50px;
    }
    
    .jar {
        width: 150px;
        height: 200px;
    }
    
    .jar-glass {
        width: 130px;
        height: 160px;
    }
}
/* ==================== EPISODE 6: OUR FUTURE ==================== */
#episode-6 {
    min-height: 100vh;
    width: 100vw;
    background: linear-gradient(180deg, #5E6462 0%, #4A504E 50%, #3D4341 100%);
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    padding: 80px 20px 100px;
}

.episode-6-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ==================== FLOATING PARTICLES ==================== */
.future-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.future-particle {
    position: absolute;
    background: var(--ash-wood);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) rotate(720deg);
        opacity: 0;
    }
}

/* ==================== HEADER ==================== */
.ep6-header {
    text-align: center;
    margin-bottom: 80px;
    padding-top: 20px;
}

#episode-6 .episode-number {
    color: var(--ash-wood);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

#episode-6 .accent-line {
    background: var(--ash-wood);
    width: 50px;
    height: 1px;
    margin: 15px auto 25px;
    opacity: 0.7;
}

#episode-6 .episode-title {
    color: var(--frost-white);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 400;
    margin-bottom: 25px;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.ep6-intro {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: var(--nordic-linen);
    line-height: 2;
    font-style: italic;
    opacity: 0.9;
}

.ep6-intro span {
    color: var(--ash-wood);
    display: block;
    margin-top: 5px;
}

/* ==================== OPENING LETTER ==================== */
.future-letter {
    max-width: 600px;
    margin: 0 auto 100px;
    padding: 50px 40px;
    background: rgba(246, 247, 244, 0.03);
    border: 1px solid rgba(231, 173, 162, 0.2);
    border-radius: 4px;
    position: relative;
}

.future-letter::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 25px;
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: var(--ash-wood);
    opacity: 0.3;
    line-height: 1;
}

.letter-content {
    position: relative;
    z-index: 2;
}

.letter-greeting {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--ash-wood);
    font-style: italic;
    margin-bottom: 25px;
}

.letter-body {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    color: var(--frost-white);
    line-height: 2;
    font-style: italic;
}

.letter-body em {
    color: var(--ash-wood);
    font-weight: 600;
}

/* ==================== FUTURE PATH ==================== */
.future-path {
    position: relative;
    padding: 40px 0;
}

/* The Connecting Line */
.path-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        var(--ash-wood) 5%,
        var(--ash-wood) 95%,
        transparent 100%
    );
    opacity: 0.4;
    transform: translateX(-50%);
}

/* ==================== VISION CARDS ==================== */
.future-vision {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.future-vision.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Left Aligned Vision */
.vision-left {
    justify-content: flex-start;
    padding-right: 55%;
}

.vision-left .vision-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Right Aligned Vision */
.vision-right {
    justify-content: flex-end;
    padding-left: 55%;
}

.vision-right .vision-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Vision Marker */
.vision-marker {
    position: relative;
    z-index: 5;
}

.marker-dot {
    width: 16px;
    height: 16px;
    background: var(--ash-wood);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--ash-wood);
}

.marker-pulse {
    position: absolute;
    inset: -8px;
    border: 2px solid var(--ash-wood);
    border-radius: 50%;
    opacity: 0;
    animation: markerPulse 2s ease-out infinite;
}

@keyframes markerPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Vision Card */
.vision-card {
    position: relative;
    background: rgba(246, 247, 244, 0.05);
    border: 1px solid rgba(231, 173, 162, 0.25);
    border-radius: 8px;
    padding: 35px 30px;
    max-width: 400px;
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.vision-card:hover {
    transform: translateY(-5px);
    border-color: rgba(231, 173, 162, 0.5);
}

.card-glow {
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(231, 173, 162, 0.1) 0%, transparent 50%);
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.vision-card:hover .card-glow {
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 2;
}

.vision-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
    filter: grayscale(20%);
}

.vision-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    color: var(--frost-white);
    font-weight: 400;
    margin-bottom: 15px;
}

.vision-text {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--nordic-linen);
    line-height: 1.9;
    font-weight: 300;
    opacity: 0.9;
}

/* ==================== FINAL VISION ==================== */
.vision-final {
    justify-content: center;
    padding: 0;
    margin-top: 60px;
    margin-bottom: 100px;
}

.vision-final .vision-marker {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
}

.final-marker .marker-dot {
    width: 24px;
    height: 24px;
    background: var(--frost-white);
    box-shadow: 0 0 30px var(--ash-wood), 0 0 60px rgba(231, 173, 162, 0.3);
}

.final-marker .marker-ring {
    position: absolute;
    inset: -15px;
    border: 1px solid var(--ash-wood);
    border-radius: 50%;
    animation: ringRotate 10s linear infinite;
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.final-card {
    max-width: 500px;
    text-align: center;
    padding: 50px 40px;
    background: rgba(231, 173, 162, 0.08);
    border-color: rgba(231, 173, 162, 0.4);
}

.final-card .vision-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.05rem, 2.5vw, 1.2rem);
    font-style: italic;
    line-height: 2;
}

.final-card .vision-text strong {
    font-size: 1.8rem;
    color: var(--ash-wood);
    display: block;
    margin: 10px 0;
}

/* ==================== CLOSING ==================== */
.future-closing {
    text-align: center;
    padding: 60px 20px;
}

.closing-content {
    max-width: 600px;
    margin: 0 auto;
}

.future-closing .closing-line {
    width: 60px;
    height: 1px;
    background: var(--ash-wood);
    margin: 0 auto 40px;
    opacity: 0.6;
}

.future-closing .closing-line:last-of-type {
    margin: 40px auto;
}

.closing-promise {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: var(--frost-white);
    line-height: 2;
    font-style: italic;
}

.closing-promise em {
    color: var(--ash-wood);
    font-weight: 600;
}

/* ==================== FINALE TEASE ==================== */
.finale-tease {
    margin-top: 60px;
}

.tease-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--nordic-linen);
    font-style: italic;
    margin-bottom: 30px;
    opacity: 0.8;
}

.finale-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: transparent;
    border: 1px solid var(--ash-wood);
    color: var(--frost-white);
    padding: 18px 45px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.finale-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--ash-wood);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.finale-btn:hover::before {
    transform: translateX(0);
}

.finale-btn:hover {
    border-color: var(--ash-wood);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(231, 173, 162, 0.3);
}

.btn-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.btn-arrow svg {
    width: 20px;
    height: 20px;
}

.finale-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* ==================== REVEAL ANIMATIONS ==================== */
.reveal-future {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-future.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal for visions */
.future-vision:nth-child(2) { transition-delay: 0.1s; }
.future-vision:nth-child(3) { transition-delay: 0.15s; }
.future-vision:nth-child(4) { transition-delay: 0.2s; }
.future-vision:nth-child(5) { transition-delay: 0.25s; }
.future-vision:nth-child(6) { transition-delay: 0.3s; }
.future-vision:nth-child(7) { transition-delay: 0.35s; }
.future-vision:nth-child(8) { transition-delay: 0.4s; }
.future-vision:nth-child(9) { transition-delay: 0.45s; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    #episode-6 {
        padding: 60px 15px 80px;
    }
    
    .ep6-header {
        margin-bottom: 60px;
    }
    
    .future-letter {
        padding: 40px 25px;
        margin-bottom: 80px;
    }
    
    .future-letter::before {
        font-size: 3rem;
        top: 15px;
        left: 15px;
    }
    
    /* Stack all visions to center on mobile */
    .future-vision {
        justify-content: center !important;
        padding: 0 !important;
        margin-bottom: 60px;
    }
    
    .vision-left .vision-marker,
    .vision-right .vision-marker {
        display: none;
    }
    
    .path-line {
        display: none;
    }
    
    .vision-card {
        max-width: 100%;
        padding: 30px 25px;
    }
    
    .vision-final {
        margin-top: 40px;
        margin-bottom: 60px;
    }
    
    .final-card {
        padding: 40px 25px;
    }
    
    .future-closing {
        padding: 40px 15px;
    }
    
    .finale-btn {
        padding: 16px 35px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .letter-greeting {
        font-size: 1.3rem;
    }
    
    .vision-icon {
        font-size: 2rem;
    }
    
    .vision-title {
        font-size: 1.2rem;
    }
    
    .vision-text {
        font-size: 0.9rem;
    }
    
    .final-card .vision-text strong {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .vision-card {
        max-width: 380px;
    }
    
    .final-card {
        max-width: 550px;
    }
}
/* ==================== EPISODE 7: THE PROPOSAL ==================== */
#episode-7 {
    min-height: 100vh;
    width: 100vw;
    background: linear-gradient(145deg, #E7ADA2 0%, #D49B8F 50%, #C78B7F 100%);
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
}

.episode-7-container {
    width: 100%;
    min-height: 100vh;
    position: relative;
}

/* ==================== AMBIENT PARTICLES ==================== */
.proposal-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.proposal-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(246, 247, 244, 0.6);
    pointer-events: none;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) scale(1);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) scale(0.5);
        opacity: 0;
    }
}

/* ==================== PROPOSAL STAGES ==================== */
.proposal-stage {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.8s ease;
}

.proposal-stage.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.proposal-stage.fade-out {
    opacity: 0;
}

/* ==================== STAGE 1: THE BOOK ==================== */
.stage-book {
    text-align: center;
}

.book-intro {
    margin-bottom: 50px;
    animation: fadeInDown 1s ease 0.5s both;
}

.book-intro .episode-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--frost-white);
    letter-spacing: 5px;
    text-transform: uppercase;
    opacity: 0.9;
}

.book-intro .accent-line {
    background: var(--frost-white);
    width: 60px;
    height: 1px;
    margin: 20px auto 0;
    opacity: 0.6;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Book */
.floating-book {
    animation: bookFloat 4s ease-in-out infinite, fadeInUp 1s ease 0.8s both;
    cursor: pointer;
}

@keyframes bookFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.book-wrapper {
    perspective: 1000px;
    transition: transform 0.4s ease;
}

.floating-book:hover .book-wrapper {
    transform: scale(1.02);
}

.book {
    position: relative;
    width: 280px;
    height: 380px;
    transform-style: preserve-3d;
    transform: rotateY(-5deg);
    transition: transform 0.4s ease;
}

.floating-book:hover .book {
    transform: rotateY(0deg);
}

.book-cover {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #4A3728 0%, #2D221A 100%);
    border-radius: 5px 15px 15px 5px;
    box-shadow: 
        -5px 5px 20px rgba(0, 0, 0, 0.3),
        inset 0 0 60px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    border-left: 8px solid #3D2E23;
}

.book-cover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    bottom: 10%;
    width: 3px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.1), transparent);
}

/* Cover Decorations */
.cover-decoration {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(231, 173, 162, 0.4);
}

.cover-decoration.top-left {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.cover-decoration.top-right {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
}

.cover-decoration.bottom-left {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
}

.cover-decoration.bottom-right {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

/* Cover Content */
.cover-content {
    text-align: center;
    padding: 20px;
}

.cover-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    color: var(--ash-wood);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0.9;
}

.cover-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: var(--frost-white);
    font-style: italic;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cover-line {
    width: 80px;
    height: 1px;
    background: var(--ash-wood);
    margin: 0 auto 20px;
    opacity: 0.6;
}

.cover-author {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    color: var(--nordic-linen);
    letter-spacing: 2px;
    opacity: 0.8;
}

.book-instruction {
    margin-top: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: var(--frost-white);
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.7;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ==================== STAGE 2: THE STORY ==================== */
.stage-story {
    background: linear-gradient(145deg, #FFF9F0 0%, #F5EDE3 100%);
}

.story-book {
    max-width: 600px;
    width: 100%;
    min-height: 500px;
    background: linear-gradient(145deg, #FFFCF7 0%, #F8F4EE 100%);
    border-radius: 5px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    position: relative;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-book::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 5%;
    bottom: 5%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.08), transparent);
}

/* Story Pages */
.book-pages {
    position: relative;
    min-height: 350px;
}

.story-page {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease;
}

.story-page.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.story-page.exit {
    opacity: 0;
    transform: translateX(-30px);
}

.page-content {
    margin-bottom: 40px;
}

.story-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--iron-grey);
    line-height: 2;
    font-style: italic;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(20px);
    animation: textReveal 0.8s ease forwards;
}

.story-text.delayed {
    animation-delay: 0.4s;
}

.story-text.delayed-more {
    animation-delay: 0.8s;
}

.story-text em {
    color: var(--ash-wood);
    font-weight: 600;
}

.story-text.highlight-text {
    font-size: clamp(1.4rem, 3.5vw, 1.8rem);
    color: var(--ash-wood);
}

@keyframes textReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page Navigation Button */
.page-next-btn {
    background: var(--ash-wood);
    color: var(--frost-white);
    border: none;
    padding: 15px 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.5s ease 1.2s forwards;
}

.page-next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(231, 173, 162, 0.4);
}

.page-next-btn.pulse-btn {
    animation: fadeIn 0.5s ease 1.2s forwards, btnPulse 2s ease infinite 1.7s;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231, 173, 162, 0.5); }
    50% { box-shadow: 0 0 0 15px rgba(231, 173, 162, 0); }
}

/* ==================== STAGE 3: THE QUESTION ==================== */
.stage-question {
    background: linear-gradient(145deg, #E7ADA2 0%, #D49B8F 100%);
}

.question-container {
    text-align: center;
    max-width: 600px;
}

/* Ring Box */
.ring-box {
    position: relative;
    width: 180px;
    height: 160px;
    margin: 0 auto 50px;
    perspective: 800px;
}

.ring-box-lid {
    position: absolute;
    top: 0;
    left: 10px;
    right: 10px;
    height: 40px;
    background: linear-gradient(180deg, #4A3728 0%, #3D2E23 100%);
    border-radius: 8px 8px 0 0;
    transform-origin: top center;
    transform: rotateX(0deg);
    transition: transform 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 5;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.ring-box-lid::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 6px;
    background: var(--ash-wood);
    border-radius: 3px;
}

.ring-box.open .ring-box-lid {
    transform: rotateX(-120deg);
}

.ring-box-base {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, #3D2E23 0%, #2D221A 100%);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.3),
        inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

.ring-cushion {
    position: absolute;
    width: 100px;
    height: 60px;
    background: linear-gradient(145deg, #5E4A3D, #4A3728);
    border-radius: 50%;
    transform: rotateX(60deg);
}

/* The Ring */
.ring {
    position: relative;
    width: 60px;
    height: 60px;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: opacity 0.8s ease 0.5s, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s;
    z-index: 10;
}

.ring-box.open .ring {
    opacity: 1;
    transform: translateY(-10px) scale(1);
}

.ring-band {
    position: absolute;
    inset: 5px;
    border: 6px solid #FFD700;
    border-radius: 50%;
    background: transparent;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.5),
        inset 0 0 10px rgba(255, 215, 0, 0.3);
}

.ring-gem {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #FFFFFF 0%, #E0E0E0 50%, #FFFFFF 100%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
}

.gem-sparkle {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.8) 50%, transparent 60%);
    animation: sparkle 2s linear infinite;
}

@keyframes sparkle {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* The Question Text */
.the-question {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    margin-bottom: 50px;
}

.the-question.visible {
    opacity: 1;
    transform: translateY(0);
}

.question-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--frost-white);
    font-style: italic;
    margin-bottom: 20px;
    opacity: 0.9;
}

.question-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: var(--frost-white);
    font-weight: 400;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

/* Answer Buttons */
.answer-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.answer-buttons.visible {
    opacity: 1;
    transform: translateY(0);
}

.answer-btn {
    padding: 20px 50px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.btn-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.btn-subtext {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Yes Button */
.yes-btn {
    background: var(--frost-white);
    color: var(--ash-wood);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.yes-btn:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.yes-btn .btn-text {
    color: var(--ash-wood);
}

/* Not Yet Button */
.notyet-btn {
    background: transparent;
    border: 1px solid rgba(246, 247, 244, 0.5);
    color: var(--frost-white);
}

.notyet-btn:hover {
    background: rgba(246, 247, 244, 0.1);
    border-color: var(--frost-white);
}

/* ==================== STAGE 4: CELEBRATION ==================== */
.stage-celebration {
    background: linear-gradient(145deg, #E7ADA2 0%, #D49B8F 100%);
}

#confettiCanvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.celebration-container {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 40px 20px;
}

.celebration-content {
    animation: celebrationIn 1s ease forwards;
}

@keyframes celebrationIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.celebration-ring {
    margin-bottom: 40px;
    animation: ringBounce 1s ease 0.5s;
}

@keyframes ringBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.celebration-ring .ring {
    width: 100px;
    height: 100px;
    opacity: 1;
    transform: none;
    margin: 0 auto;
}

.celebration-ring .ring-band {
    border-width: 10px;
}

.celebration-ring .ring-gem {
    width: 35px;
    height: 35px;
    top: -15px;
}

.celebration-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: var(--frost-white);
    margin-bottom: 25px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    animation: titleReveal 0.8s ease 0.3s both;
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.celebration-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--frost-white);
    line-height: 2;
    font-style: italic;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: textFadeIn 0.8s ease 0.6s both;
}

@keyframes textFadeIn {
    from { opacity: 0; }
    to { opacity: 0.95; }
}

.celebration-date {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 25px 40px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 40px;
    animation: dateFadeIn 0.8s ease 0.9s both;
}

@keyframes dateFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.date-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    color: var(--frost-white);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0.8;
}

.date-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--frost-white);
    font-weight: 600;
}

.celebration-message {
    margin-bottom: 30px;
    animation: messageFadeIn 0.8s ease 1.2s both;
}

@keyframes messageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.celebration-message p {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--frost-white);
    font-style: italic;
    opacity: 0.9;
}

.celebration-hearts {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: heartsFadeIn 0.8s ease 1.5s both;
}

@keyframes heartsFadeIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.celebration-hearts span {
    font-size: 2rem;
    color: var(--frost-white);
    animation: heartBeat 1.5s ease infinite;
}

.celebration-hearts span:nth-child(2) {
    animation-delay: 0.2s;
    font-size: 2.5rem;
}

.celebration-hearts span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
    60% { transform: scale(1); }
}

/* ==================== STAGE 5: NOT YET ==================== */
.stage-notyet {
    background: linear-gradient(145deg, #E7ADA2 0%, #D49B8F 100%);
}

.notyet-container {
    text-align: center;
    max-width: 550px;
    padding: 40px 20px;
}

.notyet-content {
    animation: notyetIn 1s ease forwards;
}

@keyframes notyetIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notyet-icon {
    margin-bottom: 30px;
}

.notyet-icon svg {
    width: 60px;
    height: 60px;
    color: var(--frost-white);
    opacity: 0.9;
    animation: gentlePulse 3s ease infinite;
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
}

.notyet-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: var(--frost-white);
    margin-bottom: 35px;
    font-weight: 400;
}

.notyet-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--frost-white);
    line-height: 2;
    font-style: italic;
    margin-bottom: 30px;
    opacity: 0.95;
}

.notyet-promise {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--frost-white);
    line-height: 2;
    font-style: italic;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 40px;
}

.notyet-promise em {
    display: block;
    margin-top: 10px;
    font-size: 1.1em;
}

.notyet-closing {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.notyet-closing p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--frost-white);
    line-height: 1.8;
    opacity: 0.85;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .proposal-stage {
        padding: 30px 15px;
    }
    
    .book {
        width: 240px;
        height: 320px;
    }
    
    .cover-title {
        font-size: 3rem;
    }
    
    .story-book {
        padding: 40px 25px;
        min-height: 450px;
    }
    
    .book-pages {
        min-height: 320px;
    }
    
    .ring-box {
        width: 150px;
        height: 140px;
        margin-bottom: 40px;
    }
    
    .ring-box-base {
        height: 100px;
    }
    
    .ring {
        width: 50px;
        height: 50px;
    }
    
    .answer-buttons {
        width: 100%;
        max-width: 300px;
    }
    
    .answer-btn {
        padding: 18px 40px;
    }
    
    .celebration-ring .ring {
        width: 80px;
        height: 80px;
    }
    
    .celebration-date {
        padding: 20px 30px;
    }
}

@media (max-width: 480px) {
    .book {
        width: 220px;
        height: 300px;
    }
    
    .cover-title {
        font-size: 2.5rem;
    }
    
    .story-text {
        font-size: 1.1rem;
    }
    
    .question-text {
        font-size: 2.2rem;
    }
    
    .btn-text {
        font-size: 1.3rem;
    }
}
/* ==================== ANSWER BUTTONS - UPDATED ==================== */
.answer-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    position: relative;
    min-height: 200px;
    width: 100%;
    max-width: 350px;
}

.answer-buttons.visible {
    opacity: 1;
    transform: translateY(0);
}

.answer-btn {
    padding: 20px 50px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 220px;
}

.btn-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.btn-subtext {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Yes Button */
.yes-btn {
    background: var(--frost-white);
    color: var(--ash-wood);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.yes-btn:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.yes-btn .btn-text {
    color: var(--ash-wood);
}

/* No Button - The Runaway Button */
.no-btn {
    background: transparent;
    border: 1px solid rgba(246, 247, 244, 0.4);
    color: var(--frost-white);
    position: relative;
    transition: all 0.15s ease-out;
    z-index: 5;
}

.no-btn:hover {
    border-color: rgba(246, 247, 244, 0.6);
}

.no-btn.running {
    position: fixed;
    z-index: 9999;
}

.no-btn.shrinking {
    transform: scale(0.85);
    opacity: 0.7;
}

.no-btn.tiny {
    transform: scale(0.6);
    opacity: 0.5;
    padding: 12px 30px;
}

.no-btn.tiny .btn-text {
    font-size: 1rem;
}

.no-btn.tiny .btn-subtext {
    display: none;
}

/* ==================== PLAYFUL MESSAGES ==================== */
.playful-messages {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9998;
    pointer-events: none;
    text-align: center;
}

.playful-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: var(--frost-white);
    font-style: italic;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    background: rgba(94, 100, 98, 0.9);
    padding: 20px 40px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.playful-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */
@media (max-width: 768px) {
    .answer-buttons {
        max-width: 280px;
    }
    
    .answer-btn {
        padding: 18px 40px;
        min-width: 200px;
    }
    
    .btn-text {
        font-size: 1.3rem;
    }
    
    .playful-text {
        font-size: 1.1rem;
        padding: 15px 25px;
        max-width: 90vw;
    }
}
/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .vault-container {
        padding: 2rem;
    }
    
    .image-frame-v2 {
        height: 350px;
    }
    
    .snap-caption {
        max-width: 90%;
    }
}