:root {
  --ink: #29162f;
  --cream: #fff8e7;
  --paper: #fffdf6;
  --coral: #ff6d68;
  --rose: #ec4f7f;
  --gold: #ffc85d;
  --mint: #82d8bd;
  --plum: #3d2149;
  --night: #160e28;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--night);
}

body {
  margin: 0;
  color: var(--cream);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
}

button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.birthday-world {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 54% 44%, rgba(132, 74, 148, 0.28), transparent 30%),
    linear-gradient(135deg, #110b20 0%, #271131 52%, #180c25 100%);
}

.birthday-world::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
}

.aurora {
  position: absolute;
  z-index: -2;
  width: 42vw;
  height: 42vw;
  min-width: 420px;
  min-height: 420px;
  border-radius: 50%;
  opacity: 0.24;
  filter: blur(85px);
  pointer-events: none;
}

.aurora-one {
  top: -22vw;
  left: -12vw;
  background: #ee536f;
}

.aurora-two {
  right: -16vw;
  bottom: -22vw;
  background: #5cd4d0;
}

.sky-star {
  position: absolute;
  z-index: -1;
  left: var(--left);
  top: var(--top);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #fff4bf;
  box-shadow: 0 0 14px 3px rgba(255, 238, 170, 0.48);
  animation: twinkle 2.8s var(--delay) ease-in-out infinite;
}

.scene {
  width: min(1180px, calc(100% - 48px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 30px 0 24px;
  display: flex;
  flex-direction: column;
}

.topbar,
.footer-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cosmic-stamp {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: rgba(255, 248, 231, 0.74);
}

.stamp-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(255, 109, 104, 0.14);
}

.date-chip {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 7px 10px 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 248, 231, 0.72);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.date-chip strong {
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--gold);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: 44px;
  align-items: center;
  padding: 44px 0 30px;
}

.copy-column {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: clamp(14px, 1.4vw, 17px);
  letter-spacing: 0.13em;
  color: rgba(255, 248, 231, 0.72);
}

.eyebrow span {
  display: inline-block;
  margin-right: 12px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 4px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  vertical-align: 2px;
}

h1 {
  position: relative;
  display: inline-block;
  margin: 0;
  color: var(--cream);
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(64px, 7.8vw, 112px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.07em;
  text-shadow: 0 10px 36px rgba(0, 0, 0, 0.22);
}

h1::after {
  content: "";
  position: absolute;
  left: 4%;
  right: -5%;
  bottom: -11px;
  height: 13px;
  border-radius: 50%;
  border-top: 4px solid var(--coral);
  transform: rotate(-1.2deg);
}

.title-spark {
  position: absolute;
  top: -22px;
  right: -40px;
  color: var(--gold);
  font-family: sans-serif;
  font-size: 29px;
  animation: spin-spark 6s linear infinite;
}

.happy-line {
  margin: 31px 0 18px;
  color: var(--gold);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 900;
  letter-spacing: 0.4em;
}

.intro {
  margin: 0;
  color: rgba(255, 248, 231, 0.76);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.9;
}

.wish-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 25px;
}

.wish-tags span {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 248, 231, 0.84);
  background: rgba(255, 255, 255, 0.055);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
}

.action-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 29px;
}

