/* Vouch Space on the web: same look as the app. Black, flyer colors bleeding in, white type,
   pink only on the one main action. */

:root {
  --bg: #000;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.38);
  --card: rgba(255, 255, 255, 0.07);
  --card-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.12);
  --brand: #ff4a6b;
  --radius: 22px;
  --display: "Archivo", -apple-system, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --spring: cubic-bezier(0.34, 1.36, 0.64, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.45 var(--body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

/* The night's flyer, blurred into a wash behind the top of the page. */
.bleed {
  position: fixed;
  inset: 0 0 auto 0;
  height: 75vh;
  background: radial-gradient(120% 80% at 30% 0%, #5b21b6 0%, #ec4899 35%, transparent 70%) center / cover;
  filter: blur(70px) saturate(1.5);
  opacity: 0.6;
  transform: scale(1.3);
  -webkit-mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, 0.6) 45%, transparent 100%);
  mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, 0.6) 45%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
}

.wordmark {
  display: inline-block;
  font: 800 15px/1 var(--display);
  font-stretch: 125%;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 8px 0 22px;
}

.display {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
}

.moment {
  font: 300 64px/1 var(--body);
  letter-spacing: -0.02em;
  margin: 0;
}

.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Glass-ish surfaces */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
}

/* Flyer card with the title on a dark fade */
.flyer {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #1b0b3a, #5b21b6 45%, #ec4899);
}
.flyer img { width: 100%; height: 100%; object-fit: cover; }
.flyer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 35%, rgba(0, 0, 0, 0.88) 72%, #000);
}
.flyer .caption { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; }
.flyer .caption h1 { font-size: 24px; }
.flyer .caption p { margin: 4px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.78); }

/* Avatars: photo, or initials on club light */
.avatar {
  flex: none;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: conic-gradient(from 200deg, #12061f, #ff4a6b, #7c3aed, #38bdf8, #12061f);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  font: 700 calc(var(--size) * 0.36) / 1 ui-rounded, var(--body);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Buttons: one loud pink action per screen, the rest glass */
.button {
  appearance: none;
  border: 0;
  width: 100%;
  min-height: 54px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 600 17px/1 var(--body);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: transform 0.35s var(--spring), opacity 0.2s, background-color 0.2s;
}
.button:active { transform: scale(0.96); transition-duration: 0.12s; }
.button.main {
  background: var(--brand);
  box-shadow: 0 10px 30px -10px rgba(255, 74, 107, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.button.glass { background: var(--card-strong); border: 1px solid var(--line); }
.button[disabled] { opacity: 0.45; cursor: default; transform: none; }
@media (hover: hover) {
  .button.main:hover:not([disabled]) { background: #ff5f7c; }
  .button.glass:hover { background: rgba(255, 255, 255, 0.16); }
}

/* "@ your Instagram" field. 17px so iPhone doesn't zoom in on focus. */
.field {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color 0.2s, background-color 0.2s;
}
.field:focus-within { border-color: rgba(255, 255, 255, 0.4); background: var(--card-strong); }
.field span { color: var(--muted); font-size: 17px; }
.field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 17px var(--body);
  padding: 15px 0;
}
.field input::placeholder { color: var(--faint); }

.note { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 0; }
.error { color: #ffb4a3; }

/* Entrances: soft rise and un-blur, like the app's blur-replace. */
.rise { animation: rise 0.6s var(--spring) both; }
.rise.d1 { animation-delay: 0.06s; }
.rise.d2 { animation-delay: 0.12s; }
.rise.d3 { animation-delay: 0.18s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
.swap-in { animation: swap 0.55s var(--spring) both; }
@keyframes swap {
  from { opacity: 0; transform: scale(0.92); filter: blur(10px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* Loading shimmer while the page asks the database */
.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.05) 30%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.05) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -150% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
}

.footer {
  margin-top: 40px;
  display: flex;
  gap: 18px;
  justify-content: center;
  font-size: 13px;
  color: var(--faint);
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--muted); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
