:root {
  --white: #fff8fb;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}

body[data-theme="rose"] {
  --bg-a: #07050d;
  --bg-b: #120817;
  --bg-c: #2d153d;
  --glow-one: rgba(255, 120, 167, 0.28);
  --glow-two: rgba(255, 227, 163, 0.18);
  --glow-three: rgba(255, 120, 167, 0.16);
  --accent: #ff78a7;
  --accent-soft: #ffd6e2;
  --accent-rgb: 255, 120, 167;
  --trail-rgb: 255, 214, 226;
  --gold: #ffe3a3;
  --glass: rgba(255, 248, 251, 0.13);
  --border: rgba(255, 255, 255, 0.24);
  --petal-one: #ff9fbd;
  --petal-two: #ffd6e2;
  --petal-three: #ff78a7;
  --petal-four: #fff0f5;
  --particle-radius: 80% 20% 70% 30%;
}

body[data-theme="blue"] {
  --bg-a: #03101c;
  --bg-b: #071b32;
  --bg-c: #153c67;
  --glow-one: rgba(111, 198, 255, 0.3);
  --glow-two: rgba(205, 236, 255, 0.2);
  --glow-three: rgba(97, 159, 255, 0.17);
  --accent: #77c8ff;
  --accent-soft: #d9f0ff;
  --accent-rgb: 119, 200, 255;
  --trail-rgb: 207, 235, 255;
  --gold: #d8f0ff;
  --glass: rgba(232, 246, 255, 0.13);
  --border: rgba(224, 244, 255, 0.25);
  --petal-one: #77c8ff;
  --petal-two: #d9f0ff;
  --petal-three: #9bd8ff;
  --petal-four: #eff9ff;
  --particle-radius: 50%;
}

body[data-theme="violet"] {
  --bg-a: #090713;
  --bg-b: #1a1233;
  --bg-c: #3d2465;
  --glow-one: rgba(174, 133, 255, 0.3);
  --glow-two: rgba(255, 183, 237, 0.17);
  --glow-three: rgba(119, 86, 255, 0.18);
  --accent: #b08cff;
  --accent-soft: #eadfff;
  --accent-rgb: 176, 140, 255;
  --trail-rgb: 234, 223, 255;
  --gold: #ffd9f4;
  --glass: rgba(244, 239, 255, 0.13);
  --border: rgba(236, 226, 255, 0.25);
  --petal-one: #b08cff;
  --petal-two: #eadfff;
  --petal-three: #ffb7ed;
  --petal-four: #f7f1ff;
  --particle-radius: 50%;
}

body[data-theme="gold"] {
  --bg-a: #120b04;
  --bg-b: #241305;
  --bg-c: #4a2b11;
  --glow-one: rgba(255, 204, 120, 0.28);
  --glow-two: rgba(255, 239, 196, 0.22);
  --glow-three: rgba(255, 164, 92, 0.16);
  --accent: #ffc875;
  --accent-soft: #fff0c9;
  --accent-rgb: 255, 200, 117;
  --trail-rgb: 255, 236, 198;
  --gold: #fff0c9;
  --glass: rgba(255, 244, 219, 0.12);
  --border: rgba(255, 238, 200, 0.25);
  --petal-one: #ffc875;
  --petal-two: #fff0c9;
  --petal-three: #ffad7a;
  --petal-four: #fff8e8;
  --particle-radius: 2px;
}

body[data-theme="mint"] {
  --bg-a: #03110f;
  --bg-b: #08241f;
  --bg-c: #164d42;
  --glow-one: rgba(117, 255, 209, 0.25);
  --glow-two: rgba(214, 255, 239, 0.2);
  --glow-three: rgba(116, 218, 255, 0.14);
  --accent: #7cf5d1;
  --accent-soft: #dcfff4;
  --accent-rgb: 124, 245, 209;
  --trail-rgb: 220, 255, 244;
  --gold: #d8fff2;
  --glass: rgba(234, 255, 248, 0.12);
  --border: rgba(224, 255, 246, 0.24);
  --petal-one: #7cf5d1;
  --petal-two: #dcfff4;
  --petal-three: #8edcff;
  --petal-four: #f0fffb;
  --particle-radius: 70% 20% 70% 20%;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 18%, var(--glow-one), transparent 28rem),
    radial-gradient(circle at 80% 10%, var(--glow-two), transparent 24rem),
    radial-gradient(circle at 50% 100%, var(--glow-three), transparent 30rem),
    linear-gradient(145deg, var(--bg-a), var(--bg-b) 48%, var(--bg-c));
  overflow-x: hidden;
  transition: background 0.45s ease;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.86) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 227, 163, 0.68) 0 1px, transparent 1.4px);
  background-position: 0 0, 34px 52px;
  background-size: 96px 96px, 146px 146px;
  opacity: 0.62;
  animation: twinkle 8s ease-in-out infinite alternate;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(180deg, transparent 0%, rgba(7, 5, 13, 0.5) 100%),
    radial-gradient(circle at 50% 35%, transparent 0 18rem, rgba(0, 0, 0, 0.2) 42rem);
  pointer-events: none;
}

