/* ============================================================
   common.css — Shared Design System for Girlfriend's Day Scrapbook
   ============================================================ */

/* --- Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Custom Properties --- */
:root {
    --pink-light: #FFD1DC;
    --pink: #FFB6C1;
    --pink-hot: #FF69B4;
    --magenta: #E91E7A;
    --maroon: #800020;
    --maroon-dark: #5C0015;
    --cream: #FFF8F0;
    --cream-dark: #FAF0E6;
    --gold: #FFD700;
    --purple: #9B59B6;
    --purple-light: #D4A5E5;
    --text-dark: #2B2B2B;
    --white: #FFFFFF;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    overflow: hidden;
    background: var(--pink);
    position: relative;
}

/* Vintage Grain Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 5;
    opacity: 0.15;
    mix-blend-mode: color-burn;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; }
button { font-family: inherit; }
.hidden { display: none !important; }

/* ============================================================
   LOADING SCREEN
   ============================================================ */
#loading-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--pink-light);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    flex-direction: column;
    gap: 15px;
}
.loading-hearts { font-size: 3rem; animation: gentle-bounce 1s ease-in-out infinite; }

/* ============================================================
   OUTER WRAPPER
   ============================================================ */
.outer-wrapper {
    background-color: var(--pink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pov-title { text-align: center; margin-bottom: 12px; }
.pov-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--maroon);
    font-weight: 700;
}
.annotation-text { text-align: center; margin-top: 12px; }
.annotation {
    font-family: 'Indie Flower', cursive;
    font-size: 1.4rem;
    color: var(--maroon-dark);
    line-height: 1.4;
}

/* ============================================================
   MUSIC TOGGLE
   ============================================================ */
.music-toggle {
    position: fixed;
    bottom: 20px; right: 20px;
    z-index: 9998;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--maroon);
    color: white;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.music-toggle:hover { transform: scale(1.1); background: var(--maroon-dark); }

/* ============================================================
   BACK BUTTON
   ============================================================ */
.btn-back {
    position: absolute;
    top: 18px;
    left: 22%;
    z-index: 10;
    background: rgba(128,0,32,0.12);
    border: 1.5px solid rgba(128,0,32,0.25);
    color: var(--maroon);
    border-radius: 20px;
    padding: 6px 16px;
    font-family: 'Patrick Hand', cursive;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
}
.btn-back:hover {
    background: rgba(128,0,32,0.2);
    transform: translateX(-3px);
}

/* ============================================================
   SCREENS — Base Layout
   ============================================================ */
.screen {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.screen.active { display: flex; }

.screen-content {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--cream);
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 23px, rgba(200,185,170,0.18) 23px, rgba(200,185,170,0.18) 24px),
        repeating-linear-gradient(90deg, transparent, transparent 23px, rgba(200,185,170,0.18) 23px, rgba(200,185,170,0.18) 24px);
    overflow-y: auto;
    overflow-x: hidden;
}

.screen-main-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    overflow-y: auto;
    justify-content: center;
}

.center-content {
    justify-content: center;
    gap: 18px;
}

/* ============================================================
   TORN PAPER EDGE (Left Side) — Softer, more organic
   ============================================================ */
