/* ============================================================
   VALENTINE'S WEEK - STYLESHEET
   A Week of Love  |  2026
   ============================================================ */

/* ---------- 1. CUSTOM PROPERTIES ---------- */
:root {
    --rose:           #e8a0b4;
    --rose-light:     #ffd6e5;
    --rose-deep:      #c77d93;
    --cream:          #fff8f0;
    --gold:           #d4a574;
    --gold-light:     #f0d4a8;
    --lavender:       #c8b6e2;
    --lavender-light: #ede6f7;
    --blush:          #ffb6c1;
    --peach:          #ffcba4;
    --wine:           #722f37;
    --wine-light:     #a3545e;
    --text:           #4a3040;
    --text-light:     #8a6a7a;
    --text-muted:     #b89aaa;
    --white:          #ffffff;
    --card-glass:     rgba(255, 255, 255, 0.65);
    --shadow-soft:    0 8px 32px rgba(100, 50, 70, 0.08);
    --shadow-lift:    0 20px 48px rgba(100, 50, 70, 0.12);
    --radius:         24px;
    --radius-sm:      14px;
    --transition:     0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    --font-serif:   'Playfair Display', Georgia, serif;
    --font-body:    'Quicksand', 'Segoe UI', sans-serif;
    --font-script:  'Dancing Script', cursive;
}

/* ---------- 2. RESET & BASE ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text);
    background: linear-gradient(-45deg, #fff5f5, #ffeef2, #f5e6ff, #fff0f5, #fff8f0);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Subtle grain overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 10000;
    opacity: 0.35;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { max-width: 100%; display: block; }

::selection {
    background: var(--rose-light);
    color: var(--wine);
}

/* ---------- 3. LOADER ---------- */
.loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    background: linear-gradient(135deg, #fff5f5, #ffeef5);
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader__heart {
    font-size: 3rem;
    color: var(--rose);
    animation: heartbeat 1.2s ease-in-out infinite;
}

.loader__text {
    font-family: var(--font-script);
    font-size: 1.3rem;
    color: var(--text-light);
    letter-spacing: 0.02em;
}

.loader__dots {
    display: flex;
    gap: 6px;
}

.loader__dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rose);
    animation: dotPulse 1.4s ease-in-out infinite;
}

.loader__dots span:nth-child(2) { animation-delay: 0.2s; }
.loader__dots span:nth-child(3) { animation-delay: 0.4s; }

/* ---------- 4. PARTICLES CANVAS ---------- */
#particles-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ---------- 5. MUSIC TOGGLE ---------- */
.music-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--card-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-soft);
    color: var(--rose-deep);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.music-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lift);
    background: var(--rose-light);
}

.music-toggle.playing {
    animation: musicPulse 2s ease-in-out infinite;
    color: var(--wine);
}

/* ---------- 6. HERO SECTION ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 1;
    overflow: hidden;
}

.hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    z-index: 0;
    animation: blobAppear 1.5s ease forwards;
}

.hero__blob--1 {
    width: min(400px, 60vw);
    height: min(400px, 60vw);
    background: var(--rose-light);
    top: -10%;
    right: -8%;
    animation-delay: 0.3s;
}

.hero__blob--1::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    animation: blobFloat 10s ease-in-out infinite;
}

.hero__blob--2 {
    width: min(320px, 50vw);
    height: min(320px, 50vw);
    background: var(--lavender-light);
    bottom: -5%;
    left: -5%;
    animation-delay: 0.6s;
}

.hero__blob--2::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    animation: blobFloat 12s ease-in-out infinite 3s;
}

.hero__blob--3 {
    width: min(250px, 40vw);
    height: min(250px, 40vw);
    background: var(--gold-light);
    top: 35%;
    left: 25%;
    animation-delay: 0.9s;
}

.hero__blob--3::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    animation: blobFloat 14s ease-in-out infinite 5s;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 640px;
}

/* Badge */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.4rem;
    background: var(--card-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--rose-deep);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInDown 0.8s ease forwards 0.5s;
}

.hero__badge i {
    font-size: 0.55rem;
    animation: sparkleFlicker 2s ease-in-out infinite;
}

/* Title */
.hero__title {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.2rem;
}

.hero__title-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero__title-line:first-child {
    font-size: clamp(2.4rem, 7vw, 4.2rem);
    color: var(--text);
    animation-delay: 0.7s;
}

.hero__title-line--accent {
    font-family: var(--font-script);
    font-size: clamp(3rem, 10vw, 5.5rem);
    color: var(--rose);
    animation-delay: 1s;
    transform: rotate(-2deg);
}

.hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-light);
    font-weight: 400;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1.3s;
}

/* Countdown */
.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1.5s;
}

.countdown__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 64px;
    padding: 0.8rem 0.6rem;
    background: var(--card-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
}