#trailCanvas,
.theme-scene,
.petal-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#trailCanvas {
  z-index: 2;
}

.petal-layer {
  z-index: 1;
  overflow: hidden;
}

.theme-scene {
  z-index: 0;
  overflow: hidden;
}

.scene-item {
  position: absolute;
  opacity: 0.68;
  pointer-events: none;
}

.scene-rose-heart {
  width: 7rem;
  height: 7rem;
  color: rgba(var(--accent-rgb), 0.18);
  font-size: 7rem;
  animation: scenePulse 4.8s ease-in-out infinite;
}

.scene-rose-heart::before {
  content: "♥";
}

.scene-rose-glow {
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.22), transparent 70%);
  filter: blur(10px);
  animation: sceneFloat 7s ease-in-out infinite alternate;
}

.scene-rose-ribbon {
  width: 16rem;
  height: 2.6rem;
  border-radius: 999px;
  border-top: 1px solid rgba(255, 214, 226, 0.34);
  box-shadow: 0 -18px 34px rgba(255, 120, 167, 0.16);
  transform: rotate(-12deg);
  animation: sceneFloat 7s ease-in-out infinite alternate;
}

.scene-blue-moon {
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  box-shadow: -1.5rem 0 0 rgba(230, 247, 255, 0.32);
  animation: sceneFloat 8s ease-in-out infinite alternate;
}

.scene-blue-wave {
  width: 28rem;
  height: 5rem;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-color: rgba(var(--accent-rgb), 0.22) transparent transparent transparent;
  border-radius: 50%;
  animation: waveDrift 6s ease-in-out infinite;
}

.scene-blue-ripple {
  width: 10rem;
  height: 10rem;
  border: 1px solid rgba(217, 240, 255, 0.22);
  border-radius: 50%;
  box-shadow: inset 0 0 28px rgba(119, 200, 255, 0.12), 0 0 44px rgba(119, 200, 255, 0.14);
  animation: ripplePulse 4.6s ease-out infinite;
}

.scene-violet-ring {
  width: 16rem;
  height: 16rem;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: 50%;
  transform: rotate(-22deg) scaleY(0.42);
  animation: orbitSpin 12s linear infinite;
}

.scene-violet-star {
  color: rgba(255, 255, 255, 0.58);
  font-size: 1.2rem;
  animation: scenePulse 3.8s ease-in-out infinite;
}

.scene-violet-star::before {
  content: "✦";
}

.scene-violet-constellation {
  width: 13rem;
  height: 4.5rem;
  border-top: 1px solid rgba(234, 223, 255, 0.26);
  border-right: 1px solid rgba(255, 183, 237, 0.18);
  transform: rotate(16deg);
  filter: drop-shadow(0 0 10px rgba(176, 140, 255, 0.28));
  animation: constellationBlink 5.4s ease-in-out infinite;
}

.scene-gold-candle {
  width: 1.3rem;
  height: 5rem;
  border-radius: 999px;
  background: linear-gradient(#fff7d8, rgba(var(--accent-rgb), 0.45));
  box-shadow: 0 -1rem 2.2rem rgba(var(--accent-rgb), 0.45);
  animation: candleFlicker 2.8s ease-in-out infinite;
}

.scene-gold-bubble,
.scene-mint-firefly {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.62);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.8);
  animation: sceneFloat 5.6s ease-in-out infinite alternate;
}

