:root {
  color-scheme: light;
  --ink: #243349;
  --ink-soft: #58647a;
  --paper: #fffdf5;
  --paper-deep: #f6ecd2;
  --gold: #c89843;
  --gold-light: #eed89b;
  --gold-dark: #8b642b;
  --theme-deep: #283669;
  --theme-mid: #5c67b5;
  --theme-soft: #babdec;
  --theme-glow: rgba(136, 150, 255, 0.34);
  --accent: #ca3e58;
  --accent-dark: #84273b;
  --line: #d6e0ea;
  --surface: #ffffff;
  --surface-2: #eef4f8;
  --text: #16202a;
  --shadow: 0 20px 60px rgba(8, 14, 35, 0.28);
  --site-content-width: 1240px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.theme-aurora {
  --theme-deep: #284f5d;
  --theme-mid: #4c9b99;
  --theme-soft: #a9ded0;
  --theme-glow: rgba(91, 215, 190, 0.36);
  --accent: #d14c71;
  --accent-dark: #8f2948;
}

.theme-meadow {
  --theme-deep: #31583f;
  --theme-mid: #78a86b;
  --theme-soft: #c8df9c;
  --theme-glow: rgba(172, 218, 112, 0.34);
  --accent: #d35d4e;
  --accent-dark: #91362f;
}

.theme-sunrise {
  --theme-deep: #6b3e54;
  --theme-mid: #c76d73;
  --theme-soft: #f1bc98;
  --theme-glow: rgba(244, 163, 122, 0.38);
  --accent: #b9344e;
  --accent-dark: #772438;
}

.theme-lagoon {
  --theme-deep: #205170;
  --theme-mid: #3b92a5;
  --theme-soft: #a2d7d7;
  --theme-glow: rgba(91, 203, 218, 0.38);
  --accent: #d25965;
  --accent-dark: #8c303d;
}

.theme-starlight {
  --theme-deep: #292d66;
  --theme-mid: #6656ae;
  --theme-soft: #bbb2e8;
  --theme-glow: rgba(143, 112, 239, 0.38);
  --accent: #be395f;
  --accent-dark: #79243f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #111831;
}

body.invitation-page {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 15% 17%, rgba(255, 255, 255, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 83% 12%, rgba(255, 255, 255, 0.48) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.32) 0 1px, transparent 2px),
    radial-gradient(circle at 30% 82%, rgba(255, 255, 255, 0.28) 0 1px, transparent 2px),
    radial-gradient(circle at 50% 8%, var(--theme-glow), transparent 33%),
    linear-gradient(155deg, #111831 0%, var(--theme-deep) 47%, #11162c 100%);
  background-attachment: fixed;
  background-size: 180px 180px, 240px 240px, 210px 210px, 280px 280px, auto, auto;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

body.invitation-page::before,
body.invitation-page::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 42vw;
  height: 42vw;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

body.invitation-page::before {
  top: 9vh;
  left: -20vw;
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.018), 0 0 0 120px rgba(255, 255, 255, 0.012);
}

body.invitation-page::after {
  right: -21vw;
  bottom: 4vh;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.018), 0 0 0 140px rgba(255, 255, 255, 0.01);
}

.invitation-page .topbar {
  --topbar-bg: rgba(255, 255, 255, 0.95);
}

.invitation-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 980px;
  margin: 0 auto 20px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 700;
}

.breadcrumbs a {
  color: #ffffff;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.invitation-stage {
  position: relative;
  width: min(980px, 100%);
  min-height: 1020px;
  margin: 0 auto;
  padding: 24px 102px 118px;
  isolation: isolate;
}

.ambient-star {
  position: absolute;
  z-index: -2;
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 13px rgba(255, 255, 255, 0.8));
  opacity: 0.74;
}

.ambient-star::before,
.ambient-star::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 999px;
  background: #fff8d0;
}

.ambient-star::before {
  width: 3px;
  height: 100%;
}

.ambient-star::after {
  width: 100%;
  height: 3px;
}

.star-one {
  top: 14%;
  left: 3%;
  transform: scale(0.75) rotate(8deg);
}

.star-two {
  top: 42%;
  right: 1%;
  transform: scale(1.15) rotate(18deg);
}

.star-three {
  bottom: 20%;
  left: 7%;
  transform: scale(0.52) rotate(32deg);
}

.envelope-back,
.envelope-front {
  position: absolute;
  left: 50%;
  width: min(880px, calc(100% - 34px));
  transform: translateX(-50%);
}

