:root {
  --cream: #fff9f3;
  --paper: #f8eee6;
  --paper-deep: #eadfd8;
  --white: #fffdfb;
  --ink: #382f35;
  --ink-soft: #665b62;
  --night: #292b49;
  --night-deep: #191a31;
  --moon: #d2a85f;
  --moon-light: #f0d9a5;
  --moon-text: #7a5a35;
  --lavender: #746391;
  --lavender-soft: #e9e2f2;
  --rose: #bd7181;
  --rose-soft: #f4dfe3;
  --rose-text: #9b4961;
  --cocoa: #6d5045;
  --line: rgba(56, 47, 53, 0.13);
  --line-strong: rgba(56, 47, 53, 0.24);
  --shadow-sm: 0 8px 24px rgba(56, 47, 53, 0.08);
  --shadow: 0 18px 50px rgba(56, 47, 53, 0.12);
  --shadow-night: 0 22px 60px rgba(11, 12, 29, 0.28);
  --radius: 24px;
  --radius-sm: 14px;
  --pill: 999px;
  --display: "Cormorant Garamond", "Noto Serif JP", "Yu Mincho",
    "Hiragino Mincho ProN", Georgia, serif;
  --body: "Nunito", "Noto Sans JP", "Yu Gothic", "Hiragino Sans",
    system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body[data-lang="jp"] {
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Sans", var(--body);
}

[data-i18n][hidden] {
  display: none !important;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
summary {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 3px;
}

.wish-section :focus-visible {
  outline-color: var(--moon-light);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: -80px;
  left: 18px;
  padding: 10px 18px;
  border-radius: var(--pill);
  background: var(--night-deep);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  transition: top 180ms ease;
}

.skip-link:focus {
  top: 14px;
}

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 112px 0;
}

.birthday-nav {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 10px max(24px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(56, 47, 53, 0.1);
  background: rgba(255, 249, 243, 0.9);
  box-shadow: 0 6px 24px rgba(56, 47, 53, 0.04);
  backdrop-filter: blur(16px);
}

.birthday-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.birthday-nav__brand small {
  font-family: var(--body);
  font-size: 14px;
}

.birthday-nav__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-switch {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.6);
}

.lang-switch button {
  min-width: 44px;
  min-height: 34px;
  padding: 5px 11px;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.lang-switch button:hover {
  color: var(--ink);
}

.lang-switch button.is-on {
  background: var(--night);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(41, 43, 73, 0.2);
}

.home-link {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
  text-decoration-color: rgba(102, 91, 98, 0.45);
  text-underline-offset: 4px;
}

.home-link:hover {
  color: var(--night);
  text-decoration-thickness: 2px;
}

.birthday-hero {
  position: relative;
  isolation: isolate;
  min-height: min(850px, calc(100svh - 72px));
  overflow: hidden;
  background:
    radial-gradient(circle at 83% 18%, rgba(240, 217, 165, 0.53), transparent 20%),
    radial-gradient(circle at 73% 80%, rgba(233, 226, 242, 0.78), transparent 28%),
    linear-gradient(145deg, #fffaf5 4%, #f8eee8 52%, #ece5f1 100%);
}

.birthday-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -280px;
  right: -180px;
  width: 710px;
  aspect-ratio: 1;
  border: 1px solid rgba(133, 118, 167, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 85px rgba(255, 255, 255, 0.12),
    0 0 0 170px rgba(255, 255, 255, 0.08);
}

.birthday-hero::after {
  content: "08";
  position: absolute;
  z-index: -1;
  right: -0.04em;
  bottom: -0.32em;
  color: rgba(255, 255, 255, 0.34);
  font-family: var(--display);
  font-size: clamp(220px, 34vw, 520px);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.birthday-sky {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.8;
  pointer-events: none;
}

.birthday-sky::before,
.birthday-sky::after,
.birthday-sky span {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--moon);
  box-shadow:
    9vw 10vh 0 -1px rgba(133, 118, 167, 0.65),
    22vw 27vh 0 -1px rgba(210, 168, 95, 0.6),
    37vw 12vh 0 -1.5px rgba(133, 118, 167, 0.55),
    55vw 36vh 0 -1px rgba(189, 113, 129, 0.42),
    71vw 12vh 0 -1.5px rgba(210, 168, 95, 0.7),
    88vw 32vh 0 -1px rgba(133, 118, 167, 0.5),
    95vw 70vh 0 -1.5px rgba(210, 168, 95, 0.56),
    16vw 73vh 0 -1.5px rgba(133, 118, 167, 0.42);
}

.birthday-sky::before {
  top: 9%;
  left: 8%;
}

.birthday-sky::after {
  top: 48%;
  left: 2%;
  transform: scale(0.72);
}

.birthday-sky span:nth-child(1) {
  top: 20%;
  left: 30%;
  transform: scale(0.52);
}

.birthday-sky span:nth-child(2) {
  top: 66%;
  left: 45%;
  transform: scale(0.42);
}

.birthday-sky span:nth-child(3) {
  top: 34%;
  left: 76%;
  transform: scale(0.34);
}

.birthday-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.82fr);
  align-items: center;
  gap: clamp(54px, 7vw, 100px);
  width: min(1120px, calc(100% - 48px));
  min-height: inherit;
  margin-inline: auto;
  padding: 72px 0 86px;
}

.birthday-hero__copy {
  position: relative;
  z-index: 2;
  max-width: 660px;
}

.birthday-eyebrow {
  margin: 0 0 17px;
  color: var(--lavender);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}

.birthday-date {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 8px;
  color: var(--moon-text);
  font-family: var(--display);
  font-size: clamp(42px, 5vw, 66px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
}

.birthday-date span {
  color: var(--rose-text);
  font-size: 0.55em;
}

.birthday-hero h1,
.section-heading h2,
.wish-section h2 {
  font-family: var(--display);
  text-wrap: balance;
}

.birthday-hero h1 {
  font-family: "Cormorant Critical", var(--display);
  max-width: 720px;
  margin: 0;
  color: var(--night-deep);
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.96;
}

body[data-lang="jp"] .birthday-hero h1,
body[data-lang="zh"] .birthday-hero h1 {
  font-size: clamp(42px, 5.8vw, 72px);
  line-height: 1.14;
}

.birthday-hero__lead {
  max-width: 625px;
  margin: 27px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.8;
}

.birthday-hero__from {
  margin: 17px 0 0;
  color: var(--cocoa);
  font-size: 13px;
  font-weight: 800;
}

.birthday-countdown {
  max-width: 540px;
  margin-top: 31px;
  padding: 19px 22px 20px;
  border: 1px solid rgba(133, 118, 167, 0.19);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 251, 0.65);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.birthday-countdown__state {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.birthday-countdown__units {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.birthday-countdown__units > span {
  position: relative;
  display: grid;
  gap: 1px;
}

.birthday-countdown__units > span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 7px;
  right: -6px;
  width: 1px;
  height: 37px;
  background: var(--line);
}

.birthday-countdown strong {
  color: var(--night);
  font-family: var(--display);
  font-size: 32px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.birthday-countdown small {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.birthday-countdown.is-celebrating,
.birthday-countdown.is-keepsake {
  padding-block: 24px;
  border-color: rgba(210, 168, 95, 0.35);
  background: rgba(255, 253, 251, 0.78);
}

.birthday-countdown.is-celebrating .birthday-countdown__state,
.birthday-countdown.is-keepsake .birthday-countdown__state {
  margin: 0;
  color: var(--night);
  font-family: var(--display);
  font-size: 23px;
  letter-spacing: 0.01em;
}

.birthday-countdown.is-celebrating .birthday-countdown__units,
.birthday-countdown.is-keepsake .birthday-countdown__units {
  display: none;
}

.birthday-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  margin-top: 26px;
  padding: 11px 21px;
  border: 1px solid var(--night);
  border-radius: var(--pill);
  background: var(--night);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(41, 43, 73, 0.18);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 220ms var(--ease), box-shadow 220ms ease,
    background 220ms ease;
}

.birthday-cta:hover {
  transform: translateY(-2px);
  background: var(--night-deep);
  box-shadow: 0 14px 30px rgba(41, 43, 73, 0.25);
}

.birthday-cta span {
  color: var(--moon-light);
  font-size: 18px;
}

.birthday-orbit {
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 1;
  margin-inline: auto;
}

.birthday-orbit::before,
.birthday-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.birthday-orbit::before {
  inset: 10%;
  background:
    radial-gradient(circle at 36% 26%, rgba(255, 255, 255, 0.78), transparent 33%),
    rgba(255, 255, 255, 0.21);
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.32);
}

.birthday-orbit::after {
  inset: 28%;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.birthday-orbit__ring {
  position: absolute;
  inset: 8%;
  border: 1px dashed rgba(133, 118, 167, 0.37);
  border-radius: 50%;
}

.birthday-orbit__ring::before {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(210, 168, 95, 0.22);
  border-radius: inherit;
}

.birthday-orbit__moon {
  position: absolute;
  z-index: 1;
  top: 9%;
  right: 11%;
  width: 64px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--moon-light);
  box-shadow: 0 0 28px rgba(210, 168, 95, 0.32);
}

.birthday-orbit__moon::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 20px;
  width: 60px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #eee6f1;
}

.birthday-orbit__portrait {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 46%;
  aspect-ratio: 1;
  padding: 9px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.56);
  box-shadow:
    0 24px 48px rgba(65, 55, 82, 0.2),
    0 0 0 9px rgba(255, 255, 255, 0.16);
}

.birthday-orbit__portrait img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.birthday-orbit__portrait span {
  position: absolute;
  right: -9px;
  bottom: 14px;
  padding: 6px 11px;
  border: 1px solid rgba(210, 168, 95, 0.35);
  border-radius: var(--pill);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: 15px;
}

.orbit-star {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 54px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(133, 118, 167, 0.24);
  border-radius: 50%;
  background: rgba(255, 253, 251, 0.82);
  box-shadow: 0 7px 20px rgba(56, 47, 53, 0.1);
  color: var(--lavender);
  text-decoration: none;
  transition: transform 220ms var(--ease), color 220ms ease,
    background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.orbit-star::before {
  content: "✦";
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--moon);
  font-size: 18px;
  line-height: 1;
  text-shadow: 0 0 12px rgba(210, 168, 95, 0.3);
  transition: transform 220ms var(--ease), text-shadow 220ms ease;
}

.orbit-star:hover,
.orbit-star.is-lit {
  transform: translate(-50%, -50%) scale(1.08);
  border-color: rgba(210, 168, 95, 0.6);
  background: var(--night);
  box-shadow: 0 9px 24px rgba(41, 43, 73, 0.22);
  color: var(--moon-light);
}

.orbit-star:hover::before,
.orbit-star.is-lit::before {
  transform: translateX(-50%) scale(1.2);
  text-shadow: 0 0 16px rgba(210, 168, 95, 0.82);
}

.orbit-star__number {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.orbit-star--1 { top: 7%; left: 50%; }
.orbit-star--2 { top: 19%; left: 81%; }
.orbit-star--3 { top: 50%; left: 93%; }
.orbit-star--4 { top: 81%; left: 81%; }
.orbit-star--5 { top: 93%; left: 50%; }
.orbit-star--6 { top: 81%; left: 19%; }
.orbit-star--7 { top: 50%; left: 7%; }
.orbit-star--8 { top: 19%; left: 19%; }

.section-heading {
  max-width: 580px;
}

.section-heading h2,
.wish-section h2 {
  margin: 0;
  color: var(--night-deep);
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

body[data-lang="jp"] .section-heading h2,
body[data-lang="zh"] .section-heading h2,
body[data-lang="jp"] .wish-section h2,
body[data-lang="zh"] .wish-section h2 {
  font-size: clamp(34px, 4.3vw, 52px);
  line-height: 1.25;
}

.section-heading > p:last-child {
  margin: 21px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.section-heading--center {
  margin: 0 auto 52px;
  text-align: center;
}

.birthday-word {
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 49.95%, rgba(56, 47, 53, 0.055) 50%, transparent 50.05%),
    var(--cream);
}

.birthday-word::before {
  content: "ことば";
  position: absolute;
  top: 30px;
  left: -28px;
  color: rgba(133, 118, 167, 0.055);
  font-family: var(--display);
  font-size: clamp(100px, 18vw, 245px);
  font-weight: 700;
  line-height: 1;
  writing-mode: vertical-rl;
  pointer-events: none;
}

.birthday-word__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1fr);
  align-items: center;
  gap: clamp(55px, 9vw, 120px);
}

.word-card {
  position: relative;
  min-height: 420px;
  padding: 65px 60px 51px;
  overflow: hidden;
  border: 1px solid rgba(56, 47, 53, 0.11);
  border-radius: 3px 34px 3px 34px;
  background:
    linear-gradient(rgba(255, 253, 251, 0.91), rgba(255, 253, 251, 0.91)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(133, 118, 167, 0.12) 31px 32px);
  box-shadow: var(--shadow);
  text-align: center;
}

.word-card::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(210, 168, 95, 0.25);
  border-radius: 2px 25px 2px 25px;
  pointer-events: none;
}

