:root {
  --paper: #f7f3eb;
  --ink: #1c1b19;
  --muted: #706a60;
  --sage: #7a8b72;
  --moss: #314334;
  --clay: #b68566;
  --champagne: #ded0bb;
  --white: #fffaf2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body.paper-lines {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(28, 27, 25, 0.035) 0,
      rgba(28, 27, 25, 0.035) 1px,
      transparent 1px,
      transparent 7px
    ),
    radial-gradient(circle at 16% 4%, rgba(182, 133, 102, 0.08), transparent 30%),
    radial-gradient(circle at 88% 28%, rgba(122, 139, 114, 0.07), transparent 28%),
    var(--paper);
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
}

.cover {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #151613;
  transition: opacity 600ms ease, visibility 600ms ease;
}

.cover::before,
.hero::before,
.photo-break::before,
.closing::before {
  content: "";
  position: absolute;
  inset: -28px;
  background-image: var(--photo);
  background-position: center;
  background-size: cover;
  filter: blur(18px);
  opacity: 0.58;
  transform: scale(1.04);
}

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

.envelope-cover {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 250, 242, 0.94), rgba(244, 223, 222, 0.82) 42%, rgba(222, 208, 187, 0.62)),
    linear-gradient(135deg, #f8ecec, #fff8f1);
}

.envelope-cover::before {
  inset: 0;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.42), transparent 28%),
    linear-gradient(250deg, rgba(182, 133, 102, 0.12), transparent 38%);
  filter: none;
  opacity: 1;
  transform: none;
}

.envelope-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 18%, rgba(122, 139, 114, 0.16) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 24%, rgba(182, 133, 102, 0.16) 0 2px, transparent 3px);
  background-size: 92px 92px, 128px 128px;
  opacity: 0.55;
}

.envelope-stage {
  display: grid;
  justify-items: center;
  gap: clamp(22px, 5vw, 40px);
  width: min(94vw, 720px);
  padding-inline: clamp(14px, 4vw, 32px);
  color: var(--ink);
}

.envelope-card {
  position: relative;
  width: min(86vw, 560px);
  aspect-ratio: 1.55;
  overflow: hidden;
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 250, 246, 0.98), rgba(247, 223, 224, 0.96)),
    #f9eeee;
  box-shadow:
    0 34px 80px rgba(49, 67, 52, 0.18),
    inset 0 0 0 1px rgba(182, 133, 102, 0.13);
  transform-style: preserve-3d;
}

.envelope-card::before,
.envelope-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.envelope-card::before {
  background:
    linear-gradient(32deg, transparent 49.7%, rgba(182, 133, 102, 0.36) 50%, transparent 50.4%),
    linear-gradient(148deg, transparent 49.7%, rgba(182, 133, 102, 0.32) 50%, transparent 50.4%);
}

.envelope-card::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent 28%);
}

.envelope-flap {
  position: absolute;
  inset: 0;
  background: rgba(255, 248, 244, 0.5);
}

.flap-left {
  clip-path: polygon(0 0, 50% 52%, 0 100%);
}

.flap-right {
  clip-path: polygon(100% 0, 50% 52%, 100% 100%);
}

.flap-bottom {
  clip-path: polygon(0 100%, 50% 52%, 100% 100%);
  background: rgba(246, 218, 220, 0.6);
}

.envelope-letter {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 78%;
  min-height: 54%;
  transform: translate(-50%, 0);
  border-radius: 8px 8px 0 0;
  padding: 28px;
  background: rgba(255, 253, 250, 0.94);
  text-align: center;
  box-shadow: 0 -16px 38px rgba(49, 67, 52, 0.12);
  transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.envelope-letter p {
  margin: 0 0 8px;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.envelope-letter strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 8vw, 5rem);
  font-weight: 400;
}

.seal-button {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: 4;
  display: grid;
  width: clamp(112px, 22vw, 148px);
  height: clamp(112px, 22vw, 148px);
  place-items: center;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 34%, #fffaf2, #d9d1be 58%, #aaa58f);
  box-shadow:
    0 18px 34px rgba(49, 67, 52, 0.18),
    inset 0 0 0 9px rgba(255, 250, 242, 0.48),
    inset 0 0 0 13px rgba(150, 143, 122, 0.16);
  color: #8f2149;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.seal-button:hover {
  transform: translate(-50%, -50%) scale(1.04);
}

.seal-button:active {
  transform: translate(-50%, -50%) scale(0.96);
}

.seal-rose {
  position: relative;
  width: 52%;
  height: 52%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #f8d2d9 0 12%, transparent 13%),
    conic-gradient(from 0deg, #d9829a, #f7c5cf, #c96d89, #f1b6c4, #d9829a);
  box-shadow: inset 0 0 0 8px rgba(255, 250, 242, 0.3);
}

.seal-rose::before,
.seal-rose::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(122, 139, 114, 0.72);
}

.seal-rose::before {
  left: -18px;
  top: 24px;
  width: 32px;
  height: 10px;
  transform: rotate(-32deg);
}

.seal-rose::after {
  right: -18px;
  top: 18px;
  width: 32px;
  height: 10px;
  transform: rotate(28deg);
}

.seal-text {
  position: absolute;
  bottom: 17px;
  color: rgba(143, 33, 73, 0.82);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.envelope-caption {
  text-align: center;
}

.envelope-caption h1 {
  margin-top: 4px;
  color: var(--ink);
  font-size: clamp(3.2rem, 9vw, 6.6rem);
}

.envelope-caption .guest-line {
  color: var(--ink);
}

.envelope-caption .cover-date {
  color: var(--muted);
}

.cover.is-opening .envelope-card {
  animation: envelope-press 850ms ease forwards;
}

.cover.is-opening .envelope-letter {
  transform: translate(-50%, -92%);
}

.cover.is-opening .seal-button {
  animation: seal-break 700ms ease forwards;
}

.cover-photo,
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 0;
}

.cover-photo {
  object-position: center;
}

.cover-shade,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(18, 20, 17, 0.78), rgba(18, 20, 17, 0.18) 55%, rgba(18, 20, 17, 0.55));
}

.cover-content {
  position: relative;
  z-index: 1;
  width: min(90vw, 760px);
  padding: 32px;
  text-align: center;
  color: var(--white);
}

.guest-line {
  margin: 0 0 12px;
  color: rgba(255, 250, 242, 0.88);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.1;
}

.cover h1,
.hero h1,
.intro h2,
.section-heading h2,
.gift h2,
.closing h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 0.95;
}

.cover h1 {
  font-size: clamp(4rem, 12vw, 9rem);
}

