/* ============================================================
   Merry Christmas · 我们的第一个圣诞
   Pure static front-end. No build step required for the page.
   ============================================================ */

:root {
  --bg: #03070a;
  --ink: #f5efe3;
  --muted: rgba(224, 215, 198, .58);
  --gold: #eac581;
  --gold-bright: #f8e4b4;
  --gold-deep: #9f7440;
  --green: #2b8d6a;
  --red: #d95b5b;
  --line: rgba(238, 211, 156, .14);
  --serif: "Cormorant Garamond", "Bodoni MT", "Didot", "Times New Roman", serif;
  --script: "Great Vibes", "Segoe Script", "Brush Script MT", cursive;
  --sans: "Montserrat", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif-cn: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --page-x: clamp(22px, 5.2vw, 88px);
  --ease: cubic-bezier(.19, 1, .22, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(234, 197, 129, .35) #05090c;
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, .tree-3d:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}
img, canvas, svg { display: block; }
::selection { background: rgba(234, 197, 129, .28); color: #fffaf0; }

.site-shell { position: relative; overflow: clip; }

#story { scroll-margin-top: 74px; }

/* ---------- atmosphere ---------- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
  background: #03070a;
}

.ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 72% 62% at 72% 30%, rgba(20, 104, 77, .25), transparent 66%),
    radial-gradient(ellipse 58% 58% at 16% 82%, rgba(126, 86, 34, .14), transparent 68%),
    radial-gradient(ellipse 90% 70% at 50% 110%, rgba(8, 41, 32, .45), transparent 70%),
    linear-gradient(180deg, #050b0f 0%, #03070a 52%, #020507 100%);
}

.aurora {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  mix-blend-mode: screen;
  will-change: transform;
}

.aurora-a {
  width: 52vw; height: 52vw; min-width: 480px; min-height: 480px;
  right: -16vw; top: -20vw;
  background: radial-gradient(circle, rgba(31, 145, 104, .2), transparent 64%);
  animation: auroraA 26s ease-in-out infinite alternate;
}

.aurora-b {
  width: 44vw; height: 44vw; min-width: 380px; min-height: 380px;
  left: -18vw; bottom: -20vw;
  background: radial-gradient(circle, rgba(146, 98, 40, .16), transparent 66%);
  animation: auroraB 32s ease-in-out infinite alternate;
}

.aurora-c {
  width: 28vw; height: 28vw; min-width: 260px; min-height: 260px;
  left: 42%; top: 46%;
  background: radial-gradient(circle, rgba(43, 127, 145, .08), transparent 70%);
  animation: auroraC 22s ease-in-out infinite alternate;
}

.star-field {
  position: absolute; inset: 0; opacity: .62;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 248, 229, .8), transparent 100%),
    radial-gradient(1px 1px at 27% 42%, rgba(224, 243, 255, .6), transparent 100%),
    radial-gradient(1.4px 1.4px at 43% 12%, rgba(255, 238, 200, .7), transparent 100%),
    radial-gradient(1px 1px at 66% 27%, rgba(255, 255, 255, .55), transparent 100%),
    radial-gradient(1.2px 1.2px at 78% 8%, rgba(255, 232, 184, .75), transparent 100%),
    radial-gradient(1px 1px at 88% 34%, rgba(202, 235, 255, .55), transparent 100%),
    radial-gradient(1px 1px at 8% 67%, rgba(255, 244, 218, .55), transparent 100%),
    radial-gradient(1.3px 1.3px at 35% 82%, rgba(255, 238, 202, .5), transparent 100%);
  background-size: 520px 480px, 680px 620px, 860px 760px, 740px 540px, 900px 700px, 760px 660px, 840px 720px, 1000px 800px;
  animation: starBreath 11s ease-in-out infinite alternate;
}

.noise {
  position: absolute; inset: -50%; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  mix-blend-mode: overlay;
}

.vignette {
  position: absolute; inset: 0;
  box-shadow: inset 0 0 120px 30px rgba(0, 0, 0, .55), inset 0 -220px 260px -120px rgba(0, 0, 0, .65);
}

/* ---------- header ---------- */

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 24px var(--page-x);
  border-bottom: 1px solid transparent;
  transition: padding .45s var(--ease), background .45s ease, border-color .45s ease, backdrop-filter .45s ease;
}

.topbar.is-scrolled {
  padding-top: 14px; padding-bottom: 14px;
  background: rgba(3, 7, 10, .72);
  border-bottom-color: rgba(238, 211, 156, .08);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  backdrop-filter: blur(20px) saturate(130%);
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; transition: opacity .3s ease; }
.brand:hover { opacity: .78; }
.brand-star { color: var(--gold); font-size: 12px; text-shadow: 0 0 18px rgba(234, 197, 129, .75); }
.brand-text { font-family: var(--serif); font-size: 16px; font-weight: 500; letter-spacing: .22em; color: rgba(248, 240, 224, .9); }
.brand-text span { margin: 0 2px; color: var(--gold); font-size: .78em; }

.topbar-meta {
  position: absolute; left: 50%; transform: translateX(-50%);
  margin: 0; font-size: 8px; font-weight: 500; letter-spacing: .32em;
  color: rgba(230, 217, 194, .38); white-space: nowrap;
}
.topbar-meta i { color: var(--gold-deep); font-style: normal; margin: 0 6px; }

.sound-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 12px;
  border: 1px solid rgba(238, 211, 156, .18); border-radius: 999px;
  background: rgba(8, 14, 17, .38); color: rgba(245, 239, 227, .72);
  cursor: pointer; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: border-color .3s ease, color .3s ease, background .3s ease;
}
.sound-toggle:hover { color: var(--gold-bright); border-color: rgba(238, 211, 156, .4); background: rgba(15, 23, 25, .6); }
.sound-icon { width: 13px; height: 13px; opacity: .85; }
.sound-label { font-size: 9px; letter-spacing: .2em; }
.sound-eq { display: flex; align-items: flex-end; gap: 2px; height: 10px; opacity: 0; transition: opacity .3s ease; }
.sound-eq i { display: block; width: 1.5px; height: 4px; background: var(--gold); border-radius: 2px; }
.sound-toggle.is-playing { color: var(--gold-bright); border-color: rgba(238, 211, 156, .42); }
.sound-toggle.is-playing .sound-eq { opacity: 1; }
.sound-toggle.is-playing .sound-eq i { animation: equalize .9s ease-in-out infinite alternate; }
.sound-toggle.is-playing .sound-eq i:nth-child(2) { animation-delay: -.35s; }
.sound-toggle.is-playing .sound-eq i:nth-child(3) { animation-delay: -.6s; }
.sound-toggle.is-playing .sound-eq i:nth-child(4) { animation-delay: -.15s; }

