:root {
  --ink: #05070b;
  --navy: #061529;
  --navy-2: #0a2744;
  --gold: #e4a936;
  --gold-2: #f4d187;
  --rose: #f1c7c8;
  --rose-2: #fff1ef;
  --paper: #fffaf3;
  --muted: #c9d3df;
  --line: rgba(228, 169, 54, 0.4);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 18% -8%, rgba(241, 199, 200, 0.2), transparent 23rem),
    radial-gradient(circle at 88% 12%, rgba(228, 169, 54, 0.2), transparent 22rem),
    linear-gradient(90deg, #020811 0%, #061529 48%, #05070b 100%);
  color: var(--paper);
  font-size: 16px;
  line-height: 1.45;
}

body.is-locked {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(244, 209, 135, 0.68);
  outline-offset: 3px;
}

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

.icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  fill: none;
  vertical-align: -0.16em;
}

.script-label {
  margin: 0;
  color: var(--gold-2);
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 1.55rem;
  font-style: italic;
  line-height: 1;
}

.xm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  padding: 10px max(14px, env(safe-area-inset-left)) 10px max(14px, env(safe-area-inset-right));
  border-bottom: 1px solid rgba(228, 169, 54, 0.14);
  background: rgba(3, 12, 24, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: clamp(58px, 16vw, 82px);
  height: 46px;
  flex: 0 1 auto;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.16);
  opacity: 0.88;
  box-shadow: none;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center 42%;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 13px;
  color: var(--gold-2);
}

.brand-icon {
  width: 27px;
  height: 27px;
}

.brand strong,
.brand em {
  display: block;
  line-height: 1;
}

.brand strong {
  color: white;
  font-size: 1.12rem;
}

.brand em {
  color: var(--gold-2);
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 1.08rem;
}

.desktop-nav {
  display: none;
}

.menu-button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--gold-2);
}

.page-shell {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 0 12px calc(102px + env(safe-area-inset-bottom));
}

.hero-card {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  margin: 0 -12px 14px;
  border: 0 solid transparent;
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 28px 28px;
  background: var(--navy);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: 63% center;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(5, 7, 11, 0.12), rgba(5, 7, 11, 0.76) 52%, rgba(5, 7, 11, 0.98)),
    linear-gradient(90deg, rgba(5, 7, 11, 0.84), rgba(5, 7, 11, 0.24) 62%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 720px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 124px 18px 28px;
}

.hero-card h1 {
  max-width: 8ch;
  margin: 4px 0 0;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.2rem, 19vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.44);
}

.hero-copy {
  max-width: 310px;
  margin: 12px 0 16px;
  color: white;
  font-size: 1.04rem;
  font-weight: 650;
}

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

.event-facts button {
  display: grid;
  min-height: 82px;
  place-items: center;
  gap: 5px;
  padding: 9px 6px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 15px;
  background: rgba(9, 31, 56, 0.76);
  color: var(--gold-2);
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.event-facts button:active {
  transform: scale(0.98);
}

.event-facts strong,
.event-facts small {
  display: block;
}

.event-facts strong {
  color: white;
  font-size: 0.72rem;
  line-height: 1.12;
}

.event-facts small {
  color: var(--muted);
  font-size: 0.67rem;
}

.hero-actions {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 15px;
  font-weight: 850;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:active {
  transform: scale(0.985);
}

.button.primary,
.primary {
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, #f1bb53, #c7831e);
  color: white;
  box-shadow: 0 14px 34px rgba(194, 119, 29, 0.3);
}

.button.ghost,
.ghost {
  border-color: var(--gold);
  background: rgba(5, 7, 11, 0.58);
  color: var(--gold-2);
}

.button.full {
  width: 100%;
}

.countdown {
  display: grid;
  grid-template-columns: 0.95fr 1.35fr repeat(3, minmax(38px, 0.72fr));
  gap: 6px;
  align-items: center;
  min-height: 78px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 33, 60, 0.84);
  text-align: center;
}

.count-label {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 1.4rem;
}

.count-days,
.count-unit {
  display: grid;
  min-width: 0;
  place-items: center;
}

.count-days {
  grid-template-columns: minmax(0, auto) auto;
  justify-content: center;
  column-gap: 5px;
}

.countdown strong {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 1;
}

.countdown b {
  color: white;
  font-size: 1.12rem;
}

.countdown small {
  color: var(--muted);
  font-size: 0.72rem;
}

.content-grid {
  display: grid;
  gap: 12px;
}

.card,
.closing-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(11, 42, 74, 0.94), rgba(5, 21, 41, 0.98)),
    var(--navy-2);
  box-shadow: var(--shadow);
}

