/* =====================================================================
   ❤️  GIAO DIỆN TRANG WEB TÌNH YÊU — tone hồng
   ===================================================================== */

:root {
  --pink-50:  #fff5f8;
  --pink-100: #ffe3ee;
  --pink-200: #ffc9dd;
  --pink-300: #ffa6c8;
  --pink-400: #ff7eb0;
  --pink-500: #ff5599;
  --pink-600: #ec3a83;
  --rose:     #d6336c;
  --plum:     #8a2a5e;
  --cream:    #fff9fb;
  --text:     #5a2440;
  --text-soft:#90577a;
  --shadow:   0 18px 50px -18px rgba(214, 51, 108, .45);
  --radius:   26px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, #ffd9e8 0%, transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, #ffe0ef 0%, transparent 55%),
    linear-gradient(180deg, #fff0f6 0%, #ffe6f0 40%, #ffd6e8 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ---------- nền hiệu ứng ---------- */
#hearts-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.float-heart {
  position: absolute; bottom: -40px; font-size: 22px;
  animation: floatUp linear forwards; opacity: .65; will-change: transform;
}
@keyframes floatUp {
  to { transform: translateY(-115vh) rotate(40deg); opacity: 0; }
}
#petals {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
}

/* ---------- tiện ích ---------- */
.glass {
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, .7);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.center { text-align: center; }

.name-girl { color: var(--rose); font-weight: 700; }
.name-boy  { color: var(--pink-600); font-weight: 700; }

/* ---------- nút ---------- */
.btn {
  font-family: inherit; font-size: 1rem; font-weight: 600;
  border: none; border-radius: 999px; padding: 14px 30px;
  cursor: pointer; transition: transform .15s, box-shadow .25s, filter .2s;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--pink-400), var(--rose));
  box-shadow: 0 12px 26px -8px rgba(214, 51, 108, .6);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.03); filter: brightness(1.05); }
.btn-primary:active { transform: translateY(0) scale(.98); }

/* =================== HERO =================== */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 40px 20px;
}
.hero-inner { max-width: 720px; width: 100%; }
.hero-eyebrow {
  font-size: 1.05rem; color: var(--text-soft); letter-spacing: .5px;
  animation: fadeDown .8s ease both;
}
.hero-title {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(3.2rem, 12vw, 6.5rem); line-height: 1.05; margin: 6px 0 4px;
  animation: fadeDown 1s ease both;
}
.hero-title .amp { color: var(--pink-300); margin: 0 .15em; }
.hero-sub {
  min-height: 1.6em; font-size: clamp(1rem, 3.4vw, 1.3rem);
  color: var(--text-soft); margin-bottom: 26px; font-style: italic;
}

.counter-card { padding: 30px 26px; margin: 0 auto; max-width: 540px; animation: popIn 1s .2s ease both; }
.counter-label { color: var(--text-soft); font-size: 1rem; }
.big-days {
  font-family: 'Dancing Script', cursive;
  display: flex; align-items: baseline; justify-content: center; gap: .25em; margin: 4px 0 18px;
}
.big-days #total-days {
  font-size: clamp(4rem, 18vw, 7rem); font-weight: 700;
  background: linear-gradient(135deg, var(--pink-500), var(--rose) 70%, var(--plum));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 12px rgba(214,51,108,.25));
}
.big-days-unit { font-size: 1.8rem; color: var(--rose); font-weight: 600; }

