/* Base styles */
:root {
  --bg: #0e1013;
  --panel: #161a1f;
  --text: #eef2f7;
  --muted: #9bacbf;
  --accent: #6ee7ff;
  --accent-2: #b693ff;
  --chip: #243041;
  --good: #32d583;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% -10%, #1b2030 0%, #0e1013 55%), #0e1013;
}

/* Layout */
.site-wrap {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(1.2) blur(6px);
  background: rgba(14,16,19,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
}
.brand {
  font-weight: 700;
  letter-spacing: 0.3px;
}
.spacer { flex: 1; }
.nav a {
  color: var(--muted);
  text-decoration: none;
}
.nav a:hover { color: var(--accent); }

main {
  width: min(1100px, 94vw);
  margin: 28px auto 60px;
}

/* Tile map */
.tile-map {
  display: grid;
  grid-template-columns: repeat(12, minmax(36px, 1fr));
  gap: 10px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
}
.tile-state {
  aspect-ratio: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  background: linear-gradient(135deg, #1f2633, #141922);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}
.tile-state::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at -20% -10%, rgba(110,231,255,0.12), transparent 60%),
              radial-gradient(300px 200px at 120% 120%, rgba(182,147,255,0.12), transparent 60%);
}
.tile-state:hover {
  border-color: rgba(110,231,255,0.35);
  box-shadow: 0 0 0 3px rgba(110,231,255,0.15) inset, 0 8px 30px rgba(0,0,0,0.35);
  transform: translateY(-1px);
}

.legend {
  color: var(--muted);
  margin: 10px 4px 20px;
}

/* Page sections */
.section {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 18px;
  margin: 14px 0;
}
.section h2 { margin: 0 0 10px; font-size: 20px; }
.muted { color: var(--muted); }

/* Person card */
.person {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
}
.avatar {
  width: 110px;
  height: 110px;
  border-radius: 12px;
  background: conic-gradient(from 180deg at 50% 50%, #b693ff, #6ee7ff, #b693ff);
  display: grid;
  place-items: center;
  color: #0e1013;
  font-weight: 900;
  font-size: 38px;
  border: 2px solid rgba(255,255,255,0.1);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--chip);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
}

/* Reactions */
.reactions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.emoji {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #1b2330;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  user-select: none;
}
.emoji:hover { border-color: rgba(110,231,255,0.35); }
.emoji .count { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Content pages */
.prose p { color: var(--muted); line-height: 1.6; }
.prose h3 { margin: 18px 0 8px; }
.list { margin: 8px 0 0 18px; }
.list li { margin: 6px 0; }

/* Footer */
footer {
  margin-top: auto;
  padding: 22px 20px;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Responsive */
@media (max-width: 820px) {
  .person { grid-template-columns: 1fr; }
  .avatar { justify-self: start; }
}