.card {
  padding: 16px;
}

.section-title,
.section-row {
  display: flex;
  align-items: center;
}

.section-title {
  min-width: 0;
  gap: 10px;
}

.section-title > .icon,
.info-card > .icon {
  color: var(--gold);
  width: 1.35rem;
  height: 1.35rem;
}

.section-title h2,
.card h2 {
  margin: 0;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 7vw, 2.05rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--gold-2);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-row {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pill-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: rgba(5, 7, 11, 0.46);
  color: var(--gold-2);
  font-size: 0.82rem;
  font-weight: 850;
  white-space: nowrap;
}

.music-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
}

.music-card > img {
  width: 112px;
  height: 156px;
  border-radius: 18px;
  object-fit: cover;
}

.music-card h2 {
  font-size: 1.75rem;
}

.music-card p:not(.script-label) {
  margin: 6px 0 12px;
  color: var(--muted);
}

.song-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.play-control {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #f1bb53, #c7831e);
  color: white;
}

.wave {
  display: inline-flex;
  width: calc(100% - 62px);
  height: 42px;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
  vertical-align: middle;
}

.wave i {
  display: block;
  width: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.wave i:nth-child(odd) { height: 18px; }
.wave i:nth-child(even) { height: 31px; }
.is-playing .wave i {
  animation: wave 700ms ease-in-out infinite alternate;
}
.is-playing .wave i:nth-child(2n) {
  animation-delay: 120ms;
}

.song-actions .wave {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  margin-left: 0;
}

.song-link {
  position: relative;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 50px minmax(0, 1fr) 18px;
  width: 100%;
  min-height: 66px;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  overflow: hidden;
  padding: 8px 10px;
  border: 1px solid rgba(244, 209, 135, 0.7);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.96), rgba(19, 13, 4, 0.94) 56%, rgba(177, 122, 29, 0.3)),
    #020202;
  color: white;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 233, 166, 0.12), 0 14px 30px rgba(0, 0, 0, 0.24);
}

.song-link::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(115deg, transparent, rgba(255, 230, 155, 0.18), transparent);
  transform: translateX(-100%);
  transition: transform 420ms ease;
}

.song-link:active {
  transform: scale(0.99);
}

.song-link:hover::after,
.song-link:focus-visible::after {
  transform: translateX(100%);
}

.song-link img {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(244, 209, 135, 0.48);
  border-radius: 13px;
  object-fit: cover;
  object-position: center 42%;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.36);
}

.song-link span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.song-link strong,
.song-link small {
  overflow-wrap: anywhere;
}

.song-link strong {
  color: #f7d275;
  font-size: 0.9rem;
  line-height: 1.1;
}

.song-link small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 750;
}

.song-link > .icon {
  color: #f7d275;
}

.rsvp-summary {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.summary-pill,
.pass-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.summary-pill strong,
.pass-stat strong {
  color: white;
}

.summary-pill span,
.pass-stat span {
  color: var(--muted);
  font-size: 0.86rem;
}

.album-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.album-tabs button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--paper);
  font-size: 0.84rem;
  font-weight: 850;
}

.album-tabs button.is-selected {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, #f1bb53, #c7831e);
  color: white;
}

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

.media-tile {
  position: relative;
  min-height: 148px;
  overflow: hidden;
  border: 1px solid rgba(244, 209, 135, 0.44);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
}

.media-tile:nth-child(3n + 1) {
  min-height: 190px;
}

.media-tile img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.media-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 45%, rgba(5, 7, 11, 0.76));
}

.media-tile b,
.media-tile .play-badge {
  position: absolute;
  z-index: 1;
}

.media-tile b {
  right: 10px;
  bottom: 9px;
  left: 10px;
  color: white;
  font-size: 0.82rem;
}

