:root {
  --text: #1f2937;
  --muted: #6b7280;
  --bg-light: #fcfcfd;
  --bg-gray: #f3f4f6;
  --accent: #f46089;
  --card: #ffffff;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg-light);
  line-height: 1.45;
  overflow-x: clip;
  user-select: none;
  -webkit-user-select: none;
}

input,
textarea,
select {
  user-select: text;
  -webkit-user-select: text;
}

h1,
h2,
p {
  margin: 0;
}

.section {
  padding: 42px 14px;
}

.section-light {
  background: var(--bg-light);
}

.section-gray {
  background: var(--bg-gray);
}

#love-heart-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

main,
.footer {
  position: relative;
  z-index: 1;
}

.heart-host {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
}

.heart-host > * {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 760px;
  margin: 0 auto;
}

.hero {
  text-align: center;
}

.hero .container {
  position: relative;
}

.hero-image {
  width: min(92vw, 560px);
  aspect-ratio: 16 / 14;
  margin: 0 auto;
  object-fit: cover;
  object-position: center 70%;
  display: block;
  border-radius: 24px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.hero-title {
  margin-top: 14px;
  font-size: clamp(30px, 9vw, 46px);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.hero-date {
  margin-top: 6px;
  color: var(--muted);
  font-size: clamp(18px, 4.8vw, 24px);
}

.hero-text {
  margin: 14px auto 0;
  max-width: 620px;
  font-size: clamp(16px, 4.2vw, 20px);
  color: #374151;
}

.ambient-heart {
  position: absolute;
  font-size: clamp(11px, 2.2vw, 18px);
  line-height: 1;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4) rotate(0deg);
  animation: ambientHeartSpawn 1000ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  filter: drop-shadow(0 1px 2px rgba(255, 189, 211, 0.25));
  z-index: 0;
}

.ambient-heart.is-retiring {
  animation: ambientHeartRetire 560ms cubic-bezier(0.22, 0.7, 0.2, 1) forwards;
}

.ambient-heart-flash {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle, var(--flash-color, rgba(255, 174, 201, 0.22)) 0%, rgba(255, 174, 201, 0) 72%);
  animation: ambientHeartFlash 560ms cubic-bezier(0.22, 0.7, 0.2, 1) forwards;
  z-index: 0;
}

.ambient-heart-particle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  color: var(--particle-color, rgba(255, 170, 198, 0.65));
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.7);
  animation: ambientHeartParticle 520ms cubic-bezier(0.22, 0.7, 0.2, 1) forwards;
  z-index: 0;
}

.heart-click-toast {
  position: fixed;
  top: 18px;
  right: max(18px, env(safe-area-inset-right));
  transform: translateY(-10px) scale(0.98);
  padding: 10px 20px 10px 12px;
  border-radius: 999px;
  max-width: calc(100vw - 24px - env(safe-area-inset-right));
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--toast-text, #8f4563);
  background: var(--toast-bg, rgba(255, 213, 228, 0.42));
  border: 1px solid var(--toast-border, rgba(244, 144, 180, 0.26));
  box-shadow: 0 4px 14px rgba(223, 131, 166, 0.16);
  pointer-events: none;
  opacity: 0;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transform-origin: top right;
}

.heart-fact-toast {
  position: fixed;
  top: 72px;
  right: max(18px, env(safe-area-inset-right));
  transform: translateY(-8px) scale(0.98);
  max-width: min(78vw, 360px);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14px;
  line-height: 1.25;
  color: rgba(147, 66, 95, 0.95);
  background: rgba(255, 238, 246, 0.9);
  border: 1px solid rgba(243, 179, 206, 0.5);
  box-shadow: 0 4px 14px rgba(212, 128, 164, 0.12);
  pointer-events: none;
  opacity: 0;
  z-index: 8;
  transform-origin: top right;
}

.heart-fact-toast::before,
.heart-fact-toast::after {
  content: "";
  position: absolute;
  top: -7px;
  right: 30px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
}

