:root {
  --paper: #f7f1e9;
  --paper-light: #fffdf9;
  --ink: #27231f;
  --muted: #87786d;
  --gold: #a77b45;
  --vermillion: #b22a22;
  --coral: #e96755;
  --sage: #68756a;
  --line: rgba(125, 89, 52, 0.35);
  --shell-width: 430px;
}

.live-like-button {
  position: fixed;
  z-index: 69;
  right: max(12px, calc((100vw - var(--shell-width)) / 2 + 12px));
  bottom: max(70px, calc(env(safe-area-inset-bottom) + 70px));
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.35), 0 3px 12px rgba(48, 25, 25, 0.12);
  color: #e73545;
  backdrop-filter: blur(8px) saturate(1.15);
  -webkit-backdrop-filter: blur(8px) saturate(1.15);
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.25s ease, transform 0.2s ease, visibility 0.25s ease;
}

.live-like-button > span {
  font: 26px/1 system-ui, sans-serif;
  text-shadow: 0 1px 5px rgba(255, 255, 255, 0.9);
}

.live-like-button b {
  position: absolute;
  right: -1px;
  bottom: -1px;
  min-width: 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 9px;
  padding: 1px 4px;
  background: rgba(215, 40, 58, 0.82);
  color: #fff;
  font: 700 8px/1.35 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.live-like-button:hover,
.live-like-button:focus-visible {
  outline: 2px solid rgba(231, 53, 69, 0.38);
  outline-offset: 2px;
  transform: translateY(-2px);
}

.live-like-button.is-pulsing {
  animation: liveLikePulse 0.36s ease;
}

html.invitation-pending .live-like-button,
html.invitation-pending .live-like-layer,
html.audio-gate-open .live-like-button,
html.audio-gate-open .live-like-layer {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.live-like-layer {
  position: fixed;
  z-index: 67;
  right: max(12px, calc((100vw - var(--shell-width)) / 2 + 12px));
  bottom: max(118px, calc(env(safe-area-inset-bottom) + 118px));
  width: 210px;
  height: min(44svh, 380px);
  overflow: visible;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.live-like-particle {
  --like-drift: -105px;
  --like-rise: -240px;
  --like-rotate: 0deg;
  --like-duration: 3s;
  position: absolute;
  right: 11px;
  bottom: 0;
  max-width: 142px;
  color: #ec3047;
  font: 800 18px/1.05 system-ui, sans-serif;
  opacity: 0;
  text-align: center;
  text-shadow: 0 2px 6px rgba(255, 255, 255, 0.92), 0 2px 8px rgba(129, 20, 31, 0.2);
  white-space: nowrap;
  animation: liveLikeFloat var(--like-duration) ease-out forwards;
  will-change: transform, opacity;
}

.live-like-particle.is-emphasized {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 14px;
  background: rgba(255, 246, 247, 0.88);
  box-shadow: 0 4px 12px rgba(145, 28, 40, 0.14);
  font-size: 20px;
}

@keyframes liveLikePulse {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.2); }
}

@keyframes liveLikeFloat {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.55) rotate(0);
  }
  12% { opacity: 1; }
  72% { opacity: 0.96; }
  100% {
    opacity: 0;
    transform: translate3d(var(--like-drift), var(--like-rise), 0) scale(1.12) rotate(var(--like-rotate));
  }
}

/* SVGA gift library */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gift-trigger__count {
  color: inherit;
  font: inherit;
  font-weight: 700;
}

.gift-panel {
  width: min(calc(100% - 16px), 540px);
  max-height: min(78svh, 760px);
}

.gift-panel__hint {
  min-height: 18px;
}

.gift-toolbar {
  display: grid;
  gap: 10px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(167, 123, 69, 0.16);
}

.gift-categories {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 1px 1px 3px;
  scrollbar-width: none;
}

.gift-categories::-webkit-scrollbar {
  display: none;
}

.gift-category {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  border: 1px solid rgba(167, 123, 69, 0.22);
  border-radius: 15px;
  padding: 0 10px;
  background: #fbf6f0;
  color: #77685c;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.gift-category b {
  color: #a58a72;
  font-size: 10px;
  font-weight: 600;
}

.gift-category[aria-selected="true"],
.gift-category:focus-visible {
  border-color: rgba(178, 42, 34, 0.65);
  outline: none;
  background: var(--vermillion);
  color: #fffdf9;
}

.gift-category[aria-selected="true"] b,
.gift-category:focus-visible b {
  color: rgba(255, 253, 249, 0.82);
}

.gift-search {
  position: relative;
  display: block;
}

.gift-search__icon {
  position: absolute;
  top: 50%;
  left: 11px;
  color: #9c8977;
  font-size: 18px;
  line-height: 1;
  transform: translateY(-54%);
}

.gift-search input {
  width: 100%;
  height: 34px;
  border: 1px solid rgba(167, 123, 69, 0.24);
  border-radius: 5px;
  padding: 0 12px 0 31px;
  background: #fffaf5;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}

.gift-search input:focus {
  border-color: rgba(178, 42, 34, 0.62);
  outline: 2px solid rgba(178, 42, 34, 0.12);
  outline-offset: 1px;
}

.gift-results {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  padding: 5px 14px 0;
  color: #9a8774;
  font-size: 10px;
}

#giftLoadState[data-visible] {
  color: var(--vermillion);
}

.gift-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  min-height: 174px;
  padding: 8px 10px 12px;
}

.gift-card {
  min-height: 112px;
  grid-template-rows: 70px 18px 16px;
  border-radius: 6px;
  padding: 4px 3px 5px;
}

.gift-card__media {
  position: relative;
  display: grid;
  width: 100%;
  height: 70px;
  place-items: center;
  overflow: hidden;
  border-radius: 4px;
  background: radial-gradient(circle at 50% 45%, #50443c, #211d1b);
}

.gift-card__preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  filter: drop-shadow(0 5px 5px rgba(65, 42, 31, 0.12));
}

.gift-card__name {
  align-self: center;
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.2;
}

.gift-card__price {
  align-self: end;
  color: var(--vermillion);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.gift-empty {
  grid-column: 1 / -1;
  margin: 42px 0;
  color: #9a8774;
  font-size: 12px;
  text-align: center;
}

.gift-load-more {
  display: block;
  width: calc(100% - 28px);
  min-height: 34px;
  margin: 0 14px 14px;
  border: 1px solid rgba(167, 123, 69, 0.3);
  border-radius: 5px;
  background: #fbf6f0;
  color: #6f5c4d;
  font: inherit;
  font-size: 12px;
}

.gift-load-more[hidden] {
  display: none;
}

.gift-load-more:hover,
.gift-load-more:focus-visible {
  border-color: rgba(178, 42, 34, 0.58);
  outline: none;
  background: #fffaf5;
}

.gift-effect__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  mix-blend-mode: normal;
  pointer-events: none;
}

@media (max-width: 560px) {
  .gift-panel {
    max-height: min(82svh, 760px);
  }

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

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  scrollbar-width: none;
  overflow-anchor: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  min-width: 320px;
  background: #e9e7e3;
  color: var(--ink);
  font-family: "Songti SC", "STSong", "SimSun", serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

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

.site-shell {
  position: relative;
  width: min(100%, var(--shell-width));
  min-height: 100vh;
  margin: 0 auto;
  overflow: clip;
  background: var(--paper);
  box-shadow: 0 0 40px rgba(39, 35, 31, 0.12);
}

.paper-section {
  position: relative;
  background: var(--paper);
}

.section-space {
  padding: 92px 24px;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font: 600 10px/1.6 Georgia, "Times New Roman", serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.display-title {
  margin: 22px 0 0;
  color: var(--gold);
  font: 400 54px/0.95 Georgia, "Times New Roman", serif;
}

.display-title em {
  font-size: 44px;
  font-weight: 400;
}

.section-heading {
  position: relative;
  z-index: 1;
  text-align: center;
}

.section-heading span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font: 600 9px/1.4 Georgia, "Times New Roman", serif;
  letter-spacing: 0.28em;
}

.section-heading h2 {
  margin: 0;
  color: var(--gold);
  font-size: 27px;
  font-weight: 400;
}

.section-heading i {
  display: block;
  width: 132px;
  height: 1px;
  margin: 19px auto 0;
  background: var(--gold);
  transform-origin: center;
}

.section-heading--compact h2 {
  font-size: 23px;
}

.hero {
  position: relative;
  height: 100svh;
  min-height: 650px;
  overflow: hidden;
  isolation: isolate;
  background: #ebe8e1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 40%;
  background: rgba(247, 241, 233, 0.88);
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 46%;
}

.hero__topline {
  position: absolute;
  z-index: 2;
  top: max(24px, env(safe-area-inset-top));
  left: 24px;
  color: var(--ink);
  font: 600 9px/1 Georgia, "Times New Roman", serif;
  letter-spacing: 0.25em;
}

.hero__seal {
  position: absolute;
  z-index: 2;
  top: max(51px, calc(env(safe-area-inset-top) + 27px));
  left: 24px;
  display: grid;
  width: 48px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--vermillion);
  color: var(--vermillion);
  font-size: 26px;
}

.hero__title {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 150px;
  left: 24px;
  text-align: center;
}

.hero__title h1 {
  margin: 5px 0 15px;
  color: var(--ink);
  font-size: 39px;
  font-weight: 400;
}

.hero__names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 0;
  color: var(--gold);
  font-size: 17px;
}

.hero__names i {
  color: var(--vermillion);
  font: italic 24px Georgia, "Times New Roman", serif;
}

.hero__footer {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 57px;
  left: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 13px;
  color: var(--muted);
  font-size: 11px;
}

.hero__footer time {
  color: var(--vermillion);
  font: 600 12px Georgia, "Times New Roman", serif;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 13px;
  left: 50%;
  width: 1px;
  height: 28px;
  overflow: hidden;
  background: rgba(39, 35, 31, 0.18);
}

.scroll-cue span {
  display: block;
  width: 100%;
  height: 10px;
  background: var(--vermillion);
  animation: scrollCue 1.8s ease-in-out infinite;
}

.invitation-copy {
  min-height: 1120px;
  overflow: hidden;
}

.line-flower {
  position: absolute;
  top: 52px;
  right: -40px;
  width: 185px;
  height: 185px;
  border: 1px solid rgba(167, 123, 69, 0.18);
  color: rgba(167, 123, 69, 0.2);
  font-size: 68px;
  transform: rotate(22deg);
}

.english-copy {
  margin: 58px 0 0;
  color: var(--gold);
  font: 11px/2.1 Georgia, "Times New Roman", serif;
  text-align: center;
}

.invitation-copy__message {
  margin-top: 48px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}

.invitation-copy__message p {
  margin: 5px 0;
}