.countdown__number {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--wine);
    line-height: 1.2;
}

.countdown__label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.countdown__sep {
    font-size: 0.5rem;
    color: var(--rose);
    padding-bottom: 1rem;
    animation: heartbeat 2s ease-in-out infinite;
}

.countdown__target {
    font-family: var(--font-script);
    font-size: 1.15rem;
    color: var(--text-light);
    margin-top: 1.2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1.7s;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 2.2s;
    z-index: 2;
}

.scroll-indicator i {
    font-size: 0.85rem;
    animation: bounceDown 1.8s ease-in-out infinite;
}

/* ---------- 6b. TODAY'S HERO SECTION ---------- */
.today-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    z-index: 1;
}

.today-hero__content {
    width: 100%;
    max-width: 560px;
    text-align: center;
}

/* Today's full-page card */
.today-card {
    background: var(--card-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-lift);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease forwards;
}

.today-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--card-color, var(--rose)), var(--rose-deep));
    border-radius: var(--radius) var(--radius) 0 0;
}

.today-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 1rem;
    background: linear-gradient(135deg, var(--card-color, var(--rose)), var(--rose-deep));
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease forwards 0.3s;
    opacity: 0;
}

.today-card__badge i {
    font-size: 0.5rem;
    animation: sparkleFlicker 1.5s ease-in-out infinite;
}

.today-card__date {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--card-color, var(--rose-deep));
    margin-bottom: 0.5rem;
}

.today-card__icon-wrap {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--card-bg, var(--rose-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(232, 160, 180, 0.2);
}

.today-card__icon-wrap::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px dashed var(--card-color, var(--rose));
    opacity: 0.5;
    animation: spinSlow 15s linear infinite;
}

.today-card__icon {
    font-size: 2.8rem;
    color: var(--card-color, var(--rose));
}

.today-card__title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.today-card__theme {
    font-family: var(--font-script);
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.today-card__message {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.9;
    max-width: 38ch;
    margin: 0 auto;
}

.today-card__message.typewriter {
    border-right: 2px solid var(--card-color, var(--rose));
    animation: blink 0.8s step-end infinite;
}

.today-card__message.typewriter-done {
    border-right: none;
}

/* Countdown inside today card (for waiting state) */
.today-card__countdown {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(232, 160, 180, 0.2);
}

.today-card__next-label {
    font-family: var(--font-script);
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.today-card__timer {
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--rose-deep);
    letter-spacing: 0.05em;
}

/* Waiting state - before Feb 7 */
.today-hero--waiting .today-card {
    background: linear-gradient(135deg, rgba(255, 248, 248, 0.9), rgba(255, 240, 245, 0.9));
}

.today-hero--waiting .today-card__icon-wrap {
    border: 2px dashed var(--rose-light);
    background: var(--white);
}

/* Scroll to past days indicator */
.today-hero__scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-decoration: none;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 2s;
    transition: color 0.3s ease;
}

.today-hero__scroll-hint:hover {
    color: var(--rose-deep);
}

.today-hero__scroll-hint i {
    font-size: 0.9rem;
    animation: bounceDown 1.8s ease-in-out infinite;
}

/* ---------- 7. TIMELINE SECTION ---------- */
.timeline-section {
    position: relative;
    z-index: 1;
    padding: 4rem 1.5rem 6rem;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title__text {
    font-family: var(--font-script);
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    color: var(--rose-deep);
    position: relative;
    z-index: 1;
}

.section-title__line {
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--rose), transparent);
    border-radius: 2px;
    margin: 0.8rem auto 0;
}

/* Timeline container */
.timeline {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    padding: 1rem 0;
}

/* Vertical line - stops before teaser */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 8rem; /* Leave space for teaser */
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--rose-light) 5%,
        var(--rose) 50%,
        var(--rose-light) 100%
    );
    z-index: 0;
}

/* Hide the line when timeline only has the empty state */
.timeline--empty::before {
    display: none;
}

/* ---------- 8. DAY CARDS ---------- */
.day-card {
    position: relative;
    width: 50%;
    padding: 1.2rem 0;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Alternating layout */
.day-card:nth-child(odd) {
    padding-right: 3.5rem;
    text-align: right;
}

.day-card:nth-child(even) {
    margin-left: 50%;
    padding-left: 3.5rem;
    text-align: left;
}

/* Entrance animation directions */
.day-card:nth-child(odd) { transform: translateX(-40px); }
.day-card:nth-child(even) { transform: translateX(40px); }
.day-card.visible { opacity: 1; transform: translateX(0); }

/* Timeline dot */
.day-card__dot {
    position: absolute;
    top: 2.5rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--card-color, var(--rose));
    box-shadow: 0 0 0 4px rgba(232, 160, 180, 0.2);
    z-index: 3;
    transition: var(--transition);
}