.timer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.timer-box {
  background: linear-gradient(160deg, #fff, var(--pink-50));
  border: 1px solid var(--pink-100);
  border-radius: 16px; padding: 12px 4px; box-shadow: 0 6px 14px -8px rgba(214,51,108,.4);
}
.timer-box span {
  display: block; font-size: clamp(1.5rem, 6vw, 2.2rem); font-weight: 700; color: var(--rose);
  font-variant-numeric: tabular-nums;
}
.timer-box small { color: var(--text-soft); font-size: .8rem; text-transform: lowercase; }
.counter-start { color: var(--text-soft); font-size: .95rem; }

.scroll-cue {
  display: inline-block; margin-top: 34px; color: var(--rose); text-decoration: none;
  font-weight: 500; opacity: .85;
}
.scroll-cue span { display: inline-block; animation: bob 1.4s infinite; margin-left: 4px; }

/* =================== PEOPLE =================== */
.people {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: clamp(16px, 5vw, 56px); padding: 30px 20px 70px;
}
.person { text-align: center; width: 230px; animation: popIn .8s ease both; }
.avatar-frame {
  position: relative;
  width: 200px; height: 200px; margin: 0 auto 16px; border-radius: 50%; padding: 6px;
  box-shadow: var(--shadow); transition: transform .3s;
}
.avatar-frame::before { /* chỉ viền gradient xoay, ảnh đứng yên */
  content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: 0;
  background: conic-gradient(from 0deg, var(--pink-300), var(--rose), var(--pink-400), var(--pink-300));
  animation: spinSlow 9s linear infinite;
}
.avatar {
  position: relative; z-index: 1;
  width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  background: var(--pink-100); display: flex; align-items: center; justify-content: center;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-placeholder { color: var(--text-soft); font-size: .95rem; text-align: center; line-height: 1.5; }
.person:hover .avatar-frame { transform: scale(1.04); }
.person:hover .avatar-frame::before { animation-play-state: paused; }
.person-name { font-size: 1.3rem; color: var(--rose); }
.person-meta { color: var(--text-soft); font-size: .95rem; margin-top: 2px; }
.person-bd { font-size: .9rem; color: var(--pink-600); margin-top: 6px; font-weight: 500; }

.heart-link { display: flex; align-items: center; justify-content: center; }
.pulse-heart { font-size: 3rem; animation: beat 1.3s infinite; }
.pulse-heart.big { font-size: 2.4rem; }

/* =================== SECTION chung =================== */
.section {
  position: relative; z-index: 1;
  max-width: 1000px; margin: 0 auto; padding: 60px 20px;
}
.section-title {
  font-family: 'Dancing Script', cursive; text-align: center;
  font-size: clamp(2.2rem, 7vw, 3.4rem); color: var(--rose); margin-bottom: 6px;
}
.section-sub { text-align: center; color: var(--text-soft); margin-bottom: 34px; }

/* ---------- cột mốc ---------- */
.milestone-next { padding: 22px 26px; text-align: center; margin-bottom: 30px; }
.milestone-next .mn-title { color: var(--text-soft); font-size: .95rem; }
.milestone-next .mn-main { font-size: 1.4rem; font-weight: 700; color: var(--rose); margin: 4px 0 12px; }
.mn-bar { height: 14px; border-radius: 999px; background: var(--pink-100); overflow: hidden; }
.mn-bar > i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--pink-400), var(--rose)); transition: width 1s ease;
}
.milestones { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.ms-card {
  background: rgba(255,255,255,.6); border: 1.5px solid rgba(255,255,255,.8);
  border-radius: 20px; padding: 20px 16px; text-align: center; box-shadow: 0 10px 26px -16px rgba(214,51,108,.5);
  transition: transform .2s; position: relative; overflow: hidden;
}
.ms-card:hover { transform: translateY(-5px) scale(1.02); }
.ms-card.done { background: linear-gradient(160deg, #fff, var(--pink-100)); }
.ms-card.done::after { content: "✓"; position: absolute; top: 10px; right: 14px; color: var(--rose); font-weight: 700; }
.ms-emoji { font-size: 2rem; }
.ms-num { font-size: 1.5rem; font-weight: 700; color: var(--rose); margin-top: 4px; }
.ms-label { color: var(--text-soft); font-size: .9rem; }
.ms-date { color: var(--pink-600); font-size: .82rem; margin-top: 6px; }

/* ---------- love meter ---------- */
.lovemeter-wrap { max-width: 520px; margin: 0 auto; padding: 30px; }
.lovemeter-track { height: 28px; border-radius: 999px; background: var(--pink-100); overflow: hidden; }
.lovemeter-fill {
  width: 0; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--pink-300), var(--rose));
  transition: width 1.4s cubic-bezier(.2,.8,.2,1);
}
.lovemeter-value { font-size: 2rem; font-weight: 700; color: var(--rose); margin: 14px 0 18px; font-family: 'Dancing Script', cursive; }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.photo {
  background: #fff; padding: 12px 12px 44px; border-radius: 8px;
  box-shadow: 0 12px 28px -14px rgba(214,51,108,.55); transform: rotate(var(--rot, -2deg));
  transition: transform .25s; position: relative;
}
.photo:hover { transform: rotate(0) scale(1.04); z-index: 2; }
.photo .ph-img {
  width: 100%; aspect-ratio: 4/5; border-radius: 4px; overflow: hidden;
  background: linear-gradient(160deg, var(--pink-100), var(--pink-200));
  display: flex; align-items: center; justify-content: center; color: var(--text-soft);
}
.photo .ph-img img { width: 100%; height: 100%; object-fit: cover; }
.photo .ph-cap {
  position: absolute; bottom: 12px; left: 0; right: 0; text-align: center;
  font-family: 'Dancing Script', cursive; font-size: 1.2rem; color: var(--rose);
}
.gallery-hint { text-align: center; color: var(--text-soft); margin-top: 22px; font-size: .92rem; }

/* ---------- quote ---------- */
.quote-heart {
  font-size: 4.5rem; background: none; border: none; cursor: pointer;
  filter: drop-shadow(0 10px 16px rgba(214,51,108,.35)); transition: transform .15s;
  animation: beat 1.6s infinite;
}
.quote-heart:hover { transform: scale(1.12); }
.quote-heart:active { transform: scale(.9); }
.quote-text {
  margin: 22px auto 0; max-width: 560px; font-size: 1.3rem; color: var(--rose);
  font-family: 'Dancing Script', cursive; min-height: 2em; transition: opacity .3s;
}

/* ---------- form tin nhắn ---------- */
.msg-form { max-width: 560px; margin: 0 auto; padding: 30px; display: grid; gap: 16px; }
.msg-form label { display: grid; gap: 6px; font-weight: 500; color: var(--text); font-size: .95rem; }
.msg-form input, .msg-form textarea {
  font-family: inherit; font-size: 1rem; color: var(--text);
  padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--pink-200);
  background: rgba(255,255,255,.85); resize: vertical; transition: border .2s, box-shadow .2s;
}
.msg-form input:focus, .msg-form textarea:focus {
  outline: none; border-color: var(--pink-400); box-shadow: 0 0 0 4px rgba(255,126,176,.2);
}
.msg-form .btn { justify-self: center; }
.msg-status { text-align: center; min-height: 1.4em; font-size: .95rem; font-weight: 500; }
.msg-status.ok { color: #1a9c5b; }
.msg-status.err { color: var(--rose); }
.msg-status.loading { color: var(--text-soft); }

/* ---------- footer ---------- */
.footer {
  position: relative; z-index: 1; text-align: center; padding: 60px 20px 50px;
  color: var(--text-soft);
}
.footer p { margin-top: 8px; }
.footer-sub { font-size: .9rem; opacity: .8; }
.back-top { display: inline-block; margin-top: 18px; color: var(--rose); text-decoration: none; font-weight: 500; }

/* ---------- nút nhạc ---------- */
.music-toggle {
  position: fixed; top: 18px; right: 18px; z-index: 50;
  width: 50px; height: 50px; border-radius: 50%; border: none; cursor: pointer;
  font-size: 1.4rem; background: rgba(255,255,255,.7); backdrop-filter: blur(8px);
  box-shadow: var(--shadow); transition: transform .2s;
}
.music-toggle:hover { transform: scale(1.1) rotate(8deg); }
.music-toggle.playing { animation: spinSlow 4s linear infinite; }

/* ---------- hiệu ứng click tim ---------- */
.click-heart {
  position: fixed; pointer-events: none; z-index: 60; font-size: 26px;
  animation: clickPop .9s ease-out forwards; transform: translate(-50%, -50%);
}
@keyframes clickPop {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(.4); }
  100% { opacity: 0; transform: translate(-50%, -260%) scale(1.4); }
}

