/* ========================================================= */
/* MAX-LEVEL PINTEREST & AWWWARDS ROMANTIC MOBILE STYLES    */
/* ========================================================= */

:root {
    --bg-pink: linear-gradient(135deg, #ffeef2 0%, #ffd6e0 50%, #fec5d5 100%);
    --card-surface: rgba(255, 255, 255, 0.94);
    --pink-primary: #ff5e86;
    --pink-secondary: #ff758c;
    --pink-dark: #b82b54;
    --gold: #f59e0b;
    --text-dark: #4a2837;
    --text-muted: #825b6d;
    --shadow-soft: 0 15px 35px rgba(255, 94, 134, 0.22);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    font-family: 'Quicksand', 'Nunito', sans-serif;
    background: var(--bg-pink);
    color: var(--text-dark);
    position: relative;
    user-select: none;
}

#trail-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1500;
}
#petal-canvas, #effects-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}
#effects-canvas {
    z-index: 800;
}

.hidden {
    display: none !important;
}

/* ========================================================= */
/* THE LOVE EXPRESS TRAIN                                    */
/* ========================================================= */
.train-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 240, 245, 0.92);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

.train-track-line {
    position: absolute;
    width: 120%;
    height: 6px;
    background: repeating-linear-gradient(90deg, #d4a5b8, #d4a5b8 10px, transparent 10px, transparent 20px);
    border-top: 2px solid #b87b95;
    border-bottom: 2px solid #b87b95;
    top: 55%;
}

.love-train-assembly {
    position: absolute;
    top: 40%;
    left: -400px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    animation: trainDriveForward 2.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards;
    filter: drop-shadow(0 8px 15px rgba(255, 94, 134, 0.3));
}

@keyframes trainDriveForward {
    0% { left: -420px; transform: scale(0.9); }
    50% { left: 25%; transform: scale(1.05); }
    100% { left: 115%; transform: scale(1.1); }
}

.train-engine-front {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.engine-body {
    font-size: 52px;
    display: inline-block;
    transform: scaleX(-1);
    animation: engineChugBounce 0.4s infinite alternate;
}

.train-smoke-stream {
    position: absolute;
    top: -24px;
    right: 5px;
    display: flex;
    gap: 6px;
}

.train-smoke-stream span {
    font-size: 18px;
    animation: puffSmokeBackwards 0.6s infinite alternate;
}
.train-smoke-stream span:nth-child(2) { animation-delay: 0.2s; }
.train-smoke-stream span:nth-child(3) { animation-delay: 0.4s; }

@keyframes puffSmokeBackwards {
    0% { transform: translate(0, 0) scale(0.7); opacity: 0.5; }
    100% { transform: translate(-20px, -20px) scale(1.3); opacity: 1; }
}

@keyframes engineChugBounce {
    0% { transform: scaleX(-1) translateY(0); }
    100% { transform: scaleX(-1) translateY(-4px); }
}

.train-wagon {
    background: linear-gradient(135deg, #ffccd8, #ff9bbb);
    border: 2px solid #ff758c;
    border-radius: 8px;
    width: 58px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.wagon-item { font-size: 26px; }

.train-connector {
    width: 8px;
    height: 4px;
    background: #555;
    margin-bottom: 12px;
}

.wagon-wheel {
    position: absolute;
    bottom: -6px;
    width: 12px;
    height: 12px;
    background: #333;
    border: 2px solid #ffd700;
    border-radius: 50%;
}
.w-left { left: 6px; }
.w-right { right: 6px; }

.train-toast-banner {
    position: absolute;
    bottom: 25%;
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pink-dark);
    text-align: center;
    padding: 0 20px;
}


/* ========================================================= */
/* PINTEREST RETRO CASSETTE MUSIC BAR                        */
/* ========================================================= */
.retro-cassette-bar {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.92);
    border: 1.5px solid #ffccd8;
    backdrop-filter: blur(10px);
    padding: 5px 12px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(255, 94, 134, 0.15);
}

.cassette-tape-icon {
    display: flex;
    align-items: center;
    gap: 3px;
}

.tape-hole {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px dashed var(--pink-primary);
    animation: spin 3s linear infinite;
}

.tape-strip { width: 10px; height: 2px; background: #666; }

.cassette-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--pink-dark);
}

.cassette-play-btn {
    background: linear-gradient(135deg, var(--pink-primary), var(--pink-secondary));
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}


/* ========================================================= */
/* TOP STEP INDICATOR & PERSONALIZE NAME                     */
/* ========================================================= */
.top-nav {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.top-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-indicator {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--pink-dark);
    text-transform: uppercase;
}

.name-custom-btn {
    background: #fff;
    border: 1px dashed var(--pink-primary);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--pink-primary);
    cursor: pointer;
}

