:root {
  color-scheme: dark;
  --ink: #f9f3f6;
  --muted: rgba(249, 243, 246, 0.7);
  --deep: #071b35;
  --ocean: #0b3158;
  --ocean-light: #1b6782;
  --pink: #f08aaa;
  --pink-soft: #ffc1d2;
  --pearl: #fff8f1;
  --gold: #f0c985;
  --paper: #fffaf5;
  --paper-ink: #563a48;
  --border: rgba(255, 255, 255, 0.18);
  --content: min(1180px, calc(100vw - 80px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--deep);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 18%, rgba(240, 138, 170, 0.18), transparent 28%),
    radial-gradient(circle at 80% 34%, rgba(58, 180, 190, 0.2), transparent 30%),
    linear-gradient(180deg, #123f68 0%, #0a294b 42%, #06172f 100%);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

body.page-mode {
  height: 100svh;
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--pearl);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

#ocean-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.ocean-light {
  position: fixed;
  top: -20vh;
  width: 18vw;
  height: 115vh;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  transform: rotate(15deg);
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.8), transparent 75%);
  filter: blur(18px);
  animation: light-drift 12s ease-in-out infinite alternate;
}

.ocean-light-one {
  left: 18%;
}

.ocean-light-two {
  right: 9%;
  width: 11vw;
  animation-delay: -6s;
}

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

.screen {
  position: relative;
  min-height: 100svh;
}

.countdown-screen,
.hero {
  display: grid;
  place-items: center;
  padding: 56px 40px;
  overflow: hidden;
}

.countdown-screen::before,
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 72%, rgba(240, 138, 170, 0.13), transparent 36%),
    linear-gradient(180deg, rgba(4, 23, 48, 0.05), rgba(4, 17, 37, 0.52));
}

.countdown-content,
.hero-content {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  text-align: center;
}

