:root {
  color-scheme: dark;
  --night: #071126;
  --deep-night: #030713;
  --indigo: #171845;
  --cream: #fff8e8;
  --muted-cream: #e9ddca;
  --gold: #ffd36a;
  --gold-deep: #e3a53a;
  --rose: #ff7897;
  --rose-deep: #d94e75;
  --berry: #c73c68;
  --glass: rgba(11, 18, 46, 0.72);
  --line: rgba(255, 244, 214, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--deep-night);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: clamp(18px, 4vw, 44px);
  display: grid;
  place-items: center;
  overflow-x: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 50% 15%, rgba(82, 72, 165, 0.55) 0, rgba(23, 24, 69, 0.22) 31%, transparent 55%),
    radial-gradient(circle at 15% 75%, rgba(116, 61, 135, 0.19), transparent 27%),
    linear-gradient(160deg, var(--night) 0%, #0a0c26 48%, var(--deep-night) 100%);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
}

body.has-celebration-open {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

.sky {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.scene {
  position: relative;
  z-index: 1;
}

.intro-scene {
  width: 100%;
  min-height: calc(100svh - clamp(36px, 8vw, 88px));
  display: grid;
  place-items: center;
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  transition:
    opacity 520ms ease-in,
    transform 700ms cubic-bezier(0.4, 0, 0.2, 1),
    filter 520ms ease-in;
}

.intro-scene.is-exiting {
  opacity: 0;
  transform: scale(1.06);
  filter: blur(12px);
  pointer-events: none;
}

.celebration-stage {
  position: fixed;
  z-index: 5;
  inset: 0;
  min-width: 320px;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.965);
  background:
    radial-gradient(circle at 50% 46%, rgba(39, 68, 166, 0.28), transparent 31%),
    radial-gradient(circle at 15% 18%, rgba(83, 46, 161, 0.2), transparent 27%),
    radial-gradient(circle at 83% 72%, rgba(15, 124, 180, 0.13), transparent 25%),
    linear-gradient(155deg, #020612 0%, #07102a 48%, #03040c 100%);
  transition: opacity 720ms ease-out, transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.celebration-stage::before,
.celebration-stage::after {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
}

.celebration-stage::before {
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.95) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255,208,92,0.75) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(87,164,255,0.8) 0 1.4px, transparent 2px);
  background-position: 0 0, 55px 31px, 21px 87px;
  background-size: 103px 103px, 149px 149px, 191px 191px;
  opacity: 0.28;
  animation: cosmic-drift 26s ease-in-out infinite alternate;
}

.celebration-stage::after {
  background: conic-gradient(from 25deg at 50% 52%, transparent, rgba(95, 87, 225, 0.08), transparent 28%, rgba(255, 174, 83, 0.06), transparent 62%);
  filter: blur(28px);
  animation: cosmic-rotate 32s linear infinite;
}

.celebration-stage.is-active {
  opacity: 1;
  transform: scale(1);
}

.cosmic-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(30px);
}

.cosmic-glow-one {
  width: min(55vw, 650px);
  aspect-ratio: 1;
  top: 15%;
  left: 50%;
  translate: -50% 0;
  background: rgba(61, 84, 205, 0.09);
}

.cosmic-glow-two {
  width: min(30vw, 360px);
  aspect-ratio: 1;
  right: -6%;
  bottom: -10%;
  background: rgba(255, 85, 143, 0.08);
}

