:root {
  --ink: #2b201c;
  --muted: #6d5b50;
  --gold: #b7823a;
  --rose: #bf6f73;
  --sage: #6b806b;
  --sky: #6f8ea9;
  --wall: #f4eadb;
  --paper: #fffaf2;
  --shadow: 0 28px 80px rgba(44, 31, 22, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(191, 111, 115, 0.22), transparent 34%),
    radial-gradient(circle at 90% 88%, rgba(107, 128, 107, 0.24), transparent 32%),
    linear-gradient(135deg, #efe4d3 0%, #d9c6ad 100%);
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.invitation {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
  position: relative;
  overflow: hidden;
}

.ambient {
  position: fixed;
  width: 44vmax;
  height: 44vmax;
  opacity: 0.18;
  filter: blur(8px);
  pointer-events: none;
}

.ambient-one {
  left: -18vmax;
  top: -20vmax;
  background: repeating-linear-gradient(45deg, #b7823a 0 8px, transparent 8px 20px);
}

.ambient-two {
  right: -20vmax;
  bottom: -20vmax;
  background: repeating-linear-gradient(-45deg, #6f8ea9 0 9px, transparent 9px 22px);
}

.wall {
  width: min(1180px, 100%);
  min-height: min(760px, calc(100vh - 28px));
  position: relative;
  border: 1px solid rgba(83, 62, 48, 0.18);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 50% 72%, rgba(67, 46, 35, 0.18), transparent 24%),
    linear-gradient(180deg, #f7eedf 0%, var(--wall) 56%, #dcc7ab 100%);
  background-size: 42px 42px, 42px 42px, auto, auto;
  transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%);
  transition: transform 760ms cubic-bezier(0.18, 0.86, 0.28, 1), filter 500ms ease;
}

.wall::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 22%;
  background: linear-gradient(180deg, transparent, rgba(63, 42, 28, 0.2));
  pointer-events: none;
}

.wall.is-zooming {
  transform: scale(1.16);
  filter: saturate(1.12) brightness(0.82) blur(1px);
}

.wall-object.is-entering {
  animation: objectDive 680ms cubic-bezier(0.15, 0.78, 0.24, 1) both;
}

.title-block {
  position: absolute;
  inset: clamp(24px, 4vw, 40px) 18px auto;
  text-align: center;
  z-index: 6;
}

.overline,
.object-label,
.microcopy {
  letter-spacing: 0;
}

.overline {
  margin: 0 0 8px;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gold);
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-family: "Pinyon Script", cursive;
  font-size: clamp(2rem, 9vw, 7.8rem);
  font-weight: 400;
  text-shadow: 0 8px 20px rgba(79, 56, 39, 0.16);
}

h1 .weds-sep {
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--rose);
  vertical-align: middle;
}

.name-cap {
  font-family: "Pinyon Script", cursive;
  font-size: 1.38em;
  font-weight: 400;
  display: inline-block;
  vertical-align: middle;
  line-height: 0.82;
}

.name-word {
  white-space: nowrap;
  display: inline-block;
}

h2 {
  font-size: clamp(1.9rem, 5vw, 3.6rem);
}

.wall-object {
  position: absolute;
  border: 0;
  color: var(--ink);
  background: transparent;
  display: grid;
  place-items: center;
  transition: transform 280ms ease, filter 280ms ease;
  z-index: 3;
}

.wall-object:hover,
.wall-object:focus-visible {
  transform: translateY(-6px) scale(1.03);
  filter: drop-shadow(0 18px 18px rgba(61, 42, 30, 0.2));
  outline: 0;
}

.object-label {
  position: absolute;
  top: calc(100% + 8px);
  padding: 6px 11px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(44, 32, 28, 0.76);
  opacity: 0;
  transform: translateY(-3px);
  transition: 220ms ease;
  white-space: nowrap;
}

.wall-object:hover .object-label,
.wall-object:focus-visible .object-label {
  opacity: 1;
  transform: translateY(0);
}