.eyebrow,
.section-index {
  margin: 0 0 22px;
  color: var(--pink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.countdown-content h1,
.hero h1 {
  margin: 0;
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-size: 76px;
  font-weight: 400;
  line-height: 1.1;
}

.pearl-rule {
  position: relative;
  width: 180px;
  height: 1px;
  margin: 34px auto 42px;
  background: rgba(255, 255, 255, 0.38);
}

.pearl-rule::after {
  content: "";
  position: absolute;
  top: -4px;
  left: calc(50% - 4px);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pearl);
  box-shadow: 0 0 18px rgba(255, 248, 241, 0.9);
}

.countdown {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  width: min(800px, 100%);
  margin: 0 auto;
}

.time-unit {
  display: grid;
  gap: 10px;
  justify-items: center;
  min-width: 0;
}

.time-unit strong {
  min-width: 2.2ch;
  color: var(--pearl);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 94px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 0.95;
  text-shadow: 0 0 40px rgba(240, 138, 170, 0.35);
}

.time-unit span {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 4px;
}

.time-divider {
  padding-top: 0.05em;
  color: rgba(255, 255, 255, 0.36);
  font-family: Georgia, serif;
  font-size: 80px;
  line-height: 0.95;
}

.countdown-note {
  margin: 42px 0 0;
  color: var(--muted);
  font-family: Georgia, "Songti SC", serif;
  font-size: 17px;
}

.preview-button {
  display: none;
  margin: 28px auto 0;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  color: var(--muted);
  background: rgba(7, 27, 53, 0.45);
  cursor: pointer;
}

body.local-preview .preview-button {
  display: block;
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  width: 1px;
  height: 52px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}

.scroll-hint span {
  display: block;
  width: 100%;
  height: 45%;
  background: var(--pink-soft);
  animation: scroll-drop 2s ease-in-out infinite;
}

.sound-button {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 20;
}

.cat-bgm-toggle {
  --eye-x: 0px;
  --eye-y: 0px;
  position: fixed;
  top: 0;
  right: 82px;
  z-index: 19;
  width: 72px;
  height: 92px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform-origin: 50% 0;
  transition: transform 220ms ease, filter 220ms ease;
}

.cat-bgm-toggle:hover,
.cat-bgm-toggle:focus-visible {
  transform: translateY(7px) rotate(3deg);
  filter: drop-shadow(0 8px 13px rgba(255, 142, 181, 0.32));
}

.cat-bgm-toggle.is-clicked {
  animation: cat-bounce 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cat-string {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 24px;
  background: rgba(255, 248, 241, 0.68);
}

.cat-character {
  position: absolute;
  top: 18px;
  left: 7px;
  width: 58px;
  height: 66px;
  transform-origin: 50% 0;
  animation: cat-sway 3.7s ease-in-out infinite;
}

.cat-head {
  position: absolute;
  top: 12px;
  left: 7px;
  width: 44px;
  height: 39px;
  border: 2px solid #823f63;
  border-radius: 46% 46% 44% 44%;
  background: #ffc3d4;
}

.cat-ear {
  position: absolute;
  top: 7px;
  width: 18px;
  height: 20px;
  border: 2px solid #823f63;
  background: #f8a8c1;
}

.cat-ear::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: #e779a5;
}

.cat-ear-left {
  left: 7px;
  transform: rotate(28deg);
  clip-path: polygon(0 100%, 32% 0, 100% 76%);
}

.cat-ear-right {
  right: 7px;
  transform: rotate(-28deg);
  clip-path: polygon(0 76%, 68% 0, 100% 100%);
}

.cat-eye {
  position: absolute;
  top: 16px;
  width: 6px;
  height: 8px;
  border-radius: 50%;
  background: #51314b;
  transform: translate(var(--eye-x), var(--eye-y));
  transition: transform 120ms ease;
}

.cat-eye-left {
  left: 10px;
}

.cat-eye-right {
  right: 10px;
}

.cat-nose {
  position: absolute;
  top: 24px;
  left: 19px;
  width: 7px;
  height: 5px;
  border-radius: 50%;
  background: #d26789;
}

.cat-mouth {
  position: absolute;
  top: 27px;
  left: 20px;
  width: 6px;
  height: 5px;
  border-bottom: 2px solid #823f63;
  border-radius: 50%;
}

.cat-blush {
  position: absolute;
  top: 26px;
  width: 7px;
  height: 3px;
  border-radius: 50%;
  background: rgba(214, 89, 130, 0.46);
}

.cat-blush-left {
  left: 3px;
}

.cat-blush-right {
  right: 3px;
}

.cat-paw {
  position: absolute;
  top: 46px;
  z-index: 2;
  width: 17px;
  height: 19px;
  border: 2px solid #823f63;
  border-radius: 50%;
  background: #ffc3d4;
}

.cat-paw-left {
  left: 5px;
  transform: rotate(16deg);
}

.cat-paw-right {
  right: 5px;
  transform: rotate(-16deg);
}

.cat-tail {
  position: absolute;
  top: 39px;
  right: 0;
  width: 25px;
  height: 27px;
  border: 4px solid #f6a6c0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0 100% 0 0;
  transform: rotate(18deg);
  transform-origin: left bottom;
  animation: cat-tail-swing 1.8s ease-in-out infinite alternate;
}

.cat-bgm-toggle.is-funny .cat-mouth {
  top: 26px;
  width: 10px;
  height: 8px;
  border: 2px solid #823f63;
  border-radius: 50%;
}

.cat-bgm-toggle.is-funny .cat-character {
  animation-duration: 1.8s;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(6, 25, 48, 0.58);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.icon-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(240, 138, 170, 0.2);
}

.sound-icon {
  font-family: Georgia, serif;
  font-size: 20px;
}

.sound-button.is-playing .sound-icon {
  animation: music-pulse 1.6s ease-in-out infinite;
}

.hero-date {
  margin: 0 0 10px;
  color: var(--pink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 126px;
  line-height: 1;
  text-shadow: 0 0 48px rgba(240, 138, 170, 0.28);
}

.hero h1 {
  font-size: 64px;
}

.hero-subtitle {
  margin: 24px 0 38px;
  color: var(--muted);
  font-family: Georgia, "Songti SC", serif;
  font-size: 19px;
}

.primary-button,
.secondary-button,
.text-button {
  border: 0;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 4px;
  color: #432439;
  background: var(--pink-soft);
  box-shadow: 0 12px 34px rgba(240, 138, 170, 0.2);
  font-weight: 700;
}

.primary-button:hover:not(:disabled),
.secondary-button:hover,
.text-button:hover {
  transform: translateY(-2px);
}

.primary-button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  box-shadow: none;
}

.secondary-button {
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 4px;
  background: transparent;
}

.text-button {
  padding: 10px 0;
  color: var(--pink-soft);
  background: transparent;
  border-bottom: 1px solid rgba(255, 193, 210, 0.45);
}

.reef-silhouette {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 170px;
  pointer-events: none;
  opacity: 0.68;
}

.reef-silhouette::after {
  content: "";
  position: absolute;
  right: -5%;
  bottom: -70px;
  left: -5%;
  height: 130px;
  border-radius: 50% 50% 0 0;
  background: #041329;
  box-shadow: 0 -18px 70px rgba(240, 138, 170, 0.12);
}

.coral,
.seaweed {
  position: absolute;
  bottom: 25px;
  z-index: 1;
  transform-origin: bottom center;
  animation: plant-sway 6s ease-in-out infinite alternate;
}

.coral {
  width: 8px;
  height: 105px;
  border-radius: 50% 50% 0 0;
  background: #9b416a;
  box-shadow:
    18px 25px 0 -2px #9b416a,
    -17px 38px 0 -2px #9b416a,
    31px 54px 0 -2px #9b416a;
}

.coral-one {
  left: 11%;
}

.coral-two {
  right: 18%;
  height: 75px;
  opacity: 0.72;
  animation-delay: -2s;
}

.seaweed {
  width: 12px;
  height: 90px;
  border-radius: 80% 0;
  background: #0b5362;
}

.seaweed-one {
  left: 25%;
  height: 120px;
}

.seaweed-two {
  right: 9%;
  height: 145px;
  animation-delay: -4s;
}

.seaweed-three {
  right: 34%;
  height: 80px;
  animation-delay: -1s;
}

.section-inner {
  width: var(--content);
  margin: 0 auto;
}

.page-back {
  position: absolute;
  top: 28px;
  left: 32px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border: 0;
  color: rgba(255, 248, 241, 0.72);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  transition: color 180ms ease, transform 180ms ease;
}

.page-back:hover {
  color: var(--pink-soft);
  transform: translateX(-3px);
}

.page-back span {
  color: var(--pink-soft);
  font-size: 19px;
}

.celebration-site.page-mode {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.celebration-site.page-mode > section {
  position: absolute;
  inset: 0;
  min-height: 100svh;
  height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

.celebration-site.page-mode > section::-webkit-scrollbar {
  display: none;
}

.celebration-site.page-mode > section:not(.is-current-page) {
  display: none;
}

.celebration-site.page-mode footer {
  display: none;
}

.celebration-site.page-mode .story,
.celebration-site.page-mode .letter-section,
.celebration-site.page-mode .invitation-section,
.celebration-site.page-mode .ticket-section {
  padding-top: 80px;
  padding-bottom: 50px;
}

@media (min-width: 861px) {
  .celebration-site.page-mode .ticket-section {
    display: grid;
    align-items: center;
  }
}

.celebration-site.page-mode .story-lines p {
  margin-bottom: 45px;
  font-size: 48px;
}

.celebration-site.page-mode .letter-layout {
  gap: 65px;
}

.celebration-site.page-mode .letter-heading {
  top: 80px;
}

.celebration-site.page-mode .letter-paper {
  padding: 48px 58px;
}

.celebration-site.page-mode .letter-paper p {
  margin-bottom: 17px;
  font-size: 16px;
  line-height: 1.85;
}

.story {
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding: 120px 0;
  background: linear-gradient(180deg, rgba(5, 25, 49, 0.55), rgba(11, 49, 88, 0.44));
}

.story-inner {
  display: grid;
  grid-template-columns: 0.7fr 1.7fr;
  gap: 50px;
  align-items: start;
}

.story-inner .section-index {
  padding-top: 14px;
}

.story-lines p {
  margin: 0 0 80px;
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-size: 56px;
  line-height: 1.55;
}

.story-lines p:last-child {
  margin-bottom: 50px;
}

.letter-section {
  padding: 160px 0;
  background:
    radial-gradient(circle at 15% 48%, rgba(240, 138, 170, 0.14), transparent 25%),
    rgba(3, 19, 40, 0.64);
}

.letter-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.25fr;
  gap: 90px;
  align-items: start;
}

.letter-heading {
  position: sticky;
  top: 130px;
}

.letter-heading h2,
.invitation-copy h2,
.ticket-copy h2 {
  margin: 0 0 26px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 62px;
  font-weight: 400;
  line-height: 1.25;
}

.ticket-copy h2 {
  font-size: 52px;
}

.ticket-destination {
  display: inline-block;
  white-space: nowrap;
}

.letter-heading > p:last-child,
.invitation-copy > p:last-of-type,
.ticket-copy > p:last-child {
  color: var(--muted);
  line-height: 1.9;
}

.letter-paper {
  position: relative;
  padding: 70px;
  overflow: hidden;
  border: 1px solid rgba(132, 88, 102, 0.16);
  border-radius: 4px;
  color: var(--paper-ink);
  background:
    linear-gradient(rgba(255, 250, 245, 0.94), rgba(255, 250, 245, 0.94)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(120, 78, 91, 0.08) 31px 32px);
  box-shadow: 0 32px 90px rgba(0, 8, 23, 0.36);
  transform: rotate(0.7deg);
}

.letter-paper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 34px;
  width: 1px;
  height: 100%;
  background: rgba(217, 120, 143, 0.2);
}

.letter-paper p {
  position: relative;
  margin: 0 0 26px;
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-size: 17px;
  line-height: 2.15;
}

.letter-salutation {
  font-size: 20px !important;
}

.letter-signature {
  margin-top: 48px !important;
  text-align: right;
}

.letter-signature strong {
  display: inline-block;
  margin-top: 7px;
  color: #c15f80;
  font-size: 22px;
  font-weight: 400;
}

.letter-next {
  margin-top: 18px;
}

.letter-stamp {
  position: absolute;
  top: 24px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 64px;
  height: 74px;
  border: 1px dashed rgba(162, 80, 105, 0.55);
  color: #b85f7b;
  font-family: Georgia, serif;
  font-size: 34px;
}

.invitation-section {
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding: 120px 0;
  overflow: hidden;
}

.invitation-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}