.arch-photo {
  position: relative;
  width: 84%;
  margin: 75px 0 0;
}

.arch-photo::before {
  content: "";
  position: absolute;
  top: -14px;
  right: -14px;
  bottom: 28px;
  left: 14px;
  border: 1px solid rgba(178, 42, 34, 0.48);
  border-radius: 170px 170px 0 0;
}

.arch-photo img {
  position: relative;
  width: 100%;
  height: 470px;
  object-fit: cover;
  object-position: center;
  border-radius: 160px 160px 0 0;
}

.arch-photo figcaption {
  position: absolute;
  right: -50px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--gold);
  font: 13px/1.3 Georgia, "Times New Roman", serif;
  text-align: center;
}

.arch-photo figcaption::before {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 0;
  left: -10px;
  width: 1px;
  background: var(--gold);
}

.meet-us {
  min-height: 1050px;
  overflow: hidden;
}

.meet-us::after {
  content: "囍";
  position: absolute;
  right: -26px;
  bottom: 90px;
  color: rgba(178, 42, 34, 0.05);
  font-size: 180px;
}

.tiny-english {
  margin: 42px 0 35px;
  color: var(--muted);
  font: 9px/1.8 Georgia, "Times New Roman", serif;
  text-align: center;
}

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

.person {
  min-width: 0;
  text-align: center;
}

.person__photo {
  height: 292px;
  margin-bottom: 16px;
  overflow: hidden;
}

.person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s ease;
}

.person__photo--groom img {
  object-position: 56% center;
}

.person__photo--bride img {
  object-position: 30% center;
}

.person:hover .person__photo img {
  transform: scale(1.035);
}

.person > span {
  color: var(--muted);
  font-size: 10px;
}

.person h3 {
  margin: 8px 0 0;
  color: var(--gold);
  font-size: 20px;
  font-weight: 400;
}

.meet-us__quote {
  margin: 76px auto 0;
  color: var(--gold);
  font-size: 15px;
  line-height: 2;
  text-align: center;
}

.vow-photo {
  position: relative;
  height: 740px;
  overflow: hidden;
  background: #e2ded8;
}

.vow-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(24, 22, 19, 0.16);
}

.vow-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.vow-photo__copy {
  position: absolute;
  z-index: 1;
  right: 28px;
  bottom: 68px;
  left: 28px;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.28);
}

.vow-photo__copy p {
  font: 9px Georgia, "Times New Roman", serif;
  letter-spacing: 0.28em;
}

.vow-photo__copy h2 {
  margin: 15px 0 0;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.5;
}

.promise {
  overflow: hidden;
  padding: 72px 0 80px;
  background: var(--paper-light);
}

.promise__heading {
  padding: 0 24px;
}