.calendar-object {
  left: clamp(22px, 8vw, 92px);
  top: clamp(130px, 21vh, 180px);
  width: 154px;
  height: 154px;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 45px rgba(75, 52, 36, 0.18);
}

.calendar-object::before {
  content: "";
  position: absolute;
  top: 0;
  width: 100%;
  height: 36px;
  border-radius: 8px 8px 0 0;
  background: var(--rose);
}

.calendar-pin {
  position: absolute;
  top: 12px;
  width: 78px;
  height: 8px;
  border-radius: 999px;
  background: #f3d7ba;
}

.calendar-month {
  margin-top: 18px;
  font-weight: 800;
  color: var(--rose);
}

.calendar-day {
  font-size: 3.4rem;
  font-weight: 800;
}

.map-object {
  right: clamp(22px, 8vw, 88px);
  top: clamp(154px, 24vh, 220px);
  width: 170px;
  height: 132px;
  border: 8px solid #efe7d8;
  border-radius: 8px;
  background:
    linear-gradient(45deg, rgba(111, 142, 169, 0.28) 25%, transparent 25% 50%, rgba(107, 128, 107, 0.25) 50% 75%, transparent 75%),
    #f9f2e7;
  box-shadow: 0 18px 42px rgba(67, 45, 33, 0.18);
}

.map-route,
.map-preview-route {
  width: 72%;
  height: 48%;
  border: 4px dashed var(--sky);
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 42px 0 0;
  transform: rotate(-9deg);
}

.map-pin,
.map-preview-pin {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50% 50% 50% 0;
  background: var(--rose);
  transform: rotate(-45deg);
}

.map-pin {
  right: 36px;
  top: 37px;
}

.album-object {
  left: clamp(28px, 9vw, 125px);
  bottom: clamp(116px, 17vh, 170px);
  width: 170px;
  height: 132px;
}

.album-book-cover {
  position: absolute;
  width: 126px;
  height: 104px;
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(255, 250, 242, 0.36) 0 12px, transparent 12px),
    linear-gradient(135deg, #7e454b, #d6a35b);
  box-shadow: 0 16px 32px rgba(64, 42, 31, 0.22);
  transform: rotate(-7deg);
}

.album-book-cover::after {
  content: "";
  position: absolute;
  inset: 13px 13px 13px 28px;
  border: 2px solid rgba(255, 250, 242, 0.68);
  border-radius: 6px;
  background: rgba(255, 250, 242, 0.18);
}

.album-ring {
  position: absolute;
  left: 8px;
  width: 15px;
  height: 15px;
  border: 3px solid #fff4df;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(80, 50, 42, 0.14);
  z-index: 2;
}

.ring-one {
  top: 27px;
}

.ring-two {
  bottom: 27px;
}

.album-photo-mini {
  position: absolute;
  width: 40px;
  height: 34px;
  border: 4px solid #fffaf2;
  border-radius: 4px;
  background: linear-gradient(135deg, #f7e8ca 0 45%, #6f8ea9 46% 100%);
  z-index: 3;
}

.mini-one {
  right: 45px;
  top: 25px;
  transform: rotate(-8deg);
}

.mini-two {
  right: 17px;
  bottom: 22px;
  transform: rotate(9deg);
}

.album-heart {
  position: absolute;
  right: 53px;
  bottom: 27px;
  width: 18px;
  height: 18px;
  background: #fff1d9;
  transform: rotate(45deg);
  z-index: 4;
}

.album-heart::before,
.album-heart::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff1d9;
}

.album-heart::before {
  left: -9px;
}

.album-heart::after {
  top: -9px;
}

.phone-object {
  right: clamp(26px, 9vw, 122px);
  bottom: clamp(106px, 17vh, 166px);
  width: 164px;
  height: 136px;
}