.cover-date {
  margin: 18px 0 28px;
  color: rgba(255, 250, 242, 0.82);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.warm-transition {
  position: fixed;
  inset: 0;
  z-index: 19;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(222, 208, 187, 0.76), rgba(182, 133, 102, 0.32) 38%, rgba(49, 67, 52, 0) 72%),
    rgba(255, 250, 242, 0.2);
}

.warm-transition.play {
  animation: warm-open 1150ms ease forwards;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.primary-btn,
.ghost-btn,
.copy-btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 22px;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.primary-btn {
  background: var(--white);
  color: var(--ink);
}

.ghost-btn {
  border-color: rgba(255, 250, 242, 0.58);
  color: var(--white);
}

.primary-btn:hover,
.ghost-btn:hover,
.copy-btn:hover,
.icon-btn:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #151613;
  color: var(--white);
}

.hero-photo {
  object-position: center;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 54px);
  color: var(--white);
  background: linear-gradient(rgba(15, 18, 14, 0.55), rgba(15, 18, 14, 0));
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 36px);
  color: rgba(255, 250, 242, 0.82);
  font-size: 0.88rem;
}

.nav-gift {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.icon-btn {
  min-width: 74px;
  min-height: 38px;
  border-color: rgba(255, 250, 242, 0.36);
  background: rgba(255, 250, 242, 0.08);
  color: var(--white);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-select {
  min-height: 38px;
  border: 1px solid rgba(255, 250, 242, 0.36);
  border-radius: 999px;
  padding: 0 34px 0 14px;
  background: rgba(255, 250, 242, 0.08);
  color: var(--white);
  font: inherit;
  font-size: 0.86rem;
  outline: none;
}

.lang-select option {
  color: var(--ink);
}

.icon-btn.is-playing {
  background: var(--white);
  color: var(--ink);
}

.barcode-toggle[hidden] {
  display: none !important;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100svh;
  width: min(920px, 92vw);
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px 0 clamp(42px, 8vw, 86px);
  margin-left: clamp(18px, 7vw, 110px);
}

.hero h1 {
  font-size: clamp(3.35rem, 7.6vw, 7.6rem);
  line-height: 0.92;
}

.hero h1 span {
  color: var(--champagne);
}

.hero-line {
  margin: 22px 0 28px;
  color: rgba(255, 250, 242, 0.84);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.band {
  background: var(--white);
}

.intro-photo-bg {
  position: relative;
  overflow: hidden;
  background: var(--champagne);
}

.intro-photo-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 242, 0.94) 0%, rgba(255, 250, 242, 0.84) 43%, rgba(255, 250, 242, 0.38) 100%),
    var(--photo) center / cover no-repeat;
}

.intro-photo-bg .section-inner {
  position: relative;
  z-index: 1;
}

.intro-photo-bg .intro-text {
  border-left: 2px solid rgba(182, 133, 102, 0.42);
  padding: 18px 0 18px 22px;
  background: rgba(255, 250, 242, 0.42);
  backdrop-filter: blur(8px);
}

.section-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) 0;
}

.intro-grid,
.gift-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: clamp(28px, 7vw, 90px);
  align-items: end;
}

.intro h2,
.gift h2,
.section-heading h2,
.closing h2 {
  font-size: clamp(2.5rem, 6vw, 5.6rem);
}

.intro-text,
.gift p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.section-copy {
  width: min(720px, 100%);
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.8;
}

.couple {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.profile {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--champagne);
}

.profile img {
  width: 100%;
  height: 100%;
  min-height: 680px;
  object-fit: cover;
}

.profile:first-child img {
  object-position: center 24%;
}

.profile:last-child img {
  object-position: center 18%;
}

.profile div {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.86);
  backdrop-filter: blur(14px);
}

.profile h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 400;
}

.story {
  position: relative;
  overflow: hidden;
}

.story-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.story-bg span {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(182, 133, 102, 0.28);
  animation: float-heart 8s ease-in-out infinite;
  transform: rotate(45deg);
}

.story-bg span::before,
.story-bg span::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: inherit;
}

.story-bg span::before {
  left: -9px;
}

.story-bg span::after {
  top: -9px;
}

.story-bg span:nth-child(1) {
  top: 11%;
  left: 7%;
}

.story-bg span:nth-child(2) {
  top: 18%;
  right: 10%;
  animation-delay: -2s;
  animation-duration: 9s;
}

.story-bg span:nth-child(3) {
  top: 54%;
  left: 4%;
  animation-delay: -4s;
}

.story-bg span:nth-child(4) {
  right: 8%;
  bottom: 22%;
  animation-delay: -1s;
  animation-duration: 7s;
}

.story-bg span:nth-child(5) {
  left: 48%;
  bottom: 8%;
  animation-delay: -5s;
  animation-duration: 10s;
}

.story .section-heading {
  position: relative;
  width: min(780px, 100%);
  margin: 0 auto clamp(38px, 6vw, 70px);
  text-align: center;
}

.story-lead {
  width: min(620px, 100%);
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.8;
}

.story-flow {
  position: relative;
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 14px 0;
}

.story-flow::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(92px, 18vw, 164px);
  width: 1px;
  background: linear-gradient(rgba(182, 133, 102, 0), rgba(182, 133, 102, 0.46), rgba(182, 133, 102, 0));
}

.story-moment {
  position: relative;
  display: grid;
  grid-template-columns: clamp(82px, 17vw, 150px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 58px);
  padding: clamp(24px, 5vw, 48px) 0;
}

.story-moment::before {
  content: "";
  position: absolute;
  top: clamp(34px, 5vw, 58px);
  left: clamp(85px, 18vw, 157px);
  width: 15px;
  height: 15px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 8px rgba(182, 133, 102, 0.14);
  animation: pulse-ring 2.8s ease-in-out infinite;
}

.story-moment span {
  padding-top: 4px;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
}

.story-moment div {
  position: relative;
  padding-bottom: clamp(18px, 4vw, 34px);
}

.story-moment div::after {
  content: "";
  position: absolute;
  right: min(8vw, 42px);
  bottom: 0;
  width: 74px;
  height: 1px;
  background: rgba(182, 133, 102, 0.32);
}

.story-moment h3 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.75rem);
  font-weight: 400;
  line-height: 1;
}

.story-moment p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  line-height: 1.9;
}

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

.story-moment:nth-child(2).reveal,
.story-moment:nth-child(5).reveal {
  transition-delay: 90ms;
}

.story-moment:nth-child(3).reveal,
.story-moment:nth-child(6).reveal {
  transition-delay: 180ms;
}

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

.timer div {
  display: grid;
  min-height: 140px;
  place-items: center;
  border: 1px solid rgba(49, 67, 52, 0.16);
  border-radius: 8px;
  background: var(--paper);
}

