/* ===== Design tokens ===== */
/* Hallmark audit fix · playful invitation */
:root {
  --color-primary: #18181b;
  --color-accent: #ec4899;
  --color-accent-deep: #be185d;
  --color-pink-soft: #f8c8dc;
  --color-pink-mid: #f5a8c4;
  --color-pink-bg: #fce4ec;
  --color-pink-deep: #8b4558;
  --color-pink-blush: #fde8ef;
  --color-rose: #c2185b;
  --color-bg: #fffafb;
  --color-muted: #6b5b62;
  --color-white: #ffffff;
  --color-black: #0a0a0a;
  --color-ink: #111111;
  --color-silver: #c0c0c0;
  --color-silver-text: #e8e8e8;
  --color-pink-glow: #f0d0dc;
  --color-sky-top: #f5d0dc;
  --color-blue-accent: #7eb8e8;
  --color-venue-paper: #faf6f4;
  --color-venue-paper-2: #f5ebe8;
  --color-body-grad-1: #e8b4c8;
  --color-body-grad-2: #d4a0b8;
  --color-dark-plum: #2a1020;
  --color-overlay: rgba(10, 10, 10, 0.96);
  --color-overlay-border: rgba(255, 255, 255, 0.08);
  --color-glass-border: rgba(255, 255, 255, 0.65);
  --color-glass-top: rgba(255, 210, 225, 0.82);
  --color-glass-bottom: rgba(255, 175, 205, 0.62);
  --color-shadow-soft: rgba(0, 0, 0, 0.12);
  --color-shadow-accent: rgba(236, 72, 153, 0.22);
  --color-modal-scrim: rgba(0, 0, 0, 0.55);
  --color-accent-line: rgba(236, 72, 153, 0.35);
  --color-divider-line: rgba(0, 0, 0, 0.12);
  --color-spark: rgba(255, 255, 255, 0.75);
  --color-neon-fill: rgba(0, 0, 0, 0.35);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
  --font-script: 'Great Vibes', cursive;
  --font-serif: 'Cormorant Infant', Georgia, serif;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  --radius-pill: 999px;
  --radius-card: 1.25rem;
  --site-max: 480px;
  --transition: 200ms ease;
  --touch-min: 44px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

/* ===== Reset & base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  height: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--color-pink-soft);
  color: var(--color-primary);
  -webkit-font-smoothing: antialiased;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  overflow-x: clip;
}

body.modal-open {
  overflow: hidden;
  overscroll-behavior: contain;
}

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

button,
a {
  font: inherit;
}

.hidden {
  display: none !important;
}

.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;
}

.skip-link {
  position: absolute;
  top: var(--safe-top);
  left: var(--space-md);
  z-index: 300;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  box-shadow: 0 4px 16px var(--color-shadow-soft);
  transform: translateY(-120%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(var(--space-sm));
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ===== Ambient sparkles ===== */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient__spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  animation: sparkFloat 7s ease-in-out infinite;
}

.ambient__spark:nth-child(1) { top: 8%;  left: 12%; animation-delay: 0s; }
.ambient__spark:nth-child(2) { top: 22%; left: 85%; animation-delay: 1.4s; width: 3px; height: 3px; }
.ambient__spark:nth-child(3) { top: 48%; left: 8%;  animation-delay: 2.8s; }
.ambient__spark:nth-child(4) { top: 62%; left: 92%; animation-delay: 0.6s; width: 5px; height: 5px; }
.ambient__spark:nth-child(5) { top: 78%; left: 22%; animation-delay: 4.2s; }
.ambient__spark:nth-child(6) { top: 92%; left: 72%; animation-delay: 2s; width: 3px; height: 3px; }

@keyframes sparkFloat {
  0%, 100% { opacity: 0; transform: translateY(0); }
  50% { opacity: 0.85; transform: translateY(-18px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site {
    scroll-snap-type: none;
  }
  .screen {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }
  .ambient__spark { animation: none; opacity: 0.4; }
  .stack { animation: none; }
  .rsvp__panel { animation: none; }
  .card-glass { animation: none; }
  .modal__sheet { animation: none; }
  .btn-glass:hover { transform: none; }
  .modal__link:hover { transform: none; }
  .screen-nav__btn:hover:not(:disabled) { transform: none; }
  .venue__slide { transition: none; }
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Site shell ===== */
.site {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--site-max);
  height: 100dvh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--color-pink-soft);
  box-shadow:
    -12px 0 32px rgba(0, 0, 0, 0.06),
    12px 0 32px rgba(0, 0, 0, 0.06);
  overflow-x: clip;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  overflow-anchor: none;
  scroll-behavior: auto;
  scroll-snap-type: y proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.site::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

#unlocked:not(.hidden) {
  display: contents;
}

/* ===== Screen nav (up / down) ===== */
.screen-nav {
  position: fixed;
  z-index: 40;
  top: 50%;
  right: max(var(--space-sm), calc(50% - min(var(--site-max), 100vw) / 2 + var(--space-xs)));
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-xs);
  border-radius: var(--radius-pill);
  background: rgba(255, 250, 252, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    opacity 220ms ease,
    visibility 220ms ease,
    transform 220ms ease;
}

.screen-nav--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) translateX(8px);
}

.screen-nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-min);
  height: var(--touch-min);
  padding: 0;
  border: 1.5px solid var(--color-glass-border);
  border-radius: 50%;
  background: linear-gradient(180deg, var(--color-glass-top) 0%, var(--color-glass-bottom) 100%);
  color: var(--color-primary);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    opacity var(--transition),
    border-color var(--transition);
}