.contact-card-icon {
  position: relative;
  width: 130px;
  height: 94px;
  border-radius: 8px;
  background: linear-gradient(150deg, #fffaf2, #f0d7b7);
  box-shadow: 0 17px 34px rgba(45, 36, 30, 0.22);
  transform: rotate(4deg);
}

.contact-card-icon::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 18px;
  border-radius: 8px 8px 0 0;
  background: #49606d;
}

.contact-avatar {
  position: absolute;
  left: 17px;
  top: 35px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 32%, #fff4df 0 18%, transparent 19%),
    linear-gradient(180deg, var(--rose), #7e454b);
}

.contact-line {
  position: absolute;
  left: 61px;
  height: 8px;
  border-radius: 999px;
  background: rgba(73, 96, 109, 0.45);
}

.line-one {
  top: 38px;
  width: 48px;
}

.line-two {
  top: 55px;
  width: 36px;
}

.contact-badge {
  position: absolute;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(45, 36, 30, 0.18);
}

.badge-call {
  right: -12px;
  top: 20px;
  background: var(--sage);
}

.badge-chat {
  right: 10px;
  bottom: -12px;
  background: var(--rose);
}

.couple-stage {
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: min(340px, 40vw);
  aspect-ratio: 0.74;
  transform: translateX(-50%);
  display: grid;
  place-items: end center;
  z-index: 2;
}

.couple-art {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 28px 32px rgba(47, 32, 23, 0.32));
  animation: floatCouple 5s ease-in-out infinite;
}

.person-hotspot {
  position: absolute;
  top: 26%;
  width: 45%;
  height: 58%;
  border: 0;
  background: transparent;
  z-index: 4;
}

.groom-hotspot {
  left: 4%;
}

.bride-hotspot {
  right: 4%;
}

.couple-hint {
  position: absolute;
  bottom: 130px;
  pointer-events: none;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.82);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(50, 36, 26, 0.14);
  white-space: nowrap;
}

.portal-flash {
  position: fixed;
  left: var(--portal-left, 50%);
  top: var(--portal-top, 50%);
  width: var(--portal-width, 120px);
  height: var(--portal-height, 120px);
  border-radius: 8px;
  background:
    radial-gradient(circle, rgba(255, 250, 242, 0.98) 0 30%, rgba(236, 198, 142, 0.62) 54%, rgba(43, 32, 28, 0) 72%);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.1);
  z-index: 18;
}

.portal-flash.is-active {
  animation: portalDive 760ms cubic-bezier(0.14, 0.84, 0.26, 1) both;
}

.wall-footer {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(43, 32, 28, 0.74);
  font-size: 0.86rem;
  z-index: 3;
}

.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(34, 25, 21, 0);
  pointer-events: none;
  opacity: 0;
  transition: opacity 360ms ease 190ms, background 360ms ease 190ms;
  z-index: 20;
}

.overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  background: rgba(34, 25, 21, 0.56);
}

.close-button {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #fffaf2;
  color: var(--ink);
  font-size: 1.9rem;
  line-height: 1;
  box-shadow: 0 14px 34px rgba(32, 22, 18, 0.22);
  z-index: 25;
}

.panel {
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  display: none;
  padding: clamp(22px, 4vw, 42px);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.96);
  box-shadow: 0 32px 100px rgba(18, 11, 8, 0.35);
  transform: translateY(30px) scale(0.72);
  transform-origin: var(--panel-origin-x, 50%) var(--panel-origin-y, 50%);
  opacity: 0;
}

.panel.is-active {
  display: block;
  animation: panelIn 520ms cubic-bezier(0.17, 0.84, 0.32, 1.2) forwards;
}

.panel-header {
  margin-bottom: 22px;
}