.scene-toolbar {
  position: absolute;
  z-index: 22;
  top: max(18px, env(safe-area-inset-top));
  left: max(18px, env(safe-area-inset-left));
  right: max(18px, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.toolbar-button {
  min-width: 0;
  min-height: 44px;
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: auto;
  border: 1px solid rgba(255, 248, 232, 0.22);
  color: rgba(255, 248, 232, 0.86);
  background: rgba(6, 12, 35, 0.58);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(14px);
}

.toolbar-button svg {
  flex: none;
}

.toolbar-button:hover {
  color: var(--cream);
  border-color: rgba(255, 211, 106, 0.5);
  background: rgba(25, 31, 74, 0.75);
}

.celebration-content {
  position: relative;
  z-index: 2;
  width: min(100%, 960px);
  min-height: 100svh;
  margin-inline: auto;
  padding: max(66px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  place-items: center;
  gap: 2px;
  text-align: center;
}

.celebration-heading {
  position: relative;
  z-index: 3;
}

.cosmic-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: clamp(0.58rem, 1.2vw, 0.72rem);
  font-weight: 800;
  letter-spacing: 0.34em;
}

.celebration-heading h2 {
  margin: 0;
  color: var(--cream);
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  font-size: clamp(2rem, 4.4vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: 0.08em;
  text-shadow:
    0 0 24px rgba(255, 211, 106, 0.24),
    0 8px 36px rgba(0, 0, 0, 0.44);
}

.celebration-heading h2:focus {
  outline: none;
}

.cosmic-subtitle {
  margin: 9px 0 0;
  color: rgba(255, 248, 232, 0.66);
  font-size: clamp(0.78rem, 1.7vw, 0.95rem);
  letter-spacing: 0.12em;
}

.particle-cake-frame {
  position: relative;
  width: min(84vw, 590px, 58vh);
  aspect-ratio: 0.91;
  align-self: center;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.35));
}

#particleCakeCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.orbit-caption {
  position: absolute;
  left: 50%;
  bottom: 5.5%;
  translate: -50% 0;
  width: max-content;
  color: rgba(255, 248, 232, 0.48);
  font-size: clamp(0.5rem, 1.2vw, 0.62rem);
  font-weight: 800;
  letter-spacing: 0.24em;
}

.celebration-wish {
  position: relative;
  z-index: 3;
  margin: 0;
  padding: 10px 20px;
  border: 1px solid rgba(255, 211, 106, 0.14);
  border-radius: 999px;
  color: rgba(255, 248, 232, 0.82);
  background: rgba(5, 9, 27, 0.38);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.2);
  font-size: clamp(0.78rem, 1.6vw, 0.94rem);
  line-height: 1.75;
  backdrop-filter: blur(10px);
}

.sky::before,
.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 211, 106, 0.75) 0 1px, transparent 1.5px);
  background-position: 0 0, 37px 53px;
  background-size: 91px 91px, 137px 137px;
  opacity: 0.28;
}

.sky::after {
  transform: rotate(16deg) scale(1.15);
  opacity: 0.16;
}

.moon-glow {
  position: absolute;
  width: min(46vw, 580px);
  aspect-ratio: 1;
  top: -25%;
  left: 50%;
  translate: -50% 0;
  border-radius: 50%;
  background: rgba(255, 240, 188, 0.09);
  filter: blur(4px);
  box-shadow: 0 0 120px rgba(255, 222, 143, 0.13);
}

.star {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 10px 2px rgba(255, 235, 177, 0.72);
  animation: twinkle 3.5s ease-in-out infinite;
}

.star-one { top: 14%; left: 13%; animation-delay: -0.7s; }
.star-two { top: 23%; right: 11%; animation-delay: -1.9s; }
.star-three { top: 69%; left: 8%; animation-delay: -2.5s; }
.star-four { top: 78%; right: 15%; animation-delay: -1.2s; }
.star-five { top: 43%; right: 5%; animation-delay: -3.1s; }

.shooting-star {
  position: absolute;
  top: 12%;
  right: 18%;
  width: 94px;
  height: 1px;
  opacity: 0;
  rotate: -28deg;
  background: linear-gradient(90deg, transparent, rgba(255, 248, 232, 0.92));
  animation: shooting 9s ease-in-out 2.5s infinite;
}

.shooting-star::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 12px 3px rgba(255, 248, 232, 0.75);
}

.birthday-card {
  position: relative;
  isolation: isolate;
  width: min(92vw, 720px);
  padding: clamp(28px, 5.4vw, 52px) clamp(22px, 6vw, 64px) clamp(24px, 4.7vw, 42px);
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: clamp(26px, 5vw, 42px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), transparent 42%),
    var(--glass);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.birthday-card::before,
.birthday-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(12px);
}

