/* Lesterfy — Leetify's own design tokens, one specific subject. */

:root {
  --bg: #17151b;
  --surface: #25222c;
  --surface-2: #2f2b38;
  --border: #3a3545;
  --text: #ced7e0;
  --text-dim: #8a8496;
  --heading: #f1f2f6;
  --primary: #f84982;
  --good: #3aa768;
  --bad: #f85249;
  --warn: #e5a95c;
  --font-body: "Poppins", system-ui, sans-serif;
  --font-display: "Antonio", "Poppins", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

[hidden] { display: none !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  cursor: crosshair;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- boot terminal ---------- */

.boot {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #0f0d12;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  transition: opacity 0.45s ease;
}

.boot.done { opacity: 0; pointer-events: none; }

.boot-stamp { font-size: clamp(38px, 8vw, 84px); }

.boot-lines {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 2;
  color: var(--primary);
  min-width: min(520px, 86vw);
  min-height: 10em; /* reserve all five lines so the stamp doesn't jump as they type */
}

.boot-line { white-space: pre-wrap; }

.boot-line .ok { color: var(--good); }

.boot-line.cursor::after {
  content: "█";
  animation: blink 0.7s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* ---------- stamp overlay ---------- */

.stamp-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(15, 13, 18, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.stamp {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 9vw, 96px);
  line-height: 1.02;
  color: var(--primary);
  border: 6px solid var(--primary);
  border-radius: 10px;
  padding: 18px 34px;
  transform: rotate(-7deg);
  animation: slam 0.28s cubic-bezier(0.2, 1.6, 0.4, 1);
}

@keyframes slam {
  from { transform: rotate(-7deg) scale(2.4); opacity: 0; }
  to { transform: rotate(-7deg) scale(1); opacity: 1; }
}

.stamp-sub { color: var(--heading); font-size: 13px; }

.stamp-hint { font-size: 12px; color: var(--text-dim); font-style: italic; }

/* ---------- top bar ---------- */

.topbar { border-bottom: 1px solid var(--border); background: rgba(23, 21, 27, 0.9); }

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.04em;
  color: var(--heading);
}

.wordmark::first-letter { color: var(--primary); }

.brand-tag { font-size: 12.5px; color: var(--text-dim); font-style: italic; }

.topbar-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.live-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse { 50% { opacity: 0.25; } }

.cta {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  cursor: crosshair;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.cta:hover { filter: brightness(1.12); transform: translateY(-1px); }

.cta:focus-visible { outline: 2px solid var(--heading); outline-offset: 2px; }

/* ---------- warning ticker ---------- */

.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: rgba(248, 73, 130, 0.07);
}

.ticker-track {
  display: flex;
  gap: 56px;
  width: max-content;
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--primary);
  white-space: nowrap;
  animation: ticker 28s linear infinite;
}

@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- error state ---------- */

.state-panel { text-align: center; padding: 120px 0 80px; }

.state-panel .mono-label { color: var(--heading); font-size: 13px; }

.state-sub { margin-top: 14px; color: var(--text-dim); font-size: 13.5px; }

/* ---------- cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* ---------- hero ---------- */

.hero { margin-top: 28px; padding: 20px 26px 26px; }

.hero-eyebrow { padding-bottom: 16px; border-bottom: 1px solid var(--border); }

.hero-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 22px;
  flex-wrap: wrap;
}

.hero-id { display: flex; align-items: center; gap: 20px; }

.avatar-wrap { position: relative; width: 96px; height: 96px; }

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  border: 2px solid var(--primary);
  background: var(--surface-2);
}

/* surveillance reticle over the subject */
.crosshair { position: absolute; inset: -14px; pointer-events: none; }

.crosshair::before,
.crosshair::after {
  content: "";
  position: absolute;
  background: var(--primary);
  opacity: 0.65;
}

.crosshair::before { left: 50%; top: 0; bottom: 0; width: 1px; }

.crosshair::after { top: 50%; left: 0; right: 0; height: 1px; }

.player-name {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--heading);
}

.player-sub { margin-top: 6px; font-size: 13px; color: var(--text-dim); }

.pill-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface-2);
}

.pill.pill-hot { color: var(--primary); border-color: var(--primary); background: transparent; }

/* ---------- threat ring ---------- */

.hero-rating { text-align: center; }

.ring-wrap { position: relative; width: 132px; height: 132px; margin: 0 auto 10px; }

.ring { width: 132px; height: 132px; transform: rotate(-90deg); }

.ring circle { fill: none; stroke-width: 8; }

.ring-track { stroke: var(--surface-2); }

.ring-fill {
  stroke: var(--primary);
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ring-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--primary);
}

.ring-sub { font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }

/* ---------- victims ---------- */

.victims { margin-top: 28px; padding: 22px 26px 18px; }

.victims-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--heading);
}

.section-sub { font-size: 12.5px; color: var(--text-dim); margin-top: 4px; }

.victims-counter { text-align: right; }

.counter-num {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

/* memorial wall */

.victim-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 6px 24px;
  padding-top: 18px;
}

.victim-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 4px;
}

.skull { color: var(--primary); font-size: 17px; line-height: 1; }

.v-name {
  color: var(--heading);
  font-size: 13.5px;
  font-weight: 500;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-when {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-top: 1px;
}

.v-sealed .v-name { font-style: italic; color: var(--text-dim); font-weight: 400; }

/* ---------- footer ---------- */

.site-foot { padding: 36px 20px 48px; text-align: center; }

.site-foot p { font-size: 12px; color: var(--text-dim); margin-top: 6px; }

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .hero-body { justify-content: center; text-align: center; }
  .hero-id { flex-direction: column; text-align: center; }
  .pill-row { justify-content: center; }
  .match-row { grid-template-columns: 1fr auto; }
  .victim-chips { grid-column: 1 / -1; justify-content: flex-start; }
  .victims-counter { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot, .ticker-track, .boot-line.cursor::after { animation: none; }
  .ring-fill { transition: none; }
  .stamp { animation: none; }
}