.play-badge {
  top: 10px;
  right: 10px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: rgba(5, 7, 11, 0.68);
  color: var(--gold-2);
}

.play-badge.is-centered {
  top: 50%;
  right: auto;
  left: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
}

.share-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 84px;
  gap: 10px;
  align-items: center;
}

.camera-tile {
  display: grid;
  width: 64px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(180deg, var(--gold-2), #c7831e);
  color: white;
}

.share-card h2 {
  margin: 0 0 4px;
  font-size: 1.28rem;
}

.share-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.share-card img {
  width: 84px;
  height: auto;
  border-radius: 10px;
  background: white;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.message-grid {
  display: grid;
  gap: 10px;
}

.wish-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(241, 199, 200, 0.28);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 241, 239, 0.11), rgba(255, 255, 255, 0.035));
}

.avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-2), var(--gold));
  color: var(--ink);
  font-weight: 900;
}

.wish-card h3 {
  margin: 0 0 3px;
  color: white;
  font-size: 0.94rem;
}

.wish-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.wish-card small {
  color: var(--gold-2);
  font-weight: 800;
}

.messages-card .button {
  margin-top: 12px;
}

.digital-pass {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.pass-face {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(244, 209, 135, 0.34);
  border-radius: 20px;
  background:
    radial-gradient(circle at 0 0, rgba(241, 199, 200, 0.22), transparent 18rem),
    linear-gradient(145deg, #fffaf3, #fff1ef);
  color: var(--ink);
}

.pass-face h3 {
  margin: 0 0 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
}

.pass-face p {
  margin: 0;
  color: #4d3b32;
  font-weight: 750;
}

.pass-face img {
  width: 112px;
  border-radius: 13px;
}

.pass-code {
  display: inline-flex;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(228, 169, 54, 0.16);
  color: #6d4310;
  font-weight: 900;
}

.pass-stats {
  display: grid;
  gap: 8px;
}

.table-map {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.round-table {
  position: relative;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: white;
  font-size: 2rem;
  font-weight: 900;
}

.seat {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.seat.is-active {
  border-color: var(--gold-2);
  background: var(--gold);
}

.seat:nth-child(2) { top: -9px; left: 37px; }
.seat:nth-child(3) { right: -5px; top: 36px; }
.seat:nth-child(4) { bottom: -6px; left: 36px; }
.seat:nth-child(5) { left: -5px; top: 36px; }

.pass-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.info-grid {
  display: grid;
  gap: 12px;
}

.info-card h2 {
  margin: 10px 0 8px;
}

.info-card p,
.closing-card p {
  color: var(--muted);
}

.info-card button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--gold-2);
  font-weight: 900;
}

.closing-card {
  padding: 22px 18px;
  text-align: center;
}

.closing-card p {
  margin: 0;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.38rem;
  line-height: 1.2;
}

.bottom-nav {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  left: max(12px, env(safe-area-inset-left));
  z-index: 45;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 66px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(3, 12, 24, 0.94);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.bottom-nav a {
  display: grid;
  place-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.bottom-nav a.is-active {
  background: rgba(228, 169, 54, 0.1);
  color: var(--gold-2);
}

.bottom-nav .icon {
  width: 1.32rem;
  height: 1.32rem;
}

.sheet,
.immersive {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}

.sheet.is-open,
.immersive.is-open {
  display: block;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(5, 7, 11, 0.62);
  backdrop-filter: blur(8px);
}

.sheet-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  max-height: min(92vh, 820px);
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
  border: 1px solid rgba(228, 169, 54, 0.34);
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, #102c4a, #050d19 78%);
  box-shadow: 0 -30px 80px rgba(0, 0, 0, 0.48);
  animation: sheetIn 220ms ease;
}

.sheet-handle {
  width: 48px;
  height: 5px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 8px;
}

.sheet-header h2 {
  margin: 0;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  line-height: 1;
}

.sheet-header button,
.immersive header button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font-size: 1.6rem;
}

.sheet-body {
  overflow: auto;
  padding: 8px 18px 22px;
}

.sheet-actions {
  display: grid;
  gap: 10px;
}

.option-card,
.gift-card,
.menu-option,
.timeline-item,
.location-option,
.reminder-option {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.option-card,
.location-option,
.reminder-option {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  color: var(--paper);
  font-weight: 850;
}

.option-card .icon,
.location-option .icon,
.reminder-option .icon {
  color: var(--gold-2);
}

.sheet-note {
  margin: 0 0 14px;
  color: var(--muted);
}

.success-box {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(244, 209, 135, 0.34);
  border-radius: 18px;
  background: rgba(228, 169, 54, 0.1);
}

.success-box strong {
  color: white;
  font-size: 1.1rem;
}

.rsvp-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.rsvp-progress span {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.rsvp-progress span.is-active,
.rsvp-progress span.is-done {
  background: var(--gold);
}

.rsvp-step {
  display: grid;
  gap: 14px;
}

.rsvp-step h3,
.sheet-section h3 {
  margin: 0;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.field {
  display: grid;
  gap: 7px;
}

.field span,
.guest-card label span {
  color: var(--paper);
  font-weight: 850;
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(5, 7, 11, 0.36);
  color: var(--paper);
  padding: 0 13px;
  font-size: 16px;
}

textarea {
  min-height: 104px;
  padding-top: 12px;
  resize: vertical;
}

.choice-grid,
.counter-row,
.sheet-footer {
  display: grid;
  gap: 10px;
}

.choice-button {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--paper);
  font-weight: 900;
}

.choice-button.is-selected,
.menu-option.is-selected {
  border-color: rgba(255, 255, 255, 0.26);
  background: linear-gradient(145deg, rgba(228, 169, 54, 0.96), rgba(196, 119, 29, 0.98));
  color: white;
}

.counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.counter-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.counter-controls button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(5, 7, 11, 0.4);
  color: var(--gold-2);
  font-size: 1.2rem;
  font-weight: 900;
}

.guest-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.person-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.person-tabs button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--paper);
  font-weight: 850;
}

.person-tabs button.is-selected {
  border-color: var(--gold);
  color: var(--gold-2);
}

.menu-list {
  display: grid;
  gap: 10px;
}

.menu-option {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  text-align: left;
  color: var(--paper);
}

.menu-photo,
.gift-visual {
  display: grid;
  min-height: 78px;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.8), transparent 22%),
    linear-gradient(135deg, #f4d187, #845017);
  color: #3a2107;
  font-weight: 900;
}