.day-card:nth-child(odd) .day-card__dot {
    right: -9px;
}

.day-card:nth-child(even) .day-card__dot {
    left: -9px;
}

.day-card.visible .day-card__dot {
    animation: dotPop 0.6s ease forwards;
}

/* Card content */
.day-card__content {
    position: relative;
    background: var(--card-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius);
    padding: 2rem 1.8rem;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.day-card__content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-color, var(--rose));
    border-radius: var(--radius) var(--radius) 0 0;
}

.day-card__content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}

/* Card header */
.day-card__header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    justify-content: center;
}

.day-card__date {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--card-color, var(--rose-deep));
    background: var(--card-bg, var(--rose-light));
    padding: 0.3rem 0.9rem;
    border-radius: 100px;
}

.day-card__theme {
    font-family: var(--font-script);
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Card icon */
.day-card__icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--card-bg, var(--rose-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    position: relative;
}

.day-card__icon-wrap::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px dashed var(--card-color, var(--rose));
    opacity: 0.4;
    animation: spinSlow 20s linear infinite;
}

.day-card__icon {
    font-size: 1.8rem;
    color: var(--card-color, var(--rose));
    transition: transform 0.4s ease;
}

.day-card__content:hover .day-card__icon {
    transform: scale(1.15);
}

/* Card title & message */
.day-card__title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.7rem;
}

.day-card__message {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 30ch;
    margin: 0 auto;
}

.day-card__message.typewriter {
    border-right: 2px solid var(--card-color, var(--rose));
    animation: blink 0.8s step-end infinite;
}

.day-card__message.typewriter-done {
    border-right: none;
}

/* Card lock overlay */
.day-card__lock {
    position: absolute;
    inset: 0;
    background: rgba(255, 248, 248, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border-radius: var(--radius);
    z-index: 5;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    cursor: default;
}

.day-card__lock i {
    font-size: 1.4rem;
    color: var(--text-muted);
}

.day-card__lock span {
    font-family: var(--font-script);
    font-size: 1rem;
    color: var(--text-light);
}

.day-card__lock-countdown {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--rose-deep);
}