.step-progress-line {
    width: 130px;
    height: 5px;
    background: rgba(255, 94, 134, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.step-fill {
    width: 12%;
    height: 100%;
    background: var(--pink-primary);
    transition: width 0.4s ease;
}

.name-input-box {
    width: 100%;
    padding: 10px 16px;
    border-radius: 20px;
    border: 1.5px solid #ffccd8;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    margin: 12px 0 16px;
    text-align: center;
}
.name-input-box:focus { border-color: var(--pink-primary); }

.modal-btn-row {
    display: flex;
    gap: 8px;
    justify-content: center;
}
.cancel-btn {
    background: #eee !important;
    color: #666 !important;
}


/* ========================================================= */
/* MOBILE VIEWPORT & CARDS (3D ZOOMING TRANSITION)           */
/* ========================================================= */
.mobile-viewport {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 10;
}

.screen-card {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    padding-top: 55px;
    padding-bottom: 65px;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.7) translateZ(-200px);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
}

.screen-card.active-card {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateZ(0);
    z-index: 20;
}

.screen-card.passed-card {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.8) translateZ(300px);
    z-index: 30;
}

.card-content {
    width: 100%;
    max-width: 440px;
    height: 100%;
    max-height: 85vh;
    max-height: 85dvh;
    background: var(--card-surface);
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 28px;
    padding: 24px 18px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.chapter-badge {
    background: linear-gradient(135deg, #ffeef2, #ffd6e0);
    color: var(--pink-dark);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 94, 134, 0.3);
    margin-bottom: 12px;
}

.title-serif {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--pink-dark);
    margin-bottom: 4px;
}

.subtitle-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 16px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--pink-primary), #ff758c);
    color: white;
    border: none;
    padding: 13px 26px;
    border-radius: 40px;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 94, 134, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: auto;
    width: 90%;
    max-width: 320px;
}
.action-btn:active { transform: scale(0.97); }