/* ---------- confetti ---------- */
.confetti {
  position: fixed; top: -20px; z-index: 55; pointer-events: none;
  width: 10px; height: 16px; border-radius: 2px; animation: fall linear forwards;
}
@keyframes fall { to { transform: translateY(108vh) rotate(720deg); opacity: .3; } }

/* ---------- keyframes ---------- */
@keyframes beat { 0%,100%{transform:scale(1);} 15%{transform:scale(1.18);} 30%{transform:scale(1);} 45%{transform:scale(1.12);} }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes bob { 0%,100%{transform:translateY(0);} 50%{transform:translateY(6px);} }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-18px);} to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(.92) translateY(14px);} to { opacity: 1; transform: none; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =================== TIMELINE =================== */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding: 6px 0; }
.timeline::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px;
  transform: translateX(-50%); border-radius: 3px;
  background: linear-gradient(var(--pink-300), var(--rose));
}
.tl-item { position: relative; width: 50%; padding: 14px 36px; box-sizing: border-box; }
.tl-item:nth-child(odd)  { left: 0;   text-align: right; }
.tl-item:nth-child(even) { left: 50%; text-align: left; }
.tl-dot {
  position: absolute; top: 26px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--rose); border: 3px solid #fff; box-shadow: 0 0 0 3px var(--pink-200);
}
.tl-item:nth-child(odd)  .tl-dot { right: -9px; }
.tl-item:nth-child(even) .tl-dot { left: -9px; }
.tl-card {
  display: inline-block; text-align: left; max-width: 100%;
  background: rgba(255,255,255,.65); border: 1.5px solid rgba(255,255,255,.8);
  border-radius: 18px; padding: 16px 18px; box-shadow: 0 10px 26px -16px rgba(214,51,108,.5);
  transition: transform .2s;
}
.tl-card:hover { transform: translateY(-4px); }
.tl-date { color: var(--pink-600); font-weight: 600; font-size: .88rem; }
.tl-title { color: var(--rose); font-size: 1.15rem; margin: 4px 0; font-weight: 600; }
.tl-desc { color: var(--text-soft); font-size: .95rem; }
.tl-photo { margin-top: 10px; border-radius: 12px; overflow: hidden; max-width: 260px; }
.tl-photo img { width: 100%; display: block; }