.screen-nav__btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.28);
  border-color: rgba(255, 255, 255, 0.9);
}

.screen-nav__btn:active:not(:disabled) {
  transform: translateY(0) scale(0.96);
}

.screen-nav__btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.screen-nav__btn:disabled {
  opacity: 0.28;
  cursor: default;
}

.screen-nav--dark .screen-nav__btn {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(20, 10, 16, 0.72);
  color: var(--color-silver-text);
}

.screen-nav--dark {
  background: rgba(10, 10, 10, 0.45);
  border-color: rgba(255, 255, 255, 0.12);
}

body.modal-open .screen-nav {
  opacity: 0;
  pointer-events: none;
}

.stack {
  animation: stackIn 0.55s ease;
}

/* ===== Scroll reveal (screens 2–6) ===== */
.reveal {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal--soft {
  transform: translate3d(0, 10px, 0);
}

.reveal--lift {
  transform: translate3d(0, 20px, 0);
}

.reveal--scale {
  transform: translate3d(0, 10px, 0) scale(0.97);
}

.reveal--scale.is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

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

/* ===== Screen layout ===== */
.screen {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  flex-shrink: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.screen > .landing,
.screen > .venue,
.screen > .layer-screen {
  flex: 1;
  min-height: 0;
  height: 100%;
  width: 100%;
}

/* ===== Layer screens (bg image + HTML overlay) ===== */
.layer-screen {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.layer-screen__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  user-select: none;
  transform: scale(1.1);
  transform-origin: center center;
}

.layer-screen picture {
  position: absolute;
  inset: -8px -4px -12px;
  display: block;
  width: calc(100% + 8px);
  height: calc(100% + 20px);
  pointer-events: none;
}

.venue__carousel,
.venue__slides,
.venue__slide {
  display: block;
  width: 100%;
  height: 100%;
}

.layer-screen--dark {
  background: var(--color-black);
}

.layer-screen--dark .layer-screen__bg {
  object-fit: cover;
  object-position: center top;
}

.layer-screen--dresscode .layer-screen__bg,
.layer-screen--program .layer-screen__bg {
  transform: none;
  object-fit: contain;
  object-position: center center;
}

.layer-screen__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.layer-screen__media-fill {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.layer-screen--dresscode,
.layer-screen--program {
  background-color: #060508;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.layer-screen--dresscode {
  background-image: url('images/layers/03-dresscode/visual.webp');
}

.layer-screen--program {
  background-image: url('images/layers/04-program/visual.webp');
}

.layer-screen--dresscode .layer-screen__media::after,
.layer-screen--program .layer-screen__media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.layer-screen--dresscode .layer-screen__media::after {
  background: linear-gradient(
    180deg,
    rgba(8, 6, 12, 0.7) 0%,
    transparent 11%,
    transparent 89%,
    rgba(8, 6, 12, 0.7) 100%
  );
}

.layer-screen--program .layer-screen__media::after {
  background: linear-gradient(
    180deg,
    rgba(28, 6, 22, 0.85) 0%,
    rgba(28, 6, 22, 0.12) 10%,
    transparent 20%,
    transparent 80%,
    rgba(28, 6, 22, 0.12) 90%,
    rgba(28, 6, 22, 0.85) 100%
  );
}

.layer-screen--dresscode .layer-screen__media-fill,
.layer-screen--program .layer-screen__media-fill {
  z-index: 0;
}

.layer-screen__bg-fill {
  position: absolute;
  inset: -28%;
  width: 156%;
  height: 156%;
  object-fit: cover;
  object-position: center center;
  filter: blur(44px) saturate(1.28) brightness(0.88);
  transform: scale(1.1);
  pointer-events: none;
  user-select: none;
}

.layer-screen--dresscode .layer-screen__media picture,
.layer-screen--program .layer-screen__media picture {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.layer-screen--dresscode picture,
.layer-screen--program picture {
  inset: 0;
  width: 100%;
  height: 100%;
}

.layer-screen--gifts .layer-screen__bg,
.layer-screen--rsvp .layer-screen__bg {
  object-fit: cover;
  object-position: center 100%;
  transform: scale(1.12);
  transform-origin: center bottom;
}

.layer-screen--gifts,
.layer-screen--rsvp {
  display: flex;
  flex-direction: column;
}

/* ===== Landing ===== */
/* ===== Cinema landing (scroll-scrub video) ===== */
.screen--cinema {
  height: auto;
  min-height: 540vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: visible;
}

.cinema {
  position: relative;
  width: 100%;
  height: 540vh;
}

.cinema__sticky {
  position: sticky;
  top: 0;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  background: #1a0a14;
}

.cinema__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  background: #1a0a14;
}

.cinema__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(18, 6, 14, 0.45) 0%, transparent 28%, transparent 58%, rgba(18, 6, 14, 0.55) 100%);
  pointer-events: none;
}

.cinema__ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.cinema__top {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(1.25rem, 5vw, 2rem) var(--space-lg) 0;
  color: var(--color-white);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  transition: opacity 160ms linear;
}

.cinema__top .landing__date,
.cinema__top .landing__name {
  color: var(--color-white);
}

.cinema__top .landing__date {
  font-size: clamp(1.05rem, 4.4vw, 1.4rem);
  letter-spacing: 0.1em;
}

.cinema__top .landing__name {
  margin-bottom: 0;
}

.cinema__balloons {
  display: block;
  width: min(68%, 280px);
  margin: clamp(-0.35rem, -1.2vw, -0.15rem) auto 0;
  transform: translateY(clamp(-0.75rem, -2.8vw, -0.35rem));
  line-height: 0;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35));
}

