:root {
  --text: #d81b60;
  --accent: #d81b60;
  --title: #111111;
  --card: rgba(255, 255, 255, 0.92);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  background: #f7e8f2;
}

.invitation {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 18px 16px 48px;
}

.separator {
  width: min(90vw, 320px);
  height: auto;
}

.cover {
  width: min(90vw, 360px);
  height: auto;
}

.name-image {
  width: min(92vw, 420px);
  height: auto;
  display: block;
}

.parents-image {
  width: min(92vw, 420px);
  height: auto;
  display: block;
}

.block {
  width: min(92vw, 460px);
  padding: 18px 16px;
  background: var(--card);
  border-radius: 18px;
  border: 2px solid #ff2fb3;
  text-align: center;
  backdrop-filter: blur(4px);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.18),
    0 0 12px rgba(255, 47, 179, 0.55),
    0 0 22px rgba(255, 122, 217, 0.45);
  position: relative;
  overflow: hidden;
}

.block::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0 1px, transparent 2px);
  background-size: 18px 18px;
  opacity: 0.35;
  pointer-events: none;
  mix-blend-mode: screen;
}

.block > * {
  position: relative;
  z-index: 1;
}

.block h1,
.block h2 {
  font-family: "Great Vibes", cursive;
  color: var(--title);
  margin: 0 0 10px;
  letter-spacing: 1px;
}

.block h1 {
  font-size: 2.4rem;
}

.block h2 {
  font-size: 2rem;
}

.block p {
  margin: 0;
  line-height: 1.6;
  font-size: 1rem;
}

.block p + p {
  margin-top: 10px;
}

.highlight-name {
  font-family: "Great Vibes", cursive;
  font-size: 8rem;
  color: var(--accent);
  margin-top: 6px;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.98rem;
  line-height: 1.5;
}

.placeholder {
  opacity: 0.8;
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-item {
  width: 100%;
  border-radius: 14px;
  border: 2px solid #ff2fb3;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.35),
    0 0 10px rgba(255, 47, 179, 0.6),
    0 0 18px rgba(255, 122, 217, 0.5);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:active {
  transform: scale(0.98);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.confirm-btn {
  background: transparent;
  border: none;
  padding: 0;
  margin-top: 8px;
  width: min(65vw, 240px);
  cursor: pointer;
  animation: pulse 2s infinite;
}

.confirm-btn img {
  width: 100%;
  height: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.carousel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.carousel-overlay.active {
  display: flex;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  width: 100%;
  height: 100%;
}

.carousel-track img {
  scroll-snap-align: center;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 28px 16px;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}

@media (min-width: 480px) {
  .block {
    padding: 22px 20px;
  }
}
