:root {
  --ink: #17345a;
  --ink-soft: #38506f;
  --paper: #fffaf0;
  --paper-deep: #f6ead6;
  --mist: #eef5f4;
  --dawn: #fff7ea;
  --apricot: #e9ad62;
  --apricot-deep: #bd7944;
  --jade: #5f8778;
  --jade-soft: #dce9e2;
  --night: #123252;
  --line: rgba(23, 52, 90, 0.18);
  --shadow: 0 26px 70px rgba(49, 71, 92, 0.17);
  --soft-shadow: 0 18px 44px rgba(49, 71, 92, 0.11);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 31rem),
    linear-gradient(180deg, #fffaf2 0%, #eef5f4 43%, #fff8ec 72%, #112f4d 100%);
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(23, 52, 90, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 52, 90, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, black, transparent 62%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

#light-canvas {
  position: fixed;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

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

.petal {
  position: absolute;
  top: -42px;
  width: var(--petal-size);
  height: calc(var(--petal-size) * 0.54);
  border-radius: 70% 30% 70% 30%;
  opacity: var(--petal-opacity);
  background:
    radial-gradient(circle at 32% 35%, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0) 42%),
    linear-gradient(135deg, #f7b7a5, #e88475 72%);
  box-shadow: 0 3px 12px rgba(232, 132, 117, 0.14);
  animation: petal-fall var(--petal-duration) linear var(--petal-delay) infinite;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: min(calc(100% - 48px), var(--max));
  margin: 22px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.68);
  box-shadow: 0 14px 38px rgba(36, 56, 78, 0.1);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
}

.brand-mark span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(95, 135, 120, 0.42);
  border-radius: 8px;
  color: var(--jade);
  background: rgba(255, 255, 255, 0.6);
  font-weight: 700;
}

.brand-mark strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 3vw, 46px);
  font-size: 16px;
  line-height: 1;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  color: rgba(23, 52, 90, 0.84);
}

.site-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--jade), var(--apricot));
  transition: transform 220ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

main {
  position: relative;
  z-index: 1;
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(430px, 1.08fr);
  align-items: center;
  min-height: 100svh;
  padding: 118px max(28px, calc((100vw - var(--max)) / 2)) 88px;
  overflow: hidden;
}

.hero-section::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 250, 242, 0.96) 0%, rgba(255, 250, 242, 0.78) 38%, rgba(255, 250, 242, 0) 68%),
    radial-gradient(circle at 62% 48%, rgba(255, 221, 155, 0.25), rgba(255, 221, 155, 0) 33rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.hero-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(64px, 8.6vw, 132px);
  font-weight: 700;
  line-height: 0.99;
  letter-spacing: 0;
}

.hero-copy h1::after {
  display: block;
  width: 185px;
  height: 2px;
  margin: 30px 0 0 2px;
  content: "";
  background: linear-gradient(90deg, var(--apricot), rgba(95, 135, 120, 0.18));
}

.hero-copy p {
  max-width: 560px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: clamp(19px, 1.7vw, 25px);
  line-height: 1.9;
}

.sound-strip {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding: 8px 10px 8px 8px;
  border: 1px solid rgba(95, 135, 120, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 12px 28px rgba(49, 71, 92, 0.08);
  backdrop-filter: blur(12px);
}

.music-toggle,
.music-dock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(95, 135, 120, 0.42);
  border-radius: 8px;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(255, 250, 242, 0.92), rgba(220, 233, 226, 0.78));
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease,
    border-color 220ms ease;
}

.music-toggle {
  min-height: 44px;
  padding: 0 16px 0 12px;
  font-size: 16px;
}

.music-toggle:hover,
.music-toggle:focus-visible,
.music-toggle[aria-pressed="true"],
.music-dock:hover,
.music-dock:focus-visible,
.music-dock[aria-pressed="true"] {
  border-color: rgba(233, 173, 98, 0.62);
  background: linear-gradient(135deg, rgba(255, 244, 218, 0.95), rgba(220, 233, 226, 0.86));
  box-shadow: 0 15px 32px rgba(189, 121, 68, 0.17);
  transform: translateY(-2px);
}