/* =================== PHONG BÌ THƯ TÌNH =================== */
.envelope { position: relative; width: 340px; max-width: 88vw; height: 220px; margin: 24px auto 0; cursor: pointer; }
.env-letter {
  position: absolute; left: 7%; top: 9%; width: 86%; height: 74%;
  background: linear-gradient(160deg, #fffdfb, #fff2f7); border-radius: 8px;
  box-shadow: 0 4px 14px rgba(214,51,108,.18);
  display: flex; align-items: flex-start; justify-content: center; padding-top: 22px;
  z-index: 1; transition: transform .65s cubic-bezier(.2,.8,.2,1);
}
.env-letter-peek { font-family: 'Dancing Script', cursive; font-size: 1.5rem; color: var(--rose); }
.envelope.open .env-letter { transform: translateY(-58%); z-index: 6; }
.env-front {
  position: absolute; inset: 0; border-radius: 12px; z-index: 2;
  background: linear-gradient(135deg, var(--pink-300), var(--pink-500));
  box-shadow: 0 16px 36px -14px rgba(214,51,108,.55);
}
.env-front::after { /* gân chéo dưới của phong bì */
  content: ""; position: absolute; inset: 0; border-radius: 12px;
  background:
    linear-gradient(48deg, transparent 49.4%, rgba(255,255,255,.18) 50%, transparent 50.6%),
    linear-gradient(-48deg, transparent 49.4%, rgba(255,255,255,.18) 50%, transparent 50.6%);
}
.env-flap {
  position: absolute; top: 0; left: 0; width: 100%; height: 56%;
  background: linear-gradient(135deg, var(--pink-400), var(--rose));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center; transition: transform .5s ease;
  z-index: 5; border-radius: 12px 12px 0 0;
}
.envelope.open .env-flap { transform: rotateX(180deg); z-index: 1; }
.env-seal {
  position: absolute; top: 40%; left: 50%; transform: translate(-50%,-50%);
  font-size: 1.9rem; z-index: 6; transition: opacity .3s;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.25));
}
.envelope.open .env-seal { opacity: 0; }
.env-hint { margin-top: 16px; color: var(--text-soft); }