/* LOCKED BUTTON STATE WHILE REWRITE ANIMATION IS RUNNING */
.action-btn.btn-locked {
    opacity: 0.6 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
    background: linear-gradient(135deg, #d4a5b8, #cca6b6) !important;
    box-shadow: none !important;
    transform: none !important;
}


/* ========================================================= */
/* CHAPTER 0: 3D GRAND PASTEL GATES & REWRITE ANIMATION      */
/* ========================================================= */
.gate-card-layout {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.gates-wrapper {
    position: absolute;
    inset: 0;
    perspective: 1200px;
    pointer-events: none;
    z-index: 2;
}

.palace-gate {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    background: linear-gradient(135deg, #fff5f8, #ffd6e0);
    border: 3px solid #ff9bbb;
    box-shadow: 0 10px 30px rgba(255, 94, 134, 0.25);
    transition: transform 1.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.left-gate {
    left: 0;
    transform-origin: left center;
    border-radius: 20px 0 0 20px;
    border-right: 2px solid #ff758c;
}

.right-gate {
    right: 0;
    transform-origin: right center;
    border-radius: 0 20px 20px 0;
    border-left: 2px solid #ff758c;
}

.left-gate.open { transform: rotateY(-110deg); }
.right-gate.open { transform: rotateY(110deg); }

.gate-wreath { font-size: 2.5rem; opacity: 0.6; }

.gate-handle {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 45px;
    background: linear-gradient(to right, #ffd700, #ffb300);
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    transform: translateY(-50%);
}
.left-handle { right: 10px; }
.right-handle { left: 10px; }

.gate-dialog {
    position: relative;
    z-index: 5;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #ffccd8;
    border-radius: 28px;
    padding: 35px 22px;
    box-shadow: 0 15px 40px rgba(255, 94, 134, 0.25);
    backdrop-filter: blur(12px);
    transition: opacity 0.8s, transform 0.8s;
}

.pinterest-washi-tape {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--pink-primary);
    background: #fff0f3;
    padding: 4px 12px;
    border-radius: 14px;
    margin-bottom: 12px;
    display: inline-block;
}

.main-pink-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.8rem;
    color: var(--pink-primary);
    line-height: 1.15;
    margin-bottom: 12px;
}

/* DYNAMIC REWRITE: KHUSHI -> ✍️ -> AKSHUUU */
.rewrite-wrapper {
    display: inline-block;
    position: relative;
    color: var(--pink-primary);
    min-width: 80px;
}

.writing-hand {
    display: inline-block;
    font-size: 2rem;
    animation: handWritingShake 0.35s infinite alternate ease-in-out;
    margin-left: 4px;
    vertical-align: middle;
}

@keyframes handWritingShake {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    100% { transform: translateY(-6px) rotate(-16deg) scale(1.1); }
}

.sweet-prompt {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
    min-height: 44px;
    transition: color 0.3s;
}

.pulsing-heart {
    font-size: 1.3rem;
    animation: heartBeat 1.2s infinite;
}


/* ========================================================= */
/* CHAPTER 1: BLESSING CLOCK & LETTER                        */
/* ========================================================= */
.love-counter-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff0f3;
    border: 1.5px dashed #ff9bbb;
    border-radius: 18px;
    padding: 12px 14px;
    width: 100%;
    margin-bottom: 14px;
}

.counter-header {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--pink-dark);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.clock-display {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--pink-primary);
    margin-bottom: 4px;
}

.counter-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

.pinterest-paper-letter {
    position: relative;
    background: #fff;
    border: 1.5px solid #ffccd8;
    border-radius: 18px;
    padding: 22px 16px;
    text-align: left;
    margin-bottom: 16px;
    box-shadow: 0 6px 20px rgba(255, 94, 134, 0.1);
}

.tape-sticker-top {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 16px;
    background: rgba(255, 204, 216, 0.85);
    border-radius: 2px;
}

.letter-salutation {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: var(--pink-primary);
    margin-bottom: 8px;
}

.letter-text {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #553a47;
    margin-bottom: 8px;
}

.letter-couple-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff0f3;
    border: 1px dashed #ff9bbb;
    border-radius: 12px;
    padding: 6px 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(255, 94, 134, 0.1);
}

.letter-couple-thumb {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(255, 94, 134, 0.25);
}

.letter-couple-caption {
    font-family: 'Dancing Script', cursive;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--pink-primary);
}

.letter-signature {
    font-family: 'Dancing Script', cursive;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--pink-primary);
    text-align: right;
    margin-top: 10px;
    line-height: 1.3;
}

.signature-name {
    font-size: 1.6rem;
    color: var(--pink-dark);
}


/* ========================================================= */
/* CHAPTER 2: BLOOMING BOUQUET ("PHOOL NIKLE")               */
/* ========================================================= */
.bouquet-box {
    position: relative;
    width: 150px;
    height: 170px;
    margin: 10px 0 16px;
    cursor: pointer;
    user-select: none;
}

.flower-bunch {
    position: relative;
    width: 100%;
    height: 110px;
}

.single-flower {
    position: absolute;
    font-size: 38px;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.f1 { top: 10px; left: 15px; }
.f2 { top: -2px; left: 45px; }
.f3 { top: 10px; left: 80px; }
.f4 { top: 38px; left: 10px; }
.f5 { top: 32px; left: 45px; }
.f6 { top: 38px; left: 85px; }
.f7 { top: 15px; left: 50px; }

.bloomed .f1 { transform: translate(-30px, -25px) scale(1.3) rotate(-20deg); }
.bloomed .f2 { transform: translate(0px, -40px) scale(1.4); }
.bloomed .f3 { transform: translate(30px, -25px) scale(1.3) rotate(20deg); }
.bloomed .f4 { transform: translate(-45px, 0px) scale(1.25) rotate(-35deg); }
.bloomed .f5 { transform: translate(0px, -10px) scale(1.3); }
.bloomed .f6 { transform: translate(45px, 0px) scale(1.25) rotate(35deg); }
.bloomed .f7 { transform: translate(0px, -20px) scale(1.45); }

.bouquet-wrapper-paper {
    position: absolute;
    bottom: 0;
    left: 25px;
    width: 100px;
    height: 80px;
    background: linear-gradient(135deg, #ffd6e0, #ffccd8);
    border-radius: 0 0 40px 40px;
    border: 2px solid #ff758c;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(255, 94, 134, 0.2);
}

.bouquet-bow { font-size: 32px; }

.flower-message {
    background: #fff0f3;
    border: 1.5px solid #ffccd8;
    border-radius: 18px;
    padding: 16px 14px;
    margin-bottom: 16px;
    animation: popIn 0.5s ease;
}

.flower-message h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 1.45rem;
    color: var(--pink-primary);
    margin-bottom: 4px;
}

.flower-message p {
    font-size: 0.88rem;
    color: var(--text-muted);
}


/* ========================================================= */
/* CHAPTER 3: BIRTHDAY CAKE & QUEEN FRAME                    */
/* ========================================================= */
.bday-queen-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 4px 0 10px;
}