.word-card__moon {
  position: absolute;
  top: 27px;
  right: 34px;
  color: var(--moon);
  font-family: var(--display);
  font-size: 29px;
}

.word-card__word {
  margin: 0;
  color: var(--night-deep);
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(46px, 6vw, 68px);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.35;
}

.word-card__word ruby + ruby {
  margin-left: 0.15em;
}

.word-card__word rt {
  color: var(--lavender);
  font-family: var(--body);
  font-size: 0.18em;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.word-card__romaji {
  margin: 3px 0 0;
  color: var(--lavender);
  font-family: var(--display);
  font-size: 19px;
  font-style: italic;
  letter-spacing: 0.08em;
}

.word-card__meaning {
  margin: 17px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.word-card__example {
  display: grid;
  gap: 3px;
  margin-top: 27px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.word-card__example strong {
  color: var(--cocoa);
  font-size: 17px;
}

.word-card__example span {
  color: var(--ink-soft);
  font-size: 13px;
}

.thanks-section {
  overflow: hidden;
  border-block: 1px solid rgba(56, 47, 53, 0.07);
  background:
    radial-gradient(circle at 15% 9%, rgba(233, 226, 242, 0.6), transparent 23%),
    radial-gradient(circle at 88% 88%, rgba(244, 223, 227, 0.6), transparent 24%),
    var(--paper);
}

.thanks-section::after {
  content: "8";
  position: absolute;
  top: -0.2em;
  right: -0.03em;
  color: rgba(255, 255, 255, 0.38);
  font-family: var(--display);
  font-size: min(66vw, 740px);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.thanks-section .wrap {
  position: relative;
  z-index: 1;
}

.thanks-progress {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: -24px 0 36px;
}

.thanks-progress span {
  width: 8px;
  aspect-ratio: 1;
  border: 1px solid rgba(133, 118, 167, 0.5);
  border-radius: 50%;
  background: transparent;
  transition: transform 240ms var(--ease), background 240ms ease,
    box-shadow 240ms ease;
}

.thanks-progress span.is-lit {
  transform: scale(1.2);
  border-color: var(--moon);
  background: var(--moon);
  box-shadow: 0 0 12px rgba(210, 168, 95, 0.56);
}

.thanks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.thank-card {
  --accent: var(--lavender);
  position: relative;
  min-height: 275px;
  padding: 32px 34px 34px;
  overflow: hidden;
  border: 1px solid rgba(56, 47, 53, 0.11);
  border-radius: var(--radius);
  background: rgba(255, 253, 251, 0.88);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 108px;
  transition: transform 260ms var(--ease), box-shadow 260ms ease,
    border-color 260ms ease;
}

.thank-card:nth-child(2),
.thank-card:nth-child(5),
.thank-card:nth-child(8) {
  --accent: var(--rose);
}

.thank-card:nth-child(3),
.thank-card:nth-child(6) {
  --accent: var(--moon);
}

.thank-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--accent);
  opacity: 0.72;
}

.thank-card::after {
  content: "✦";
  position: absolute;
  right: 19px;
  bottom: 5px;
  color: var(--accent);
  font-size: 68px;
  line-height: 1;
  opacity: 0.075;
}

.thank-card:target,
.thank-card.is-seen {
  border-color: color-mix(in srgb, var(--accent) 44%, transparent);
}

.thank-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 44%, transparent);
  box-shadow: var(--shadow);
}