.timer strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 400;
}

.timer span {
  margin-top: -20px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading {
  margin-bottom: 32px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.detail-card,
.bank-card {
  border: 1px solid rgba(28, 27, 25, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.7);
  padding: 24px;
}

.detail-icon {
  color: var(--clay);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.detail-card h3,
.bank-card h3 {
  margin: 18px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 400;
}

.detail-card p,
.bank-card span {
  color: var(--muted);
  line-height: 1.7;
}

.detail-card small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.detail-card a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--moss);
  font-weight: 700;
}

.photo-break {
  position: relative;
  display: grid;
  height: clamp(560px, 86vh, 980px);
  place-items: center;
  overflow: hidden;
  background: #151613;
}

.photo-break img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.masonry {
  columns: 3 260px;
  column-gap: 14px;
}

.masonry button {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: zoom-in;
}

.masonry img {
  width: 100%;
  transition: transform 420ms ease;
}

.masonry button:hover img {
  transform: scale(1.04);
}

.bank-list {
  display: grid;
  gap: 14px;
}

.bank-logo-img {
  display: block;
  width: min(190px, 78%);
  height: 44px;
  margin: 0 0 8px;
  object-fit: contain;
  object-position: left center;
}

.bca-logo-img {
  width: min(170px, 74%);
}

.ocbc-logo-img {
  width: min(164px, 72%);
}

.china-theme {
  --paper: #fff4e6;
  --ink: #36120f;
  --muted: #7c5b4f;
  --moss: #8d171a;
  --clay: #d8a84f;
  --champagne: #f5d7a3;
  --white: #fffaf0;
  background:
    radial-gradient(circle at 14% 8%, rgba(218, 168, 79, 0.2), transparent 26%),
    radial-gradient(circle at 84% 16%, rgba(173, 32, 33, 0.14), transparent 28%),
    repeating-linear-gradient(0deg, rgba(112, 24, 23, 0.035) 0 1px, transparent 1px 8px),
    var(--paper);
}

.china-theme::before {
  content: "囍";
  position: fixed;
  right: clamp(16px, 4vw, 56px);
  top: clamp(92px, 14vh, 160px);
  z-index: 0;
  pointer-events: none;
  color: rgba(180, 28, 31, 0.055);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(10rem, 24vw, 24rem);
  line-height: 1;
}

.china-theme main,
.china-theme header,
.china-theme .cover,
.china-theme .gift-modal,
.china-theme .lightbox,
.china-theme .toast {
  position: relative;
  z-index: 1;
}

.china-theme .topbar {
  border-bottom: 1px solid rgba(216, 168, 79, 0.32);
  background: linear-gradient(90deg, rgba(125, 20, 22, 0.9), rgba(54, 18, 15, 0.66));
  color: #fff7df;
}

.china-theme .brand {
  color: #ffd77d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  letter-spacing: 0.08em;
}

.china-theme .icon-btn,
.china-theme .lang-select {
  border-color: rgba(255, 215, 125, 0.36);
  background: rgba(255, 247, 223, 0.08);
  color: #fff7df;
}

.china-theme .cover {
  background: #3a0809;
}

.china-theme .cover-content {
  border: 1px solid rgba(255, 215, 125, 0.42);
  background: rgba(86, 15, 16, 0.34);
  box-shadow: 0 24px 80px rgba(54, 18, 15, 0.34);
}

.china-theme .cover-content::before {
  content: "囍";
  display: block;
  margin-bottom: 8px;
  color: #ffd77d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 9vw, 5.6rem);
  line-height: 0.9;
}

.china-theme .hero {
  background: #3a0809;
  color: #fff7df;
}

.china-theme .hero::before {
  opacity: 0.42;
  filter: blur(16px) saturate(0.85);
}

.china-theme .hero-photo {
  filter: saturate(0.82) contrast(1.03);
}

.china-theme .hero-overlay {
  background:
    linear-gradient(90deg, rgba(58, 8, 9, 0.94) 0%, rgba(88, 15, 16, 0.74) 42%, rgba(58, 8, 9, 0.22) 100%),
    radial-gradient(circle at 24% 42%, rgba(216, 168, 79, 0.18), transparent 28%);
}

.china-theme .hero h1 {
  color: #fff7df;
  text-shadow: 0 12px 38px rgba(0, 0, 0, 0.26);
}

.china-theme .hero h1 span,
.china-theme .china-blessing {
  color: #ffd77d;
}

.china-theme .china-blessing {
  margin: -12px 0 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 3vw, 2rem);
  letter-spacing: 0.2em;
}

.china-theme .hero-line {
  color: rgba(255, 247, 223, 0.88);
}

.china-theme .primary-btn,
.china-theme .dark-btn {
  background: #a61d20;
  color: #fff7df;
}

.china-theme .ghost-btn {
  border-color: rgba(255, 215, 125, 0.48);
  color: #fff7df;
}

.china-theme .eyebrow {
  color: #b01d21;
  letter-spacing: 0.22em;
}

.china-theme .intro-photo-bg::before {
  background:
    linear-gradient(90deg, rgba(255, 244, 230, 0.96) 0%, rgba(255, 244, 230, 0.88) 48%, rgba(255, 244, 230, 0.38) 100%),
    var(--photo) center / cover no-repeat;
}

.china-theme .section-heading h2,
.china-theme .intro h2,
.china-theme .gift h2,
.china-theme .closing h2 {
  color: #4a1412;
}

.china-theme .couple,
.china-theme .detail-grid,
.china-theme .wishes-layout {
  position: relative;
}

.china-theme .profile,
.china-theme .detail-card,
.china-theme .form-panel,
.china-theme .wish-item,
.china-theme .bank-card {
  border: 1px solid rgba(166, 29, 32, 0.18);
  background: rgba(255, 250, 240, 0.82);
  box-shadow: 0 18px 44px rgba(87, 22, 18, 0.08);
}

.china-theme .profile div {
  border: 1px solid rgba(216, 168, 79, 0.24);
}

.china-theme .story::before,
.china-theme .details::before,
.china-theme .gallery::before,
.china-theme .wishes::before {
  content: "囍";
  display: block;
  width: fit-content;
  margin: 0 auto 18px;
  color: rgba(176, 29, 33, 0.16);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 0.8;
}

.china-theme .timer div {
  border-color: rgba(166, 29, 32, 0.2);
  background: rgba(255, 250, 240, 0.78);
}

.china-theme .detail-icon {
  color: #b01d21;
}

.china-theme .detail-card a {
  color: #a61d20;
}

.china-theme .gift-photo-bg {
  background: #3a0809;
}