.heart-fact-toast::before {
  border-bottom: 7px solid rgba(243, 179, 206, 0.5);
}

.heart-fact-toast::after {
  top: -6px;
  border-bottom: 7px solid rgba(255, 238, 246, 0.9);
}

.heart-fact-toast strong {
  font-weight: 800;
}

.heart-click-toast.is-visible {
  animation: heartToastIn 280ms cubic-bezier(0.22, 0.7, 0.2, 1) forwards;
}

.heart-click-toast.is-hiding {
  animation: heartToastOut 260ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.heart-fact-toast.is-visible {
  animation: heartToastIn 280ms cubic-bezier(0.22, 0.7, 0.2, 1) forwards;
}

.heart-fact-toast.is-hiding {
  animation: heartToastOut 260ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.heart-click-toast-label {
  white-space: nowrap;
  color: var(--toast-label-text, var(--toast-text, #8f4563));
}

.heart-click-toast-count {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 2.8ch;
  gap: 0;
  height: 1em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transform-origin: center;
  padding-right: 0.32ch;
  color: var(--toast-count-text, var(--toast-text, #8f4563));
}

.heart-click-toast-count.is-pulsing {
  animation: heartToastCountPulse 240ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.heart-click-toast-digit {
  position: relative;
  display: inline-block;
  overflow-x: visible;
  overflow-y: hidden;
  width: 0.92ch;
  height: 1em;
}

.heart-click-toast-digit-text {
  display: block;
  text-align: center;
  will-change: transform, opacity;
}

.heart-click-toast-digit-text.leave {
  position: absolute;
  inset: 0;
  animation: countLeave 520ms cubic-bezier(0.22, 0.7, 0.2, 1) forwards;
}

.heart-click-toast-digit-text.enter {
  animation: countEnter 520ms cubic-bezier(0.22, 0.7, 0.2, 1) forwards;
}

@keyframes heartToastCountPulse {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}


@keyframes heartToastIn {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heartToastOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
}

@media (max-width: 600px) {
  .heart-click-toast {
    top: 12px;
    right: max(12px, env(safe-area-inset-right));
    font-size: 13px;
    padding: 8px 16px 8px 10px;
    max-width: calc(100vw - 20px - env(safe-area-inset-right));
  }

  .heart-fact-toast {
    top: 60px;
    right: max(12px, env(safe-area-inset-right));
    max-width: min(80vw, 320px);
    font-size: 11px;
    padding: 7px 10px;
  }

  .heart-fact-toast::before,
  .heart-fact-toast::after {
    right: 24px;
  }
}

@keyframes ambientHeartSpawn {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.35) rotate(0deg);
  }
  20% {
    opacity: 0.78;
  }
  100% {
    opacity: 0.28;
    transform:
      translate(calc(-50% + var(--tx)), calc(-50% + var(--ty)))
      scale(var(--scale))
      rotate(var(--rot));
  }
}

@keyframes ambientHeartRetire {
  0% {
    opacity: 0.28;
    transform:
      translate(calc(-50% + var(--tx, 0px)), calc(-50% + var(--ty, 0px)))
      scale(var(--scale, 1))
      rotate(var(--rot, 0deg));
  }
  40% {
    opacity: 0.18;
  }
  100% {
    opacity: 0;
    transform:
      translate(calc(-50% + var(--tx, 0px)), calc(-50% + var(--ty, 0px) - 8px))
      scale(0.9)
      rotate(calc(var(--rot, 0deg) + 5deg));
  }
}

@keyframes ambientHeartFlash {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
  }
  45% {
    opacity: 0.24;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

@keyframes ambientHeartParticle {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
  }
  18% {
    opacity: 0.62;
  }
  100% {
    opacity: 0;
    transform:
      translate(calc(-50% + var(--px, 0px)), calc(-50% + var(--py, 0px)))
      scale(1);
  }
}

.program h2,
.location h2,
.rsvp h2 {
  text-align: center;
  font-size: clamp(30px, 8vw, 40px);
  margin-bottom: 20px;
}

.countdown-title {
  color: #8a3f5f;
  font-size: clamp(15px, 3.4vw, 18px);
  font-weight: 600;
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  column-gap: 12px;
  row-gap: 0;
}

.countdown-item {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border: 0;
  padding: 0;
  width: clamp(68px, 11vw, 88px);
  white-space: nowrap;
}

.count-value {
  position: relative;
  display: block;
  overflow: hidden;
  height: 1em;
  min-width: 1.8ch;
  font-size: clamp(17px, 3.4vw, 22px);
  font-weight: 700;
  color: #b83260;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.count-value.is-updating {
  animation: timerValueIO 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes timerValueIO {
  0% {
    opacity: 0.86;
  }
  100% {
    opacity: 1;
  }
}

.count-value-text {
  display: block;
  width: 100%;
  text-align: right;
  will-change: transform, opacity;
}

.count-value-text.leave {
  position: absolute;
  inset: 0;
  animation: countLeave 520ms cubic-bezier(0.22, 0.7, 0.2, 1) forwards;
}

.count-value-text.enter {
  animation: countEnter 520ms cubic-bezier(0.22, 0.7, 0.2, 1) forwards;
}

@keyframes countEnter {
  0% {
    opacity: 0;
    transform: translateY(110%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes countLeave {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-110%);
  }
}

.count-label {
  display: inline-block;
  position: relative;
  margin-top: 0;
  font-size: clamp(12px, 2.8vw, 13px);
  color: #6b7280;
  text-transform: lowercase;
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.05;
  will-change: transform;
}

.count-label-static,
.count-label-diff {
  display: inline-block;
  white-space: pre;
}

.count-label-diff {
  position: relative;
  min-width: 0.25ch;
}

.count-label-diff-text {
  display: inline-block;
  will-change: opacity, filter, transform;
}

.count-label-diff-text.leave {
  position: absolute;
  left: 0;
  top: 0;
  animation: labelFogOut 340ms cubic-bezier(0.22, 0.7, 0.2, 1) forwards;
}

.count-label-diff-text.enter {
  animation: labelFogIn 420ms cubic-bezier(0.22, 0.7, 0.2, 1) forwards;
}

@keyframes labelFogOut {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(-3px);
  }
}

@keyframes labelFogIn {
  0% {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(2px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 480px;
}

.timeline li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: clamp(18px, 5vw, 24px);
  color: #374151;
}

.timeline strong {
  font-weight: 700;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.location-section {
  padding: 14px;
  overflow-x: clip;
  overflow-y: visible;
}

.location-marquee {
  max-width: 1260px;
  margin: 0 auto 10px;
  overflow-x: hidden;
  overflow-y: visible;
  padding-right: 0;
  padding-bottom: 14px;
  text-align: center;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

.location-marquee-track {
  display: flex;
  min-width: max-content;
  font-family: "Caveat", "Cormorant Garamond", serif;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1;
  color: #2f3550;
  text-shadow:
    1px 1px 0 rgba(244, 186, 216, 1),
    2px 1px 0 rgba(240, 175, 210, 1),
    3px 2px 0 rgba(236, 163, 203, 1),
    4px 2px 0 rgba(232, 152, 197, 1),
    6px 3px 0 rgba(226, 140, 190, 1),
    8px 4px 0 rgba(220, 128, 184, 1),
    11px 5px 0 rgba(210, 114, 174, 1),
    14px 6px 0 rgba(198, 98, 162, 1);
  will-change: transform;
  animation: locationMarquee 22s linear infinite;
}

.location-marquee-group {
  display: flex;
  gap: 54px;
  flex-shrink: 0;
  padding-right: 54px;
}

@keyframes locationMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.location-showcase {
  max-width: 1260px;
  margin: 0 auto;
  min-height: calc(100vh - 28px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.dress-code h2 {
  text-align: center;
  margin-bottom: 18px;
}

.dress-code-palette {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 560px;
  margin: 0 auto;
  padding-bottom: 26px;
}

.dress-code-swatch {
  position: relative;
  width: min(100%, 102px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.07);
  outline: none;
}

.swatch-name {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 700;
  color: rgba(44, 49, 66, 0.88);
  white-space: nowrap;
}

.swatch-red {
  background: linear-gradient(145deg, #f7a9bb, #e97f98);
}

.swatch-pink {
  background: linear-gradient(145deg, #ffd5e3, #f7bfd4);
}

.swatch-lilac {
  background: linear-gradient(145deg, #e5d8f6, #cfb9ea);
}

.swatch-ivory {
  background: linear-gradient(145deg, #f9ecd8, #f1dfc3);
}

.dress-code-swatch::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(6px);
  width: max-content;
  max-width: min(240px, calc(100vw - 32px));
  background: rgba(255, 246, 250, 0.97);
  color: #7f3f5f;
  border: 1px solid rgba(241, 172, 202, 0.65);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 8px 18px rgba(185, 104, 143, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 6;
}

.dress-code-swatch:hover::after,
.dress-code-swatch:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.location-panel {
  background: linear-gradient(155deg, #ffffff, #fff8fb);
  border-radius: 20px;
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.07);
  padding: 18px;
}

.location-main {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0;
}

.hall-gallery {
  margin-top: 0;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  flex: 1;
  min-height: 0;
}

.hall-gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 740ms cubic-bezier(0.2, 0.78, 0.2, 1);
  will-change: transform;
}

.hall-photo {
  flex: 0 0 100%;
  height: 100%;
  min-height: 160px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.hall-photo-1 {
  background-image:
    linear-gradient(150deg, rgba(248, 207, 223, 0.06), rgba(199, 211, 247, 0.05)),
    url("/static/img/hall/1.jpg");
}

.hall-photo-2 {
  background-image:
    linear-gradient(150deg, rgba(247, 205, 220, 0.06), rgba(201, 218, 252, 0.05)),
    url("/static/img/hall/2.jpg");
}

.hall-photo-3 {
  background-image:
    linear-gradient(150deg, rgba(248, 212, 227, 0.06), rgba(206, 219, 252, 0.05)),
    url("/static/img/hall/3.jpg");
}

.location-card-title {
  margin: 0;
  font-size: clamp(20px, 3.5vw, 28px);
  color: #283048;
}

.location-map {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0;
}

.map-shell {
  position: relative;
  margin-top: 0;
  border-radius: 16px;
  overflow: hidden;
  flex: 1;
}

.map-frame {
  width: 100%;
  height: 100%;
  min-height: 210px;
  border: 0;
  border-radius: 16px;
  display: block;
  filter: hue-rotate(314deg) saturate(0.72) brightness(1.03) contrast(0.96);
}

.location-actions {
  min-height: auto;
  display: flex;
  flex-direction: column;
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0;
}

.location-buttons {
  margin-top: 0;
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex: 1;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.map-link,
.calendar-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex: 1;
  width: auto;
  min-height: 96px;
  height: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  text-decoration: none;
  text-align: left;
  font-weight: 700;
  font-size: clamp(13px, 1.7vw, 16px);
  line-height: 1.2;
  padding: 12px 14px;
  box-shadow: none;
  transition: transform 200ms ease, filter 200ms ease;
}

.map-link {
  background: transparent;
  color: #d94578;
  border-color: rgba(244, 96, 137, 0.64);
}

.map-link:hover {
  transform: translateY(-1px);
  filter: none;
}

.calendar-link {
  background: transparent;
  color: #6f53d3;
  border-color: rgba(127, 99, 223, 0.66);
}

.calendar-link:hover {
  transform: translateY(-1px);
  filter: none;
}

.action-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  line-height: 0;
  background: transparent;
  box-shadow: inset 0 0 0 1px currentColor;
}

.action-icon-svg {
  width: 18px;
  height: 18px;
  display: block;
}

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

.action-title {
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 700;
  line-height: 1.1;
}

.action-subtitle {
  font-size: clamp(11px, 1.35vw, 13px);
  font-weight: 500;
  opacity: 0.88;
  line-height: 1.2;
}

.rsvp-form {
  max-width: 560px;
  margin: 0 auto;
}

.rsvp-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 600;
}

.rsvp-form input[type="text"] {
  width: 100%;
  border: 1px solid var(--border);
  background: #f6f7f9;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  outline: none;
  font-size: 16px;
}

.rsvp-form input[type="text"]:focus {
  border-color: #f8a1b8;
  box-shadow: 0 0 0 3px rgba(244, 96, 137, 0.16);
}

.question {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 600;
}

.option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: #374151;
  font-size: 16px;
  font-weight: 500;
}

.option input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
}

.submit-btn {
  width: 100%;
  margin-top: 8px;
  border: 0;
  border-radius: 10px;
  padding: 13px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
}

.submit-btn:hover {
  filter: brightness(0.96);
}

.form-result {
  min-height: 24px;
  margin-top: 12px;
  text-align: center;
  color: #374151;
  font-size: 14px;
}

.footer {
  padding: 24px 24px 34px;
  text-align: center;
  color: #374151;
  font-size: 16px;
}

.footer-countdown {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 4px 2px;
  scrollbar-width: none;
}

.footer-countdown::-webkit-scrollbar {
  display: none;
}

.footer-note {
  margin-top: 0;
}

#designer-cursor {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 180ms ease;
  --heart-tilt-x: 0deg;
  --heart-tilt-y: 0deg;
  --heart-roll: 0deg;
  --heart-parallax-x: 0px;
  --heart-parallax-y: 0px;
  --heart-scale: 1;
  --cursor-x: -100px;
  --cursor-y: -100px;
}

.designer-cursor-heart {
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  z-index: 2;
  transform-style: preserve-3d;
  transform:
    translate3d(var(--cursor-x), var(--cursor-y), 0)
    translate(-50%, -50%)
    translateZ(0)
    rotateX(var(--heart-tilt-y))
    rotateY(var(--heart-tilt-x))
    rotate(var(--heart-roll))
    scale(var(--heart-scale));
  will-change: transform;
}

.heart-layer {
  position: absolute;
  display: block;
  font-size: 34px;
  line-height: 1;
  transform-origin: center;
  will-change: transform, filter, opacity;
}

.heart-layer-back {
  color: rgba(255, 161, 187, 0.52);
  transform: translate3d(
    calc(-3px + var(--heart-parallax-x) * -0.42),
    calc(3px + var(--heart-parallax-y) * -0.42),
    -6px
  );
  filter: blur(1.1px);
}

.heart-layer-mid {
  color: #ff668f;
  transform: translate3d(
    calc(1px + var(--heart-parallax-x) * 0.2),
    calc(var(--heart-parallax-y) * 0.2),
    -1px
  );
}

.heart-layer-front {
  color: #ffd8e5;
  transform: translate3d(
    calc(var(--heart-parallax-x) * 0.55),
    calc(-1px + var(--heart-parallax-y) * 0.55),
    4px
  );
  text-shadow: 0 1px 2px rgba(157, 35, 77, 0.35);
}

.cursor-trail-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffdce8, #ff7ea4);
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
  opacity: 0;
  filter: blur(0.5px);
  z-index: 1;
  will-change: transform, opacity;
}

.cursor-trail-dot:nth-child(2) { width: 13px; height: 13px; }
.cursor-trail-dot:nth-child(3) { width: 12px; height: 12px; }
.cursor-trail-dot:nth-child(4) { width: 10px; height: 10px; }
.cursor-trail-dot:nth-child(5) { width: 9px; height: 9px; }
.cursor-trail-dot:nth-child(6) { width: 8px; height: 8px; }
.cursor-trail-dot:nth-child(7) { width: 7px; height: 7px; }
.cursor-trail-dot:nth-child(8) { width: 7px; height: 7px; }
.cursor-trail-dot:nth-child(9) { width: 5px; height: 5px; }
.cursor-trail-dot:nth-child(10) { width: 5px; height: 5px; }
.cursor-trail-dot:nth-child(11) { width: 4px; height: 4px; }

#designer-cursor.is-visible {
  opacity: 1;
}

#designer-cursor.is-pressed {
  transform-origin: center;
}

#designer-cursor.is-pressed .designer-cursor-heart {
  --heart-scale: 0.86;
}

#designer-cursor.is-evading {
  opacity: 0;
  transition: opacity 260ms cubic-bezier(0.22, 0.74, 0.2, 1);
}

@media (hover: hover) and (pointer: fine) {
  body.designer-cursor-enabled,
  body.designer-cursor-enabled * {
    cursor: none !important;
  }
}

@media (min-width: 960px) {
  .location-showcase {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1.3fr 0.7fr;
  }

  .location-main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
  }

  .location-map {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    min-height: 0;
  }

  .location-actions {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    min-height: 0;
    justify-content: stretch;
  }

  .location-buttons {
    gap: 14px;
  }
}

@media (min-width: 768px) {
  .section {
    padding: 56px 18px;
  }

  .footer-countdown {
    flex-direction: row;
    gap: 10px;
    padding: 8px 4px 2px;
  }

  .countdown-grid {
    column-gap: 16px;
  }

  .hall-photo {
    min-height: 220px;
  }

  .rsvp-form label,
  .question {
    font-size: 19px;
  }

  .option {
    font-size: 18px;
    padding: 13px 16px;
  }

  .submit-btn {
    font-size: 18px;
  }

  .footer {
    font-size: 18px;
  }
}

@media (max-width: 600px) {
  .dress-code-swatch {
    width: min(100%, 72px);
  }

  .swatch-name {
    font-size: 11px;
  }

  .location-marquee {
    margin-bottom: 8px;
    padding-right: 0;
    padding-bottom: 10px;
  }

  .location-marquee-track {
    font-size: clamp(28px, 9vw, 42px);
    animation-duration: 14s;
  }

  .location-marquee-group {
    gap: 34px;
    padding-right: 34px;
  }

  .footer {
    padding: 20px 12px 28px;
  }

  .footer-countdown {
    width: 100%;
    overflow-x: visible;
    padding: 6px 0 2px;
  }

  .location-buttons {
    gap: 8px;
  }

  .map-link,
  .calendar-link {
    min-height: 74px;
    padding: 8px 9px;
    border-radius: 13px;
    gap: 7px;
  }

  .action-icon {
    width: 26px;
    height: 26px;
    font-size: 14px;
    flex-basis: 26px;
  }

  .action-title {
    font-size: 13px;
  }

  .action-subtitle {
    display: none;
  }

  .footer-countdown .countdown-title {
    font-size: 14px;
    line-height: 1.1;
  }

  .footer-countdown .countdown-grid {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 2px;
    justify-items: center;
  }

  .footer-countdown .countdown-item {
    width: 100%;
    min-width: 0;
    gap: 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    white-space: normal;
  }

  .footer-countdown .count-value {
    font-size: clamp(15px, 4.6vw, 17px);
    min-width: 0;
    text-align: center;
  }

  .footer-countdown .count-label {
    font-size: clamp(8px, 2.4vw, 9px);
    line-height: 1.05;
    text-align: center;
    white-space: nowrap;
  }
}

@media (max-width: 390px) {
  .footer {
    padding: 18px 8px 24px;
  }

  .footer-countdown .countdown-title {
    font-size: 13px;
  }

  .footer-countdown .countdown-grid {
    column-gap: 1px;
  }

  .footer-countdown .count-value {
    font-size: 15px;
  }

  .footer-countdown .count-label {
    font-size: 8px;
  }
}
