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

:root {
    --bg: #08050c;
    --pink: #ff4f83;
    --pink-light: #ffabc5;
    --purple: #a855f7;
    --gold: #ffd166;
    --text: #ffffff;
    --muted: #cdb0bc;
    --dim: #80616e;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family:
        "Segoe UI",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    overflow-x: hidden;
}

button {
    font-family: inherit;
}

button:focus-visible {
    outline: 3px solid white;
    outline-offset: 5px;
}

#app {
    min-height: 100vh;
    overflow: hidden;
}

#particle-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 20;
}

#flash-overlay {
    position: fixed;
    inset: 0;
    background: white;
    opacity: 0;
    pointer-events: none;
    z-index: 100;
}

#toast {
    position: fixed;
    z-index: 200;
    left: 50%;
    bottom: 35px;
    transform: translate(-50%, 20px);
    opacity: 0;
    padding: 12px 20px;
    border-radius: 30px;
    color: white;
    background: rgba(25, 10, 22, .92);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(15px);
    pointer-events: none;
    transition: .3s ease;
}

#toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}


/* MUSIC */

.music-button {
    position: fixed;
    z-index: 150;
    top: 22px;
    right: 22px;
    width: 43px;
    height: 43px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.06);
    color: white;
    cursor: pointer;
    backdrop-filter: blur(12px);
}

.music-button.playing {
    color: var(--pink-light);
    box-shadow: 0 0 25px rgba(255,79,131,.4);
}


/* SCENES */

.scene {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.scene.active {
    display: flex;
}

.scene-content {
    position: relative;
    z-index: 5;
    width: min(92%, 1000px);
    text-align: center;
}

.scene-background {
    position: absolute;
    inset: 0;
}

.welcome-background {
    background:
        radial-gradient(
            circle at 50% 45%,
            #351327,
            #170914 45%,
            #08050c 85%
        );
}

.balloon-background {
    background:
        radial-gradient(
            circle at 50% 40%,
            #35142d,
            #180a18 45%,
            #08050c
        );
}

.cake-background {
    background:
        radial-gradient(
            circle at 50% 45%,
            #392018,
            #1b0d15 45%,
            #08050c
        );
}

.memories-background {
    background:
        radial-gradient(
            circle at 50% 40%,
            #211337,
            #100817 50%,
            #08050c
        );
}

.letter-background {
    background:
        radial-gradient(
            circle at 50% 40%,
            #3a1429,
            #180914 50%,
            #08050c
        );
}

.finale-background {
    background:
        radial-gradient(
            circle at 50% 50%,
            #4b122d,
            #1d0818 40%,
            #08050c 80%
        );
}

.big-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .15;
}

.glow-pink {
    background: #ff2d75;
    top: 10%;
    left: 10%;
}

.glow-purple {
    background: #9b2cff;
    right: 5%;
    bottom: 5%;
}

.glow-gold {
    background: #ffb52e;
    left: 50%;
    top: 20%;
    transform: translateX(-50%);
}


/* TYPOGRAPHY */