.promise__chapter {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font: 600 8px/1.2 Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.promise__chapter i {
  height: 1px;
  background: rgba(167, 123, 69, 0.38);
}

.promise__chapter time {
  letter-spacing: 0;
}

.promise__eyebrow {
  margin: 38px 0 0;
  color: var(--vermillion);
  font: 600 9px/1.4 Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.promise__heading h2 {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 31px;
  font-weight: 400;
  line-height: 1.45;
}

.promise__heading h2 em {
  color: var(--vermillion);
  font-style: normal;
}

.promise__lead {
  margin: 18px 0 0;
  color: var(--gold);
  font-size: 12px;
  line-height: 1.9;
}

.promise__scene {
  position: relative;
  aspect-ratio: 3 / 2;
  margin: 38px 0 0;
  overflow: hidden;
  background: #e9e6df;
}

.promise__scene img,
.promise__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promise__scene figcaption {
  position: absolute;
  right: 18px;
  bottom: 15px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font: 600 8px/1 Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  text-shadow: 0 1px 10px rgba(45, 40, 34, 0.28);
}

.promise__story {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 38px 24px 0;
}

.promise__portrait {
  height: 352px;
  margin: 0;
  overflow: hidden;
  background: #e9e6df;
}

.promise__portrait img {
  object-position: 100% 44%;
}

.promise__copy {
  color: var(--gold);
  font-size: 11px;
  line-height: 1.85;
}

.promise__kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--coral);
  font: 600 8px/1.5 Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.promise__copy h3 {
  margin: 0 0 15px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.promise__copy p {
  margin: 0 0 10px;
}

.promise__milestones {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 17px;
  color: var(--vermillion);
  font-size: 9px;
  white-space: nowrap;
}

.promise__milestones i {
  width: 12px;
  height: 1px;
  background: rgba(192, 53, 44, 0.38);
}

.promise__copy em {
  display: block;
  margin-top: 17px;
  color: var(--muted);
  font: italic 11px/1.4 Georgia, "Times New Roman", serif;
}

.gallery {
  min-height: 1300px;
}

.gallery__layout {
  position: relative;
  height: 1020px;
  margin-top: 58px;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(39, 35, 31, 0.09);
}

.gallery figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__main {
  position: absolute;
  top: 0;
  left: 0;
  width: 72%;
  height: 590px;
  transform: rotate(-1.5deg);
}

.gallery__small {
  position: absolute;
  top: 355px;
  right: 0;
  width: 49%;
  height: 355px;
  border: 8px solid var(--paper-light);
  transform: rotate(2.5deg);
}

.gallery__small img {
  object-position: center top;
}

.gallery__wide {
  position: absolute;
  right: 0;
  bottom: 18px;
  width: 88%;
  height: 278px;
  border: 8px solid var(--paper-light);
  transform: rotate(-1deg);
}

.gallery__words {
  position: absolute;
  bottom: 304px;
  left: 0;
  width: 42%;
  color: var(--vermillion);
  writing-mode: horizontal-tb;
}

.gallery__title {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font: 16px Georgia, "Times New Roman", serif;
}

.gallery__words p {
  margin: 3px 0 0;
  color: var(--muted);
  font: 9px/1.2 "Songti SC", "STSong", serif;
}

.red-story {
  background: #9f201b;
  color: #fff7ee;
}

.red-story__wide {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.red-story__wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.red-story__copy {
  min-height: 440px;
  padding: 88px 30px;
  text-align: center;
}

.red-story__copy p,
.red-story__copy span {
  margin: 0;
  color: #e6c29b;
  font-size: 11px;
  letter-spacing: 0.25em;
}

.red-story__copy h2 {
  margin: 38px 0;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.7;
}

.wedding-info {
  min-height: 1280px;
}

.info-list {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 42px;
  border-top: 1px solid rgba(79, 54, 41, 0.16);
  padding: 20px 0;
}

.info-list + .info-list {
  margin-top: 0;
  border-bottom: 1px solid rgba(79, 54, 41, 0.16);
}

.info-list__icon {
  display: grid;
  width: 32px;
  aspect-ratio: 1;
  place-items: center;
  color: #9b342b;
  font: 24px/1 Georgia, "Times New Roman", serif;
}

.info-list__content {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.info-list__label {
  color: #7e3027;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.info-list__date {
  color: #241d19;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.35;
}

.info-list__detail {
  color: #4f433b;
  font-size: 14px;
  line-height: 1.5;
}

.info-list__meta {
  display: flex;
  align-items: center;
  gap: 9px;
}

.info-list__meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #9b342b;
}

.info-list__address {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 12px;
  align-items: center;
  padding-right: 48px;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.info-list__address-copy {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.info-list__address-text {
  color: #241d19;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.65;
}

.info-list__navigate {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #a6312a;
  font: 25px/1 system-ui, sans-serif;
  transform: rotate(-42deg);
  transform-origin: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.info-list__address:hover .info-list__address-text,
.info-list__address:focus-visible .info-list__address-text {
  color: #7e3027;
}

.info-list__address:hover .info-list__navigate,
.info-list__address:focus-visible .info-list__navigate {
  color: #7e211c;
  transform: translate(2px, -2px) rotate(-42deg);
}

.info-list__address:focus-visible {
  outline: 2px solid rgba(126, 48, 39, 0.32);
  outline-offset: 4px;
}

.calendar {
  margin-top: 66px;
  border: 1px solid rgba(178, 42, 34, 0.35);
  padding: 26px 22px 28px;
  background: rgba(255, 253, 249, 0.45);
}

.calendar__month {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: var(--coral);
}

.calendar__month strong {
  font: 46px/1 Georgia, "Times New Roman", serif;
}

.calendar__month span {
  font: 17px Georgia, "Times New Roman", serif;
}

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

.calendar__weekdays {
  margin-top: 25px;
  border-bottom: 1px solid rgba(178, 42, 34, 0.25);
  padding-bottom: 10px;
  color: var(--coral);
  font-size: 11px;
  text-align: center;
}

.calendar__days {
  margin-top: 8px;
}

.calendar__days span {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  color: var(--muted);
  font: 12px Georgia, "Times New Roman", serif;
}

.calendar__days .is-empty {
  visibility: hidden;
}

.calendar__days .is-wedding-day {
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  animation: datePulse 2.1s ease-in-out infinite;
}

.countdown {
  margin-top: 68px;
  text-align: center;
}

.countdown > p {
  color: var(--gold);
  font-size: 13px;
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
}

.countdown__grid div {
  position: relative;
  display: grid;
  gap: 8px;
}

.countdown__grid div + div::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 1px;
  height: 34px;
  background: var(--line);
}

.countdown__grid strong {
  color: var(--coral);
  font: 30px Georgia, "Times New Roman", serif;
}

.countdown__grid span {
  color: var(--muted);
  font-size: 10px;
}

.rsvp {
  position: relative;
  min-height: 1080px;
  overflow: hidden;
  background: var(--sage);
  color: #f8f3ec;
}

.section-heading--light span,
.section-heading--light h2 {
  color: #fffaf3;
}

.section-heading--light i {
  background: #d8c0a5;
}

.notes {
  margin-top: 74px;
  color: #e7ddd1;
  font-size: 12px;
  line-height: 2;
}

.notes h3 {
  margin: 0 0 28px;
  color: #fff;
  font-size: 19px;
  font-weight: 400;
  text-align: center;
}

.notes p {
  margin: 0 0 16px;
}

.closing {
  overflow: hidden;
}

.closing__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center;
}

.music-control {
  position: fixed;
  z-index: 30;
  top: max(12px, env(safe-area-inset-top));
  right: max(10px, calc((100vw - var(--shell-width)) / 2 + 10px));
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--vermillion);
  filter: drop-shadow(0 5px 7px rgba(67, 47, 33, 0.2));
  -webkit-tap-highlight-color: transparent;
}

.music-control__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.music-control__bloom {
  position: relative;
  z-index: 2;
  display: block;
  width: 46px;
  height: 46px;
  transition: transform 0.2s ease;
}

.music-control__petal {
  position: absolute;
  top: 1px;
  left: 15px;
  width: 16px;
  height: 24px;
  border: 1px solid rgba(167, 123, 69, 0.72);
  border-radius: 75% 75% 52% 52%;
  background: rgba(255, 250, 243, 0.96);
  box-shadow: inset 0 3px 7px rgba(255, 255, 255, 0.7);
  transform: rotate(var(--petal-angle)) translateY(-1px);
  transform-origin: 50% 22px;
}

.music-control__petal:nth-child(even) {
  background: rgba(246, 218, 211, 0.97);
}

.music-control__petal:nth-child(1) { --petal-angle: 0deg; --petal-delay: 0s; }
.music-control__petal:nth-child(2) { --petal-angle: 60deg; --petal-delay: -0.18s; }
.music-control__petal:nth-child(3) { --petal-angle: 120deg; --petal-delay: -0.36s; }
.music-control__petal:nth-child(4) { --petal-angle: 180deg; --petal-delay: -0.54s; }
.music-control__petal:nth-child(5) { --petal-angle: 240deg; --petal-delay: -0.72s; }
.music-control__petal:nth-child(6) { --petal-angle: 300deg; --petal-delay: -0.9s; }

.music-control:active .music-control__bloom {
  transform: scale(0.92);
}

.music-control:focus-visible {
  outline: none;
}

.music-control:focus-visible .music-control__bloom {
  border-radius: 50%;
  outline: 2px solid var(--vermillion);
  outline-offset: 3px;
}

.music-control__disc {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 22px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 248, 236, 0.85);
  border-radius: 50%;
  background: var(--vermillion);
  color: #fffaf1;
  box-shadow: 0 2px 7px rgba(93, 31, 25, 0.28);
  font: 15px/1 Georgia, "Times New Roman", serif;
  transform: translate(-50%, -50%);
}

.music-control__notes {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.music-control__notes i {
  position: absolute;
  top: 13px;
  left: 11px;
  display: block;
  color: var(--gold);
  font: 18px/1 Georgia, "Times New Roman", serif;
  opacity: 0;
  text-shadow: 0 1px 4px rgba(255, 253, 249, 0.95);
}

.music-control__notes i::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 10px;
  width: 5px;
  height: 8px;
  border: 1px solid rgba(178, 42, 34, 0.35);
  border-radius: 75% 20% 70% 25%;
  background: rgba(255, 226, 220, 0.88);
  transform: rotate(28deg);
}

.music-control.is-playing .music-control__petal {
  animation: musicPetalBreath 2.35s ease-in-out var(--petal-delay) infinite;
}

.music-control.is-playing .music-control__disc {
  animation: musicCorePulse 2.35s ease-in-out infinite;
}

.music-control.is-playing .music-control__notes i {
  animation: musicNoteFloat 2.8s ease-out infinite;
}

.music-control.is-playing .music-control__notes i:nth-child(2) {
  color: var(--vermillion);
  font-size: 15px;
  animation-delay: 0.85s;
}

.music-control.is-playing .music-control__notes i:nth-child(3) {
  font-size: 13px;
  animation-delay: 1.7s;
}

.audio-gate {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 50%;
  width: min(100%, var(--shell-width));
  height: 100svh;
  min-height: 0;
  overflow: hidden;
  background: var(--paper-light);
  transform: translateX(-50%);
  isolation: isolate;
  animation: audioGateReveal 0.45s ease both;
}

.audio-gate.is-closing {
  pointer-events: none;
  animation: audioGateExit 1.15s cubic-bezier(0.4, 0, 0.18, 1) both;
}

.audio-gate.is-closing .audio-gate__image {
  animation: audioGateBackdropExit 1.15s cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

.audio-gate.is-closing .audio-gate__content {
  animation: audioGateContentExit 0.78s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.audio-gate.is-closing .audio-gate__frame {
  animation: audioGateFrameExit 0.9s ease both;
}

.audio-gate.is-closing .audio-gate__petals {
  animation: audioGatePetalsExit 0.85s ease both;
}

.audio-gate[hidden] {
  display: none;
}

.audio-gate::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(255, 253, 249, 0.7);
  box-shadow: inset 0 0 80px rgba(167, 123, 69, 0.08);
}

.audio-gate__image {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  object-position: 50% 46%;
  filter: blur(30px) saturate(0.74) contrast(0.88) brightness(1.08);
  opacity: 0.5;
  will-change: transform;
  animation: audioGateBackdrop 12s ease-in-out infinite alternate;
}

.audio-gate__frame {
  position: absolute;
  z-index: 2;
  inset: max(17px, env(safe-area-inset-top)) 17px max(17px, env(safe-area-inset-bottom));
  border: 1px solid rgba(167, 123, 69, 0.56);
  pointer-events: none;
  animation: audioGateFrameBreath 4.8s ease-in-out infinite;
}

.audio-gate__frame::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(167, 123, 69, 0.2);
}

.audio-gate__frame i {
  position: absolute;
  width: 23px;
  height: 23px;
  border-color: var(--vermillion);
  border-style: solid;
  opacity: 0.72;
}

.audio-gate__frame i:nth-child(1) {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.audio-gate__frame i:nth-child(2) {
  top: -1px;
  right: -1px;
  border-width: 2px 2px 0 0;
}

.audio-gate__frame i:nth-child(3) {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
}

.audio-gate__frame i:nth-child(4) {
  bottom: -1px;
  left: -1px;
  border-width: 0 0 2px 2px;
}

.audio-gate__petals {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.audio-gate__petals i {
  position: absolute;
  top: var(--gate-petal-top);
  left: var(--gate-petal-left);
  width: var(--gate-petal-size);
  height: calc(var(--gate-petal-size) * 1.45);
  border: 1px solid rgba(178, 42, 34, 0.24);
  border-radius: 75% 20% 70% 25%;
  background: rgba(255, 229, 222, 0.58);
  opacity: 0.35;
  animation: audioGatePetalHover var(--gate-petal-duration) ease-in-out var(--gate-petal-delay) infinite alternate;
}

.audio-gate__petals i:nth-child(1) { --gate-petal-top: 12%; --gate-petal-left: 14%; --gate-petal-size: 8px; --gate-petal-duration: 4.6s; --gate-petal-delay: -1s; }
.audio-gate__petals i:nth-child(2) { --gate-petal-top: 23%; --gate-petal-left: 82%; --gate-petal-size: 10px; --gate-petal-duration: 5.2s; --gate-petal-delay: -3s; }
.audio-gate__petals i:nth-child(3) { --gate-petal-top: 45%; --gate-petal-left: 8%; --gate-petal-size: 7px; --gate-petal-duration: 4.2s; --gate-petal-delay: -2s; }
.audio-gate__petals i:nth-child(4) { --gate-petal-top: 59%; --gate-petal-left: 88%; --gate-petal-size: 8px; --gate-petal-duration: 5.6s; --gate-petal-delay: -4s; }
.audio-gate__petals i:nth-child(5) { --gate-petal-top: 77%; --gate-petal-left: 17%; --gate-petal-size: 9px; --gate-petal-duration: 4.9s; --gate-petal-delay: -2.5s; }
.audio-gate__petals i:nth-child(6) { --gate-petal-top: 84%; --gate-petal-left: 75%; --gate-petal-size: 7px; --gate-petal-duration: 4.4s; --gate-petal-delay: -0.5s; }

.audio-gate__content {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 32px;
  left: 32px;
  display: grid;
  justify-items: center;
  color: var(--ink);
  text-align: center;
  transform: translateY(-50%);
  animation: audioGateContentReveal 0.9s cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

.audio-gate__eyebrow {
  color: var(--gold);
  font: 600 9px/1.4 Georgia, "Times New Roman", serif;
  letter-spacing: 0.28em;
}

.audio-gate__seal {
  position: relative;
  display: grid;
  width: 78px;
  height: 78px;
  margin: 21px 0 16px;
  place-items: center;
  animation: audioGateSealFloat 3.8s ease-in-out infinite;
}

.audio-gate__seal > i {
  position: absolute;
  inset: 3px;
  border: 1px dashed rgba(167, 123, 69, 0.72);
  border-radius: 50%;
  animation: audioGateSealRotate 18s linear infinite;
}

.audio-gate__seal > i::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(167, 123, 69, 0.32);
  border-radius: 50%;
}

.audio-gate__seal strong {
  position: relative;
  z-index: 1;
  display: grid;
  width: 44px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(178, 42, 34, 0.88);
  background: rgba(255, 253, 249, 0.84);
  color: var(--vermillion);
  font-size: 24px;
  font-weight: 400;
  transform: rotate(45deg);
  box-shadow: 0 4px 14px rgba(83, 48, 33, 0.08);
}

.audio-gate__seal strong span {
  transform: rotate(-45deg);
}

.audio-gate__content h2 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.46;
}

.audio-gate__content h2 em {
  color: var(--vermillion);
  font-size: 34px;
  font-style: normal;
  font-weight: 400;
}

.audio-gate__english {
  margin: 9px 0 0;
  color: var(--sage);
  font: 8px/1.5 Georgia, "Times New Roman", serif;
  letter-spacing: 0.2em;
}

.audio-gate__rule {
  display: grid;
  width: min(220px, 78%);
  grid-template-columns: 1fr 7px 1fr;
  align-items: center;
  gap: 11px;
  margin: 20px 0 17px;
}

.audio-gate__rule i {
  height: 1px;
  background: rgba(167, 123, 69, 0.48);
}

.audio-gate__rule span {
  width: 7px;
  aspect-ratio: 1;
  border: 1px solid var(--vermillion);
  transform: rotate(45deg);
}

.audio-gate__names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 0;
  color: var(--gold);
  font-size: 17px;
}

.audio-gate__names b {
  color: var(--vermillion);
  font: italic 23px/1 Georgia, "Times New Roman", serif;
}

.audio-gate__date {
  margin-top: 8px;
  color: var(--muted);
  font: 10px/1.5 Georgia, "Times New Roman", serif;
  letter-spacing: 0.18em;
}

.audio-gate__button {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 25px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
  touch-action: manipulation;
}

.audio-gate__play {
  position: relative;
  display: grid;
  width: 64px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(178, 42, 34, 0.68);
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.86);
  box-shadow: 0 0 0 6px rgba(255, 253, 249, 0.42), 0 0 0 7px rgba(167, 123, 69, 0.22), 0 7px 22px rgba(76, 52, 34, 0.12);
  transition: transform 0.2s ease, background 0.2s ease;
}

.audio-gate__play::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(167, 123, 69, 0.52);
  border-radius: 50%;
  animation: audioGatePlayRipple 2.5s ease-out infinite;
}

.audio-gate__play::before {
  content: "";
  position: relative;
  z-index: 1;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid var(--vermillion);
}