/* ---------- shared type ---------- */

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin: 0; font-size: 8.5px; font-weight: 500;
  letter-spacing: .32em; line-height: 1.5;
  color: var(--gold); text-transform: uppercase;
}
.eyebrow-line { display: block; width: 32px; height: 1px; flex: 0 0 auto; background: linear-gradient(90deg, transparent, rgba(234, 197, 129, .8)); }
.eyebrow-line:last-child { transform: scaleX(-1); }

.hero-rise {
  opacity: 0;
  animation: heroRise 1.15s var(--ease) forwards;
  animation-delay: var(--delay, 0s);
}

.desktop-only { display: initial; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr);
  grid-template-rows: auto auto;
  grid-template-areas: "copy tree" "timer tree";
  align-content: center;
  column-gap: clamp(0px, 2vw, 38px);
  row-gap: clamp(20px, 2.8vh, 34px);
  min-height: 100vh;
  min-height: 100svh;
  max-width: 1680px;
  margin: 0 auto;
  padding: clamp(100px, 12vh, 134px) var(--page-x) clamp(62px, 8vh, 80px);
}

.hero-copy { grid-area: copy; align-self: end; max-width: 620px; }
.hero-eyebrow { color: rgba(234, 197, 129, .86); }
.hero-title { margin: 26px 0 0; font-weight: 500; color: var(--ink); }

.title-script {
  display: block; padding-right: .08em;
  font-family: var(--script); font-size: clamp(82px, 9.35vw, 154px); font-weight: 400;
  line-height: .7; letter-spacing: -.015em; color: transparent;
  background: linear-gradient(112deg, #f9edd0 4%, #eccb8c 33%, #b88a49 56%, #fff1c8 78%, #d6a961 98%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 12px 34px rgba(189, 137, 67, .16));
}

.title-serif {
  display: block; margin-top: -.08em;
  font-family: var(--serif); font-size: clamp(68px, 7.1vw, 114px); font-weight: 500;
  line-height: .86; letter-spacing: -.035em; color: #f6efe2;
  text-shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

.hero-cn {
  margin: 24px 0 0; font-family: var(--serif-cn);
  font-size: clamp(19px, 2vw, 28px); font-weight: 500;
  letter-spacing: .12em; line-height: 1.6; color: rgba(250, 244, 232, .92);
}
.hero-cn em { color: var(--gold-bright); font-style: normal; text-shadow: 0 0 30px rgba(234, 197, 129, .22); }

.hero-desc {
  max-width: 500px; margin: 16px 0 0;
  font-size: 13px; font-weight: 300; line-height: 2.05;
  letter-spacing: .015em; color: var(--muted);
}

.date-row { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); margin-top: clamp(24px, 3.2vh, 34px); }
.date-item { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.date-label { font-size: 8px; letter-spacing: .24em; color: rgba(234, 197, 129, .6); }
.date-value { font-family: var(--serif); font-size: clamp(16px, 1.5vw, 20px); font-weight: 500; letter-spacing: .08em; line-height: 1.2; white-space: nowrap; color: rgba(247, 240, 225, .86); }
.date-value span { margin: 0 1px; color: var(--gold-deep); }
.date-line { display: block; width: 1px; height: 32px; flex: 0 0 auto; background: linear-gradient(180deg, transparent, rgba(234, 197, 129, .38), transparent); }

/* ---------- tree stage ---------- */

.tree-area { position: relative; grid-area: tree; align-self: stretch; min-height: 610px; height: 100%; }

.tree-halo {
  position: absolute; left: 50%; top: 52%;
  width: min(82%, 720px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 132, 94, .13), rgba(234, 197, 129, .045) 34%, transparent 68%);
  filter: blur(28px);
  pointer-events: none;
}

.tree-stage {
  position: absolute;
  inset: 0 0 26px;
  overflow: hidden;
  border: 1px solid rgba(238, 211, 156, .18);
  border-radius: 48% 48% 22px 22px / 30% 30% 22px 22px;
  background: #020507;
  box-shadow: 0 36px 90px rgba(0, 0, 0, .4), inset 0 0 70px rgba(0, 0, 0, .46);
}

.tree-stage::after {
  content: "";
  position: absolute; inset: 0; z-index: 3;
  border-radius: inherit; pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, transparent 42%, rgba(2, 5, 8, .34) 100%);
  box-shadow: inset 0 0 56px 14px rgba(2, 5, 8, .5);
}

.tree-stage::before {
  content: "";
  position: absolute; inset: 7px; z-index: 4;
  border: 1px solid rgba(238, 211, 156, .08);
  border-radius: inherit; pointer-events: none;
}

.tree-3d {
  position: absolute; inset: 0; z-index: 1;
  overflow: hidden; cursor: grab; outline: none;
  -webkit-tap-highlight-color: transparent;
}
.tree-3d:active { cursor: grabbing; }
.tree-3d:focus-visible { outline: 1px solid rgba(234, 197, 129, .45); outline-offset: -16px; border-radius: 40%; }
.tree-3d canvas { width: 100%; height: 100%; border: 0; outline: none; touch-action: pan-y; }