.date-card {
  width: 180px;
  min-height: 180px;
  display: grid;
  place-items: center;
  margin: 0 auto 26px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(150deg, var(--rose), #8a4f69);
  box-shadow: 0 18px 38px rgba(99, 55, 66, 0.28);
}

.date-card strong {
  font-size: 5rem;
  line-height: 0.88;
}

.date-month {
  align-self: end;
  font-weight: 800;
  text-transform: uppercase;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 0 0 24px;
}

.details-grid div {
  border-left: 3px solid var(--gold);
  padding-left: 12px;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 5px 0 0;
  font-weight: 700;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

input {
  min-width: 0;
  border: 1px solid rgba(87, 67, 55, 0.22);
  border-radius: 8px;
  padding: 13px 14px;
  background: #fff;
  color: var(--ink);
}

.primary-action {
  border: 0;
  border-radius: 8px;
  padding: 13px 18px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--ink), #7e454b);
  box-shadow: 0 16px 30px rgba(63, 42, 34, 0.22);
}

.microcopy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.map-preview {
  min-height: 250px;
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(45deg, rgba(111, 142, 169, 0.25) 25%, transparent 25% 50%, rgba(107, 128, 107, 0.24) 50% 75%, transparent 75%),
    #f5ecd9;
  background-size: 78px 78px;
}

.map-preview-pin {
  inset: 44% auto auto 54%;
}

.map-panel p {
  color: var(--muted);
  font-weight: 700;
}

.person-panel {
  grid-template-columns: 190px 1fr;
  gap: 26px;
  align-items: center;
}

.person-panel.is-active {
  display: grid;
}

.person-portrait {
  min-height: 230px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 250, 242, 0.9) 0 18%, transparent 19%),
    linear-gradient(160deg, rgba(191, 111, 115, 0.86), rgba(43, 32, 28, 0.92));
  box-shadow: inset 0 -40px 55px rgba(0, 0, 0, 0.2), 0 18px 36px rgba(58, 41, 31, 0.22);
  position: relative;
  overflow: hidden;
}

.groom-portrait {
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 250, 242, 0.9) 0 18%, transparent 19%),
    linear-gradient(160deg, #49606d, rgba(43, 32, 28, 0.94));
}

.portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: inherit;
  display: block;
}

.portrait-img:not([src]) {
  display: none;
}

.album-book {
  min-height: 380px;
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.album-page-view {
  width: min(520px, 100%);
  aspect-ratio: 4 / 3;
  border: 12px solid #fffaf2;
  border-radius: 8px;
  object-fit: cover;
  background: #ead9be;
  box-shadow: 0 26px 60px rgba(50, 35, 25, 0.26);
  animation: pageTurn 500ms ease both;
}

.empty-album {
  width: min(520px, 100%);
  min-height: 270px;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px dashed rgba(82, 62, 48, 0.32);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  background: #fff7e9;
}

.album-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.album-controls button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 2rem;
  background: var(--ink);
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  background: #f0e2cc;
  transition: transform 180ms ease, background 180ms ease;
}

.contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: var(--muted);
  transition: fill 180ms ease;
}

.contact-icon.whatsapp {
  fill: #1ebd5a;
}

.contact-list a:hover {
  transform: translateX(5px);
  background: #ead0a8;
}

.contact-list a:hover .contact-icon {
  fill: var(--ink);
}

.contact-list a:hover .contact-icon.whatsapp {
  fill: #128c7e;
}

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

@keyframes panelIn {
  0% {
    opacity: 0;
    transform: translateY(34px) scale(0.72);
    filter: blur(9px);
  }
  62% {
    opacity: 1;
    filter: blur(0);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes portalDive {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.12);
  }
  20% {
    opacity: 0.85;
  }
  72% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(11);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(15);
  }
}

@keyframes objectDive {
  0% {
    transform: translateY(0) scale(1);
  }
  48% {
    transform: translateY(-10px) scale(1.14);
  }
  100% {
    transform: translateY(-18px) scale(1.42);
    opacity: 0;
  }
}

@keyframes pageTurn {
  from {
    opacity: 0;
    transform: rotateY(-18deg) translateX(-20px);
  }
  to {
    opacity: 1;
    transform: rotateY(0) translateX(0);
  }
}