.music-glyph,
.dock-disc {
  position: relative;
  display: inline-block;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(189, 121, 68, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.85) 0 15%, transparent 16%),
    conic-gradient(from 30deg, rgba(233, 173, 98, 0.82), rgba(95, 135, 120, 0.64), rgba(233, 173, 98, 0.82));
}

.music-glyph::before,
.dock-disc::before {
  position: absolute;
  right: -6px;
  top: -7px;
  content: "♪";
  color: var(--apricot-deep);
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1;
}

.music-toggle[aria-pressed="true"] .music-glyph,
.music-dock[aria-pressed="true"] .dock-disc {
  animation: music-spin 4s linear infinite;
}

.music-bars {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
}

.music-bars span {
  display: block;
  width: 4px;
  height: 11px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--apricot), var(--jade));
  opacity: 0.62;
  transform-origin: bottom;
}

body.music-on .music-bars span {
  animation: music-bar 840ms ease-in-out infinite;
}

.music-bars span:nth-child(2) {
  height: 19px;
  animation-delay: -210ms;
}

.music-bars span:nth-child(3) {
  height: 15px;
  animation-delay: -420ms;
}

.music-bars span:nth-child(4) {
  height: 23px;
  animation-delay: -120ms;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 48px;
}

.primary-action,
.secondary-action,
.input-row button {
  position: relative;
  min-height: 58px;
  padding: 0 36px;
  border-radius: 8px;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.primary-action {
  border: 1px solid rgba(189, 121, 68, 0.48);
  color: #614228;
  background:
    linear-gradient(135deg, rgba(255, 245, 217, 0.98), rgba(236, 181, 101, 0.72)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0));
  box-shadow: 0 18px 35px rgba(189, 121, 68, 0.2);
}

.secondary-action {
  border: 1px solid rgba(95, 135, 120, 0.44);
  color: var(--jade);
  background: rgba(255, 255, 255, 0.54);
}

.primary-action::after,
.secondary-action::after,
.input-row button::after {
  display: inline-block;
  width: 28px;
  height: 20px;
  margin-left: 16px;
  content: "";
  background:
    radial-gradient(ellipse at 54% 47%, currentColor 0 10%, transparent 11%),
    linear-gradient(40deg, transparent 0 42%, currentColor 43% 47%, transparent 48%),
    linear-gradient(143deg, transparent 0 42%, currentColor 43% 47%, transparent 48%);
  opacity: 0.48;
  transform: translateY(3px);
}

.primary-action:hover,
.secondary-action:hover,
.primary-action:focus-visible,
.secondary-action:focus-visible,
.input-row button:hover,
.input-row button:focus-visible {
  transform: translateY(-3px);
}

.hero-visual {
  position: relative;
  min-height: min(72vw, 680px);
  margin-right: min(-7vw, -56px);
  border-radius: 8px 0 0 8px;
}

.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  box-shadow: var(--shadow);
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 250, 242, 0.75), rgba(255, 250, 242, 0.02) 34%),
    linear-gradient(180deg, rgba(255, 250, 242, 0), rgba(255, 250, 242, 0.48));
}

.floating-note {
  position: absolute;
  z-index: 2;
  display: grid;
  min-width: 166px;
  padding: 24px 22px;
  border: 1px solid rgba(152, 122, 83, 0.24);
  border-radius: 6px;
  color: rgba(48, 58, 70, 0.78);
  background:
    linear-gradient(135deg, rgba(255, 253, 245, 0.94), rgba(245, 233, 212, 0.86)),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(99, 78, 56, 0.04) 23px);
  box-shadow: 0 16px 32px rgba(72, 72, 60, 0.16);
  font-size: 17px;
  line-height: 1.75;
  text-align: center;
  transform-origin: top center;
  animation: note-sway 5.8s ease-in-out infinite;
}

.floating-note::before {
  position: absolute;
  top: -38px;
  left: 50%;
  width: 1px;
  height: 38px;
  content: "";
  background: rgba(99, 78, 56, 0.22);
}

.floating-note::after {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(95, 135, 120, 0.48);
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
  background: rgba(255, 250, 242, 0.86);
}

.note-one {
  top: 21%;
  right: 22%;
  transform: rotate(4deg);
}

.note-two {
  right: 43%;
  bottom: 27%;
  animation-delay: -1.8s;
  transform: rotate(-8deg);
}