.tree-loading {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: radial-gradient(ellipse at center, rgba(4, 13, 15, .6), rgba(2, 5, 8, .9));
  font-family: var(--sans); font-size: 9px; letter-spacing: .24em;
  color: rgba(234, 197, 129, .52);
  transition: opacity .7s ease, visibility .7s ease;
}
.tree-loading-star { color: var(--gold); font-size: 14px; text-shadow: 0 0 20px rgba(234, 197, 129, .8); animation: loadingStar 2.4s ease-in-out infinite; }
.tree-loading.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.tree-3d.is-failed .tree-loading { color: rgba(255, 170, 150, .7); background: rgba(3, 7, 10, .88); }

.tree-floor {
  position: absolute; left: 4%; right: 4%; bottom: 1%; height: 110px;
  background: radial-gradient(ellipse at 50% 50%, rgba(234, 197, 129, .16), rgba(38, 118, 85, .07) 38%, transparent 72%);
  filter: blur(18px); pointer-events: none;
}

.tree-hint {
  position: absolute; left: 50%; bottom: 1.6%; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  margin: 0; transform: translateX(-50%);
  font-size: 8.5px; letter-spacing: .16em;
  color: rgba(232, 223, 205, .45); white-space: nowrap; pointer-events: none;
}

.hint-pulse { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(234, 197, 129, .4); animation: hintPing 2.6s ease-out infinite; }

.tree-signature {
  position: absolute; right: -1%; top: 42%;
  display: flex; align-items: center; gap: 11px;
  writing-mode: vertical-rl; font-size: 7.5px; letter-spacing: .3em;
  color: rgba(234, 197, 129, .36); pointer-events: none;
}
.tree-signature strong { font-family: var(--serif); font-size: 15px; font-weight: 500; letter-spacing: .22em; color: rgba(234, 197, 129, .55); }

/* ---------- timer ---------- */

.timer-card {
  position: relative; grid-area: timer; align-self: start;
  width: min(100%, 530px); padding: 22px 28px 19px; overflow: hidden;
  border: 1px solid rgba(238, 211, 156, .16); border-radius: 18px;
  background: linear-gradient(148deg, rgba(20, 31, 31, .78), rgba(4, 9, 12, .52));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .055);
  -webkit-backdrop-filter: blur(22px) saturate(130%); backdrop-filter: blur(22px) saturate(130%);
}
.timer-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 100% at 0% 0%, rgba(234, 197, 129, .09), transparent 60%), radial-gradient(ellipse 50% 90% at 100% 100%, rgba(39, 123, 90, .07), transparent 65%); pointer-events: none; }
.timer-card::after { content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, rgba(248, 228, 180, .38), transparent); }

.timer-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.timer-kicker { margin: 0; font-size: 10px; letter-spacing: .12em; color: rgba(234, 226, 210, .62); }
.live-badge { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; padding: 3px 7px; border: 1px solid rgba(234, 197, 129, .18); border-radius: 999px; font-size: 7px; font-weight: 500; letter-spacing: .18em; color: rgba(234, 197, 129, .7); }
.live-badge i { width: 4px; height: 4px; border-radius: 50%; background: #ff8b78; box-shadow: 0 0 9px rgba(255, 120, 100, .9); animation: livePulse 1.8s ease-in-out infinite; }

.countdown { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: clamp(8px, 1.45vw, 20px); margin-top: 7px; }
.cd-cell { display: flex; align-items: flex-end; gap: 4px; }
.cd-value { display: inline-block; min-width: 1.04em; font-family: var(--serif); font-size: clamp(42px, 4.25vw, 58px); font-weight: 400; line-height: 1; letter-spacing: -.045em; color: var(--gold-bright); font-variant-numeric: tabular-nums lining-nums; text-shadow: 0 0 34px rgba(234, 197, 129, .13); }
.cd-label { margin-bottom: 5px; font-size: 8px; letter-spacing: .1em; color: rgba(234, 226, 210, .42); }
.cd-colon { margin-bottom: 12px; font-family: var(--serif); font-size: 28px; line-height: 1; color: rgba(234, 197, 129, .27); transform: translateY(-2px); }

.timer-divider { position: relative; z-index: 1; height: 1px; margin: 16px 0 12px; background: linear-gradient(90deg, rgba(238, 211, 156, .14), rgba(238, 211, 156, .03)); }
.timer-together { position: relative; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-size: 10px; letter-spacing: .08em; color: rgba(234, 226, 210, .45); }
.timer-together strong { font-family: var(--serif); font-size: 16px; font-weight: 500; letter-spacing: .06em; color: rgba(248, 228, 180, .9); font-variant-numeric: tabular-nums; white-space: nowrap; }

.timer-progress { position: relative; z-index: 1; margin-top: 14px; }
.timer-progress-track { position: relative; height: 2px; overflow: hidden; background: rgba(238, 211, 156, .09); border-radius: 2px; }
.timer-progress-track span { display: block; width: 0%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6e5632, var(--gold), var(--gold-bright)); box-shadow: 0 0 12px rgba(234, 197, 129, .5); transition: width 1.2s var(--ease); }
.timer-progress-label { display: flex; justify-content: space-between; margin-top: 7px; font-family: var(--serif); font-size: 8px; letter-spacing: .12em; color: rgba(234, 226, 210, .26); }
.timer-tap { display: none; }

/* ---------- scroll cue ---------- */

.scroll-cue {
  position: absolute; left: 50%; bottom: 17px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transform: translateX(-50%);
  font-size: 8px; letter-spacing: .2em; color: rgba(234, 226, 210, .32);
  transition: color .3s ease;
}
.scroll-cue:hover { color: rgba(248, 228, 180, .7); }
.scroll-cue i { width: 1px; height: 32px; background: linear-gradient(180deg, rgba(234, 197, 129, .66), transparent); transform-origin: top; animation: scrollLine 2.4s ease-in-out infinite; }

/* ---------- story ---------- */

