/* =========================================================
   Pearl · Champagne Gold · Iridescent
   手机与电脑同一套构图：居中、留白、按视口等比缩放
   ========================================================= */
:root {
  --cn: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --en: "Cormorant Garamond", "Noto Serif SC", "Songti SC", serif;
  --script: "Pinyon Script", "Cormorant Garamond", cursive;

  --ink: #3b302d;
  --ink-2: #6e605b;
  --ink-3: #a39590;
  --gold: #b08a4f;
  --gold-soft: rgba(176, 138, 79, .35);
  --rose: #c77d92;
  --foil: linear-gradient(105deg, #9c7338 0%, #d9b877 16%, #fff4d9 28%, #c99e5f 40%, #8f6a33 52%, #e6cc93 66%, #fff6df 76%, #b8925a 88%, #9c7338 100%);

  --base: #fbf8f4;
  --a1: #f9dfe6; --a2: #e7e1f5; --a3: #dcecf7; --a4: #f6ead2;

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; color: var(--ink); background: var(--base);
  font-family: var(--cn); font-weight: 400; font-size: clamp(15px, .45vw + 12.5px, 18px); line-height: 2;
  letter-spacing: .06em; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-locked { overflow: hidden; height: 100vh; height: 100svh; }
button { font: inherit; color: inherit; }
::selection { background: #f6dbe3; }

/* ---------- 背景 ---------- */
.bg { position: fixed; inset: 0; z-index: 0; background: var(--base); overflow: hidden; pointer-events: none; }
.aura { position: absolute; width: 90vmax; height: 90vmax; border-radius: 50%; opacity: .9; will-change: transform; }
.a1 { background: radial-gradient(closest-side, var(--a1), transparent); top: -35vmax; left: -30vmax; animation: drift1 26s ease-in-out infinite alternate; }
.a2 { background: radial-gradient(closest-side, var(--a2), transparent); top: -20vmax; right: -40vmax; animation: drift2 30s ease-in-out infinite alternate; }
.a3 { background: radial-gradient(closest-side, var(--a3), transparent); bottom: -45vmax; left: -20vmax; animation: drift3 34s ease-in-out infinite alternate; }
.a4 { background: radial-gradient(closest-side, var(--a4), transparent); bottom: -40vmax; right: -35vmax; animation: drift1 28s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(18vmax, 14vmax) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-16vmax, 20vmax) scale(.9); } }
@keyframes drift3 { to { transform: translate(14vmax, -16vmax) scale(1.15); } }
.grain {
  position: absolute; inset: -50%; opacity: .06; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .25 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
#glitter { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
#glitter-front { position: fixed; inset: 0; z-index: 45; pointer-events: none; }
#story { position: relative; z-index: 2; opacity: 0; }

/* ---------- 通用文字 ---------- */
.foil {
  background: var(--foil); background-size: 320% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: foil 7s linear infinite;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .7)) drop-shadow(0 8px 18px rgba(176, 138, 79, .16));
}
@keyframes foil { to { background-position: -320% 0; } }
.script { font-family: var(--script); font-weight: 400; letter-spacing: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px; margin: 0;
  font: italic 300 clamp(15px, .5vw + 12px, 19px)/1 var(--en); letter-spacing: .28em; color: var(--gold);
}
.eyebrow::before, .eyebrow::after { content: ""; width: clamp(22px, 3vw, 40px); height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.eyebrow::after { transform: scaleX(-1); }
.kicker { margin: 0 0 .7em; font: italic 400 clamp(13px, .3vw + 11px, 15px)/1.4 var(--en); letter-spacing: .32em; color: var(--gold); }
.h2 { margin: 0 0 .45em; font-weight: 300; font-size: clamp(26px, 3.4vw + 10px, 48px); line-height: 1.35; letter-spacing: .1em; color: var(--ink); }
.body { margin: 0; color: var(--ink-2); line-height: 2.1; }
.note { display: inline-block; margin: 1.1em 0 0; padding-top: .9em; border-top: 1px solid var(--gold-soft); font: italic 400 14px/1 var(--en); letter-spacing: .24em; color: var(--ink-3); }
.display { margin: .4em 0; font-weight: 300; font-size: clamp(30px, 4.4vw + 12px, 68px); line-height: 1.35; letter-spacing: .1em; }
.split .char, .split .word { will-change: transform, opacity; }

/* ---------- 界面 ---------- */
.hud {
  position: fixed; left: 0; right: 0; top: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center;
  padding: calc(14px + var(--safe-t)) clamp(16px, 3vw, 36px) 0; pointer-events: none; opacity: 0;
}
.hud > * { pointer-events: auto; }
.chapter { display: flex; align-items: baseline; gap: 12px; height: 24px; overflow: hidden; }
.chapter__num { font: italic 400 20px/1 var(--en); color: var(--gold); }
.chapter__name { font-size: 12px; letter-spacing: .36em; color: var(--ink-2); }
.sound {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0;
  border: 1px solid var(--gold-soft); background: rgba(255, 255, 255, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px -8px rgba(120, 90, 60, .3);
}
.bars { display: flex; gap: 2.5px; align-items: flex-end; height: 14px; }
.bars i { width: 2px; height: 100%; border-radius: 2px; background: var(--gold); transform-origin: bottom; animation: bar 1.1s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: -.4s; } .bars i:nth-child(3) { animation-delay: -.8s; } .bars i:nth-child(4) { animation-delay: -.2s; }
@keyframes bar { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
body.is-muted .bars i { animation: none; transform: scaleY(.2); }
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 41; }
.progress i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #e7c9d2, var(--gold), #f3dfa9); }
.toast {
  position: fixed; left: 50%; bottom: calc(22px + var(--safe-b)); z-index: 40; display: flex; align-items: center; gap: 12px;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; white-space: nowrap; max-width: calc(100vw - 32px);
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--gold-soft);
  background: rgba(255, 255, 255, .7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -12px rgba(120, 90, 60, .3);
}
.toast__label { font: italic 400 13px/1 var(--en); letter-spacing: .16em; color: var(--gold); }
.toast__title { font-size: 13px; letter-spacing: .12em; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }

/* ---------- 第一页 ---------- */
#gate {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: calc(4svh + var(--safe-t)) 16px calc(3svh + var(--safe-b)); text-align: center;
}
.gate__head { display: flex; flex-direction: column; align-items: center; gap: 1.2svh; }
.gate__title { margin: 0; display: flex; align-items: baseline; gap: .35em; font-weight: 300; line-height: 1; }
.gate__title .script { font-size: clamp(40px, 6vw + 16px, 72px); color: var(--gold); transform: translateY(.08em); }
.gate__name { font-size: clamp(30px, 3.4vw + 16px, 54px); letter-spacing: .16em; }
#gate-btn { border: 0; padding: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; flex: 1 1 auto; min-height: 0; display: grid; place-items: center; width: 100%; }
#bouquet { height: min(64svh, 122vw); max-height: 100%; aspect-ratio: 600 / 800; }
#bouquet svg { width: 100%; height: 100%; overflow: visible; display: block; }
.gate__foot { display: flex; flex-direction: column; align-items: center; gap: .6svh; }
.gate__cta { display: flex; align-items: center; gap: 14px; margin: 0; font-size: 14px; letter-spacing: .4em; color: var(--ink); }
.gate__cta i { width: 36px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.gate__cta i:last-child { transform: scaleX(-1); }
.gate__cta span { background: linear-gradient(90deg, var(--ink) 0 40%, var(--gold) 50%, var(--ink) 60% 100%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: foil 3.5s linear infinite; }
.gate__tip { margin: 0; font-size: 12px; letter-spacing: .2em; color: var(--ink-3); }
.gem { animation: gem 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes gem { 0%, 100% { opacity: .15; transform: scale(.4) rotate(0); } 45% { opacity: 1; transform: scale(1) rotate(45deg); } 60% { opacity: .8; } }

/* ---------- 场景 ---------- */
.scene { position: relative; }
.stage {
  position: relative; height: 100vh; height: 100svh; width: 100%; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: calc(64px + var(--safe-t)) 20px calc(36px + var(--safe-b));
}

/* 序 */
#prologue .stage { gap: 4svh; }
.prologue__lines { display: flex; flex-direction: column; align-items: center; gap: .2em; }
.pl { margin: 0; font-weight: 300; letter-spacing: .14em; }
.pl1 { font: italic 300 clamp(20px, 1.4vw + 14px, 30px)/1.6 var(--en); letter-spacing: .12em; color: var(--ink-2); }
.pl2, .pl3 { font-size: clamp(20px, 1.8vw + 12px, 34px); color: var(--ink-2); }
.pl4 { margin-top: .5em; font-size: clamp(30px, 4.2vw + 12px, 68px); line-height: 1.4; }
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 10px; font: italic 300 14px/1 var(--en); letter-spacing: .3em; color: var(--ink-3); }
.scroll-cue i { width: 1px; height: 52px; background: linear-gradient(var(--gold), transparent); transform-origin: top; animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* I 那一天 */
#day .stage { justify-content: flex-start; padding: 0; }
.date { position: absolute; left: 0; right: 0; top: calc(56px + var(--safe-t)); display: flex; flex-direction: column; align-items: center; z-index: 3; transform-origin: 50% 0; }
.date__year { font: italic 300 clamp(15px, .6vw + 12px, 20px)/1 var(--en); letter-spacing: .6em; color: var(--ink-2); margin-right: -.6em; }
.date__md { font: 300 clamp(64px, 11vw + 20px, 150px)/1 var(--en); letter-spacing: .02em; padding: 0 .06em; }
.panel {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: clamp(150px, 25svh, 250px) 22px calc(6svh + var(--safe-b));
  visibility: hidden;
}
.panel .art { flex: 1 1 auto; min-height: 0; width: 100%; display: grid; place-items: center; position: relative; }
.panel__text { flex: 0 0 auto; max-width: 620px; padding-top: 2svh; }
.launch-art { height: 100%; max-height: 50svh; max-width: 92vw; overflow: visible; }

.album { position: relative; width: min(58vw, 34svh, 330px); aspect-ratio: 1; }
.sleeve {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6%;
  background: linear-gradient(150deg, #fffefc 0%, #f7f2ec 60%, #efe7de 100%);
  box-shadow: 0 1px 0 #fff inset, 0 34px 60px -24px rgba(110, 80, 60, .38), 0 4px 10px -4px rgba(110, 80, 60, .15);
}
.sleeve::before { content: ""; position: absolute; inset: 7%; border: 1px solid var(--gold-soft); }
.sleeve.has-cover { background-size: cover; background-position: center; }
.sleeve.has-cover::before, .sleeve.has-cover > * { display: none; }
.sleeve.has-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg, rgba(255, 255, 255, .35), transparent 35%, transparent 70%, rgba(255, 255, 255, .18)); }
.sleeve__t { font-weight: 300; font-size: clamp(18px, 2.4vw + 6px, 30px); letter-spacing: .5em; margin-right: -.5em; }
.sleeve__line { width: 24%; height: 1px; background: var(--gold); opacity: .6; }
.sleeve__s { font: italic 400 clamp(11px, .5vw + 9px, 14px)/1 var(--en); letter-spacing: .3em; color: var(--gold); }
.cd {
  position: absolute; inset: 3%; z-index: 1; border-radius: 50%; --holo: 0deg;
  background:
    repeating-radial-gradient(circle, rgba(255, 255, 255, 0) 0 2px, rgba(255, 255, 255, .22) 2px 3px),
    conic-gradient(from var(--holo), #f8d9e7, #dfe6fb, #d6f3ee, #fbf1cf, #f6d4ea, #dad9fb, #d4eff7, #fce2d2, #f8d9e7);
  -webkit-mask: radial-gradient(circle, transparent 0 6.5%, #000 7%); mask: radial-gradient(circle, transparent 0 6.5%, #000 7%);
  box-shadow: 0 24px 50px -18px rgba(120, 100, 150, .45);
}
.cd__holo, .cd__shine, .cd__ring { position: absolute; inset: 0; border-radius: 50%; }
.cd__shine { background: conic-gradient(from 20deg, transparent 0 14%, rgba(255, 255, 255, .95) 19%, transparent 25% 62%, rgba(255, 255, 255, .8) 68%, transparent 74%); mix-blend-mode: soft-light; }
.cd__holo { background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .8), transparent 40%); }
.cd__ring { background: radial-gradient(circle, transparent 0 13%, rgba(255, 255, 255, .85) 13.5% 17%, rgba(190, 180, 200, .5) 17.4%, transparent 18%); }

.sea-art { width: min(92vw, 540px); max-height: 44svh; overflow: visible; }
.wv { animation: wave 6s linear infinite; }
.wv:nth-child(2) { animation-duration: 9s; animation-direction: reverse; }
.wv:nth-child(3) { animation-duration: 12s; }
@keyframes wave { to { transform: translateX(100px); } }
.coords { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; font: italic 400 13px/1 var(--en); letter-spacing: .32em; color: var(--gold); }

/* II 天数 */
#days .stage { gap: 1.4svh; }
.days__lead { margin: 3svh 0 0; font-weight: 300; font-size: clamp(17px, 1.2vw + 12px, 26px); letter-spacing: .14em; color: var(--ink-2); }
.bignum { display: flex; align-items: baseline; gap: .3em; margin: 1svh 0 2svh; }
.bignum .foil { font: 300 clamp(80px, 15vw + 24px, 220px)/1 var(--en); font-variant-numeric: lining-nums tabular-nums; letter-spacing: .01em; }
.bignum__unit { font-weight: 300; font-size: clamp(20px, 1.6vw + 12px, 34px); color: var(--ink-2); }
.stats { display: grid; grid-template-columns: repeat(3, auto); gap: 0; }
.stat { display: flex; flex-direction: column; align-items: center; padding: 0 clamp(14px, 3vw, 44px); }
.stat + .stat { border-left: 1px solid var(--gold-soft); }
.stat b { font: 400 clamp(24px, 1.8vw + 16px, 42px)/1.2 var(--en); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.stat span { font-size: 12px; letter-spacing: .24em; color: var(--ink-3); }
.days__tail { margin: 5svh 0 0; font: italic 300 clamp(16px, .6vw + 13px, 20px)/1.6 var(--en); color: var(--ink-3); letter-spacing: .14em; }

/* III 长大 */
#grow .stage { gap: 0; justify-content: space-evenly; }
.odo { display: flex; height: 1em; overflow: hidden; font: 300 clamp(68px, 10vw + 28px, 160px)/1 var(--en); font-variant-numeric: lining-nums tabular-nums; }
.odo__col { display: flex; flex-direction: column; transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.odo__col span { height: 1em; display: block; background: var(--foil); background-size: 320% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: foil 7s linear infinite; }
.age { margin: -1svh 0 0; font-size: 13px; letter-spacing: .5em; color: var(--ink-2); }
.age span { font: italic 400 20px/1 var(--en); color: var(--gold); letter-spacing: 0; }
.stack { --pw: min(56vw, 29svh, 280px); position: relative; width: var(--pw); height: calc(var(--pw) * 1.24); }
.pol {
  position: absolute; inset: 0; background: #fffefc; padding: 7% 7% 0;
  box-shadow: 0 1px 0 #fff inset, 0 26px 50px -20px rgba(90, 60, 50, .4), 0 2px 8px rgba(90, 60, 50, .08);
  display: flex; flex-direction: column;
}
.pol::after { content: ""; position: absolute; inset: 0; background: #5a3c32; opacity: var(--dim, 0); pointer-events: none; }
.pol__img { aspect-ratio: 1; width: 100%; background-size: cover; background-position: center; position: relative; overflow: hidden; display: grid; place-items: center; }
.pol__img.ph { background: linear-gradient(135deg, #fbe4ea, #eee6f8 45%, #e2f0f7 75%, #fbf0dc); }
.pol__img.ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .7) 45%, transparent 60%); }
.pol__img .yr { font: italic 300 calc(var(--pw) * .24)/1 var(--en); color: rgba(255, 255, 255, .95); text-shadow: 0 2px 16px rgba(176, 138, 79, .35); }
.pol__cap { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; padding: 0 6px; }
.pol__cap b { font: italic 400 calc(var(--pw) * .055)/1 var(--en); color: var(--gold); letter-spacing: .2em; }
.pol__cap span { font-weight: 300; font-size: clamp(12px, calc(var(--pw) * .052), 15px); line-height: 1.5; color: var(--ink-2); letter-spacing: .08em; }
.rail { position: relative; width: min(76vw, 520px); height: 1px; background: var(--gold-soft); }
.rail > i { position: absolute; inset: 0; transform-origin: 0; transform: scaleX(0); background: linear-gradient(90deg, #e9c7d1, var(--gold)); }
.rail__dots i { position: absolute; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--base); border: 1px solid var(--gold); transition: background .4s, box-shadow .4s; }
.rail__dots i.on { background: var(--gold); box-shadow: 0 0 0 4px rgba(176, 138, 79, .15); }

/* IV 遇见 */
.us-intro { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 20px; }
.us-date { margin: 0; font: italic 400 clamp(16px, .6vw + 13px, 20px)/1 var(--en); letter-spacing: .36em; color: var(--gold); }
.us-count { margin: 5svh 0 0; color: var(--ink-2); letter-spacing: .2em; }
.us-count b { display: inline-block; margin: 0 .2em; font: 300 clamp(44px, 4vw + 26px, 84px)/1 var(--en); vertical-align: -.1em; font-variant-numeric: lining-nums tabular-nums; }
.gallery { height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.track { --cw: min(72vw, 46svh, 380px); display: flex; align-items: stretch; gap: clamp(44px, 8vw, 120px); padding: 0 calc(50vw - var(--cw) / 2); will-change: transform; }
.mcard {
  flex: 0 0 var(--cw); position: relative; background: #fffefc; padding: calc(var(--cw) * .05) calc(var(--cw) * .05) calc(var(--cw) * .07);
  box-shadow: 0 30px 60px -26px rgba(110, 70, 60, .38), 0 2px 8px rgba(110, 70, 60, .06);
}
.mcard::before, .mcard::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px;
  background: radial-gradient(circle at 8px 10px, #fffefc 7px, transparent 7.5px) 0 0 / 16px 10px repeat-x;
}
.mcard::before { top: -9px; }
.mcard::after { bottom: -9px; transform: scaleY(-1); }
.mcard__img { aspect-ratio: 4 / 5; background-size: cover; background-position: center; position: relative; overflow: hidden; }
.mcard__img.ph { background: linear-gradient(160deg, #fde8ee 0%, #efe7f8 40%, #e3f0f8 70%, #fbf1de 100%); display: grid; place-items: center; }
.mcard__img.ph span { font: 400 calc(var(--cw) * .2)/1 var(--script); color: rgba(255, 255, 255, .95); text-shadow: 0 2px 20px rgba(176, 138, 79, .35); }
.mcard__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(var(--shine, -60%)); }
.mcard time { display: block; margin-top: 1.1em; font: italic 400 14px/1 var(--en); letter-spacing: .3em; color: var(--gold); }
.mcard h3 { margin: .5em 0 .3em; font-weight: 400; font-size: clamp(18px, .6vw + 15px, 22px); letter-spacing: .12em; }
.mcard p { margin: 0; font-size: 14px; line-height: 1.9; color: var(--ink-2); }
.mcard--end { background: transparent; box-shadow: none; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.mcard--end::before, .mcard--end::after { display: none; }
.mcard--end .script { display: block; font-size: calc(var(--cw) * .17); line-height: 1.2; }
.mcard--end p { margin-top: 1em; letter-spacing: .4em; color: var(--ink-3); }
.mcard time + p { margin-top: .75em; }
@media (max-height: 620px) {
  .mcard__img { aspect-ratio: 1; }
  .mcard p { font-size: 13px; line-height: 1.8; }
}

/* 手绘插画（没有照片时） */
.pol__img.art, .mcard__img.art { background: radial-gradient(130% 100% at 28% 12%, #fffdfa 0%, #fbf4ef 55%, #f4e9e3 100%); }
.dd { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dd .i { fill: none; stroke: #9a6a72; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dd .thin { stroke-width: 1.3; }
.dd .g { stroke: #c09654; }
.dd .r { stroke: #d27a90; }
.dd .b { stroke: #86a7c4; }
.dd .gr { stroke: #84a882; }
.dd .w { opacity: .8; }
.dd .pp { opacity: 1; }
.dd .f { fill: #9a6a72; }
.dd .f.lt { fill: #d9bcbf; }
.dd .s { fill: #d5b06b; }
.dd .hi { fill: #fff; }
.dd .t { fill: #c09654; font-family: var(--script); letter-spacing: 0; }
.dd .t.en { font-family: var(--en); font-style: italic; }
.dd .t.cn { font-family: var(--cn); fill: #9a6a72; letter-spacing: .1em; }
.dd .t.ink { fill: #9a6a72; }
.dd .t.r { fill: #d27a90; }

/* V 争吵 */
#storm .stage { justify-content: flex-start; }
.storm-lines { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.4svh; padding: 0 20px; }
.sl { margin: 0; font-weight: 300; font-size: clamp(20px, 1.8vw + 14px, 38px); letter-spacing: .12em; color: #545c69; animation: tremble .4s linear infinite; }
.sl:nth-child(2n) { animation-duration: .5s; animation-direction: reverse; }
@keyframes tremble { 0%, 100% { translate: 0 0; } 25% { translate: -.8px .4px; } 50% { translate: .6px -.6px; } 75% { translate: -.4px .8px; } }
.dawn { position: absolute; left: 50%; top: 36%; width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax; border-radius: 50%; transform: scale(0);
  background: radial-gradient(closest-side, #fffdf8 0%, #fff6ea 28%, rgba(252, 230, 236, .6) 55%, rgba(252, 230, 236, 0) 100%); }
.resolve { position: absolute; left: 0; right: 0; bottom: calc(9svh + var(--safe-b)); display: flex; flex-direction: column; align-items: center; gap: .6svh; padding: 0 20px; }
.rl { margin: 0; font-weight: 300; font-size: clamp(20px, 1.6vw + 14px, 34px); letter-spacing: .12em; }
.rl:last-child { color: var(--rose); }

/* VI 相爱 */
.love-text { position: absolute; left: 0; right: 0; bottom: calc(6svh + var(--safe-b)); display: flex; flex-direction: column; align-items: center; padding: 0 20px; }
.love-text .display { font-size: clamp(28px, 3.2vw + 14px, 56px); margin: 0 0 .5em; }
.love-sub { margin: 0 0 1.4svh; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink-2); letter-spacing: .3em; font-size: 14px; }
.love-sub .script { font-size: clamp(26px, 1.4vw + 20px, 38px); color: var(--rose); letter-spacing: 0; line-height: 1.1; }
.love-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .2svh; font-weight: 300; font-size: clamp(15px, .6vw + 13px, 20px); color: var(--ink-2); letter-spacing: .12em; }

/* VII 生日 */
.bday-hero { gap: 1svh; justify-content: center; }
.hb { width: min(94vw, 760px); height: auto; overflow: visible; margin-bottom: -1svh; }
.hb__text { font-family: var(--script); font-size: 118px; fill: url(#foilText); fill-opacity: 0; stroke: #b8925a; stroke-width: .8; stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.bday-cn { margin: 0; font-weight: 300; font-size: clamp(18px, 1.2vw + 13px, 28px); letter-spacing: .24em; }
.bday-cn #age-num { font: 400 1.5em/1 var(--en); color: var(--gold); margin: 0 .1em; letter-spacing: 0; }
.cake { position: relative; margin-top: 2.5svh; border: 0; padding: 0; background: none; cursor: pointer; width: min(80vw, 36svh, 340px); aspect-ratio: 300 / 412; -webkit-tap-highlight-color: transparent; }
.cake svg { width: 100%; height: 100%; overflow: visible; }
.ck3d { position: absolute; left: -30%; right: -30%; top: -12%; bottom: -8%; width: 160%; height: 120%; pointer-events: none; opacity: 0; }
.cake:focus-visible { outline: 1px dashed var(--gold); outline-offset: 8px; border-radius: 16px; }
.hint { margin: 0; font-size: 13px; letter-spacing: .3em; color: var(--ink-3); }

.letter-zone { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 20px; }
.envelope { position: relative; width: min(82vw, 400px); aspect-ratio: 1.55; border: 0; padding: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; isolation: isolate; }
.envelope span { position: absolute; display: block; }
.env__back { inset: 0; z-index: 1; background: linear-gradient(160deg, #f6efe7, #ece2d6); box-shadow: 0 34px 60px -26px rgba(110, 70, 60, .45); }
.env__card { z-index: 2; left: 6%; right: 6%; top: 6%; height: 86%; background: #fffefc; display: grid !important; place-items: start center; padding-top: 12%; box-shadow: 0 2px 6px rgba(0, 0, 0, .06); }
.env__card .script { position: static; font-size: clamp(24px, 6vw, 34px); color: var(--gold); }
.env__front { z-index: 3; inset: 0; background: linear-gradient(170deg, #fbf6f0, #f1e9df); clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%); box-shadow: inset 0 -1px 0 rgba(176, 138, 79, .2); }
.env__flap { left: 0; right: 0; top: 0; height: 60%; background: linear-gradient(180deg, #f3eadf, #e9ddcf); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: 50% 0; z-index: 4; }
.env__seal {
  left: 50%; top: 56%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; z-index: 5; display: grid !important; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff1d0, #d8b475 45%, #a47b3f 100%); color: rgba(255, 250, 235, .95); font-size: 22px;
  box-shadow: 0 4px 10px rgba(120, 80, 30, .35), inset 0 0 0 4px rgba(255, 240, 210, .35);
}
.env-hint { margin-top: 3svh; }
.letter {
  position: relative; width: min(90vw, 580px); margin: 0 auto; padding: clamp(40px, 6vw, 64px) clamp(26px, 5vw, 56px);
  background: #fffefb; box-shadow: 0 40px 80px -36px rgba(110, 70, 60, .45), 0 2px 10px rgba(110, 70, 60, .06); display: none; text-align: left;
}
.letter::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--gold-soft); pointer-events: none; }
.letter__head { margin: 0 0 1.4em; text-align: center; font-size: clamp(22px, 1.4vw + 16px, 30px); line-height: 1.3; color: var(--gold); }
.letter__body p { margin: 0 0 1.1em; line-height: 2.1; color: var(--ink-2); }
.letter__body p:first-child { font-weight: 300; font-size: 1.45em; color: var(--rose); letter-spacing: .14em; }
.letter__sign { margin: 2em 0 0; display: flex; flex-direction: column; align-items: flex-end; gap: .2em; color: var(--ink); letter-spacing: .2em; }
.letter__sign .script { font-size: 26px; color: var(--gold); }

.finale { min-height: 70vh; min-height: 70svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4svh; padding: 60px 20px calc(80px + var(--safe-b)); }
.finale__t { margin: 0; font-size: clamp(44px, 6vw + 20px, 110px); line-height: 1.3; padding: 0 .2em; text-align: center; }
.again {
  cursor: pointer; padding: 12px 34px; border-radius: 999px; border: 1px solid var(--gold); background: rgba(255, 255, 255, .5);
  font-size: 13px; letter-spacing: .4em; color: var(--ink); transition: background .3s, color .3s;
}
.again:hover { background: var(--gold); color: #fff; }

/* 调音面板 */
#tuner { position: fixed; right: 12px; bottom: 80px; z-index: 60; width: 290px; padding: 12px; border-radius: 12px; background: rgba(40, 30, 28, .88); color: #fff; font: 13px/1.5 var(--cn); letter-spacing: 0; }
#tuner .row { display: flex; gap: 6px; margin-top: 6px; }
#tuner button { flex: 1; padding: 5px 2px; border-radius: 6px; border: 1px solid #777; background: #333; color: #fff; cursor: pointer; font-size: 12px; }
#tuner pre { margin: 8px 0 0; font-size: 12px; white-space: pre-wrap; color: #f3dfa9; }

@media (prefers-reduced-motion: reduce) {
  .aura, .foil, .odo__col span, .wv, .gem, .gate__cta span { animation: none !important; }
}