.cinema__balloons .landing__balloons {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.cinema__mid {
  position: absolute;
  left: 0;
  right: 0;
  top: 58%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 var(--space-lg);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
  transition: opacity 160ms linear;
  opacity: 0;
}

.cinema__mid .landing__script {
  color: #ffb6d5;
  font-size: clamp(2.15rem, 9.5vw, 3.1rem);
}

.cinema__mid .landing__motto,
.cinema__mid .landing__heart {
  color: rgba(255, 255, 255, 0.92);
}

.cinema__mid .landing__motto {
  font-size: clamp(0.72rem, 2.8vw, 0.88rem);
  letter-spacing: 0.3em;
}

.cinema__mid .landing__heart {
  font-size: clamp(0.78rem, 2.4vw, 0.92rem);
}

.cinema__hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(7rem, 18vh, 9rem);
  text-align: center;
  font-size: clamp(0.82rem, 3vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  transition: opacity 160ms linear;
}

.cinema__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(2rem, 8vh, 3.25rem);
  padding: 0 var(--space-lg);
  padding-bottom: max(8px, var(--safe-bottom));
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms linear, transform 160ms linear;
}

.screen--cinema.is-scrubbing .cinema__hint {
  opacity: 0;
}

@media (min-width: 520px) {
  .screen--cinema {
    min-height: 460vh;
  }

  .cinema {
    height: 460vh;
  }

  .screen--cinema .cinema__sticky {
    overflow: hidden;
    border-radius: 1rem 1rem 0 0;
    background: #1a0a14;
    height: var(--site-vh, 100dvh);
    min-height: var(--site-vh, 100dvh);
  }

  .screen--cinema .cinema__video {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 44%;
    transform: scale(1.045);
    transform-origin: center 52%;
  }

  .screen--cinema .cinema__veil {
    inset: 0;
    background:
      linear-gradient(180deg, rgba(18, 6, 14, 0.48) 0%, transparent 24%, transparent 56%, rgba(18, 6, 14, 0.5) 84%, rgba(18, 6, 14, 0.68) 100%);
  }

  .cinema__top {
    padding-top: clamp(1.35rem, 4.8vh, 2.1rem);
  }

  .cinema__hint {
    bottom: clamp(5.75rem, 16vh, 8rem);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
  }

  .cinema__footer {
    bottom: clamp(1.5rem, 6.5vh, 2.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen--cinema {
    min-height: 100dvh;
    height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .cinema {
    height: 100%;
  }

  .cinema__video {
    display: none;
  }

  .cinema__sticky {
    background:
      #1a0a14
      url("assets/masters/start-door-9x16.png")
      center / cover no-repeat;
  }

  .cinema__top,
  .cinema__mid,
  .cinema__footer {
    opacity: 1 !important;
    transform: none !important;
  }

  .cinema__hint {
    display: none;
  }
}

.landing {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--color-pink-soft);
  overflow: hidden;
}

.landing > picture:first-of-type {
  position: absolute;
  inset: -8px -4px -12px;
  display: block;
  width: calc(100% + 8px);
  height: calc(100% + 20px);
  pointer-events: none;
  z-index: 0;
}

.landing__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 100%;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transform: scale(1.16);
  transform-origin: center bottom;
}

.landing__balloons {
  display: block;
  width: min(68%, 280px);
  height: auto;
  margin: var(--space-sm) auto 0;
  pointer-events: none;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.12));
}

.landing__ui picture {
  display: block;
  line-height: 0;
}

.landing__ui {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(1.25rem, 5vw, 2rem) var(--space-lg) 0;
}

.landing__mid {
  position: absolute;
  left: 0;
  right: 0;
  top: 60%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 var(--space-lg);
}

.landing__date {
  font-family: var(--font-serif);
  font-size: clamp(0.85rem, 3.2vw, 1rem);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.landing__name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 11vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.landing__script {
  font-family: var(--font-script);
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.landing__heart {
  font-size: 0.7rem;
  margin-bottom: var(--space-xs);
}

.landing__motto {
  font-size: clamp(0.55rem, 2vw, 0.65rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.landing__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(2rem, 8vh, 3.25rem);
  z-index: 4;
  padding: 0 var(--space-lg);
  padding-bottom: max(8px, var(--safe-bottom));
}

/* ===== Venue ===== */
.screen--venue {
  background: var(--color-venue-paper);
}

.screen--venue .venue {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.venue__header {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  padding: var(--space-lg) var(--space-lg) calc(var(--space-md) + 10px);
  background: linear-gradient(180deg, var(--color-venue-paper) 0%, var(--color-venue-paper-2) 100%);
}

/* Рваный низ шапки — «случайный» срез поверх фото */
.venue__header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 22px;
  background: var(--color-venue-paper-2);
  pointer-events: none;
  z-index: 3;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 22' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 0h400v8.2l-7 3.4-6-2.8-5 4.1-8-3.6-4 2.9-9-4.2-6 3.8-5-2.4-7 4.6-8-3.1-5 2.7-6-4.4-9 3.5-4-2.1-7 4.8-8-3.9-5 2.3-6-3.7-8 4.2-5-2.6-7 3.4-9-4.1-4 2.8-6-3.3-8 4.5-5-2.2-7 3.6-6-4.3-8 2.9-5 3.7-7-3.2-9 4.4-4-2.5-6 3.1-8-4-5 2.4-7 3.9-6-3.5-8 4.1-5-2.7-6 3.3-9-4.2-4 2.6-7 3.8-8-3.4-5 2.9-6-4.1-8 3.6-5-2.3-7 4.2-6-3.7-8 2.8-5 3.5-7-4-9 3.9-4-2.4-6 3.2-8-3.8-5 2.5-7 4-6-3.4-8 3.7-5-2.8-6 3.1-4 2.2V0H0z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 22' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 0h400v8.2l-7 3.4-6-2.8-5 4.1-8-3.6-4 2.9-9-4.2-6 3.8-5-2.4-7 4.6-8-3.1-5 2.7-6-4.4-9 3.5-4-2.1-7 4.8-8-3.9-5 2.3-6-3.7-8 4.2-5-2.6-7 3.4-9-4.1-4 2.8-6-3.3-8 4.5-5-2.2-7 3.6-6-4.3-8 2.9-5 3.7-7-3.2-9 4.4-4-2.5-6 3.1-8-4-5 2.4-7 3.9-6-3.5-8 4.1-5-2.7-6 3.3-9-4.2-4 2.6-7 3.8-8-3.4-5 2.9-6-4.1-8 3.6-5-2.3-7 4.2-6-3.7-8 2.8-5 3.5-7-4-9 3.9-4-2.4-6 3.2-8-3.8-5 2.5-7 4-6-3.4-8 3.7-5-2.8-6 3.1-4 2.2V0H0z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.venue__save {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.venue__save-line {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--color-accent-line);
}

.venue__save-heart {
  font-size: 0.55rem;
}

.venue__top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--space-md);
  align-items: start;
}

.venue__date-block {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: 6px;
}

.venue__day {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 15vw, 4.75rem);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.02em;
}

.venue__month-wrap {
  padding-top: 0.35em;
  min-width: 0;
}

.venue__month {
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 3.4vw, 1.12rem);
  font-weight: 700;
  line-height: 1.15;
}