.thank-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.thank-card__number {
  color: var(--accent);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.thank-card__glyph {
  display: grid;
  place-items: center;
  width: 44px;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 9%, white);
  color: var(--accent);
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: 18px;
  font-weight: 600;
}

.thank-card h3 {
  max-width: 455px;
  margin: 0;
  color: var(--night-deep);
  font-family: var(--display);
  font-size: 30px;
  line-height: 1.15;
}

body[data-lang="jp"] .thank-card h3,
body[data-lang="zh"] .thank-card h3 {
  font-size: 24px;
  line-height: 1.45;
}

.thank-card p {
  position: relative;
  z-index: 1;
  max-width: 490px;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.birthday-interlude {
  padding-block: 105px;
  background: var(--cream);
}

.birthday-interlude blockquote {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 70px;
  text-align: center;
}

.birthday-interlude__mark {
  position: absolute;
  top: -41px;
  left: 10px;
  color: var(--lavender-soft);
  font-family: var(--display);
  font-size: 150px;
  line-height: 1;
}

.birthday-interlude blockquote p {
  position: relative;
  margin: 0;
  color: var(--night);
  font-family: var(--display);
  font-size: clamp(29px, 4vw, 43px);
  font-weight: 600;
  line-height: 1.35;
  text-wrap: balance;
}

body[data-lang="jp"] .birthday-interlude blockquote p,
body[data-lang="zh"] .birthday-interlude blockquote p {
  font-size: clamp(24px, 3.3vw, 35px);
  line-height: 1.6;
}

.birthday-interlude blockquote footer {
  margin-top: 26px;
  color: var(--lavender);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.wish-section {
  isolation: isolate;
  min-height: 620px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -8%, rgba(133, 118, 167, 0.34), transparent 38%),
    radial-gradient(circle at 88% 86%, rgba(210, 168, 95, 0.11), transparent 30%),
    linear-gradient(145deg, var(--night) 0%, var(--night-deep) 72%);
  color: var(--white);
}

.wish-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 16%;
  left: 50%;
  width: min(770px, 86vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border: 1px solid rgba(240, 217, 165, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 80px rgba(255, 255, 255, 0.018),
    0 0 0 160px rgba(255, 255, 255, 0.012);
}

.wish-section__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.wish-section .birthday-eyebrow {
  color: var(--moon-light);
}

.wish-section h2 {
  color: var(--white);
}

.wish-stars span {
  position: absolute;
  z-index: -1;
  color: var(--moon-light);
  opacity: 0.35;
}

.wish-stars span:nth-child(1) { top: 16%; left: 8%; font-size: 17px; }
.wish-stars span:nth-child(2) { top: 34%; left: 21%; font-size: 10px; }
.wish-stars span:nth-child(3) { top: 65%; left: 11%; font-size: 12px; }
.wish-stars span:nth-child(4) { top: 78%; left: 31%; font-size: 9px; }
.wish-stars span:nth-child(5) { top: 13%; right: 11%; font-size: 10px; }
.wish-stars span:nth-child(6) { top: 39%; right: 22%; font-size: 16px; }
.wish-stars span:nth-child(7) { top: 68%; right: 9%; font-size: 9px; }
.wish-stars span:nth-child(8) { top: 83%; right: 30%; font-size: 13px; }

.birthday-wish {
  width: min(770px, 100%);
  margin-top: 44px;
}

.birthday-wish summary {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 54px;
  padding: 12px 25px;
  border: 1px solid rgba(240, 217, 165, 0.55);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.07);
  color: var(--moon-light);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  list-style: none;
  transition: color 220ms ease, background 220ms ease, transform 220ms var(--ease);
}

.birthday-wish summary::-webkit-details-marker {
  display: none;
}

.birthday-wish summary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.birthday-wish summary span {
  transition: transform 500ms var(--ease), text-shadow 500ms ease;
}

.birthday-wish[open] summary span {
  transform: rotate(180deg) scale(1.35);
  text-shadow: 0 0 16px var(--moon);
}

.birthday-wish__letter {
  margin-top: 34px;
  padding: 37px clamp(24px, 6vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow-night);
  backdrop-filter: blur(8px);
}

.birthday-wish__letter p {
  margin: 0;
  color: rgba(255, 253, 251, 0.91);
  font-family: var(--display);
  font-size: clamp(21px, 2.8vw, 28px);
  line-height: 1.65;
  text-wrap: pretty;
}

body[data-lang="jp"] .birthday-wish__letter p,
body[data-lang="zh"] .birthday-wish__letter p {
  font-family: var(--body);
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 2;
}

.birthday-wish__letter strong {
  display: block;
  margin-top: 25px;
  color: var(--moon-light);
  font-size: 13px;
}

.birthday-footer {
  padding: 42px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #121326;
  color: rgba(255, 253, 251, 0.78);
}

.birthday-footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 21px 40px;
}