.china-theme .gift-photo-bg::before {
  background:
    linear-gradient(90deg, rgba(58, 8, 9, 0.9) 0%, rgba(88, 15, 16, 0.64) 48%, rgba(58, 8, 9, 0.18) 100%),
    var(--photo) center 45% / cover no-repeat;
}

.china-theme .gift-photo-bg h2,
.china-theme .gift-photo-bg p:not(.eyebrow) {
  color: #fff7df;
}

.china-theme .gift-photo-bg .eyebrow {
  color: #ffd77d;
}

.china-theme .gift-photo-bg .dark-btn {
  background: #ffd77d;
  color: #4a1412;
}

.china-theme .masonry button {
  border: 1px solid rgba(166, 29, 32, 0.16);
  background: rgba(255, 250, 240, 0.72);
  padding: 5px;
}

.china-theme .closing::after {
  background: rgba(58, 8, 9, 0.62);
}

.china-theme .closing h2 {
  color: #fff7df;
}

.bank-card h3 {
  overflow-wrap: anywhere;
}

.copy-btn {
  margin-top: 18px;
  background: var(--moss);
  color: var(--white);
}

.gift-open-large {
  align-self: end;
  width: fit-content;
}

.livestream {
  padding-top: clamp(54px, 8vw, 94px);
}

.livestream[hidden] {
  display: none;
}

.livestream-frame {
  width: min(920px, 100%);
  margin: 28px auto 0;
  overflow: hidden;
  border-radius: 8px;
  background: #151613;
  box-shadow: 0 22px 56px rgba(49, 67, 52, 0.14);
  aspect-ratio: 16 / 9;
}

.livestream-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.gift-photo-bg {
  position: relative;
  overflow: hidden;
  background: #171512;
  color: var(--white);
}

.gift-photo-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 17, 15, 0.82) 0%, rgba(18, 17, 15, 0.62) 48%, rgba(18, 17, 15, 0.18) 100%),
    var(--photo) center 46% / cover no-repeat;
  transform: scale(1.02);
}

.gift-photo-bg .section-inner {
  position: relative;
  z-index: 1;
}

.gift-photo-bg .eyebrow {
  color: rgba(255, 250, 242, 0.76);
}

.gift-photo-bg h2 {
  color: var(--white);
}

.gift-photo-bg p:not(.eyebrow) {
  color: rgba(255, 250, 242, 0.82);
}

.gift-photo-bg .dark-btn {
  background: var(--white);
  color: var(--ink);
}

.dark-btn {
  background: var(--moss);
  color: var(--white);
}

.form-panel {
  display: grid;
  gap: 16px;
  width: min(760px, 100%);
  border: 1px solid rgba(49, 67, 52, 0.13);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 34px);
  background: rgba(255, 250, 242, 0.76);
  box-shadow: 0 18px 44px rgba(49, 67, 52, 0.07);
}

.form-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-panel input,
.form-panel select,
.form-panel textarea {
  width: 100%;
  border: 1px solid rgba(49, 67, 52, 0.18);
  border-radius: 8px;
  padding: 14px 15px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  letter-spacing: 0;
  outline: none;
}

.form-panel textarea {
  resize: vertical;
}

.form-panel input:focus,
.form-panel select:focus,
.form-panel textarea:focus {
  border-color: var(--clay);
  box-shadow: 0 0 0 4px rgba(182, 133, 102, 0.13);
}

.form-feedback {
  display: none;
  margin: 2px 0 0;
  border-left: 2px solid var(--moss);
  padding: 12px 14px;
  background: rgba(122, 139, 114, 0.12);
  color: var(--moss);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
}

.form-feedback.show {
  display: block;
}

.wishes-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1fr);
  gap: clamp(18px, 5vw, 52px);
  align-items: start;
}

.wishes-video {
  position: relative;
  overflow: hidden;
  margin: 0 0 clamp(22px, 5vw, 42px);
  border: 1px solid rgba(49, 67, 52, 0.13);
  border-radius: 8px;
  background: #151613;
  box-shadow: 0 18px 44px rgba(49, 67, 52, 0.09);
}

.wishes-layout + .wishes-video {
  margin: clamp(24px, 6vw, 56px) 0 0;
}

.wishes-video::before {
  content: "";
  display: block;
  aspect-ratio: 16 / 9;
}

.wishes-video iframe,
.youtube-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.youtube-cover {
  display: block;
  padding: 0;
  overflow: hidden;
  background: #151613;
  cursor: pointer;
}

.youtube-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78);
  transition: transform 420ms ease, filter 420ms ease;
}

.youtube-cover:hover img {
  filter: brightness(0.9);
  transform: scale(1.03);
}

.youtube-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: clamp(68px, 9vw, 92px);
  height: clamp(48px, 6.4vw, 64px);
  place-items: center;
  border-radius: 18px;
  background: #ff0000;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
  transform: translate(-50%, -50%);
}

.youtube-play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 21px solid var(--white);
}

.emoji-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -4px;
}

.emoji-picker button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(49, 67, 52, 0.14);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease;
}

.emoji-picker button:hover {
  border-color: rgba(182, 133, 102, 0.44);
  transform: translateY(-2px);
}

.wish-list {
  display: grid;
  gap: 14px;
}

.wish-item {
  border-left: 2px solid rgba(182, 133, 102, 0.44);
  padding: 18px 20px;
  border-radius: 0 8px 8px 0;
  background: rgba(255, 250, 242, 0.72);
  box-shadow: 0 14px 32px rgba(49, 67, 52, 0.06);
}

.wish-item h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 400;
}

.wish-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.wish-empty {
  color: var(--muted);
  line-height: 1.75;
}

.closing {
  position: relative;
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: #090b0a;
  color: var(--white);
  text-align: center;
}

.closing::before,
.closing::after {
  display: none;
}

.closing > img {
  position: relative;
  inset: auto;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 58%;
}

.closing-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 22px;
  width: 100%;
  padding: 64px max(24px, calc((100% - 860px) / 2)) 82px;
  background: #090b0a;
}

.closing-copy::before {
  content: "♡";
  display: block;
  width: min(100%, 360px);
  margin-bottom: 4px;
  color: rgba(255, 250, 242, 0.72);
  background:
    linear-gradient(rgba(255, 250, 242, 0.32), rgba(255, 250, 242, 0.32)) left center / calc(50% - 28px) 1px no-repeat,
    linear-gradient(rgba(255, 250, 242, 0.32), rgba(255, 250, 242, 0.32)) right center / calc(50% - 28px) 1px no-repeat;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  line-height: 1;
}

.closing-line {
  width: min(100%, 620px);
  margin: 0 auto;
  color: rgba(255, 250, 242, 0.9);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
  font-weight: 400;
  line-height: 1.6;
  text-wrap: balance;
}