.note-three {
  right: 9%;
  bottom: 20%;
  animation-delay: -3.2s;
  transform: rotate(6deg);
}

.next-preview {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  height: 76px;
  place-items: center;
  border-top: 1px solid rgba(23, 52, 90, 0.08);
  color: rgba(23, 52, 90, 0.82);
  background:
    linear-gradient(90deg, rgba(220, 233, 226, 0.52), rgba(255, 250, 240, 0.92), rgba(220, 233, 226, 0.52)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='48' viewBox='0 0 120 48'%3E%3Cpath d='M5 40c25-26 52-26 78 0' fill='none' stroke='%235f8778' stroke-opacity='.16'/%3E%3Cpath d='M78 38c8-13 20-19 36-18' fill='none' stroke='%23bd7944' stroke-opacity='.12'/%3E%3C/svg%3E");
  font-size: 26px;
}

.wind-section,
.garden-section,
.stars-section,
.closing-section {
  position: relative;
  padding: 96px max(24px, calc((100vw - var(--max)) / 2));
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 58px;
  text-align: center;
}

.section-heading h2,
.stars-copy h2,
.closing-inner h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(45px, 6.2vw, 86px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

.section-heading h2::after,
.stars-copy h2::after {
  display: block;
  width: 140px;
  height: 1px;
  margin: 20px auto 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(189, 121, 68, 0.58), transparent);
}

.section-heading p,
.stars-copy p,
.closing-inner p {
  margin: 20px auto 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.85;
}

.wind-section {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(238, 245, 244, 0.88), rgba(255, 250, 242, 0.9)),
    radial-gradient(circle at 10% 18%, rgba(95, 135, 120, 0.15), transparent 25rem);
}

.wind-section::before {
  position: absolute;
  top: 156px;
  left: max(24px, calc((100vw - var(--max)) / 2));
  right: max(24px, calc((100vw - var(--max)) / 2));
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(120, 88, 54, 0.36), transparent);
}

.wish-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  max-width: var(--max);
  margin: 0 auto;
}

.wish-note {
  position: relative;
  min-height: 270px;
  padding: 52px 24px 28px;
  border: 1px solid rgba(152, 122, 83, 0.24);
  border-radius: 6px;
  outline: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.97), rgba(246, 234, 214, 0.9)),
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(99, 78, 56, 0.035) 26px);
  box-shadow: var(--soft-shadow);
  transform-origin: top center;
  transition:
    transform 240ms ease,
    box-shadow 240ms ease,
    border-color 240ms ease;
}

.wish-note::before {
  position: absolute;
  top: -55px;
  left: 50%;
  width: 1px;
  height: 56px;
  content: "";
  background: rgba(120, 88, 54, 0.28);
}

.wish-note::after {
  position: absolute;
  top: -11px;
  left: 50%;
  width: 21px;
  height: 21px;
  border: 2px solid rgba(189, 121, 68, 0.48);
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
  background: var(--paper);
  box-shadow: 0 5px 13px rgba(189, 121, 68, 0.18);
}

.wish-note:nth-child(2) {
  transform: translateY(16px) rotate(1.5deg);
}

.wish-note:nth-child(3) {
  transform: translateY(4px) rotate(-1deg);
}

.wish-note:nth-child(4) {
  transform: translateY(22px) rotate(1deg);
}

.wish-note:hover,
.wish-note:focus-visible,
.wish-note.active {
  border-color: rgba(233, 173, 98, 0.64);
  box-shadow: 0 22px 58px rgba(189, 121, 68, 0.2);
  transform: translateY(-12px) rotate(-0.5deg);
}

.wish-note p {
  margin: 0;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.9;
  text-align: center;
}

.garden-section {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.95), rgba(232, 243, 241, 0.88)),
    radial-gradient(circle at 52% 78%, rgba(95, 135, 120, 0.18), transparent 30rem);
}

.garden-section::before {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(81, 128, 128, 0.22)),
    url("data:image/svg+xml,%3Csvg width='320' height='150' viewBox='0 0 320 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 100 C72 30 132 136 202 72 S285 94 320 50 V150 H0Z' fill='%235f8778' fill-opacity='.11'/%3E%3Cpath d='M0 116 C70 56 141 146 220 92 S285 116 320 74 V150 H0Z' fill='%2317345a' fill-opacity='.05'/%3E%3C/svg%3E");
  background-size: cover, 420px auto;
}