.scene-gold-sparkle {
  width: 11rem;
  height: 11rem;
  background:
    linear-gradient(90deg, transparent 48%, rgba(255, 240, 201, 0.34) 49%, rgba(255, 240, 201, 0.34) 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(255, 200, 117, 0.32) 49%, rgba(255, 200, 117, 0.32) 51%, transparent 52%);
  border-radius: 50%;
  filter: drop-shadow(0 0 18px rgba(255, 200, 117, 0.28));
  animation: sparkleTurn 10s linear infinite;
}

.scene-mint-leaf {
  width: 8rem;
  height: 3rem;
  border-radius: 80% 10% 80% 10%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(var(--accent-rgb), 0.18));
  transform: rotate(-18deg);
  animation: leafSway 6s ease-in-out infinite alternate;
}

.scene-mint-mist {
  width: 26rem;
  height: 8rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 72%);
  filter: blur(14px);
  animation: sceneFloat 8s ease-in-out infinite alternate;
}

.scene-mint-breeze {
  width: 18rem;
  height: 3rem;
  border-bottom: 1px solid rgba(220, 255, 244, 0.28);
  border-radius: 50%;
  transform: rotate(-8deg);
  box-shadow: 0 18px 28px rgba(124, 245, 209, 0.1);
  animation: breezeSlide 6.5s ease-in-out infinite;
}

.page {
  position: relative;
  z-index: 3;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 4rem 0;
}

.theme-toggle {
  position: fixed;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 10;
  display: grid;
  width: 3.1rem;
  height: 3.1rem;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.24), 0 0 28px rgba(var(--accent-rgb), 0.28);
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px) rotate(10deg);
  background: rgba(255, 255, 255, 0.17);
}

.theme-toggle:focus-visible {
  outline: 3px solid rgba(var(--accent-rgb), 0.45);
  outline-offset: 4px;
}

.theme-icon {
  font-size: 1.25rem;
  text-shadow: 0 0 18px rgba(var(--accent-rgb), 0.85);
}

.theme-dot {
  position: absolute;
  right: 0.32rem;
  bottom: 0.32rem;
  width: 0.72rem;
  height: 0.72rem;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: var(--accent);
}

.hero {
  display: grid;
  min-height: calc(100vh - 8rem);
  place-items: center;
  align-content: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 9vw, 6.7rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 0 36px rgba(var(--accent-rgb), 0.48);
}