.date-form {
  margin-top: 44px;
}

.date-form label {
  display: block;
  margin-bottom: 12px;
  color: var(--pink-soft);
  font-size: 13px;
  letter-spacing: 2px;
}

.date-row {
  display: flex;
  gap: 12px;
}

.date-row input {
  min-width: 220px;
  height: 48px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(4, 24, 48, 0.55);
  color-scheme: dark;
}

.form-message {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--pink-soft);
  font-size: 13px;
}

.envelope-stage {
  display: grid;
  place-items: center;
  min-height: 420px;
  perspective: 1200px;
}

.envelope {
  position: relative;
  width: min(500px, 42vw);
  aspect-ratio: 1.52;
  filter: drop-shadow(0 36px 38px rgba(0, 7, 22, 0.38));
  transform: rotate(2deg);
  transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.envelope-back,
.envelope-front,
.envelope-flap {
  position: absolute;
  inset: 0;
  border-radius: 5px;
}

.envelope-back {
  background: #d97799;
}

.envelope-front {
  z-index: 4;
  overflow: hidden;
  background: #ee9fb7;
  clip-path: polygon(0 28%, 50% 67%, 100% 28%, 100% 100%, 0 100%);
}

.envelope-front::before,
.envelope-front::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 72%;
  height: 72%;
  background: rgba(255, 194, 211, 0.44);
}