.queen-crown-icon {
    font-size: 1.8rem;
    animation: bounceSlow 2s infinite ease-in-out;
    margin-bottom: -8px;
    z-index: 2;
}

.queen-avatar-glow {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #ffccd8, #ff758c, #ffd700);
    box-shadow: 0 0 18px rgba(255, 117, 140, 0.45);
}

.queen-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    display: block;
}

.queen-badge-text {
    font-family: 'Dancing Script', cursive;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--pink-dark);
    margin-top: 5px;
}

.cake-mobile {
    position: relative;
    width: 170px;
    cursor: pointer;
    user-select: none;
    margin: 10px 0 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.candle-row {
    position: relative;
    width: 100%;
    height: 35px;
}

.candle {
    position: absolute;
    width: 8px;
    height: 35px;
    background: repeating-linear-gradient(45deg, #fff, #fff 4px, #ff758c 4px, #ff758c 8px);
    border-radius: 3px;
    bottom: 0;
}
.candle:nth-child(1) { left: 45px; }
.candle.center-c { left: 81px; height: 42px; }
.candle:nth-child(3) { left: 117px; }

.flame {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 18px;
    background: radial-gradient(ellipse at bottom, #ffd700 0%, #ff5722 65%, transparent 100%);
    border-radius: 50% 50% 20% 20%;
    box-shadow: 0 0 12px #ffeb3b, 0 0 20px #ff5722;
    animation: flicker 0.8s infinite alternate;
}
.flame.off { display: none !important; }

.smoke {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: rgba(180, 180, 180, 0.6);
    border-radius: 50%;
    opacity: 0;
}
.smoke.puff { animation: smokePuff 1.2s ease-out forwards; }

.cake-layer-top {
    width: 120px;
    height: 48px;
    background: linear-gradient(to right, #fff0f3, #ffccd8);
    border-radius: 10px 10px 4px 4px;
    position: relative;
    box-shadow: inset 0 -4px 6px rgba(0,0,0,0.06);
    z-index: 2;
}

.cake-layer-bottom {
    width: 160px;
    height: 56px;
    background: linear-gradient(to right, #ffd6e0, #ffb3c1);
    border-radius: 10px 10px 4px 4px;
    position: relative;
    box-shadow: inset 0 -4px 6px rgba(0,0,0,0.06);
    z-index: 1;
    margin-top: -5px;
}

.cream-drip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: #fff;
    border-radius: 8px;
}

.cake-toppings {
    position: absolute;
    top: 12px;
    width: 100%;
    text-align: center;
    font-size: 13px;
}

.cake-dish-base {
    position: absolute;
    bottom: -10px;
    width: 190px;
    height: 15px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(255, 94, 134, 0.2);
}

.cake-banner {
    background: #fff0f3;
    border: 2px dashed var(--pink-primary);
    padding: 12px 16px;
    border-radius: 20px;
    font-family: 'Dancing Script', cursive;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pink-primary);
    margin-bottom: 16px;
    animation: popIn 0.5s ease;
}


/* ========================================================= */
/* CHAPTER 4: PINTEREST POLAROIDS                            */
/* ========================================================= */
.photo-controls-bar { margin-bottom: 12px; }

.upload-photo-btn {
    background: #fff;
    border: 1.5px dashed var(--pink-primary);
    color: var(--pink-primary);
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(255, 94, 134, 0.12);
}

.polaroid-stream {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    width: 100%;
    padding: 8px 4px 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.polaroid-stream::-webkit-scrollbar { display: none; }

.mobile-polaroid {
    flex: 0 0 240px;
    height: 310px;
    perspective: 900px;
    scroll-snap-align: center;
    cursor: pointer;
}

.polaroid-card-3d {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.mobile-polaroid.flipped .polaroid-card-3d {
    transform: rotateY(180deg);
}

.polaroid-side {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    background: #fff;
    border-radius: 16px;
    padding: 10px 10px 14px;
    box-shadow: 0 10px 24px rgba(255, 94, 134, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.washi-tape-pin {
    width: 50px;
    height: 13px;
    background: rgba(255, 204, 216, 0.85);
    border-radius: 2px;
    margin-bottom: 6px;
}

.polaroid-photo-frame {
    width: 100%;
    height: 215px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #fdf5f7;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.polaroid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    transition: transform 0.4s ease;
}

.mobile-polaroid:hover .polaroid-img {
    transform: scale(1.04);
}

.frame-tag {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.polaroid-label {
    font-family: 'Dancing Script', cursive;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--pink-dark);
    margin-top: 8px;
}

.back-side {
    transform: rotateY(180deg);
    background: #fff5f8;
    border: 2px dashed #ff9bbb;
    justify-content: center;
    padding: 16px;
}

.back-side h4 {
    font-family: 'Dancing Script', cursive;
    font-size: 1.35rem;
    color: var(--pink-primary);
    margin-bottom: 6px;
}

.back-side p {
    font-size: 0.85rem;
    line-height: 1.45;
    color: #664455;
    font-style: italic;
}

.polaroid-sign {
    font-family: 'Dancing Script', cursive;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--pink-primary);
    margin-top: 8px;
    text-align: right;
    width: 100%;
}

.view-fullscreen-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 117, 140, 0.35);
    border-radius: 14px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--pink-primary);
    padding: 3px 8px;
    backdrop-filter: blur(4px);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 5;
    transition: transform 0.2s, background 0.2s;
}

.view-fullscreen-btn:hover {
    transform: scale(1.05);
    background: var(--pink-primary);
    color: #fff;
}

/* PHOTO FULLSCREEN LIGHTBOX MODAL */
.photo-lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.lightbox-content {
    background: #fff;
    border-radius: 24px;
    padding: 16px 16px 20px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: popIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90dvh;
    overflow-y: auto;
}

.lightbox-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    background: #fff0f3;
    border: none;
    font-size: 1.2rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--pink-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.lightbox-img {
    width: 100%;
    max-height: 52vh;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 12px;
    border: 2.5px solid #ffccd8;
    box-shadow: 0 4px 15px rgba(255, 94, 134, 0.2);
}

.lightbox-title {
    font-family: 'Dancing Script', cursive;
    font-size: 1.65rem;
    color: var(--pink-primary);
    margin-bottom: 4px;
}

.lightbox-caption {
    font-size: 0.88rem;
    line-height: 1.45;
    color: #553a47;
    margin-bottom: 8px;
    font-style: italic;
}

.lightbox-sign {
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--pink-dark);
}

.lightbox-heart-btn {
    margin-top: 10px;
    background: linear-gradient(135deg, #ff758c, #ff3366);
    color: #fff;
    border: none;
    border-radius: 22px;
    padding: 9px 20px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 51, 102, 0.35);
    transition: transform 0.2s;
}

.lightbox-heart-btn:active {
    transform: scale(0.95);
}


/* ========================================================= */
/* CHAPTER 5: "OPEN WHEN..." ENVELOPES                       */
/* ========================================================= */
.open-when-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    margin-bottom: 16px;
}

.envelope-item {
    background: #fff;
    border: 1.5px solid #ffccd8;
    border-radius: 16px;
    padding: 16px 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 94, 134, 0.1);
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.envelope-item:active { transform: scale(0.96); }
.envelope-item:hover { border-color: var(--pink-primary); }

.env-icon { font-size: 28px; margin-bottom: 6px; }

.env-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--pink-dark);
    line-height: 1.3;
}