.days-card {
  display: grid;
  width: min(680px, 100%);
  margin: 2rem auto 1.4rem;
  padding: clamp(1.3rem, 5vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(145deg, var(--glass), rgba(255, 255, 255, 0.07));
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.days-card.theme-shift {
  animation: themeShift 0.72s ease-out;
}

.days-card p,
.days-card span {
  margin: 0;
  color: rgba(255, 248, 251, 0.82);
  font-size: clamp(1rem, 3vw, 1.3rem);
}

.days-card strong {
  color: var(--accent-soft);
  font-size: clamp(5rem, 22vw, 12rem);
  line-height: 0.95;
  text-shadow: 0 0 42px rgba(var(--accent-rgb), 0.58);
}

.hero-copy {
  max-width: 780px;
  margin: 0 auto;
  color: rgba(255, 248, 251, 0.88);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.95;
}

.date-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.6rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.date-row span {
  color: rgba(255, 248, 251, 0.7);
}

.date-row strong {
  color: var(--gold);
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: 2rem;
}

.promise-grid article {
  position: relative;
  overflow: hidden;
  min-height: 13rem;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.promise-grid article::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.58;
  pointer-events: none;
}

.promise-grid article::after {
  position: absolute;
  right: 1rem;
  bottom: 0.7rem;
  color: rgba(255, 255, 255, 0.16);
  font-size: 2.4rem;
  font-weight: 900;
  pointer-events: none;
  animation: cardMarkFloat 4.8s ease-in-out infinite;
}

.promise-grid article:hover {
  transform: translateY(-0.35rem);
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 20px 56px rgba(var(--accent-rgb), 0.14);
}

body[data-theme="rose"] .promise-grid article::before {
  background: radial-gradient(circle at 80% 0%, rgba(255, 120, 167, 0.22), transparent 42%);
}

body[data-theme="rose"] .promise-grid article::after {
  content: "♥";
}

body[data-theme="blue"] .promise-grid article::before {
  background: linear-gradient(135deg, transparent, rgba(119, 200, 255, 0.14)), repeating-radial-gradient(circle at 8% 110%, rgba(217, 240, 255, 0.16) 0 1px, transparent 2px 18px);
}

body[data-theme="blue"] .promise-grid article::after {
  content: "≋";
}

body[data-theme="violet"] .promise-grid article::before {
  background: radial-gradient(circle at 82% 20%, rgba(176, 140, 255, 0.24), transparent 36%), linear-gradient(28deg, transparent 48%, rgba(234, 223, 255, 0.16) 49%, transparent 50%);
}

body[data-theme="violet"] .promise-grid article::after {
  content: "✦";
}

body[data-theme="gold"] .promise-grid article::before {
  background: linear-gradient(100deg, transparent, rgba(255, 200, 117, 0.18), transparent);
  animation: cardShine 5.8s ease-in-out infinite;
}

body[data-theme="gold"] .promise-grid article::after {
  content: "✺";
}

body[data-theme="mint"] .promise-grid article::before {
  background: radial-gradient(ellipse at 90% 10%, rgba(124, 245, 209, 0.2), transparent 46%), linear-gradient(140deg, transparent 48%, rgba(220, 255, 244, 0.16) 49%, transparent 50%);
}

body[data-theme="mint"] .promise-grid article::after {
  content: "◜";
}

.promise-grid span {
  position: relative;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
}

.promise-grid h2 {
  position: relative;
  margin: 1.4rem 0 0.75rem;
  color: var(--accent-soft);
  font-size: 1.35rem;
}

.promise-grid p {
  position: relative;
  margin: 0;
  color: rgba(255, 248, 251, 0.82);
  line-height: 1.8;
}

.particle {
  position: absolute;
  top: -3rem;
  left: var(--x);
  width: var(--size);
  height: calc(var(--size) * 0.72);
  border-radius: var(--particle-radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), var(--petal-color));
  opacity: var(--opacity);
  transform: rotate(var(--rotate));
  animation: fall var(--duration) linear forwards;
}

.particle-rose {
  border-radius: 80% 20% 70% 30%;
  animation-name: fall;
}

.particle-blue {
  top: auto;
  bottom: -3rem;
  height: var(--size);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95), var(--petal-color) 58%, rgba(255, 255, 255, 0.1));
  animation-name: floatUp;
}

.particle-violet {
  height: var(--size);
  clip-path: polygon(50% 0%, 61% 36%, 98% 36%, 68% 57%, 79% 92%, 50% 70%, 21% 92%, 32% 57%, 2% 36%, 39% 36%);
  background: var(--petal-color);
  filter: drop-shadow(0 0 10px var(--petal-color));
  animation-name: starDrift;
}

.particle-gold {
  height: calc(var(--size) * 0.52);
  background: linear-gradient(90deg, var(--petal-color), rgba(255, 255, 255, 0.85));
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.5);
}

.particle-mint {
  height: calc(var(--size) * 0.56);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), var(--petal-color));
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.32);
  animation-name: leafFloat;
}

.particle-heart {
  color: var(--petal-color);
  background: none;
  font-size: var(--size);
  width: auto;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(var(--accent-rgb), 0.5));
}

.particle-heart::before {
  content: "♥";
}

.particle-drop {
  border-radius: 50% 50% 55% 45%;
  transform: rotate(45deg);
}

.particle-constellation {
  width: calc(var(--size) * 0.45);
  height: calc(var(--size) * 0.45);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 1.4rem 0.8rem 0 -1px var(--petal-color);
}

.particle-bubble {
  height: var(--size);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.7), rgba(var(--accent-rgb), 0.15));
  animation-name: floatUp;
}

.particle-firefly {
  height: var(--size);
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.68);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.85);
  animation-name: fireflyFloat;
}

.burst {
  position: fixed;
  left: var(--x);
  top: var(--y);
  z-index: 5;
  width: var(--size);
  height: var(--size);
  border-radius: var(--particle-radius);
  background: var(--petal-color);
  pointer-events: none;
  animation: burstOut 0.9s ease-out forwards;
}

.burst-heart {
  width: auto;
  height: auto;
  color: var(--petal-color);
  background: none;
  font-size: var(--size);
}

.burst-heart::before {
  content: "♥";
}