.birthday-footer strong {
  color: var(--white);
  font-family: var(--display);
  font-size: 22px;
}

.birthday-footer p {
  margin: 4px 0 0;
  font-size: 12px;
}

.birthday-footer a {
  color: var(--moon-light);
  font-size: 13px;
  font-weight: 800;
  text-underline-offset: 4px;
}

.birthday-footer a:hover {
  color: var(--white);
}

.birthday-footer small {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 253, 251, 0.59);
  font-size: 11px;
}

@media (prefers-reduced-motion: no-preference) {
  .birthday-sky::before,
  .birthday-sky::after {
    animation: birthday-twinkle 5s ease-in-out infinite alternate;
  }

  .birthday-sky::after {
    animation-delay: -2.5s;
  }

  .birthday-orbit__ring {
    animation: orbit-turn 54s linear infinite;
  }

  .birthday-orbit__portrait {
    animation: portrait-float 6s ease-in-out infinite;
  }

  .wish-stars span {
    animation: birthday-twinkle 3.5s ease-in-out infinite alternate;
  }

  .wish-stars span:nth-child(even) {
    animation-delay: -1.8s;
  }

  .birthday-wish[open] .birthday-wish__letter {
    animation: letter-open 450ms var(--ease) both;
  }
}

@keyframes birthday-twinkle {
  from { opacity: 0.35; }
  to { opacity: 0.9; }
}