.envelope-item.special-highlight-env {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #fff2f6 0%, #ffe0ec 100%);
    border: 1.5px solid #ff758c;
    box-shadow: 0 4px 18px rgba(255, 117, 140, 0.22);
}
.envelope-item.special-highlight-env .env-title {
    color: #c9184a;
    font-size: 0.84rem;
}

.open-when-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3500;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    padding: 24px 14px 60px;
    animation: fadeIn 0.25s ease;
    display: block;
}

.modal-card {
    background: #fff;
    border: 2px solid #ffccd8;
    border-radius: 24px;
    padding: 24px 18px 24px;
    max-width: 380px;
    width: 100%;
    margin: 20px auto 40px auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    text-align: center;
    position: relative;
    touch-action: pan-y !important;
    animation: popIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-close-corner-btn {
    position: sticky;
    top: 0;
    float: right;
    margin-right: -4px;
    margin-top: -6px;
    background: #fff0f3;
    border: 1px solid #ffccd8;
    color: #ff3366;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 10;
    transition: transform 0.2s, background 0.2s;
}
.modal-close-corner-btn:active {
    transform: scale(0.92);
    background: #ffd5df;
}

.modal-seal { font-size: 32px; display: block; margin-bottom: 8px; }

.modal-card h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: var(--pink-primary);
    margin-bottom: 8px;
    padding: 0 10px;
}

