:root {
  --hot-pink: #ff3d9a;
  --pink: #ff6eb4;
  --pink-light: #ffb3d9;
  --magenta: #e91e8c;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(255, 45, 136, 0.45);
  --font: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  font-family: var(--font);
  overflow: hidden;
  background: linear-gradient(160deg, var(--hot-pink) 0%, var(--magenta) 45%, var(--pink) 100%);
}

/* ── Collage: small thumbnails, many columns, gentle scroll ── */

.gallery-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--hot-pink);
}

.gallery-track {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 200vh;
  animation: scrollGallery 135s linear infinite;
  will-change: transform;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
  gap: 3px;
  padding: 3px;
  width: 100%;
  flex-shrink: 0;
}

.gallery-cell {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
  background: var(--magenta);
}

.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@keyframes scrollGallery {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

/* ── Content — solid card, no blur/smoke ── */

.page {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  pointer-events: none;
}

.card {
  pointer-events: auto;
  width: 100%;
  max-width: 380px;
  padding: 32px 26px;
  text-align: center;
  background: var(--white);
  border-radius: 24px;
  border: 4px solid var(--hot-pink);
  box-shadow: var(--shadow), 0 0 0 6px rgba(255, 255, 255, 0.35);
  animation: popIn 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.welcome {
  font-size: clamp(1.5rem, 5.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 24px;
  color: #d1006a;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 24px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--hot-pink) 0%, var(--magenta) 100%);
  color: var(--white);
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 24px rgba(255, 45, 136, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 32px rgba(255, 45, 136, 0.6);
  outline: none;
}

.cta:active {
  transform: scale(0.97);
}

.cta__arrow {
  transition: transform 0.2s ease;
}

.cta:hover .cta__arrow,
.cta:focus-visible .cta__arrow {
  transform: translateX(5px);
}

@media (max-width: 380px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    padding: 3px;
  }
}

@media (min-width: 500px) {
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    padding: 4px;
  }
}

@media (min-width: 800px) {
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    padding: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-wrap {
    overflow-y: auto;
  }

  .gallery-track {
    animation: none;
  }

  .card {
    animation: none;
  }

  .cta {
    transition: none;
  }
}