.envelope-front::before {
  left: 0;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.envelope-front::after {
  right: 0;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.envelope-flap {
  z-index: 5;
  height: 64%;
  transform-origin: top center;
  background: #f4b1c5;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1), z-index 0s 400ms;
}

.wax-seal {
  position: absolute;
  z-index: 6;
  top: 43%;
  left: calc(50% - 31px);
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 4px double rgba(255, 218, 222, 0.52);
  border-radius: 50%;
  color: #ffdbe4;
  background: #a33e61;
  box-shadow: 0 8px 18px rgba(87, 26, 52, 0.3);
  font-family: Georgia, serif;
  font-size: 28px;
  transition: opacity 300ms ease, transform 500ms ease;
}

.ticket-preview {
  position: absolute;
  z-index: 3;
  right: 7%;
  bottom: 4%;
  left: 7%;
  display: grid;
  align-content: center;
  height: 84%;
  padding: 24px;
  border-radius: 4px;
  color: #713f52;
  background:
    linear-gradient(135deg, rgba(240, 138, 170, 0.14), transparent),
    var(--paper);
  text-align: center;
  transition: transform 1.1s 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ticket-preview span {
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 3px;
}

.ticket-preview strong {
  margin-top: 18px;
  font-family: Georgia, serif;
  font-size: 48px;
  font-weight: 400;
}

.envelope.is-open {
  transform: rotate(0deg) translateY(70px);
}

.envelope.is-open .envelope-flap {
  z-index: 1;
  transform: rotateX(180deg);
}

.envelope.is-open .wax-seal {
  opacity: 0;
  transform: scale(0.65);
}

.envelope.is-open .ticket-preview {
  transform: translateY(-72%);
}

.ticket-section {
  min-height: 100svh;
  padding: 145px 0;
  background:
    radial-gradient(circle at 74% 45%, rgba(240, 138, 170, 0.16), transparent 32%),
    rgba(3, 18, 37, 0.7);
}

.ticket-layout {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 65px;
  align-items: center;
}

.ticket {
  display: grid;
  grid-template-columns: 1fr 126px;
  min-height: 390px;
  overflow: hidden;
  border-radius: 6px;
  color: #153e57;
  background: var(--paper);
  box-shadow: 0 34px 90px rgba(0, 5, 20, 0.42);
}

.ticket-main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 42px;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 15%, rgba(240, 138, 170, 0.2), transparent 22%),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(17, 82, 104, 0.025) 18px 19px),
    var(--paper);
}

