:root {
  --ink: #080b0a;
  --ink-2: #101614;
  --cream: #f7f1e6;
  --gold: #d9bd8e;
  --gold-dim: rgba(217, 189, 142, .34);
  --rose: #c8283f;
  --rose-light: #ea6076;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system, sans-serif;
}

* { -webkit-tap-highlight-color: transparent; }

[hidden] { display: none !important; }

img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

body { position: fixed; inset: 0; }

#app { position: absolute; inset: 0; overflow: hidden; }

.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility .8s;
  overflow: hidden;
}
.scene.is-active { opacity: 1; visibility: visible; }
.scene.is-out { opacity: 0; }

/* ============ 1. 玫瑰 ============ */
.scene--rose {
  background:
    radial-gradient(120% 78% at 50% 46%, #1b2420 0%, #0b100e 58%, #050807 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 34px) 24px calc(env(safe-area-inset-bottom) + 26px);
  box-sizing: border-box;
}

.glow {
  display: none;
  position: absolute;
  left: 50%;
  top: 48%;
  width: 78vmin;
  height: 78vmin;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(200, 40, 63, .34) 0%, rgba(200, 40, 63, .1) 42%, transparent 68%);
  filter: blur(24px);
  animation: breathe 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes breathe {
  0%, 100% { opacity: .72; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

.bokeh { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.bokeh i {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255, 226, 190, .8);
  box-shadow: 0 0 8px 2px rgba(255, 208, 160, .35);
  animation: drift linear infinite;
}
@keyframes drift {
  from { transform: translate3d(0, 12vh, 0) scale(.6); opacity: 0; }
  18% { opacity: .9; }
  80% { opacity: .5; }
  to { transform: translate3d(6vw, -68vh, 0) scale(1.1); opacity: 0; }
}

.bouquet {
  position: absolute;
  inset: 0;
  background: url("../assets/rose.jpg") center 42% / cover no-repeat;
  transform: scale(1) translateY(4%);
  opacity: 0;
  filter: blur(13px) brightness(.78);
  transition: transform 2.6s cubic-bezier(.16, 1, .3, 1), opacity 1.6s ease, filter 1.8s ease;
  will-change: transform, filter;
  pointer-events: none;
  z-index: 1;
}
.bouquet.is-in {
  transform: scale(1.06) translateY(0);
  opacity: 1;
  filter: blur(0) brightness(1);
}
.bouquet.is-offer { animation: offer 9s ease-in-out infinite 2.4s; }
@keyframes offer {
  0%, 100% { transform: scale(1.06) translateY(0); }
  50% { transform: scale(1.095) translateY(-.8%); }
}

/* 压暗上下两端，保证文字清晰 */
.scene--rose .veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom,
      rgba(4, 6, 5, .86) 0%,
      rgba(4, 6, 5, .5) 14%,
      rgba(4, 6, 5, .08) 34%,
      rgba(4, 6, 5, 0) 46%,
      rgba(4, 6, 5, .45) 70%,
      rgba(4, 6, 5, .92) 88%,
      #050807 100%);
}

.petal-field { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.petal-field i {
  position: absolute;
  width: 10px; height: 12px;
  background: linear-gradient(150deg, #e2667a, #a51f33);
  border-radius: 60% 10% 60% 10%;
  opacity: .85;
  animation: fall linear infinite;
}
@keyframes fall {
  from { transform: translate3d(0, -8vh, 0) rotate(0deg); opacity: 0; }
  12% { opacity: .9; }
  to { transform: translate3d(-10vw, 110vh, 0) rotate(420deg); opacity: 0; }
}

.rose-head { position: relative; text-align: center; z-index: 3; }
.eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  animation: riseIn .9s ease .9s forwards;
}
.headline {
  text-shadow: 0 3px 26px rgba(0, 0, 0, .8);
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(21px, 6.4vw, 27px);
  line-height: 1.72;
  letter-spacing: .1em;
  opacity: 0;
  animation: riseIn 1.1s ease 1.15s forwards;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .6);
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 居中告白弹窗 ---------- */
.ask-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 22px;
  z-index: 5;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
@keyframes askRise {
  from { opacity: 0; transform: translateY(16px) scale(.94); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.ask-card {
  position: relative;
  width: min(100%, 336px);
  box-sizing: border-box;
  padding: 26px 20px 20px;
  border-radius: 22px;
  text-align: center;
  pointer-events: auto;
  background: linear-gradient(168deg, rgba(30, 23, 21, .72), rgba(9, 12, 11, .66));
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid rgba(255, 214, 170, .24);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .68), inset 0 1px 0 rgba(255, 232, 210, .16);
  animation: askRise .9s cubic-bezier(.22, 1, .36, 1) 1.5s both;
}
/* 拒绝时抖一下 */
.ask-card.is-shake { animation: cardShake .44s ease; }
@keyframes cardShake {
  0%, 100% { transform: translateX(0) rotate(0); }
  18% { transform: translateX(-8px) rotate(-1.4deg); }
  40% { transform: translateX(7px) rotate(1.1deg); }
  62% { transform: translateX(-4px) rotate(-.6deg); }
  82% { transform: translateX(2px) rotate(.3deg); }
}
/* 拒绝后让位给追问弹窗 */
.ask-center.is-gone {
  opacity: 0;
  transform: scale(.9) translateY(6px);
  pointer-events: none;
}

.ask {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.7;
  letter-spacing: .06em;
  color: rgba(247, 241, 230, .86);
}
.ask em { font-style: normal; color: var(--rose-light); letter-spacing: .04em; }

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn {
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: .18em;
  padding: 15px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease;
}
.btn:active { transform: scale(.975); }
.btn--primary {
  color: #fff;
  background: linear-gradient(160deg, #dc5568, #b3243c 70%);
  box-shadow: 0 12px 30px rgba(200, 40, 63, .38), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn--ghost {
  color: rgba(247, 241, 230, .62);
  background: rgba(255, 255, 255, .03);
  border-color: rgba(217, 189, 142, .26);
  font-size: 13px;
  padding: 12px 20px;
  letter-spacing: .12em;
}
.tiny {
  margin: 14px 0 0;
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(247, 241, 230, .32);
}

/* ============ 2. 幕布 + 时光门 ============ */
.scene--gate {
  background: #040605;
  transition: opacity .34s ease, visibility .34s;
}

.portal {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 50%, rgba(255, 214, 168, .16) 0%, rgba(120, 24, 40, .12) 34%, transparent 62%);
  will-change: transform;
}
.scene--gate.is-dive .portal { animation: dive 2.1s cubic-bezier(.55, 0, .75, 1) forwards; }
@keyframes dive {
  0% { transform: scale(1); }
  70% { transform: scale(1.75); opacity: 1; }
  100% { transform: scale(2.6); opacity: 0; }
}

.portal-core {
  width: 30vmin; height: 30vmin;
  border-radius: 50%;
  background: radial-gradient(circle, #fffdf8 0%, rgba(255, 226, 190, .9) 22%, rgba(226, 132, 104, .45) 48%, transparent 70%);
  filter: blur(8px);
  animation: corePulse 2.4s ease-in-out infinite;
}
@keyframes corePulse {
  0%, 100% { transform: scale(.92); opacity: .85; }
  50% { transform: scale(1.18); opacity: 1; }
}

.rings { position: absolute; inset: 0; display: grid; place-items: center; }
.ring {
  position: absolute;
  width: 52vmin; height: 52vmin;
  border-radius: 50%;
  border: 1.3px solid rgba(255, 232, 202, .92);
  box-shadow: 0 0 26px rgba(255, 198, 152, .6), inset 0 0 36px rgba(255, 214, 170, .16);
  animation: tunnel 2.2s linear infinite;
}
@keyframes tunnel {
  from { transform: scale(.03); opacity: 0; }
  18% { opacity: 1; }
  75% { opacity: .55; }
  to { transform: scale(4.2); opacity: 0; }
}

.streaks { position: absolute; inset: 0; display: grid; place-items: center; }
.streak {
  position: absolute;
  width: 2px;
  height: 30vmin;
  translate: 0 -50%;
  transform-origin: 50% 100%;
  background: linear-gradient(to top, rgba(255, 250, 240, .8), rgba(255, 226, 190, .34) 55%, rgba(255, 226, 190, 0));
  filter: blur(1.1px);
  animation: shoot 1.15s linear infinite;
  opacity: 0;
}
@keyframes shoot {
  0% { transform: rotate(var(--a)) scaleY(.05); opacity: 0; }
  22% { opacity: .95; }
  100% { transform: rotate(var(--a)) scaleY(3.2); opacity: 0; }
}

.gate-copy {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(env(safe-area-inset-bottom) + 12vh);
  text-align: center;
  font-size: 12px;
  letter-spacing: .32em;
  color: rgba(247, 241, 230, .45);
  opacity: 0;
  transition: opacity .8s ease;
}
.scene--gate.is-open .gate-copy { opacity: 1; }

.curtain {
  position: absolute;
  top: 0; bottom: 0;
  width: 51%;
  background-color: #5e0f1b;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .05) 30%, rgba(0, 0, 0, .34) 64%, rgba(0, 0, 0, .62)),
    repeating-linear-gradient(90deg,
      #5b0e19 0px, #8e1c2c 26px, #b03244 42px, #8a1a2a 58px,
      #540c16 74px, #7c1725 92px, #a32b3d 108px, #74131f 126px, #5b0e19 142px),
    linear-gradient(180deg, #761525 0%, #4d0b16 62%, #2e060d 100%);
  box-shadow: inset 0 0 120px rgba(0, 0, 0, .82), 0 0 50px rgba(0, 0, 0, .7);
  transition: transform 1.85s cubic-bezier(.72, 0, .22, 1);
  will-change: transform;
  z-index: 3;
}
.curtain::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: linear-gradient(90deg, #8a6c3f, #e6cfa2, #8a6c3f);
  opacity: .85;
}
.curtain--left { left: 0; transform: translateX(0); }
.curtain--right { right: 0; transform: translateX(0); }
.scene--gate.is-open .curtain--left { transform: translateX(-101%); }
.scene--gate.is-open .curtain--right { transform: translateX(101%); }

/* ============ 3. 相册 ============ */
.scene--gallery {
  background: #2a0d18;
  overflow: hidden;
}

/* 暖酒红 + 玫瑰金的光晕背景，替换掉原来的纯黑 */
.gallery-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(118% 76% at 50% 46%, transparent 34%, rgba(26, 5, 14, .6) 100%),
    radial-gradient(72% 46% at 16% 6%, rgba(255, 168, 150, .34), transparent 62%),
    radial-gradient(62% 40% at 88% 16%, rgba(255, 214, 168, .26), transparent 64%),
    radial-gradient(96% 56% at 50% 104%, rgba(255, 148, 138, .26), transparent 66%),
    radial-gradient(80% 60% at 50% 46%, rgba(168, 46, 72, .5), transparent 72%),
    linear-gradient(168deg, #4a1226 0%, #5e1a2e 26%, #451022 58%, #2b0a15 82%, #20070f 100%);
}

/* 柔和的光斑，让背景有层次 */
.gallery-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(26vmin 26vmin at 22% 26%, rgba(255, 226, 190, .16), transparent 70%),
    radial-gradient(34vmin 34vmin at 82% 62%, rgba(255, 186, 168, .14), transparent 72%),
    radial-gradient(22vmin 22vmin at 34% 82%, rgba(255, 214, 170, .12), transparent 72%);
  animation: glowFloat 18s ease-in-out infinite;
}
@keyframes glowFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .9; }
  50% { transform: translate3d(0, -1.6%, 0) scale(1.06); opacity: 1; }
}

/* 飘落的花瓣 */
.gallery-petals {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.g-petal {
  position: absolute;
  top: -10vh;
  width: var(--w, 12px);
  height: var(--h, 14px);
  border-radius: 62% 12% 58% 14%;
  background:
    linear-gradient(148deg, var(--c1, #f08398) 0%, var(--c2, #9c1c33) 100%);
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, .5), 0 2px 6px rgba(46, 6, 18, .28);
  opacity: 0;
  filter: blur(var(--blur, 0px));
  animation: gFall var(--dur, 16s) linear var(--delay, 0s) infinite;
  will-change: transform, opacity;
}
/* 两种更像真花瓣的叶片轮廓，交替使用 */
.g-petal.is-leaf  { border-radius: 0 100% 0 100%; }
.g-petal.is-leaf2 { border-radius: 100% 0 100% 0; }
@keyframes gFall {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(var(--s, 1)); opacity: 0; }
  10%  { opacity: var(--op, .75); }
  35%  { transform: translate3d(calc(var(--sway, 6vw) * .7), 36vh, 0) rotate(150deg) scale(var(--s, 1)); }
  68%  { transform: translate3d(calc(var(--sway, 6vw) * -.35), 70vh, 0) rotate(280deg) scale(var(--s, 1)); opacity: var(--op, .75); }
  100% { transform: translate3d(var(--sway, 6vw), 116vh, 0) rotate(440deg) scale(var(--s, 1)); opacity: 0; }
}

.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: calc(env(safe-area-inset-top) + 54px);
  padding: env(safe-area-inset-top) 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  z-index: 6;
}
.brand {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .28em;
  color: rgba(217, 189, 142, .8);
}
.brand i { font-style: normal; color: var(--rose-light); margin: 0 6px; }
.sound {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  background: rgba(255, 255, 255, .04);
  color: var(--gold);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.sound.is-off { color: rgba(247, 241, 230, .3); border-color: rgba(247, 241, 230, .12); }
.sound span { display: inline-block; animation: spin 4s linear infinite; }
.sound.is-off span { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }

.viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: pan-y;
  z-index: 2;
}
.deck {
  display: flex;
  height: 100%;
  will-change: transform;
}
.slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: calc(env(safe-area-inset-top) + 62px) 22px calc(env(safe-area-inset-bottom) + 46px);
  box-sizing: border-box;
}

.polaroid {
  background: #fbf6ec;
  padding: 9px 9px 0;
  border-radius: 3px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, .62), 0 2px 0 rgba(255, 255, 255, .18) inset;
  transform: rotate(var(--rot, 0deg));
  max-width: 100%;
  opacity: 0;
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .9, .3, 1);
}
.slide.is-seen .polaroid { opacity: 1; }
.polaroid img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 54vh;
  background: #e6ddcf;
  min-width: 120px;
  min-height: 120px;
  object-fit: contain;
}
.polaroid .cap {
  padding: 12px 8px 15px;
  text-align: center;
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 1.5;
  letter-spacing: .07em;
  color: #4a382f;
}
.slide-meta {
  font-size: 11px;
  letter-spacing: .3em;
  color: rgba(217, 189, 142, .62);
}
.slide-meta b { font-weight: 500; color: rgba(247, 241, 230, .9); }

.progress {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 16px);
  transform: translateX(-50%);
  width: 56vw;
  height: 2px;
  background: rgba(255, 255, 255, .1);
  border-radius: 2px;
  overflow: hidden;
  z-index: 6;
}
.progress i {
  display: block;
  height: 100%;
  width: 2%;
  background: linear-gradient(90deg, #a8203a, #ea8a97);
  transition: width .45s cubic-bezier(.2, .8, .3, 1);
}
.swipe-hint {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 34px);
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: .22em;
  color: rgba(255, 238, 228, .55);
  text-shadow: 0 1px 10px rgba(30, 4, 14, .6);
  white-space: nowrap;
  z-index: 6;
  transition: opacity .6s ease;
}
.swipe-hint.is-hidden { opacity: 0; }

