/* rsvp.css — the swipe card, the match screen, the all-access pass, the venue. */

.rsvp {
  background:
    radial-gradient(ellipse 110% 55% at 50% 100%, rgba(200, 255, 61, 0.12), transparent 70%),
    var(--night);
}

.rsvp__swipe {
  margin-top: 22px;
}

/* ---- the card ---------------------------------------------------------------------- */
.match {
  position: relative;
  width: min(100%, 330px);
  margin: 0 auto;
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  transform: translateX(var(--sx, 0px)) rotate(calc(var(--sx, 0px) * 0.06deg));
  transition: transform 420ms var(--ease-spring);
}

.match.is-dragging {
  cursor: grabbing;
  transition: none;
}

.match.is-gone-right {
  transition: transform 520ms var(--ease-in-out);
  transform: translateX(160%) rotate(28deg);
}

.match.is-gone-left {
  transition: transform 520ms var(--ease-in-out);
  transform: translateX(-160%) rotate(-28deg);
}

.match__photo {
  width: 100%;
  aspect-ratio: 507 / 324;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.match__info {
  padding: 16px 18px 20px;
  text-align: left;
}

.match__top {
  margin: 0;
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variation-settings: "wdth" 80, "opsz" 96;
}

.match__body {
  margin: 4px 0 0;
  font-size: 17px;
}

.match__meta {
  margin: 10px 0 0;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(20, 10, 18, 0.6);
}

.match__stamp {
  position: absolute;
  top: 26px;
  padding: 6px 12px 4px;
  border: 4px solid currentColor;
  border-radius: 10px;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  background: rgba(255, 244, 230, 0.85);
  opacity: var(--o, 0);
  pointer-events: none;
}

.match__stamp--yes {
  left: 18px;
  color: #1a9a4a;
  transform: rotate(-14deg);
  --o: var(--yes, 0);
}

.match__stamp--no {
  right: 18px;
  color: var(--rani-deep);
  transform: rotate(14deg);
  --o: var(--no, 0);
}

.rsvp__buttons {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 24px;
}

.round {
  width: 68px;
  height: 68px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform var(--dur-fast) var(--ease-spring);
}

.round:active {
  transform: scale(0.9);
}

.round--no {
  background: var(--cream);
  color: var(--rani-deep);
}

.round--yes {
  background: var(--rani);
  color: var(--cream);
}

/* ---- match + pass ------------------------------------------------------------------- */
.rsvp__yes,
.rsvp__no {
  margin-top: 18px;
  animation: stat-in 700ms var(--ease-spring) both;
}

.rsvp__match {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(52px, 16vw, 68px);
  line-height: 1;
  color: var(--lime);
}

.rsvp__match--no {
  color: var(--rani);
}

.rsvp__matchbody {
  margin: 8px auto 0;
  max-width: 290px;
  font-size: 16px;
  color: rgba(255, 244, 230, 0.8);
}

.pass {
  position: relative;
  margin: 24px 0 8px;
  padding: 22px 20px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f3f0f7 0%, #d4d6e0 45%, #eeeaf4 70%, #c9ccd8 100%);
  color: var(--ink);
  text-align: left;
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--rani);
}

.pass > :not(.pass__foil) {
  position: relative;
}

.pass__title {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pass__fest {
  margin: 4px 0 14px;
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  font-variation-settings: "wdth" 75, "opsz" 96;
}

.pass__fest .serif {
  text-transform: none;
  color: var(--rani-deep);
}

.pass__field input {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  font-weight: 700;
}

.pass__guests {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
}

.stepper button {
  width: 44px;
  height: 40px;
  border: 0;
  background: none;
  font-size: 22px;
  font-weight: 700;
}

.stepper output {
  min-width: 22px;
  text-align: center;
  font: 700 18px/1 var(--font-mono);
}

.pass__meta {
  margin: 16px 0 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pass__barcode {
  position: absolute;
  right: 20px;
  bottom: 18px;
  width: 92px;
  height: 22px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 13px);
}

.rsvp__fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* ---- venue --------------------------------------------------------------------------- */
.venue {
  background: var(--night);
  padding-top: 20px;
}

.venue__card {
  position: relative;
  margin-top: 16px;
  padding: 34px 22px 24px;
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--marigold);
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--lime);
  text-align: left;
}

.venue__pin {
  position: absolute;
  top: -26px;
  right: 22px;
  font-size: 48px;
  animation: pin-drop 1.8s var(--ease-spring) infinite;
}

@keyframes pin-drop {
  0%,
  60%,
  100% {
    transform: none;
  }
  30% {
    transform: translateY(-12px);
  }
}

.venue__name {
  margin: 0;
  font-weight: 800;
  font-size: clamp(46px, 14vw, 60px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  font-variation-settings: "wdth" 75, "opsz" 96;
}

.venue__addr {
  margin: 8px 0 0;
  font-size: 17px;
  font-weight: 500;
}

.venue__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 6px;
  padding: 0;
  list-style: none;
}

.venue__facts li {
  padding: 6px 11px 5px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.04em;
  background: rgba(255, 244, 230, 0.45);
}