.garden-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px;
  max-width: 930px;
  margin: 0 auto 48px;
  align-items: end;
}

.flower-control {
  display: grid;
  gap: 18px;
  justify-items: center;
  min-height: 270px;
  padding: 0 12px 20px;
  border: 0;
  color: var(--ink);
  background: transparent;
  transition: transform 240ms ease;
}

.flower-control:hover,
.flower-control:focus-visible,
.flower-control.selected {
  transform: translateY(-8px);
  outline: 0;
}

.flower-control > span:last-child {
  display: grid;
  min-width: 76px;
  min-height: 92px;
  place-items: center;
  padding: 14px 14px;
  border: 1px solid rgba(95, 135, 120, 0.42);
  border-radius: 8px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(250, 245, 230, 0.96), rgba(226, 236, 224, 0.94));
  box-shadow: 0 13px 25px rgba(45, 74, 68, 0.12);
  font-size: 22px;
  writing-mode: vertical-rl;
  letter-spacing: 0;
}

.flower {
  position: relative;
  display: block;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #f7c56f 0 9%, transparent 10%),
    conic-gradient(from 8deg, #fffaf0 0 12%, #f4c0ad 12% 22%, #fffaf0 22% 35%, #f4c0ad 35% 48%, #fffaf0 48% 61%, #f4c0ad 61% 74%, #fffaf0 74% 87%, #f4c0ad 87% 100%);
  filter: drop-shadow(0 18px 24px rgba(113, 124, 95, 0.16));
  transform: scale(0.88);
  transition:
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 420ms ease;
}

.flower::before {
  position: absolute;
  left: 50%;
  top: 64%;
  width: 2px;
  height: 96px;
  content: "";
  transform: translateX(-50%);
  background: linear-gradient(var(--jade), rgba(95, 135, 120, 0));
}

.flower::after {
  position: absolute;
  left: 50%;
  bottom: -78px;
  width: 102px;
  height: 42px;
  border: 1px solid rgba(95, 135, 120, 0.1);
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(95, 135, 120, 0.18), transparent 70%);
}

.bloom-two {
  background:
    radial-gradient(circle at 50% 50%, #e5b66c 0 9%, transparent 10%),
    conic-gradient(from -12deg, #fbf7e7 0 13%, #f8d789 13% 24%, #fbf7e7 24% 37%, #f8d789 37% 50%, #fbf7e7 50% 63%, #f8d789 63% 76%, #fbf7e7 76% 88%, #f8d789 88% 100%);
}

.bloom-three {
  background:
    radial-gradient(circle at 50% 50%, #f4bd77 0 9%, transparent 10%),
    conic-gradient(from 20deg, #fffaf0 0 13%, #dce9e2 13% 24%, #fffaf0 24% 38%, #dce9e2 38% 51%, #fffaf0 51% 64%, #dce9e2 64% 77%, #fffaf0 77% 89%, #dce9e2 89% 100%);
}

.flower-control.selected .flower,
.flower-control:hover .flower,
.flower-control:focus-visible .flower {
  transform: scale(1.04) rotate(8deg);
  filter: drop-shadow(0 24px 28px rgba(233, 173, 98, 0.26));
}

.blessing-form,
.blessing-output {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}

.blessing-form label {
  display: block;
  margin: 0 0 12px;
  color: var(--jade);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 9px;
  border: 1px solid rgba(95, 135, 120, 0.24);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.78);
  box-shadow: var(--soft-shadow);
}

.input-row input {
  min-width: 0;
  height: 58px;
  border: 0;
  outline: 0;
  padding: 0 18px;
  color: var(--ink);
  background: transparent;
  font-size: 20px;
}

.input-row input::placeholder {
  color: rgba(56, 80, 111, 0.46);
}

.input-row button {
  min-height: 58px;
  border: 1px solid rgba(95, 135, 120, 0.46);
  color: #244a43;
  background: linear-gradient(135deg, rgba(220, 233, 226, 0.96), rgba(255, 250, 242, 0.8));
}

.blessing-output {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  padding: 19px 22px;
  border: 1px solid rgba(189, 121, 68, 0.18);
  border-radius: 8px;
  color: var(--ink-soft);
  background: rgba(255, 250, 242, 0.58);
}

.blessing-output span {
  display: grid;
  min-width: 72px;
  min-height: 48px;
  place-items: center;
  border: 1px solid rgba(189, 121, 68, 0.24);
  border-radius: 8px;
  color: var(--apricot-deep);
  background: rgba(255, 244, 219, 0.76);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
}

.blessing-output p {
  margin: 0;
  font-size: 20px;
  line-height: 1.7;
}

.stars-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 54px;
  align-items: center;
  overflow: hidden;
  color: #f9ecd5;
  background:
    radial-gradient(circle at 77% 18%, rgba(251, 213, 135, 0.22), transparent 22rem),
    linear-gradient(135deg, #f7ead7 0%, #f4e4ca 28%, #19395b 28.5%, #0f2d4b 100%);
}

.stars-copy h2 {
  color: var(--ink);
}

.stars-copy p {
  color: var(--ink-soft);
}

.constellation {
  position: relative;
  min-height: 490px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 62% 24%, rgba(255, 248, 214, 0.2), transparent 10rem),
    radial-gradient(circle at 30% 58%, rgba(255, 255, 255, 0.12), transparent 12rem),
    linear-gradient(145deg, rgba(20, 55, 88, 0.8), rgba(9, 32, 57, 0.92));
  box-shadow: 0 30px 70px rgba(8, 29, 52, 0.25);
  overflow: hidden;
}

.constellation::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.48;
  background-image:
    radial-gradient(circle, rgba(255, 247, 206, 0.9) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 255, 255, 0.68) 0 1px, transparent 1.4px);
  background-position:
    12px 16px,
    84px 62px;
  background-size:
    86px 76px,
    118px 92px;
}