/* 结尾那一页 */
.end-slide { text-align: center; padding: 0 30px; }
.end-slide .kicker {
  font-size: 11px;
  letter-spacing: .3em;
  color: rgba(217, 189, 142, .72);
  margin: 0 0 22px;
}
.end-slide .big {
  font-family: var(--serif);
  font-size: clamp(22px, 6.6vw, 28px);
  line-height: 1.8;
  letter-spacing: .1em;
  margin: 0 0 30px;
  color: var(--cream);
}
.end-slide .sign {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .16em;
  color: rgba(247, 241, 230, .55);
  margin: 0;
}
.end-slide .mini-rose {
  width: 96px;
  height: 96px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background-image: url("../assets/rose.jpg");
  background-size: 300%;
  background-position: 58% 66%;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 214, 170, .22);
  opacity: .96;
}

/* ============ 弹窗 ============ */
.modal-layer {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  /* 底部多留一点，给"追问"小弹窗腾地方 */
  padding: 22px 22px 96px;
  background:
    radial-gradient(76% 54% at 50% 38%, rgba(74, 18, 38, .62) 0%, rgba(30, 6, 16, .8) 62%, rgba(20, 4, 11, .88) 100%);
  -webkit-backdrop-filter: blur(7px) saturate(1.05);
  backdrop-filter: blur(7px) saturate(1.05);
  animation: fadeIn .28s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  width: 100%;
  max-width: 360px;
  max-height: 82vh;
  overflow-y: auto;
  border-radius: 18px;
  padding: 24px 20px 20px;
  box-sizing: border-box;
  background: linear-gradient(170deg, #fdf8ef, #f0e5d2);
  border: 1px solid rgba(217, 189, 142, .9);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .66);
  color: #3d2c25;
  animation: modalIn .5s cubic-bezier(.2, 1.2, .3, 1);
  position: relative;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal .tag {
  display: block;
  font-size: 10px;
  letter-spacing: .34em;
  color: #a8804a;
  margin: 0 0 12px;
  text-align: center;
}
.modal h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 15.5px;
  line-height: 1.78;
  letter-spacing: .03em;
  color: #3d2c25;
}
.modal .q {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: #7d5f4d;
}
.modal .opts {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}
.opt {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.5;
  letter-spacing: .04em;
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px solid #ddc7a4;
  background: #fffaf1;
  color: #5a3f33;
  cursor: pointer;
  transition: transform .16s ease, background .2s ease;
}
.opt:active { transform: scale(.98); }
.opt.is-primary {
  background: linear-gradient(160deg, #cb4558, #a4243b);
  border-color: #8f1d31;
  color: #fff;
  box-shadow: 0 8px 20px rgba(160, 30, 55, .28);
}

/* 追问小弹窗 */
.spam-layer { position: absolute; inset: 0; z-index: 50; pointer-events: none; }
.spam {
  position: absolute;
  width: min(76vw, 288px);
  box-sizing: border-box;
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: linear-gradient(170deg, #fdf8ef, #f2e8d6);
  border: 1px solid rgba(217, 189, 142, .95);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .6);
  color: #3d2c25;
  pointer-events: auto;
  transform: rotate(var(--r, 0deg));
  animation: popIn .34s cubic-bezier(.2, 1.5, .4, 1) both;
  transform-origin: 50% 100%;
}
@keyframes popIn {
  from { opacity: 0; transform: rotate(var(--r)) scale(.7); }
  to { opacity: 1; transform: rotate(var(--r)) scale(1); }
}
.spam p {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.6;
  letter-spacing: .02em;
}
.spam .row { display: flex; gap: 8px; }
.spam button {
  flex: 1;
  font-family: var(--sans);
  font-size: 12.5px;
  padding: 10px 6px;
  border-radius: 10px;
  border: 1px solid #ddc7a4;
  background: #fffaf1;
  color: #6b4b3c;
  cursor: pointer;
}
.spam button.yes {
  background: linear-gradient(160deg, #cb4558, #a4243b);
  border-color: #8f1d31;
  color: #fff;
}

.flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, #fff, #ffe9d2 40%, #f6c9a8 70%, #fff 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 45;
}
.flash.is-on { animation: flashOut 1.1s ease forwards; }
@keyframes flashOut {
  0% { opacity: 0; }
  12% { opacity: .96; }
  100% { opacity: 0; }
}

/* 小屏微调 */
@media (max-height: 640px) {
  .bouquet { width: min(74vw, 330px); bottom: 8vh; }
  .headline { font-size: 19px; line-height: 1.6; }
  .polaroid img { max-height: 46vh; }
  .slide { gap: 10px; }
}