.wall-objects-row {
  display: contents;
}

@media (max-width: 780px) {
  .title-block {
    top: 16px;
  }

  h1 {
    font-size: clamp(3.2rem, 12vw, 4.8rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.05;
  }

  h1 .weds-sep {
    font-size: clamp(1rem, 3.8vw, 1.25rem);
    margin: 6px 0;
  }

  .wall {
    min-height: 780px;
  }

  .wall-objects-row {
    position: absolute;
    bottom: 80px;
    left: 4px;
    right: 4px;
    display: flex;
    justify-content: space-evenly;
    align-items: flex-end;
    z-index: 5;
  }

  .wall-objects-row .wall-object {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: scale(0.55);
    transform-origin: bottom center;
    margin: 0;
  }
  
  .wall-objects-row .wall-object:hover,
  .wall-objects-row .wall-object:focus-visible {
    transform: translateY(-6px) scale(0.58);
  }

  .wall-objects-row .wall-object.is-entering {
    animation: objectDiveMobile 680ms cubic-bezier(0.15, 0.78, 0.24, 1) both;
  }

  @keyframes objectDiveMobile {
    0% {
      transform: translateY(0) scale(0.55);
    }
    48% {
      transform: translateY(-10px) scale(0.63);
    }
    100% {
      transform: translateY(-18px) scale(0.78);
      opacity: 0;
    }
  }

  .couple-stage {
    width: min(320px, 80vw);
    bottom: 55px;
  }

  .couple-hint {
    bottom: 150px;
    top: auto;
  }

  .wall-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .details-grid,
  .form-row,
  .person-panel.is-active {
    grid-template-columns: 1fr;
  }

  .person-portrait {
    min-height: 190px;
  }
}

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

/* --- Custom Wedding Enhancements --- */

/* Petal Canvas */
#petalCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 10;
}

/* Ambient Music Player */
.music-toggle-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 30;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(183, 130, 58, 0.35);
  background: rgba(255, 250, 242, 0.85);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(43, 32, 28, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.music-toggle-btn:hover {
  transform: scale(1.08);
  border-color: var(--gold);
  box-shadow: 0 10px 28px rgba(183, 130, 58, 0.2);
}

.music-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.music-waves {
  display: none;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.music-waves .wave {
  width: 2px;
  background: var(--rose);
  border-radius: 99px;
  animation: bounceWave 0.8s ease-in-out infinite alternate;
}

.music-waves .bar-1 { height: 100%; animation-delay: 0.1s; }
.music-waves .bar-2 { height: 50%; animation-delay: 0.3s; }
.music-waves .bar-3 { height: 75%; animation-delay: 0.5s; }

.music-toggle-btn.is-playing .music-icon {
  display: none;
}

.music-toggle-btn.is-playing .music-waves {
  display: flex;
}

@keyframes bounceWave {
  0% { height: 4px; }
  100% { height: 16px; }
}

/* Countdown Timer */
.countdown-timer {
  display: inline-flex;
  gap: clamp(12px, 2.5vw, 28px);
  margin: 16px auto 0;
  background: rgba(255, 250, 242, 0.65);
  backdrop-filter: blur(8px);
  padding: 8px 22px;
  border-radius: 999px;
  border: 1px solid rgba(183, 130, 58, 0.2);
  box-shadow: 0 8px 24px rgba(43, 32, 28, 0.06);
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
}

.countdown-value {
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.countdown-label {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.64rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* Map Styling Integration */
#map {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: #f7eedf;
}

/* Apply beautiful warm sepia styling to Leaflet tiles to integrate with the invitation paper */
#map .leaflet-tile-container {
  filter: sepia(0.35) hue-rotate(5deg) contrast(0.9) brightness(0.96) saturate(1.05);
}

/* 3D Perspective Context */
.wall {
  perspective: 1200px;
}
.wall-object {
  transform-style: preserve-3d;
}