.love-pop {
  position: fixed;
  left: var(--x);
  top: var(--y);
  z-index: 6;
  color: var(--white);
  font-weight: 800;
  text-shadow: 0 2px 18px rgba(var(--accent-rgb), 0.85);
  pointer-events: none;
  animation: popLove 1.35s ease-out forwards;
  white-space: nowrap;
}

@keyframes twinkle {
  from {
    opacity: 0.42;
    transform: translateY(0);
  }
  to {
    opacity: 0.74;
    transform: translateY(-10px);
  }
}

@keyframes fall {
  to {
    transform: translate3d(var(--drift), calc(100vh + 5rem), 0) rotate(calc(var(--rotate) + 260deg));
  }
}

@keyframes floatUp {
  to {
    transform: translate3d(var(--drift), calc(-100vh - 6rem), 0) scale(1.12);
  }
}

@keyframes starDrift {
  0% {
    filter: drop-shadow(0 0 4px var(--petal-color));
  }
  50% {
    filter: drop-shadow(0 0 16px var(--petal-color));
  }
  100% {
    transform: translate3d(var(--drift), calc(100vh + 5rem), 0) rotate(calc(var(--rotate) + 180deg));
    filter: drop-shadow(0 0 4px var(--petal-color));
  }
}

@keyframes leafFloat {
  50% {
    transform: translate3d(calc(var(--drift) * 0.45), 52vh, 0) rotate(calc(var(--rotate) + 80deg));
  }
  100% {
    transform: translate3d(var(--drift), calc(100vh + 5rem), 0) rotate(calc(var(--rotate) + 190deg));
  }
}

@keyframes fireflyFloat {
  50% {
    transform: translate3d(calc(var(--drift) * 0.35), 45vh, 0) scale(1.35);
  }
  100% {
    transform: translate3d(var(--drift), calc(100vh + 5rem), 0) scale(0.8);
  }
}

@keyframes burstOut {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.7);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--burst-x)), calc(-50% + var(--burst-y))) scale(1.2) rotate(var(--rotate));
  }
}

@keyframes themeShift {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 26px 90px rgba(0, 0, 0, 0.26), 0 0 0 rgba(var(--accent-rgb), 0);
  }
  45% {
    transform: translateY(-8px) scale(1.012);
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.3), 0 0 54px rgba(var(--accent-rgb), 0.34);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes scenePulse {
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes sceneFloat {
  to {
    transform: translate3d(1.4rem, -1.2rem, 0) scale(1.05);
  }
}

@keyframes waveDrift {
  50% {
    transform: translateX(1.8rem) scaleX(1.08);
  }
}

@keyframes orbitSpin {
  to {
    transform: rotate(338deg) scaleY(0.42);
  }
}

@keyframes candleFlicker {
  50% {
    opacity: 1;
    transform: scaleY(1.08);
    box-shadow: 0 -1.4rem 2.8rem rgba(var(--accent-rgb), 0.58);
  }
}

@keyframes leafSway {
  to {
    transform: translate3d(1rem, -0.8rem, 0) rotate(-9deg);
  }
}

@keyframes ripplePulse {
  0% {
    opacity: 0.16;
    transform: scale(0.72);
  }
  70% {
    opacity: 0.42;
  }
  100% {
    opacity: 0;
    transform: scale(1.28);
  }
}

@keyframes constellationBlink {
  50% {
    opacity: 1;
    transform: rotate(16deg) translateY(-0.5rem);
  }
}

@keyframes sparkleTurn {
  to {
    transform: rotate(360deg);
  }
}

@keyframes breezeSlide {
  50% {
    opacity: 0.95;
    transform: translateX(1.6rem) rotate(-5deg);
  }
}

@keyframes cardShine {
  0%,
  100% {
    transform: translateX(-35%);
  }
  50% {
    transform: translateX(35%);
  }
}

@keyframes cardMarkFloat {
  50% {
    transform: translateY(-0.35rem) rotate(5deg);
  }
}

@keyframes popLove {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -150%) scale(1.08);
  }
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 24px, 1120px);
    padding: 2.2rem 0;
  }

  .hero {
    min-height: calc(100vh - 4.4rem);
  }

  .promise-grid {
    grid-template-columns: 1fr;
  }

  .date-row {
    border-radius: 8px;
  }

  .theme-toggle {
    top: 0.75rem;
    right: 0.75rem;
    width: 2.75rem;
    height: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
