:root {
  --bg: #120810;
  --bg-glow: #2a1428;
  --card: #1e1220;
  --card-edge: rgba(255, 255, 255, 0.08);
  --text: #f8f0f4;
  --muted: #b8a8b0;
  --accent: #c96b9a;
  --accent-hover: #db7fad;
  --accent-ink: #1a0d14;
  --ring: rgba(201, 107, 154, 0.45);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background: radial-gradient(ellipse at top, var(--bg-glow) 0%, var(--bg) 55%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Card ---------- */
.card {
  width: 100%;
  max-width: 26rem;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 1.4rem;
  padding: 2.25rem 1.6rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: rise 0.5s ease both;
}

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.loading { text-align: center; color: var(--muted); }

.avatar {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 2px solid var(--accent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.01em;
  margin-bottom: 0.25rem;
}

.tagline {
  text-align: center;
  color: var(--accent);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
}

.bio {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 auto 1.6rem;
  max-width: 22rem;
  line-height: 1.55;
}

/* ---------- Links ---------- */
.links { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }

.links a {
  display: block;
  text-align: center;
  padding: 0.95rem 1rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--card-edge);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  min-height: 50px;
}

.links a:hover { background: rgba(255, 255, 255, 0.09); border-color: var(--accent); transform: translateY(-1px); }
.links a:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }

.links a.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.links a.primary:hover { background: var(--accent-hover); }

footer { margin-top: 1.6rem; text-align: center; font-size: 0.72rem; color: var(--muted); }

.error { color: #f0a0a0; text-align: center; font-size: 0.9rem; line-height: 1.5; }

/* ---------- Age gate ---------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(8, 4, 8, 0.92);
  backdrop-filter: blur(8px);
}
.gate[hidden] { display: none; }

.gate-card {
  width: 100%;
  max-width: 23rem;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 1.2rem;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.gate-title { font-family: var(--font-display); font-size: 2rem; margin-bottom: 0.75rem; }
.gate-text { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.5rem; line-height: 1.55; }
.gate-actions { display: flex; flex-direction: column; gap: 0.6rem; }

.gate-btn {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 0.7rem;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--card-edge);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  transition: background 0.2s, border-color 0.2s;
  min-height: 48px;
}
.gate-btn:hover { background: rgba(255, 255, 255, 0.09); border-color: var(--accent); }
.gate-btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.gate-btn.primary:hover { background: var(--accent-hover); }
.gate-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