.constellation svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  min-height: 420px;
}

.orbit {
  fill: none;
  stroke: rgba(255, 231, 168, 0.28);
  stroke-width: 1.4;
}

.orbit-two {
  stroke-dasharray: 7 10;
}

.star-line {
  fill: none;
  stroke: rgba(255, 232, 174, 0.8);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 9 11;
  animation: star-dash 8s linear infinite;
}

.star-node {
  color: #ffe9aa;
  cursor: pointer;
  outline: 0;
}

.star-node circle {
  fill: currentColor;
  stroke: rgba(255, 252, 232, 0.86);
  stroke-width: 3;
  filter: drop-shadow(0 0 12px rgba(255, 213, 109, 0.8));
  transition: transform 240ms ease, fill 240ms ease;
}

.star-node text {
  fill: #fff8dc;
  font-size: 27px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  text-anchor: middle;
  letter-spacing: 0;
  pointer-events: none;
}

.star-node:hover circle,
.star-node.active circle {
  fill: #fff4c3;
  transform: scale(1.28);
}

.star-message {
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 2;
  max-width: 360px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 236, 185, 0.3);
  border-radius: 8px;
  background: rgba(10, 31, 55, 0.46);
  backdrop-filter: blur(12px);
}

.star-message span {
  display: block;
  color: #ffe4a1;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.star-message p {
  margin: 8px 0 0;
  color: rgba(255, 250, 228, 0.92);
  font-size: 19px;
  line-height: 1.65;
}

.closing-section {
  min-height: 470px;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.9), rgba(255, 238, 209, 0.84)),
    radial-gradient(circle at 50% 0%, rgba(233, 173, 98, 0.18), transparent 28rem);
}

.closing-inner {
  max-width: 930px;
}

.closing-inner h2 {
  font-size: clamp(40px, 5.4vw, 74px);
}

.closing-inner p {
  max-width: 720px;
}

.site-footer {
  display: grid;
  min-height: 88px;
  place-items: center;
  color: #f6e4c9;
  background: #112f4d;
  font-size: 18px;
  letter-spacing: 0;
}