.eyebrow,
.scene-eyebrow {
    color: var(--pink-light);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.scene-content h2 {
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-weight: 400;
    font-size: clamp(40px, 6vw, 70px);
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 15px;
}

.scene-description {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
}


/* WELCOME */

.welcome-content {
    position: relative;
    z-index: 5;
    width: min(90%, 760px);
    text-align: center;
}

.heart-wrapper {
    width: 105px;
    height: 105px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heart {
    color: var(--pink);
    font-size: 82px;
    filter:
        drop-shadow(
            0 0 28px
            rgba(255,79,131,.55)
        );
}

.welcome-content h1 {
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: clamp(45px, 7vw, 80px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 25px;
}

.welcome-content h1 span {
    color: var(--pink-light);
    font-style: italic;
}

.subtitle {
    color: #d8b9c5;
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.headphone-hint {
    margin-top: 17px;
    color: var(--dim);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bottom-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
    align-items: center;
    color: #765766;
    font-size: 9px;
    letter-spacing: 3px;
    white-space: nowrap;
}

.bottom-hint span {
    width: 35px;
    height: 1px;
    background: #563c48;
}


/* BUTTON */

.primary-button {
    min-width: 235px;
    padding: 16px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,.15);
    background:
        linear-gradient(
            135deg,
            #ff477e,
            #d82e68
        );
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    box-shadow:
        0 12px 35px
        rgba(255,50,110,.25);
    transition: .25s ease;
}

.primary-button:hover {
    transform: translateY(-3px);
    box-shadow:
        0 17px 45px
        rgba(255,50,110,.4);
}

.arrow {
    font-size: 20px;
}


/* BALLOONS */

.balloon-area {
    width: min(100%, 700px);
    min-height: 350px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    align-items: center;
    justify-items: center;
}

.birthday-balloon {
    width: 100px;
    height: 132px;
    border: none;
    border-radius: 50% 50% 48% 48%;
    cursor: pointer;
    position: relative;
    box-shadow:
        inset -15px -20px 25px rgba(0,0,0,.16),
        0 15px 35px rgba(0,0,0,.25);
}

.birthday-balloon::before {
    content: "";
    position: absolute;
    width: 13px;
    height: 18px;
    left: 50%;
    bottom: -7px;
    transform: translateX(-50%) rotate(45deg);
    background: inherit;
}

.birthday-balloon::after {
    content: "";
    position: absolute;
    width: 1px;
    height: 75px;
    left: 50%;
    top: 100%;
    background: rgba(255,255,255,.35);
}

.balloon-1 {
    background: linear-gradient(145deg,#ff86a8,#d72d67);
}

.balloon-2 {
    background: linear-gradient(145deg,#d19aff,#7c3aed);
}

.balloon-3 {
    background: linear-gradient(145deg,#ff8b9d,#df244c);
}

.balloon-4 {
    background: linear-gradient(145deg,#f8a8d0,#cf2470);
}

.balloon-5 {
    background: linear-gradient(145deg,#ffa4ad,#be123c);
}

.balloon-6 {
    background: linear-gradient(145deg,#d8b4fe,#8b32df);
}

.counter {
    color: #e7cad4;
    font-size: 12px;
    letter-spacing: 3px;
}

.message {
    min-height: 30px;
    color: #ffabc5;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 17px;
    margin-top: 10px;
}

.complete {
    display: none;
    margin-top: 20px;
}

.complete.visible {
    display: block;
}

.complete-icon {
    font-size: 42px;
    margin-bottom: 7px;
}

.complete h3 {
    font-family: Georgia, serif;
    font-size: 27px;
    font-weight: 400;
}

.complete p {
    color: var(--muted);
    margin: 7px 0 20px;
}


/* CAKE */

.cake-wrapper {
    width: 420px;
    height: 360px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.cake {
    position: relative;
    width: 300px;
    height: 230px;
}

.cake-plate {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(#eee,#aaa);
}

.cake-body {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 270px;
    height: 130px;
    border-radius: 18px 18px 25px 25px;
    background:
        linear-gradient(
            90deg,
            #8e3f4c,
            #c96877,
            #8e3f4c
        );
}

.cake-top {
    position: absolute;
    z-index: 2;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    width: 285px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(#ffb7c8,#e97691);
}

.drip {
    position: absolute;
    bottom: -25px;
    width: 35px;
    height: 40px;
    border-radius: 0 0 20px 20px;
    background: #e97691;
}

.drip1 {
    left: 35px;
}

.drip2 {
    left: 105px;
}

.drip3 {
    right: 100px;
}

.drip4 {
    right: 35px;
}

.decoration {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
}

.d1 {
    top: 45px;
    left: 55px;
}

.d2 {
    top: 75px;
    left: 130px;
}

.d3 {
    top: 40px;
    right: 55px;
}

.candles {
    position: absolute;
    z-index: 5;
    bottom: 195px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    gap: 27px;
}

.candle {
    position: relative;
    width: 18px;
    height: 75px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.candle-body {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 18px;
    height: 65px;
    border-radius: 5px 5px 3px 3px;
    background:
        repeating-linear-gradient(
            -45deg,
            #f5a5ba,
            #f5a5ba 8px,
            #fff 8px,
            #fff 12px
        );
}

.wick {
    position: absolute;
    z-index: 4;
    width: 2px;
    height: 8px;
    left: 50%;
    top: 2px;
    transform: translateX(-50%);
    background: #222;
}

.flame {
    position: absolute;
    z-index: 6;
    width: 17px;
    height: 25px;
    left: 50%;
    top: -24px;
    transform: translateX(-50%);
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 50% 70%,
            #fff,
            #ffd166 35%,
            #ff7b22 65%,
            transparent 70%
        );
}

.candle.blown .flame {
    opacity: 0;
    transform:
        translateX(-50%)
        scale(0);
}

.candle.blown .candle-body {
    opacity: .55;
}


/* MEMORIES */

.memory-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
    max-width: 900px;
    margin: 35px auto;
}

.memory-card {
    min-height: 230px;
    padding: 30px 25px;
    text-align: left;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 22px;
    background: rgba(255,255,255,.045);
    color: white;
    cursor: pointer;
    transition: .3s ease;
}

.memory-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,159,189,.4);
    background: rgba(255,255,255,.09);
}

.memory-number {
    color: #7e6470;
    font-size: 11px;
    letter-spacing: 2px;
}

.memory-symbol {
    display: block;
    margin: 20px 0;
    color: var(--pink-light);
    font-size: 30px;
}

.memory-card h3 {
    font-family: Georgia, serif;
    font-size: 23px;
    font-weight: 400;
    margin-bottom: 10px;
}

.memory-card p {
    color: #b99ba8;
    line-height: 1.6;
    font-size: 14px;
}

.memory-popup {
    position: fixed;
    z-index: 100;
    left: 50%;
    top: 50%;
    width: min(90%, 520px);
    padding: 45px;
    transform: translate(-50%,-45%) scale(.95);
    opacity: 0;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 25px;
    background: rgba(25,10,22,.95);
    backdrop-filter: blur(25px);
    transition: .3s ease;
}

.memory-popup.open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%,-50%) scale(1);
}

.close-button {
    position: absolute;
    right: 18px;
    top: 15px;
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: white;
    font-size: 25px;
    cursor: pointer;
}

.popup-symbol {
    color: var(--pink-light);
    font-size: 45px;
}

.memory-popup h3 {
    font-family: Georgia, serif;
    font-size: 30px;
    font-weight: 400;
    margin: 15px 0;
}

.memory-popup p {
    color: #d4b8c4;
    line-height: 1.8;
}


/* LETTER */

.envelope {
    position: relative;
    width: 330px;
    height: 220px;
    margin: 45px auto 20px;
    cursor: pointer;
}

.envelope-back {
    position: absolute;
    inset: 0;
    border-radius: 5px;
    background: linear-gradient(135deg,#d98ba2,#8f3f59);
    box-shadow: 0 25px 60px rgba(0,0,0,.4);
}

.envelope-front {
    position: absolute;
    z-index: 4;
    left: 0;
    bottom: 0;
    width: 0;
    height: 0;
    border-left: 165px solid transparent;
    border-right: 165px solid transparent;
    border-bottom: 125px solid #a44f69;
}

.envelope-flap {
    position: absolute;
    z-index: 5;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    border-left: 165px solid transparent;
    border-right: 165px solid transparent;
    border-top: 120px solid #c7758d;
    transform-origin: top center;
    transition: .8s ease;
}

.envelope.open .envelope-flap {
    transform: rotateX(180deg);
}

.envelope-heart {
    position: absolute;
    z-index: 8;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    color: white;
    font-size: 30px;
}

.envelope.open .envelope-heart {
    opacity: 0;
}

.letter-paper {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 15px;
    width: 250px;
    height: 170px;
    transform: translateX(-50%);
    background: #fff7f1;
    color: #5c3341;
    transition: .8s ease;
}

.envelope.open .letter-paper {
    bottom: 90px;
}

.letter-paper-content {
    padding: 25px;
    text-align: left;
}

.letter-paper h3 {
    font-family: Georgia, serif;
    font-weight: 400;
    margin: 15px 0 5px;
}

.letter-paper p {
    font-size: 12px;
}

.envelope-hint {
    color: #9f7b89;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.letter-text {
    max-width: 650px;
    margin: 35px auto;
    padding: 30px;
    text-align: left;
    display: none;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    background: rgba(255,255,255,.035);
}

.letter-text.visible {
    display: block;
}

.letter-text p {
    color: #d6bdc7;
    font-family: Georgia, serif;
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 20px;
}

.signature {
    color: var(--pink-light) !important;
    text-align: right;
    font-style: italic;
}

.hidden-button {
    display: none;
}

.hidden-button.visible {
    display: inline-flex;
}


/* FINALE */

.finale-content {
    position: relative;
    z-index: 5;
    width: min(90%,850px);
    text-align: center;
}

.finale-stars {
    color: var(--pink-light);
    font-size: 25px;
    margin-bottom: 25px;
}

.finale-content h2 {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: clamp(45px,7vw,80px);
}

.finale-content h1 {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: clamp(55px,9vw,100px);
    margin-bottom: 25px;
}

.finale-content h1 span {
    color: var(--pink-light);
    font-style: italic;
}

.final-message {
    max-width: 650px;
    margin: auto;
    color: #d4b6c2;
    font-family: Georgia, serif;
    font-size: 19px;
    line-height: 1.8;
}

.final-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 35px auto;
    color: var(--pink-light);
}

.final-divider span {
    width: 80px;
    height: 1px;
    background: rgba(255,159,189,.3);
}

.final-small {
    color: #8c6a78;
    font-size: 12px;
    margin-bottom: 25px;
}

.secondary-button {
    padding: 12px 22px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.05);
    color: #e4cbd4;
    cursor: pointer;
}

.finale-heart {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    color: #ff3e78;
    font-size: 500px;
    opacity: .025;
}


/* =========================================================
   OPENING ZIPPER SCREEN
   ========================================================= */

.opening-background {
    background:
        radial-gradient(
            circle at 50% 35%,
            #3a102c,
            #160817 48%,
            #07040b 88%
        );
}

.opening-stars {
    position: absolute;
    top: 13%;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 171, 197, .28);
    font-size: 12px;
    letter-spacing: 10px;
    white-space: nowrap;
}

.opening-content {
    position: relative;
    z-index: 5;
    width: min(92%, 900px);
    text-align: center;
    padding: 50px 0 70px;
    animation: opening-enter 1.2s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes opening-enter {
    from {
        opacity: 0;
        transform: translateY(25px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.opening-title {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-size: clamp(38px, 5.5vw, 68px);
    line-height: 1.03;
    letter-spacing: -2px;
    margin: 0 auto 15px;
}

.opening-title span {
    color: #fff;
}

.opening-title strong {
    color: var(--pink-light);
    font-weight: 400;
    font-style: italic;
    text-shadow: 0 0 35px rgba(255,79,131,.3);
}

.opening-title em {
    color: #d9bdc8;
    font-size: .55em;
    font-style: normal;
    letter-spacing: 0;
}

.opening-small {
    color: var(--muted);
    font-size: 14px;
    letter-spacing: .4px;
    margin-bottom: 22px;
}

.zipper-wrap {
    position: relative;
    width: min(94vw, 370px);
    height: 300px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.zipper-panels {
    position: absolute;
    inset: 0 72px;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,.09);
    box-shadow: 0 25px 70px rgba(0,0,0,.35);
    background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
    pointer-events: none;
}

.zip-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    background:
        linear-gradient(135deg, rgba(255,79,131,.16), rgba(168,85,247,.10)),
        repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 10px);
    transition: transform .85s cubic-bezier(.2,.8,.2,1);
}

.zip-panel-left {
    left: 0;
    border-right: 1px solid rgba(255,255,255,.06);
}

.zip-panel-right {
    right: 0;
    border-left: 1px solid rgba(255,255,255,.06);
}

.zipper-panels.opened .zip-panel-left {
    transform: translateX(-105%);
}

.zipper-panels.opened .zip-panel-right {
    transform: translateX(105%);
}

.zipper-track-shadow {
    position: absolute;
    width: 54px;
    height: 282px;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 28px;
    background: rgba(0,0,0,.18);
    filter: blur(12px);
}

.zipper-track {
    position: absolute;
    z-index: 4;
    top: 9px;
    left: 50%;
    width: 54px;
    height: 282px;
    transform: translateX(-50%);
    border-radius: 28px;
    background: rgba(12,5,12,.72);
    border: 1px solid rgba(255,255,255,.13);
    box-shadow: inset 0 0 20px rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.25);
    touch-action: none;
}

.zipper-progress {
    position: absolute;
    left: 23px;
    top: 18px;
    width: 8px;
    height: 0;
    border-radius: 10px;
    background: linear-gradient(to bottom, #ff5a91, #ffabc5);
    box-shadow: 0 0 18px rgba(255,79,131,.65);
    pointer-events: none;
}

.zipper-teeth {
    position: absolute;
    top: 18px;
    bottom: 18px;
    width: 8px;
    background: repeating-linear-gradient(
        to bottom,
        #d7b5c1 0 7px,
        transparent 7px 14px
    );
    opacity: .7;
    pointer-events: none;
}

.zipper-teeth-left {
    left: 12px;
}

.zipper-teeth-right {
    right: 12px;
}

.zipper-pull {
    position: absolute;
    z-index: 10;
    top: 7px;
    left: 50%;
    width: 70px;
    height: 72px;
    padding: 0;
    transform: translateX(-50%);
    border: 0;
    border-radius: 20px;
    background: linear-gradient(145deg, #ff6a9b, #d92f68);
    box-shadow: 0 10px 30px rgba(255,50,110,.35), inset 0 1px 1px rgba(255,255,255,.35);
    cursor: grab;
    touch-action: none;
    transition: box-shadow .2s ease, filter .2s ease;
}

.zipper-pull:hover {
    filter: brightness(1.08);
    box-shadow: 0 14px 38px rgba(255,50,110,.5), inset 0 1px 1px rgba(255,255,255,.35);
}

.zipper-pull.dragging {
    cursor: grabbing;
    box-shadow: 0 16px 45px rgba(255,50,110,.55), 0 0 35px rgba(255,79,131,.28);
}

.zipper-pull.snap-back {
    transition: transform .35s cubic-bezier(.2,.8,.2,1);
}

.zipper-pull.unlocked {
    background: linear-gradient(145deg, #ffabc5, #ff4f83);
}

.zipper-ring {
    position: absolute;
    top: 9px;
    left: 50%;
    width: 22px;
    height: 22px;
    transform: translateX(-50%);
    border: 4px solid rgba(255,255,255,.88);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255,255,255,.25);
}

.zipper-pull-body {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    color: white;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.opening-instruction {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    color: #d9bdc8;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.opening-arrow {
    color: var(--pink-light);
    animation: zipper-arrow 1.2s ease-in-out infinite;
}

@keyframes zipper-arrow {
    0%, 100% { transform: translateY(0); opacity: .55; }
    50% { transform: translateY(5px); opacity: 1; }
}

.zipper-unlocked {
    margin-top: 12px;
    color: var(--pink-light);
    font-size: 12px;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(8px);
    transition: .4s ease;
}

.zipper-unlocked.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   HEART CATCHING GAME
   ========================================================= */

.heart-game-scene {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 38%, rgba(255, 100, 150, .18), transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(168, 85, 247, .10), transparent 35%),
        linear-gradient(135deg, #fff0f5, #ffe2ec 48%, #fff8fb);
    color: #452330;
    transition: opacity .8s ease, visibility .8s ease;
}

.heart-game-scene.completed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.heart-game-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 79, 131, .18), transparent 70%);
    filter: blur(18px);
    animation: heart-game-glow 5s ease-in-out infinite;
}

@keyframes heart-game-glow {
    0%,100% { transform: scale(.9); opacity: .55; }
    50% { transform: scale(1.15); opacity: .95; }
}

.heart-game-content {
    position: relative;
    z-index: 10;
    width: min(90%, 650px);
    text-align: center;
    padding: 30px;
    transition: opacity .4s ease, transform .4s ease;
}

.heart-game-eyebrow {
    margin-bottom: 18px;
    color: #c75b7d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
}

.heart-game-title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.05;
    font-weight: 400;
    color: #452330;
}

.heart-game-subtitle {
    margin: 22px 0 8px;
    font-size: 20px;
    color: #714354;
}

.heart-game-instruction {
    margin: 0;
    font-size: 15px;
    color: #956477;
}

.heart-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 25px 0;
    font-size: 27px;
    font-weight: 700;
    color: #d94f78;
}

.heart-counter-divider { opacity: .4; }

.heart-start-button {
    border: 0;
    padding: 15px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff5c8a, #e83e70);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(232, 62, 112, .28);
    transition: transform .25s ease, box-shadow .25s ease;
}

.heart-start-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(232, 62, 112, .38);
}

.heart-start-button:active { transform: scale(.97); }

.heart-game-area {
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
}

.game-heart {
    position: absolute;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 48px;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
    filter: drop-shadow(0 8px 12px rgba(220,55,105,.25));
    transform: scale(var(--heart-scale, 1));
    animation: game-heart-float 2.5s ease-in-out infinite;
    transition: transform .2s ease;
}

.game-heart:hover {
    transform: scale(calc(var(--heart-scale, 1) * 1.25));
}

.game-heart.caught {
    pointer-events: none;
    animation: game-heart-caught .45s ease forwards;
}

@keyframes game-heart-float {
    0%,100% { margin-top: 0; rotate: -8deg; }
    50% { margin-top: -18px; rotate: 8deg; }
}

@keyframes game-heart-caught {
    0% { transform: scale(var(--heart-scale,1)); opacity: 1; }
    100% { transform: scale(2.1); opacity: 0; }
}

.heart-sparkle {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    pointer-events: none;
    z-index: 30;
    animation: heart-sparkle .7s ease-out forwards;
}

@keyframes heart-sparkle {
    0% { transform: translate(0,0) scale(1); opacity: 1; }
    100% { transform: translate(var(--sparkle-x),var(--sparkle-y)) scale(0); opacity: 0; }
}

.heart-game-message {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 6vw, 60px);
    color: #d83f70;
    opacity: 0;
    transform: scale(.7);
    pointer-events: none;
    transition: opacity .5s ease, transform .5s ease;
}

.heart-game-message.visible {
    opacity: 1;
    transform: scale(1);
}

/* =========================================================
   POLAROIDS
   ========================================================= */

.polaroid-container {
    width: min(100%, 1050px);
    margin: 30px auto 45px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    perspective: 1200px;
}

.polaroid {
    position: relative;
    width: 255px;
    margin: 0;
    padding: 12px 12px 25px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,.28);
    opacity: 0;
    transform: translateY(30px) rotate(var(--polaroid-rotation));
    transition: opacity .7s ease, transform .4s ease, box-shadow .3s ease;
}

.polaroid-visible { opacity: 1; }

.polaroid:hover {
    z-index: 5;
    transform: translateY(-12px) rotate(0deg) scale(1.04);
    box-shadow: 0 22px 45px rgba(0,0,0,.35);
}

.polaroid-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg,#f8dce5,#fff3f7);
}

.polaroid-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .5s ease;
}

.polaroid:hover .polaroid-photo img { transform: scale(1.05); }

.polaroid-photo.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c87591;
    font-size: 44px;
}

.polaroid figcaption {
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 5px 0;
    text-align: center;
    color: #4b303b;
    font-family: "Segoe Print", "Bradley Hand", cursive;
    font-size: 14px;
    line-height: 1.35;
}

@media (max-width: 850px) {
    .polaroid-container { flex-wrap: wrap; gap: 18px; }
    .polaroid { width: 220px; }
}

@media (max-width: 600px) {
    .heart-game-subtitle { font-size: 17px; }
    .heart-game-instruction { font-size: 14px; }
    .heart-start-button { padding: 14px 23px; font-size: 15px; }
    .game-heart { width: 58px; height: 58px; font-size: 42px; }
    .polaroid-container { flex-direction: column; align-items: center; gap: 30px; }
    .polaroid { width: min(82vw,300px); }
    .polaroid:nth-child(1) { transform: rotate(-3deg); }
    .polaroid:nth-child(2) { transform: rotate(3deg); }
    .polaroid:nth-child(3) { transform: rotate(-2deg); }
    .polaroid:hover { transform: rotate(0deg) translateY(-8px) scale(1.02); }
}