.venue__weekday {
  font-family: var(--font-script);
  font-size: clamp(1rem, 3.8vw, 1.2rem);
  color: var(--color-accent);
  margin-top: 2px;
  line-height: 1.1;
}

.venue__schedule {
  border-left: 1px solid var(--color-divider-line);
  padding-left: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-width: 0;
}

.venue__slot-label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-bottom: 2px;
}

.venue__slot-time {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 4.5vw, 1.35rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.1;
}

.venue__slot-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.62rem;
  line-height: 1.4;
  color: var(--color-muted);
  margin-top: 2px;
}

.venue__photo-block {
  position: relative;
  flex: 1 1 auto;
  min-height: clamp(220px, 38vh, 360px);
  line-height: 0;
  margin-top: -14px;
  margin-bottom: -14px;
  overflow: visible;
  z-index: 1;
}

.venue__carousel {
  --venue-torn-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 280' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 10.4l6-3.2 7 4.1 5-2.6 8 3.7 4-3.9 9 2.8 6-4.2 5 3.4 7-2.1 8 4.6 5-3.3 6 2.4 9-4.1 4 3.6 7-2.8 8 4.2 5-3.1 6 2.7 8-4.4 5 3.5 7-2.4 9 4.1 4-3.7 6 2.9 8-4.2 5 3.3 7-2.6 6 4 8-3.5 5 2.8 7-4.1 9 3.6 4-2.7 6 3.9 8-3.2 5 4.3 7-2.9 6 3.4 8-4 5 2.5 7-3.6 4 4.2 6-2.8 8 3.7 5-4.1 7 2.6 9-3.5 4 4 6-2.9 8 3.3 5-3.8 7 4.2 6-2.4 8 3.6 5-4 7 2.8 6-3.4 8 4.1 5-2.7 7 3.5 4-3.9 6 2.6 8-4.2 5 3.4 7-2.5 9 4 4-3.3 6 2.8 8-3.7V269.2l-6 3.1-7-4-5 2.7-8-3.6-4 3.8-9-2.9-6 4.1-5-3.3-7 2.2-8-4.5-5 3.2-6-2.5-9 4-4-3.5-7 2.9-8-4.1-5 3-6-2.8-8 4.3-5-3.4-7 2.5-9-4-4 3.6-6-2.8-8 4.1-5-3.2-7 2.7-6-3.9-8 3.4-5-2.9-7 4-9-3.5-4 2.8-6-3.8-8 3.1-5-4.2-7 2.8-6-3.3-8 3.9-5-2.6-7 3.5-4-4.1-6 2.9-8-3.6-5 4-7-2.7-9 3.4-4-3.9-6 2.8-8-3.2-5 3.7-7-4.1-6 2.5-8-3.5-5 3.9-7-2.9-6 3.3-8-4-5 2.8-7-3.4-4 3.8-6-2.7-8 4.1-5-3.3-7 2.6-9-3.9-4 3.2-6-2.9-8 3.6z'/%3E%3C/svg%3E");
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-mask-image: var(--venue-torn-mask);
  mask-image: var(--venue-torn-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.venue__slides {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  height: 100%;
}

.venue__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  pointer-events: none;
}

.venue__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.venue__photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.venue__carousel-nav {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.venue__carousel-btn {
  pointer-events: auto;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(18, 10, 16, 0.38);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  transition: background 0.2s ease, transform 0.2s ease;
}

.venue__carousel-btn--prev {
  top: 18px;
}

.venue__carousel-btn--next {
  bottom: 18px;
}

.venue__carousel-btn:hover,
.venue__carousel-btn:focus-visible {
  background: rgba(20, 12, 18, 0.62);
  outline: none;
}

.venue__carousel-btn:active {
  transform: translateX(-50%) scale(0.96);
}

.venue__footer {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding: calc(var(--space-md) + 12px) var(--space-lg) clamp(1.5rem, 6vh, 2.25rem);
  padding-bottom: max(clamp(1.5rem, 6vh, 2.25rem), var(--safe-bottom));
  background: var(--color-pink-soft);
}

/* Рваный верх футера */
.venue__footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 22px;
  background: var(--color-pink-soft);
  pointer-events: none;
  z-index: 3;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 22' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 22h400V13.6l-6-3.1-7 4-5-2.7-8 3.6-4-3.8-9 2.9-6-4.1-5 3.3-7-2.2-8 4.5-5-3.2-6 2.5-9-4-4 3.5-7-2.9-8 4.1-5-3-6 2.8-8-4.3-5 3.4-7-2.5-9 4-4-3.6-6 2.8-8-4.1-5 3.2-7-2.7-6 3.9-8-3.4-5 2.9-7-4-9 3.5-4-2.8-6 3.8-8-3.1-5 4.2-7-2.8-6 3.3-8-3.9-5 2.6-7-3.5-4 4.1-6-2.9-8 3.6-5-4-7 2.7-9-3.4-4 3.9-6-2.8-8 3.2-5-3.7-7 4.1-6-2.5-8 3.5-5-3.9-7 2.9-6-3.3-8 4-5-2.8-7 3.4-4-3.8-6 2.7-8-4.1-5 3.3-7-2.6-4-2.2V22H0z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 22' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 22h400V13.6l-6-3.1-7 4-5-2.7-8 3.6-4-3.8-9 2.9-6-4.1-5 3.3-7-2.2-8 4.5-5-3.2-6 2.5-9-4-4 3.5-7-2.9-8 4.1-5-3-6 2.8-8-4.3-5 3.4-7-2.5-9 4-4-3.6-6 2.8-8-4.1-5 3.2-7-2.7-6 3.9-8-3.4-5 2.9-7-4-9 3.5-4-2.8-6 3.8-8-3.1-5 4.2-7-2.8-6 3.3-8-3.9-5 2.6-7-3.5-4 4.1-6-2.9-8 3.6-5-4-7 2.7-9-3.4-4 3.9-6-2.8-8 3.2-5-3.7-7 4.1-6-2.5-8 3.5-5-3.9-7 2.9-6-3.3-8 4-5-2.8-7 3.4-4-3.8-6 2.7-8-4.1-5 3.3-7-2.6-4-2.2V22H0z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.venue__place-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr);
  align-items: center;
  column-gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.venue__place {
  min-width: 0;
}

.venue__place-name {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--color-accent);
}