.closing-line-primary {
  color: var(--white);
  font-size: 1.22rem;
}

.closing-signature {
  margin: 18px 0 0;
  color: #c9a27f;
  font-family: "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive;
  font-size: 2.9rem;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.closing-signature::after {
  content: "❦  ♡  ❦";
  display: block;
  margin-top: 12px;
  color: rgba(255, 250, 242, 0.52);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.studio-footer {
  display: grid;
  place-items: center;
  min-height: 170px;
  padding: 24px 18px 30px;
  border-top: 1px solid rgba(28, 27, 25, 0.1);
  background: var(--paper);
}

.studio-footer .invitedstudio-sponsor {
  --invitedstudio-card-width: 138px;
  --invitedstudio-logo-width: 102px;
  --invitedstudio-paper: transparent;

  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.studio-footer .invitedstudio-sponsor:hover {
  box-shadow: none;
}

.studio-footer .invitedstudio-sponsor__label,
.studio-footer .invitedstudio-sponsor__visit {
  font-size: 0.3rem;
}

.wishes .invitedstudio-sponsor {
  --invitedstudio-card-width: 132px;
  --invitedstudio-logo-width: 94px;
  --invitedstudio-ink: #8b0000;
  --invitedstudio-muted: rgba(112, 106, 96, 0.78);
  --invitedstudio-gold: rgba(198, 149, 67, 0.72);
  --invitedstudio-paper: transparent;

  margin: clamp(22px, 4vw, 38px) auto 0;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.wishes .invitedstudio-sponsor:hover {
  box-shadow: none;
  transform: translateY(-2px);
}

.wishes .invitedstudio-sponsor__label {
  color: rgba(112, 106, 96, 0.72);
  font-size: 0.28rem;
  letter-spacing: 0.12em;
}

.wishes .invitedstudio-sponsor__logo {
  filter:
    drop-shadow(0 8px 16px rgba(151, 112, 42, 0.12))
    drop-shadow(0 0 10px rgba(255, 239, 202, 0.18));
}

.wishes .invitedstudio-sponsor__visit {
  color: rgba(139, 0, 0, 0.82);
  font-size: 0.26rem;
  letter-spacing: 0.06em;
}

.studio-credit-panel {
  position: relative;
  display: grid;
  justify-items: center;
  overflow: hidden;
  padding: clamp(34px, 6vw, 56px) clamp(18px, 5vw, 58px) clamp(30px, 5vw, 46px);
  border: 1px solid rgba(198, 149, 67, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 252, 240, 0.86), rgba(249, 236, 202, 0.66)),
    radial-gradient(circle at 50% 22%, rgba(255, 250, 242, 0.96), transparent 36%),
    #f8e8ad;
  box-shadow:
    inset 0 0 0 7px rgba(255, 251, 232, 0.52),
    0 26px 74px rgba(151, 112, 42, 0.2);
  color: #7a3f37;
}

.studio-credit-panel::before,
.studio-credit-panel::after {
  content: "";
  position: absolute;
  inset: 16px;
  pointer-events: none;
}

.studio-credit-panel::before {
  border: 1px solid rgba(198, 149, 67, 0.18);
}

.studio-credit-panel::after {
  background:
    radial-gradient(circle at 18% 84%, rgba(201, 137, 128, 0.14), transparent 24%),
    radial-gradient(circle at 80% 18%, rgba(198, 149, 67, 0.16), transparent 28%);
}

.studio-top-line {
  width: 66px;
  height: 1px;
  margin-bottom: 28px;
  background: #8b0000;
}

.studio-label {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: #9b665a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.studio-logo-lockup {
  position: relative;
  z-index: 1;
  width: clamp(142px, 28vw, 196px);
  height: clamp(128px, 25vw, 174px);
  margin-bottom: 14px;
}

.studio-arch {
  position: absolute;
  left: 34%;
  top: 0;
  width: 54%;
  height: 92%;
  border: 1px solid #daa047;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.studio-envelope {
  position: absolute;
  right: 4%;
  bottom: 5%;
  width: 66%;
  height: 70%;
  border: 1.5px solid #daa047;
  background:
    linear-gradient(145deg, rgba(255, 252, 245, 0.98), rgba(248, 240, 221, 0.92));
  box-shadow: 0 12px 28px rgba(148, 95, 60, 0.12);
}

.studio-envelope::before,
.studio-envelope::after,
.envelope-wing,
.envelope-fold {
  content: "";
  position: absolute;
  pointer-events: none;
}

.studio-envelope::before {
  inset: auto 0 0;
  height: 48%;
  background:
    linear-gradient(32deg, transparent 49%, rgba(218, 160, 71, 0.95) 50%, transparent 51%),
    linear-gradient(148deg, transparent 49%, rgba(218, 160, 71, 0.95) 50%, transparent 51%);
}

.envelope-wing {
  top: 37%;
  width: 55%;
  height: 1.5px;
  background: #daa047;
}

.envelope-wing.left {
  left: -2%;
  transform: rotate(-42deg);
  transform-origin: left center;
}

.envelope-wing.right {
  right: -2%;
  transform: rotate(42deg);
  transform-origin: right center;
}

.envelope-fold {
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 52%;
  border-top: 1.5px solid #daa047;
  clip-path: polygon(0 0, 50% 70%, 100% 0, 100% 100%, 0 100%);
}

.studio-card {
  position: absolute;
  left: 18%;
  right: 18%;
  top: -25%;
  height: 72%;
  border: 1px solid rgba(218, 160, 71, 0.86);
  background: rgba(255, 253, 247, 0.98);
  box-shadow: inset 0 0 22px rgba(218, 160, 71, 0.08);
}

.corner {
  position: absolute;
  top: 11%;
  width: 18%;
  height: 18%;
  border-top: 1px solid rgba(218, 160, 71, 0.82);
}

.corner-left {
  left: 9%;
  border-left: 1px solid rgba(218, 160, 71, 0.82);
  border-radius: 0 0 0 12px;
}

.corner-right {
  right: 9%;
  border-right: 1px solid rgba(218, 160, 71, 0.82);
  border-radius: 0 0 12px 0;
}

.studio-ornament,
.studio-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #c89543;
}

.studio-ornament {
  top: 15%;
  width: 30px;
  height: 1px;
}

.studio-ornament::before,
.studio-ornament::after,
.studio-rule span::before,
.studio-rule span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  border-radius: 50% 0 50% 0;
  color: #c89543;
  transform: translateY(-50%) rotate(45deg);
}

.studio-ornament::before {
  left: -8px;
}

.studio-ornament::after {
  right: -8px;
}

.studio-monogram {
  position: absolute;
  left: 50%;
  top: 50%;
  color: #c89543;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 8vw, 4rem);
  line-height: 1;
  transform: translate(-50%, -46%);
}

.studio-dot {
  bottom: 13%;
  width: 5px;
  height: 5px;
  border-radius: 999px;
}

.studio-seal {
  position: absolute;
  left: 50%;
  bottom: 10%;
  width: 42px;
  height: 42px;
  border: 4px solid rgba(255, 225, 216, 0.76);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 236, 232, 0.95), transparent 28%),
    linear-gradient(145deg, #d99b91, #b86d63);
  box-shadow:
    inset 0 0 0 1px rgba(122, 63, 55, 0.18),
    0 5px 12px rgba(120, 62, 55, 0.24);
  transform: translateX(-50%);
}