.story {
  position: relative; max-width: 1500px; margin: 0 auto;
  padding: clamp(90px, 11vw, 152px) var(--page-x) clamp(80px, 8vw, 106px);
  border-top: 1px solid rgba(238, 211, 156, .08);
}
.story::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: radial-gradient(ellipse 52% 30% at 50% 0%, rgba(19, 83, 63, .16), transparent 72%), radial-gradient(ellipse 40% 30% at 85% 64%, rgba(130, 87, 34, .07), transparent 70%);
  pointer-events: none;
}
.story-glow { position: absolute; top: -1px; left: 50%; width: min(620px, 70vw); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(248, 228, 180, .55), transparent); box-shadow: 0 0 40px 3px rgba(234, 197, 129, .16); }

.section-head { max-width: 780px; margin: 0 auto; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head h2 { margin: 22px 0 0; font-family: var(--serif-cn); font-size: clamp(35px, 4.3vw, 58px); font-weight: 600; line-height: 1.35; letter-spacing: .02em; color: rgba(250, 244, 233, .94); }
.section-head h2 em { color: var(--gold-bright); font-style: normal; }
.section-head > p:last-child { margin: 18px 0 0; font-size: 12px; font-weight: 300; letter-spacing: .05em; line-height: 2; color: var(--muted); }

.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(50px, 6vw, 76px); }

.milestone {
  position: relative; display: flex; flex-direction: column; min-height: 336px;
  padding: 28px 26px 24px; overflow: hidden;
  border: 1px solid rgba(238, 211, 156, .12); border-radius: 18px;
  background: linear-gradient(158deg, rgba(255, 255, 255, .038), rgba(255, 255, 255, .008));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
  transition: transform .55s var(--ease), border-color .55s ease, background .55s ease;
}
.milestone::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(238, 211, 156, .22), transparent); }
.milestone::after { content: ""; position: absolute; top: -70px; right: -60px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(234, 197, 129, .06), transparent 66%); pointer-events: none; }
.milestone:hover { transform: translateY(-6px); border-color: rgba(238, 211, 156, .25); background: linear-gradient(158deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .012)); }
.milestone-accent { border-color: rgba(234, 197, 129, .23); background: linear-gradient(158deg, rgba(234, 197, 129, .075), rgba(255, 255, 255, .012) 54%); }
.milestone-no { position: absolute; top: 22px; right: 23px; font-family: var(--serif); font-size: 10px; letter-spacing: .14em; color: rgba(234, 197, 129, .38); }

.milestone-date { display: flex; align-items: flex-start; gap: 7px; color: var(--gold); }
.milestone-date span { margin-top: 8px; font-size: 8px; letter-spacing: .18em; color: rgba(234, 197, 129, .55); }
.milestone-date strong { font-family: var(--serif); font-size: 58px; font-weight: 400; line-height: .82; letter-spacing: -.035em; color: var(--gold-bright); }
.milestone-date em { margin-top: 8px; font-size: 8px; font-style: normal; letter-spacing: .12em; color: rgba(234, 226, 210, .35); }
.milestone h3 { margin: 22px 0 0; font-family: var(--serif-cn); font-size: 22px; font-weight: 600; letter-spacing: .02em; color: rgba(250, 244, 233, .92); }
.milestone p { margin: 11px 0 0; font-size: 12px; font-weight: 300; line-height: 1.95; letter-spacing: .015em; color: var(--muted); }
.milestone-stat { display: flex; align-items: baseline; gap: 6px; margin-top: auto; padding-top: 20px; border-top: 1px dashed rgba(238, 211, 156, .14); font-size: 9px; letter-spacing: .1em; color: rgba(234, 226, 210, .4); }
.milestone-stat strong { font-family: var(--serif); font-size: 31px; font-weight: 500; line-height: 1; letter-spacing: 0; color: var(--gold-bright); font-variant-numeric: tabular-nums; }

/* ---------- letter ---------- */

.letter {
  position: relative; max-width: 940px; margin: clamp(54px, 6vw, 80px) auto 0;
  padding: 66px clamp(28px, 7vw, 104px) 58px; overflow: hidden;
  border: 1px solid rgba(238, 211, 156, .17); border-radius: 24px; text-align: center;
  background: radial-gradient(ellipse 70% 120% at 50% -20%, rgba(234, 197, 129, .095), transparent 60%), radial-gradient(ellipse 60% 80% at 100% 100%, rgba(28, 103, 78, .1), transparent 65%), linear-gradient(160deg, rgba(12, 21, 22, .74), rgba(3, 8, 11, .55));
  box-shadow: 0 40px 100px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.letter::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(238, 211, 156, .06); border-radius: 17px; pointer-events: none; }
.letter-quote { position: absolute; top: -76px; left: 14px; font-family: var(--serif); font-size: 260px; line-height: 1; color: rgba(234, 197, 129, .055); pointer-events: none; }
.letter-kicker { margin: 0; font-size: 8px; letter-spacing: .34em; color: rgba(234, 197, 129, .58); }
.letter h3 { margin: 12px 0 0; font-family: var(--serif-cn); font-size: clamp(28px, 3vw, 38px); font-weight: 600; letter-spacing: .04em; color: var(--gold-bright); }
.letter-body { position: relative; z-index: 1; }
.letter-body p { max-width: 640px; margin: 16px auto 0; font-family: var(--serif-cn); font-size: 13.5px; font-weight: 400; line-height: 2.15; letter-spacing: .03em; color: rgba(246, 238, 224, .74); }
.letter-body p:first-child { margin-top: 26px; }
.letter-sign { margin: 26px 0 0; font-family: var(--script); font-size: 30px; line-height: 1.35; color: rgba(248, 228, 180, .85); }
.letter-sign em { font-style: normal; color: rgba(248, 228, 180, .55); }
.letter-stamp { position: absolute; right: 30px; bottom: 26px; display: flex; align-items: center; justify-content: center; gap: 4px; width: 72px; height: 72px; border: 1px solid rgba(234, 197, 129, .28); border-radius: 50%; color: rgba(234, 197, 129, .55); transform: rotate(-12deg); pointer-events: none; }
.letter-stamp strong { font-family: var(--serif); font-size: 25px; font-weight: 400; line-height: 1; }
.letter-stamp span { font-size: 6.5px; line-height: 1.5; letter-spacing: .12em; }