.audio-gate__button:active .audio-gate__play {
  background: rgba(255, 253, 249, 0.9);
  transform: scale(0.94);
}

.audio-gate__button:focus-visible .audio-gate__play {
  outline: 2px solid var(--vermillion);
  outline-offset: 5px;
}

.audio-gate__button:focus:not(:focus-visible) {
  outline: none;
}

.audio-gate__button-label {
  color: var(--vermillion);
  font-size: 14px;
  letter-spacing: 0.16em;
}

.audio-gate__status {
  min-height: 18px;
  margin: 9px 0 0;
  color: var(--vermillion);
  font: 12px/1.5 system-ui, sans-serif;
}

html.audio-gate-open,
html.audio-gate-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

.progress {
  position: fixed;
  z-index: 24;
  top: 50%;
  left: max(8px, calc((100vw - var(--shell-width)) / 2 + 8px));
  width: 1px;
  height: 90px;
  overflow: hidden;
  background: rgba(96, 81, 70, 0.14);
  transform: translateY(-50%);
}

.progress__line {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--vermillion);
  transform: scaleY(0);
  transform-origin: top;
}

.back-top {
  position: fixed;
  z-index: 25;
  right: max(16px, calc((100vw - var(--shell-width)) / 2 + 16px));
  bottom: max(168px, calc(env(safe-area-inset-bottom) + 168px));
  display: grid;
  width: 36px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  background: rgba(39, 35, 31, 0.58);
  color: #fff;
  font: 19px/1 system-ui, sans-serif;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.gift-trigger {
  position: fixed;
  z-index: 68;
  bottom: 0;
  left: 50%;
  display: grid;
  width: min(100%, var(--shell-width));
  height: calc(56px + env(safe-area-inset-bottom));
  grid-template-columns: minmax(0, 1fr) 58px;
  align-items: start;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  padding: 0 0 env(safe-area-inset-bottom);
  background: rgba(38, 32, 29, 0.24);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.24), 0 -7px 22px rgba(34, 24, 20, 0.12);
  color: #fff;
  font: inherit;
  text-align: left;
  visibility: visible;
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  -webkit-tap-highlight-color: transparent;
  transform: translateX(-50%);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease, visibility 0.3s ease;
}

html.invitation-pending .gift-trigger,
html.audio-gate-open .gift-trigger,
html.gift-ui-active .gift-trigger {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translate(-50%, 10px);
}

.gift-trigger::after {
  content: none;
}

.gift-trigger__preview {
  display: flex;
  min-width: 0;
  height: 56px;
  align-items: center;
  gap: 5px;
  padding: 6px 2px 6px 7px;
  background: transparent;
}

.gift-trigger__item {
  display: flex;
  height: 42px;
  flex: 1 1 0;
  min-width: 0;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 22px;
  padding: 3px 7px 3px 3px;
  background: rgba(32, 30, 29, 0.58);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), 0 2px 8px rgba(20, 15, 13, 0.1);
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

.gift-trigger__item + .gift-trigger__item {
  border-left-color: rgba(255, 255, 255, 0.26);
}

.gift-trigger__item img {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  object-fit: cover;
  background: #241f1c;
}

.gift-trigger__item-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.gift-trigger__item-copy > span {
  overflow: hidden;
  color: #fff;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gift-trigger__item-copy small {
  color: #ffd7a8;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
}

.gift-trigger__cta {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  align-self: center;
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(35, 31, 29, 0.66);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), 0 3px 10px rgba(22, 15, 13, 0.16);
  color: #fff;
}

.gift-trigger__gift-icon {
  font: 23px/1 system-ui, sans-serif;
  transform: translateY(-3px);
}