.venue__hall {
  font-family: var(--font-script);
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  color: var(--color-accent-deep);
  line-height: 1.2;
  margin-top: 2px;
}

.venue__hall span {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.85em;
}

.venue__place-divider {
  width: 1px;
  align-self: stretch;
  min-height: 2.6rem;
  background: rgba(0, 0, 0, 0.14);
}

.venue__address {
  font-style: normal;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 8px;
  align-items: start;
  justify-self: stretch;
  min-width: 0;
  max-width: none;
  text-align: left;
}

.venue__pin {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  margin-top: 1px;
}

.venue__address-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.venue__city {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.venue__street {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.35;
  color: var(--color-muted);
  overflow-wrap: anywhere;
}

.screen__hint {
  margin-top: var(--space-sm);
  text-align: center;
  font-size: clamp(0.72rem, 2.6vw, 0.8rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ===== Overlay panel (masks ghost text on edit layers) ===== */
.overlay-panel {
  background: var(--color-overlay);
  border: 1px solid var(--color-overlay-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-card);
  padding: var(--space-md) var(--space-lg);
  width: min(94%, 320px);
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.overlay-panel--dresscode,
.overlay-panel--program {
  background: rgba(8, 8, 12, 0.72);
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
}

.overlay-panel--dresscode *,
.overlay-panel--program * {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85);
}

.overlay-panel--dresscode {
  margin-top: 0;
  margin-bottom: 0;
  width: min(92%, 312px);
  padding: var(--space-md) var(--space-md);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.overlay-panel--dresscode .neon-box {
  margin: 0 auto;
  text-align: center;
}

.overlay-panel--program {
  margin-top: 0;
  width: min(92%, 336px);
  max-height: min(84vh, 100%);
  overflow-y: auto;
  pointer-events: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: var(--space-md) var(--space-md);
}

.overlay-panel--program::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.overlay-panel--dresscode .neon-box,
.overlay-panel--program .neon-box {
  background: rgba(0, 0, 0, 0.28);
}

/* ===== Dress code overlay ===== */
.dresscode__ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--safe-top) + 12%) 5% calc(var(--safe-bottom) + var(--space-sm));
  color: var(--color-silver-text);
  overflow: hidden;
  pointer-events: none;
}

.dresscode__nightout {
  position: absolute;
  top: calc(var(--safe-top) + 2.5%);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 7.8vw, 2.85rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  white-space: nowrap;
  margin: 0 0 clamp(0.25rem, 1vw, 0.4rem);
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #d8d8d8 28%,
    #8f8f8f 48%,
    #ececec 72%,
    #ffffff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.45))
    drop-shadow(0 5px 14px rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.dresscode__for {
  position: absolute;
  font-family: var(--font-script);
  font-size: clamp(1.05rem, 4vw, 1.3rem);
  line-height: 1.1;
  margin: 0;
  pointer-events: none;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
}

.dresscode__for--girls {
  left: 10%;
  top: 42%;
  color: var(--color-accent);
}

.dresscode__for--men {
  right: 8%;
  top: 56%;
  color: var(--color-blue-accent);
}

.dresscode__title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 4vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--color-silver);
  margin-bottom: var(--space-sm);
}

.dresscode__lead {
  font-size: clamp(0.78rem, 3vw, 0.88rem);
  line-height: 1.5;
  max-width: 270px;
  margin: 0 auto var(--space-xs);
  text-align: center;
}

.dresscode__colors {
  list-style: none;
  font-size: clamp(0.74rem, 2.85vw, 0.84rem);
  line-height: 1.55;
  margin: 0 auto var(--space-xs);
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dresscode__colors li {
  text-align: center;
}

.dresscode__group {
  width: 100%;
  margin-bottom: var(--space-sm);
}

.dresscode__group-title {
  font-family: var(--font-script);
  font-size: clamp(0.95rem, 3.6vw, 1.12rem);
  line-height: 1.2;
  margin: 0 0 var(--space-xs);
  text-align: center;
}

.dresscode__group-title--girls {
  color: var(--color-accent);
}

.dresscode__group-title--men {
  color: var(--color-blue-accent);
}

.dresscode__colors-accent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.45rem;
}

.dresscode__dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.dresscode__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.dresscode__dot--black {
  background: #101010;
  vertical-align: middle;
  margin-right: 4px;
}

.dresscode__dot--silver {
  background: linear-gradient(135deg, #f5f5f5 0%, #b8b8b8 45%, #ececec 100%);
}

.dresscode__dot--sky {
  background: linear-gradient(135deg, #b8e4ff 0%, #7ec8f0 100%);
}

.dresscode__dot--blue {
  background: linear-gradient(135deg, #4a7fd4 0%, #1e3f8a 100%);
}

.dresscode__note {
  font-size: clamp(0.76rem, 2.9vw, 0.86rem);
  line-height: 1.55;
  max-width: 292px;
  margin: 0 auto var(--space-sm);
  text-align: center;
  opacity: 1;
  color: #f5f5f5;
}

.overlay-panel--dresscode .neon-box {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  margin-top: var(--space-xs);
}

.overlay-panel--dresscode .neon-box__title {
  font-size: clamp(0.86rem, 3.2vw, 0.98rem);
  line-height: 1.4;
  color: #fff0f6;
}

.overlay-panel--dresscode .neon-box__sub {
  font-size: clamp(0.9rem, 3.3vw, 1.02rem);
  line-height: 1.45;
  color: #ffc8e4;
}

/* ===== Program overlay ===== */
.program__ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--safe-top) + var(--space-sm)) 8% calc(var(--safe-bottom) + var(--space-sm));
  color: var(--color-silver-text);
  overflow: hidden;
  pointer-events: none;
}

.program__head {
  text-align: center;
  margin-bottom: var(--space-md);
}

.program__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff5f8;
  text-shadow: 0 0 18px rgba(236, 72, 153, 0.35);
  margin-bottom: var(--space-xs);
}