.wish-button {
  position: relative;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 54px;
  padding: 13px 24px;
  border: 0;
  border-radius: 15px;
  color: var(--ink);
  background: linear-gradient(135deg, #ffd875, #ffb64e);
  box-shadow:
    0 11px 0 #b86235,
    0 19px 34px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.03em;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.wish-button:hover:not(:disabled) {
  transform: translateY(-3px) rotate(-0.6deg);
  filter: brightness(1.06);
  box-shadow:
    0 14px 0 #b86235,
    0 22px 38px rgba(0, 0, 0, 0.28);
}

.wish-button:active:not(:disabled) {
  transform: translateY(7px);
  box-shadow:
    0 4px 0 #b86235,
    0 10px 20px rgba(0, 0, 0, 0.22);
}

.wish-button:disabled {
  cursor: default;
}

.button-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: var(--cream);
  background: var(--rose);
}

.button-hint {
  max-width: 120px;
  color: rgba(255, 248, 231, 0.5);
  font-size: 11px;
  line-height: 1.45;
}

.magic-column {
  position: relative;
  display: grid;
  min-height: 510px;
  place-items: center;
}

.orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.orbit-one {
  width: 470px;
  height: 355px;
  animation: orbit-breathe 5s ease-in-out infinite;
}

.orbit-two {
  width: 375px;
  height: 465px;
  border-style: dashed;
  opacity: 0.48;
  transform: rotate(34deg);
  animation: reverse-spin 30s linear infinite;
}

.orbit-one span {
  position: absolute;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--cream);
  background: var(--plum);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.orbit-one span:nth-child(1) {
  top: 3%;
  left: 18%;
}

.orbit-one span:nth-child(2) {
  top: 68%;
  right: -1%;
}

.orbit-one span:nth-child(3) {
  bottom: -2%;
  left: 26%;
}

.cake-stage {
  position: relative;
  width: 330px;
  height: 350px;
  margin-top: 32px;
  animation: float-cake 4.5s ease-in-out infinite;
}

.halo {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: rgba(255, 198, 94, 0.12);
  box-shadow:
    0 0 0 32px rgba(255, 198, 94, 0.05),
    0 0 80px rgba(255, 166, 102, 0.24);
  transform: translate(-50%, -50%);
}

.candle {
  position: absolute;
  z-index: 5;
  top: 38px;
  width: 14px;
  height: 78px;
  border: 2px solid #742947;
  border-radius: 5px 5px 2px 2px;
  background: repeating-linear-gradient(
    135deg,
    #fff0be 0 9px,
    #f05b7a 9px 16px
  );
  transform-origin: bottom;
}

.candle-left {
  left: 95px;
  transform: rotate(-6deg);
}

.candle-middle {
  left: 158px;
  top: 25px;
}

.candle-right {
  right: 94px;
  transform: rotate(6deg);
}

.flame {
  position: absolute;
  left: 50%;
  top: -29px;
  width: 15px;
  height: 25px;
  border-radius: 50% 50% 48% 48%;
  background: linear-gradient(#fff7a3, #ff8c36 64%, #ff6173);
  filter: drop-shadow(0 0 9px rgba(255, 199, 76, 0.9));
  transform: translateX(-50%) rotate(4deg);
  transform-origin: 50% 100%;
  animation: flame-dance 0.85s ease-in-out infinite alternate;
}

.is-celebrating .flame {
  animation: flame-out 0.5s ease forwards;
}

.cake-top,
.cake-body,
.cake-plate {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.cake-top {
  z-index: 4;
  top: 102px;
  width: 276px;
  height: 69px;
  border: 3px solid #681f44;
  border-radius: 50%;
  background: #ffe9ad;
  box-shadow: inset 0 -13px 0 #f7b56c;
}

.cream {
  position: absolute;
  bottom: -29px;
  width: 42px;
  height: 44px;
  border-radius: 0 0 22px 22px;
  background: #ffe9ad;
}

.cream-one {
  left: 36px;
}

.cream-two {
  left: 114px;
  height: 58px;
}

.cream-three {
  right: 35px;
  height: 35px;
}

.cherry {
  position: absolute;
  z-index: 2;
  top: 11px;
  width: 21px;
  height: 21px;
  border: 3px solid #681f44;
  border-radius: 50%;
  background: var(--coral);
}

.cherry::before {
  content: "";
  position: absolute;
  left: 9px;
  bottom: 14px;
  width: 11px;
  height: 18px;
  border-left: 2px solid #477e65;
  border-radius: 50%;
  transform: rotate(25deg);
}

.cherry-one {
  left: 58px;
}

.cherry-two {
  right: 57px;
}

.cake-body {
  z-index: 3;
  top: 137px;
  width: 272px;
  height: 142px;
  overflow: hidden;
  border: 3px solid #681f44;
  border-top: 0;
  border-radius: 4px 4px 46px 46px;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2) 0 4px, transparent 5px),
    linear-gradient(160deg, #f87586, #dc477b);
  box-shadow: inset -20px -20px 0 rgba(130, 25, 88, 0.15);
}

.cake-body::before,
.cake-body::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  border: 2px solid rgba(255, 246, 207, 0.2);
  border-radius: 50%;
}

.cake-body::before {
  top: 46px;
  left: -60px;
}

.cake-body::after {
  right: -50px;
  bottom: 37px;
}

.cake-lettering {
  position: absolute;
  left: 50%;
  top: 42px;
  color: #fff2bf;
  font-size: 29px;
  font-weight: 1000;
  letter-spacing: 0.16em;
  transform: translateX(-47%);
  text-shadow: 0 3px 0 rgba(89, 22, 67, 0.24);
}

.cake-smile {
  position: absolute;
  left: 50%;
  top: 68px;
  color: #76234d;
  font-family: serif;
  font-size: 31px;
  font-weight: 900;
  transform: translateX(-50%);
}

.cake-plate {
  z-index: 2;
  top: 274px;
  width: 320px;
  height: 46px;
  border: 3px solid #681f44;
  border-radius: 50%;
  background: #bce7d7;
  box-shadow:
    inset 0 -11px 0 #72bca9,
    0 23px 28px rgba(0, 0, 0, 0.25);
}

.mini-card {
  position: absolute;
  z-index: 6;
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 11px 14px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 6px 7px 0 rgba(18, 9, 29, 0.6);
  animation: card-bob 3s ease-in-out infinite;
}

.mini-card > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--rose);
  font-size: 18px;
  font-weight: 900;
}