.gift-trigger__cta strong {
  position: absolute;
  right: -2px;
  bottom: -1px;
  min-width: 29px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  padding: 2px 4px;
  background: var(--vermillion);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.gift-trigger:hover,
.gift-trigger:focus-visible {
  outline: none;
  box-shadow: 0 11px 30px rgba(73, 45, 31, 0.27), 0 0 0 2px rgba(178, 42, 34, 0.15);
  transform: translate(-50%, -2px);
}

.gift-trigger:active {
  transform: translate(-50%, 1px) scale(0.99);
}

.gift-trigger[aria-expanded="true"] {
  box-shadow: 0 8px 24px rgba(73, 45, 31, 0.24), 0 0 0 2px rgba(178, 42, 34, 0.2);
}

/* Compact quick gifts: every visible control sends immediately. */
.gift-trigger {
  bottom: calc(18px + env(safe-area-inset-bottom));
  width: min(calc(100% - 24px), calc(var(--shell-width) - 24px));
  height: 40px;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  column-gap: 8px;
  overflow: visible;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.gift-trigger:hover,
.gift-trigger:focus-visible,
.gift-trigger:active {
  box-shadow: none;
  transform: translateX(-50%);
}

.gift-trigger__preview {
  display: grid;
  height: 40px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 7px;
  padding: 2px 0;
}

.gift-trigger__item {
  display: grid;
  height: 36px;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: center;
  gap: 3px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 17px;
  padding: 2px 5px 2px 3px;
  background: rgba(103, 101, 99, 0.78);
  box-shadow: 0 2px 7px rgba(38, 31, 28, 0.1);
  color: #fff;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.gift-trigger__item + .gift-trigger__item {
  border-left: 0;
}

.gift-trigger__item:hover,
.gift-trigger__item:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 0;
  background: rgba(87, 85, 83, 0.9);
}

.gift-trigger__item:active {
  transform: scale(0.96);
}

.gift-trigger__item img {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
}

.gift-trigger__item-copy {
  gap: 2px;
}

.gift-trigger__item-copy > span {
  color: #fff;
  font-size: 9px;
  font-weight: 600;
}

.gift-trigger__item-copy small {
  overflow: hidden;
  color: #ffd23f;
  font-size: 7px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(92, 55, 0, 0.42);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gift-trigger__cta {
  width: 40px;
  height: 40px;
  align-self: center;
  margin-bottom: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(103, 101, 99, 0.78);
  box-shadow: 0 2px 8px rgba(38, 31, 28, 0.12);
}

.gift-trigger__cta:hover,
.gift-trigger__cta:focus-visible {
  outline: 2px solid rgba(178, 42, 34, 0.3);
  outline-offset: 1px;
}

.gift-trigger__gift-icon {
  font-size: 20px;
  transform: translateY(-2px);
}

.gift-trigger__cta strong {
  right: -1px;
  bottom: -1px;
  min-width: 24px;
  padding: 2px 3px 1px;
  font-size: 6.5px;
}

@media (max-width: 360px) {
  .gift-trigger__preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gift-trigger__item {
    grid-template-columns: 25px minmax(0, 1fr);
    padding-right: 3px;
    padding-left: 3px;
  }

  .gift-trigger__item img {
    width: 24px;
    height: 24px;
  }

  .gift-trigger__item-copy > span {
    font-size: 8px;
  }

  .gift-trigger__item-copy small {
    font-size: 6.5px;
  }
}

.gift-backdrop {
  position: fixed;
  z-index: 70;
  top: 0;
  left: 50%;
  width: min(100%, var(--shell-width));
  height: 100svh;
  background: rgba(24, 18, 14, 0.36);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 0.28s ease;
}

.gift-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.gift-panel {
  position: fixed;
  z-index: 72;
  bottom: 0;
  left: 50%;
  display: flex;
  width: min(calc(100% - 18px), 412px);
  max-height: min(70svh, 620px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(167, 123, 69, 0.38);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #fffdf9;
  box-shadow: 0 -18px 50px rgba(38, 25, 18, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(100% + 24px));
  transition: opacity 0.26s ease, transform 0.38s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.gift-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.gift-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 9px;
}

.gift-panel__header span {
  display: block;
  margin-bottom: 3px;
  color: var(--gold);
  font: 600 9px/1.4 Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.gift-panel__header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
}

.gift-panel__title-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.gift-panel__free {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  border: 1px solid rgba(178, 42, 34, 0.26);
  border-radius: 3px;
  padding: 0 6px;
  background: rgba(178, 42, 34, 0.08);
  color: var(--vermillion);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.gift-panel__close,
.gift-effect__close {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(110, 90, 75, 0.26);
  border-radius: 50%;
  padding: 0 0 2px;
  background: rgba(247, 241, 233, 0.9);
  color: #51463e;
  font: 25px/1 system-ui, sans-serif;
}

.gift-panel__close:focus-visible,
.gift-effect__close:focus-visible {
  outline: 2px solid var(--vermillion);
  outline-offset: 2px;
}

.gift-panel__hint {
  margin: 0;
  padding: 0 18px 13px;
  border-bottom: 1px solid rgba(167, 123, 69, 0.18);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.gift-panel__hint a {
  color: var(--vermillion);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px 10px calc(14px + env(safe-area-inset-bottom));
  scrollbar-color: rgba(167, 123, 69, 0.45) transparent;
  scrollbar-width: thin;
}

.gift-card {
  display: grid;
  min-width: 0;
  min-height: 112px;
  grid-template-rows: 70px 18px 16px;
  align-items: center;
  border: 1px solid rgba(167, 123, 69, 0.2);
  border-radius: 6px;
  padding: 4px 3px 5px;
  background: #f8f1ea;
  color: #463c35;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.gift-card:hover,
.gift-card:focus-visible,
.gift-card[aria-pressed="true"] {
  border-color: rgba(178, 42, 34, 0.68);
  outline: none;
  background: #fffaf4;
}

.gift-card:active {
  transform: scale(0.96);
}

.gift-card__image {
  display: grid;
  width: 100%;
  height: 86px;
  place-items: center;
  overflow: hidden;
}

.gift-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 5px rgba(65, 42, 31, 0.12));
}

.gift-card__name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gift-effect {
  position: fixed;
  z-index: 75;
  top: 0;
  right: 0;
  left: 0;
  width: min(100%, var(--shell-width));
  height: 100svh;
  margin-inline: auto;
  overflow: hidden;
  background: transparent;
  mix-blend-mode: normal;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.gift-effect.is-visible {
  opacity: 1;
  visibility: visible;
}

.gift-effect__canvas {
  position: absolute;
  inset: 0;
}

.gift-effect__canvas canvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  max-width: none !important;
  max-height: none !important;
  transform-origin: 50% 50%;
}

.gift-effect__loading {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  padding: 10px 14px;
  background: rgba(39, 35, 31, 0.84);
  color: #fff;
  font: 12px/1.3 system-ui, sans-serif;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}

.gift-effect.is-loading .gift-effect__loading {
  opacity: 1;
}

.gift-effect__loading i {
  display: block;
  width: 15px;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: giftLoadingSpin 0.8s linear infinite;
}

.gift-effect__status {
  position: absolute;
  right: 50%;
  bottom: max(32px, calc(env(safe-area-inset-bottom) + 32px));
  max-width: calc(100% - 80px);
  margin: 0;
  border: 1px solid rgba(167, 123, 69, 0.34);
  border-radius: 4px;
  padding: 9px 15px;
  background: rgba(255, 253, 249, 0.92);
  color: #5b4639;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0;
  text-align: center;
  transform: translate(50%, 8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gift-effect__status:not(:empty) {
  opacity: 1;
  transform: translate(50%, 0);
}

.gift-effect__close {
  position: absolute;
  top: max(76px, calc(env(safe-area-inset-top) + 76px));
  right: 16px;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(39, 35, 31, 0.58);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.gift-effect.is-visible .gift-effect__close {
  opacity: 1;
  pointer-events: auto;
}

.gift-announcement {
  position: fixed;
  z-index: 69;
  top: 61%;
  left: 50%;
  width: min(100%, var(--shell-width));
  height: 50px;
  overflow: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.gift-announcement__card {
  position: absolute;
  top: 2px;
  left: 100%;
  display: grid;
  width: min(45%, 180px);
  height: 46px;
  grid-template-columns: 34px minmax(0, 1fr) 36px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  padding: 4px;
  background: rgba(47, 45, 44, 0.72);
  box-shadow: 0 4px 13px rgba(33, 28, 25, 0.18);
  color: #fff;
  font-family: system-ui, sans-serif;
  opacity: 0;
  backdrop-filter: blur(10px);
  animation: giftAnnouncement 5.6s linear forwards;
  will-change: left, transform, opacity;
}

.gift-announcement__avatar {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  object-fit: cover;
}

.gift-announcement__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  padding: 0 4px;
}

.gift-announcement__sender,
.gift-announcement__gift {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gift-announcement__sender {
  color: rgba(255, 255, 255, 0.84);
  font-size: 8px;
  line-height: 1.2;
}

.gift-announcement__sender strong {
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

.gift-announcement__gift {
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
}

.gift-announcement__preview {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.blessing-announcement__seal {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 226, 186, 0.68);
  border-radius: 50%;
  background: #a9241e;
  color: #ffe4b8;
  font: 700 17px/1 serif;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

@media (max-width: 340px) {
  .gift-announcement__card {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
  }

  .gift-announcement__avatar,
  .gift-announcement__preview {
    width: 28px;
    height: 28px;
  }

  .gift-announcement__copy {
    padding: 0 2px;
  }

  .gift-announcement__sender {
    font-size: 7.5px;
  }

  .gift-announcement__sender strong {
    font-size: 8.5px;
  }

  .gift-announcement__gift {
    font-size: 9px;
  }
}

@keyframes giftAnnouncement {
  0% {
    left: 100%;
    opacity: 0;
    transform: translateX(16px);
    animation-timing-function: cubic-bezier(0.22, 0.72, 0.25, 1);
  }
  20%,
  72% {
    left: 14px;
    opacity: 1;
    transform: translateX(0);
  }
  72% {
    animation-timing-function: cubic-bezier(0.55, 0.04, 0.78, 0.3);
  }
  100% {
    left: 0;
    opacity: 0;
    transform: translateX(calc(-100% - 18px));
  }
}

@keyframes giftLoadingSpin {
  to { transform: rotate(360deg); }
}

.petals {
  position: fixed;
  z-index: 20;
  top: -40px;
  left: 50%;
  width: min(100%, var(--shell-width));
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  transform: translateX(-50%);
}

.petal {
  position: absolute;
  top: -30px;
  left: var(--left);
  width: var(--size);
  height: calc(var(--size) * 0.65);
  border: 1px solid rgba(194, 61, 70, 0.34);
  border-radius: 75% 20% 70% 25%;
  background: rgba(255, 224, 222, 0.72);
  opacity: 0;
  animation: petalFall var(--duration) linear var(--delay) infinite;
}

.reveal {
  opacity: 0;
  transition: opacity 0.9s ease, transform 1s cubic-bezier(0.2, 0.75, 0.2, 1);
  will-change: auto;
}

.reveal--up {
  transform: translateY(38px);
}

.reveal--left {
  transform: translateX(-34px);
}

.reveal--right {
  transform: translateX(34px);
}

.reveal--scale {
  transform: scale(0.92);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: transform, opacity;
}

html.invitation-pending .hero .reveal.is-visible {
  opacity: 0;
}

html.invitation-pending .hero__topline.is-visible {
  transform: translateY(-16px);
}

html.invitation-pending .hero__seal.is-visible {
  transform: rotate(-9deg) scale(0.74);
}

html.invitation-pending .hero__title.is-visible {
  transform: translateY(46px) scale(0.98);
}

html.invitation-pending .hero__footer.is-visible {
  transform: translateY(24px);
}

html.invitation-pending .hero__image.is-image-visible {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transform: scale(1.13);
  animation: none;
}

html.invitation-pending .petals,
html.invitation-pending .music-control,
html.invitation-pending .progress,
html.invitation-pending .scroll-cue {
  opacity: 0;
}

html.invitation-entering .hero__image.is-image-visible {
  animation: heroImageEnter 1.95s cubic-bezier(0.18, 0.78, 0.16, 1) both;
  will-change: transform, clip-path, opacity;
}

html.invitation-entering .hero__topline.is-visible {
  animation: heroToplineEnter 0.82s 0.34s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

html.invitation-entering .hero__seal.is-visible {
  animation: heroSealEnter 0.9s 0.48s cubic-bezier(0.16, 0.86, 0.22, 1) both;
}

html.invitation-entering .hero__title.is-visible {
  animation: heroTitleEnter 1.05s 0.68s cubic-bezier(0.16, 0.82, 0.2, 1) both;
}

html.invitation-entering .hero__footer.is-visible {
  animation: heroFooterEnter 0.9s 0.98s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

html.invitation-entering .petals {
  animation: homepageLayerEnter 1.15s 0.35s ease both;
}

html.invitation-entering .music-control,
html.invitation-entering .progress,
html.invitation-entering .scroll-cue {
  animation: homepageLayerEnter 0.8s 1.1s ease both;
}

html.scrolling-up .reveal--up:not(.is-visible) {
  transform: translateY(-38px);
}

html.scrolling-up .reveal--left:not(.is-visible),
html.scrolling-up .reveal--right:not(.is-visible) {
  transform: translateY(-28px) scale(0.98);
}

html.scrolling-up .reveal--scale:not(.is-visible) {
  transform: translateY(-24px) scale(0.94);
}

.image-entrance {
  opacity: 0;
  clip-path: inset(8% 8% 8% 8%);
  transition:
    opacity 0.85s ease,
    clip-path 1.35s cubic-bezier(0.18, 0.76, 0.18, 1);
}

.image-entrance:not(.motion-image) {
  transform: scale(1.07);
  transition:
    opacity 0.85s ease,
    clip-path 1.35s cubic-bezier(0.18, 0.76, 0.18, 1),
    transform 1.5s cubic-bezier(0.18, 0.76, 0.18, 1);
}

.image-entrance--hero {
  clip-path: inset(0 0 100% 0);
  transition-duration: 1.4s, 1.9s;
}

.image-entrance--iris {
  clip-path: inset(5% 45% 5% 45% round 160px 160px 0 0);
}

.image-entrance--left {
  clip-path: inset(0 100% 0 0);
}

.image-entrance--right {
  clip-path: inset(0 0 0 100%);
}

.image-entrance--up {
  clip-path: inset(100% 0 0 0);
}

.image-entrance--curtain {
  clip-path: inset(48% 0 48% 0);
}

.image-entrance.is-image-visible {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transition-delay: var(--image-delay, 0ms);
  will-change: clip-path, opacity;
}

.image-entrance.is-image-visible:not(.motion-image) {
  transform: scale(1);
  will-change: clip-path, opacity, transform;
}

html.is-auto-scrolling .image-entrance {
  clip-path: inset(0 0 0 0);
  transition-property: opacity, transform;
}

html.is-auto-scrolling .image-entrance.is-image-visible {
  will-change: opacity, transform;
}

html.is-auto-scrolling .motion-image.is-image-visible {
  animation-play-state: paused;
}

html.scrolling-up .image-entrance--hero:not(.is-image-visible) {
  clip-path: inset(100% 0 0 0);
}

html.scrolling-up .image-entrance--left:not(.is-image-visible) {
  clip-path: inset(0 0 0 100%);
}

html.scrolling-up .image-entrance--right:not(.is-image-visible) {
  clip-path: inset(0 100% 0 0);
}

html.scrolling-up .image-entrance--up:not(.is-image-visible) {
  clip-path: inset(0 0 100% 0);
}

.motion-image {
  transform: scale(1);
}

.motion-image.is-image-visible {
  animation: subtleZoom 12s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes subtleZoom {
  from { transform: scale(1); }
  to { transform: scale(1.055); }
}

@keyframes scrollCue {
  0% { transform: translateY(-12px); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: translateY(30px); opacity: 0; }
}

@keyframes musicPetalBreath {
  0%, 100% { transform: rotate(var(--petal-angle)) translateY(-1px) scaleY(1); }
  50% { transform: rotate(var(--petal-angle)) translateY(-3px) scaleY(1.08); }
}

@keyframes musicCorePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes musicNoteFloat {
  0% { opacity: 0; transform: translate3d(4px, 9px, 0) rotate(-12deg) scale(0.8); }
  18% { opacity: 0.95; }
  70% { opacity: 0.72; }
  100% { opacity: 0; transform: translate3d(-36px, -14px, 0) rotate(15deg) scale(1.08); }
}

@keyframes audioGateReveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes audioGateExit {
  0% { opacity: 1; transform: translateX(-50%) scale(1); }
  45% { opacity: 0.96; }
  100% { opacity: 0; transform: translateX(-50%) scale(1.025); }
}

@keyframes audioGateBackdropExit {
  from { opacity: 0.68; transform: translate3d(0, 0, 0) scale(1.1); }
  to { opacity: 0.18; transform: translate3d(0, -1.5%, 0) scale(1.18); }
}

@keyframes audioGateContentExit {
  from { opacity: 1; transform: translateY(-50%) scale(1); }
  to { opacity: 0; transform: translateY(calc(-50% - 22px)) scale(0.96); }
}

@keyframes audioGateFrameExit {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(1.035); }
}

@keyframes audioGatePetalsExit {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-22px); }
}

@keyframes heroImageEnter {
  0% { opacity: 0; clip-path: inset(0 0 30% 0); transform: scale(1.13); }
  28% { opacity: 1; }
  100% { opacity: 1; clip-path: inset(0 0 0 0); transform: scale(1); }
}

@keyframes heroToplineEnter {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroSealEnter {
  from { opacity: 0; transform: rotate(-9deg) scale(0.74); }
  to { opacity: 1; transform: rotate(0) scale(1); }
}

@keyframes heroTitleEnter {
  from { opacity: 0; transform: translateY(46px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heroFooterEnter {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes homepageLayerEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes audioGateBackdrop {
  0% { transform: translate3d(-1.5%, 0, 0) scale(1.08); }
  50% { transform: translate3d(1%, -1%, 0) scale(1.13); }
  100% { transform: translate3d(0, 1%, 0) scale(1.1); }
}

@keyframes audioGateContentReveal {
  from { opacity: 0; transform: translateY(calc(-50% + 24px)); }
  to { opacity: 1; transform: translateY(-50%); }
}

@keyframes audioGateFrameBreath {
  0%, 100% { opacity: 0.58; }
  50% { opacity: 1; }
}

@keyframes audioGateSealFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes audioGateSealRotate {
  to { transform: rotate(360deg); }
}

@keyframes audioGatePlayRipple {
  0% { opacity: 0.55; transform: scale(1); }
  75%, 100% { opacity: 0; transform: scale(1.32); }
}

@keyframes audioGatePetalHover {
  from { transform: translate3d(-4px, -7px, 0) rotate(-22deg); }
  to { transform: translate3d(8px, 9px, 0) rotate(36deg); }
}

@keyframes datePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(233, 103, 85, 0.32); }
  50% { box-shadow: 0 0 0 7px rgba(233, 103, 85, 0); }
}

@keyframes petalFall {
  0% { opacity: 0; transform: translate3d(0, -5vh, 0) rotate(0deg); }
  10% { opacity: 0.8; }
  50% { transform: translate3d(var(--drift), 52vh, 0) rotate(230deg); }
  90% { opacity: 0.62; }
  100% { opacity: 0; transform: translate3d(calc(var(--drift) * -0.5), 108vh, 0) rotate(520deg); }
}

@media (max-width: 360px) {
  .section-space {
    padding-right: 19px;
    padding-left: 19px;
  }

  .display-title {
    font-size: 47px;
  }

  .display-title em {
    font-size: 39px;
  }

  .hero__title h1 {
    font-size: 34px;
  }

  .audio-gate__content {
    right: 25px;
    left: 25px;
  }

  .audio-gate__seal {
    margin-top: 17px;
    margin-bottom: 13px;
  }

  .audio-gate__content h2 {
    font-size: 25px;
  }

  .audio-gate__content h2 em {
    font-size: 30px;
  }

  .audio-gate__rule {
    margin-top: 17px;
    margin-bottom: 15px;
  }

  .audio-gate__button {
    margin-top: 21px;
  }

  .person-grid {
    gap: 10px;
  }

  .person__photo {
    height: 264px;
  }

  .arch-photo figcaption {
    right: -42px;
  }
}

@media (min-width: 700px) {
  body {
    padding: 18px 0;
  }

  .site-shell {
    min-height: calc(100vh - 36px);
  }

  .music-control {
    top: 32px;
  }

  .audio-gate {
    top: 18px;
    height: calc(100svh - 36px);
    min-height: 0;
  }

  .gift-trigger {
    bottom: 18px;
  }

  .back-top {
    bottom: max(186px, calc(env(safe-area-inset-bottom) + 186px));
  }

  .live-like-button {
    bottom: max(76px, calc(env(safe-area-inset-bottom) + 76px));
  }

  .live-like-layer {
    bottom: max(126px, calc(env(safe-area-inset-bottom) + 126px));
  }

  .gift-backdrop {
    top: 18px;
    height: calc(100svh - 36px);
  }

  .gift-panel {
    bottom: 18px;
    border-bottom: 1px solid rgba(167, 123, 69, 0.38);
    border-radius: 8px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .image-entrance,
  .image-entrance:not(.motion-image) {
    opacity: 1;
    clip-path: none;
    filter: none;
    transform: none;
    transition: none;
  }

  .motion-image,
  .petal,
  .scroll-cue span,
  .calendar__days .is-wedding-day,
  .audio-gate,
  .audio-gate__image,
  .audio-gate__frame,
  .audio-gate__seal,
  .audio-gate__seal > i,
  .audio-gate__play::after,
  .audio-gate__petals i,
  .music-control__petal,
  .music-control__disc,
  .music-control__notes i {
    animation: none;
  }

  .gift-trigger,
  .gift-backdrop,
  .gift-panel,
  .gift-effect,
  .gift-effect__loading i {
    animation: none;
    transition: none;
  }

  .gift-announcement__card {
    animation-name: giftAnnouncementReduced;
  }

  html.invitation-pending .hero .reveal.is-visible,
  html.invitation-pending .hero__image.is-image-visible,
  html.invitation-pending .petals,
  html.invitation-pending .music-control,
  html.invitation-pending .progress,
  html.invitation-pending .scroll-cue {
    opacity: 1;
    clip-path: none;
    transform: none;
  }

  .audio-gate.is-closing,
  .audio-gate.is-closing .audio-gate__image,
  .audio-gate.is-closing .audio-gate__content,
  .audio-gate.is-closing .audio-gate__frame,
  .audio-gate.is-closing .audio-gate__petals,
  html.invitation-entering .hero__image.is-image-visible,
  html.invitation-entering .hero .reveal.is-visible,
  html.invitation-entering .petals,
  html.invitation-entering .music-control,
  html.invitation-entering .progress,
  html.invitation-entering .scroll-cue {
    animation: none;
  }
}

@keyframes giftAnnouncementReduced {
  0%, 100% { left: 14px; opacity: 0; transform: none; }
  8%, 88% { left: 14px; opacity: 1; transform: none; }
}

/* Reference-style gift picker */
.gift-panel {
  width: min(calc(100% - 14px), 420px);
  height: min(82svh, 760px);
  max-height: min(82svh, 760px);
  border-color: rgba(119, 76, 48, 0.3);
  background: #fffdfb;
}

.gift-panel__header {
  position: relative;
  min-height: 54px;
  padding: 0 54px 0 0;
  border-bottom: 1px solid rgba(167, 123, 69, 0.14);
}

.gift-panel__tabs {
  display: grid;
  width: 100%;
  height: 54px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gift-panel__tabs > span {
  position: relative;
  display: grid;
  margin: 0;
  place-items: center;
  color: #75675d;
  font: 500 15px/1 system-ui, sans-serif;
}

.gift-panel__tabs > span.is-active {
  color: var(--vermillion);
  font-weight: 700;
}

.gift-panel__tabs > span.is-active::after {
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--coral);
  content: "";
  transform: translateX(-50%);
}

.gift-panel__close {
  position: absolute;
  top: 9px;
  right: 11px;
  width: 36px;
  background: #faf6f1;
}

.gift-panel__hint {
  min-height: 27px;
  padding: 6px 14px;
  font-size: 10px;
  line-height: 1.45;
}

.gift-toolbar {
  gap: 0;
  padding: 8px 10px 7px;
}

.gift-search {
  display: none;
}

.gift-category {
  min-height: 31px;
  border-color: rgba(167, 123, 69, 0.22);
  border-radius: 16px;
  padding-inline: 11px;
  background: #fffaf5;
}

.gift-results {
  min-height: 24px;
  padding: 4px 11px 0;
  font-size: 9px;
}

.gift-grid {
  flex: 1 1 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  min-height: 0;
  align-content: start;
  padding: 7px 9px 10px;
  background: #fffdfb;
}

.gift-card {
  position: relative;
  min-height: 114px;
  grid-template-rows: 74px 18px 16px;
  border-color: transparent;
  border-radius: 7px;
  padding: 4px 3px 5px;
  background: transparent;
  box-shadow: none;
}

.gift-card:hover,
.gift-card:focus-visible,
.gift-card[aria-pressed="true"] {
  border-color: rgba(233, 103, 85, 0.62);
  background: rgba(233, 103, 85, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.gift-card__media {
  height: 74px;
  border-radius: 5px;
}

.gift-card__name {
  margin-top: 3px;
  font-size: 10px;
}

.gift-card__price {
  color: #ef3f5e;
  font-size: 11px;
}

.gift-checkout {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  padding: 9px 12px env(safe-area-inset-bottom);
  border-top: 1px solid rgba(167, 123, 69, 0.13);
  background: rgba(255, 253, 251, 0.98);
  box-shadow: 0 -9px 24px rgba(61, 38, 26, 0.08);
}

.gift-checkout__effect {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  border-radius: 6px;
  padding: 0 11px;
  background: #f8f5f2;
  color: #4d4540;
  font-size: 12px;
}

.gift-checkout__effect strong {
  color: #ef3f5e;
  font-size: 14px;
  font-weight: 500;
}

.gift-checkout__effect b {
  font-weight: 600;
}

.gift-checkout > p {
  margin: 7px 3px 8px;
  overflow: hidden;
  color: #9a8e86;
  font-size: 9px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#giftSelectionName {
  color: #75665c;
  font-weight: 600;
}

.gift-effect-toggle {
  position: relative;
  display: block;
  width: 43px;
  height: 24px;
  flex: 0 0 auto;
}

.gift-effect-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.gift-effect-toggle i {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: #d9d3ce;
  transition: background 0.2s ease;
}

.gift-effect-toggle i::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(50, 35, 28, 0.22);
  content: "";
  transition: transform 0.2s ease;
}

.gift-effect-toggle input:checked + i {
  background: #ff4566;
}

.gift-effect-toggle input:checked + i::after {
  transform: translateX(19px);
}

.gift-effect-toggle input:focus-visible + i {
  outline: 2px solid rgba(178, 42, 34, 0.45);
  outline-offset: 2px;
}

.gift-checkout__actions {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 8px;
}

.gift-sender input,
.gift-send {
  width: 100%;
  height: 40px;
  border-radius: 20px;
  font: inherit;
  font-size: 12px;
}

.gift-sender input {
  border: 1px solid rgba(167, 123, 69, 0.2);
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  text-align: center;
}

.gift-sender input:focus {
  border-color: rgba(233, 103, 85, 0.58);
  outline: 2px solid rgba(233, 103, 85, 0.12);
}

.gift-send {
  border: 0;
  background: #ff4566;
  color: #fff;
  font-weight: 700;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gift-send:disabled {
  background: #d9d3ce;
  color: #fff;
  cursor: not-allowed;
}

.gift-send:not(:disabled):active {
  transform: scale(0.98);
}

.gift-send:focus-visible {
  outline: 2px solid var(--vermillion);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .gift-panel {
    height: min(82svh, 760px);
    max-height: min(82svh, 760px);
  }

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

@media (max-width: 360px) {
  .gift-grid {
    gap: 4px;
    padding-inline: 6px;
  }

  .gift-card {
    grid-template-rows: 68px 17px 15px;
    min-height: 106px;
  }

  .gift-card__media {
    height: 68px;
  }

  .gift-checkout {
    padding-inline: 9px;
  }
}

/* Reference-inspired celebration gift sheet */
.gift-backdrop {
  background: rgba(22, 20, 19, 0.58);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.gift-panel {
  width: min(100%, var(--shell-width));
  height: min(58svh, 620px);
  max-height: min(58svh, 620px);
  border: 0;
  border-radius: 22px 22px 0 0;
  background: #fff;
  box-shadow: 0 -18px 52px rgba(33, 27, 24, 0.2);
}

.gift-panel__header {
  min-height: 58px;
  overflow: hidden;
  padding: 0 50px 0 6px;
  border-bottom: 1px solid rgba(98, 84, 76, 0.1);
  background: #fff;
}

.gift-panel__tabs {
  display: flex;
  width: 100%;
  height: 58px;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 8px;
  scrollbar-width: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.gift-panel__tabs::-webkit-scrollbar {
  display: none;
}

.gift-panel__tabs .gift-category {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  height: 58px;
  min-height: 58px;
  align-items: center;
  gap: 4px;
  border: 0;
  border-radius: 0;
  padding: 0 10px;
  background: transparent;
  color: #625a55;
  font: 500 12px/1.2 system-ui, sans-serif;
  scroll-snap-align: center;
}

.gift-panel__tabs .gift-category > span {
  display: block;
  margin: 0;
  color: inherit;
  font: inherit;
}

.gift-panel__tabs .gift-category b {
  color: #aaa29e;
  font-size: 9px;
  font-weight: 600;
}

.gift-panel__tabs .gift-category[aria-selected="true"] {
  border-color: transparent;
  background: transparent;
  color: #ff3f63;
  font-weight: 700;
}

.gift-panel__tabs .gift-category[aria-selected="true"] b {
  color: #ff7890;
}

.gift-panel__tabs .gift-category[aria-selected="true"]::after {
  position: absolute;
  right: 13px;
  bottom: 0;
  left: 13px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #ff5a77;
  content: "";
}

.gift-panel__tabs .gift-category:focus-visible {
  border-color: transparent;
  outline: 2px solid rgba(255, 63, 99, 0.45);
  outline-offset: -5px;
  background: transparent;
  color: #ff3f63;
}

.gift-panel__close {
  z-index: 3;
  top: 11px;
  right: 12px;
  width: 34px;
  border-color: rgba(98, 84, 76, 0.14);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: none;
  color: #625a55;
}

.gift-panel__hint,
.gift-toolbar,
.gift-results {
  display: none;
}

.gift-results:has(#giftLoadState[data-visible]) {
  display: flex;
  min-height: 38px;
  padding: 8px 14px;
  background: #fff;
}

.gift-grid {
  flex: 1 1 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px 5px;
  min-height: 0;
  align-content: start;
  padding: 13px 12px 17px;
  background: #fff;
  scrollbar-width: none;
}

.gift-grid::-webkit-scrollbar {
  display: none;
}

.gift-card {
  min-height: 108px;
  grid-template-rows: 72px 18px 15px;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 4px 3px 5px;
  background: #fff;
  touch-action: pan-y;
  user-select: none;
}

.gift-grid.is-category-next {
  animation: giftCategoryNext 0.24s ease both;
}

.gift-grid.is-category-previous {
  animation: giftCategoryPrevious 0.24s ease both;
}

@keyframes giftCategoryNext {
  from { opacity: 0.55; transform: translateX(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes giftCategoryPrevious {
  from { opacity: 0.55; transform: translateX(-16px); }
  to { opacity: 1; transform: none; }
}

.gift-card:hover,
.gift-card:focus-visible,
.gift-card[aria-pressed="true"] {
  border-color: rgba(255, 82, 114, 0.34);
  background: #fff4f6;
  box-shadow: none;
}

.gift-card__media {
  height: 72px;
  border-radius: 11px;
  background: #f6f3f2;
  box-shadow: inset 0 0 0 1px rgba(91, 69, 60, 0.05);
}

.gift-card__preview {
  object-fit: contain;
  border-radius: 10px;
  mix-blend-mode: normal;
  filter: none;
}

.gift-card__name {
  margin-top: 2px;
  color: #4f4844;
  font-size: 11px;
  font-weight: 500;
}

.gift-card__price {
  color: #99918c;
  font-size: 10px;
  font-weight: 500;
}

.gift-card[aria-pressed="true"] .gift-card__name,
.gift-card[aria-pressed="true"] .gift-card__price {
  color: #ff3f63;
}

.gift-load-more {
  display: none;
}

.gift-checkout {
  border-radius: 20px 20px 0 0;
  padding: 11px 13px 0;
  border-top: 0;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 -9px 28px rgba(52, 39, 33, 0.11);
}

.gift-checkout__effect {
  min-height: 46px;
  border-radius: 12px;
  padding: 0 13px;
  background: #f7f6f5;
  color: #3f3a37;
  font-size: 12px;
}

.gift-checkout__effect strong {
  color: #ff3f63;
  font-size: 14px;
}

.gift-checkout__effect b {
  margin-left: 2px;
  font-weight: 700;
}

.gift-checkout > p {
  margin: 7px 4px 9px;
  color: #9b9591;
  font-size: 9px;
}

#giftSelectionName {
  color: #756d68;
}

.gift-effect-toggle {
  width: 49px;
  height: 26px;
}

.gift-effect-toggle i {
  border-radius: 13px;
  background: #dad7d5;
}

.gift-effect-toggle i::after {
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
}

.gift-effect-toggle input:checked + i {
  background: #ff3f63;
}

.gift-effect-toggle input:checked + i::after {
  transform: translateX(23px);
}

.gift-checkout__actions {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 10px;
}

.gift-sender input,
.gift-send {
  height: 44px;
  border-radius: 22px;
  font-size: 13px;
}

.gift-sender input {
  border-color: #e7e3e0;
  background: #fff;
}

.gift-send {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #ff3f63;
  font-size: 14px;
}

.gift-send span {
  font-size: 15px;
  transform: rotate(-16deg);
}

.gift-send:disabled {
  background: #d9d5d3;
}

@media (min-width: 700px) {
  .gift-panel {
    bottom: 18px;
    width: min(calc(100% - 36px), 420px);
    border-radius: 22px;
  }

  .gift-checkout {
    border-radius: 20px 20px 22px 22px;
    padding-bottom: 12px;
  }
}

@media (max-height: 700px) {
  .gift-panel {
    height: min(66svh, 540px);
    max-height: min(66svh, 540px);
  }
}

/* Editorial rhythm for the invitation's second half */
.invitation-copy {
  min-height: 980px;
  padding-top: 78px;
  padding-bottom: 68px;
}

.invitation-copy .arch-photo {
  margin-top: 62px;
}

.meet-us {
  min-height: 900px;
  padding-top: 76px;
  padding-bottom: 70px;
  background: #fbf7f1;
}

.meet-us .tiny-english {
  margin-top: 30px;
  margin-bottom: 30px;
}

.meet-us__quote {
  margin-top: 56px;
}

.vow-photo {
  height: 660px;
}

.gallery {
  min-height: 1080px;
  padding-top: 76px;
  padding-bottom: 64px;
  background: #f3eee7;
}

.gallery__layout {
  height: 790px;
  margin-top: 44px;
}

.gallery__main {
  height: 490px;
}

.gallery__small {
  top: 300px;
  height: 290px;
}

.gallery__wide {
  bottom: 16px;
  height: 226px;
}

.gallery__words {
  top: 496px;
  bottom: auto;
}

.gallery__chapters {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  color: var(--muted);
  font: 9px/1.1 "Songti SC", "STSong", serif;
  writing-mode: horizontal-tb;
}

.gallery__chapters i {
  display: block;
  width: 18px;
  height: 1px;
  background: rgba(167, 123, 69, 0.45);
}

.red-story__wide {
  height: 270px;
}

.red-story__copy {
  min-height: 350px;
  padding: 64px 30px 58px;
}

.red-story__copy h2 {
  margin: 24px 0 18px;
}

.red-story__note {
  margin: 0 auto 26px;
  max-width: 290px;
  color: rgba(255, 247, 238, 0.78);
  font-size: 12px;
  line-height: 1.9;
}

.wedding-info {
  min-height: 1120px;
  padding-top: 78px;
  padding-bottom: 70px;
  background: #fbf7f1;
}

.wedding-info__intro {
  margin: 25px auto 0;
  max-width: 300px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
  text-align: center;
}

.wedding-info .info-list {
  margin-top: 38px;
}

.wedding-info .calendar {
  margin-top: 52px;
}

.wedding-info .countdown {
  margin-top: 48px;
}

.rsvp {
  min-height: 610px;
  padding-top: 78px;
  padding-bottom: 64px;
}

.notes {
  margin-top: 44px;
}

@media (max-width: 360px) {
  .info-list {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
  }

  .info-list__date {
    font-size: 21px;
  }

  .info-list__address-text {
    font-size: 15px;
  }

  .info-list__address {
    padding-right: 38px;
  }

  .promise__heading,
  .promise__story {
    padding-right: 19px;
    padding-left: 19px;
  }

  .promise__heading h2 {
    font-size: 28px;
  }

  .promise__story {
    gap: 16px;
  }

  .promise__portrait {
    height: 330px;
  }

  .promise__copy {
    font-size: 10px;
  }

  .promise__copy h3 {
    font-size: 16px;
  }

  .gallery__layout {
    height: 760px;
  }

  .gallery__main {
    height: 462px;
  }

  .gallery__words {
    top: 468px;
  }

  .gallery__small {
    top: 284px;
    height: 276px;
  }
}

/* Keep the page itself clear while the gift list is open. */
.gift-backdrop {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* Blessing composer */
.blessing-trigger {
  position: fixed;
  z-index: 69;
  right: max(12px, calc((100vw - var(--shell-width)) / 2 + 12px));
  bottom: max(122px, calc(env(safe-area-inset-bottom) + 122px));
  display: inline-flex;
  min-width: 78px;
  height: 38px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 19px;
  padding: 0 11px;
  background: rgba(72, 51, 43, 0.76);
  box-shadow: 0 4px 14px rgba(46, 27, 21, 0.2), inset 0 1px rgba(255, 255, 255, 0.18);
  color: #fff7ed;
  font: 700 11px/1 system-ui, sans-serif;
  white-space: nowrap;
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.25s ease, transform 0.2s ease, visibility 0.25s ease, background 0.2s ease;
}

.blessing-trigger__icon {
  color: #ffd8ad;
  font-size: 17px;
  line-height: 1;
}

.blessing-trigger:hover,
.blessing-trigger:focus-visible {
  outline: 2px solid rgba(255, 216, 173, 0.65);
  outline-offset: 2px;
  background: rgba(93, 59, 46, 0.9);
  transform: translateY(-2px);
}

.blessing-trigger:active {
  transform: translateY(1px) scale(0.98);
}

html.invitation-pending .blessing-trigger,
html.audio-gate-open .blessing-trigger,
html.gift-ui-active .blessing-trigger,
html.blessing-ui-active .gift-trigger,
html.blessing-ui-active .live-like-button {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.blessing-backdrop {
  position: fixed;
  z-index: 74;
  top: 0;
  left: 50%;
  width: min(100%, var(--shell-width));
  height: 100svh;
  background: rgba(24, 18, 14, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 0.25s ease;
}

.blessing-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.blessing-panel {
  position: fixed;
  z-index: 76;
  bottom: 0;
  left: 50%;
  display: flex;
  width: min(calc(100% - 18px), 412px);
  max-height: min(82svh, 620px);
  flex-direction: column;
  overflow: auto;
  border: 1px solid rgba(167, 123, 69, 0.36);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #fffdf9;
  box-shadow: 0 -10px 34px rgba(54, 32, 22, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.blessing-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.blessing-panel__header {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(167, 123, 69, 0.18);
  padding: 16px 18px 13px;
}

.blessing-panel__eyebrow {
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.blessing-panel__header h2 {
  margin: 5px 0 0;
  color: var(--ink);
  font: 700 20px/1.25 system-ui, sans-serif;
}

.blessing-panel__close {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(167, 123, 69, 0.24);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.blessing-panel__close:hover,
.blessing-panel__close:focus-visible {
  outline: 2px solid rgba(178, 42, 34, 0.24);
  outline-offset: 1px;
  color: var(--vermillion);
}

.blessing-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.blessing-field {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.blessing-field > span {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.blessing-field > span small,
.blessing-field__hint {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.blessing-field > span b {
  color: var(--vermillion);
  font-weight: 800;
}

.blessing-field input,
.blessing-field textarea {
  width: 100%;
  border: 1px solid rgba(167, 123, 69, 0.28);
  border-radius: 5px;
  padding: 10px 11px;
  background: #fff;
  color: var(--ink);
  font: 400 13px/1.55 system-ui, sans-serif;
  resize: vertical;
}

.blessing-field textarea {
  min-height: 112px;
}

.blessing-field input:focus,
.blessing-field textarea:focus {
  outline: 2px solid rgba(178, 42, 34, 0.18);
  outline-offset: 1px;
  border-color: rgba(178, 42, 34, 0.5);
}

.blessing-field__hint {
  margin-top: -3px;
  text-align: right;
}

.blessing-submit {
  min-height: 42px;
  border: 1px solid rgba(178, 42, 34, 0.18);
  border-radius: 5px;
  background: var(--vermillion);
  color: #fff;
  font: 700 13px/1 system-ui, sans-serif;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.blessing-submit:hover,
.blessing-submit:focus-visible {
  outline: 2px solid rgba(178, 42, 34, 0.22);
  outline-offset: 2px;
  background: #9d211b;
}

.blessing-submit:active {
  transform: translateY(1px);
}

.blessing-submit:disabled {
  cursor: wait;
  opacity: 0.62;
}

.blessing-status {
  min-height: 18px;
  margin: -3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.blessing-status[data-state="success"] {
  color: #52705a;
}

.blessing-status[data-state="error"] {
  color: var(--vermillion);
}

@media (max-width: 360px) {
  .blessing-trigger {
    min-width: 70px;
    padding: 0 8px;
    font-size: 10px;
  }

  .blessing-panel__header,
  .blessing-form {
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (min-width: 700px) {
  .blessing-trigger {
    bottom: max(126px, calc(env(safe-area-inset-bottom) + 126px));
  }

  .blessing-backdrop {
    top: 18px;
    height: calc(100svh - 36px);
  }

  .blessing-panel {
    bottom: 18px;
    border-bottom: 1px solid rgba(167, 123, 69, 0.36);
    border-radius: 8px;
  }
}

/* Unified bottom action dock */
.invitation-actions {
  position: fixed;
  z-index: 69;
  bottom: max(12px, calc(env(safe-area-inset-bottom) + 12px));
  left: 50%;
  display: grid;
  width: min(calc(100% - 24px), calc(var(--shell-width) - 24px));
  grid-template-columns: repeat(3, minmax(0, 1fr)) 42px;
  grid-template-rows: repeat(3, 42px);
  gap: 10px;
  opacity: 1;
  transform: translateX(-50%);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

html.invitation-pending .invitation-actions,
html.audio-gate-open .invitation-actions,
html.gift-ui-active .invitation-actions,
html.blessing-ui-active .invitation-actions {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.invitation-actions .gift-trigger {
  position: relative;
  inset: auto;
  z-index: auto;
  display: grid;
  width: auto;
  height: auto;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 42px;
  grid-template-rows: repeat(3, 42px);
  gap: 10px;
  overflow: visible;
  padding: 0;
  pointer-events: none;
  transform: none;
}

.invitation-actions .gift-trigger:hover,
.invitation-actions .gift-trigger:focus-visible,
.invitation-actions .gift-trigger:active {
  transform: none;
}

.invitation-actions .gift-trigger__preview {
  display: grid;
  width: auto;
  height: 42px;
  grid-column: 1 / 4;
  grid-row: 3;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  pointer-events: auto;
}

.invitation-actions .gift-trigger__item {
  display: grid;
  width: 100%;
  height: 42px;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 21px;
  padding: 4px 6px 4px 5px;
  background: rgba(92, 89, 87, 0.82);
  box-shadow: 0 3px 10px rgba(38, 31, 28, 0.14), inset 0 1px rgba(255, 255, 255, 0.12);
  color: #fff;
}

.invitation-actions .gift-trigger__item + .gift-trigger__item {
  border-left: 1px solid rgba(255, 255, 255, 0.34);
}

.invitation-actions .gift-trigger__item:hover,
.invitation-actions .gift-trigger__item:focus-visible {
  outline: 2px solid rgba(178, 42, 34, 0.24);
  outline-offset: 1px;
  background: rgba(74, 71, 69, 0.94);
}

.invitation-actions .gift-trigger__item img {
  width: 30px;
  height: 30px;
}

.invitation-actions .gift-trigger__item-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.invitation-actions .gift-trigger__item-copy > span {
  overflow: hidden;
  color: #fff;
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invitation-actions .gift-trigger__item-copy small {
  color: #ffd23f;
  font-size: 8px;
  font-weight: 750;
  text-shadow: 0 1px 3px rgba(92, 55, 0, 0.42);
}

.invitation-actions .gift-trigger__cta,
.invitation-actions .live-like-button,
.invitation-actions .blessing-trigger {
  position: relative;
  inset: auto;
  z-index: 1;
  display: grid;
  width: 42px;
  min-width: 0;
  height: 42px;
  place-items: center;
  gap: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  padding: 0;
  background: rgba(92, 89, 87, 0.82);
  box-shadow: 0 3px 10px rgba(38, 31, 28, 0.14), inset 0 1px rgba(255, 255, 255, 0.12);
  color: #fffaf5;
  font: 700 11px/1 system-ui, sans-serif;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  pointer-events: auto;
  transform: none;
}

.invitation-actions .gift-trigger__cta {
  grid-column: 4;
  grid-row: 3;
}

.invitation-actions .live-like-button {
  grid-column: 4;
  grid-row: 2;
}

.invitation-actions .blessing-trigger {
  grid-column: 4;
  grid-row: 1;
}

.invitation-actions .gift-trigger__cta:hover,
.invitation-actions .gift-trigger__cta:focus-visible,
.invitation-actions .live-like-button:hover,
.invitation-actions .live-like-button:focus-visible,
.invitation-actions .blessing-trigger:hover,
.invitation-actions .blessing-trigger:focus-visible {
  outline: 2px solid rgba(178, 42, 34, 0.28);
  outline-offset: 1px;
  background: rgba(104, 77, 65, 0.96);
  transform: none;
}

.invitation-actions .gift-trigger__gift-icon,
.invitation-actions .live-like-button__icon,
.invitation-actions .blessing-trigger__icon {
  flex: 0 0 auto;
  color: #ffd9ad;
  font-size: 20px;
  line-height: 1;
  text-shadow: none;
  transform: none;
}

.invitation-actions .live-like-button__icon {
  color: #ff7d8a;
  font-size: 22px;
}

.invitation-actions .gift-trigger__cta-label,
.invitation-actions .live-like-button__label,
.invitation-actions .blessing-trigger strong {
  display: none;
}

.invitation-actions .gift-trigger__cta strong {
  position: absolute;
  right: -2px;
  bottom: -2px;
  min-width: 25px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  padding: 2px 3px 1px;
  background: var(--vermillion);
  color: #fff;
  font: 700 7px/1 system-ui, sans-serif;
  white-space: nowrap;
}

.invitation-actions .live-like-button b {
  position: absolute;
  right: -2px;
  bottom: -2px;
  min-width: 20px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 9px;
  padding: 1px 4px;
  background: rgba(215, 40, 58, 0.88);
  color: #fff;
  font: 700 8px/1.35 system-ui, sans-serif;
  white-space: nowrap;
}

.live-like-layer {
  right: max(12px, calc((100vw - var(--shell-width)) / 2 + 12px));
  bottom: max(84px, calc(env(safe-area-inset-bottom) + 84px));
  left: auto;
  transform: none;
}

.live-like-particle {
  right: 11px;
}

.gift-checkout {
  padding-bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px));
}

@media (max-width: 360px) {
  .invitation-actions {
    width: calc(100% - 16px);
    grid-template-columns: repeat(3, minmax(0, 1fr)) 40px;
    grid-template-rows: repeat(3, 40px);
    gap: 8px;
  }

  .invitation-actions .gift-trigger {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 40px;
    grid-template-rows: repeat(3, 40px);
    gap: 8px;
  }

  .invitation-actions .gift-trigger__preview {
    height: 40px;
    gap: 8px;
  }

  .invitation-actions .gift-trigger__item {
    height: 40px;
    grid-template-columns: 27px minmax(0, 1fr);
    gap: 3px;
    padding-right: 4px;
  }

  .invitation-actions .gift-trigger__item img {
    width: 27px;
    height: 27px;
  }

  .invitation-actions .gift-trigger__cta,
  .invitation-actions .live-like-button,
  .invitation-actions .blessing-trigger {
    width: 40px;
    height: 40px;
  }
}

@media (min-width: 700px) {
  .invitation-actions {
    bottom: 30px;
  }

  .gift-checkout {
    padding-bottom: 18px;
  }
}