.birthday-card::before {
  width: 210px;
  height: 210px;
  top: -105px;
  right: -70px;
  background: rgba(255, 120, 151, 0.12);
}

.birthday-card::after {
  width: 240px;
  height: 240px;
  bottom: -145px;
  left: -90px;
  background: rgba(108, 95, 218, 0.17);
}

.card-glow {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 47%, rgba(255, 211, 106, 0.08), transparent 32%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: clamp(0.64rem, 1.7vw, 0.76rem);
  font-weight: 700;
  letter-spacing: 0.24em;
}

.eyebrow span {
  padding-inline: 0.4em;
}

h1 {
  margin: 0;
  text-wrap: balance;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  font-size: clamp(2.45rem, 8vw, 4.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  text-shadow: 0 4px 26px rgba(255, 211, 106, 0.16);
}

h1 span {
  color: var(--gold);
}

h1 small {
  display: block;
  margin-top: 0.3em;
  color: var(--cream);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: 0.3em;
  transform: translateX(0.15em);
}

.intro {
  margin: 18px 0 0;
  color: var(--muted-cream);
  font-size: clamp(0.94rem, 2.4vw, 1.08rem);
  letter-spacing: 0.12em;
}

.cake-scene {
  position: relative;
  width: min(100%, 300px);
  height: 185px;
  margin: 14px auto 4px;
  display: grid;
  place-items: end center;
}

.cake-scene::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 235px;
  height: 48px;
  translate: -50% 0;
  border-radius: 50%;
  background: rgba(255, 184, 113, 0.14);
  filter: blur(18px);
}

.cake {
  position: relative;
  width: 190px;
  height: 150px;
  filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.25));
}