.studio-seal::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 26%;
  width: 12px;
  height: 20px;
  border-left: 1px solid rgba(255, 250, 242, 0.82);
  border-radius: 50%;
  transform: translateX(-50%) rotate(-18deg);
}

.studio-flower {
  position: absolute;
  left: 2%;
  bottom: 4%;
  width: 42%;
  height: 78%;
}

.studio-stem,
.studio-leaf,
.studio-petal {
  position: absolute;
  display: block;
}

.studio-stem {
  left: 54%;
  bottom: 0;
  width: 2px;
  height: 92%;
  background: linear-gradient(#c89543, #b78437);
  border-radius: 999px;
  transform: rotate(18deg);
  transform-origin: bottom center;
}

.studio-leaf {
  width: 22px;
  height: 10px;
  border: 1px solid #c89543;
  border-radius: 100% 0 100% 0;
  background: rgba(243, 219, 160, 0.55);
}

.leaf-one {
  left: 36%;
  top: 40%;
  transform: rotate(-34deg);
}

.leaf-two {
  left: 58%;
  top: 58%;
  transform: rotate(28deg);
}

.studio-petal {
  left: 13%;
  top: 31%;
  width: 30px;
  height: 34px;
  border: 1px solid rgba(201, 137, 128, 0.64);
  border-radius: 70% 20% 70% 30%;
  background:
    radial-gradient(circle at 36% 33%, rgba(255, 244, 239, 0.96), transparent 35%),
    linear-gradient(135deg, #f4c9c0, #d8968c);
  box-shadow: 0 5px 12px rgba(201, 137, 128, 0.2);
}

.petal-one {
  transform: rotate(-22deg);
}

.petal-two {
  left: 23%;
  top: 28%;
  transform: rotate(18deg) scale(0.86);
  opacity: 0.82;
}

.studio-wordmark {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;
  max-width: 100%;
  color: #c89543;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.3rem, 11vw, 7.4rem);
  font-weight: 400;
  line-height: 0.94;
  text-align: center;
  white-space: nowrap;
}

.studio-wordmark span,
.studio-wordmark strong {
  background: linear-gradient(100deg, #ba842f 4%, #d39c4a 38%, #c98980 66%, #b56f67 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.studio-wordmark strong {
  font-weight: 400;
}

.studio-wordmark em {
  color: #b98734;
  font-size: 0.38em;
  font-style: normal;
}

.studio-rule {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  width: min(88%, 520px);
  margin: 20px 0 18px;
  color: #c89543;
}

.studio-rule::before,
.studio-rule::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}

.studio-rule::after {
  background: linear-gradient(90deg, currentColor, transparent);
}

.studio-rule span {
  position: relative;
  width: 28px;
  height: 28px;
}

.studio-rule span::before,
.studio-rule span::after {
  left: 50%;
  width: 10px;
  height: 10px;
}

.studio-rule span::before {
  transform: translate(-74%, -50%) rotate(45deg);
}

.studio-rule span::after {
  transform: translate(-26%, -50%) rotate(45deg);
}

.studio-visit {
  position: relative;
  z-index: 1;
  color: #8b0000;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 30;
  min-width: 210px;
  transform: translate(-50%, 20px);
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--white);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 70px 24px 22px;
  background: rgba(10, 11, 10, 0.92);
}

.lightbox.is-visible {
  display: grid;
}

.lightbox-stage {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 16px;
  align-items: center;
  width: min(100%, 1280px);
  min-height: 0;
  margin: 0 auto;
}

.lightbox-figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  margin: 0;
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 180px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-figure figcaption {
  min-height: 20px;
  color: rgba(255, 250, 242, 0.72);
  font-size: 0.82rem;
}

.lightbox-nav,
.lightbox-action {
  border: 1px solid rgba(255, 250, 242, 0.36);
  background: rgba(18, 19, 17, 0.62);
  color: var(--white);
  cursor: pointer;
}

.lightbox-nav {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  padding: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  line-height: 1;
}

.lightbox-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: min(100%, 680px);
  margin: 0 auto;
}

.lightbox-action {
  min-height: 44px;
  border-radius: 6px;
  padding: 11px 17px;
  font: inherit;
  text-align: center;
  text-decoration: none;
}