/* lightbox thư */
.letter-modal {
  position: fixed; inset: 0; z-index: 200; padding: 20px;
  background: rgba(120,30,70,.45); backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
}
.letter-modal[hidden] { display: none; }
.lm-inner { position: relative; max-width: 560px; width: 100%; max-height: 88vh; overflow: auto; padding: 28px 26px; }
.lm-close {
  position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  border: none; cursor: pointer; font-size: 1rem; color: var(--rose); background: var(--pink-100);
}
.lm-close:hover { background: var(--pink-200); }
.lm-letter-text {
  white-space: pre-wrap; font-family: 'Dancing Script', cursive; font-size: 1.5rem; line-height: 1.5;
  color: var(--text); text-align: left;
  background: linear-gradient(160deg, #fffdfb, #fff5f8); padding: 22px; border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--pink-100);
}
.lm-photo { margin-top: 14px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); min-height: 40px; }
.lm-photo img { width: 100%; display: block; }
.lm-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
.lm-nav button {
  border: none; cursor: pointer; padding: 8px 16px; border-radius: 999px; font-family: inherit;
  font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--pink-400), var(--rose));
}
.lm-nav .lp-count { color: var(--text-soft); font-weight: 600; }

/* =================== EM CÓ YÊU ANH KHÔNG =================== */
.loveq-card { max-width: 520px; margin: 0 auto; padding: 42px 30px; }
.loveq-emoji { font-size: 3rem; }
.loveq-btns {
  display: flex; gap: 16px; justify-content: center; align-items: center;
  margin-top: 26px; flex-wrap: wrap; min-height: 56px;
}
.btn-no {
  font-family: inherit; font-size: 1rem; font-weight: 600; cursor: pointer;
  border-radius: 999px; padding: 14px 30px;
  color: var(--rose); background: #fff; border: 2px solid var(--pink-300);
  transition: top .18s ease, left .18s ease, transform .15s;
}
.btn-no.runaway { position: fixed; z-index: 120; margin: 0; }