.candle {
  position: absolute;
  z-index: 6;
  top: 0;
  left: 50%;
  width: 12px;
  height: 45px;
  translate: -50% 0;
  border-radius: 5px 5px 2px 2px;
  background: repeating-linear-gradient(-45deg, var(--cream) 0 5px, var(--rose) 5px 10px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.wick {
  position: absolute;
  left: 50%;
  top: -5px;
  width: 2px;
  height: 7px;
  translate: -50% 0;
  border-radius: 2px;
  background: #4c342c;
}

.flame {
  position: absolute;
  left: 50%;
  top: -25px;
  width: 17px;
  height: 25px;
  translate: -50% 0;
  transform-origin: 50% 100%;
  border-radius: 58% 42% 56% 44% / 68% 52% 48% 32%;
  background: linear-gradient(#fff8c9 5%, var(--gold) 48%, #ff9e4a 100%);
  box-shadow:
    0 0 13px 4px rgba(255, 199, 75, 0.58),
    0 0 32px 12px rgba(255, 167, 74, 0.18);
  animation: flame-dance 1.2s ease-in-out infinite alternate;
}

.cake-top {
  position: absolute;
  z-index: 5;
  top: 42px;
  left: 12px;
  width: 166px;
  height: 34px;
  border-radius: 50%;
  background: #fff4dd;
  box-shadow: inset 0 -8px 0 #f1d8bd, 0 4px 8px rgba(109, 49, 68, 0.19);
}

.berry {
  position: absolute;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50% 50% 44% 44%;
  background: radial-gradient(circle at 35% 30%, #ff9aaf, var(--berry) 62%, #7f2445);
  box-shadow: 0 2px 4px rgba(83, 24, 43, 0.22);
}

.berry-one { left: 36px; }
.berry-two { left: 76px; top: 12px; }
.berry-three { right: 35px; }

.cake-layer {
  position: absolute;
  left: 12px;
  width: 166px;
  overflow: visible;
}

.cake-layer-top {
  z-index: 4;
  top: 58px;
  height: 43px;
  border-radius: 0 0 17px 17px;
  background: linear-gradient(90deg, #ff8ca7, #ff6f96 50%, #ec5c83);
  box-shadow: inset -12px 0 14px rgba(170, 51, 83, 0.13);
}

.cake-layer-top::after {
  content: "";
  position: absolute;
  inset: 8px 16px auto;
  height: 6px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, rgba(255, 244, 221, 0.75) 0 9px, transparent 9px 16px);
}

.drip {
  position: absolute;
  top: -1px;
  width: 18px;
  border-radius: 0 0 12px 12px;
  background: #fff4dd;
}

.drip-one { left: 24px; height: 16px; }
.drip-two { left: 71px; height: 23px; }
.drip-three { right: 27px; height: 14px; }

.cake-layer-bottom {
  z-index: 3;
  top: 96px;
  height: 41px;
  border-radius: 0 0 21px 21px;
  background: linear-gradient(90deg, #ffd799, #f7bd72 50%, #eaa85f);
  box-shadow: inset -12px 0 14px rgba(145, 78, 36, 0.12);
}

.cake-layer-bottom::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 13px;
  right: 13px;
  height: 9px;
  border-block: 2px dotted rgba(159, 73, 84, 0.58);
}

.cake-plate {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 3px;
  width: 190px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(#edf1ff, #aeb8d5);
  box-shadow: 0 8px 9px rgba(0, 0, 0, 0.19);
}

.spark {
  position: absolute;
  top: 48%;
  color: var(--gold);
  font-size: 18px;
  text-shadow: 0 0 14px rgba(255, 211, 106, 0.75);
  animation: spark-pulse 2.2s ease-in-out infinite;
}

.spark-left { left: 12px; rotate: -15deg; }
.spark-right { right: 14px; rotate: 18deg; animation-delay: -1.1s; }

.wish {
  max-width: 580px;
  margin: 12px auto 22px;
  color: rgba(255, 248, 232, 0.82);
  font-size: clamp(0.92rem, 2.15vw, 1.05rem);
  line-height: 1.9;
  text-wrap: balance;
  transform: translateY(0);
  transition: color 420ms ease, text-shadow 420ms ease, transform 420ms ease;
}

.birthday-card.is-celebrating {
  border-color: rgba(255, 211, 106, 0.44);
  box-shadow:
    0 32px 100px rgba(0, 0, 0, 0.5),
    0 0 55px rgba(255, 193, 97, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
  animation: card-celebrate 1.1s ease-out both;
}

.birthday-card.is-celebrating .wish,
.wish.is-visible {
  color: var(--cream);
  text-shadow: 0 0 18px rgba(255, 211, 106, 0.22);
  transform: translateY(-3px);
}

.birthday-card.is-celebrating .flame {
  box-shadow:
    0 0 16px 6px rgba(255, 199, 75, 0.72),
    0 0 48px 18px rgba(255, 167, 74, 0.26);
  animation-duration: 0.68s;
}

.birthday-card.is-celebrating .spark {
  animation-duration: 1.1s;
}

.birthday-card.is-celebrating .celebrate-button {
  background: linear-gradient(135deg, #fff7d7, #ffd36a 52%, #ffac78);
}

.celebration-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
}

[hidden] {
  display: none !important;
}

button {
  position: relative;
  min-width: 210px;
  min-height: 50px;
  padding: 13px 24px;
  cursor: pointer;
  border: 1px solid rgba(255, 246, 213, 0.44);
  border-radius: 999px;
  color: #3b2440;
  background: linear-gradient(135deg, #fff0b7, var(--gold) 52%, #ffc86d);
  box-shadow:
    0 10px 28px rgba(227, 165, 58, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  font-weight: 800;
  letter-spacing: 0.08em;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

button span {
  display: inline-block;
  margin-inline: 0.25em;
  font-size: 0.78em;
}

button:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    0 14px 35px rgba(227, 165, 58, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

button:active {
  transform: translateY(1px) scale(0.99);
}

button:focus-visible,
.home-link:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 4px;
}

.music-toggle[aria-pressed="true"] {
  border-color: rgba(255, 211, 106, 0.58);
  color: var(--gold);
  background: rgba(255, 211, 106, 0.11);
  box-shadow: 0 0 24px rgba(255, 211, 106, 0.09);
}

.music-toggle:hover {
  background: rgba(25, 31, 74, 0.75);
}

.signature {
  margin: 21px 0 0;
  color: rgba(255, 248, 232, 0.42);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.24em;
}

#celebrationCanvas {
  position: fixed;
  z-index: 10;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.not-found-card {
  max-width: 560px;
}

.not-found-code {
  margin: 0;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: clamp(4.4rem, 18vw, 8rem);
  line-height: 0.9;
}

.not-found-card h1 {
  margin-top: 18px;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-size: clamp(1.7rem, 6vw, 2.5rem);
  line-height: 1.25;
}

.not-found-card .intro {
  margin-bottom: 30px;
  line-height: 1.8;
}

.home-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border: 1px solid rgba(255, 246, 213, 0.42);
  border-radius: 999px;
  color: #3b2440;
  background: linear-gradient(135deg, #fff0b7, var(--gold));
  font-weight: 800;
  text-decoration: none;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.22; scale: 0.72; }
  50% { opacity: 1; scale: 1.2; }
}

@keyframes shooting {
  0%, 74%, 100% { opacity: 0; transform: translate3d(0, 0, 0); }
  78% { opacity: 1; }
  86% { opacity: 0; transform: translate3d(-250px, 130px, 0); }
}

@keyframes flame-dance {
  0% { transform: rotate(-3deg) scaleY(0.96); }
  100% { transform: rotate(4deg) scaleY(1.05); }
}

@keyframes spark-pulse {
  0%, 100% { opacity: 0.34; scale: 0.75; }
  50% { opacity: 1; scale: 1.1; }
}

@keyframes card-celebrate {
  0% { transform: scale(1); }
  42% { transform: scale(1.015); }
  100% { transform: scale(1); }
}

@keyframes cosmic-drift {
  0% { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  100% { transform: translate3d(1.5%, 1%, 0) scale(1.04); }
}

@keyframes cosmic-rotate {
  to { transform: rotate(360deg); }
}

@media (max-width: 560px) {
  body {
    padding: 14px;
  }

  .birthday-card {
    width: min(94vw, 420px);
    padding: 27px 18px 24px;
    border-radius: 28px;
  }

  .eyebrow {
    letter-spacing: 0.16em;
  }

  h1 {
    font-size: clamp(2.35rem, 13.5vw, 3.45rem);
  }

  .cake-scene {
    height: 175px;
    margin-top: 10px;
    scale: 0.94;
  }

  .wish {
    margin-top: 5px;
    margin-bottom: 19px;
    line-height: 1.75;
  }

  .celebrate-button {
    width: min(100%, 270px);
  }

  .scene-toolbar {
    top: max(12px, env(safe-area-inset-top));
    left: 12px;
    right: 12px;
  }

  .toolbar-button {
    min-height: 42px;
    padding: 8px 12px;
    font-size: 0.74rem;
  }

  .celebration-content {
    padding: 66px 12px 18px;
    gap: 0;
  }

  .cosmic-kicker {
    margin-bottom: 5px;
    letter-spacing: 0.22em;
  }

  .celebration-heading h2 {
    font-size: clamp(1.85rem, 8.4vw, 2.45rem);
  }

  .cosmic-subtitle {
    max-width: 330px;
    margin-top: 7px;
    line-height: 1.65;
  }

  .particle-cake-frame {
    width: min(94vw, 52vh);
  }

  .celebration-wish {
    width: min(94vw, 430px);
    padding: 8px 13px;
    border-radius: 22px;
    line-height: 1.65;
  }
}

@media (max-height: 760px) and (min-width: 561px) {
  body {
    padding-block: 14px;
  }

  .birthday-card {
    padding-block: 25px 22px;
  }

  .cake-scene {
    height: 165px;
    scale: 0.9;
    margin-block: 2px -2px;
  }

  .wish {
    margin-block: 4px 14px;
  }
}

@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;
  }

  .shooting-star {
    display: none;
  }

  .birthday-card.is-celebrating,
  .birthday-card.is-celebrating .flame,
  .birthday-card.is-celebrating .spark {
    animation: none !important;
  }

  .birthday-card.is-celebrating .wish,
  .wish.is-visible {
    transform: none;
  }

  .intro-scene,
  .celebration-stage {
    transition: none !important;
  }

  .celebration-stage::before,
  .celebration-stage::after {
    animation: none !important;
  }
}