.mini-card small,
.mini-card strong {
  display: block;
}

.mini-card small {
  margin-bottom: 2px;
  color: #8f7e8c;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.mini-card strong {
  font-size: 12px;
}

.card-health {
  top: 80px;
  right: -5px;
  transform: rotate(5deg);
}

.card-lucky {
  left: -8px;
  bottom: 65px;
  transform: rotate(-6deg);
  animation-delay: 0.7s;
}

.card-lucky > span {
  background: #228b79;
}

.footer-note {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 248, 231, 0.47);
  font-size: 11px;
}

.footer-note span {
  color: var(--coral);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.footer-note p {
  flex: 1;
  margin: 0 12px;
  letter-spacing: 0.08em;
}

.footer-note i {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 24px;
  font-style: normal;
}

.music-toggle {
  position: fixed;
  z-index: 18;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 248, 231, 0.8);
  background: rgba(28, 14, 39, 0.76);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  transition: transform 180ms ease, background 180ms ease;
}

.music-toggle:hover {
  transform: translateY(-2px);
  background: rgba(56, 28, 68, 0.9);
}

.music-toggle > span:first-child {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--gold);
  font-size: 15px;
}

.music-toggle.is-playing > span:first-child {
  animation: music-pulse 1.4s ease-in-out infinite;
}

.envelope-screen {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, rgba(239, 88, 121, 0.19), transparent 28%),
    #140b21;
  transition: opacity 0.9s ease, visibility 0.9s;
}

.envelope-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(#fff4bf 1px, transparent 1px);
  background-size: 38px 38px;
}