.torn-edge-left {
    position: absolute;
    left: -350px;
    top: 50%;
    width: 125vh;
    height: 310px;
    transform-origin: center center;
    transform: translateY(-50%) rotate(90deg);
    background-image: url('../assets/images/decor/left-vintage-parchment.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(6px 0px 14px rgba(0,0,0,0.22));
}
.torn-edge-left::after {
    display: none;
}

/* Bottom Right Scrap 1: Pink Grid Paper Torn Edge (Enlarged) */
.deco-bottom-pink-grid {
    position: absolute;
    bottom: -70px;
    right: 150px;
    width: 440px;
    height: auto;
    z-index: 1;
    pointer-events: none;
    transform: rotate(2deg);
    filter: drop-shadow(-3px -4px 12px rgba(0,0,0,0.18));
}

/* Bottom Right Scrap 2: Torn Vintage Paper Corner Scrap (Enlarged) */
.deco-bottom-vintage-corner {
    position: absolute;
    bottom: -80px;
    right: -50px;
    width: 400px;
    height: auto;
    z-index: 1;
    pointer-events: none;
    transform: rotate(-6deg);
    filter: drop-shadow(-4px -4px 14px rgba(0,0,0,0.22));
}

/* ============================================================
   DECORATIONS — Base + Positioned Classes
   ============================================================ */
.decorations {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.deco {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    user-select: none;
    -webkit-user-select: none;
}

/* ============================================================
   STARS — Big, prominent, layered
   ============================================================ */
.deco-star-1 {
    top: 5px; right: 5px;
    width: 110px;
    transform: rotate(-10deg);
    animation: shimmer 2.5s infinite alternate;
    z-index: 3;
}
.deco-star-2 {
    top: 75px; right: 100px;
    width: 80px;
    transform: rotate(15deg);
    animation: shimmer 3s infinite 0.5s alternate;
    z-index: 3;
}
.deco-star-3 {
    top: 15px; right: 120px;
    width: 55px;
    transform: rotate(-20deg);
    animation: shimmer 2s infinite 1s alternate;
    z-index: 3;
}
.deco-star-4 {
    top: 100px; right: 15px;
    width: 60px;
    transform: rotate(25deg);
    animation: shimmer 2.8s infinite 0.3s alternate;
    z-index: 3;
}
.deco-star-5 {
    top: 130px; right: 80px;
    width: 45px;
    transform: rotate(-5deg);
    animation: shimmer 2.2s infinite 0.8s alternate;
    z-index: 3;
}

/* ============================================================
   TORN PAPER CORNERS — Big, covering corners, layered depth
   ============================================================ */
.deco-torn-bottom-left {
    bottom: -10px; left: 10%;
    width: 320px;
    transform: scaleX(-1);
    opacity: 0.92;
    z-index: 1;
}
.deco-torn-top-right-corner {
    top: -5px; right: -5px;
    width: 250px;
    opacity: 0.88;
    z-index: 1;
}

/* ============================================================
   FLOWER DECORATIONS — Big, prominent accents
   ============================================================ */
.deco-flower-bottom-right {
    bottom: 8px; right: 12px;
    width: 150px;
    transform: rotate(-10deg);
    opacity: 0.88;
    z-index: 2;
}
.deco-small-flower-1 {
    bottom: 80px; right: 140px;
    width: 85px;
    transform: rotate(20deg);
    opacity: 0.7;
    z-index: 1;
}
.deco-small-flower-2 {
    top: 25px; left: 28%;
    width: 65px;
    transform: rotate(-15deg);
    opacity: 0.55;
    z-index: 1;
}
.deco-small-flower-3 {
    bottom: 50px; left: 25%;
    width: 75px;
    transform: rotate(12deg);
    opacity: 0.7;
    z-index: 1;
}
.deco-flower-music-bottom {
    bottom: 10px; left: 22%;
    width: 100px;
    transform: rotate(-8deg);
    opacity: 0.75;
    z-index: 1;
}
.deco-flower-music-left {
    bottom: 70px; left: 18%;
    width: 80px;
    transform: rotate(15deg) scaleX(-1);
    opacity: 0.65;
    z-index: 1;
}
.deco-rose-final {
    bottom: 20px; left: 25%;
    width: 90px;
    transform: rotate(-12deg);
    opacity: 0.75;
    z-index: 1;
}
.deco-sunflower-final {
    top: 45%; left: 18%;
    width: 75px;
    transform: rotate(20deg) translateY(-50%);
    opacity: 0.65;
    z-index: 1;
}

/* ============================================================
   WASHI TAPE — Wide, prominent, angled
   ============================================================ */
.deco-washi-top {
    top: 10px; left: 25%;
    width: 180px;
    transform: rotate(-3deg);
    opacity: 0.8;
    z-index: 4;
}
.deco-washi-accent {
    top: 12%; right: 4%;
    width: 150px;
    transform: rotate(5deg);
    opacity: 0.75;
    z-index: 4;
}
.deco-washi-bottom {
    bottom: 25px; left: 30%;
    width: 160px;
    transform: rotate(2deg);
    opacity: 0.75;
    z-index: 4;
}
.deco-washi-letter-top {
    top: 8px; left: 30%;
    width: 150px;
    transform: rotate(-2deg);
    opacity: 0.75;
    z-index: 4;
}

/* ============================================================
   HEARTS — Big, bouncing, scattered
   ============================================================ */
.deco-heart-accent-1 {
    bottom: 12%; left: 22%;
    width: 65px;
    transform: rotate(-10deg);
    opacity: 0.75;
    z-index: 2;
    animation: gentle-bounce 3s ease-in-out infinite;
}
.deco-heart-accent-2 {
    bottom: 18%; right: 12%;
    width: 55px;
    transform: rotate(8deg);
    opacity: 0.65;
    z-index: 2;
    animation: gentle-bounce 2.5s ease-in-out infinite 0.5s;
}
.deco-heart-float {
    bottom: 10px; left: 20%;
    width: 70px;
    opacity: 0.7;
    transform: rotate(-5deg);
    animation: gentle-bounce 3.5s ease-in-out infinite;
    z-index: 2;
}
.deco-heart-final-1 {
    top: 25%; left: 20%;
    width: 80px;
    transform: rotate(12deg);
    opacity: 0.75;
    animation: gentle-bounce 2s ease-in-out infinite;
    z-index: 2;
}
.deco-heart-final-2 {
    bottom: 20%; right: 6%;
    width: 65px;
    transform: rotate(-15deg);
    opacity: 0.65;
    animation: gentle-bounce 2.8s ease-in-out infinite 0.5s;
    z-index: 2;
}

/* Inline hearts in content flow */
.deco-inline-heart {
    width: 55px;
    height: auto;
    animation: gentle-bounce 2s ease-in-out infinite;
    filter: none;
}
.landing-hearts-deco {
    display: flex;
    gap: 70px;
    justify-content: center;
    margin: 15px 0;
    align-items: center;
}

/* ============================================================
   DISCO BALL — Prominent, glinting
   ============================================================ */
.deco-disco-corner {
    bottom: 0; right: 0;
    width: 140px;
    opacity: 0.8;
    z-index: 2;
    animation: disco-glint 1.5s ease-in-out infinite alternate;
}
.deco-disco-final {
    bottom: 5px; right: 5px;
    width: 120px;
    opacity: 0.75;
    z-index: 2;
    animation: disco-glint 1.5s ease-in-out infinite alternate;
}

/* ============================================================
   SPRIGS / BRANCHES — Visible, decorative
   ============================================================ */
.deco-sprig-left {
    bottom: 15px; left: 16%;
    width: 90px;
    transform: rotate(30deg);
    opacity: 0.6;
    z-index: 1;
}
.deco-sprig-right {
    top: 18%; right: 3%;
    width: 80px;
    transform: rotate(-25deg) scaleX(-1);
    opacity: 0.55;
    z-index: 1;
}
.deco-sprig-left-mid {
    top: 40%; left: 16%;
    width: 75px;
    transform: rotate(40deg);
    opacity: 0.55;
    z-index: 1;
}

/* ============================================================
   STICKERS & SPECIALS
   ============================================================ */
.deco-rose-sticker {
    bottom: 10px; left: 35%;
    width: 70px;
    transform: rotate(15deg);
    opacity: 0.8;
    z-index: 2;
}
.deco-star-bottom {
    bottom: 20px; left: 50%;
    width: 75px;
    transform: translateX(-50%) rotate(-5deg);
    z-index: 2;
    animation: shimmer 2s infinite alternate;
}
.deco-love-stickers {
    bottom: 3%; left: 17%;
    width: 160px;
    opacity: 0.65;
    transform: rotate(-5deg);
    z-index: 1;
}
.deco-arrow-photos {
    bottom: 28%; right: 8%;
    width: 70px;
    transform: rotate(-20deg);
    opacity: 0.65;
    z-index: 2;
}

/* ============================================================
   FLOATING HEARTS CONTAINER
   ============================================================ */
.hearts-floating { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; }

/* ============================================================
   TYPOGRAPHY — Big, bold, impactful
   ============================================================ */
.landing-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 4rem;
    color: var(--maroon);
    line-height: 1.1;
    text-align: center;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(128,0,32,0.1);
}

.screen-heading {
    font-family: 'Patrick Hand', cursive;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.screen-subtext {
    font-family: 'Indie Flower', cursive;
    font-size: 1.25rem;
    color: var(--magenta);
    margin-bottom: 18px;
}

.handwritten-text {
    font-family: 'Caveat', cursive;
    font-size: 1.6rem;
    color: var(--text-dark);
    line-height: 1.3;
    margin-top: 10px;
}

/* ============================================================
   BUTTONS — Bigger, bolder
   ============================================================ */
.btn-primary {
    background: var(--maroon);
    color: var(--white);
    border: none;
    border-radius: 30px;
    padding: 14px 36px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(128,0,32,0.35);
    letter-spacing: 0.5px;
}
.btn-primary:hover {
    background: var(--maroon-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 22px rgba(128,0,32,0.45);
}

.btn-secondary {
    background: transparent;
    color: var(--maroon);
    border: 2.5px solid var(--maroon);
    border-radius: 30px;
    padding: 12px 32px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-secondary:hover { background: var(--pink-light); transform: translateY(-2px); }

.button-group { display: flex; gap: 20px; justify-content: center; }
.btn-continue, .btn-next { margin-top: 18px; }

/* ============================================================
   DOODLE CHARACTERS (PNG-based) — BIG
   ============================================================ */
.doodle-character {
    width: 180px; height: 190px;
    animation: breathe 3s ease-in-out infinite;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.doodle-character.doodle-final { width: 200px; height: 210px; }

.doodle-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-character {
    width: 80px; height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-doodle-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ============================================================
   GIFT & BOUQUET GRIDS — Bigger images
   ============================================================ */
.gift-option, .bouquet-option {
    cursor: pointer;
    transition: all 0.35s ease;
    transform-origin: center;
    border-radius: 12px;
    padding: 10px;
}
.gift-option:hover, .bouquet-option:hover {
    transform: scale(1.08);
}
.gift-option.selected, .bouquet-option.selected {
    transform: scale(1.12);
    box-shadow: 0 0 0 3px var(--magenta), 0 6px 20px rgba(233,30,122,0.35);
    border-radius: 12px;
    background: rgba(255,182,193,0.15);
}

.gift-img, .bouquet-img {
    width: 200px; height: auto;
    border-radius: 10px;
    filter: drop-shadow(3px 5px 8px rgba(0,0,0,0.18));
    transition: filter 0.3s, transform 0.3s;
}

.gift-option:hover .gift-img, .bouquet-option:hover .bouquet-img {
    filter: drop-shadow(5px 10px 15px rgba(0,0,0,0.25));
}

/* ============================================================
   BOUQUET RESULT LAYOUT
   ============================================================ */
.bouquet-result-layout {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    gap: 20px;
    flex-wrap: wrap;
}
.result-left, .result-right, .result-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.result-bouquet-img {
    max-width: 240px; height: auto; border-radius: 8px;
    filter: drop-shadow(3px 5px 10px rgba(0,0,0,0.18));
}

/* Speech Bubbles */
.speech-bubbles-stack { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.speech-bubble {
    font-family: 'Indie Flower', cursive;
    font-size: 1.05rem;
    padding: 8px 18px;
    border-radius: 18px;
    display: inline-block;
    position: relative;
}
.speech-bubble.purple {
    background: var(--purple-light);
    color: var(--text-dark);
}
.speech-bubble.purple-italic {
    background: var(--purple-light);
    color: var(--text-dark);
    font-style: italic;
}

/* ============================================================
   POLAROID PHOTOS
   ============================================================ */
.polaroid {
    background: var(--white);
    padding: 10px 10px 32px 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: rotate(-3deg);
    flex-shrink: 0;
}
.polaroid:nth-child(even) { transform: rotate(3deg); }
.polaroid:hover {
    transform: scale(1.05) rotate(0deg) !important;
    z-index: 10;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.polaroid-img {
    width: 150px; height: 150px;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

/* Washi Tape on polaroids */
.with-tape { position: relative; }
.with-tape::before {
    content: '';
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%) rotate(-4deg);
    width: 85px; height: 24px;
    background: repeating-linear-gradient(
        45deg,
        rgba(255,182,193,0.65),
        rgba(255,182,193,0.65) 8px,
        rgba(255,255,255,0.6) 8px,
        rgba(255,255,255,0.6) 16px
    );
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ============================================================
   LETTER EDITOR
   ============================================================ */
.letter-layout {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 25px;
    width: 100%;
    padding: 20px;
}
.photos-column { display: flex; flex-direction: column; gap: 20px; flex-shrink: 0; }
.letter-center { flex: 1; max-width: 400px; min-width: 0; }

.letter-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.toolbar-btn {
    width: 34px; height: 34px;
    border: 2px solid var(--maroon);
    background: var(--cream);
    color: var(--maroon);
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s;
}
.toolbar-btn:hover { background: var(--pink-light); }

.letter-paper {
    background: linear-gradient(to bottom, #fdf5e6, #f5e6d0);
    padding: 25px 20px;
    border-radius: 4px;
    position: relative;
    box-shadow: 2px 3px 15px rgba(0,0,0,0.14);
    border: 1px dashed rgba(128,0,32,0.2);
    background-image: repeating-linear-gradient(
        transparent, transparent 28px, rgba(180,160,140,0.25) 28px, rgba(180,160,140,0.25) 29px
    );
}
.letter-content {
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
    line-height: 29px;
    color: var(--text-dark);
    min-height: 250px;
    outline: none;
}
.letter-content p { margin-bottom: 4px; }
.letter-content:focus { outline: none; }
.letter-greeting { font-weight: 700; font-size: 1.3rem; margin-bottom: 8px; }
.letter-signature { font-weight: 700; margin-top: 12px; }

/* Letter screen — balanced fit with button */
#screen-letter .screen-content {
    justify-content: flex-start;
}
#screen-letter .screen-main-content {
    justify-content: flex-start;
    padding: 10px 15px 15px;
    gap: 8px;
}
#screen-letter .letter-paper {
    padding: 16px 18px;
    background-image: repeating-linear-gradient(
        transparent, transparent 27px, rgba(180,160,140,0.25) 27px, rgba(180,160,140,0.25) 28px
    );
}
#screen-letter .letter-content {
    font-size: 1.1rem;
    line-height: 28px;
    min-height: unset;
}
#screen-letter .letter-content p {
    margin-bottom: 2px;
}
#screen-letter .letter-greeting {
    font-size: 1.5rem;
    margin-bottom: 6px;
}
#screen-letter .letter-signature {
    margin-top: 4px;
}
#screen-letter .btn-continue {
    margin-top: 10px;
    flex-shrink: 0;
}

/* ============================================================
   MUSIC SCREEN LAYOUT
   ============================================================ */
.music-layout {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    gap: 30px;
    flex-wrap: wrap;
}
.music-left, .music-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Vinyl Record (PNG) */
.vinyl-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.vinyl-record-img {
    width: 250px;
    height: auto;
    filter: drop-shadow(4px 6px 12px rgba(0,0,0,0.25));
}
.vinyl-song-bar {
    background: rgba(128,0,32,0.88);
    color: white;
    border-radius: 22px;
    padding: 8px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    font-family: 'Inter', sans-serif;
    max-width: 220px;
}
.song-title {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}
.song-artist {
    font-size: 0.7rem;
    opacity: 0.8;
}

.love-quote { text-align: left; margin-top: 10px; }
.quote-small {
    font-family: 'Caveat', cursive;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}
.quote-you {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    font-style: italic;
    color: var(--maroon);
}
.heart-small { color: var(--magenta); font-size: 0.85rem; }

/* ============================================================
   3D ENVELOPE
   ============================================================ */
.envelope-3d { perspective: 800px; cursor: pointer; }
.envelope-body {
    position: relative;
    width: 280px; height: 185px;
    background: var(--maroon-dark);
    border-radius: 5px;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.envelope-flap {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 55%;
    background: var(--maroon);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform-origin: top;
    transition: transform 0.6s ease;
    z-index: 3;
}
.envelope-body.opened .envelope-flap { transform: rotateX(-180deg); }

.envelope-front {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.envelope-heart-label {
    width: 60px; height: 55px;
    background: var(--cream);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.heart-open-text {
    font-family: 'Patrick Hand', cursive;
    font-size: 0.9rem;
    color: var(--maroon);
    font-weight: bold;
}

.envelope-card {
    position: absolute;
    width: 88%; height: 82%;
    background: white;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    opacity: 0;
    transition: all 0.8s ease;
    z-index: 0;
    border: 2px solid var(--maroon);
    border-radius: 5px;
    padding: 12px;
}
.envelope-body.opened .envelope-card {
    opacity: 1;
    z-index: 5;
    transform: translate(-50%, -130%);
}

.card-title {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.8rem;
    color: var(--text-dark);
    font-weight: bold;
}
.card-text {
    font-family: 'Caveat', cursive;
    font-size: 1.25rem;
    color: var(--text-dark);
    text-align: center;
}
.red-heart { color: red; }

/* ============================================================
   FINAL SCREEN
   ============================================================ */
.finale-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--maroon);
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(128,0,32,0.1);
}
.final-buttons { display: flex; gap: 18px; margin-top: 22px; }
.final-subtext { font-family: 'Caveat', cursive; margin-top: 14px; font-size: 1.1rem; }

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes shimmer {
    0%   { transform: scale(0.88) rotate(0deg); opacity: 0.55; filter: brightness(1); }
    100% { transform: scale(1.12) rotate(8deg); opacity: 1; filter: brightness(1.25); }
}
@keyframes floatUp {
    0%   { transform: translateY(0) scale(1); opacity: 0.8; }
    100% { transform: translateY(-80vh) scale(1.2); opacity: 0; }
}
@keyframes float-up {
    0%   { transform: translateY(0) scale(1); opacity: 0.8; }
    100% { transform: translateY(-100vh) scale(1.3); opacity: 0; }
}
@keyframes spinRecord {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes spinDisco {
    from { background-position: 0 0; }
    to   { background-position: 80px 0; }
}
@keyframes gentle-bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
@keyframes disco-glint {
    0%   { filter: brightness(0.9) contrast(1.05); }
    100% { filter: brightness(1.4) contrast(1.15); }
}
@keyframes breathe {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}
@keyframes pulse-glow {
    0%   { box-shadow: 0 4px 16px rgba(128,0,32,0.35); }
    50%  { box-shadow: 0 4px 25px rgba(233,30,122,0.55); }
    100% { box-shadow: 0 4px 16px rgba(128,0,32,0.35); }
}
@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ============================================================
   VIEWER MODE — Hide editor controls when on /ananya route
   ============================================================ */
.viewer-mode #letter-toolbar,
.viewer-mode #ed-toggle,
.viewer-mode .photo-upload,
.viewer-mode .final-buttons,
.viewer-mode #screen-final .btn-back { display: none !important; }
.viewer-mode #letter-editor { cursor: default; }

/* Vinyl record on gifts page */
.deco-vinyl-gifts {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 80px;
    height: 80px;
    opacity: 0.9;
    z-index: 2;
    pointer-events: none;
}

/* Photos page — stars smaller and tucked in corner */
#screen-photos .deco-star-1 {
    top: -5px;
    right: 0;
    width: 70px;
}
#screen-photos .deco-star-2 {
    top: 30px;
    right: 60px;
    width: 45px;
}

/* Photos grid layout */
.photos-grid-layout {
    justify-content: center;
    gap: 10px;
    padding: 15px;
}
.photos-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
}
.photos-row .polaroid {
    flex-shrink: 0;
}

/* Photos center text */
.photos-center-text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}
.photos-center-text .handwritten-text {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: var(--maroon);
    text-align: center;
    line-height: 1.4;
}
