/* ============================================================
   孔樱燃 · 十八岁生日快乐
   1. 基础 / 变量 / 背景
   2. 封面
   3. 通用版块
   4. 蛋糕
   5. 信
   6. 结尾
   7. 响应式 / 动效偏好
   ============================================================ */

:root{
  --cream: #fffaf4;
  --paper: #fffdf9;
  --ink: #453239;
  --ink-soft: #6f565e;
  --muted: #8d7079;
  --rose: #b64e67;
  --rose-deep: #8e344b;
  --wine: #6a2438;
  --petal: #f3b7c5;
  --petal-soft: #fbe3e9;
  --gold: #b48a48;
  --gold-soft: #e5cb9d;
  --line: rgba(142, 52, 75, .16);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --wrap: 640px;
}

*, *::before, *::after{ box-sizing: border-box; }

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

body{
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(1200px 820px at 8% -12%, #fdeef1 0%, rgba(253, 238, 241, 0) 62%),
    radial-gradient(1000px 760px at 108% 18%, #fdf0e3 0%, rgba(253, 240, 227, 0) 58%),
    var(--cream);
  overflow-x: hidden;
}

img, svg{ display: block; max-width: 100%; }
button{ font: inherit; color: inherit; }
a{ color: inherit; }

[hidden]{ display: none !important; }

::selection{
  background: var(--petal-soft);
  color: var(--rose-deep);
}

.skip-link{
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--rose-deep);
  color: #fff;
  font-size: 12px;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform .3s var(--ease);
}
.skip-link:focus{ transform: none; }

.sprite{ position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- 氛围背景 ---------- */
.ambient{
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.ambient__orb{
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
}
.ambient__orb--1{
  top: -14vh; left: -22vw;
  width: 68vw; height: 68vw;
  max-width: 620px; max-height: 620px;
  background: #f9d3db;
}
.ambient__orb--2{
  top: 42vh; right: -26vw;
  width: 78vw; height: 78vw;
  max-width: 720px; max-height: 720px;
  background: #fbe7d5;
  opacity: .5;
}
.ambient__orb--3{
  bottom: -18vh; left: 12vw;
  width: 56vw; height: 56vw;
  max-width: 520px; max-height: 520px;
  background: #f4dbe2;
  opacity: .38;
}

.grain{
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: .16;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

#petals{
  position: fixed;
  inset: 0;
  z-index: 8;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .85;
}

/* ---------- 音乐按钮（静态图标，不播放动画） ---------- */
.sound{
  position: fixed;
  z-index: 30;
  top: calc(16px + env(safe-area-inset-top));
  right: calc(16px + env(safe-area-inset-right));
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(182, 78, 103, .18);
  border-radius: 50%;
  background: #fffaf4;
  color: var(--rose);
  box-shadow: 0 10px 28px -16px rgba(95, 34, 51, .5);
  cursor: pointer;
  transform: none;
}
.sound:hover{
  background: #fffdf9;
  border-color: rgba(182, 78, 103, .3);
}
.sound:active{ transform: none; }
.sound:focus-visible{ outline: 2px solid var(--rose); outline-offset: 3px; }
.sound__icon{
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sound__icon--off{ display: none; }
.sound.is-playing .sound__icon--on{ display: block; }
.sound.is-playing .sound__icon--off{ display: none; }
.sound:not(.is-playing) .sound__icon--on{ display: none; }
.sound:not(.is-playing) .sound__icon--off{ display: block; }
.sound.is-playing{
  background: #fffdf9;
  border-color: rgba(182, 78, 103, .32);
}
.sound.is-error{ display: none; }

/* ============================================================
   封面
   ============================================================ */
.hero{
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(12px, 3vw, 28px);
  display: grid;
  place-items: center;
}
.hero__frame{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 560px);
  min-height: calc(100svh - clamp(24px, 6vw, 56px));
  padding: clamp(104px, 18vh, 154px) 30px clamp(104px, 16vh, 140px);
  overflow: hidden;
  border-radius: 50% 50% 30px 30px / 23% 23% 30px 30px;
  background:
    radial-gradient(120% 76% at 50% 0%, #fffdfa 0%, #fdf4ef 58%, #fbeae7 100%);
  box-shadow:
    0 44px 100px -56px rgba(95, 34, 51, .58),
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 0 0 1px rgba(201, 161, 94, .24);
}
.hero__frame::after{
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(201, 161, 94, .34);
  border-radius: inherit;
  pointer-events: none;
}
.hero__frame::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 40% at 50% 94%, rgba(243, 183, 197, .28), transparent 70%);
  pointer-events: none;
}

.hero__branch{
  position: absolute;
  top: -10px;
  width: clamp(178px, 54vw, 252px);
  height: auto;
  pointer-events: none;
  z-index: 1;
}
.hero__branch--left{ left: -24px; }
.hero__branch--right{
  right: -24px;
  transform: scaleX(-1);
  top: -6px;
}

.hero__content{
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
}

.hero__age{
  margin: 0 0 14px;
  font-family: Didot, "Bodoni MT", "Times New Roman", Georgia, serif;
  font-size: clamp(92px, 27vw, 136px);
  font-style: italic;
  font-weight: 600;
  line-height: .86;
  letter-spacing: .02em;
  background: linear-gradient(165deg, #e5a3b2 0%, #b64e67 55%, #b48a48 118%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 12px 26px rgba(142, 52, 75, .14));
  animation: heroIn 1.1s .15s both var(--ease);
}

.hero__name{
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(46px, 13.5vw, 70px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: .16em;
  text-indent: .16em;
  color: #4b343d;
  text-shadow: 0 16px 36px rgba(142, 52, 75, .12);
  animation: heroIn 1.2s .3s both var(--ease);
}

.hero__sub{
  margin: 16px 0 0;
  font-size: 13px;
  letter-spacing: .4em;
  text-indent: .4em;
  color: var(--rose);
  animation: heroIn 1.1s .48s both var(--ease);
}

.hero__rule{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 190px;
  margin: 26px auto 0;
  animation: heroIn 1.1s .6s both var(--ease);
}
.hero__rule i{
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 161, 94, .75));
}
.hero__rule i:last-child{
  background: linear-gradient(90deg, rgba(201, 161, 94, .75), transparent);
}
.hero__rule svg{ width: 20px; height: 20px; }

.hero__line{
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: clamp(15px, 4.2vw, 18px);
  letter-spacing: .14em;
  color: var(--ink);
  animation: heroIn 1.1s .72s both var(--ease);
}

.hero__cue{
  position: absolute;
  left: 50%;
  bottom: calc(32px + env(safe-area-inset-bottom));
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  transform: translateX(-50%);
  border: 1px solid rgba(201, 161, 94, .5);
  border-radius: 50%;
  background: rgba(255, 253, 249, .55);
  color: var(--rose);
  text-decoration: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  animation: fadeIn 1s 1.1s var(--ease) forwards;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.hero__cue svg{
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: nudge 2.4s 2.1s ease-in-out infinite;
}
.hero__cue:hover{ background: rgba(255, 253, 249, .95); }
.hero__cue:focus-visible{
  outline: 2px solid var(--rose);
  outline-offset: 4px;
}

@keyframes heroIn{
  from{ opacity: 0; transform: translateY(22px); }
  to{ opacity: 1; transform: none; }
}
@keyframes fadeIn{
  to{ opacity: 1; }
}
@keyframes nudge{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(4px); }
}

/* ============================================================
   通用版块
   ============================================================ */
.wrap{
  position: relative;
  z-index: 2;
  width: min(100%, var(--wrap));
  margin: 0 auto;
  padding: 0 24px;
}

.section{
  position: relative;
  z-index: 2;
  padding: clamp(64px, 11vw, 110px) 0;
}

.reveal{
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-visible{
  opacity: 1;
  transform: none;
}

.sec-head{
  margin-bottom: 28px;
  text-align: center;
}
.sec-head h2{
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 6.8vw, 36px);
  font-weight: 600;
  letter-spacing: .1em;
  text-indent: .1em;
  color: var(--ink);
}
.sec-head__rule{
  position: relative;
  display: block;
  width: 46px;
  height: 1px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.sec-head__rule::after{
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--petal);
  transform: translateX(-50%);
  box-shadow: 0 0 0 3px rgba(243, 183, 197, .16);
}

/* ============================================================
   许愿 · 蛋糕
   ============================================================ */
.wish{
  padding-bottom: clamp(40px, 8vw, 76px);
}

.cake-stage{
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(100vw, 430px);
  padding: 24px 0 4px;
}
.cake-stage::before,
.cake-stage::after,
.cake-stage__halo{
  pointer-events: none;
}
.cake-stage__halo{
  position: absolute;
  width: min(94vw, 430px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 48%,
    rgba(243, 183, 197, .44) 0%,
    rgba(251, 227, 233, .18) 50%,
    transparent 70%);
}
.cake-stage::before{
  content: "";
  position: absolute;
  width: min(78vw, 356px);
  aspect-ratio: 1;
  border: 1px dashed rgba(182, 78, 103, .24);
  border-radius: 50%;
  animation: slowSpin 52s linear infinite;
}
.cake-stage::after{
  content: "";
  position: absolute;
  width: min(64vw, 292px);
  aspect-ratio: 1;
  border: 1px solid rgba(201, 161, 94, .22);
  border-radius: 50%;
}

.cake{
  position: relative;
  z-index: 2;
  width: min(84vw, 336px);
  height: auto;
  filter: drop-shadow(0 28px 34px rgba(142, 52, 75, .15));
  overflow: visible;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.cake-sprig{
  position: absolute;
  z-index: 1;
  width: 42px;
  height: 42px;
  opacity: .85;
  pointer-events: none;
}
.cake-sprig--left{
  left: 4%;
  bottom: 21%;
  transform: rotate(-16deg);
  animation: floatSoft 5s ease-in-out infinite;
}
.cake-sprig--right{
  right: 3%;
  top: 24%;
  transform: scaleX(-1) rotate(12deg);
  animation: floatSoft 6s -2.5s ease-in-out infinite;
}

/* 蜡烛 */
.candle{
  cursor: pointer;
  outline: none;
}
.candle__hit{
  stroke: transparent;
  stroke-width: 1;
  transition: stroke .2s var(--ease);
}
.candle:hover .candle__hit,
.candle:focus-visible .candle__hit{
  stroke: rgba(182, 78, 103, .55);
  stroke-dasharray: 3 3;
}
.candle:focus-visible{
  filter: drop-shadow(0 0 4px rgba(182, 78, 103, .45));
}
.flame{
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: flicker 1.4s ease-in-out infinite alternate;
}
.candle.is-out .flame{
  animation: none;
  opacity: 0;
  transform: translateY(-5px) scale(.2);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.smoke{ opacity: 0; }
.candle.is-out .smoke{
  opacity: 1;
  animation: smokeUp 1.5s ease-out forwards;
}

@keyframes flicker{
  0%{ transform: scale(1) rotate(-2deg); }
  100%{ transform: scale(1.06, .94) rotate(2deg); }
}
@keyframes smokeUp{
  0%{ opacity: .9; transform: translateY(0) scale(.8); }
  100%{ opacity: 0; transform: translateY(-26px) scale(1.5); }
}
@keyframes slowSpin{
  to{ transform: rotate(360deg); }
}
@keyframes floatSoft{
  0%, 100%{ translate: 0 0; }
  50%{ translate: 0 -8px; }
}

/* 吹蜡烛按钮 / 结果 */
.wish-actions{
  position: relative;
  min-height: 64px;
  margin-top: 6px;
  text-align: center;
}
.blow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, .72);
  color: var(--rose);
  font-size: 11px;
  letter-spacing: .18em;
  text-indent: .18em;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px -20px rgba(95, 34, 51, .45);
  cursor: pointer;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.blow:hover{ background: rgba(255, 253, 249, .98); }
.blow:active{ transform: scale(.97); }
.blow:focus-visible{ outline: 2px solid var(--rose); outline-offset: 3px; }
.blow__dot{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 4px rgba(182, 78, 103, .12);
  animation: dotPulse 2s ease-out infinite;
}
@keyframes dotPulse{
  0%{ box-shadow: 0 0 0 0 rgba(182, 78, 103, .28); }
  70%, 100%{ box-shadow: 0 0 0 8px rgba(182, 78, 103, 0); }
}

.wish-result{
  max-width: 430px;
  margin: 0 auto;
  padding: 28px 26px 22px;
  border: 1px solid rgba(201, 161, 94, .30);
  border-radius: 26px;
  background: rgba(255, 253, 249, .84);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 26px 60px -44px rgba(95, 34, 51, .55);
  animation: resultIn .9s var(--ease) both;
}
.wish-result__icon{
  width: 26px;
  height: 26px;
  margin: 0 auto 12px;
}
.wish-result h3{
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ink);
}
.wish-result__text{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
  letter-spacing: .06em;
}
.wish-result__again{
  margin-top: 18px;
  padding: 2px 2px 5px;
  border: none;
  border-bottom: 1px solid rgba(182, 78, 103, .35);
  background: none;
  color: var(--rose);
  font-size: 10px;
  letter-spacing: .22em;
  text-indent: .22em;
  cursor: pointer;
}
.wish-result__again:focus-visible{ outline: 2px solid var(--rose); outline-offset: 4px; }

@keyframes resultIn{
  from{ opacity: 0; transform: translateY(22px) scale(.98); }
  to{ opacity: 1; transform: none; }
}

/* ============================================================
   信
   ============================================================ */
.letter-section{
  padding-top: clamp(34px, 7vw, 62px);
}
.letter-section{ scroll-margin-top: 24px; }

.letter{
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(38px, 9vw, 56px) clamp(24px, 7vw, 46px) clamp(30px, 7vw, 44px);
  border: 1px solid rgba(201, 161, 94, .30);
  border-radius: 6px 6px 22px 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 253, 248, .94)),
    var(--paper);
  box-shadow:
    0 34px 78px -58px rgba(95, 34, 51, .62),
    inset 0 1px 0 rgba(255, 255, 255, .9);
}
.letter::before{
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(201, 161, 94, .16);
  border-radius: 3px 3px 17px 17px;
  pointer-events: none;
}
.letter__tape{
  position: absolute;
  top: -14px;
  left: 50%;
  width: 120px;
  height: 28px;
  transform: translateX(-50%) rotate(-2deg);
  background: linear-gradient(100deg, rgba(231, 164, 174, .45), rgba(247, 205, 211, .62) 52%, rgba(231, 164, 174, .42));
  border-left: 1px dashed rgba(255, 255, 255, .55);
  border-right: 1px dashed rgba(255, 255, 255, .55);
  box-shadow: 0 4px 8px rgba(95, 34, 51, .08);
  clip-path: polygon(2% 0, 100% 4%, 98% 100%, 0 96%);
}
.letter__mark{
  position: relative;
  z-index: 1;
  width: 30px;
  height: 32px;
  margin: 0 auto 18px;
  opacity: .9;
}
.letter p{
  position: relative;
  z-index: 1;
  margin: 0 0 1.15em;
  font-family: var(--serif);
  font-size: clamp(15px, 4.1vw, 16.5px);
  line-height: 2.15;
  letter-spacing: .02em;
  color: var(--ink-soft);
  text-align: justify;
}
.letter__hello{
  margin-bottom: 1.2em !important;
  color: var(--ink) !important;
  font-size: clamp(18px, 5vw, 20px) !important;
  font-weight: 600;
  letter-spacing: .08em !important;
}
.letter__sign{
  position: relative;
  z-index: 1;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
  text-align: right;
}
.letter__sign p{
  margin: 0;
  text-align: right;
}
.letter__sign .letter__signature{
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: .14em;
}