.envelope-back {
  z-index: -1;
  bottom: 32px;
  height: 500px;
  overflow: hidden;
  border: 1px solid rgba(104, 78, 36, 0.58);
  border-radius: 8px 8px 18px 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), transparent 45%),
    var(--paper-deep);
  box-shadow: 0 30px 80px rgba(5, 9, 25, 0.42);
}

.envelope-back::before {
  content: "";
  position: absolute;
  top: -286px;
  left: 50%;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(139, 100, 43, 0.5);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.52), transparent 55%),
    #f0dfb9;
  transform: translateX(-50%) rotate(45deg);
}

.envelope-front {
  z-index: 2;
  bottom: 31px;
  height: 235px;
  overflow: hidden;
  border: 1px solid rgba(121, 88, 37, 0.62);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.45), transparent 38%),
    linear-gradient(20deg, #ead5a8, #f8eccb 58%, #e6cd9a);
  box-shadow: 0 20px 34px rgba(8, 11, 28, 0.2);
  pointer-events: none;
}

.envelope-front::after {
  content: "\2726";
  position: absolute;
  top: 56px;
  left: 50%;
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border: 2px solid var(--accent-dark);
  border-radius: 48% 52% 46% 54% / 52% 46% 54% 48%;
  background:
    radial-gradient(circle at 35% 26%, rgba(255, 255, 255, 0.3), transparent 19%),
    radial-gradient(circle, #e15c72 0 47%, var(--accent) 49% 70%, var(--accent-dark) 72% 100%);
  box-shadow:
    inset 0 0 0 5px rgba(117, 25, 50, 0.22),
    0 9px 16px rgba(74, 41, 29, 0.24);
  color: rgba(255, 226, 193, 0.88);
  font-size: 31px;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(102, 27, 47, 0.35);
  transform: translateX(-50%) rotate(6deg);
}

.envelope-fold-left,
.envelope-fold-right {
  position: absolute;
  bottom: -170px;
  width: 530px;
  height: 530px;
  border: 1px solid rgba(139, 100, 43, 0.27);
  background: rgba(255, 249, 229, 0.33);
  transform: rotate(45deg);
}

.envelope-fold-left {
  left: -298px;
}

.envelope-fold-right {
  right: -298px;
}

.invitation-letter {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 890px;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  border: 1px solid #d3b66f;
  border-radius: 2px;
  background:
    radial-gradient(circle at 12% 18%, rgba(201, 152, 67, 0.08) 0 1px, transparent 1.6px),
    radial-gradient(circle at 82% 74%, rgba(115, 87, 44, 0.07) 0 1px, transparent 1.6px),
    linear-gradient(100deg, rgba(133, 92, 37, 0.035), transparent 18%, rgba(255, 255, 255, 0.7) 55%, transparent),
    var(--paper);
  background-size: 32px 32px, 39px 39px, auto, auto;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 0 0 7px rgba(255, 250, 232, 0.7),
    0 0 0 8px rgba(191, 147, 67, 0.48),
    0 35px 80px rgba(8, 12, 31, 0.36);
  padding: 80px 88px 96px;
  transform: rotate(-0.28deg);
}

.invitation-letter::before,
.invitation-letter::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.invitation-letter::before {
  inset: 20px;
  border: 1px solid rgba(184, 137, 55, 0.7);
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px rgba(200, 152, 67, 0.35);
}

.invitation-letter::after {
  top: -120px;
  right: -110px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(184, 137, 55, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(184, 137, 55, 0.025), 0 0 0 56px rgba(184, 137, 55, 0.018);
}

.letter-corner {
  position: absolute;
  z-index: 2;
  width: 55px;
  height: 55px;
  border-color: var(--gold);
  pointer-events: none;
}

.letter-corner::after {
  content: "✦";
  position: absolute;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1;
}

.corner-nw {
  top: 32px;
  left: 32px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.corner-nw::after {
  top: -9px;
  left: -8px;
}

.corner-ne {
  top: 32px;
  right: 32px;
  border-top: 2px solid;
  border-right: 2px solid;
}

.corner-ne::after {
  top: -9px;
  right: -8px;
}

.corner-sw {
  bottom: 32px;
  left: 32px;
  border-bottom: 2px solid;
  border-left: 2px solid;
}

.corner-sw::after {
  bottom: -9px;
  left: -8px;
}

.corner-se {
  right: 32px;
  bottom: 32px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.corner-se::after {
  right: -8px;
  bottom: -9px;
}

.invitation-heading {
  position: relative;
  z-index: 1;
  max-width: 650px;
  text-align: center;
}

.invitation-kicker,
.invitation-preamble,
.invitation-game,
.invitation-heading h1,
.invitation-description,
.invitation-signature span,
.invitation-signature strong {
  margin: 0;
}

.invitation-kicker {
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.invitation-flourish {
  display: grid;
  grid-template-columns: 82px auto 82px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin: 17px 0 14px;
  color: var(--gold);
}

.invitation-flourish span {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.invitation-flourish span:last-child {
  transform: scaleX(-1);
}

.invitation-flourish b {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.invitation-preamble {
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 2.2vw, 21px);
  font-style: italic;
}

.invitation-heading h1 {
  max-width: 680px;
  margin-top: 8px;
  color: var(--theme-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6.2vw, 68px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

.invitation-game {
  margin-top: 15px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gift-portrait {
  position: relative;
  z-index: 1;
  display: grid;
  width: 235px;
  height: 235px;
  flex: 0 0 auto;
  place-items: center;
  margin: 34px auto 24px;
  border: 1px solid rgba(183, 137, 54, 0.62);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 43%, rgba(255, 255, 255, 0.98) 0 28%, rgba(255, 255, 255, 0.62) 46%, transparent 65%),
    radial-gradient(circle, var(--theme-soft), color-mix(in srgb, var(--theme-soft) 32%, white));
  box-shadow:
    0 0 0 9px var(--paper),
    0 0 0 10px rgba(200, 152, 67, 0.28),
    0 22px 50px var(--theme-glow),
    inset 0 0 38px rgba(255, 255, 255, 0.84);
}

.portrait-ring {
  position: absolute;
  border: 1px solid rgba(198, 150, 64, 0.32);
  border-radius: 50%;
  pointer-events: none;
}

.ring-one {
  inset: 14px;
  border-style: dashed;
  transform: rotate(12deg);
}

.ring-two {
  inset: 25px;
}

.portrait-sparkle {
  position: absolute;
  z-index: 3;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  filter: drop-shadow(0 2px 5px rgba(133, 92, 36, 0.24));
}

.sparkle-one {
  top: 18px;
  right: 21px;
  font-size: 25px;
}

.sparkle-two {
  bottom: 30px;
  left: 16px;
  font-size: 21px;
}

.sparkle-three {
  top: 54px;
  left: 13px;
  font-size: 12px;
}

.gift-artwork {
  position: relative;
  z-index: 2;
  display: grid;
  width: 192px;
  height: 192px;
  place-items: center;
}

.gift-artwork img {
  display: block;
  width: 184px;
  height: 184px;
  object-fit: contain;
  filter: drop-shadow(0 14px 10px rgba(31, 38, 72, 0.22));
  image-rendering: pixelated;
}

.gift-box {
  position: relative;
  display: block;
  width: 126px;
  height: 118px;
  filter: drop-shadow(0 15px 9px rgba(63, 38, 34, 0.2));
}

.gift-box-body,
.gift-box-lid,
.gift-ribbon-vertical,
.gift-ribbon-horizontal,
.gift-bow {
  position: absolute;
  display: block;
}

.gift-box-body {
  right: 9px;
  bottom: 2px;
  left: 9px;
  height: 77px;
  border: 2px solid var(--accent-dark);
  border-radius: 4px 4px 9px 9px;
  background: linear-gradient(135deg, #e75e79, var(--accent));
}

.gift-box-lid {
  top: 29px;
  left: 1px;
  z-index: 2;
  width: 124px;
  height: 28px;
  border: 2px solid var(--accent-dark);
  border-radius: 7px;
  background: #ed6c83;
}

.gift-ribbon-vertical {
  top: 30px;
  bottom: 2px;
  left: 52px;
  z-index: 3;
  width: 22px;
  background: linear-gradient(90deg, #e7bd56, #ffe69b, #d39a32);
}

.gift-ribbon-horizontal {
  top: 38px;
  left: 2px;
  z-index: 3;
  width: 121px;
  height: 12px;
  background: linear-gradient(#ffe69b, #d9a53b);
}

.gift-bow {
  top: 3px;
  z-index: 4;
  width: 55px;
  height: 36px;
  border: 2px solid #a97522;
  background: linear-gradient(145deg, #ffeaa3, #d89c32);
}

.bow-left {
  left: 13px;
  border-radius: 80% 20% 70% 30%;
  transform: rotate(14deg);
}

.bow-right {
  right: 13px;
  border-radius: 20% 80% 30% 70%;
  transform: rotate(-14deg);
}

.invitation-description {
  position: relative;
  z-index: 1;
  max-width: 590px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.62;
  text-align: center;
  text-wrap: balance;
}

.invitation-description::before,
.invitation-description::after {
  color: var(--gold-light);
  font-size: 28px;
  line-height: 0;
  vertical-align: -6px;
}

.invitation-description::before {
  content: "“";
  margin-right: 2px;
}

.invitation-description::after {
  content: "”";
  margin-left: 2px;
}

.invitation-details {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(590px, 100%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 30px 0 0;
  border-top: 1px solid rgba(183, 137, 54, 0.34);
  border-bottom: 1px solid rgba(183, 137, 54, 0.34);
  padding: 15px 0;
}

.invitation-details > div {
  min-width: 0;
  padding: 0 16px;
  text-align: center;
}

.invitation-details > div + div {
  border-left: 1px solid rgba(183, 137, 54, 0.25);
}

.invitation-details dt {
  color: var(--gold-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.invitation-details dd {
  overflow: hidden;
  margin: 3px 0 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
}

.invitation-action {
  position: relative;
  z-index: 3;
  display: grid;
  min-width: min(365px, 100%);
  margin-top: 30px;
  border: 1px solid var(--theme-deep);
  border-radius: 4px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.09), transparent),
    var(--theme-deep);
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.12),
    0 7px 0 color-mix(in srgb, var(--theme-deep) 74%, black),
    0 13px 24px rgba(41, 45, 102, 0.22);
  color: #ffffff;
  padding: 13px 24px 12px;
  text-align: center;
  text-decoration: none;
  transform: translateY(0);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.invitation-action span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
}

.invitation-action small {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.invitation-signature {
  position: relative;
  z-index: 1;
  display: grid;
  margin-top: 39px;
  color: var(--ink-soft);
  text-align: center;
}

.invitation-signature span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-style: italic;
}

.invitation-signature strong {
  color: var(--theme-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 600;
}

.wax-seal {
  position: absolute;
  z-index: 4;
  right: 42px;
  bottom: 41px;
  display: grid;
  width: 83px;
  height: 83px;
  place-items: center;
  border: 2px solid var(--accent-dark);
  border-radius: 47% 53% 52% 48% / 54% 45% 55% 46%;
  background:
    radial-gradient(circle at 35% 26%, rgba(255, 255, 255, 0.28), transparent 20%),
    radial-gradient(circle, #e15c72 0 48%, var(--accent) 50% 70%, var(--accent-dark) 72% 100%);
  box-shadow:
    inset 0 0 0 5px rgba(117, 25, 50, 0.25),
    0 8px 12px rgba(76, 30, 37, 0.28);
  transform: rotate(8deg);
}

.wax-seal::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(255, 230, 216, 0.48);
  border-radius: 50%;
}

.seal-star,
.seal-star::before {
  display: block;
  width: 34px;
  height: 34px;
  background: rgba(255, 226, 193, 0.72);
  clip-path: polygon(50% 0, 61% 34%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 34%);
}

.seal-star::before {
  content: "";
  transform: rotate(22.5deg) scale(0.66);
}

.collection-guide {
  display: grid;
  max-width: 980px;
  grid-template-columns: minmax(0, 0.9fr) minmax(330px, 1.1fr);
  gap: 30px 54px;
  margin: 40px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(10, 16, 39, 0.5);
  box-shadow: 0 30px 70px rgba(4, 8, 22, 0.24);
  color: #ffffff;
  padding: 42px;
  backdrop-filter: blur(18px);
}

.guide-intro h2,
.guide-intro p,
.collection-steps,
.collection-steps p,
.availability-note {
  margin: 0;
}

.guide-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.guide-intro h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}

.guide-intro p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
}

.collection-steps {
  display: grid;
  gap: 13px;
  list-style: none;
  padding: 0;
}

.collection-steps li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0 0 13px;
}

.collection-steps li:last-child {
  border-bottom: 0;
}

.collection-steps li > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(238, 216, 155, 0.45);
  border-radius: 50%;
  background: rgba(238, 216, 155, 0.1);
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 700;
}

.collection-steps strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.collection-steps p {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

.guide-actions {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 10px;
}

.guide-actions a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  color: #ffffff;
  font-weight: 800;
  padding: 10px 17px;
  text-decoration: none;
}

.guide-actions .guide-primary {
  border-color: var(--gold-light);
  background: var(--gold-light);
  color: #3c2e21;
}

.guide-actions .guide-secondary {
  background: rgba(255, 255, 255, 0.07);
}

@media (hover: hover) and (pointer: fine) {
  .invitation-action:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow:
      inset 0 0 0 3px rgba(255, 255, 255, 0.14),
      0 9px 0 color-mix(in srgb, var(--theme-deep) 74%, black),
      0 17px 28px rgba(41, 45, 102, 0.26);
  }

  .guide-actions a:hover {
    filter: brightness(1.08);
  }
}

.availability-note {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  padding-top: 18px;
}

@media (max-width: 850px) {
  .invitation-stage {
    min-height: 950px;
    padding-right: 54px;
    padding-left: 54px;
  }

  .invitation-letter {
    min-height: 830px;
    padding: 72px 58px 88px;
  }

  .collection-guide {
    grid-template-columns: 1fr;
  }

  .guide-actions,
  .availability-note {
    grid-column: 1;
  }
}

@media (max-width: 620px) {
  .invitation-main {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
  }

  .breadcrumbs {
    margin-bottom: 13px;
    padding: 0 4px;
    font-size: 11px;
  }

  .invitation-stage {
    min-height: auto;
    padding: 8px 7px 45px;
  }

  .envelope-back,
  .envelope-front,
  .ambient-star {
    display: none;
  }

  .invitation-letter {
    min-height: 0;
    padding: 60px 30px 78px;
    transform: none;
  }

  .invitation-letter::before {
    inset: 13px;
  }

  .letter-corner {
    width: 34px;
    height: 34px;
  }

  .corner-nw,
  .corner-ne {
    top: 23px;
  }

  .corner-nw,
  .corner-sw {
    left: 23px;
  }

  .corner-ne,
  .corner-se {
    right: 23px;
  }

  .corner-sw,
  .corner-se {
    bottom: 23px;
  }

  .invitation-kicker {
    font-size: 9px;
    letter-spacing: 0.15em;
  }

  .invitation-flourish {
    grid-template-columns: 54px auto 54px;
  }

  .gift-portrait {
    width: 202px;
    height: 202px;
    margin-top: 27px;
  }

  .gift-artwork,
  .gift-artwork img {
    width: 166px;
    height: 166px;
  }

  .invitation-description {
    font-size: 16px;
  }

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

  .invitation-details > div + div {
    border-left: 0;
  }

  .invitation-action {
    min-width: 100%;
    padding-right: 12px;
    padding-left: 12px;
  }

  .wax-seal {
    right: 27px;
    bottom: 26px;
    width: 64px;
    height: 64px;
  }

  .seal-star,
  .seal-star::before {
    width: 27px;
    height: 27px;
  }

  .invitation-signature {
    margin-top: 34px;
    margin-right: 50px;
  }

  .collection-guide {
    gap: 28px;
    margin-top: 18px;
    border-radius: 14px;
    padding: 28px 22px;
  }

  .guide-actions {
    display: grid;
  }
}

/*
 * Fixed multi-layer backgrounds, backdrop blurs, and CSS filters make older
 * mobile GPUs repaint large areas on every scroll frame. Keep the invitation's
 * layout and palette on touch devices while using effects that can be composited
 * without those full-viewport repaints.
 */
@media (max-width: 620px), (hover: none) and (pointer: coarse) {
  body.invitation-page {
    background:
      radial-gradient(circle at 50% 8%, var(--theme-glow), transparent 33%),
      linear-gradient(155deg, #111831 0%, var(--theme-deep) 47%, #11162c 100%);
    background-attachment: scroll;
  }

  body.invitation-page::before,
  body.invitation-page::after {
    display: none;
  }

  .invitation-page .topbar {
    --topbar-bg: #ffffff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .portrait-sparkle,
  .gift-artwork img,
  .gift-box {
    filter: none;
  }

  .collection-guide {
    background: rgba(10, 16, 39, 0.94);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .invitation-action,
  .guide-actions a,
  .breadcrumbs a,
  .invitation-page .topbar a,
  .invitation-page .topbar button {
    touch-action: manipulation;
  }

  .invitation-action {
    transition: none;
  }
}

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

  .invitation-action {
    transition: none;
  }
}

@media print {
  html,
  body.invitation-page {
    background: #ffffff;
  }

  .topbar,
  .breadcrumbs,
  .collection-guide,
  .envelope-back,
  .envelope-front,
  .ambient-star {
    display: none !important;
  }

  .invitation-main,
  .invitation-stage {
    width: 100%;
    min-height: 0;
    padding: 0;
  }

  .invitation-letter {
    min-height: 0;
    box-shadow: none;
    transform: none;
  }
}