.lightbox-save {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.lightbox-nav:hover,
.lightbox-action:hover {
  border-color: var(--white);
  background: rgba(255, 250, 242, 0.16);
}

.lightbox-save:hover {
  background: #fff;
  color: var(--ink);
}

body.lightbox-open {
  overflow: hidden;
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 20px;
  border: 1px solid rgba(255, 250, 242, 0.35);
  border-radius: 999px;
  padding: 10px 16px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.gift-modal {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(16, 19, 14, 0.76);
  backdrop-filter: blur(10px);
}

.gift-modal.is-visible {
  display: grid;
}

.gift-page {
  position: relative;
  width: min(860px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  border-radius: 8px;
  padding: clamp(24px, 5vw, 48px);
  background: var(--paper);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.gift-page .close-lightbox {
  border-color: rgba(28, 27, 25, 0.22);
  color: var(--ink);
}

.gift-page h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 0.96;
}

.gift-page > p {
  width: min(620px, 100%);
  color: var(--muted);
  line-height: 1.8;
}

.barcode-modal {
  position: fixed;
  inset: 0;
  z-index: 46;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(16, 19, 14, 0.76);
  backdrop-filter: blur(10px);
}

.barcode-modal.is-visible {
  display: grid;
}

.barcode-page {
  position: relative;
  width: min(520px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  border-radius: 8px;
  padding: clamp(26px, 6vw, 44px);
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.barcode-page .close-lightbox {
  border-color: rgba(28, 27, 25, 0.22);
  color: var(--ink);
}

.barcode-page h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 7vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
}

.barcode-guest {
  margin: 14px 0 18px;
  color: var(--muted);
  font-weight: 700;
}

.barcode-page img {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  border: 1px solid rgba(49, 67, 52, 0.12);
  border-radius: 8px;
  background: var(--white);
}

.barcode-code {
  margin: 16px 0 0;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

@keyframes float-heart {
  0%,
  100% {
    transform: translateY(0) rotate(45deg) scale(1);
  }

  50% {
    transform: translateY(-22px) rotate(45deg) scale(1.12);
  }
}

@keyframes pulse-ring {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.55;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.18;
  }
}

@keyframes warm-open {
  0% {
    opacity: 0;
    transform: scale(0.98);
  }

  34% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: scale(1.04);
  }
}

@keyframes envelope-press {
  0% {
    transform: translateY(0) scale(1);
  }

  40% {
    transform: translateY(8px) scale(0.985);
  }

  100% {
    transform: translateY(-10px) scale(1.015);
  }
}

@keyframes seal-break {
  0% {
    opacity: 1;
    filter: blur(0);
  }

  100% {
    opacity: 0;
    filter: blur(8px);
    transform: translate(-50%, -50%) scale(1.35);
  }
}

@keyframes drift-sparkle {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }

  50% {
    transform: translateY(-18px);
    opacity: 0.9;
  }
}

@media (max-width: 780px) {
  .nav-links {
    display: none;
  }

  .topbar {
    padding: 14px 18px;
  }

  .nav-tools {
    gap: 8px;
  }

  .icon-btn {
    min-width: 82px;
    padding: 0 13px;
  }

  .lang-select {
    max-width: 112px;
    padding-left: 12px;
  }

  .hero-copy {
    width: calc(100% - 36px);
    margin: 0 auto;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 14vw, 5rem);
  }

  .intro-grid,
  .gift-grid,
  .couple,
  .wishes-layout,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .story-flow::before {
    left: 17px;
  }

  .story-moment {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-left: 46px;
  }

  .story-moment::before {
    top: 32px;
    left: 10px;
  }

  .story-moment span {
    padding-top: 0;
  }

  .profile,
  .profile img {
    min-height: 540px;
  }

  .timer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timer div {
    min-height: 118px;
  }

  .photo-break {
    height: clamp(520px, 78vh, 820px);
  }

  .gift-open-large {
    width: 100%;
  }

  .closing-line {
    font-size: 0.92rem;
  }

  .closing-line-primary {
    font-size: 1.04rem;
  }

  .closing-signature {
    margin-top: 14px;
    font-size: 1.85rem;
  }

  .closing > img {
    aspect-ratio: 4 / 5;
    object-position: center 55%;
  }

  .closing-copy {
    gap: 20px;
    padding: 46px 28px 64px;
  }

  .closing-copy::before {
    width: min(100%, 270px);
    font-size: 1.55rem;
  }

  .lightbox {
    gap: 12px;
    padding: 66px 12px 14px;
  }

  .lightbox-stage {
    position: relative;
    display: block;
  }

  .lightbox img {
    max-height: calc(100dvh - 190px);
  }

  .lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
    background: rgba(10, 11, 10, 0.72);
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-actions {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1fr;
    gap: 7px;
  }

  .lightbox-action {
    min-width: 0;
    padding: 10px 6px;
    font-size: 0.78rem;
  }

}

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

@media (hover: none) and (pointer: coarse) {
  html {
    scroll-behavior: auto;
  }

  body {
    -webkit-overflow-scrolling: touch;
  }

  .primary-btn:hover,
  .ghost-btn:hover,
  .copy-btn:hover,
  .icon-btn:hover,
  .masonry button:hover img,
  .youtube-cover:hover img,
  .emoji-picker button:hover,
  .wishes .invitedstudio-sponsor:hover {
    transform: none;
  }

  .seal-button:hover {
    transform: translate(-50%, -50%);
  }

  .newspaper-theme::before {
    position: absolute;
    min-height: 100%;
  }
}

.newspaper-theme {
  --paper: #f4efe3;
  --ink: #191714;
  --muted: #5f574d;
  --moss: #202d25;
  --clay: #966c4f;
  --champagne: #dfd2bc;
  --white: #fffaf0;
  background:
    linear-gradient(rgba(25, 23, 20, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 20% 0%, rgba(150, 108, 79, 0.12), transparent 28%),
    var(--paper);
  background-size: 100% 7px, auto, auto;
  font-family: Georgia, "Times New Roman", serif;
}

.newspaper-theme::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 25% 18%, rgba(25, 23, 20, 0.05) 0 1px, transparent 1.5px),
    radial-gradient(circle at 74% 62%, rgba(25, 23, 20, 0.035) 0 1px, transparent 1.5px);
  background-size: 18px 18px, 23px 23px;
  opacity: 0.42;
}

.newspaper-theme main,
.newspaper-theme header,
.newspaper-theme .topbar,
.newspaper-theme .gift-modal,
.newspaper-theme .lightbox,
.newspaper-theme .toast,
.newspaper-theme .warm-transition {
  position: relative;
  z-index: 1;
}

.newspaper-theme .cover {
  position: fixed;
  z-index: 20;
}

.newspaper-theme .topbar {
  left: 20px;
  right: 20px;
  top: 18px;
  min-height: 72px;
  border: 1px solid rgba(25, 23, 20, 0.28);
  border-left: 0;
  border-right: 0;
  background: rgba(244, 239, 227, 0.86);
  color: var(--ink);
  backdrop-filter: blur(10px);
}