/* ============================================================
   结尾 · 名字里的祝福
   ============================================================ */
.finale{
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: clamp(72px, 13vw, 112px) 0 calc(52px + env(safe-area-inset-bottom));
  color: #f9e9e3;
  background:
    radial-gradient(90% 62% at 50% 0%, #84354a 0%, #6c263b 46%, #511b2a 100%);
}
.finale::before{
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(225, 190, 144, .26);
  pointer-events: none;
}
.finale::after{
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.finale__deco{
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: .28;
}
.finale__deco--a{
  top: 13%;
  right: 7%;
  width: 52px;
  height: 52px;
  transform: rotate(12deg);
  animation: floatSoft 7s ease-in-out infinite;
}
.finale__deco--b{
  top: 23%;
  left: 8%;
  width: 30px;
  height: 30px;
  opacity: .22;
  animation: floatSoft 8s -3s ease-in-out infinite;
}
.finale__deco--c{
  right: 13%;
  bottom: 17%;
  width: 22px;
  height: 22px;
  opacity: .20;
}

.finale__inner{
  position: relative;
  z-index: 2;
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 0 26px;
  text-align: center;
}
.finale__mark{
  width: 32px;
  height: 34px;
  margin: 0 auto 26px;
  opacity: .92;
}
.finale__phrase{
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 12.4vw, 76px);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: .02em;
  color: #fdf1e8;
  text-shadow: 0 18px 44px rgba(0, 0, 0, .18);
}
.finale__line{ display: block; }
.finale__line em{
  font-style: normal;
  font-size: 1.15em;
  margin: 0 .02em;
  background: linear-gradient(180deg, #ffe9ef 8%, #efc58c 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 24px rgba(255, 190, 200, .30));
}
.finale__caption{
  margin: 20px 0 0;
  color: #dfbabb;
  font-size: clamp(12px, 3.4vw, 14px);
  line-height: 2;
  letter-spacing: .16em;
  text-indent: .16em;
}
.finale__divider{
  display: block;
  width: 64px;
  height: 1px;
  margin: 30px auto;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}
.finale__wish{
  margin: 0;
  color: #f8e6df;
  font-family: var(--serif);
  font-size: clamp(18px, 4.8vw, 21px);
  line-height: 1.8;
  letter-spacing: .06em;
}
.finale__sign{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  width: min(100%, 350px);
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(225, 190, 144, .20);
  text-align: right;
}
.finale__sign-name{
  color: #f2dcc0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .2em;
}
.seal{
  flex: none;
  width: 58px;
  height: 58px;
  color: #d7b284;
  opacity: .88;
  transform: rotate(-8deg);
}
.seal__arc{ font-family: var(--sans); }

/* ============================================================
   响应式 / 动效偏好
   ============================================================ */
@media (min-width: 720px){
  .wrap{ padding: 0 32px; }
  .hero__frame{ padding-left: 48px; padding-right: 48px; }
  .cake{ width: 360px; }
  .letter{ padding-left: 52px; padding-right: 52px; }
  .finale__inner{ padding: 0 32px; }
}

@media (max-width: 360px){
  .hero__frame{ padding-left: 22px; padding-right: 22px; }
  .cake-sprig{ width: 34px; height: 34px; }
  .letter{ padding: 36px 20px 28px; }
  .finale__sign{ width: 100%; gap: 10px; }
}

/* ---------- 手机端性能模式 ---------- */
@media (max-width: 820px), (pointer: coarse){
  /* 大面积模糊光斑和混合颗粒层最耗 GPU，手机上直接关闭 */
  .ambient,
  .grain{ display: none; }

  #petals{ opacity: .72; }

  /* 少用 backdrop-filter，改成不透明底色 */
  .hero__cue,
  .blow,
  .wish-result{
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .hero__cue{ background: #fffaf4; }
  .blow{ background: #fffaf4; }
  .wish-result{ background: #fffdf9; }

  /* 去掉会随动画反复重算的滤镜 */
  .cake,
  .hero__age,
  .finale__line em{ filter: none; }

  /* 关闭持续性的装饰动画，保留静态构图 */
  .cake-stage::before,
  .cake-sprig,
  .blow__dot,
  .hero__cue svg,
  .finale__deco--a,
  .finale__deco--b{ animation: none; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .reveal{ opacity: 1; transform: none; }
  #petals{ display: none; }
}