/* =================== HÔM NAY CỦA EM THẾ NÀO =================== */
.mood-card { max-width: 560px; margin: 0 auto; padding: 30px 24px; }
.mood-options { display: flex; gap: 8px; margin-bottom: 18px; }
.mood-btn {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: inherit; cursor: pointer;
  border: 2px solid transparent; background: rgba(255,255,255,.6);
  border-radius: 18px; padding: 14px 6px;
  transition: transform .15s, border-color .2s, background .2s, box-shadow .2s;
}
.mood-btn:hover { transform: translateY(-4px); }
.mood-emoji { font-size: 2.1rem; line-height: 1; filter: grayscale(.35); transition: filter .2s, transform .2s; }
.mood-btn:hover .mood-emoji { filter: none; }
.mood-label { font-size: .82rem; color: var(--text-soft); font-weight: 500; }
.mood-btn.selected {
  border-color: var(--rose); background: linear-gradient(160deg, #fff, var(--pink-100));
  box-shadow: 0 10px 22px -12px rgba(214,51,108,.5);
}
.mood-btn.selected .mood-emoji { filter: none; transform: scale(1.18); }
.mood-btn.selected .mood-label { color: var(--rose); font-weight: 700; }
.mood-note {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--text); box-sizing: border-box;
  padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--pink-200);
  background: rgba(255,255,255,.85); resize: vertical; margin-bottom: 16px;
  transition: border .2s, box-shadow .2s;
}
.mood-note:focus { outline: none; border-color: var(--pink-400); box-shadow: 0 0 0 4px rgba(255,126,176,.2); }
#mood-send[disabled] { opacity: .5; cursor: not-allowed; transform: none; filter: none; }
.mood-status { min-height: 1.4em; margin-top: 12px; font-size: .95rem; font-weight: 500; }
.mood-status.ok { color: #1a9c5b; }
.mood-status.err { color: var(--rose); }
.mood-status.loading { color: var(--text-soft); }

/* =================== MODAL NGÀY ĐẶC BIỆT =================== */
.special-modal {
  position: fixed; inset: 0; z-index: 300; padding: 20px;
  background: rgba(90,20,55,.62); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
}
.special-modal[hidden] { display: none; }
#fireworks { position: absolute; inset: 0; width: 100%; height: 100%; }
.special-card { position: relative; z-index: 2; max-width: 460px; width: 100%; padding: 38px 30px; text-align: center; animation: popIn .5s ease both; }
.special-emoji { font-size: 3.4rem; animation: beat 1.2s infinite; }
.special-title { font-family: 'Dancing Script', cursive; font-size: clamp(2rem, 7vw, 2.6rem); color: var(--rose); margin: 8px 0; }
.special-text { color: var(--text); font-size: 1.08rem; margin-bottom: 24px; line-height: 1.6; }

/* ---------- responsive ---------- */
@media (max-width: 560px) {
  .timer { gap: 6px; }
  .timer-box { padding: 10px 2px; }

  /* avatar 2 người: tim nằm giữa, ảnh nhỏ lại cho gọn */
  .people { gap: 4px; padding: 24px 16px 50px; }
  .heart-link { width: 100%; }
  .pulse-heart { font-size: 2.4rem; }
  .avatar-frame { width: 150px; height: 150px; }
  .avatar-placeholder { font-size: .85rem; }
  .person { width: 100%; max-width: 280px; }

  /* cột mốc: 2 cột cho đỡ dài */
  .milestones { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ms-card { padding: 16px 8px; }
  .ms-emoji { font-size: 1.7rem; }
  .ms-num { font-size: 1.3rem; }
  .ms-label { font-size: .82rem; }
  .ms-date { font-size: .72rem; }
  .ms-card.done::after { top: 8px; right: 10px; }

  /* section gọn lại trên điện thoại */
  .section { padding: 46px 18px; }
  .milestone-next { padding: 18px 18px; }
  .lovemeter-wrap, .msg-form, .lm-inner, .mood-card { padding: 24px 16px; }

  /* tâm trạng: 5 nút vừa 1 hàng trên điện thoại */
  .mood-options { gap: 5px; }
  .mood-btn { padding: 10px 3px; border-radius: 14px; }
  .mood-emoji { font-size: 1.7rem; }
  .mood-label { font-size: .66rem; }
}

@media (max-width: 640px) {
  .timeline::before { left: 20px; }
  .tl-item,
  .tl-item:nth-child(odd),
  .tl-item:nth-child(even) { width: 100%; left: 0; text-align: left; padding: 14px 12px 14px 48px; }
  .tl-item:nth-child(odd) .tl-dot,
  .tl-item:nth-child(even) .tl-dot { left: 12px; right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