.day-card--unlocked .day-card__lock {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Shake animation for clicking locked cards */
.day-card--shake .day-card__content {
    animation: shake 0.5s ease;
}

/* ---------- 8b. TODAY & PAST CARD STATES ---------- */

/* Today's card: highlighted & prominent */
.day-card--today .day-card__content {
    background: rgba(255, 255, 255, 0.82);
    border: 2px solid var(--card-color, var(--rose));
    box-shadow: 0 12px 48px rgba(232, 160, 180, 0.18),
                0 0 0 1px rgba(255, 255, 255, 0.6);
}

.day-card--today .day-card__content::before {
    height: 5px;
}

.day-card--today .day-card__dot {
    box-shadow: 0 0 0 6px rgba(232, 160, 180, 0.25);
    animation: dotPop 0.6s ease forwards, heartbeat 2.5s ease-in-out infinite 0.8s;
}

.day-card__badge-today {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.8rem;
    background: linear-gradient(135deg, var(--card-color, var(--rose)), var(--rose-deep));
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 100px;
    margin-bottom: 1rem;
    animation: fadeInDown 0.6s ease forwards 0.3s;
    opacity: 0;
}

.day-card__badge-today i {
    font-size: 0.5rem;
    animation: sparkleFlicker 1.5s ease-in-out infinite;
}

/* Past day cards: slightly muted, compact */
.day-card--past .day-card__content {
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(255, 255, 255, 0.35);
}

.day-card--past .day-card__icon-wrap {
    width: 64px;
    height: 64px;
}

.day-card--past .day-card__icon {
    font-size: 1.4rem;
}

.day-card--past .day-card__title {
    font-size: 1.15rem;
    color: var(--text-light);
}

.day-card--past .day-card__message {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.day-card--past .day-card__dot {
    opacity: 0.5;
    width: 14px;
    height: 14px;
    border-width: 2px;
}

.day-card--past:nth-child(odd) .day-card__dot { right: -7px; }
.day-card--past:nth-child(even) .day-card__dot { left: -7px; }

/* ---------- 8c. FLIP CARD EFFECT ---------- */
.day-card--flippable {
    perspective: 1200px;
}

.day-card__flipper {
    position: relative;
    transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.day-card--flippable:hover .day-card__flipper {
    transform: rotateY(180deg);
}

.day-card__front,
.day-card__back {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.day-card__front {
    position: relative;
    z-index: 2;
}

.day-card__back {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transform: rotateY(180deg);
    z-index: 1;
}

.day-card__back .day-card__content {
    background: linear-gradient(135deg, rgba(255, 252, 253, 0.98), rgba(255, 245, 248, 0.98));
    border: 2px solid var(--card-color, var(--rose));
    max-height: 280px;
    overflow-y: auto;
    border-radius: var(--radius);
    padding-right: 0.7rem; /* space for scrollbar */
    box-sizing: border-box;
    /* Hide scrollbar overflow outside border radius */
    mask-image: radial-gradient(circle at top left, transparent 0, black 0.5rem),
                radial-gradient(circle at top right, transparent 0, black 0.5rem),
                radial-gradient(circle at bottom left, transparent 0, black 0.5rem),
                radial-gradient(circle at bottom right, transparent 0, black 0.5rem),
                linear-gradient(black, black);
    -webkit-mask-image: radial-gradient(circle at top left, transparent 0, black 0.5rem),
                       radial-gradient(circle at top right, transparent 0, black 0.5rem),
                       radial-gradient(circle at bottom left, transparent 0, black 0.5rem),
                       radial-gradient(circle at bottom right, transparent 0, black 0.5rem),
                       linear-gradient(black, black);
}

.day-card__back .day-card__content::-webkit-scrollbar {
    width: 6px;
    background: transparent;
}

.day-card__back .day-card__content::-webkit-scrollbar-thumb {
    background: rgba(232, 160, 180, 0.35);
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.day-card__back .day-card__content::-webkit-scrollbar-track {
    background: transparent;
}

.day-card__back .day-card__content {
    scrollbar-width: thin;
    scrollbar-color: rgba(232, 160, 180, 0.35) transparent;
}

.day-card__back-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(232, 160, 180, 0.2);
}

.day-card__back-header i {
    font-size: 1.2rem;
    color: var(--card-color, var(--rose));
}

.day-card__back-header span {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--card-color, var(--rose-deep));
}

.day-card__detailed {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.9;
    text-align: left;
    max-width: none;
}

/* Timeline empty state (before Feb 7) */
.timeline-empty {
    position: relative;
    text-align: center;
    padding: 3rem 2.5rem;
    margin: 0 auto;
    max-width: 360px;
    background: linear-gradient(135deg, rgba(255, 248, 248, 0.95), rgba(255, 240, 245, 0.95));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-soft);
    z-index: 2;
}

.timeline-empty__icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--white);
    border: 2px dashed var(--rose-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: heartbeat 3s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(232, 160, 180, 0.15);
}

.timeline-empty__icon i {
    font-size: 2rem;
    color: var(--rose);
}

.timeline-empty__title {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 0.6rem;
}

.timeline-empty__text {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 36ch;
    margin: 0 auto;
    line-height: 1.7;
}

/* Next day teaser at bottom of timeline */
.timeline-teaser {
    position: relative;
    text-align: center;
    padding: 3.5rem 1.5rem 1.5rem;
    margin-top: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1s;
}

/* Circle dot at top of teaser */
.timeline-teaser::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--rose);
    box-shadow: 0 0 0 4px rgba(232, 160, 180, 0.15);
}

/* Remove the old ::after, we don't need two elements */
.timeline-teaser::after {
    display: none;
}

.timeline-teaser__text {
    font-family: var(--font-script);
    font-size: 1.1rem;
    color: var(--text-muted);
    word-wrap: break-word;
    max-width: 90%;
    margin: 0 auto;
    line-height: 1.4;
}

.timeline-teaser__countdown {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--rose-deep);
    margin-top: 0.3rem;
}

/* ---------- 9. DAY-SPECIFIC ANIMATIONS ---------- */

/* Rose Day: petals rotating in */
.day-card[data-anim="bloom"].visible .day-card__icon {
    animation: bloomIn 1.2s ease forwards;
}

.day-card[data-anim="bloom"].visible .day-card__icon-wrap {
    animation: glowPulse 3s ease-in-out infinite 1.2s;
}

/* Propose Day: envelope bounce */
.day-card[data-anim="envelope"].visible .day-card__icon {
    animation: envelopeOpen 1s ease forwards;
}

/* Chocolate Day: bite wobble */
.day-card[data-anim="bite"].visible .day-card__icon {
    animation: wobbleBite 0.8s ease forwards;
}

/* Teddy Day: wave */
.day-card[data-anim="wave"].visible .day-card__icon {
    animation: teddyWave 1.5s ease-in-out infinite 0.5s;
}

/* Promise Day: handshake clasp */
.day-card[data-anim="clasp"].visible .day-card__icon {
    animation: handClasp 1s ease forwards;
}

/* Hug Day: squeeze */
.day-card[data-anim="squeeze"].visible .day-card__content {
    animation: hugSqueeze 1.2s ease;
}

/* Kiss Day: sparkle burst */
.day-card[data-anim="sparkle"].visible .day-card__icon-wrap::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--card-color) 0%, transparent 70%);
    opacity: 0;
    animation: sparkleBurst 1.5s ease-in-out infinite 0.5s;
}