.program__sub {
  font-family: var(--font-script);
  font-size: clamp(1rem, 3.8vw, 1.2rem);
  color: var(--color-accent);
}

.program__list {
  list-style: none;
  max-width: 280px;
  margin: 0 auto var(--space-md);
}

.program__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.2rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(236, 72, 153, 0.2);
}

.program__item:last-child {
  border-bottom: none;
}

.program__item-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: clamp(0.72rem, 2.8vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0;
  text-align: center;
  white-space: nowrap;
}

.program__icon {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.program__item-desc {
  font-size: clamp(0.65rem, 2.4vw, 0.72rem);
  line-height: 1.45;
  opacity: 0.92;
  text-align: center;
  margin: 0;
  max-width: 260px;
}

.program__cta {
  text-align: center;
}

.program__cta-lead {
  font-family: var(--font-script);
  font-size: clamp(1rem, 3.8vw, 1.15rem);
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.overlay-panel--program .neon-box__title {
  font-size: clamp(0.88rem, 3.3vw, 1.02rem);
  color: #fff0f6;
}

.program__foot {
  font-family: var(--font-script);
  font-size: clamp(1.05rem, 4vw, 1.2rem);
  color: #ffc8e4;
  margin-top: var(--space-md);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85);
}

/* ===== Neon box (shared) ===== */
.neon-box {
  width: min(92%, 300px);
  padding: var(--space-md) var(--space-lg);
  border: 2px solid var(--color-accent);
  border-radius: 0.75rem;
  box-shadow:
    0 0 12px rgba(236, 72, 153, 0.5),
    inset 0 0 12px rgba(236, 72, 153, 0.15);
  background: var(--color-neon-fill);
}

.neon-box--program {
  margin: 0 auto;
}

.neon-box__title {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 3.2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-pink-glow);
  line-height: 1.35;
}

.neon-box__title--sm {
  font-size: clamp(0.75rem, 2.8vw, 0.88rem);
}

.neon-box__sub {
  font-family: var(--font-script);
  font-size: clamp(0.85rem, 3vw, 1rem);
  color: var(--color-accent);
  margin-top: var(--space-xs);
  line-height: 1.4;
}

.screen--gifts {
  background: var(--color-pink-soft);
}

.screen--gifts .gifts {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  pointer-events: none;
  padding: calc(var(--safe-top) + var(--space-md)) var(--space-lg) calc(var(--space-lg) + var(--safe-bottom));
}

.screen--gifts .card-glass,
.screen--gifts .btn-glass,
.screen--gifts a {
  pointer-events: auto;
}

.screen__hint--scroll {
  flex-shrink: 0;
  margin-top: var(--space-sm);
  margin-bottom: 0;
  color: var(--color-accent);
  pointer-events: none;
}

.screen--rsvp {
  background: var(--color-pink-soft);
}