.modal-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #553a47;
    margin-bottom: 18px;
    white-space: pre-line;
    text-align: left;
    padding: 0 6px;
}

.modal-bottom-close-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(255, 94, 134, 0.3);
}

.small-btn {
    background: linear-gradient(135deg, var(--pink-primary), #ff758c);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}


/* ========================================================= */
/* CHAPTER 6: PERSONAL VOICE NOTE (MAX LEVEL)                */
/* ========================================================= */
.voice-memo-widget {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff0f3;
    border: 1.5px solid #ffccd8;
    border-radius: 22px;
    padding: 14px 18px;
    width: 100%;
    margin-bottom: 16px;
    box-shadow: 0 6px 18px rgba(255, 94, 134, 0.12);
}

.mic-circle {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--pink-primary), #ff758c);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 94, 134, 0.35);
    transition: transform 0.2s;
}
.mic-circle:active { transform: scale(0.92); }

.voice-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.voice-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--pink-dark);
}

.voice-visualizer {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 16px;
}

.voice-visualizer span {
    width: 3px;
    background: var(--pink-primary);
    border-radius: 2px;
    height: 30%;
    transition: height 0.2s;
}

.voice-playing .voice-visualizer span {
    animation: barDance 0.8s infinite alternate ease-in-out;
}
.voice-visualizer span:nth-child(2) { animation-delay: 0.1s; }
.voice-visualizer span:nth-child(3) { animation-delay: 0.3s; }
.voice-visualizer span:nth-child(4) { animation-delay: 0.2s; }
.voice-visualizer span:nth-child(5) { animation-delay: 0.4s; }
.voice-visualizer span:nth-child(6) { animation-delay: 0.15s; }
.voice-visualizer span:nth-child(7) { animation-delay: 0.25s; }
.voice-visualizer span:nth-child(8) { animation-delay: 0.35s; }

@keyframes barDance {
    0% { height: 20%; }
    100% { height: 100%; }
}

.voice-transcript-card {
    background: #fff;
    border: 1.5px dashed #ff9bbb;
    border-radius: 18px;
    padding: 18px;
    text-align: left;
    margin-bottom: 16px;
    position: relative;
}

.quote-symbol {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    color: #ffccd8;
    line-height: 10px;
    margin-bottom: 8px;
}

.voice-words {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #553a47;
    margin-bottom: 10px;
}

.author-tag {
    font-family: 'Dancing Script', cursive;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pink-primary);
    text-align: right;
}


/* ========================================================= */
/* CHAPTER 7: FLOATING BALLOON POP GAME                      */
/* ========================================================= */
.balloon-stage {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin: 20px 0 25px;
    width: 100%;
}

.floating-balloon {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: balloonFloat 2.4s infinite ease-in-out alternate;
    transition: transform 0.2s;
}
.floating-balloon:nth-child(2) { animation-delay: 0.8s; }
.floating-balloon:nth-child(3) { animation-delay: 1.6s; }

.floating-balloon:active { transform: scale(1.15); }

.balloon-body {
    font-size: 52px;
    filter: drop-shadow(0 6px 12px rgba(255, 94, 134, 0.25));
}