.ticket-main::after {
  content: "6";
  position: absolute;
  right: 15px;
  bottom: -68px;
  color: rgba(240, 138, 170, 0.08);
  font-family: Georgia, serif;
  font-size: 280px;
  line-height: 1;
}

.ticket-brand {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.ticket-brand span,
.ticket-details span,
.ticket-stub span {
  color: #9c6175;
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 2px;
}

.ticket-brand strong {
  font-family: Georgia, "Songti SC", serif;
  font-size: 31px;
  font-weight: 400;
}

.ticket-place {
  position: relative;
  z-index: 1;
  margin: auto 0 8px;
  color: #c06182;
  font-family: Georgia, "Songti SC", serif;
  font-size: 21px;
}

.ticket-promise {
  position: relative;
  z-index: 1;
  max-width: 75%;
  margin: 0 0 30px;
  color: #5e7480;
  line-height: 1.7;
}

.ticket-details {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.8fr 1fr;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(21, 62, 87, 0.16);
}

.ticket-details div {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.ticket-details strong {
  overflow: hidden;
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-disclaimer {
  position: absolute;
  right: 42px;
  bottom: 16px;
  margin: 0;
  color: rgba(21, 62, 87, 0.5);
  font-size: 9px;
}

.ticket-whale {
  position: absolute;
  top: 88px;
  right: 65px;
  width: 160px;
  height: 85px;
  opacity: 0.48;
  transform: rotate(-8deg);
}

.whale-body {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 125px;
  height: 58px;
  border-radius: 60% 52% 58% 45%;
  background: #73b6c1;
}

.whale-body::before {
  content: "";
  position: absolute;
  right: 16px;
  top: 18px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #153e57;
}

.whale-body::after {
  content: "";
  position: absolute;
  bottom: -13px;
  left: 43px;
  width: 38px;
  height: 23px;
  border-radius: 0 100% 0 100%;
  background: #73b6c1;
  transform: rotate(20deg);
}

.whale-tail {
  position: absolute;
  left: 2px;
  bottom: 23px;
  width: 49px;
  height: 38px;
}

.whale-tail::before,
.whale-tail::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 21px;
  border-radius: 80% 0;
  background: #73b6c1;
}

.whale-tail::before {
  transform: rotate(28deg);
}

.whale-tail::after {
  top: 18px;
  transform: rotate(-28deg) scaleY(-1);
}

.ticket-stub {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 35px 20px;
  border-left: 1px dashed rgba(255, 255, 255, 0.5);
  color: var(--pearl);
  background: #c96787;
}

.ticket-stub::before,
.ticket-stub::after {
  content: "";
  position: absolute;
  left: -12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #071a34;
}

.ticket-stub::before {
  top: -12px;
}

.ticket-stub::after {
  bottom: -12px;
}

.ticket-stub span {
  color: rgba(255, 255, 255, 0.7);
  writing-mode: vertical-rl;
}

.ticket-stub strong {
  font-family: Georgia, serif;
  font-size: 48px;
  font-weight: 400;
}

.ticket-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.ticket-actions .text-button {
  margin-left: auto;
}

.ticket-actions .primary-button {
  min-width: 230px;
}

.ticket.is-accepted {
  box-shadow: 0 34px 100px rgba(240, 138, 170, 0.35);
}

.ticket.is-accepted .ticket-stub {
  background: #a63f67;
}

footer {
  display: grid;
  place-items: center;
  min-height: 48svh;
  padding: 80px 30px;
  text-align: center;
}

footer p {
  color: var(--pink-soft);
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 4px;
}

footer strong {
  font-family: Georgia, "Songti SC", serif;
  font-size: 64px;
  font-weight: 400;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  max-width: min(360px, calc(100vw - 48px));
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  opacity: 0;
  background: rgba(4, 22, 43, 0.88);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-observe .section-index,
.section-observe h2,
.section-observe .story-lines,
.section-observe .letter-paper,
.section-observe .invitation-copy,
.section-observe .envelope-stage,
.section-observe .ticket-copy,
.section-observe .ticket-wrapper {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 900ms ease, transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.section-observe.is-visible .section-index,
.section-observe.is-visible h2,
.section-observe.is-visible .story-lines,
.section-observe.is-visible .letter-paper,
.section-observe.is-visible .invitation-copy,
.section-observe.is-visible .envelope-stage,
.section-observe.is-visible .ticket-copy,
.section-observe.is-visible .ticket-wrapper {
  opacity: 1;
  transform: translateY(0);
}

.section-observe.is-visible .letter-paper,
.section-observe.is-visible .envelope-stage,
.section-observe.is-visible .ticket-wrapper {
  transition-delay: 120ms;
}

body.is-unlocking .countdown-content {
  animation: unlock-out 1.2s ease forwards;
}

body.is-unlocking .countdown-screen::after {
  content: "";
  position: absolute;
  z-index: 5;
  width: 100px;
  height: 100px;
  border: 1px solid var(--pink-soft);
  border-radius: 50%;
  animation: unlock-wave 1.3s ease-out forwards;
}

@keyframes light-drift {
  to {
    transform: rotate(8deg) translateX(6vw);
    opacity: 0.2;
  }
}

@keyframes scroll-drop {
  0% {
    transform: translateY(-110%);
  }
  60%,
  100% {
    transform: translateY(240%);
  }
}

@keyframes music-pulse {
  50% {
    opacity: 0.48;
    transform: scale(0.88);
  }
}

@keyframes cat-sway {
  0%, 100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(4deg) translateY(2px);
  }
}

@keyframes cat-tail-swing {
  to {
    transform: rotate(38deg);
  }
}

@keyframes cat-bounce {
  35% {
    transform: translateY(12px) rotate(-8deg) scale(1.04);
  }
  70% {
    transform: translateY(-2px) rotate(4deg);
  }
}

@keyframes plant-sway {
  to {
    transform: rotate(7deg);
  }
}

@keyframes unlock-wave {
  to {
    opacity: 0;
    transform: scale(22);
  }
}

@keyframes unlock-out {
  to {
    opacity: 0;
    transform: scale(1.08);
  }
}

@media (max-width: 860px) {
  :root {
    --content: min(100% - 40px, 680px);
  }

  .countdown-screen,
  .hero {
    padding: 60px 20px;
  }

  .countdown-content h1 {
    font-size: 52px;
  }

  .time-unit strong {
    font-size: 70px;
  }

  .time-divider {
    font-size: 62px;
  }

  .hero-date {
    font-size: 96px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .story-lines p {
    font-size: 43px;
  }

  .letter-heading h2,
  .invitation-copy h2,
  .ticket-copy h2 {
    font-size: 50px;
  }

  .letter-paper {
    padding: 58px;
  }

  .ticket-brand strong {
    font-size: 27px;
  }

  footer strong {
    font-size: 52px;
  }

  .story-inner,
  .letter-layout,
  .invitation-layout,
  .ticket-layout {
    grid-template-columns: 1fr;
  }

  .story-inner {
    gap: 20px;
  }

  .story-lines p {
    margin-bottom: 54px;
  }

  .letter-layout {
    gap: 50px;
  }

  .letter-heading {
    position: static;
  }

  .invitation-layout {
    gap: 25px;
  }

  .envelope-stage {
    min-height: 370px;
  }

  .envelope {
    width: min(500px, 84vw);
  }

  .ticket-layout {
    gap: 42px;
  }
}

@media (max-width: 560px) {
  .eyebrow,
  .section-index {
    letter-spacing: 2.5px;
  }

  .countdown-content h1 {
    font-size: 34px;
  }

  .countdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  .time-divider {
    display: none;
  }

  .time-unit strong {
    min-width: 0;
    font-size: 34px;
  }

  .time-unit span {
    font-size: 11px;
    letter-spacing: 2px;
  }

  .countdown-note {
    font-size: 15px;
    line-height: 1.8;
  }

  .hero-date {
    font-size: 72px;
  }

  .hero h1 {
    font-size: 39px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .story,
  .letter-section,
  .invitation-section,
  .ticket-section {
    padding: 90px 0;
  }

  .story-lines p {
    font-size: 30px;
  }

  .letter-heading h2,
  .invitation-copy h2,
  .ticket-copy h2 {
    font-size: 39px;
  }

  .ticket-copy h2 {
    font-size: 32px;
  }

  .letter-paper {
    padding: 58px 28px 34px;
  }

  .letter-paper::before {
    left: 17px;
  }

  .letter-stamp {
    top: 16px;
    right: 16px;
    width: 45px;
    height: 51px;
    font-size: 24px;
  }

  .date-row {
    display: grid;
  }

  .date-row input {
    width: 100%;
  }

  .envelope-stage {
    min-height: 300px;
  }

  .ticket {
    grid-template-columns: 1fr 72px;
    min-height: 430px;
  }

  .ticket-main {
    padding: 28px 24px;
  }

  .ticket-whale {
    top: 96px;
    right: 20px;
    transform: rotate(-8deg) scale(0.75);
    transform-origin: right top;
  }

  .ticket-promise {
    max-width: 100%;
    margin-top: 115px;
  }

  .ticket-details {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ticket-details div {
    display: flex;
    justify-content: space-between;
  }

  .ticket-disclaimer {
    right: 24px;
    bottom: 9px;
  }

  .ticket-stub {
    padding: 28px 10px;
  }

  .ticket-stub strong {
    font-size: 31px;
  }

  .ticket-brand strong {
    font-size: 23px;
  }

  footer strong {
    font-size: 40px;
  }

  .ticket-actions {
    display: grid;
  }

  .ticket-actions .primary-button {
    width: 100%;
  }

  .ticket-actions .text-button {
    margin-left: 0;
  }

  .sound-button {
    top: 16px;
    right: 16px;
  }

  .cat-bgm-toggle {
    right: 66px;
    transform: scale(0.82);
    transform-origin: top right;
  }

  .cat-bgm-toggle:hover,
  .cat-bgm-toggle:focus-visible {
    transform: translateY(6px) scale(0.82) rotate(3deg);
  }

  .page-back {
    top: 14px;
    left: 20px;
  }

  .celebration-site.page-mode .story,
  .celebration-site.page-mode .letter-section,
  .celebration-site.page-mode .invitation-section,
  .celebration-site.page-mode .ticket-section {
    padding-top: 72px;
    padding-bottom: 45px;
  }

  .celebration-site.page-mode .story-lines p {
    margin-bottom: 38px;
    font-size: 30px;
  }

  .celebration-site.page-mode .letter-paper {
    padding: 58px 28px 34px;
  }
}

/* Supplied artwork: keep the Bongo Cat image itself as the visual source. */
.cat-bgm-toggle {
  right: 76px;
  width: 112px;
  height: 74px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  transform-origin: 50% 100%;
}

.bongo-cat-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.cat-bgm-toggle:hover,
.cat-bgm-toggle:focus-visible {
  transform: translateY(3px) rotate(-2deg);
  filter: drop-shadow(0 7px 10px rgba(255, 142, 181, 0.3));
}

.cat-bgm-toggle.is-clicked {
  animation: bongo-cat-tap 520ms ease-in-out;
}

.cat-bgm-toggle.is-funny {
  filter: saturate(1.18) drop-shadow(0 7px 10px rgba(255, 142, 181, 0.3));
}

@keyframes bongo-cat-tap {
  0%, 100% {
    transform: translateY(0) rotate(0);
  }
  35% {
    transform: translateY(5px) rotate(-3deg) scale(1.03);
  }
  68% {
    transform: translateY(-2px) rotate(2deg);
  }
}

@media (max-width: 560px) {
  .cat-bgm-toggle {
    right: 62px;
    width: 88px;
    height: 58px;
  }

  .cat-bgm-toggle:hover,
  .cat-bgm-toggle:focus-visible {
    transform: translateY(3px) rotate(-2deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cat-character,
  .cat-paw,
  .cat-tail {
    animation: none;
  }
}

body.ticket-preview-mode .hero,
body.ticket-preview-mode .story,
body.ticket-preview-mode .letter-section,
body.ticket-preview-mode .invitation-section,
body.ticket-preview-mode footer {
  display: none;
}

body.ticket-preview-mode .ticket-section {
  display: grid;
  align-items: center;
  padding-top: 70px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .cat-bgm-toggle {
    animation: none;
  }
}

/* Bongo Cat-style sticker treatment */
.cat-bgm-toggle {
  right: 78px;
  width: 82px;
  height: 80px;
  transform-origin: 50% 100%;
}

.cat-bgm-toggle:hover,
.cat-bgm-toggle:focus-visible {
  transform: translateY(3px) rotate(-2deg);
  filter: drop-shadow(0 7px 10px rgba(255, 142, 181, 0.3));
}

.cat-string {
  display: none;
}

.cat-character {
  top: 11px;
  left: 4px;
  width: 74px;
  height: 66px;
  transform-origin: 50% 100%;
}

.cat-character::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 12px;
  width: 52px;
  height: 39px;
  border: 3px solid #252333;
  border-radius: 48% 48% 34% 34%;
  background: #fffdfb;
}

.cat-head {
  top: 8px;
  left: 17px;
  z-index: 2;
  width: 45px;
  height: 42px;
  border: 3px solid #252333;
  border-radius: 50% 50% 45% 45%;
  background: #fffdfb;
}

.cat-ear {
  top: 2px;
  z-index: 1;
  width: 20px;
  height: 22px;
  border: 3px solid #252333;
  background: #ffb7ca;
}

.cat-ear::after {
  inset: 5px 6px 7px;
  background: #f184a5;
}

.cat-ear-left {
  left: 12px;
  transform: rotate(-28deg);
}

.cat-ear-right {
  right: 12px;
  transform: rotate(28deg);
}

.cat-eye {
  top: 16px;
  width: 6px;
  height: 6px;
  background: #252333;
}

.cat-nose {
  top: 25px;
  left: 20px;
  width: 6px;
  height: 5px;
  background: #f184a5;
}

.cat-mouth {
  top: 29px;
  left: 21px;
  width: 5px;
  height: 4px;
  border-bottom: 2px solid #252333;
}

.cat-blush {
  background: rgba(241, 132, 165, 0.6);
}

.cat-paw {
  top: 43px;
  z-index: 3;
  width: 18px;
  height: 15px;
  border: 3px solid #252333;
  background: #ffb7ca;
  animation: paw-tap 1.1s ease-in-out infinite alternate;
}

.cat-paw-left {
  left: 12px;
  transform: rotate(18deg);
}

.cat-paw-right {
  right: 11px;
  transform: rotate(-18deg);
}

.cat-tail {
  top: 28px;
  right: 0;
  width: 18px;
  height: 28px;
  border: 3px solid #252333;
  border-bottom: 0;
  border-left: 0;
  transform: rotate(24deg);
}

.cat-ledge {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  z-index: 4;
  height: 7px;
  border: 3px solid #252333;
  border-radius: 7px;
  background: #f7d6df;
}

.cat-ledge::before,
.cat-ledge::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 17px;
  height: 13px;
  border: 3px solid #252333;
  border-radius: 50%;
  background: #f18aaa;
}

.cat-ledge::before {
  left: 18px;
}

.cat-ledge::after {
  right: 17px;
}

.cat-bgm-toggle.is-funny .cat-mouth {
  top: 27px;
  left: 19px;
  width: 10px;
  height: 9px;
  border: 3px solid #252333;
  border-radius: 50%;
}

@keyframes paw-tap {
  to {
    transform: translateY(3px) rotate(18deg);
  }
}

@media (max-width: 560px) {
  .cat-bgm-toggle {
    right: 66px;
    transform: scale(0.82);
    transform-origin: top right;
  }

  .cat-bgm-toggle:hover,
  .cat-bgm-toggle:focus-visible {
    transform: translateY(3px) scale(0.82) rotate(-2deg);
  }
}

/* Cat paw music button. */
.cat-bgm-toggle {
  top: 15px !important;
  right: 78px !important;
  width: 52px !important;
  height: 52px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  transform-origin: 50% 100% !important;
  padding: 0 !important;
}

.cat-paw-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.cat-bgm-toggle:hover,
.cat-bgm-toggle:focus-visible {
  transform: none !important;
  filter: none !important;
}

.cat-bgm-toggle.is-clicked .cat-paw-image {
  animation: cat-paw-click 260ms ease-in-out;
}

@keyframes cat-paw-click {
  0%, 100% {
    transform: scale(1);
  }
  45% {
    transform: scale(0.78);
  }
  75% {
    transform: scale(1.06);
  }
}

@media (max-width: 560px) {
  .cat-bgm-toggle {
    top: 19px !important;
    right: 76px !important;
    width: 48px !important;
    height: 48px !important;
  }
}
