:root {
  --bg: #0a0a0b;
  --fg: #f5f5f7;
  --muted: #a1a1aa;
  --card: #17171a;
  --line: rgba(255, 255, 255, .08);
  --accent: #ff4d8d;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(255, 77, 141, .16), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--fg);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: max(36px, env(safe-area-inset-top)) 16px max(40px, env(safe-area-inset-bottom));
}
.profile { text-align: center; margin-bottom: 26px; }
.avatar {
  width: 96px; height: 96px; border-radius: 50%;
  object-fit: cover; display: block; margin: 0 auto 14px;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px rgba(255, 255, 255, .18), 0 10px 40px rgba(255, 77, 141, .25);
}
.avatar-empty {
  display: grid; place-items: center;
  background: linear-gradient(135deg, #2a2a30, #151518);
  font-weight: 700; font-size: 32px; letter-spacing: .02em; color: #d4d4d8;
}
h1 { font-size: 22px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.bio { color: var(--muted); margin: 6px auto 0; max-width: 34ch; font-size: 15px; white-space: pre-line; }
.cards { display: flex; flex-direction: column; gap: 14px; }
.card {
  position: relative; display: block; overflow: hidden;
  border-radius: 20px; text-decoration: none; color: var(--fg);
  background: var(--card); border: 1px solid var(--line);
  transition: transform .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.card:active { transform: scale(.98); }
@media (hover: hover) { .card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, .45); } }
.card-img { aspect-ratio: 4 / 3; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .82)); }
.card-img .card-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px; }
.card-plain { padding: 18px; text-align: center; }
.card-text { display: flex; flex-direction: column; gap: 2px; }
.card-title { font-weight: 650; font-size: 17px; }
.card-sub { color: #d4d4d8; font-size: 14px; }
.card-plain .card-sub { color: var(--muted); }
.badge {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .25);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.card-plain .badge { top: 50%; transform: translateY(-50%); }
.empty { text-align: center; color: var(--muted); }

/* Age gate */
.gate { text-align: center; padding-top: max(18vh, 60px); }
.gate-icon {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center; font-weight: 800; font-size: 20px;
  border: 2px solid var(--accent); color: var(--accent);
}
.gate p { color: var(--muted); max-width: 32ch; margin: 10px auto 28px; }
.gate form { margin: 0; }
.btn-primary {
  width: 100%; border: 0; border-radius: 16px; padding: 17px 20px;
  font: inherit; font-weight: 700; font-size: 17px; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #ff4d8d, #ff7a59);
  box-shadow: 0 10px 30px rgba(255, 77, 141, .35);
}
.btn-primary:active { transform: scale(.98); }
.btn-ghost { display: inline-block; margin-top: 18px; color: var(--muted); text-decoration: none; padding: 8px; }

.is-preview .card { cursor: default; }
.card-plain { position: relative; }
.card-plain .icon { position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: var(--fg); }
.card-plain .card-text { padding: 0 34px; }
