:root {
  --cream: #fff8e8;
  --ink: #31483b;
  --green: #6fa66b;
  --deep-green: #426c52;
  --pink: #f59baa;
  --yellow: #f7c966;
  --blue: #82b9d6;
  --soil: #9b6e4a;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: #efe9dc;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

button { font: inherit; }

.music-button {
  position: absolute;
  z-index: 8;
  top: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px 6px 7px;
  border: 1px solid rgba(66,108,82,.32);
  border-radius: 999px;
  color: #55756a;
  background: rgba(255,255,255,.58);
  box-shadow: 0 3px 10px rgba(71,99,83,.08);
  backdrop-filter: blur(5px);
  cursor: pointer;
}
.music-icon { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; color: white; background: #6f9e7b; font-size: 15px; }
.music-label { font-size: 10px; letter-spacing: .04em; }
.music-button.playing .music-icon { animation: musicPulse 1.2s ease-in-out infinite; }
.music-button.playing .music-label::after { content: " ·"; animation: blink 1s steps(2) infinite; }

.card {
  position: relative;
  width: min(100%, 520px);
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 18%, rgba(255,255,255,.82) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 30%, rgba(255,255,255,.7) 0 1.5px, transparent 2.5px),
    linear-gradient(#dff3f3 0 57%, var(--cream) 57%);
  isolation: isolate;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .16;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

.sky { position: absolute; inset: 0 0 auto; height: 44%; pointer-events: none; }

.sun {
  position: absolute;
  top: 34px;
  right: 27px;
  width: 62px;
  height: 62px;
  border: 2px solid #eab850;
  border-radius: 50%;
  background: #f8cf6b;
  box-shadow: 0 0 0 9px rgba(248,207,107,.16);
  animation: breathe 3.6s ease-in-out infinite;
  padding: 0;
  pointer-events: auto;
  cursor: pointer;
}

.sun::before, .sun::after, .sun span::before, .sun span::after {
  content: "";
  position: absolute;
  top: 29px;
  left: -15px;
  width: 9px;
  height: 2px;
  border-radius: 9px;
  background: #eab850;
  box-shadow: 83px 0 #eab850;
}
.sun::after { transform: rotate(45deg); left: -9px; width: 8px; box-shadow: 72px 0 #eab850; }
.sun span::before { transform: rotate(90deg); left: 26px; box-shadow: 62px 0 #eab850; }
.sun span::after { transform: rotate(135deg); left: 1px; box-shadow: 72px 0 #eab850; }
.voice-ring { position: absolute; inset: -12px; border: 2px solid rgba(239,127,145,.62); border-radius: 50%; opacity: 0; transform: scale(.75); }
.sun.holding .voice-ring { animation: voiceHold .75s linear forwards; }
.sun.ready .voice-ring { opacity: 1; border-color: #ef7f91; transform: scale(1.08); }

.cloud {
  position: absolute;
  width: 74px;
  height: 21px;
  border-radius: 30px;
  background: rgba(255,255,255,.74);
  animation: drift 9s ease-in-out infinite alternate;
}
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.cloud::before { width: 29px; height: 29px; left: 15px; top: -13px; }
.cloud::after { width: 22px; height: 22px; right: 13px; top: -8px; }
.cloud-one { top: 68px; left: 22px; }
.cloud-two { top: 145px; right: 32px; transform: scale(.72); animation-delay: -3s; }

.bird { position: absolute; color: #69959a; font-size: 30px; transform: rotate(-10deg); }
.bird-one { top: 130px; left: 63px; }
.bird-two { top: 102px; left: 96px; font-size: 20px; }

.intro { position: relative; z-index: 2; padding: 58px 38px 0; text-align: center; }
.eyebrow { margin: 0 0 13px; font-size: 10px; font-weight: 700; letter-spacing: .28em; color: #557b70; }
h1 { margin: 0; font-size: clamp(40px, 11vw, 57px); line-height: .97; letter-spacing: .04em; font-weight: 700; }
h1 em { font-family: "Kaiti SC", STKaiti, KaiTi, serif; font-size: 1.28em; font-weight: 400; font-style: normal; color: #ef7f91; }
.lead { margin: 16px 0 0; font-size: 14px; line-height: 1.8; color: #557064; }

.garden { position: relative; height: 295px; margin-top: 10px; }

.xixi-plant {
  --growth: 0px;
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 61px;
  width: 170px;
  height: 205px;
  transform: translateX(-50%);
  transition: --growth .8s ease;
}
.xixi-stem { position: absolute; left: 82px; bottom: 0; width: 6px; height: var(--growth); border-radius: 8px; background: #5d965e; box-shadow: inset 2px 0 rgba(255,255,255,.22); transition: height .9s cubic-bezier(.2,.75,.26,1.05); }
.xixi-leaf { position: absolute; width: 34px; height: 18px; opacity: 0; border: 1.5px solid #4f8654; background: #76aa6c; transition: opacity .45s ease, transform .55s cubic-bezier(.2,.8,.25,1.2); }
.xixi-leaf.leaf-one { left: 51px; bottom: 48px; border-radius: 90% 8% 90% 8%; transform: rotate(2deg) scale(.2); }
.xixi-leaf.leaf-two { left: 85px; bottom: 87px; border-radius: 8% 90% 8% 90%; transform: rotate(-2deg) scale(.2); }
.xixi-bud { position: absolute; z-index: 2; left: 71px; bottom: calc(var(--growth) - 10px); width: 29px; height: 35px; opacity: 0; border: 1.5px solid #bf6575; border-radius: 52% 48% 42% 45%; background: #ee8fa0; transform: scale(.35); transition: bottom .9s cubic-bezier(.2,.75,.26,1.05), opacity .4s ease, transform .5s ease; }
.xixi-bloom { position: absolute; z-index: 3; left: 40px; bottom: 126px; width: 90px; height: 90px; opacity: 0; transform: scale(.2) rotate(-9deg); transition: opacity .5s ease, transform .7s cubic-bezier(.2,.8,.25,1.2); }
.xixi-bloom i { position: absolute; left: 30px; top: 0; width: 31px; height: 51px; border: 1.5px solid rgba(67,74,55,.2); border-radius: 53% 47% 48% 52%; background: #f29bab; transform-origin: 50% 44px; }
.xixi-bloom i:nth-child(2) { transform: rotate(72deg); }
.xixi-bloom i:nth-child(3) { transform: rotate(144deg); }
.xixi-bloom i:nth-child(4) { transform: rotate(216deg); }
.xixi-bloom i:nth-child(5) { transform: rotate(288deg); }
.xixi-bloom b { position: absolute; z-index: 2; left: 21px; top: 24px; display: grid; place-items: center; width: 49px; height: 49px; overflow: hidden; border: 2px solid #f5d17a; border-radius: 50%; background: #fff6d7; box-shadow: 0 0 0 1px #b98248, 0 2px 5px rgba(70,52,33,.18); }
.xixi-bloom .xixi-face img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: scale(1.02); }
.grown .xixi-plant { --growth: 46px; }
.grown .xixi-bud { opacity: 1; transform: scale(.62); }
.stage-1 .xixi-plant { --growth: 82px; }
.stage-1 .xixi-leaf.leaf-one { opacity: 1; transform: rotate(16deg) scale(1); }
.stage-2 .xixi-plant { --growth: 122px; }
.stage-2 .xixi-leaf.leaf-two { opacity: 1; transform: rotate(-13deg) scale(1); }
.stage-2 .xixi-bud { transform: scale(.86); }
.stage-3 .xixi-plant { --growth: 158px; }
.stage-3 .xixi-bud { opacity: 0; transform: scale(1.1); }
.stage-3 .xixi-bloom { opacity: 1; transform: scale(1) rotate(0); }
.soil {
  position: absolute;
  left: 50%;
  bottom: 17px;
  width: 330px;
  height: 57px;
  border-radius: 50% 50% 41% 41%;
  transform: translateX(-50%);
  background: #a97852;
  border: 2px solid #875d3f;
  box-shadow: inset 0 10px 0 rgba(255,255,255,.08), 0 8px 0 rgba(96,128,85,.12);
}
.soil::before, .soil::after { content: ""; position: absolute; width: 7px; height: 4px; border: 2px solid #785038; border-width: 2px 0 0; border-radius: 50%; }
.soil::before { left: 62px; top: 23px; box-shadow: 82px 13px 0 -1px #785038, 185px 0 0 -1px #785038; }
.soil::after { left: 115px; top: 10px; box-shadow: 137px 23px 0 -1px #785038; }
.seed {
  position: absolute;
  left: 50%; top: 11px;
  transform: translateX(-50%) rotate(-2deg);
  padding: 3px 10px;
  border-radius: 45% 55% 50% 48%;
  color: #fff6e4;
  background: #74513c;
  font-family: "Kaiti SC", STKaiti, KaiTi, serif;
  font-size: 18px;
  transition: opacity .4s ease;
}

.flower {
  position: absolute;
  bottom: 60px;
  width: 118px;
  height: 225px;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  cursor: pointer;
  transform-origin: 50% 100%;
  opacity: 0;
  pointer-events: none;
}
.flower-wen { left: calc(50% - 154px); transform: rotate(-7deg) scaleY(.04); }
.flower-tan { left: calc(50% - 59px); height: 250px; transform: scaleY(.04); }
.flower-li { left: calc(50% + 36px); transform: rotate(7deg) scaleY(.04); }

.stem { position: absolute; bottom: 0; left: 56px; width: 6px; height: 155px; border-radius: 8px; background: #5d965e; box-shadow: inset 2px 0 rgba(255,255,255,.22); }
.flower-tan .stem { height: 178px; }
.leaf { position: absolute; width: 31px; height: 17px; background: #76aa6c; border: 1.5px solid #4f8654; }
.leaf.left { left: -28px; top: 70px; border-radius: 90% 8% 90% 8%; transform: rotate(16deg); }
.leaf.right { left: 3px; top: 101px; border-radius: 8% 90% 8% 90%; transform: rotate(-13deg); }

.bloom { position: absolute; top: 13px; left: 17px; width: 84px; height: 84px; transition: transform .25s ease; }
.flower-tan .bloom { top: -1px; }
.bloom i { position: absolute; left: 29px; top: 0; width: 29px; height: 48px; border-radius: 53% 47% 48% 52%; transform-origin: 50% 42px; border: 1.5px solid rgba(67,74,55,.2); }
.bloom i:nth-child(2) { transform: rotate(72deg); }
.bloom i:nth-child(3) { transform: rotate(144deg); }
.bloom i:nth-child(4) { transform: rotate(216deg); }
.bloom i:nth-child(5) { transform: rotate(288deg); }
.bloom b { position: absolute; z-index: 2; left: 24px; top: 27px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #745c27; background: #f9d77d; border: 1.5px solid #cda847; font-family: "Kaiti SC", STKaiti, KaiTi, serif; font-size: 21px; font-weight: 400; }
.bloom-pink i { background: var(--pink); }
.bloom-yellow i { background: var(--yellow); }
.bloom-blue i { background: var(--blue); }

.name-tag { position: absolute; z-index: 4; top: 92px; left: 50%; transform: translateX(-50%); width: max-content; padding: 4px 9px; border-radius: 10px 3px 9px 4px; color: #526755; background: rgba(255,250,235,.92); border: 1px solid rgba(82,103,85,.25); font-family: "Kaiti SC", STKaiti, KaiTi, serif; font-size: 18px; box-shadow: 2px 3px 0 rgba(79,104,79,.1); }
.flower-tan .name-tag { top: 82px; }
.flower:hover .bloom, .flower:focus-visible .bloom { transform: scale(1.09) rotate(3deg); }

.grow-button {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  column-gap: 9px;
  margin: -8px auto 0;
  padding: 11px 24px 10px;
  border: 1.5px solid #54765b;
  border-radius: 999px;
  color: #fffef7;
  background: #557e5c;
  box-shadow: 0 5px 0 #365c43, 0 9px 19px rgba(62,90,69,.18);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .4s ease;
}
.grow-button:active { transform: translateY(4px); box-shadow: 0 1px 0 #365c43; }
.button-icon { grid-row: 1 / 3; font-size: 25px; }
.button-label { font-weight: 700; font-size: 15px; letter-spacing: .08em; }
.grow-button small { grid-column: 2; font-size: 9px; opacity: .76; letter-spacing: .08em; }

.journey-status {
  position: relative;
  z-index: 5;
  max-height: 0;
  margin: -7px auto 0;
  overflow: hidden;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .5s 1.45s ease, transform .5s 1.45s ease, max-height .5s 1.25s ease;
}
.grown .journey-status { max-height: 110px; opacity: 1; transform: translateY(0); pointer-events: auto; }
.journey-status p { margin: 0 0 10px; color: #718073; font-size: 11px; letter-spacing: .04em; }
.memory-dots { display: flex; justify-content: center; gap: 9px; }
.memory-dots span { position: relative; display: grid; place-items: center; width: 27px; height: 27px; border: 1px dashed #8fa293; border-radius: 50%; color: #879588; background: rgba(255,255,255,.48); font-family: "Kaiti SC", STKaiti, KaiTi, serif; font-size: 14px; transition: .35s ease; }
.memory-dots span.read { color: white; border-style: solid; border-color: #5f8e69; background: #6f9e78; transform: scale(1.08); box-shadow: 0 3px 8px rgba(77,111,83,.18); }
.memory-dots span.read::after { content: "✓"; position: absolute; margin: 23px 0 0 20px; display: grid; place-items: center; width: 12px; height: 12px; border-radius: 50%; color: white; background: #ef8797; font: 8px/1 system-ui, sans-serif; }
.final-invite { display: grid; justify-items: center; width: min(88%, 360px); margin: 10px auto 0; padding: 9px 12px 12px; border: 1px dashed #db9aa5; border-radius: 15px 5px 14px 6px; background: rgba(255,242,240,.84); box-shadow: 0 5px 16px rgba(106,78,69,.08); animation: inviteIn .65s cubic-bezier(.2,.8,.25,1.15); }
.final-invite[hidden] { display: none; }
.journey-status .final-invite p { margin: 0; color: #8d5e65; font: 12px/1.55 "Kaiti SC", STKaiti, KaiTi, serif; letter-spacing: .02em; }
.journey-status .final-invite p strong { color: #c75f72; font-size: 14px; font-weight: 400; }
.final-invite-arrow { height: 15px; margin-top: -1px; color: #d16c7d; font-size: 21px; line-height: 1; animation: guideBounce 1s ease-in-out infinite; }
.final-button { padding: 9px 20px; border: 1px solid #cf6577; border-radius: 999px; color: white; background: linear-gradient(180deg, #e98594, #d96f81); font-size: 12px; font-weight: 700; letter-spacing: .03em; box-shadow: 0 4px 0 rgba(169,73,90,.22), 0 7px 16px rgba(142,80,86,.12); cursor: pointer; animation: finaleButtonIn .55s cubic-bezier(.2,.8,.25,1.2), finalButtonGlow 1.8s .6s ease-in-out infinite; }
.final-button:hover, .final-button:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(169,73,90,.2), 0 10px 20px rgba(142,80,86,.15); }
.final-button:focus-visible { outline: 2px dashed #b65365; outline-offset: 3px; }

.grown .journey-status { max-height: 300px; }
.memory-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: min(94%, 430px); margin: 0 auto; }
.memory-card { --envelope: #f2d5c4; --envelope-light: #f8e5d7; --envelope-line: #c98f7f; position: relative; display: grid; place-items: center; min-width: 0; padding: 5px 0 1px; border: 0; color: #53665a; background: transparent; cursor: pointer; transition: transform .25s ease; }
.memory-card.memory-tan { --envelope: #cddfe7; --envelope-light: #e2edf1; --envelope-line: #86a9b7; }
.memory-card.memory-li { --envelope: #d3e1c9; --envelope-light: #e6efe0; --envelope-line: #8eaa82; }
.memory-card:hover, .memory-card:focus-visible { transform: translateY(-3px) rotate(-1deg); }
.memory-card:focus-visible { outline: 2px dashed #c56f7d; outline-offset: 3px; border-radius: 8px; }
.envelope-scene { position: relative; display: block; width: 96px; height: 66px; perspective: 450px; filter: drop-shadow(2px 4px 2px rgba(77,78,61,.12)); }
.envelope-back { position: absolute; z-index: 1; left: 4px; right: 4px; bottom: 2px; height: 52px; border: 1.5px solid var(--envelope-line); border-radius: 5px 5px 7px 7px; background: var(--envelope-light); }
.envelope-letter-slip { position: absolute; z-index: 2; left: 15px; top: 13px; display: grid; place-items: start center; width: 66px; height: 43px; padding-top: 5px; border: 1px solid #dccfb5; border-radius: 3px; color: #e47b8c; background: #fffaf0; font: 18px/1 "Kaiti SC", STKaiti, KaiTi, serif; box-shadow: 0 1px 3px rgba(73,78,60,.12); transform: translateY(8px); transition: transform .52s .18s cubic-bezier(.2,.78,.28,1.12); }
.envelope-flap { position: absolute; z-index: 5; left: 4px; right: 4px; top: 12px; height: 34px; clip-path: polygon(0 0, 100% 0, 50% 100%); background: var(--envelope-light); border-top: 1.5px solid var(--envelope-line); transform-origin: 50% 0; transform: rotateX(0); backface-visibility: visible; transition: transform .48s cubic-bezier(.45,.05,.2,1); }
.envelope-front { position: absolute; z-index: 4; left: 4px; right: 4px; bottom: 2px; height: 52px; clip-path: polygon(0 25%, 50% 65%, 100% 25%, 100% 100%, 0 100%); border: 1.5px solid var(--envelope-line); border-top: 0; border-radius: 0 0 7px 7px; background: var(--envelope); }
.envelope-to { position: absolute; z-index: 6; left: 8px; right: 8px; bottom: 12px; color: #775b54; font: 12px/1 "Kaiti SC", STKaiti, KaiTi, serif; letter-spacing: .01em; text-align: center; white-space: nowrap; transition: transform .35s ease, opacity .25s ease; }
.memory-card.opening .envelope-scene { animation: envelopePop .65s ease; }
.memory-card.opening .envelope-flap, .memory-card.read .envelope-flap { z-index: 1; transform: rotateX(180deg); }
.memory-card.opening .envelope-letter-slip, .memory-card.read .envelope-letter-slip { transform: translateY(-15px); }
.memory-card.opening .envelope-to, .memory-card.read .envelope-to { transform: translateY(4px); opacity: .78; }
.memory-card.read::after { content: "✓"; position: absolute; z-index: 8; top: -1px; right: 5px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; color: white; background: #ef8797; font: 10px/1 system-ui, sans-serif; box-shadow: 0 2px 5px rgba(82,97,82,.16); }

footer { padding: 29px 30px max(20px, env(safe-area-inset-bottom)); text-align: center; }
footer p { margin: 0 0 8px; font-family: "Kaiti SC", STKaiti, KaiTi, serif; font-size: 19px; color: #6a705a; }
footer span { font-size: 8px; letter-spacing: .2em; color: #9f9a84; }

.grown .flower { pointer-events: auto; animation: grow 1.25s cubic-bezier(.2,.75,.26,1.12) forwards, sway 4s 1.4s ease-in-out infinite alternate; }
.grown .flower-tan { animation-delay: .18s, 1.7s; }
.grown .flower-li { animation-delay: .36s, 2s; }
.grown .seed { opacity: 0; }
.grown .grow-button { animation: buttonOut .55s 1.25s ease forwards; pointer-events: none; }
.grown .sparkles::before { content: "✦  ·  ✧  ·  ✦  ·  ✧"; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 285px; color: #e4ae55; font-size: 22px; word-spacing: 16px; opacity: 0; animation: sparkleIn 1s 1.15s ease forwards; }

.letter {
  width: min(88vw, 420px);
  max-height: 86svh;
  padding: 0;
  border: 0;
  overflow: visible;
  color: var(--ink);
  background: transparent;
}
.letter::backdrop { background: rgba(43,65,55,.58); backdrop-filter: blur(4px); }
.letter[open] { animation: modalIn .36s cubic-bezier(.2,.8,.25,1.15); }
.letter-paper { position: relative; padding: 44px 34px 30px; border: 1px solid #dfd3b8; border-radius: 5px 16px 7px 12px; background: #fffaf0; box-shadow: 0 20px 60px rgba(38,58,48,.24); transform: rotate(-.7deg); }
.letter-paper::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: .2; pointer-events: none; background: repeating-linear-gradient(0deg, transparent 0 27px, #91b7c8 28px 29px); }
.tape { position: absolute; top: -14px; left: 50%; width: 90px; height: 30px; transform: translateX(-50%) rotate(2deg); background: rgba(244,206,118,.64); }
.close-button { position: absolute; z-index: 3; top: 10px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 50%; color: #657268; background: rgba(73,101,82,.1); font-size: 25px; line-height: 1; cursor: pointer; }
.doodle { position: absolute; right: 26px; bottom: 24px; color: #eea0aa; font-size: 46px; transform: rotate(12deg); opacity: .5; }
.to, .message, .wish, .signature { position: relative; z-index: 1; }
.to { margin: 0 0 20px; font-size: 16px; }
.to strong { color: #e57889; font-family: "Kaiti SC", STKaiti, KaiTi, serif; font-size: 26px; font-weight: 400; }
.letter-illustration { position: relative; z-index: 1; width: 190px; height: 108px; margin: -13px auto 5px; }
.letter-illustration img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 3px rgba(67,83,67,.08)); }
.message, .wish { font-family: "Kaiti SC", STKaiti, KaiTi, serif; font-size: 23px; line-height: 1.55; }
.message { min-height: 71px; }
.wish { margin-top: 15px; }
.memory-photo { position: relative; z-index: 1; width: 76%; margin: 18px auto 13px; padding: 7px 7px 23px; background: white; box-shadow: 0 5px 18px rgba(55,71,60,.16); transform: rotate(1.5deg); }
.memory-photo::after { content: "我们的珍贵回忆"; position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; color: #808b80; font-family: "Kaiti SC", STKaiti, KaiTi, serif; font-size: 12px; }
.memory-photo img { display: block; width: 100%; max-height: 190px; object-fit: cover; }
.signature { display: flex; flex-direction: column; align-items: flex-end; margin-top: 25px; padding-right: 20px; transform: rotate(-2deg); }
.signature span { font-size: 12px; }
.signature b { color: #e57889; font-family: "Kaiti SC", STKaiti, KaiTi, serif; font-size: 30px; font-weight: 400; }
.signature small { font-size: 9px; letter-spacing: .08em; color: #8d938a; }

.music-consent { width: min(86vw, 360px); padding: 0; border: 0; overflow: visible; color: var(--ink); background: transparent; }
.music-consent::backdrop { background: rgba(57,76,65,.5); backdrop-filter: blur(4px); }
.music-consent[open] { animation: modalIn .4s cubic-bezier(.2,.8,.25,1.15); }
.music-consent-paper { position: relative; padding: 29px 24px 22px; border: 1px solid #ded0b0; border-radius: 18px 7px 17px 8px; text-align: center; background: #fff9eb; box-shadow: 0 20px 55px rgba(38,58,48,.24); }
.music-consent-paper::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: .14; pointer-events: none; background: radial-gradient(circle at 13% 21%, #ef8797 0 2px, transparent 3px), radial-gradient(circle at 84% 32%, #e3b24e 0 2px, transparent 3px), radial-gradient(circle at 27% 82%, #77a984 0 2px, transparent 3px); background-size: 61px 67px, 75px 63px, 83px 71px; }
.music-consent-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 12px; border: 1px solid #5e8569; border-radius: 50%; color: white; background: #78a383; box-shadow: 0 5px 0 rgba(77,111,83,.15); font-size: 28px; }
.music-consent-kicker { position: relative; z-index: 1; margin: 0 0 8px; color: #8b9185; font-size: 7px; font-weight: 700; letter-spacing: .18em; }
.music-consent h2 { position: relative; z-index: 1; margin: 0 0 8px; color: #4f6957; font-family: "Kaiti SC", STKaiti, KaiTi, serif; font-size: 27px; font-weight: 400; }
.music-consent p:not(.music-consent-kicker) { position: relative; z-index: 1; margin: 0 0 18px; color: #758077; font-size: 12px; line-height: 1.75; }
.music-consent-yes, .music-consent-no { position: relative; z-index: 1; display: block; width: 100%; border-radius: 999px; cursor: pointer; }
.music-consent-yes { padding: 11px 16px; border: 1px solid #54765b; color: white; background: #668f70; box-shadow: 0 4px 0 #486950; font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.music-consent-yes:hover, .music-consent-yes:focus-visible { transform: translateY(-1px); background: #5b8466; }
.music-consent-no { margin-top: 12px; padding: 6px 12px; border: 0; color: #8a8d83; background: transparent; font-size: 11px; }
.music-consent-yes:focus-visible, .music-consent-no:focus-visible { outline: 2px dashed #c16e7c; outline-offset: 3px; }

.finale { width: min(89vw, 430px); padding: 0; border: 0; overflow: visible; color: var(--ink); background: transparent; }
.finale::backdrop { background: rgba(43,65,55,.68); backdrop-filter: blur(5px); }
.finale[open] { animation: modalIn .4s cubic-bezier(.2,.8,.25,1.15); }
.finale-paper { position: relative; padding: 31px 25px 27px; overflow: hidden; border: 1px solid #ddd0ad; border-radius: 24px 8px 21px 9px; text-align: center; background: #fff8e8; box-shadow: 0 24px 70px rgba(31,52,41,.28); }
.finale-paper::before { content: ""; position: absolute; inset: 0; opacity: .18; pointer-events: none; background: radial-gradient(circle at 15% 20%, #ef8797 0 2px, transparent 3px), radial-gradient(circle at 82% 27%, #e0a940 0 2px, transparent 3px), radial-gradient(circle at 23% 78%, #74a994 0 2px, transparent 3px); background-size: 58px 71px, 73px 67px, 81px 63px; }
.finale-close { position: absolute; z-index: 5; top: 12px; right: 14px; width: 31px; height: 31px; border: 0; border-radius: 50%; color: #657268; background: rgba(73,101,82,.1); font-size: 24px; line-height: 1; cursor: pointer; }
.finale-kicker { position: relative; z-index: 1; margin: 0; color: #879083; font-size: 8px; font-weight: 700; letter-spacing: .18em; }
.final-bouquet { position: relative; z-index: 1; width: 240px; height: 190px; margin: 2px auto -12px; }
.final-bouquet img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 5px rgba(60,81,63,.08)); }
.finale h2 { position: relative; z-index: 1; margin: 0 0 13px; color: #d96f81; font-family: "Kaiti SC", STKaiti, KaiTi, serif; font-size: 29px; font-weight: 400; }
.finale-message { position: relative; z-index: 1; margin: 0; font-family: "Kaiti SC", STKaiti, KaiTi, serif; font-size: 19px; line-height: 1.65; }
.finale blockquote { position: relative; z-index: 1; margin: 16px 0 9px; padding: 11px 8px; border-top: 1px dashed #ddbca0; border-bottom: 1px dashed #ddbca0; color: #55745f; font-family: "Kaiti SC", STKaiti, KaiTi, serif; font-size: 18px; }
.finale-voice { position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 220px; margin: 5px auto 7px; padding: 10px 17px 10px 13px; border: 1px solid #cf7887; border-radius: 999px; color: #9e4657; background: linear-gradient(180deg, #fff5f4, #ffe5e7); box-shadow: 0 4px 0 rgba(197,102,119,.18), 0 7px 18px rgba(102,74,65,.09); font-size: 13px; letter-spacing: .03em; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.finale-voice:hover, .finale-voice:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(197,102,119,.18), 0 9px 20px rgba(102,74,65,.12); }
.finale-voice:focus-visible { outline: 2px dashed #ba6878; outline-offset: 3px; }
.finale-voice-icon { display: grid; place-items: center; width: 27px; height: 27px; padding-left: 2px; border-radius: 50%; color: white; background: #e17b8c; font-size: 10px; box-shadow: inset 0 -2px rgba(109,53,62,.12); }
.finale-voice.listening .finale-voice-icon { animation: musicPulse .7s ease-in-out infinite; }
.finale-voice.listening { background: linear-gradient(180deg, #fff9e9, #ffe8c8); }
.finale-wish { position: relative; z-index: 1; margin: 8px 0 3px; color: #d66f80; font-weight: 700; letter-spacing: .08em; }
.finale-sign { position: relative; z-index: 1; color: #919386; font-size: 9px; letter-spacing: .12em; }

.toast { position: fixed; z-index: 120; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); max-width: min(84vw, 370px); padding: 9px 15px; border-radius: 999px; color: white; background: rgba(48,70,58,.9); box-shadow: 0 7px 22px rgba(35,53,44,.22); text-align: center; font-size: 12px; opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: .3s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.confetti { position: fixed; inset: 0; z-index: 99; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 8px; height: 14px; border-radius: 2px; animation: fall 1.9s ease-in forwards; }

@keyframes grow { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 1; transform: rotate(var(--tilt, 0deg)) scaleY(1); } }
@keyframes sway { from { transform: rotate(calc(var(--tilt, 0deg) - 1.5deg)) scaleY(1); } to { transform: rotate(calc(var(--tilt, 0deg) + 1.5deg)) scaleY(1); } }
.flower-wen { --tilt: -7deg; }
.flower-tan { --tilt: 0deg; }
.flower-li { --tilt: 7deg; }
@keyframes sparkleIn { 0% { opacity: 0; transform: translateX(-50%) scale(.4); } 55% { opacity: 1; } 100% { opacity: .72; transform: translateX(-50%) scale(1); } }
@keyframes buttonOut { to { opacity: 0; transform: translateY(9px) scale(.95); } }
@keyframes modalIn { from { opacity: 0; transform: translateY(25px) scale(.9) rotate(-2deg); } }
@keyframes fall { to { transform: translate3d(var(--drift), 110vh, 0) rotate(720deg); opacity: .5; } }
@keyframes breathe { 50% { transform: scale(1.045); } }
@keyframes drift { to { transform: translateX(18px); } }
@keyframes musicPulse { 50% { transform: scale(1.12) rotate(8deg); } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes voiceHold { from { opacity: 0; transform: scale(.72); } 25% { opacity: 1; } to { opacity: 1; transform: scale(1.12); } }
@keyframes finaleButtonIn { from { opacity: 0; transform: scale(.7); } }
@keyframes envelopePop { 35% { transform: translateY(-4px) rotate(1deg); } 72% { transform: translateY(1px) rotate(-.5deg); } }
@keyframes inviteIn { from { opacity: 0; transform: translateY(12px) scale(.94); } }
@keyframes guideBounce { 50% { transform: translateY(4px); } }
@keyframes finalButtonGlow { 50% { box-shadow: 0 4px 0 rgba(169,73,90,.18), 0 0 0 6px rgba(225,123,140,.1), 0 9px 20px rgba(142,80,86,.14); } }

@media (max-height: 760px) {
  .intro { padding-top: 35px; }
  .garden { height: 275px; }
  .flower { height: 210px; }
  footer { padding-top: 20px; }
  .finale-paper { max-height: 90svh; padding-top: 26px; padding-bottom: 21px; overflow-y: auto; }
  .final-bouquet { height: 150px; margin-bottom: -8px; }
  .finale h2 { font-size: 25px; }
  .finale-message { font-size: 17px; }
  .finale blockquote { margin-top: 12px; font-size: 16px; }
}

@media (min-width: 700px) {
  body { padding: 24px 0; }
  .card { min-height: 830px; border-radius: 28px; box-shadow: 0 24px 70px rgba(65,74,63,.18); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; scroll-behavior: auto !important; }
}