.balloon-str {
    color: #cca6b6;
    font-weight: bold;
    margin-top: -6px;
}

.balloon-popped {
    animation: popAnim 0.3s forwards !important;
}

@keyframes popAnim {
    0% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0); opacity: 0; }
}

@keyframes balloonFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-14px); }
}

.balloon-reveal-box {
    background: #fff0f3;
    border: 1.5px dashed var(--pink-primary);
    padding: 14px 18px;
    border-radius: 18px;
    font-family: 'Dancing Script', cursive;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--pink-primary);
    width: 100%;
    margin-bottom: 16px;
    min-height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}


/* ========================================================= */
/* CHAPTER 8: FINALE, STORY CARD & COUPONS                   */
/* ========================================================= */
.coupons-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-bottom: 16px;
}

.mobile-coupon {
    background: #fff;
    border: 2px dashed #ff9bbb;
    border-radius: 16px;
    padding: 12px 14px;
    text-align: left;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 94, 134, 0.08);
}

.coupon-pill-tag {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--pink-primary);
    background: #fff0f3;
    padding: 2px 8px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 4px;
}

.mobile-coupon h4 {
    font-size: 0.95rem;
    color: var(--pink-dark);
    margin-bottom: 2px;
}

.mobile-coupon p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.claim-badge {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--pink-primary);
    border: 1px solid var(--pink-primary);
    padding: 4px 10px;
    border-radius: 12px;
}

.mobile-coupon.redeemed {
    opacity: 0.6;
    pointer-events: none;
}
.mobile-coupon.redeemed .claim-badge {
    background: #888;
    color: white;
    border-color: #888;
}

/* INSTAGRAM STORY CERTIFICATE CARD */
.story-share-card {
    background: #fff;
    border: 2px solid var(--gold);
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.15);
    text-align: center;
    width: 100%;
}

.crown-icon { font-size: 28px; margin-bottom: 4px; }

.story-share-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--pink-dark);
    margin-bottom: 6px;
}

.story-share-card p {
    font-size: 0.85rem;
    color: #664455;
    line-height: 1.45;
    margin-bottom: 10px;
}

.stamp-seal {
    display: inline-block;
    background: rgba(255, 94, 134, 0.12);
    border: 1px dashed var(--pink-primary);
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--pink-primary);
}


/* ========================================================= */
/* THE SECRET HILARIOUS PRANK CARD ("FUCK YOU 🖕")           */
/* ========================================================= */
.prank-card-container {
    width: 100%;
    margin-top: 14px;
    margin-bottom: 16px;
}

.prank-warning-box {
    background: linear-gradient(135deg, #fff2f4, #ffe1e6);
    border: 2px dashed #ff3366;
    border-radius: 20px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 51, 102, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    user-select: none;
}
.prank-warning-box:active { transform: scale(0.97); }

.hazard-badge {
    background: #ff3366;
    color: white;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 8px;
    animation: hazardBlink 1.4s infinite alternate;
}

@keyframes hazardBlink {
    0% { opacity: 0.8; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1.02); }
}

.prank-skull {
    font-size: 38px;
    margin-bottom: 6px;
}

.prank-warning-box h4 {
    font-size: 1.15rem;
    color: #b81442;
    margin-bottom: 4px;
}

.prank-warning-txt {
    font-size: 0.82rem;
    color: #663344;
    line-height: 1.4;
    margin-bottom: 12px;
}

.prank-trigger-btn {
    background: linear-gradient(135deg, #ff3366, #ff5e86);
    color: white;
    border: none;
    padding: 9px 22px;
    border-radius: 25px;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.35);
}

