:root {
  color-scheme: dark;
  --ink: #fff7fb;
  --muted: rgba(255, 247, 251, 0.74);
  --panel: rgba(32, 10, 27, 0.74);
  --line: rgba(255, 255, 255, 0.16);
  --rose: #ff7eaa;
  --gold: #ffd89a;
  --berry: #381026;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(255, 126, 170, 0.35), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(255, 216, 154, 0.22), transparent 32rem),
    linear-gradient(145deg, #160915, #351124 48%, #170915);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

.floaters {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.floaters span {
  position: absolute;
  left: calc(var(--x) * 1%);
  bottom: -7rem;
  font-size: calc(var(--s) * 0.018rem);
  opacity: 0.36;
  animation: floatUp calc(var(--d) * 1s) linear infinite;
  animation-delay: calc(var(--delay) * 1s);
  filter: drop-shadow(0 0 14px rgba(255, 126, 170, 0.62));
  transform: translate3d(0, 0, 0);
}

@keyframes floatUp {
  from {
    transform: translate3d(-1.5rem, 0, 0) rotate(-12deg) scale(0.82);
    opacity: 0;
  }
  12% {
    opacity: 0.44;
  }
  82% {
    opacity: 0.38;
  }
  to {
    transform: translate3d(1.8rem, -122vh, 0) rotate(42deg) scale(1.18);
    opacity: 0;
  }
}

.gate,
.admin-wrap,
.page-shell {
  position: relative;
  z-index: 1;
}

.gate,
.admin-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.gate-card,
.admin-card,
.message-panel,
.video-wrap,
.photo-grid figure {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(22px);
}

.gate-card,
.admin-card {
  width: min(100%, 34rem);
  border-radius: 1.5rem;
  padding: clamp(1.25rem, 5vw, 2.4rem);
}

.admin-card {
  width: min(100%, 48rem);
}

.admin-card.narrow {
  width: min(100%, 30rem);
}

.lock {
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  margin: 0 auto 1rem;
  background: rgba(255, 126, 170, 0.2);
  color: var(--rose);
  font-size: 2rem;
}

h1 {
  margin: 0 0 1.2rem;
  text-align: center;
  font-size: clamp(2rem, 8vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.gate-card h1,
.admin-card h1 {
  font-size: clamp(2rem, 8vw, 3rem);
}

form {
  display: grid;
  gap: 0.8rem;
}

.stack {
  margin-top: 1rem;
}

label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.22);
  outline: none;
}

textarea {
  resize: vertical;
}

button {
  min-height: 3rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  color: #2a0818;
  background: linear-gradient(135deg, var(--gold), var(--rose));
  font-weight: 800;
  cursor: pointer;
}

.error {
  color: #ffd0d0;
  text-align: center;
}

.saved {
  color: #d8ffdf;
  text-align: center;
}

.page-shell {
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: 3rem 1rem 5rem;
}

.hero {
  min-height: 54vh;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.message-panel {
  border-radius: 1.4rem;
  padding: clamp(1.2rem, 5vw, 2.6rem);
}

.message-text {
  min-height: 8rem;
  color: rgba(255, 247, 251, 0.94);
  font-size: clamp(1.15rem, 4.5vw, 2rem);
  line-height: 1.55;
  white-space: normal;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.photo-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 1.2rem;
  aspect-ratio: 4 / 5;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-section {
  margin-top: 1rem;
}

.video-wrap {
  border-radius: 1.2rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.youtube-fallback {
  width: fit-content;
  display: flex;
  margin: 0.85rem auto 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  font-weight: 800;
}

.upload {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 600px) {
  .page-shell {
    padding-top: 2rem;
  }

  .hero {
    min-height: 46vh;
  }
}