.envelope-screen.is-open {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.envelope-glow {
  position: absolute;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: rgba(255, 183, 84, 0.13);
  box-shadow: 0 0 110px rgba(239, 88, 121, 0.22);
  animation: envelope-glow 2.4s ease-in-out infinite;
}

.envelope {
  position: relative;
  z-index: 2;
  width: min(360px, calc(100vw - 52px));
  aspect-ratio: 1.5;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: none;
  cursor: pointer;
  filter: drop-shadow(0 28px 30px rgba(0, 0, 0, 0.34));
  transition: transform 250ms ease;
}

.envelope:hover {
  transform: translateY(-8px) rotate(-1deg);
}

.envelope-back,
.envelope-front,
.envelope-flap,
.letter-preview {
  position: absolute;
}

.envelope-back {
  inset: 0;
  border: 3px solid #71304d;
  border-radius: 8px;
  background: #e9787d;
}

.letter-preview {
  z-index: 1;
  left: 8%;
  right: 8%;
  top: 8%;
  height: 73%;
  padding-top: 29px;
  border-radius: 6px;
  background:
    linear-gradient(rgba(225, 88, 100, 0.1) 1px, transparent 1px),
    #fff8e8;
  background-size: 100% 21px;
  box-shadow: 0 5px 20px rgba(44, 16, 40, 0.2);
  transform: translateY(-19px);
  transition: transform 300ms ease;
}

.envelope:hover .letter-preview {
  transform: translateY(-31px);
}

.letter-preview small,
.letter-preview strong {
  display: block;
}

.letter-preview small {
  margin-bottom: 7px;
  color: #8b5a68;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.letter-preview strong {
  font-family: "Songti SC", serif;
  font-size: 25px;
}

.envelope-front {
  z-index: 3;
  inset: 0;
  overflow: hidden;
  border: 3px solid #71304d;
  border-radius: 8px;
  background:
    linear-gradient(32deg, #fa9b89 0 49%, transparent 50%),
    linear-gradient(-32deg, #f38d86 0 49%, transparent 50%);
  clip-path: polygon(0 31%, 50% 72%, 100% 31%, 100% 100%, 0 100%);
}

.envelope-flap {
  z-index: 2;
  inset: 0;
  border: 3px solid #71304d;
  border-radius: 8px;
  background: #ffad92;
  clip-path: polygon(0 0, 100% 0, 50% 67%);
}

.wax-seal {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 57%;
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border: 2px solid #7e2544;
  border-radius: 50% 45% 48% 44%;
  color: #fff2ca;
  background: #c83e60;
  box-shadow:
    inset 0 0 0 5px #d85570,
    0 5px 7px rgba(58, 18, 44, 0.3);
  font-family: "Songti SC", serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.12em;
  transform: translate(-50%, -50%) rotate(-4deg);
}

.envelope-screen > p {
  z-index: 2;
  margin: 39px 0 7px;
  color: var(--cream);
  font-family: "Songti SC", serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.open-tip {
  z-index: 2;
  color: rgba(255, 248, 231, 0.45);
  font-size: 11px;
  letter-spacing: 0.11em;
}

.confetti-layer {
  position: fixed;
  z-index: 20;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti-layer i {
  position: absolute;
  left: var(--x);
  top: -30px;
  width: 10px;
  height: 19px;
  border-radius: 2px;
  opacity: 0;
  background: var(--color);
  transform: rotate(var(--rotate));
}

.is-celebrating .confetti-layer i {
  animation: confetti-fall var(--duration) var(--delay) ease-in infinite;
}

.wish-note {
  position: fixed;
  z-index: 25;
  left: 50%;
  bottom: 28px;
  width: min(470px, calc(100vw - 30px));
  padding: 25px 52px 24px 28px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  color: var(--ink);
  background: var(--paper);
  box-shadow:
    9px 10px 0 var(--coral),
    0 24px 70px rgba(0, 0, 0, 0.38);
  opacity: 0;
  transform: translate(-50%, 150%) rotate(-2deg);
  transition: opacity 0.45s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.wish-note.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) rotate(-2deg);
  pointer-events: auto;
}

.wish-note button {
  position: absolute;
  top: 10px;
  right: 13px;
  display: grid;
  width: 31px;
  height: 31px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: #f5e9d3;
  cursor: pointer;
  font-size: 20px;
}

.wish-note p {
  margin: 0 0 5px;
  color: #775d6c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.wish-note strong,
.wish-note small {
  display: block;
}

.wish-note strong {
  margin-bottom: 7px;
  font-family: "Songti SC", serif;
  font-size: clamp(23px, 4vw, 32px);
}

.wish-note small {
  color: #765a69;
  font-size: 12px;
}

.note-star {
  position: absolute;
  top: -24px;
  left: -20px;
  color: var(--gold);
  font-size: 46px;
  text-shadow: 3px 4px 0 var(--ink);
  animation: spin-spark 5s linear infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.28;
    transform: scale(0.7);
  }
  50% {
    opacity: 1;
    transform: scale(1.35);
  }
}

@keyframes spin-spark {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit-breathe {
  0%,
  100% {
    transform: rotate(-12deg) scale(1);
  }
  50% {
    transform: rotate(-9deg) scale(1.035);
  }
}

@keyframes reverse-spin {
  to {
    transform: rotate(-326deg);
  }
}

@keyframes float-cake {
  0%,
  100% {
    transform: translateY(0) rotate(-0.6deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.8deg);
  }
}

@keyframes flame-dance {
  from {
    transform: translateX(-50%) rotate(-7deg) scale(0.9, 1);
  }
  to {
    transform: translateX(-50%) rotate(7deg) scale(1.06, 0.92);
  }
}

@keyframes flame-out {
  0% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-14px) scale(0.1);
  }
}

@keyframes card-bob {
  0%,
  100% {
    margin-top: 0;
  }
  50% {
    margin-top: -8px;
  }
}

@keyframes envelope-glow {
  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes music-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 200, 93, 0);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(255, 200, 93, 0.16);
    transform: scale(1.08);
  }
}

@keyframes confetti-fall {
  0% {
    opacity: 0;
    transform: translateY(-5vh) rotate(var(--rotate));
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0.9;
    transform: translate3d(32px, 110vh, 0) rotate(540deg);
  }
}

@media (max-width: 920px) {
  .birthday-world {
    min-height: auto;
    overflow-y: auto;
  }

  .scene {
    min-height: 100svh;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 58px;
    text-align: center;
  }

  .intro br {
    display: none;
  }

  .wish-tags,
  .action-row {
    justify-content: center;
  }

  .magic-column {
    min-height: 470px;
    transform: scale(0.94);
  }

  .footer-note {
    margin-top: 15px;
  }
}

@media (max-width: 560px) {
  .scene {
    width: min(100% - 30px, 480px);
    padding: 20px 0;
  }

  .cosmic-stamp {
    font-size: 9px;
    letter-spacing: 0.07em;
  }

  .date-chip {
    padding-left: 9px;
  }

  .date-chip > span {
    display: none;
  }

  .hero-grid {
    padding-top: 48px;
  }

  h1 {
    font-size: clamp(56px, 18vw, 78px);
  }

  .title-spark {
    right: -25px;
  }

  .happy-line {
    font-size: 22px;
    letter-spacing: 0.28em;
  }

  .action-row {
    flex-direction: column;
  }

  .button-hint {
    max-width: none;
  }

  .magic-column {
    min-height: 410px;
    margin: -22px -35px 0;
    transform: scale(0.8);
  }

  .footer-note p {
    text-align: left;
    line-height: 1.5;
  }

  .card-health {
    right: 6px;
  }

  .card-lucky {
    left: 7px;
  }

  .wish-note {
    bottom: 18px;
  }

  .music-toggle {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-height: 760px) and (min-width: 921px) {
  .scene {
    padding-top: 20px;
  }

  .hero-grid {
    padding: 18px 0 14px;
  }

  h1 {
    font-size: 78px;
  }

  .happy-line {
    margin-top: 26px;
  }

  .wish-tags {
    margin-top: 18px;
  }

  .action-row {
    margin-top: 21px;
  }

  .magic-column {
    min-height: 450px;
    transform: scale(0.9);
  }
}

@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;
  }
}
