:root {
  --bg: #06060a;
  --panel: #0b0c13;
  --panel-2: #10111b;
  --line: #20233a;
  --line-2: #2f3352;
  --text: #d5d9e6;
  --dim: #7a8099;
  --yellow: #fcee0a;
  --cyan: #00f0ff;
  --red: #ff003c;
  --green: #00ff9f;
  --magenta: #ff2a9d;
  --display: 'Rajdhani', 'Arial Narrow', sans-serif;
  --mono: 'Share Tech Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --cut: 12px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 15px/1.5 var(--mono);
  background:
    radial-gradient(900px 500px at 8% -10%, rgba(0, 240, 255, .09), transparent 60%),
    radial-gradient(800px 600px at 105% 25%, rgba(255, 0, 60, .08), transparent 60%),
    linear-gradient(rgba(32, 35, 58, .35) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, rgba(32, 35, 58, .35) 1px, transparent 1px) 0 0 / 44px 100%,
    var(--bg);
  background-attachment: fixed;
}
/* CRT scanlines + vignette over everything */
.fx {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55) 100%);
  mix-blend-mode: multiply;
}
::selection { background: var(--yellow); color: #000; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--yellow); }
code { font-family: var(--mono); }
small { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

main, .top, .foot { max-width: 1320px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- top bar ---------- */
.top { display: flex; align-items: center; gap: 28px; padding-top: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); position: relative; }
.top::after { content: ''; position: absolute; left: 24px; bottom: -1px; width: 120px; height: 2px; background: var(--yellow); }
.logo {
  font: 700 24px/1 var(--display); letter-spacing: .06em; color: #000; background: var(--yellow);
  padding: 9px 22px 8px 14px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.logo:hover { color: #000; background: var(--cyan); }
.logo b { font-weight: 700; padding-left: 5px; opacity: .55; }
.mainnav { display: flex; gap: 4px; flex: 1; }
.mainnav a { white-space: nowrap; font: 600 15px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); padding: 10px 14px; position: relative; }
.mainnav a:hover { color: var(--text); }
.mainnav a.on { color: var(--yellow); }
.mainnav a.on::before { content: '▸'; position: absolute; left: 0; color: var(--red); }
.netstat { font-size: 11px; letter-spacing: .12em; color: var(--cyan); white-space: nowrap; }
.netstat span { color: var(--dim); }
.netstat i { display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 1.6s steps(2) infinite; }

/* ---------- glitch ---------- */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: .8; }
.glitch::before { color: var(--cyan); transform: translate(-2px, 0); clip-path: inset(0 0 62% 0); animation: glitch-a 4.2s infinite steps(1); mix-blend-mode: screen; }
.glitch::after { color: var(--red); transform: translate(2px, 0); clip-path: inset(58% 0 0 0); animation: glitch-b 3.7s infinite steps(1); mix-blend-mode: screen; }
.logo .glitch::before, .logo .glitch::after { display: none; }
.logo:hover .glitch::before, .logo:hover .glitch::after { display: block; mix-blend-mode: normal; }
@keyframes glitch-a { 0%, 91%, 100% { transform: translate(-2px, 0); clip-path: inset(0 0 62% 0); } 92% { transform: translate(-7px, -1px); clip-path: inset(12% 0 48% 0); } 94% { transform: translate(5px, 1px); clip-path: inset(40% 0 22% 0); } 96% { transform: translate(-3px, 0); clip-path: inset(70% 0 4% 0); } }
@keyframes glitch-b { 0%, 88%, 100% { transform: translate(2px, 0); clip-path: inset(58% 0 0 0); } 89% { transform: translate(8px, 1px); clip-path: inset(20% 0 55% 0); } 91% { transform: translate(-6px, -1px); clip-path: inset(66% 0 8% 0); } 93% { transform: translate(3px, 0); clip-path: inset(5% 0 80% 0); } }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: center; padding: 54px 0 34px; }
.kicker { margin: 0 0 14px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
h1 { margin: 0; font: 700 clamp(40px, 6.4vw, 84px)/.92 var(--display); letter-spacing: .01em; text-transform: uppercase; color: var(--yellow); text-shadow: 0 0 34px rgba(252, 238, 10, .22); }
.lede { max-width: 640px; margin: 20px 0 0; color: var(--dim); font-size: 15px; }
.tiles { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.tile {
  min-width: 150px; padding: 12px 18px 10px; background: var(--panel); border-left: 3px solid var(--cyan); color: var(--text);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.tile b { display: block; font: 700 32px/1 var(--display); color: #fff; letter-spacing: .02em; }
.tile span { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.tile.hot { border-color: var(--red); }
.tile.hot b { color: var(--red); text-shadow: 0 0 18px rgba(255, 0, 60, .5); }
a.tile:hover { background: var(--panel-2); color: var(--text); }

.radar { position: relative; width: 300px; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line-2); background: radial-gradient(circle, rgba(0, 240, 255, .07), transparent 70%); overflow: hidden; }
.radar i { position: absolute; inset: 16.6%; border: 1px dashed rgba(0, 240, 255, .25); border-radius: 50%; }
.radar i:nth-child(2) { inset: 33.3%; }
.radar i:nth-child(3) { inset: 0; border: 0; background: linear-gradient(rgba(0, 240, 255, .2), rgba(0, 240, 255, .2)) 50% 0 / 1px 100% no-repeat, linear-gradient(rgba(0, 240, 255, .2), rgba(0, 240, 255, .2)) 0 50% / 100% 1px no-repeat; border-radius: 0; }
.radar u { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 78%, rgba(0, 240, 255, .05) 82%, rgba(0, 240, 255, .55) 100%); animation: sweep 4s linear infinite; }
.radar s { position: absolute; left: var(--x); top: var(--y); width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 12px var(--yellow); animation: blip 4s var(--d, 0s) infinite; opacity: 0; }
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes blip { 0%, 60% { opacity: 0; transform: scale(.4); } 65% { opacity: 1; transform: scale(1.5); } 100% { opacity: 0; transform: scale(1); } }

/* ---------- ticker ---------- */
.ticker { display: block; overflow: hidden; margin: 6px 0 30px; border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(255, 0, 60, .12), transparent 30%), var(--panel); color: var(--text); white-space: nowrap; position: relative; }
.ticker::before { content: 'LIVE'; position: absolute; z-index: 2; left: 0; top: 0; bottom: 0; display: grid; place-items: center; padding: 0 22px 0 14px; font: 700 13px var(--display); letter-spacing: .2em; color: #000; background: var(--red); clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.ticker div { display: inline-flex; animation: marquee 70s linear infinite; }
.ticker:hover div { animation-play-state: paused; }
.ticker p { display: inline-flex; gap: 38px; margin: 0; padding: 9px 19px; font-size: 13px; }
.ticker em { font-style: normal; color: var(--dim); }
@keyframes marquee { to { transform: translateX(-50%); } }

.k-target_added, .k-program_added { --k: var(--green); }
.k-target_removed, .k-program_removed { --k: var(--red); }
.k-bounty_changed { --k: var(--yellow); }
.ticker span { color: var(--text); }
.ticker span b { color: var(--k); font-weight: 400; }

/* ---------- layout ---------- */
.deck { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; padding-bottom: 60px; }
.panel { position: relative; background: rgba(11, 12, 19, .86); border: 1px solid var(--line); padding: 18px; margin-bottom: 16px; }
/* HUD corner brackets */
.panel::before, .panel::after { content: ''; position: absolute; width: 14px; height: 14px; pointer-events: none; }
.panel::before { top: -1px; left: -1px; border-top: 2px solid var(--yellow); border-left: 2px solid var(--yellow); }
.panel::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }
h2 { margin: 0 0 14px; font: 700 15px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--text); }
.filters h2::before { content: '// '; color: var(--red); }
.muted { color: var(--dim); }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; margin-bottom: 5px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
input[type=search], select {
  width: 100%; height: 40px; padding: 0 12px; color: var(--text); background: #000; border: 1px solid var(--line-2); border-radius: 0;
  font: 14px var(--mono); caret-color: var(--yellow); appearance: none;
}
select { background: #000 linear-gradient(45deg, transparent 50%, var(--yellow) 50%) calc(100% - 14px) 17px / 7px 7px no-repeat; padding-right: 30px; }
input[type=search]:focus, select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), 0 0 22px rgba(0, 240, 255, .25); }
input::placeholder { color: #4a4f66; }

.switch { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--dim); cursor: pointer; text-transform: uppercase; letter-spacing: .08em; }
.switch input { position: absolute; opacity: 0; }
.switch i { width: 34px; height: 16px; border: 1px solid var(--line-2); background: #000; position: relative; flex: none; }
.switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 10px; background: var(--dim); transition: .15s; }
.switch input:checked + i { border-color: var(--yellow); }
.switch input:checked + i::after { left: 18px; background: var(--yellow); box-shadow: 0 0 10px var(--yellow); }
.switch input:focus-visible + i { outline: 2px solid var(--cyan); outline-offset: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-flex; gap: 7px; align-items: baseline; padding: 4px 9px; font-size: 12px; color: var(--text); border: 1px solid var(--line-2); background: #000; cursor: pointer; transition: .12s; }
.chip em { font-style: normal; font-size: 10px; color: var(--dim); }
.chip:hover span { border-color: var(--cyan); color: var(--cyan); }
.chip input:checked + span { background: var(--k, var(--yellow)); border-color: var(--k, var(--yellow)); color: #000; }
.chip input:checked + span em { color: rgba(0, 0, 0, .6); }
.chip input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.chip-x { font-size: 12px; padding: 4px 6px; color: var(--red); }

.actions { display: flex; gap: 10px; }
.js .filters[data-auto] .actions .btn[type=submit] { display: none; }
.btn {
  display: inline-block; padding: 11px 24px 10px 18px; font: 700 15px/1 var(--display); letter-spacing: .16em; text-transform: uppercase;
  color: #000; background: var(--yellow); border: 0; cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); transition: .12s;
}
.btn:hover { background: var(--cyan); color: #000; transform: translate(-1px, -1px); }
.btn.ghost { background: var(--line-2); color: var(--text); }
.btn.ghost:hover { background: var(--red); color: #fff; }
.btn.big { font-size: 20px; padding: 16px 34px 15px 26px; }

.filters.inline { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: end; margin-bottom: 22px; }
.filters.inline .field { margin: 0; }
.field.grow { flex: 1 1 260px; max-width: 420px; }

/* ---------- results ---------- */
.results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.results-head h2 { margin: 0; font-size: 17px; }
.results-head h2 span { color: var(--yellow); font-size: 24px; }
.json { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

.rows { display: grid; gap: 8px; }
.row {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) 150px 84px 100px; gap: 18px; align-items: center;
  padding: 13px 18px 13px 14px; color: var(--text); background: rgba(11, 12, 19, .86); border: 1px solid var(--line); border-left: 3px solid var(--line-2);
  transition: transform .12s, border-color .12s, background .12s; position: relative;
}
.row:hover { color: var(--text); background: var(--panel-2); border-color: var(--cyan); transform: translateX(4px); box-shadow: -6px 0 24px -8px rgba(0, 240, 255, .5); }
.row:hover h3 { color: var(--yellow); }
.plat { display: inline-grid; place-items: center; min-width: 46px; height: 30px; padding: 0 6px; font: 700 14px var(--display); letter-spacing: .08em; color: var(--c); border: 1px solid var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%); }
.row h3 { margin: 0 0 6px; font: 600 19px/1.15 var(--display); letter-spacing: .02em; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .12s; }
mark { margin-left: 10px; padding: 1px 7px 0; font: 700 11px var(--display); letter-spacing: .16em; vertical-align: 2px; color: #fff; background: var(--red); animation: blink 1.2s steps(2) infinite; }
mark.paused { background: var(--line-2); color: var(--dim); animation: none; }
mark.live { background: transparent; color: var(--green); border: 1px solid var(--green); animation: none; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tags span, .tags a { font-size: 11px; padding: 0 6px; color: var(--dim); border: 1px solid var(--line); }
.tags.big a { font-size: 12px; padding: 2px 9px; color: var(--cyan); border-color: var(--line-2); }
.tags.big a:hover { color: #000; background: var(--cyan); }
.bounty { font: 700 21px/1.1 var(--display); letter-spacing: .02em; color: var(--yellow); text-align: right; white-space: nowrap; }
.bounty.none { color: var(--dim); }
.bounty.flag { color: var(--green); font-size: 17px; }
.cell { font-size: 15px; text-align: right; color: var(--text); white-space: nowrap; }
.cell.date { color: var(--dim); font-size: 13px; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin-top: 26px; font-size: 13px; }
.pager a, .pager span { padding: 6px 11px; border: 1px solid var(--line); color: var(--dim); }
.pager a:hover { border-color: var(--cyan); color: var(--cyan); }
.pager .cur { background: var(--yellow); border-color: var(--yellow); color: #000; }
.pager .gap { border: 0; padding: 6px 2px; }
.pager .step { letter-spacing: .14em; }
.pager .off { opacity: .3; }

.empty { padding: 46px 20px; text-align: center; border: 1px dashed var(--line-2); color: var(--dim); }
.empty b { display: block; font: 700 30px var(--display); letter-spacing: .2em; color: var(--red); margin-bottom: 8px; }
.empty p { margin: 0 auto; max-width: 520px; }

/* ---------- page heads ---------- */
.pagehead { padding: 48px 0 30px; }
.pagehead h1 { font-size: clamp(36px, 5vw, 64px); }
.pagehead.flat { text-align: center; padding: 110px 0; }
.pagehead.flat .lede, .pagehead.flat .kicker { margin-left: auto; margin-right: auto; justify-content: center; }
.pagehead.flat .btn { margin-top: 28px; }
.pagehead.flat h1 { color: var(--red); text-shadow: 0 0 40px rgba(255, 0, 60, .4); }
.results.wide { padding-bottom: 60px; }

/* ---------- feed ---------- */
.feed { display: grid; gap: 4px; }
.ev { display: grid; grid-template-columns: 74px 150px minmax(0, 280px) minmax(0, 1fr); gap: 16px; align-items: center; padding: 8px 14px; font-size: 13px; background: rgba(11, 12, 19, .86); border-left: 2px solid var(--k, var(--line-2)); }
.panel .ev { grid-template-columns: 74px 150px minmax(0, 1fr); background: #000; }
.ev:hover { background: var(--panel-2); }
.ev time { color: var(--dim); font-size: 12px; }
.ev-kind { color: var(--k); text-transform: uppercase; font-size: 11px; letter-spacing: .1em; white-space: nowrap; }
.ev-prog { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ev-prog .plat { min-width: 38px; height: 22px; font-size: 11px; flex: none; }
.ev-prog a { font: 600 16px var(--display); color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-prog a:hover { color: var(--yellow); }
.ev-what { display: flex; gap: 10px; align-items: baseline; min-width: 0; color: var(--dim); }
.ev-what code { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-what i, .assets i, .oos-box i { font-style: normal; font-size: 11px; color: var(--dim); border: 1px solid var(--line); padding: 0 5px; white-space: nowrap; }
.ev-what i.oos { color: var(--red); border-color: var(--red); }

/* ---------- program page ---------- */
.crumbs { padding: 22px 0 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.crumbs span { color: var(--text); }
.prog-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; padding: 26px 0 26px; }
.prog-head h1 { font-size: clamp(34px, 5vw, 62px); color: #fff; text-shadow: 3px 0 0 rgba(255, 0, 60, .55), -3px 0 0 rgba(0, 240, 255, .55); margin-bottom: 16px; overflow-wrap: anywhere; }
.prog-cta { display: grid; gap: 14px; justify-items: end; }
.prog-cta .bounty { font-size: 40px; }
.prog-cta .bounty.flag { font-size: 24px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1px; margin: 0 0 22px; padding: 1px; }
.facts div { background: var(--panel); padding: 11px 15px; min-width: 0; outline: 1px solid var(--line); }
.facts dt { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.facts dd { margin: 3px 0 0; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.assets { width: 100%; border-collapse: collapse; font-size: 13px; }
.assets th { text-align: left; padding: 8px 12px; font-size: 10px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid var(--line-2); }
.assets td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--dim); }
.assets td:first-child { color: var(--text); overflow-wrap: anywhere; }
.assets tr:hover td { background: var(--panel-2); }
.assets tr:hover td:first-child { color: var(--cyan); }
.yes { color: var(--green); font-weight: 400; } .no { color: var(--dim); font-weight: 400; }
.sev-critical { color: var(--red) !important; } .sev-high { color: #ff8a1f !important; } .sev-medium { color: var(--yellow) !important; }
.scroll { overflow-x: auto; }

.oos-box summary { cursor: pointer; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.oos-box summary b { color: var(--red); font-size: 15px; }
.oos-box ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 5px; font-size: 13px; }
.oos-box li { overflow-wrap: anywhere; color: var(--dim); }
.oos-box li::before { content: '✕ '; color: var(--red); }
.more { color: var(--dim); font-size: 12px; }

.alerts { display: grid; gap: 26px; justify-items: start; margin-bottom: 60px; }
.alerts .empty { width: 100%; }
.cmds code { color: var(--yellow); white-space: nowrap; }
.api { margin-bottom: 60px; }
.api h2 { margin-top: 26px; color: var(--cyan); letter-spacing: .08em; font-family: var(--mono); font-weight: 400; text-transform: none; }
.api h2:first-child { margin-top: 0; }
.api code { color: var(--yellow); }
pre { margin: 10px 0 0; padding: 13px 15px; overflow-x: auto; background: #000; border: 1px solid var(--line); border-left: 2px solid var(--yellow); font-size: 13px; }
pre code { color: var(--green) !important; }

.foot { padding-top: 22px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 11px; letter-spacing: .08em; color: var(--text); display: grid; gap: 6px; }
.foot span { color: var(--dim); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .radar { display: none; }
  .deck { grid-template-columns: 1fr; }
  .filters .panel .chips { max-height: 104px; overflow-y: auto; }
  .netstat span { display: none; }
  .ev, .panel .ev { grid-template-columns: 70px 1fr; gap: 4px 12px; }
  .ev-prog, .ev-what { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  main, .top, .foot { padding-left: 16px; padding-right: 16px; }
  .top { flex-wrap: wrap; gap: 12px 16px; }
  .mainnav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .mainnav a { padding: 8px 12px; font-size: 14px; }
  .netstat { margin-left: auto; }
  .row { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 8px 12px; padding: 12px; }
  .row h3 { white-space: normal; font-size: 17px; }
  .row .cell { display: none; }
  .bounty { font-size: 17px; }
  .tile { min-width: calc(50% - 6px); flex: 1; }
  .prog-cta { justify-items: start; }
  .assets th:nth-child(n+3), .assets td:nth-child(n+3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ticker { overflow-x: auto; }
}