/* ---------- 10. FINALE SECTION (original - hidden, now rendered inline) ---------- */
.finale {
    display: none !important;
}

/* ---------- 10b. FINALE CARD (rendered inside today-hero on Feb 14) ---------- */
.today-hero--finale {
    background: linear-gradient(160deg, #fff0f5 0%, #ffe4ee 20%, #ffd6e8 40%, #ffe8f3 60%, #fff5fa 80%, #fff0f5 100%);
    background-size: 400% 400%;
    animation: finaleGradient 15s ease infinite;
    min-height: 100vh;
    padding: 3rem 1.5rem 4rem;
}

.today-hero--finale .today-hero__content {
    max-width: 580px;
}

/* Floating petals */
.finale-card__petals {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.finale-card__petal {
    position: absolute;
    width: calc(12px + var(--p) * 4px);
    height: calc(12px + var(--p) * 4px);
    background: radial-gradient(ellipse, rgba(232, 160, 180, 0.5) 0%, rgba(255, 182, 193, 0.2) 100%);
    border-radius: 50% 0 50% 0;
    animation: petalFall calc(8s + var(--p) * 3s) linear infinite;
    animation-delay: calc(var(--p) * -2s);
    left: calc(var(--p) * 16%);
    top: -20px;
    opacity: 0.5;
}

/* Main card */
.finale-card {
    position: relative;
    z-index: 1;
}

.finale-card__inner {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 248, 252, 0.9) 50%, rgba(255, 240, 248, 0.85) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 36px;
    padding: 2.8rem 2.5rem 2.2rem;
    box-shadow:
        0 25px 80px rgba(200, 100, 140, 0.12),
        0 8px 32px rgba(232, 160, 180, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.6),
        inset 0 2px 0 rgba(255, 255, 255, 0.9);
    text-align: center;
    animation: finaleCardAppear 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    overflow: hidden;
}

.finale-card__inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg,
        transparent,
        var(--rose-light),
        var(--rose),
        var(--rose-light),
        transparent
    );
    border-radius: 0 0 4px 4px;
    opacity: 0.6;
}

.finale-card__inner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent,
        var(--rose-light),
        var(--rose),
        var(--rose-light),
        transparent
    );
    border-radius: 0 0 36px 36px;
}

/* Ribbon badge */
.finale-card__ribbon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.4rem;
    background: linear-gradient(135deg, var(--rose) 0%, #d4728a 50%, var(--rose-deep) 100%);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border-radius: 100px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(232, 160, 180, 0.4), 0 2px 8px rgba(200, 100, 140, 0.2);
    animation: fadeInDown 0.8s ease forwards 0.3s;
    opacity: 0;
    position: relative;
}

.finale-card__ribbon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--rose-light), var(--rose-deep));
    z-index: -1;
    opacity: 0.5;
    filter: blur(6px);
}

.finale-card__ribbon i {
    font-size: 0.45rem;
    animation: sparkleFlicker 1.5s ease-in-out infinite;
}

/* Heart with glow + rings */
.finale-card__heart-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.finale-card__heart-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 160, 180, 0.35) 0%, transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
}

.finale-card__heart {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5a0b8 0%, #e07898 40%, #c76488 80%, #d48ca5 100%);
    background-size: 200% 200%;
    animation: heartbeat 1.5s ease-in-out infinite, iconGradient 5s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 40px rgba(232, 120, 160, 0.4),
        0 0 60px rgba(232, 160, 180, 0.2),
        inset 0 -3px 8px rgba(180, 80, 120, 0.15),
        inset 0 3px 8px rgba(255, 220, 230, 0.4);
    position: relative;
    z-index: 2;
}

.finale-card__heart i {
    font-size: 2.4rem;
    color: var(--white);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}

.finale-card__ring {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 2px dashed rgba(232, 160, 180, 0.45);
    animation: spinSlow 10s linear infinite;
    z-index: 1;
}

.finale-card__ring--2 {
    inset: -28px;
    border: 1.5px dotted rgba(212, 165, 116, 0.35);
    animation-direction: reverse;
    animation-duration: 16s;
}

.finale-card__ring--3 {
    inset: -42px;
    border: 1px dashed rgba(200, 182, 226, 0.25);
    animation-duration: 22s;
}

/* Twinkling stars */
.finale-card__stars {
    position: relative;
    height: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.finale-card__stars i {
    font-size: 0.55rem;
    color: var(--gold);
    animation: finaleStarTwinkle 2s ease-in-out infinite;
    animation-delay: calc(var(--st) * 0.4s);
}

.finale-card__stars i:nth-child(4),
.finale-card__stars i:nth-child(5) {
    color: var(--rose);
    font-size: 0.65rem;
}

/* Title */
.finale-card__title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.25;
    animation: fadeInUp 0.8s ease forwards 0.5s;
    opacity: 0;
}