.screen--rsvp .rsvp {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  pointer-events: none;
  padding: calc(var(--safe-top) + var(--space-md)) var(--space-lg) calc(var(--space-lg) + var(--safe-bottom));
}

.screen--rsvp .rsvp__panel {
  width: 100%;
  max-width: 380px;
  flex: 0 1 auto;
  gap: clamp(0.35rem, 1.6vw, 0.75rem);
}

.screen--rsvp .rsvp__text-on-photo {
  text-shadow:
    0 1px 10px rgba(255, 255, 255, 0.95),
    0 0 2px rgba(255, 255, 255, 0.85);
}

.screen--rsvp .btn-glass,
.screen--rsvp a {
  pointer-events: auto;
}

/* ===== Glass button ===== */
.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  min-height: var(--touch-min);
  padding: 14px 20px;
  border: 1.5px solid var(--color-glass-border);
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--color-glass-top) 0%, var(--color-glass-bottom) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 4px 20px rgba(236, 72, 153, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  color: var(--color-primary);
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    border-color var(--transition),
    opacity var(--transition);
}

.btn-glass:disabled,
.btn-glass[aria-disabled='true'],
.btn-glass--static {
  cursor: default;
  opacity: 0.92;
}

.btn-glass--static {
  pointer-events: auto;
}

.btn-glass:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 28px rgba(236, 72, 153, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  border-color: rgba(255, 255, 255, 0.85);
}

.btn-glass:active {
  transform: translateY(0) scale(0.98);
  box-shadow:
    0 2px 12px rgba(236, 72, 153, 0.45),
    inset 0 2px 8px rgba(236, 72, 153, 0.15);
}

.btn-glass:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.btn-glass--row {
  flex-direction: row;
}

.btn-glass--stack {
  flex-direction: column;
  gap: 2px;
  position: relative;
  padding: 16px 36px;
}

.btn-glass--wide {
  padding-inline: 16px;
}

.btn-glass--cta {
  width: auto;
  min-width: 70%;
  margin-top: var(--space-md);
  padding-inline: 28px;
}

.btn-glass--muted {
  background: linear-gradient(
    180deg,
    rgba(255, 230, 240, 0.75) 0%,
    rgba(255, 200, 220, 0.5) 100%
  );
}

.btn-glass--chat {
  margin-top: var(--space-lg);
}

.btn-glass__label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
}

.btn-glass__sub {
  font-family: var(--font-script);
  font-size: clamp(0.95rem, 3.5vw, 1.15rem);
  color: var(--color-pink-deep);
  line-height: 1.2;
  font-weight: 400;
}

.btn-glass__sparkle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

.btn-glass__sparkle:first-child { left: 14px; }
.btn-glass__sparkle:last-child  { right: 14px; }

.btn-glass__arrow,
.btn-glass__icon {
  flex-shrink: 0;
  color: var(--color-primary);
}

/* ===== Gifts ===== */
.gifts__head {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.gifts__eyebrow {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--color-muted);
  margin-bottom: var(--space-xs);
}

.gifts__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.gifts__script {
  font-family: var(--font-script);
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  color: var(--color-rose);
}

.gifts__foot {
  text-align: center;
  margin-top: var(--space-xl);
}

.gifts__thanks {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-top: var(--space-sm);
}

.card-glass {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  text-align: center;
  box-shadow: 0 4px 24px rgba(236, 72, 153, 0.1);
  backdrop-filter: blur(8px);
}

.card-glass__icon {
  color: var(--color-accent);
  margin: 0 auto var(--space-sm);
}

.card-glass__lead {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-rose);
  margin-bottom: var(--space-xs);
}

.card-glass__text {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--color-primary);
}

.card-glass__text--left {
  text-align: left;
}

.card-glass__tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-rose);
  margin-bottom: var(--space-xs);
}

.card-glass--side {
  text-align: left;
}

/* ===== RSVP ===== */
.rsvp {
  position: relative;
  z-index: 1;
}

.rsvp__panel {
  animation: panelIn 0.45s ease;
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#rsvp-initial {
  flex: 1;
  min-height: 0;
  justify-content: center;
  gap: var(--space-md);
}

#rsvp-maybe,
#rsvp-confirmed {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  justify-content: flex-start;
}

#rsvp-confirmed .rsvp__head {
  margin-bottom: var(--space-xl);
  flex-shrink: 0;
}

#rsvp-confirmed .rsvp__confirmed-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
  flex: 1;
  min-height: 0;
}

#rsvp-confirmed .rsvp__confirmed-foot {
  flex-shrink: 0;
  width: 100%;
  max-width: 360px;
  margin-top: auto;
  padding-top: var(--space-md);
}

#rsvp-confirmed .btn-glass--chat {
  margin-top: 0;
  width: 100%;
}

#rsvp-confirmed .rsvp__confirm-block,
#rsvp-confirmed .rsvp__confirmed-btn {
  margin-bottom: 0;
}

#rsvp-confirmed .rsvp__confirm-block {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-card);
  padding: var(--space-md) var(--space-lg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  max-width: none;
}

#rsvp-confirmed .rsvp__confirm-block--signed {
  margin-top: 0;
}

#rsvp-confirmed .rsvp__confirm-block--signed .rsvp__confirm-text {
  font-weight: 500;
}

#rsvp-confirmed .rsvp__datetime {
  margin: 0;
  color: var(--color-primary);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1.15rem;
  align-self: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  text-shadow: none;
}

#rsvp-confirmed .rsvp__farewell {
  margin: 0;
  text-align: center;
}

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

#rsvp-maybe .rsvp__head {
  margin-bottom: var(--space-md);
}