.menu-photo img,
.gift-visual img {
  width: 100%;
  height: 100%;
  min-height: 78px;
  object-fit: cover;
}

.menu-beef { background: linear-gradient(135deg, #3f1917, #e0a04d); }
.menu-pasta { background: linear-gradient(135deg, #f5dd9c, #af532c); }
.menu-kids { background: linear-gradient(135deg, #f7c97e, #a55b8d); }
.gift-headphones { background: linear-gradient(135deg, #f2f2f2, #b79957); }
.gift-luggage { background: linear-gradient(135deg, #1b2943, #e4a936); }
.menu-chicken { background: linear-gradient(135deg, #f4d187, #845017); }
.gift-card-visual { background: linear-gradient(135deg, #fff1ef, #e4a936); }
.gift-camera { background: linear-gradient(135deg, #1d1d1d, #f4d187); }
.gift-perfume { background: linear-gradient(135deg, #f8e0df, #c7831e); }

.menu-option h4,
.gift-card h4 {
  margin: 0 0 4px;
  color: white;
  font-size: 0.96rem;
}

.menu-option p,
.gift-card p,
.timeline-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold-2);
  font-size: 0.72rem;
  font-weight: 850;
}

.restriction-toggle {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: var(--paper);
  font-weight: 850;
}

.restriction-toggle input {
  width: 20px;
  min-height: 20px;
}

.summary-list {
  display: grid;
  gap: 8px;
}

.location-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.location-carousel img,
.skeleton-photo {
  width: 100%;
  aspect-ratio: 1.42;
  border-radius: 18px;
  object-fit: cover;
}

.skeleton-photo {
  background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.18), rgba(255,255,255,0.08));
  animation: shimmer 1s linear infinite;
}

.place-detail {
  display: grid;
  gap: 8px;
  margin: 4px 0 16px;
}

.place-detail h3 {
  margin: 0;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
}

.place-detail p {
  margin: 0;
  color: var(--muted);
}

.gift-list,
.timeline-list {
  display: grid;
  gap: 10px;
}

.gift-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
}

.gift-card.is-taken {
  opacity: 0.58;
}

.gift-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.gift-card button {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: rgba(5, 7, 11, 0.36);
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 900;
}

.gift-card button:disabled {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--muted);
  cursor: not-allowed;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}

.timeline-item::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 54px;
  width: 2px;
  content: "";
  background: linear-gradient(var(--gold), rgba(228, 169, 54, 0.08));
}

.timeline-time {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 58px;
  place-items: center;
  border: 1px solid rgba(228, 169, 54, 0.42);
  border-radius: 15px;
  background: #081c33;
  color: var(--gold-2);
  font-size: 0.8rem;
  font-weight: 900;
  text-align: center;
}

.timeline-item h4 {
  margin: 0 0 4px;
  color: white;
}

.timeline-state {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(228, 169, 54, 0.14);
  color: var(--gold-2);
  font-size: 0.72rem;
  font-weight: 900;
}

.immersive {
  background: rgba(5, 7, 11, 0.92);
  backdrop-filter: blur(10px);
}

.immersive-panel {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
}

.immersive header {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
}

.immersive h2 {
  margin: 0;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
}

#immersiveBody {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 16px 20px;
}

.lightbox-media {
  position: relative;
  display: grid;
  min-height: calc(100vh - 170px);
  place-items: center;
}

.lightbox-media img,
.lightbox-media video {
  max-width: 100%;
  max-height: calc(100vh - 180px);
  border-radius: 22px;
  object-fit: contain;
}

.lightbox-controls,
.presentation-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

.lightbox-controls button,
.presentation-controls button {
  min-height: 46px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-2);
  font-weight: 900;
}

.lightbox-controls span {
  color: var(--muted);
  font-weight: 850;
}

.board-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.board-toolbar button {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
  font-weight: 900;
}

.board-toolbar button.is-selected {
  background: linear-gradient(180deg, #f1bb53, #c7831e);
  color: white;
}

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

.wish-mural .wish-card:nth-child(3n + 1) {
  grid-row: span 2;
}

.presentation-card {
  display: grid;
  min-height: 54vh;
  place-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 0, rgba(241, 199, 200, 0.18), transparent 20rem),
    linear-gradient(145deg, #102c4a, #050d19);
  text-align: center;
}

.presentation-card blockquote {
  margin: 0;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 9vw, 4rem);
  line-height: 1.1;
}

.presentation-card cite {
  display: block;
  margin-top: 18px;
  color: var(--gold-2);
  font-style: normal;
  font-weight: 900;
}

.fullscreen-pass {
  display: grid;
  gap: 18px;
  max-width: 440px;
  margin: 0 auto;
  padding: 24px;
  border-radius: 30px;
  background: linear-gradient(145deg, #fffaf3, #fff1ef);
  color: var(--ink);
  text-align: center;
}

.fullscreen-pass img {
  width: min(72vw, 300px);
  margin: 0 auto;
  border-radius: 18px;
}

.fullscreen-pass h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: calc(92px + env(safe-area-inset-bottom));
  left: 16px;
  z-index: 120;
  display: none;
  padding: 14px 16px;
  border: 1px solid rgba(244, 209, 135, 0.46);
  border-radius: 16px;
  background: rgba(5, 13, 25, 0.96);
  color: var(--paper);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
}

.toast.is-visible {
  display: block;
}

@keyframes wave {
  from { transform: scaleY(0.75); opacity: 0.5; }
  to { transform: scaleY(1.15); opacity: 1; }
}

@keyframes sheetIn {
  from { transform: translateY(18px); opacity: 0.8; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes shimmer {
  from { background-position: -220px 0; }
  to { background-position: 220px 0; }
}

@media (max-width: 350px) {
  .page-shell {
    padding-inline: 8px;
  }

  .countdown {
    grid-template-columns: 0.82fr 1.22fr repeat(3, minmax(32px, 0.64fr));
    gap: 3px;
    padding: 8px 7px;
  }

  .count-label {
    font-size: 1.12rem;
  }

  .countdown strong {
    font-size: 2.55rem;
  }

  .countdown b {
    font-size: 0.98rem;
  }

  .countdown small {
    font-size: 0.62rem;
  }

  .hero-card {
    margin-inline: -8px;
  }

  .hero-content {
    padding-inline: 14px;
  }

  .share-card {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .share-card img {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .pass-face {
    grid-template-columns: 1fr;
  }

  .pass-face img {
    justify-self: center;
  }
}

@media (min-width: 560px) {
  .hero-actions {
    grid-template-columns: 1fr 1fr;
  }

  .pass-actions,
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (min-width: 980px) {
  body {
    background: #f7f2ea;
    color: var(--ink);
  }

  .xm-header {
    padding-inline: clamp(28px, 4vw, 56px);
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
  }

  .desktop-nav a,
  .desktop-nav button {
    border: 0;
    background: transparent;
    color: white;
    font-weight: 900;
  }

  .desktop-nav button {
    min-height: 46px;
    padding: 0 22px;
    border: 2px solid var(--gold);
    border-radius: 14px;
    color: var(--gold-2);
  }

  .menu-button,
  .bottom-nav {
    display: none;
  }

  .page-shell {
    width: 100%;
    max-width: none;
    padding: 0 36px 44px;
  }

  .hero-card {
    min-height: 380px;
    margin: 0 -36px 22px;
    border-radius: 0;
  }

  .hero-content {
    min-height: 380px;
    max-width: 1540px;
    margin: 0 auto;
    padding: 38px 72px;
    justify-content: center;
  }

  .hero-card h1 {
    max-width: none;
    font-size: clamp(4.5rem, 5.5vw, 6rem);
  }

  .event-facts {
    width: min(650px, 52vw);
  }

  .hero-actions {
    width: min(540px, 44vw);
  }

  .countdown {
    position: absolute;
    top: 76px;
    right: clamp(70px, 9vw, 170px);
    width: 210px;
    min-height: 202px;
    grid-template-columns: repeat(3, 1fr);
  }

  .countdown span,
  .countdown strong,
  .countdown > small:first-of-type {
    grid-column: span 3;
  }

  .content-grid {
    max-width: 1540px;
    margin: 0 auto;
    grid-template-columns: 0.9fr 1.02fr 1.08fr 0.58fr;
    align-items: start;
    gap: 14px;
  }

  .card,
  .closing-card {
    border-color: rgba(5, 7, 11, 0.12);
    background: white;
    color: var(--ink);
    box-shadow: 0 14px 38px rgba(20, 18, 18, 0.1);
  }

  .music-card {
    background: linear-gradient(145deg, #102c4a, #050d19);
    color: var(--paper);
  }

  .card h2,
  .section-title h2,
  .wish-card h3,
  .menu-option h4,
  .timeline-item h4 {
    color: var(--ink);
  }

  .music-card h2,
  .music-card .script-label,
  .music-card p,
  .music-card .wave {
    color: var(--paper);
  }

  .rsvp-summary-card,
  .gallery-card {
    min-height: 286px;
  }

  .gallery-card {
    grid-column: span 1;
  }

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

  .media-tile,
  .media-tile:nth-child(3n + 1) {
    min-height: 112px;
  }

  .share-card {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 286px;
    text-align: center;
  }

  .messages-card {
    grid-column: span 2;
  }

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

  .pass-card {
    grid-column: span 2;
  }

  .info-grid {
    grid-column: span 2;
    grid-template-columns: repeat(2, 1fr);
  }

  .closing-card {
    grid-column: 1 / -1;
  }

  .summary-pill,
  .pass-stat,
  .wish-card,
  .table-map,
  .album-tabs button {
    border-color: rgba(5, 7, 11, 0.12);
    background: #fffaf3;
  }

  .summary-pill span,
  .pass-stat span,
  .wish-card p,
  .info-card p,
  .closing-card p {
    color: #314156;
  }

  input,
  textarea {
    background: white;
    color: var(--ink);
  }

  .sheet-panel {
    right: max(24px, calc((100vw - 680px) / 2));
    left: max(24px, calc((100vw - 680px) / 2));
    border-radius: 28px 28px 0 0;
  }
}

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