/* ---------- story end / footer ---------- */

.story-end { margin: clamp(60px, 8vw, 92px) auto 0; text-align: center; }
.end-star { display: inline-block; color: var(--gold); font-size: 13px; text-shadow: 0 0 22px rgba(234, 197, 129, .55); }
.story-end p { margin: 15px 0 0; font-family: var(--serif-cn); font-size: clamp(16px, 1.7vw, 20px); font-weight: 500; line-height: 2; letter-spacing: .06em; color: rgba(246, 238, 224, .7); }

.footer { position: relative; padding: 46px var(--page-x) 38px; border-top: 1px solid rgba(238, 211, 156, .08); text-align: center; background: linear-gradient(180deg, rgba(4, 9, 12, .4), rgba(1, 3, 5, .9)); }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--serif); font-size: 13px; letter-spacing: .24em; color: rgba(248, 240, 224, .68); }
.footer-brand span { color: var(--gold-deep); font-size: 8px; }
.footer-title { margin: 18px 0 0; font-family: var(--serif); font-size: 21px; font-weight: 400; letter-spacing: .04em; color: rgba(248, 240, 224, .78); }
.footer-title em { font-family: var(--script); font-size: 1.45em; color: var(--gold); }
.footer-meta { margin: 8px 0 0; font-size: 8px; letter-spacing: .18em; color: rgba(234, 226, 210, .3); }
.footer-domain { margin: 17px 0 0; font-family: var(--serif); font-size: 9px; letter-spacing: .16em; color: rgba(234, 197, 129, .28); text-transform: lowercase; }
.footer-credit { margin: 13px 0 0; font-size: 6.5px; letter-spacing: .14em; line-height: 1.7; color: rgba(234, 226, 210, .22); }
.footer-credit a { color: rgba(234, 197, 129, .3); border-bottom: 1px solid rgba(234, 197, 129, .12); transition: color .3s ease, border-color .3s ease; }
.footer-credit a:hover { color: rgba(234, 197, 129, .65); border-color: rgba(234, 197, 129, .35); }
.back-top { display: inline-flex; align-items: center; gap: 7px; margin-top: 22px; padding-bottom: 4px; border-bottom: 1px solid rgba(238, 211, 156, .18); font-size: 8px; letter-spacing: .2em; color: rgba(234, 226, 210, .38); transition: color .3s ease, border-color .3s ease; }
.back-top:hover { color: var(--gold); border-color: rgba(234, 197, 129, .45); }

/* ---------- toast ---------- */

.wish-toast {
  position: fixed; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); z-index: 80;
  display: flex; align-items: center; gap: 12px;
  width: max-content; max-width: min(92vw, 560px);
  padding: 13px 16px 13px 18px;
  border: 1px solid rgba(238, 211, 156, .26); border-radius: 999px;
  background: rgba(7, 13, 15, .88);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .05);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transform: translate(-50%, 16px);
  transition: opacity .35s ease, transform .5s var(--ease), visibility .35s ease;
}
.wish-toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast-mark { flex: 0 0 auto; color: var(--gold); font-size: 10px; text-shadow: 0 0 16px rgba(234, 197, 129, .55); }
.wish-toast p { margin: 0; font-family: var(--serif-cn); font-size: 12px; font-weight: 400; line-height: 1.65; letter-spacing: .03em; color: rgba(246, 238, 224, .85); }
.wish-toast button { flex: 0 0 auto; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .055); color: rgba(246, 238, 224, .48); font-size: 15px; line-height: 1; cursor: pointer; transition: background .25s ease, color .25s ease; }
.wish-toast button:hover { background: rgba(234, 197, 129, .14); color: var(--gold); }
.noscript { position: fixed; left: 50%; bottom: 20px; z-index: 90; width: max-content; max-width: 90vw; margin: 0; padding: 10px 16px; transform: translateX(-50%); border: 1px solid var(--line); border-radius: 999px; background: rgba(5, 10, 12, .9); font-size: 11px; color: var(--muted); }

/* ---------- reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .95s var(--ease), transform .95s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.timeline .reveal:nth-child(2) { transition-delay: .1s; }
.timeline .reveal:nth-child(3) { transition-delay: .2s; }

/* ---------- keyframes ---------- */

@keyframes heroRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes auroraA { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-5vw, 4vh, 0) scale(1.12); } }
@keyframes auroraB { from { transform: translate3d(0, 0, 0) scale(1.04); } to { transform: translate3d(4vw, -5vh, 0) scale(.94); } }
@keyframes auroraC { from { transform: translate3d(-2vw, 0, 0) scale(.95); opacity: .4; } to { transform: translate3d(3vw, 3vh, 0) scale(1.1); opacity: .65; } }
@keyframes starBreath { from { opacity: .46; } to { opacity: .72; } }
@keyframes livePulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.7); } }
@keyframes hintPing { 0% { box-shadow: 0 0 0 0 rgba(234, 197, 129, .38); } 55% { box-shadow: 0 0 0 7px rgba(234, 197, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(234, 197, 129, 0); } }
@keyframes scrollLine { 0%, 100% { transform: scaleY(.35); opacity: .35; } 45% { transform: scaleY(1); opacity: .9; } }
@keyframes equalize { 0% { height: 3px; } 100% { height: 10px; } }
@keyframes loadingStar { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); column-gap: 16px; }
  .title-serif { font-size: clamp(64px, 7vw, 96px); }
  .title-script { font-size: clamp(78px, 9.1vw, 128px); }
  .tree-area { min-height: 560px; }
  .timer-card { width: min(100%, 470px); }
  .cd-value { font-size: clamp(38px, 4vw, 50px); }
  .cd-colon { margin-bottom: 9px; }
}