/* Subtitle */
.finale-card__subtitle {
    font-family: var(--font-script);
    font-size: 1.2rem;
    color: var(--rose-deep);
    margin-bottom: 1.2rem;
    animation: fadeInUp 0.8s ease forwards 0.7s;
    opacity: 0;
}

/* Love note box */
.finale-card__note {
    position: relative;
    padding: 1.2rem 1.5rem 1.2rem 2.2rem;
    background: linear-gradient(135deg, rgba(255, 245, 250, 0.8), rgba(255, 235, 243, 0.6));
    border-radius: 20px;
    border: 1px solid rgba(232, 160, 180, 0.2);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease forwards 0.9s;
    opacity: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.finale-card__note p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.9;
    text-align: left;
}

.finale-card__quote-icon {
    position: absolute;
    top: 1rem;
    left: 0.8rem;
    font-size: 0.85rem;
    color: var(--rose-light);
    opacity: 0.6;
}

/* Buttons container */
.finale-card__buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    position: relative;
    min-height: 80px;
    animation: fadeInUp 0.8s ease forwards 1.1s;
    opacity: 0;
}

/* Enhanced Yes button for finale */
.btn--yes-finale {
    padding: 1rem 2.8rem;
    font-size: 1.15rem;
    background: linear-gradient(135deg, #e8a0b4 0%, #d4728a 50%, #c06080 100%);
    box-shadow:
        0 6px 28px rgba(232, 140, 170, 0.45),
        0 0 40px rgba(232, 160, 180, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: yesPulse 2.5s ease-in-out infinite;
}

.btn--yes-finale:hover {
    transform: scale(1.12);
    box-shadow:
        0 10px 40px rgba(232, 140, 170, 0.55),
        0 0 60px rgba(232, 160, 180, 0.2);
}

/* Footer decoration */
.finale-card__deco-footer {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1.5rem;
    animation: fadeInUp 0.8s ease forwards 1.4s;
    opacity: 0;
}

.finale-card__deco-footer i {
    font-size: 0.6rem;
    color: var(--rose-light);
    animation: heartFloat 2.5s ease-in-out infinite;
}

.finale-card__deco-footer i:nth-child(2) { animation-delay: 0.2s; color: var(--rose); font-size: 0.75rem; }
.finale-card__deco-footer i:nth-child(3) { animation-delay: 0.4s; }
.finale-card__deco-footer i:nth-child(4) { animation-delay: 0.6s; color: var(--rose); font-size: 0.75rem; }
.finale-card__deco-footer i:nth-child(5) { animation-delay: 0.8s; }

/* ---------- 11. BUTTONS ---------- */
.finale__buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    position: relative;
    min-height: 80px;
    animation: fadeInUp 0.8s ease forwards 1.1s;
    opacity: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2.4rem;
    border-radius: 100px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.btn--yes {
    background: linear-gradient(135deg, var(--rose), var(--rose-deep));
    color: var(--white);
    box-shadow: 0 6px 24px rgba(232, 160, 180, 0.4);
    animation: yesPulse 2.5s ease-in-out infinite;
    z-index: 2;
}

.btn--yes::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--rose-light), var(--rose-deep), var(--gold));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn--yes:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 36px rgba(232, 160, 180, 0.5);
}

.btn--yes:hover::before {
    opacity: 1;
}