.music-dock {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 29;
  min-height: 52px;
  padding: 0 16px 0 12px;
  color: #244a43;
  background: rgba(255, 250, 242, 0.82);
  box-shadow: 0 16px 40px rgba(49, 71, 92, 0.16);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

body.dock-ready .music-dock {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  z-index: 30;
  max-width: min(560px, calc(100% - 36px));
  padding: 15px 20px;
  border: 1px solid rgba(233, 173, 98, 0.34);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 250, 242, 0.88);
  box-shadow: 0 18px 40px rgba(49, 71, 92, 0.16);
  backdrop-filter: blur(14px);
  font-size: 17px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes petal-fall {
  0% {
    transform: translate3d(0, -50px, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(var(--petal-drift), 50vh, 0) rotate(190deg);
  }
  100% {
    transform: translate3d(calc(var(--petal-drift) * -0.25), 105vh, 0) rotate(360deg);
  }
}

@keyframes note-sway {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 10px;
  }
}

@keyframes star-dash {
  to {
    stroke-dashoffset: -160;
  }
}

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

@keyframes music-bar {
  0%,
  100% {
    transform: scaleY(0.58);
  }
  50% {
    transform: scaleY(1.18);
  }
}

@media (max-width: 1020px) {
  .site-header {
    width: min(calc(100% - 28px), var(--max));
    gap: 16px;
  }

  .brand-mark strong {
    display: none;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 112px;
  }

  .hero-visual {
    min-height: 480px;
    margin: 54px -28px 0 0;
  }

  .wish-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 56px;
  }

  .stars-section {
    grid-template-columns: 1fr;
    background:
      linear-gradient(180deg, #f7ead7 0%, #f4e4ca 34%, #17375a 34.5%, #0f2d4b 100%);
  }

  .stars-copy {
    text-align: center;
  }
}

@media (max-width: 700px) {
  .site-header {
    align-items: center;
    padding: 10px;
  }

  .brand-mark {
    display: none;
  }

  .site-nav {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .hero-section,
  .wind-section,
  .garden-section,
  .stars-section,
  .closing-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-copy h1 {
    font-size: clamp(45px, 13vw, 58px);
    line-height: 1.04;
  }

  .hero-copy p {
    font-size: 18px;
  }

  .sound-strip {
    width: 100%;
    justify-content: space-between;
  }

  .hero-actions {
    gap: 12px;
    margin-top: 34px;
  }

  .primary-action,
  .secondary-action,
  .input-row button {
    width: 100%;
    min-height: 54px;
    padding: 0 22px;
    font-size: 18px;
  }

  .primary-action::after,
  .secondary-action::after,
  .input-row button::after {
    width: 19px;
    height: 15px;
    margin-left: 10px;
  }

  .hero-visual {
    min-height: 360px;
    margin: 36px -18px 0;
    border-radius: 0;
  }

  .hero-visual img {
    object-position: 61% center;
    border-radius: 0;
  }

  .floating-note {
    min-width: 136px;
    padding: 16px 14px;
    font-size: 13px;
  }

  .note-one {
    top: 15%;
    right: 8%;
  }

  .note-two {
    left: 7%;
    right: auto;
    bottom: 18%;
  }

  .note-three {
    display: none;
  }

  .wish-line {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .wind-section::before {
    top: 170px;
  }

  .wish-note,
  .wish-note:nth-child(n) {
    min-height: 210px;
    transform: none;
  }

  .garden-stage {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 380px;
  }

  .flower-control {
    min-height: 190px;
  }

  .flower {
    width: 116px;
    height: 116px;
  }

  .flower::before {
    height: 68px;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  .input-row input {
    height: 54px;
    font-size: 17px;
  }

  .blessing-output {
    align-items: flex-start;
    flex-direction: column;
  }

  .constellation {
    min-height: 392px;
    margin: 0 -18px;
    border-radius: 0;
  }

  .constellation svg {
    min-width: 0;
    min-height: 330px;
    transform: none;
  }

  .star-node text {
    font-size: 24px;
  }

  .star-message {
    left: 18px;
    right: 18px;
    bottom: 18px;
    max-width: none;
  }

  .music-dock {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    min-height: 48px;
    padding: 0 13px 0 10px;
    font-size: 15px;
  }

  .toast {
    bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .closing-inner h2 {
    font-size: clamp(34px, 10vw, 52px);
  }
}

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

  #light-canvas,
  .petal-layer {
    display: none;
  }
}