@keyframes orbit-turn {
  to { transform: rotate(360deg); }
}

@keyframes portrait-float {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 7px)); }
}

@keyframes letter-open {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .birthday-hero {
    min-height: auto;
  }

  .birthday-hero__inner {
    grid-template-columns: 1fr;
    gap: 68px;
    padding-top: 80px;
  }

  .birthday-hero__copy {
    max-width: 720px;
    text-align: center;
  }

  .birthday-date {
    justify-content: center;
  }

  .birthday-hero__lead,
  .birthday-countdown {
    margin-inline: auto;
  }

  .birthday-orbit {
    width: min(76vw, 470px);
  }

  .birthday-word__layout {
    grid-template-columns: 1fr;
  }

  .birthday-word .section-heading {
    max-width: 670px;
    text-align: center;
    margin-inline: auto;
  }

  .word-card {
    width: min(580px, 100%);
    margin-inline: auto;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 84px;
  }

  .wrap,
  .birthday-hero__inner {
    width: min(100% - 32px, 1120px);
  }

  .section {
    padding: 80px 0;
  }

  .birthday-nav {
    min-height: 64px;
    padding-inline: 16px;
  }

  .birthday-nav__brand {
    font-size: 21px;
  }

  .birthday-nav__brand small,
  .home-link {
    display: none;
  }

  .birthday-nav__actions {
    gap: 0;
  }

  .lang-switch button {
    min-width: 40px;
    padding-inline: 8px;
  }

  .birthday-hero__inner {
    gap: 56px;
    padding: 62px 0 74px;
  }

  .birthday-hero h1 {
    font-size: clamp(43px, 14vw, 61px);
  }

  body[data-lang="jp"] .birthday-hero h1,
  body[data-lang="zh"] .birthday-hero h1 {
    font-size: clamp(36px, 10.5vw, 48px);
  }

  .birthday-hero__lead {
    font-size: 16px;
  }

  .birthday-countdown {
    padding-inline: 15px;
  }

  .birthday-countdown__units {
    gap: 8px;
  }

  .birthday-countdown strong {
    font-size: 28px;
  }

  .birthday-countdown small {
    font-size: 9px;
  }

  .birthday-countdown__units > span:not(:last-child)::after {
    right: -4px;
  }

  .birthday-orbit {
    width: min(88vw, 410px);
  }

  .orbit-star {
    width: 45px;
  }

  .orbit-star__number {
    font-size: 15px;
  }

  .birthday-orbit__portrait {
    width: 48%;
  }

  .section-heading--center {
    margin-bottom: 43px;
  }

  .birthday-word {
    background: var(--cream);
  }

  .birthday-word__layout {
    gap: 42px;
  }

  .word-card {
    min-height: 0;
    padding: 55px 23px 42px;
  }

  .word-card__word {
    font-size: clamp(38px, 12vw, 51px);
    letter-spacing: 0.03em;
  }

  .thanks-progress {
    margin-top: -17px;
  }

  .thanks-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .thank-card {
    min-height: 0;
    padding: 28px 27px 30px;
    scroll-margin-top: 88px;
  }

  .thank-card h3 {
    font-size: 27px;
  }

  body[data-lang="jp"] .thank-card h3,
  body[data-lang="zh"] .thank-card h3 {
    font-size: 22px;
  }

  .birthday-interlude {
    padding-block: 78px;
  }

  .birthday-interlude blockquote {
    padding: 0 9px;
  }

  .birthday-interlude__mark {
    top: -34px;
    left: -4px;
    font-size: 100px;
  }

  .wish-section {
    min-height: 580px;
  }

  .birthday-wish {
    margin-top: 35px;
  }

  .birthday-wish__letter {
    padding: 30px 22px;
  }

  .birthday-footer .wrap {
    grid-template-columns: 1fr;
  }

  .birthday-footer a {
    justify-self: start;
  }

  .birthday-footer small {
    grid-column: auto;
  }
}

@media (max-width: 390px) {
  .birthday-countdown strong {
    font-size: 25px;
  }

  .birthday-orbit {
    width: calc(100vw - 34px);
  }

  .orbit-star {
    width: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