.prank-revealed-box {
    background: #fff;
    border: 3px solid #ff3366;
    border-radius: 24px;
    padding: 24px 18px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(255, 51, 102, 0.3);
    animation: prankPopShake 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes prankPopShake {
    0% { transform: scale(0.4) rotate(0deg); opacity: 0; }
    30% { transform: scale(1.15) rotate(-8deg); opacity: 1; }
    60% { transform: scale(0.95) rotate(8deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.middle-finger-emoji {
    font-size: 68px;
    display: inline-block;
    animation: fingerWiggle 1s infinite alternate ease-in-out;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.15));
    margin-bottom: 8px;
}

@keyframes fingerWiggle {
    0% { transform: translateY(0) rotate(-6deg); }
    100% { transform: translateY(-8px) rotate(6deg); }
}

.fuck-you-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: #ff3366;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.fuck-you-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a2837;
    margin-bottom: 16px;
    font-weight: 600;
}

.prank-ack-btn {
    background: linear-gradient(135deg, #ff3366, #ff758c) !important;
    padding: 10px 24px !important;
    font-size: 0.92rem !important;
}


/* FINALE FOOTER */
.finale-footer { text-align: center; margin-top: 8px; }

.beating-heart {
    font-size: 2.2rem;
    animation: heartBeat 1.2s infinite;
}

.sweet-ending {
    font-family: 'Dancing Script', cursive;
    font-size: 1.35rem;
    color: var(--pink-dark);
    margin-bottom: 12px;
}

.replay-btn {
    background: #fff0f3;
    color: var(--pink-primary);
    border: 1.5px solid var(--pink-primary);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}


/* ========================================================= */
/* BOTTOM NAVIGATION BAR (HIDDEN AS REQUESTED)               */
/* ========================================================= */
.bottom-nav-bar {
    display: none !important;
}

/* ========================================================= */
/* MULTI-CHAPTER COUPLE PHOTO SHOWCASE STYLES                */
/* ========================================================= */
/* Gate Couple Polaroid */
.gate-couple-polaroid {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    padding: 6px 6px 8px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(255, 94, 134, 0.2);
    border: 1px solid #ffccd8;
    margin-bottom: 12px;
}

.gate-polaroid-img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    object-position: center 30%;
    border-radius: 8px;
}

.gate-polaroid-sub {
    font-family: 'Dancing Script', cursive;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--pink-dark);
    margin-top: 4px;
}

/* Chapter 2 Floral Reveal Photo */
.flower-photo-reveal {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flower-reveal-img {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    border: 3px solid #ffccd8;
    box-shadow: 0 4px 15px rgba(255, 117, 140, 0.35);
}

.flower-photo-caption {
    font-family: 'Dancing Script', cursive;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--pink-primary);
    margin-top: 6px;
    text-align: center;
}

/* Chapter 5 Modal Letter Photo */
.modal-letter-photo {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    object-position: center center;
    border-radius: 14px;
    margin: 8px 0 6px;
    border: 2px solid #ffccd8;
    box-shadow: 0 4px 12px rgba(255, 94, 134, 0.15);
    flex-shrink: 0;
}

.modal-photo-caption {
    font-family: 'Dancing Script', cursive;
    font-size: 1.05rem;
    color: var(--pink-primary);
    margin-bottom: 10px;
    font-weight: 700;
}

/* Chapter 6 Voice Album Cover */
.voice-album-cover {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 14px;
}

.voice-cover-img {
    width: 140px;
    height: 95px;
    object-fit: cover;
    border-radius: 12px;
    border: 2.5px solid #ffccd8;
    box-shadow: 0 6px 18px rgba(255, 94, 134, 0.25);
}

.voice-cover-tag {
    font-family: 'Dancing Script', cursive;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--pink-dark);
    margin-top: 5px;
}

/* Chapter 7 Balloon Photo Card */
.balloon-photo-card {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.balloon-pop-thumb {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--pink-primary);
    box-shadow: 0 3px 8px rgba(255, 94, 134, 0.3);
    flex-shrink: 0;
}

.balloon-photo-card p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--pink-primary);
    line-height: 1.35;
}

/* Chapter 8 Certificate & Prank Photos */
.cert-couple-badge {
    margin: 10px 0 6px;
    display: flex;
    justify-content: center;
}

.cert-couple-img {
    width: 100px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid #ffd700;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.prank-couple-thumb {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ff3366;
    margin: 6px auto 10px;
    display: block;
    box-shadow: 0 3px 10px rgba(255, 51, 102, 0.3);
}


/* KEYFRAMES */
@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.22); }
}

@keyframes flicker {
    0% { transform: translateX(-50%) rotate(-3deg) scale(0.95); }
    100% { transform: translateX(-50%) rotate(3deg) scale(1.05); }
}

@keyframes smokePuff {
    0% { opacity: 0.8; transform: translate(-50%, 0) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -30px) scale(3); filter: blur(3px); }
}

@keyframes popIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}