@media (max-width: 940px) {
  .topbar-meta { display: none; }
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding: 96px 22px 34px; }
  .hero-copy { order: 1; width: 100%; max-width: 620px; margin: 0 auto; text-align: center; }
  .hero-eyebrow { justify-content: center; }
  .title-script { font-size: clamp(76px, 16vw, 122px); line-height: .72; }
  .title-serif { font-size: clamp(58px, 13vw, 98px); margin-top: -.07em; }
  .hero-cn { margin-top: 22px; font-size: clamp(20px, 4.6vw, 25px); }
  .hero-desc { max-width: 430px; margin: 14px auto 0; font-size: 12.5px; line-height: 1.95; }
  .date-row { justify-content: center; margin-top: 23px; }
  .date-line { height: 28px; }
  .tree-area { order: 2; width: calc(100% + 20px); height: 54svh; min-height: 390px; max-height: 560px; margin: -4px -10px 0; }
  .tree-stage { inset: 0 0 18px; }
  .tree-hint { display: none; }
  .tree-signature { display: none; }
  .tree-floor { bottom: 6%; }
  .timer-card { order: 3; z-index: 3; width: 100%; max-width: 560px; margin: -22px auto 0; padding: 20px 22px 18px; }
  .timer-tap { display: block; margin: 10px 0 0; font-size: 8px; letter-spacing: .12em; text-align: center; color: rgba(234, 226, 210, .32); }
  .cd-value { font-size: clamp(38px, 7.4vw, 48px); }
  .cd-colon { font-size: 24px; margin-bottom: 10px; }
  .scroll-cue { position: static; order: 4; margin: 26px auto 0; transform: none; }
  .scroll-cue i { height: 24px; }
  .desktop-only { display: none; }
  .timeline { grid-template-columns: 1fr; max-width: 560px; margin-right: auto; margin-left: auto; gap: 14px; }
  .milestone { min-height: 0; padding: 25px 25px 23px; }
  .milestone-stat { margin-top: 20px; }
  .letter { padding: 56px clamp(24px, 7vw, 76px) 56px; }
  .letter-stamp { right: 20px; bottom: 20px; width: 64px; height: 64px; }
}

@media (max-width: 600px) {
  .topbar { padding: 17px 18px; }
  .topbar.is-scrolled { padding-top: 11px; padding-bottom: 11px; }
  .brand-text { font-size: 14px; }
  .sound-toggle {
    position: absolute;
    top: 14px;
    right: 18px;
    display: inline-flex;
    height: 31px;
    padding: 0 10px;
    gap: 7px;
    z-index: 2;
  }
  .sound-label { display: none; }
  .sound-eq { height: 9px; }
  .hero { padding: 74px 17px 26px; }
  .eyebrow { font-size: 7.5px; letter-spacing: .26em; gap: 9px; }
  .eyebrow-line { width: 22px; }
  .hero-title { margin-top: 17px; }
  .title-script { font-size: clamp(61px, 17.6vw, 88px); }
  .title-serif { font-size: clamp(47px, 14.4vw, 70px); letter-spacing: -.045em; }
  .hero-cn { margin-top: 17px; font-size: 18px; letter-spacing: .09em; }
  .hero-desc { max-width: 360px; margin-top: 10px; font-size: 11px; line-height: 1.85; color: rgba(224, 215, 198, .54); overflow-wrap: anywhere; }
  .date-row { gap: 14px; margin-top: 17px; }
  .date-label { font-size: 7px; letter-spacing: .2em; }
  .date-value { font-size: 14px; letter-spacing: .05em; }
  .date-line { height: 25px; }
  .tree-area { width: calc(100% + 24px); margin: -1px -12px 0; height: 40svh; min-height: 300px; max-height: 400px; }
  .tree-stage { inset: 0 0 8px; }
  .tree-halo { width: 92%; }
  .timer-card { margin-top: -24px; padding: 17px 17px 15px; border-radius: 15px; }
  .timer-kicker { font-size: 9px; letter-spacing: .08em; }
  .live-badge { padding: 3px 6px; font-size: 6.5px; }
  .countdown { gap: 5px; margin-top: 8px; }
  .cd-cell { gap: 2px; }
  .cd-value { font-size: clamp(32px, 9.4vw, 40px); letter-spacing: -.04em; }
  .cd-label { margin-bottom: 3px; font-size: 7px; }
  .cd-colon { margin-bottom: 7px; font-size: 19px; }
  .timer-divider { margin: 12px 0 10px; }
  .timer-together { font-size: 9px; }
  .timer-together strong { font-size: 13px; }
  .timer-progress { margin-top: 12px; }
  .timer-progress-label { font-size: 7px; }
  .scroll-cue { margin-top: 23px; font-size: 7.5px; }
  .story { padding-top: 74px; padding-bottom: 64px; }
  .section-head h2 { margin-top: 18px; font-size: clamp(31px, 8.8vw, 42px); letter-spacing: 0; }
  .section-head > p:last-child { margin-top: 14px; font-size: 11px; }
  .timeline { margin-top: 42px; }
  .milestone { padding: 23px 21px 21px; border-radius: 15px; }
  .milestone-date strong { font-size: 49px; }
  .milestone h3 { margin-top: 18px; font-size: 20px; }
  .milestone p { font-size: 11.5px; }
  .milestone-stat { padding-top: 17px; }
  .milestone-no { top: 19px; right: 19px; }
  .letter { margin-top: 46px; padding: 44px 21px 46px; border-radius: 18px; }
  .letter::before { inset: 7px; border-radius: 13px; }
  .letter-quote { top: -42px; left: 8px; font-size: 170px; }
  .letter h3 { font-size: 26px; }
  .letter-body p { font-size: 12px; line-height: 2.05; }
  .letter-body p:first-child { margin-top: 20px; }
  .letter-sign { margin-top: 22px; font-size: 25px; }
  .letter-stamp { position: relative; right: auto; bottom: auto; width: 58px; height: 58px; margin: 24px auto 0; }
  .letter-stamp strong { font-size: 21px; }
  .story-end { margin-top: 56px; }
  .story-end p { font-size: 15px; }
  .footer { padding: 37px 18px 32px; }
  .footer-title { font-size: 17px; }
  .footer-meta, .footer-domain { letter-spacing: .12em; }
  .wish-toast { gap: 9px; padding: 12px 12px 12px 14px; border-radius: 18px; }
  .wish-toast p { font-size: 11px; }
}