.rsvp__head {
  text-align: center;
  margin-bottom: var(--space-xl);
  flex-shrink: 0;
  width: 100%;
}

.rsvp__eyebrow {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--color-muted);
  margin-bottom: var(--space-xs);
}

.rsvp__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.rsvp__head .rsvp__heart {
  display: none;
}

.rsvp__script {
  font-family: var(--font-script);
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  color: var(--color-rose);
  line-height: 1.35;
  text-shadow:
    0 1px 8px rgba(255, 255, 255, 0.9),
    0 0 1px rgba(255, 255, 255, 0.8);
}

.rsvp__heart--bottom {
  text-align: center;
  margin-top: var(--space-sm);
  font-size: 0.75rem;
}

.rsvp__legal {
  font-size: clamp(0.76rem, 2.9vw, 0.84rem);
  line-height: 1.5;
  text-align: center;
  color: var(--color-primary);
  max-width: 320px;
  margin: 0 auto;
  flex-shrink: 0;
}

.rsvp__legal--bottom {
  margin-top: var(--space-lg);
  margin-bottom: 0;
}

.rsvp__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 360px;
  margin: 0 auto;
  flex-shrink: 0;
  padding-top: var(--space-sm);
}

.rsvp__actions--single {
  margin-top: var(--space-sm);
}

.rsvp__confirmed-btn {
  max-width: 360px;
  margin: 0 auto var(--space-sm);
}

.rsvp__confirm-block {
  text-align: center;
  max-width: 320px;
  margin: 0 auto var(--space-sm);
}

.rsvp__check {
  font-size: 1.1rem;
  color: var(--color-rose);
  margin-bottom: var(--space-xs);
}

.rsvp__confirm-text {
  font-size: clamp(0.82rem, 3.1vw, 0.9rem);
  line-height: 1.45;
  color: var(--color-pink-deep);
}

.rsvp__divider {
  text-align: center;
  font-size: 0.75rem;
  margin: var(--space-sm) 0;
  opacity: 0.6;
}

.rsvp__datetime {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 4.8vw, 1.4rem);
  color: var(--color-primary);
  margin: var(--space-xs) 0 var(--space-sm);
}

.rsvp__chat-hint {
  text-align: center;
  font-family: var(--font-script);
  font-size: clamp(1.05rem, 4vw, 1.2rem);
  color: var(--color-primary);
  margin-top: var(--space-xs);
}

.rsvp__farewell {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 5.5vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-top: var(--space-xs);
  color: var(--color-primary);
}

.rsvp__roast {
  text-align: center;
  margin: var(--space-lg) auto;
}

.rsvp__roast-line {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-xs);
}

.rsvp__roast-main {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 5vw, 1.6rem);
  font-weight: 700;
  color: var(--color-rose);
  margin-bottom: var(--space-sm);
}

.rsvp__roast-fix {
  font-family: var(--font-display);
  font-size: clamp(1rem, 4vw, 1.2rem);
  color: var(--color-rose);
  line-height: 1.4;
}

.rsvp__ok {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin: var(--space-lg) 0 var(--space-xs);
}

.rsvp__arrow-down {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
  opacity: 0.7;
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

@media (min-width: 520px) {
  .modal {
    align-items: center;
    padding: var(--space-lg);
  }
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: var(--color-modal-scrim);
  backdrop-filter: blur(4px);
}

.modal__sheet {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: linear-gradient(160deg, var(--color-white) 0%, var(--color-pink-bg) 100%);
  border-radius: 1.5rem 1.5rem 0 0;
  padding: var(--space-xl) var(--space-lg) calc(var(--space-xl) + var(--safe-bottom));
  box-shadow: 0 -8px 40px rgba(236, 72, 153, 0.25);
  animation: sheetUp 0.3s ease;
}

@media (min-width: 520px) {
  .modal__sheet {
    border-radius: 1.5rem;
    animation: sheetIn 0.3s ease;
  }
}

@keyframes sheetUp {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes sheetIn {
  from { opacity: 0; transform: scale(0.95) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-min);
  height: var(--touch-min);
  border: none;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  color: var(--color-muted);
  cursor: pointer;
  touch-action: manipulation;
  transition: color var(--transition), background var(--transition);
}

.modal__close:hover {
  color: var(--color-accent);
  background: var(--color-white);
}

.modal__close:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-lg);
}

.modal__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.modal__link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-height: var(--touch-min);
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: var(--color-primary);
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.modal__link:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.15);
  transform: translateY(-1px);
}

.modal__link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.modal__link-icon {
  flex-shrink: 0;
  color: var(--color-accent);
}

.modal__link-text {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
}

/* ===== Responsive ===== */
@media (min-width: 520px) {
  body {
    padding: var(--space-lg) var(--space-md);
  }

  .site {
    border-radius: 1rem;
    max-width: min(var(--site-max), 92vw);
    --site-vh: calc(100dvh - 2 * var(--space-lg));
    height: var(--site-vh);
    min-height: var(--site-vh);
  }
}

@media (min-width: 1024px) {
  body {
    padding: 2.5rem var(--space-lg);
  }

  .site {
    max-width: 440px;
    --site-vh: calc(100dvh - 5rem);
    height: var(--site-vh);
    min-height: var(--site-vh);
  }
}

@media (max-width: 360px) {
  .screen--gifts .gifts,
  .screen--rsvp .rsvp {
    padding-inline: var(--space-md);
  }

  .venue__top {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .venue__schedule {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: var(--space-md);
  }

  .venue__place-row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.05fr);
    column-gap: var(--space-sm);
  }

  .btn-glass__label {
    font-size: 0.75rem;
  }
}
