:root {
  --void:    #0B0C10;
  --glass:   rgba(255, 255, 255, 0.06);
  --glass-edge: rgba(255, 255, 255, 0.14);
  --ink:     #F5F3EE;
  --muted:   #9C97AE;
  --accent-a:#FF5A36;
  --accent-b:#FFC93C;
  --accent-c:#6C5CE7;
  --accent-d:#2FD9C4;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100vh;
  background: var(--void);
  color: var(--ink);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  overflow-x: hidden;
}

/* ---------- Image-backed scene (used on the directory page) ---------- */
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url('/assets/backgrounds/flower.jpg');
  background-size: cover;
  background-position: center;
}
.scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,0.55) 78%, rgba(0,0,0,0.85) 100%);
}

/* ---------- Aura background ---------- */
#aura {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
#aura span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  mix-blend-mode: screen;
}

/* ---------- Layout shells ---------- */
.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

/* ---------- Profile card ---------- */
.card {
  width: 100%;
  max-width: 360px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-radius: 22px;
  padding: 40px 28px 28px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  animation: rise 0.5s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  margin: 0 auto 20px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.25);
  display: block;
  background: transparent;
}
.avatar.initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  color: var(--void);
  letter-spacing: -1px;
}

.name {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.username {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 24px;
  word-break: break-word;
}

.links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: transform 0.15s ease, background 0.15s ease;
}
.links a:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }
.links a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.links svg { width: 18px; height: 18px; fill: currentColor; }

.card-empty {
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
}
.card-empty code { color: var(--ink); }

/* ---------- Directory (index) page ---------- */
.directory {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.directory h1,
.directory p.eyebrow,
.directory p.sub {
  /* headline copy is hidden on the flower layout — kept in the DOM
     in case you want to bring a title back later */
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 56px;
}

.grid a.profile-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 220px;
  padding: 28px 20px 24px;
  border-radius: 14px;
  background: rgba(18, 8, 26, 0.45);
  border: 1px solid rgba(200, 160, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.grid a.profile-tile:hover {
  transform: translateY(-4px);
  background: rgba(30, 12, 42, 0.6);
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.35);
}
.grid a.profile-tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.tile-avatar {
  width: 112px;
  height: 112px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.tile-avatar.initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 34px;
  color: var(--void);
}
.tile-name {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  color: #f1e8ff;
  text-shadow: 0 0 18px rgba(168, 85, 247, 0.55);
}
.tile-slug {
  display: none;
}

.empty-state {
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  padding: 40px 0;
}