@media (max-width: 370px) {
  .title-script { font-size: 62px; }
  .title-serif { font-size: 47px; }
  .hero-cn { font-size: 17px; }
  .cd-value { font-size: 30px; }
  .timer-card { padding-right: 14px; padding-left: 14px; }
  .date-value { font-size: 13px; }
}

@media (max-height: 720px) and (min-width: 941px) {
  .hero { padding-top: 90px; padding-bottom: 56px; }
  .title-script { font-size: clamp(76px, 8.3vw, 124px); }
  .title-serif { font-size: clamp(62px, 6.5vw, 94px); }
  .hero-cn { margin-top: 17px; }
  .date-row { margin-top: 20px; }
  .tree-area { min-height: 500px; }
  .timer-card { padding-top: 18px; padding-bottom: 15px; }
  .cd-value { font-size: 42px; }
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .title-script { color: var(--gold); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-rise { opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .scroll-cue i { animation: none; }
}

/* ============================================================
   HWH additions: day-only timer, timeline, little zoo, charms
   ============================================================ */

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.brand-text {
  font-size: 15px;
  letter-spacing: .3em;
}

/* day-only timer */
.day-hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.day-number {
  font-family: var(--serif);
  font-size: clamp(76px, 7.4vw, 108px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.055em;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums lining-nums;
  text-shadow: 0 0 42px rgba(234, 197, 129, .18);
}

.day-unit {
  font-family: var(--serif-cn);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .08em;
  color: rgba(248, 228, 180, .7);
}

.day-note {
  margin-left: auto;
  padding-bottom: 8px;
  font-family: var(--serif-cn);
  font-size: 10px;
  letter-spacing: .08em;
  color: rgba(234, 226, 210, .38);
}

.timer-mini {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  font-size: 8px;
  letter-spacing: .1em;
  color: rgba(234, 226, 210, .35);
}

.timer-mini strong {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  color: rgba(248, 228, 180, .72);
  font-variant-numeric: tabular-nums;
}

.timer-mini i {
  width: 1px;
  height: 10px;
  margin: 0 4px;
  background: rgba(238, 211, 156, .16);
}

/* little zoo / timeline summary */
.little-zoo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 30px auto 0;
  color: rgba(234, 197, 129, .48);
}

.little-zoo span {
  width: 54px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(234, 197, 129, .26));
}

.little-zoo span:last-child {
  transform: scaleX(-1);
}

.little-zoo i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(234, 197, 129, .34);
}

.little-zoo svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(234, 197, 129, .2));
}

.timeline-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 22px auto 0;
  font-size: 9px;
  letter-spacing: .12em;
  color: rgba(234, 226, 210, .4);
}

.timeline-summary strong {
  margin: 0 2px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}

.timeline-summary i {
  width: 1px;
  height: 13px;
  background: rgba(238, 211, 156, .16);
}

/* timeline */
.love-timeline {
  position: relative;
  max-width: 1040px;
  margin: clamp(42px, 5vw, 64px) auto 0;
  padding: 8px 0;
}

.love-timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 26px;
  left: 148px;
  width: 1px;
  background: linear-gradient(180deg, rgba(238, 211, 156, .04), rgba(238, 211, 156, .25) 8%, rgba(238, 211, 156, .18) 92%, rgba(238, 211, 156, .02));
  pointer-events: none;
}

.timeline-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 150px;
  font-family: var(--serif-cn);
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(234, 226, 210, .38);
}

.timeline-loading span {
  color: var(--gold);
  animation: loadingStar 2.4s ease-in-out infinite;
}

.timeline-event {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1px minmax(0, 1fr);
  column-gap: 28px;
  padding-bottom: 30px;
}

.event-date {
  grid-column: 1;
  padding-top: 12px;
  text-align: right;
  color: var(--gold);
}

.event-date span {
  display: block;
  font-size: 8px;
  letter-spacing: .2em;
  color: rgba(234, 197, 129, .55);
}

.event-date strong {
  display: block;
  margin-top: 2px;
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  line-height: .82;
  letter-spacing: -.03em;
  color: var(--gold-bright);
}

.event-date small {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: .12em;
  color: rgba(234, 226, 210, .28);
}

.event-rail {
  grid-column: 2;
  position: relative;
}

.event-rail i {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 7px;
  height: 7px;
  transform: translateX(-50%) rotate(45deg);
  border: 1px solid rgba(234, 197, 129, .55);
  background: #07110f;
  box-shadow: 0 0 0 5px rgba(234, 197, 129, .045), 0 0 16px rgba(234, 197, 129, .22);
}

.timeline-event.is-highlight .event-rail i {
  background: var(--gold);
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 6px rgba(234, 197, 129, .1), 0 0 26px rgba(234, 197, 129, .55);
}

.event-card {
  grid-column: 3;
  position: relative;
  padding: 22px 26px 24px;
  border: 1px solid rgba(238, 211, 156, .13);
  border-radius: 17px;
  background: linear-gradient(156deg, rgba(255, 255, 255, .038), rgba(255, 255, 255, .01));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
  transition: transform .5s var(--ease), border-color .5s ease, background .5s ease;
}

.event-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(238, 211, 156, .22), transparent);
  opacity: .7;
}

.timeline-event:hover .event-card {
  transform: translateY(-4px);
  border-color: rgba(238, 211, 156, .25);
  background: linear-gradient(156deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .012));
}

.timeline-event.is-highlight .event-card {
  border-color: rgba(234, 197, 129, .28);
  background: linear-gradient(156deg, rgba(234, 197, 129, .085), rgba(255, 255, 255, .012) 55%);
}