.newspaper-theme .brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.newspaper-theme .nav-links {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.newspaper-theme .icon-btn,
.newspaper-theme .lang-select,
.newspaper-theme .primary-btn,
.newspaper-theme .ghost-btn {
  border-radius: 0;
  box-shadow: none;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.newspaper-theme .hero {
  background: var(--paper);
  color: var(--ink);
}

.newspaper-theme .hero::before {
  opacity: 0.18;
  filter: grayscale(1) blur(10px);
}

.newspaper-theme .hero-photo {
  inset: 108px 20px 24px auto;
  width: min(46vw, 690px);
  height: calc(100% - 132px);
  object-fit: cover;
  filter: grayscale(0.88) contrast(1.08);
  opacity: 0.92;
  border: 1px solid rgba(25, 23, 20, 0.24);
}

.newspaper-theme .hero-overlay {
  background:
    linear-gradient(90deg, rgba(244, 239, 227, 0.98) 0%, rgba(244, 239, 227, 0.92) 42%, rgba(244, 239, 227, 0.34) 100%);
}

.newspaper-theme .hero-copy {
  width: min(760px, 88vw);
  padding-top: 156px;
  padding-bottom: clamp(36px, 7vw, 72px);
}

.newspaper-theme .hero h1 {
  padding: 18px 0;
  border-top: 4px double rgba(25, 23, 20, 0.72);
  border-bottom: 4px double rgba(25, 23, 20, 0.72);
  font-size: clamp(3.1rem, 7vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
}

.newspaper-theme .hero h1 span {
  color: var(--clay);
  font-style: italic;
}

.newspaper-theme .hero-line {
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.newspaper-theme .press-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.newspaper-theme .press-meta span {
  border: 1px solid rgba(25, 23, 20, 0.34);
  padding: 7px 9px;
  background: rgba(255, 250, 240, 0.62);
}

.newspaper-theme .section-inner {
  width: min(1180px, calc(100% - 36px));
}

.newspaper-theme .band {
  background: transparent;
}

.newspaper-theme .intro-photo-bg::before,
.newspaper-theme .gift-photo-bg::before {
  filter: grayscale(0.8) contrast(1.08);
}

.newspaper-theme .intro-photo-bg::before {
  background:
    linear-gradient(90deg, rgba(244, 239, 227, 0.96) 0%, rgba(244, 239, 227, 0.9) 48%, rgba(244, 239, 227, 0.42) 100%),
    var(--photo) center / cover no-repeat;
}

.newspaper-theme .intro-grid,
.newspaper-theme .gift-grid {
  align-items: stretch;
  border-top: 2px solid rgba(25, 23, 20, 0.72);
  border-bottom: 1px solid rgba(25, 23, 20, 0.36);
}

.newspaper-theme .intro h2,
.newspaper-theme .gift h2,
.newspaper-theme .section-heading h2,
.newspaper-theme .closing h2 {
  font-size: clamp(2.45rem, 5.6vw, 5.7rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.newspaper-theme .intro-text,
.newspaper-theme .gift p,
.newspaper-theme .section-copy {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  line-height: 1.68;
}

.newspaper-theme .intro-text {
  columns: 2 220px;
  border-left: 1px solid rgba(25, 23, 20, 0.3);
  background: rgba(255, 250, 240, 0.48);
}

.newspaper-theme .eyebrow {
  color: var(--clay);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.newspaper-theme .profile {
  border: 1px solid rgba(25, 23, 20, 0.26);
  border-radius: 0;
  background: #e7dcc8;
  box-shadow: 0 18px 44px rgba(25, 23, 20, 0.08);
}

.newspaper-theme .profile img {
  filter: grayscale(0.38) contrast(1.08);
}

.newspaper-theme .profile div {
  left: 16px;
  right: 16px;
  bottom: 16px;
  border: 1px solid rgba(25, 23, 20, 0.22);
  border-radius: 0;
  background: rgba(244, 239, 227, 0.9);
}

.newspaper-theme .story {
  border-top: 4px double rgba(25, 23, 20, 0.56);
  border-bottom: 4px double rgba(25, 23, 20, 0.56);
}

.newspaper-theme .story-flow::before {
  background: rgba(25, 23, 20, 0.35);
}

.newspaper-theme .story-moment {
  border-bottom: 1px solid rgba(25, 23, 20, 0.16);
}

.newspaper-theme .story-moment h3,
.newspaper-theme .detail-card h3,
.newspaper-theme .bank-card h3,
.newspaper-theme .wish-item h3 {
  text-transform: uppercase;
}

.newspaper-theme .timer div,
.newspaper-theme .detail-card,
.newspaper-theme .form-panel,
.newspaper-theme .wish-item,
.newspaper-theme .bank-card {
  border-color: rgba(25, 23, 20, 0.24);
  border-radius: 0;
  background: rgba(255, 250, 240, 0.56);
  box-shadow: none;
}

.newspaper-theme .detail-card {
  border-top: 4px solid rgba(25, 23, 20, 0.7);
}

.newspaper-theme .photo-break img,
.newspaper-theme .closing > img {
  filter: grayscale(0.55) contrast(1.08);
}

.newspaper-theme .masonry {
  column-gap: 12px;
}

.newspaper-theme .masonry button {
  border: 1px solid rgba(25, 23, 20, 0.24);
  border-radius: 0;
  background: var(--white);
  padding: 7px;
  cursor: zoom-in;
  break-inside: avoid;
}

.newspaper-theme .masonry img {
  filter: grayscale(0.45) contrast(1.04);
}

.newspaper-theme .gift-photo-bg::before {
  background:
    linear-gradient(90deg, rgba(18, 17, 15, 0.86) 0%, rgba(18, 17, 15, 0.68) 48%, rgba(18, 17, 15, 0.2) 100%),
    var(--photo) center 45% / cover no-repeat;
}

.newspaper-theme .closing {
  background: #171512;
}

@media (max-width: 780px) {
  .newspaper-theme .topbar {
    left: 12px;
    right: 12px;
  }

  .newspaper-theme .brand {
    font-size: 1.15rem;
  }

  .newspaper-theme .hero-photo {
    inset: 94px 12px 18px 12px;
    width: calc(100% - 24px);
    height: 42%;
    opacity: 0.36;
  }

  .newspaper-theme .hero-copy {
    padding-top: 150px;
  }

  .newspaper-theme .hero h1 {
    font-size: clamp(2.85rem, 13vw, 4.8rem);
  }

  .newspaper-theme .press-meta span {
    flex: 1 1 auto;
  }
}

@media (max-width: 460px) {
  .cover-content {
    padding: 20px;
  }

  .cover h1 {
    font-size: 3.65rem;
  }

  .envelope-stage {
    gap: 20px;
    width: min(86vw, 380px);
    padding-inline: 0;
  }

  .envelope-card {
    width: 100%;
    aspect-ratio: 0.72;
    border-radius: 8px;
  }

  .envelope-card::before {
    background:
      linear-gradient(48deg, transparent 49.7%, rgba(182, 133, 102, 0.36) 50%, transparent 50.4%),
      linear-gradient(132deg, transparent 49.7%, rgba(182, 133, 102, 0.32) 50%, transparent 50.4%);
  }

  .seal-button {
    width: 118px;
    height: 118px;
  }

  .envelope-caption h1 {
    font-size: clamp(2.25rem, 9.2vw, 2.9rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .section-inner {
    width: min(100% - 28px, 1120px);
  }

  .profile,
  .profile img {
    min-height: 460px;
  }

  .profile div {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .studio-footer {
    min-height: 142px;
    padding-block: 20px 24px;
  }

  .studio-footer .invitedstudio-sponsor {
    --invitedstudio-card-width: 112px;
    --invitedstudio-logo-width: 82px;
  }

  .studio-footer .invitedstudio-sponsor__label,
  .studio-footer .invitedstudio-sponsor__visit {
    font-size: 0.26rem;
  }
}
