@font-face { font-family: 'Geist'; font-weight: 400; font-style: normal; font-display: swap; src: url('/static/fonts/geist-400.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 500; font-style: normal; font-display: swap; src: url('/static/fonts/geist-500.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 600; font-style: normal; font-display: swap; src: url('/static/fonts/geist-600.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('/static/fonts/geist-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url('/static/fonts/geist-mono-500.woff2') format('woff2'); }

:root {
  --bg: #0b0b0c;
  --surface: #131315;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f4f5;
  --muted: #94949c;
  --faint: #64646b;
  --alert: #ff7262;
  --watch: #f0b64e;
  --clear: #5ecf92;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.7 var(--sans); min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
main { flex: 1; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
h1, h2 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
h1 { font-size: clamp(2.6rem, 6vw, 3.9rem); }
h2 { font-size: 1.4rem; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; border-radius: 6px; }
.wrap { width: min(920px, 100% - 24px); padding-inline: 14px; margin-inline: auto; }
.mono { font-family: var(--mono); }
.empty { color: var(--muted); padding: 32px 0; }

.demo-bar { text-align: center; font-size: 0.86rem; font-weight: 500; color: #14100a; background: var(--watch); padding: 10px 16px; }

/* Floating navigation */
.nav { position: sticky; top: 14px; z-index: 50; width: min(920px, calc(100% - 24px)); margin: 14px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 14px; border-radius: 16px; background: rgba(14, 14, 16, 0.66); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); box-shadow: inset 0 0 0 1px var(--line), 0 18px 50px rgba(0, 0, 0, 0.35); }
.brand { display: flex; align-items: center; gap: 16px; font-weight: 600; letter-spacing: 0.04em; font-size: 1.25rem; }
.brand .mark { display: block; width: auto; height: 34px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 7px 14px; border-radius: 10px; color: var(--muted); font-size: 0.9rem; font-weight: 500; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-links a.on { color: var(--text); }
.nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.nbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: 12px; font-size: 0.9rem; font-weight: 600; white-space: nowrap; transition: transform .2s, background .2s, color .2s, box-shadow .2s; }
.nbtn:hover { transform: translateY(-1px); }
.nbtn-ghost { color: var(--muted); }
.nbtn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nbtn-silver { padding: 0 24px; background: linear-gradient(180deg, #f6f7f9 0%, #c3c6cd 100%); color: #0b0c10; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 30px rgba(200, 205, 215, 0.14); }
.nbtn-silver:hover { box-shadow: inset 0 1px 0 #fff, 0 14px 40px rgba(200, 205, 215, 0.24); }

/* Home */
.home { flex: 1; padding-top: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 24px 15vh; }
.home h1 { font-size: clamp(3rem, 8vw, 5.2rem); }
.sub { color: var(--muted); font-size: 1.2rem; margin-top: 24px; }
.count { color: var(--faint); font-size: 0.9rem; margin-top: 40px; }

/* Search */
.search { display: flex; align-items: center; width: min(560px, 100%); margin: 56px auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px 8px 8px 28px; transition: border-color .15s; }
.search:focus-within { border-color: rgba(255, 255, 255, 0.3); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: 500 1.5rem var(--mono); letter-spacing: 0.02em; padding: 14px 0; text-transform: uppercase; }
.search input::placeholder { color: var(--faint); text-transform: none; font-family: var(--sans); font-weight: 400; font-size: 1.25rem; letter-spacing: 0; }
.search button { width: 56px; height: 56px; border: 0; border-radius: 12px; background: var(--text); color: var(--bg); display: grid; place-items: center; cursor: pointer; transition: opacity .15s; }
.search button:hover { opacity: 0.88; }
.arr { width: 20px; height: 20px; }
.page .search { margin: 48px 0 0; }

/* Pages */
.page { width: min(920px, 100% - 24px); padding: 24px 14px 140px; margin-inline: auto; }
.page > * { max-width: 720px; }
.page > .back { max-width: none; }
.back { display: inline-block; color: var(--muted); font-size: 0.95rem; margin-top: 40px; margin-bottom: 72px; transition: color .15s; }
.back::before { content: "←"; margin-right: 10px; }
.back:hover { color: var(--text); }
.page > h1:first-child { margin-top: 40px; }
.status-text { color: var(--muted); margin-top: 18px; max-width: 54ch; }

.code { font-family: var(--mono); font-weight: 500; letter-spacing: -0.02em; font-size: clamp(2.8rem, 9vw, 4.6rem); }
.aka { color: var(--muted); margin-top: 18px; }
.status { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; font-weight: 500; margin-top: 44px; }
.status i { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); }
.status-confirmed { color: var(--alert); } .status-confirmed i { background: var(--alert); }
.status-flagged { color: var(--watch); } .status-flagged i { background: var(--watch); }
.status-reported i { background: var(--watch); opacity: 0.6; }
.status-cleared { color: var(--clear); } .status-cleared i { background: var(--clear); }
.status-none { color: var(--text); }
.status + .status-text { margin-top: 12px; }

.facts { display: flex; gap: 72px; margin: 72px 0 96px; }
.facts dt { color: var(--faint); font-size: 0.9rem; margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; }

.page h2 { margin-bottom: 8px; }
.list { margin-top: 16px; }
.entry { padding: 40px 0; border-top: 1px solid var(--line); }
.entry:last-child { border-bottom: 1px solid var(--line); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 20px; color: var(--faint); font-size: 0.92rem; margin-bottom: 14px; }
.meta span { color: var(--muted); }
.meta .who { font-family: var(--mono); color: var(--text); transition: opacity .15s; }
.meta .who:hover { opacity: 0.7; }
.text { font-size: 1.12rem; line-height: 1.65; color: #e6e6e8; max-width: 60ch; }
.evidence { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 18px; font-size: 0.92rem; }
.evidence a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; transition: color .15s; }
.evidence a:hover { color: var(--text); text-decoration-color: var(--muted); }

.cta { margin-top: 120px; padding-top: 56px; border-top: 1px solid var(--line); }
.cta p:not(.actions) { color: var(--muted); margin-top: 14px; max-width: 50ch; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 32px; margin-top: 32px; }
.btn { display: inline-flex; background: var(--text); color: var(--bg); font-weight: 500; font-size: 1rem; padding: 14px 26px; border-radius: 12px; transition: opacity .15s; }
.btn:hover { opacity: 0.88; }
.link { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; }
.link:hover { color: var(--text); }

/* Player record */
.pl-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin: 0 0 40px; }
.pl-head .aka { margin-top: 16px; }
.stand { min-width: 280px; max-width: 360px; padding: 22px 24px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.stand .status { margin-top: 0; font-size: 1.1rem; }
.stand p:last-child { color: var(--muted); font-size: 0.92rem; margin-top: 10px; line-height: 1.55; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tiles div { padding: 22px 24px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.tiles span { display: block; color: var(--faint); font-size: 0.88rem; }
.tiles b { display: block; font-size: 1.6rem; font-weight: 500; letter-spacing: -0.02em; margin-top: 6px; }
.pl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; margin-top: 28px; align-items: start; }
.log { border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.log-head { display: flex; justify-content: space-between; align-items: baseline; padding: 26px 30px 22px; }
.log-head h2 { margin: 0; font-size: 1.2rem; }
.log-head span { color: var(--faint); font-size: 0.88rem; }
.case { padding: 28px 30px; border-top: 1px solid var(--line); }
.case-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.case-id { font: 400 0.82rem var(--mono); color: var(--faint); }
.case-top time { margin-left: auto; color: var(--faint); font-size: 0.88rem; }
.case-text { font-size: 1.08rem; line-height: 1.65; color: #e6e6e8; margin-top: 16px; max-width: 62ch; }
.case-ev { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.ev-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); color: var(--muted); font-size: 0.88rem; transition: background .15s, color .15s; }
.ev-btn:hover { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.ev-btn svg { width: 15px; height: 15px; }
.case-none { color: var(--faint); font-size: 0.88rem; margin-top: 16px; }
.pl-side { display: grid; gap: 14px; position: sticky; top: 96px; }
.panel { padding: 24px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.panel h3 { margin: 0 0 12px; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.panel p { color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.panel .link { display: inline-block; margin-top: 14px; font-size: 0.92rem; }
.wide-btn { margin-top: 20px; width: 100%; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.bars li { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 0.9rem; color: #d8d8db; }
.bars b { font-weight: 500; }
.bars svg { grid-column: 1 / -1; width: 100%; height: 4px; }
.bars .track { fill: rgba(255, 255, 255, 0.07); }
.bars .fill { fill: var(--text); }

/* Name results */
.people { margin-top: 56px; border-top: 1px solid var(--line); }
.person { display: grid; grid-template-columns: 1fr auto auto; gap: 32px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line); }
.person:hover .pn { text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 5px; }
.pc { font-family: var(--mono); color: var(--muted); }
.pr { color: var(--faint); font-size: 0.92rem; min-width: 80px; text-align: right; }

/* Reports feed */
.page.wide > * { max-width: none; }
.page.wide > .back { margin-top: 40px; }
.feed-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin: 40px 0 32px; }
.feed-head .status-text { margin-top: 14px; }
.seg { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.seg a { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-size: 0.88rem; font-weight: 500; white-space: nowrap; transition: color .15s, background .15s; }
.seg a:hover { color: var(--text); }
.seg a.on { background: rgba(255, 255, 255, 0.09); color: var(--text); }
.feed { border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.row { display: grid; grid-template-columns: 190px minmax(0, 1fr) 120px; gap: 32px; align-items: center; padding: 26px 30px; transition: background .15s; }
.row + .row { border-top: 1px solid var(--line); }
.row:hover { background: rgba(255, 255, 255, 0.035); }
.row-who b { display: block; font: 500 1.1rem var(--mono); letter-spacing: -0.01em; }
.row-who span { display: block; color: var(--faint); font-size: 0.9rem; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-body { min-width: 0; }
.row-body p { color: #d8d8db; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 10px; line-height: 1.55; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; font-size: 0.78rem; font-weight: 500; color: var(--muted); padding: 3px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong, rgba(255,255,255,.14)); }
.row-meta { text-align: right; display: grid; gap: 6px; justify-items: end; color: var(--faint); font-size: 0.88rem; }
.ev { display: inline-flex; align-items: center; gap: 6px; }
.ev svg { width: 14px; height: 14px; }
.feed .empty { padding: 56px 30px; text-align: center; }

/* Reports page */
.filters { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 56px 0 24px; }
.filters a { color: var(--faint); font-size: 0.95rem; transition: color .15s; }
.filters a:hover { color: var(--muted); }
.filters a.on { color: var(--text); }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; color: var(--faint); font-size: 0.95rem; }
.pager a { color: var(--text); }

/* About */
.about { padding-top: 56px; text-align: center; }
.about > * { max-width: none; }
.about-hero { max-width: 640px; margin: 0 auto 72px; }
.about-hero p { color: var(--muted); font-size: 1.2rem; margin: 24px auto 0; }
.steps3, .labels, .duo { display: grid; gap: 14px; text-align: center; }
.about .status { justify-content: center; }
.about .num { margin-inline: auto; }
.steps3 { grid-template-columns: repeat(3, 1fr); }
.labels { grid-template-columns: repeat(2, 1fr); }
.duo { grid-template-columns: repeat(2, 1fr); margin-top: 72px; }
.steps3 .panel { padding: 30px; }
.steps3 h3, .duo h3 { font-size: 1.15rem; margin: 0 0 10px; }
.num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: rgba(255, 255, 255, 0.07); font: 500 0.95rem var(--mono); margin-bottom: 28px; }
.about h2.center { margin: 96px 0 28px; font-size: 1.7rem; }
.labels .panel { padding: 26px 28px; }
.labels .status, .labels .panel .status { margin: 0 0 10px; font-size: 1.1rem; color: var(--text); }
.labels .panel p:last-child { margin: 0; }
.status-reported i { background: var(--watch); opacity: 0.6; }
.note { color: var(--faint); margin-top: 28px; font-size: 0.95rem; }
.duo .panel { padding: 30px; }
.about-cta { margin: 120px auto 0; max-width: 520px; }
.about-cta h2 { font-size: 2rem; }
.about-cta p { color: var(--muted); margin-top: 14px; }
.big-btn { min-height: 52px; padding: 0 30px; margin-top: 32px; font-size: 1rem; }
#appeals { scroll-margin-top: 100px; }

/* About (legacy prose, still used by 404) */
.prose h2 { margin: 80px 0 16px; }
.prose p { color: var(--muted); max-width: 60ch; }
.prose p + p { margin-top: 16px; }
.prose .status-text { font-size: 1.2rem; }
.prose h2:target { scroll-margin-top: 40px; }
.defs { margin: 24px 0 28px; border-top: 1px solid var(--line); }
.defs div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.defs dt { font-weight: 500; }
.defs dd { margin: 0; color: var(--muted); }

.foot { padding: 40px 0 48px; color: var(--faint); font-size: 0.85rem; text-align: center; }

@media (max-width: 860px) {
  .pl-grid { grid-template-columns: 1fr; }
  .pl-side { position: static; }
}
@media (max-width: 760px) {
  .steps3, .labels, .duo { grid-template-columns: 1fr; }
  .about-hero { margin-bottom: 48px; }
  .about h2.center { margin-top: 72px; }
  .tiles { grid-template-columns: 1fr; }
  .case, .log-head { padding-inline: 22px; }
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
}
@media (max-width: 760px) {
  .row { grid-template-columns: 1fr auto; gap: 14px 16px; padding: 22px; }
  .row-body { grid-column: 1 / -1; grid-row: 2; }
  .row-meta { grid-column: 2; grid-row: 1; }
}
@media (max-width: 640px) {
  .nbtn-ghost { display: none; }
  .back { margin-bottom: 48px; }
  .search { padding-left: 20px; }
  .search input { font-size: 1.25rem; }
  .facts { gap: 36px; flex-wrap: wrap; margin: 56px 0 72px; }
  .person { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .pr { grid-column: 1 / -1; text-align: left; }
  .defs div { grid-template-columns: 1fr; gap: 4px; }
  .cta { margin-top: 88px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