.event-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 16px;
}

.event-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid rgba(234, 197, 129, .2);
  border-radius: 999px;
  font-size: 7px;
  letter-spacing: .14em;
  color: rgba(234, 197, 129, .72);
}

.event-time {
  margin-left: auto;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(234, 226, 210, .4);
}

.event-card h3 {
  margin: 10px 0 0;
  font-family: var(--serif-cn);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(250, 244, 233, .93);
}

.event-card p {
  margin: 8px 0 0;
  font-family: var(--serif-cn);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: .02em;
  color: var(--muted);
}

.event-card p + p {
  margin-top: 5px;
}

.timeline-event.is-highlight .event-card p {
  color: rgba(246, 238, 224, .72);
}

/* charms, pets, butterflies */
.tree-charms {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.charm {
  position: absolute;
  top: 9%;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(248, 228, 180, .62);
}

.charm-thread {
  display: block;
  width: 1px;
  height: 38px;
  background: linear-gradient(180deg, rgba(238, 211, 156, .35), rgba(238, 211, 156, .06));
}

.charm svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 12px rgba(234, 197, 129, .3));
  transform-origin: top center;
  animation: charmSway 5.8s ease-in-out infinite;
}

.charm-butterfly { left: 16%; }
.charm-cat { right: 17%; top: 11%; }
.charm-bunny { left: 28%; top: 14%; opacity: .45; }
.charm-butterfly svg { animation-delay: -1.2s; }
.charm-bunny svg { animation-delay: -2.4s; }

.tree-pets {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 1.5%;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: rgba(248, 228, 180, .42);
  pointer-events: none;
}

.tree-pets svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(234, 197, 129, .2));
}

.pet-bunny { width: 26px !important; height: 26px !important; }

.flutter-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.flutterby {
  position: absolute;
  color: rgba(248, 228, 180, .45);
  opacity: 0;
  animation: flutterPath 16s ease-in-out infinite;
}

.flutterby svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: center;
  animation: wingFlap 1.7s ease-in-out infinite;
}

.flutterby.f1 { left: 6%; top: 28%; animation-delay: -2s; }
.flutterby.f2 { right: 3%; top: 52%; animation-delay: -7s; color: rgba(255, 180, 190, .35); }
.flutterby.f3 { left: 12%; bottom: 12%; animation-delay: -12s; color: rgba(188, 235, 255, .3); }
.flutterby.f2 svg { animation-delay: -.6s; }
.flutterby.f3 svg { animation-delay: -1.1s; }

@keyframes charmSway {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

@keyframes wingFlap {
  0%, 100% { transform: scaleX(.72) rotate(-4deg); }
  50% { transform: scaleX(1) rotate(4deg); }
}

@keyframes flutterPath {
  0% { opacity: 0; transform: translate3d(0, 20px, 0) rotate(-8deg); }
  15% { opacity: .7; }
  45% { transform: translate3d(58px, -72px, 0) rotate(8deg); }
  75% { opacity: .55; transform: translate3d(20px, -130px, 0) rotate(-4deg); }
  100% { opacity: 0; transform: translate3d(85px, -190px, 0) rotate(10deg); }
}

@media (max-width: 940px) {
  .little-zoo { margin-top: 22px; gap: 11px; }
  .little-zoo span { width: 28px; }
  .little-zoo svg { width: 18px; height: 18px; }
  .timeline-summary { gap: 9px; font-size: 8px; margin-top: 16px; }
  .timeline-summary strong { font-size: 17px; }
  .timeline-summary i { height: 11px; }
  .love-timeline { margin-top: 34px; }
  .love-timeline::before { left: 42px; top: 8px; }
  .timeline-event { grid-template-columns: 30px 1px minmax(0, 1fr); column-gap: 14px; padding-bottom: 22px; }
  .event-date { padding-top: 17px; text-align: right; }
  .event-date span { font-size: 6px; letter-spacing: .12em; }
  .event-date strong { font-size: 24px; margin-top: 1px; }
  .event-date small { font-size: 6px; margin-top: 3px; }
  .event-rail i { top: 23px; width: 6px; height: 6px; }
  .event-card { padding: 16px 16px 18px; border-radius: 14px; }
  .event-card h3 { font-size: 17px; }
  .event-card p { font-size: 11px; line-height: 1.85; }
  .event-time { font-size: 9px; }
  .event-tag { font-size: 6px; padding: 2px 6px; }
  .charm { top: 8%; }
  .charm-thread { height: 26px; }
  .charm svg { width: 18px; height: 18px; }
  .charm-cat { right: 13%; }
  .charm-butterfly { left: 12%; }
  .charm-bunny { display: none; }
  .tree-pets { display: none; }
  .flutterby svg { width: 14px; height: 14px; }
  .flutterby.f2 { display: none; }
  .flutterby.f1 { left: 1%; top: 24%; }
  .flutterby.f3 { left: 3%; bottom: 10%; }
  .day-number { font-size: clamp(65px, 15vw, 84px); }
  .day-note { font-size: 9px; }
  .timer-mini { font-size: 8px; }
}

@media (max-width: 600px) {
  .day-number { font-size: 72px; }
  .day-unit { font-size: 15px; }
  .day-note { padding-bottom: 7px; font-size: 8px; }
  .timer-mini { margin-top: 8px; gap: 4px; }
  .timer-mini strong { font-size: 14px; }
  .timeline-summary { gap: 7px; }
  .timeline-summary i { display: none; }
  .timeline-summary span { margin: 0 2px; }
  .heart-title { letter-spacing: 0; }
}

@media (max-width: 370px) {
  .day-number { font-size: 62px; }
  .timeline-summary { font-size: 7px; }
  .timeline-summary strong { font-size: 15px; }
  .love-timeline::before { left: 34px; }
  .timeline-event { grid-template-columns: 22px 1px minmax(0, 1fr); column-gap: 10px; }
  .event-date strong { font-size: 20px; }
  .event-date span, .event-date small { font-size: 5.5px; }
}