.btn--no {
    background: var(--card-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(180, 160, 170, 0.3);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.7rem 1.8rem;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.btn--no:hover {
    background: rgba(255, 200, 200, 0.2);
}

/* No tooltip */
.finale__no-tooltip {
    font-family: var(--font-script);
    font-size: 0.95rem;
    color: var(--rose-deep);
    margin-top: 1rem;
    min-height: 1.5em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.finale__no-tooltip.show {
    opacity: 1;
    animation: fadeInUp 0.4s ease;
}

/* Finale lock */
.finale__lock {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 248, 248, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: opacity 1s ease, visibility 1s ease;
}

.finale__lock.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.finale__lock-inner {
    text-align: center;
}

.finale__lock-inner i {
    font-size: 2.4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: block;
}

.finale__lock-inner p {
    font-family: var(--font-script);
    font-size: 1.4rem;
    color: var(--text-light);
}

.finale__lock-sub {
    font-family: var(--font-body) !important;
    font-size: 0.9rem !important;
    color: var(--text-muted) !important;
    margin-top: 0.5rem;
}

.finale__lock-countdown {
    font-family: var(--font-body) !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: var(--rose-deep) !important;
    margin-top: 1rem;
}

/* ---------- 12. SUCCESS OVERLAY ---------- */
.success {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff5f5, #ffeef5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.success.show {
    opacity: 1;
    visibility: visible;
}

#confetti-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.success__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    max-width: 480px;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

.success.show .success__content {
    opacity: 1;
    transform: scale(1);
}

.success__icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose), var(--wine-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: heartbeat 1.2s ease-in-out infinite;
    box-shadow: 0 8px 40px rgba(232, 160, 180, 0.4);
}

.success__icon i {
    font-size: 2rem;
    color: var(--white);
}

.success__title {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.8rem;
}

.success__message {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.success__divider {
    margin: 1.5rem 0;
    color: var(--gold);
    font-size: 0.8rem;
}

.success__submessage {
    font-family: var(--font-script);
    font-size: 1.1rem;
    color: var(--rose-deep);
}

.success__footer-hearts {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.success__footer-hearts i {
    font-size: 1rem;
    color: var(--rose);
    animation: heartFloat 2s ease-in-out infinite;
}

.success__footer-hearts i:nth-child(2) {
    animation-delay: 0.3s;
    font-size: 1.3rem;
}

.success__footer-hearts i:nth-child(3) {
    animation-delay: 0.6s;
}

/* ---------- 13. TOAST ---------- */
.toast {
    position: fixed;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9000;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.6rem;
    background: var(--card-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 100px;
    box-shadow: var(--shadow-lift);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    bottom: 5rem;
}

.toast i {
    color: var(--rose);
    font-size: 0.8rem;
}

/* ---------- 14. RESPONSIVE ---------- */
@media (max-width: 768px) {
    /* Ensure touch targets are large enough */
    .btn, .music-toggle, .scroll-indicator {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .timeline::before {
        left: 24px;
    }

    .day-card {
        width: 100% !important;
        margin-left: 0 !important;
        padding-left: 56px !important;
        padding-right: 1rem !important;
        text-align: left !important;
    }

    .day-card:nth-child(odd),
    .day-card:nth-child(even) {
        transform: translateX(30px);
    }

    .day-card.visible {
        transform: translateX(0);
    }

    .day-card__dot {
        left: 15px !important;
        right: auto !important;
    }

    .day-card--past .day-card__dot {
        left: 17px !important;
        right: auto !important;
    }

    .day-card__header {
        justify-content: flex-start;
    }

    .day-card__message {
        margin: 0;
    }

    .countdown {
        gap: 0.25rem;
    }

    .countdown__item {
        min-width: 52px;
        padding: 0.6rem 0.4rem;
    }

    .countdown__number {
        font-size: clamp(1.3rem, 4vw, 2rem);
    }

    .hero__blob--1 { width: 200px; height: 200px; }
    .hero__blob--2 { width: 160px; height: 160px; }
    .hero__blob--3 { width: 120px; height: 120px; }

    .finale__buttons,
    .finale-card__buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .btn--yes,
    .btn--yes-finale {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .btn--no {
        width: auto;
        min-width: 120px;
    }

    .finale-card__inner {
        padding: 2.2rem 1.5rem 1.8rem;
        border-radius: 28px;
    }

    .finale-card__heart-wrap {
        width: 120px;
        height: 120px;
    }

    .finale-card__heart {
        width: 80px;
        height: 80px;
    }

    .finale-card__heart i {
        font-size: 1.8rem;
    }

    .finale-card__ring { inset: -10px; }
    .finale-card__ring--2 { inset: -22px; }
    .finale-card__ring--3 { inset: -34px; }

    .music-toggle {
        bottom: 1.2rem;
        right: 1.2rem;
        width: 42px;
        height: 42px;
        font-size: 0.95rem;
    }

    .timeline-empty {
        padding: 3rem 1.5rem;
    }

    .timeline-empty__icon {
        width: 80px;
        height: 80px;
    }

    .timeline-empty__icon i {
        font-size: 1.6rem;
    }

    .timeline-empty__title {
        font-size: 1.25rem;
    }

    .timeline-teaser {
        padding: 2rem 1.2rem 1rem;
    }

    .day-card__badge-today {
        font-size: 0.6rem;
        padding: 0.22rem 0.7rem;
    }

    .day-card--past .day-card__content {
        padding: 1.2rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero { padding: 1.5rem 1rem; }
    .timeline-section { padding: 3rem 0.8rem 4rem; }
    .day-card__content { padding: 1.5rem 1.2rem; }
    .day-card__icon-wrap { width: 64px; height: 64px; }
    .day-card__icon { font-size: 1.5rem; }
    .finale { padding: 3rem 1.2rem; min-height: 80vh; }
    .finale__title { font-size: 1.6rem; line-height: 1.3; }
    .finale__subtitle { font-size: 1rem; }
    .finale-card__title { font-size: 1.6rem; }
    .finale-card__subtitle { font-size: 1rem; }
    .btn { padding: 0.8rem 2rem; font-size: 0.95rem; }
    .btn--no { padding: 0.65rem 1.5rem; font-size: 0.85rem; }
    .timeline-teaser__text { font-size: 0.95rem; }
    .success__title { font-size: 1.5rem; }
    .success__message { font-size: 0.95rem; }
}

/* ---------- 15. KEYFRAME ANIMATIONS ---------- */

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15%      { transform: scale(1.15); }
    30%      { transform: scale(1); }
    45%      { transform: scale(1.1); }
    60%      { transform: scale(1); }
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.3); }
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25%      { transform: translate(20px, -30px) scale(1.05); }
    50%      { transform: translate(-10px, 20px) scale(0.95); }
    75%      { transform: translate(15px, 10px) scale(1.02); }
}

@keyframes blobAppear {
    from { opacity: 0; transform: scale(0.5); }
    to   { opacity: 0.35; transform: scale(1); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-15px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(6px); }
}

@keyframes sparkleFlicker {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.3; transform: scale(0.6); }
}

@keyframes dotPop {
    0%   { transform: scale(0); }
    60%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-6px) rotate(-1deg); }
    40%      { transform: translateX(6px) rotate(1deg); }
    60%      { transform: translateX(-4px) rotate(-0.5deg); }
    80%      { transform: translateX(4px) rotate(0.5deg); }
}

@keyframes blink {
    from, to { border-color: transparent; }
    50%      { border-color: var(--card-color, var(--rose)); }
}

@keyframes bloomIn {
    0%   { transform: scale(0) rotate(-180deg); opacity: 0; }
    60%  { transform: scale(1.2) rotate(10deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(232, 160, 180, 0.2); }
    50%      { box-shadow: 0 0 20px 8px rgba(232, 160, 180, 0.15); }
}

@keyframes envelopeOpen {
    0%   { transform: scale(0.5) rotateY(90deg); opacity: 0; }
    50%  { transform: scale(1.1) rotateY(-10deg); opacity: 1; }
    100% { transform: scale(1) rotateY(0); opacity: 1; }
}

@keyframes wobbleBite {
    0%   { transform: scale(0.8); opacity: 0; }
    30%  { transform: scale(1.15) rotate(5deg); opacity: 1; }
    60%  { transform: scale(0.95) rotate(-3deg); }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes teddyWave {
    0%, 100% { transform: rotate(0deg); }
    25%      { transform: rotate(15deg); }
    75%      { transform: rotate(-10deg); }
}

@keyframes handClasp {
    0%   { transform: scale(0.5) translateY(20px); opacity: 0; }
    50%  { transform: scale(1.1) translateY(-5px); opacity: 1; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes hugSqueeze {
    0%   { transform: scale(1); }
    20%  { transform: scale(0.95, 1.03); }
    50%  { transform: scale(1.04, 0.96); }
    70%  { transform: scale(0.98, 1.01); }
    100% { transform: scale(1); }
}

@keyframes sparkleBurst {
    0%, 100% { opacity: 0; transform: scale(0.8); }
    50%      { opacity: 0.6; transform: scale(1.3); }
}

@keyframes floatHeart {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-50vh) rotate(20deg) scale(1.2);
        opacity: 0.15;
    }
    100% {
        transform: translateY(-100vh) rotate(-10deg) scale(0.8);
        opacity: 0;
    }
}

@keyframes yesPulse {
    0%, 100% {
        box-shadow: 0 6px 24px rgba(232, 160, 180, 0.4);
    }
    50% {
        box-shadow: 0 6px 40px rgba(232, 160, 180, 0.6),
                    0 0 60px rgba(232, 160, 180, 0.2);
    }
}

@keyframes heartFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

@keyframes musicPulse {
    0%, 100% { box-shadow: var(--shadow-soft); }
    50%      { box-shadow: 0 0 20px rgba(232, 160, 180, 0.4); }
}

@keyframes finaleGradient {
    0%   { background-position: 0% 50%; }
    25%  { background-position: 50% 100%; }
    50%  { background-position: 100% 50%; }
    75%  { background-position: 50% 0%; }
    100% { background-position: 0% 50%; }
}

@keyframes finaleCardAppear {
    0%   { opacity: 0; transform: scale(0.85) translateY(40px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes shimmerBar {
    0%   { background-position: -300% 0; }
    100% { background-position: 300% 0; }
}

@keyframes iconGradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes petalFall {
    0%   { transform: translateY(-20px) rotate(0deg); opacity: 0; }
    10%  { opacity: 0.5; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

@keyframes finaleStarTwinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50%      { opacity: 1; transform: scale(1.3); }
}

@keyframes confettiFall {
    0%   { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

@keyframes unlockReveal {
    0%   { opacity: 0; transform: scale(0.9); filter: blur(4px); }
    100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
