/* Counterlure Overwatch: the live threat map. Dark by design; served on www.counterlure.com/live and map.buildsafe.space. */
:root {
  --bg: #04060B;
  --bg-2: #080C16;
  --panel: rgba(14, 20, 34, .72);
  --panel-solid: #0D1322;
  --line: rgba(120, 160, 220, .14);
  --line-2: rgba(120, 160, 220, .26);
  --ink: #EEF3FB;
  --ink-2: #A9B6CC;
  --ink-3: #6E7C95;
  --cyan: #5CE1E6;
  --cyan-dim: rgba(92, 225, 230, .18);
  --amber: #FFB020;
  --red: #FF4D5E;
  --violet: #9B8CFF;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 10px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(1200px 700px at 70% -10%, rgba(40, 80, 160, .22), transparent 60%),
                    radial-gradient(900px 600px at -10% 40%, rgba(92, 225, 230, .06), transparent 60%);
  background-attachment: fixed;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: .92em; }
code { color: var(--cyan); background: rgba(92, 225, 230, .08); padding: .05em .35em; border-radius: 4px; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.15; }
.muted { color: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.empty { color: var(--ink-3); font-style: italic; margin: 8px 0 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px;
  padding: 12px clamp(16px, 3vw, 32px); background: rgba(4, 6, 11, .72);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; fill: none; stroke: var(--cyan); stroke-width: 5; filter: drop-shadow(0 0 6px rgba(92, 225, 230, .6)); }
.brand svg .core { fill: var(--red); stroke: none; }
.brand-sub { color: var(--ink-3); font-weight: 500; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; padding-left: 10px; border-left: 1px solid var(--line-2); }
.status { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); margin-left: auto; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.status.live .dot { background: #3BE38B; box-shadow: 0 0 0 0 rgba(59, 227, 139, .7); animation: beat 2s infinite; }
.status.stale .dot { background: var(--amber); }
.infocon { padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(59, 227, 139, .38); color: #3BE38B; font-size: 11px; letter-spacing: .08em; }
.infocon.lv-yellow { border-color: rgba(255, 176, 32, .5); color: var(--amber); }
.infocon.lv-orange { border-color: rgba(255, 132, 32, .55); color: #FF9C4A; }
.infocon.lv-red { border-color: rgba(255, 77, 94, .6); color: var(--red); }
.links { display: flex; gap: 18px; font-size: 14px; }
.links a { color: var(--ink-2); }
.links a:hover { color: var(--ink); text-decoration: none; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(59, 227, 139, .6); } 70% { box-shadow: 0 0 0 9px rgba(59, 227, 139, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 227, 139, 0); } }

/* ---------- stage ---------- */
.stage { position: relative; height: min(86vh, 880px); min-height: 560px; overflow: hidden; border-bottom: 1px solid var(--line); }
#globe { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
#globe.dragging { cursor: grabbing; }
.stage-copy { position: absolute; left: clamp(16px, 3vw, 40px); top: clamp(20px, 5vh, 56px); max-width: 470px; pointer-events: none; }
.stage-copy > * { pointer-events: auto; }
.kicker { margin: 0 0 12px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--cyan); display: flex; align-items: center; gap: 8px; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
h1 { font-size: clamp(30px, 4.2vw, 52px); font-weight: 700; background: linear-gradient(180deg, #fff 30%, #9FB6DA); -webkit-background-clip: text; background-clip: text; color: transparent; text-wrap: balance; }
.lede { color: var(--ink-2); margin: 16px 0 18px; text-wrap: pretty; text-shadow: 0 1px 12px rgba(4, 6, 11, .9); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.k { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.k.probe { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.k.harvest { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.k.replay { background: var(--red); box-shadow: 0 0 8px var(--red); }
.k.osint { background: var(--violet); box-shadow: 0 0 8px var(--violet); }

.ticker {
  position: absolute; right: clamp(12px, 2vw, 28px); top: clamp(16px, 4vh, 40px); bottom: 70px; width: 360px;
  display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.ticker-head { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-2); }
#ticker { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
  -webkit-mask-image: linear-gradient(180deg, #000 85%, transparent); mask-image: linear-gradient(180deg, #000 85%, transparent); }
#ticker li { display: grid; grid-template-columns: 4px 1fr auto; gap: 0 10px; padding: 9px 14px 9px 10px; border-bottom: 1px solid rgba(120, 160, 220, .07); font-size: 12.5px; cursor: default; }
#ticker li.fresh { animation: slide .7s cubic-bezier(.2, .8, .2, 1); }
#ticker li.click { cursor: pointer; }
#ticker li.click:hover { background: rgba(92, 225, 230, .05); }
#ticker .bar-k { grid-row: span 2; border-radius: 2px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
#ticker .harvest .bar-k { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
#ticker .replay .bar-k { background: var(--red); box-shadow: 0 0 8px var(--red); }
#ticker .t1 { font-family: var(--mono); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ticker .t2 { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; grid-column: 2 / 4; }
#ticker .ago { font-family: var(--mono); color: var(--ink-3); font-size: 11px; }
#ticker .what { color: var(--cyan); }
#ticker .harvest .what { color: var(--amber); }
#ticker .replay .what { color: var(--red); }
#ticker-empty { padding: 14px; }
@keyframes slide { from { opacity: 0; transform: translateX(24px); background: rgba(92, 225, 230, .18); } to { opacity: 1; transform: none; background: transparent; } }

.globe-tools { position: absolute; left: clamp(16px, 3vw, 40px); bottom: 18px; display: flex; gap: 8px; }
.globe-tools button { background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; font-size: 12px; color: var(--ink-2); backdrop-filter: blur(8px); }
.globe-tools button:hover { color: var(--ink); border-color: var(--cyan); }
.tip { position: absolute; z-index: 5; pointer-events: none; max-width: 280px; padding: 9px 12px; font-size: 12.5px; background: rgba(8, 12, 22, .94); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 10px 30px -10px #000; }
.tip b { font-family: var(--mono); font-weight: 600; display: block; }
.tip span { color: var(--ink-3); display: block; }

/* ---------- counters ---------- */
.counters { display: grid; grid-template-columns: repeat(6, 1fr); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(14, 20, 34, .55), rgba(4, 6, 11, 0)); }
.counter { padding: 22px clamp(14px, 2vw, 28px); border-right: 1px solid var(--line); }
.counter:last-child { border-right: 0; }
.counter b { display: block; font: 700 clamp(26px, 3vw, 38px)/1.05 var(--mono); letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; text-shadow: 0 0 24px rgba(92, 225, 230, .35); }
.counter span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.counter.amber b { color: var(--amber); text-shadow: 0 0 24px rgba(255, 176, 32, .4); }
.counter.red b { color: var(--red); text-shadow: 0 0 24px rgba(255, 77, 94, .45); }

/* ---------- sections ---------- */
main > section:not(.stage):not(.counters) { max-width: 1280px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) clamp(16px, 3vw, 32px) 0; }
.sec-head { max-width: 720px; margin-bottom: 22px; }
.sec-head.row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.sec-head.row > div { max-width: 720px; }
h2 { font-size: clamp(24px, 2.6vw, 32px); }
.sec-head p { color: var(--ink-2); margin: 10px 0 0; text-wrap: pretty; }

.catch-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.catch { position: relative; padding: 16px 18px; border-radius: var(--r); background: var(--panel); border: 1px solid rgba(255, 77, 94, .28); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 77, 94, .04), 0 18px 40px -24px rgba(255, 77, 94, .45); }
.catch::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 120px at 100% 0, rgba(255, 77, 94, .12), transparent 70%); pointer-events: none; }
.catch .top { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--red); }
.catch .route { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin-top: 12px; }
.catch .end { min-width: 0; }
.catch .end small { display: block; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; }
.catch .end .ipl { display: block; font-family: var(--mono); font-size: 13.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catch .end .loc { display: block; font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catch .arrow { font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-align: center; }
.catch .arrow::before { content: ""; display: block; width: 46px; height: 2px; margin: 0 auto 4px; background: linear-gradient(90deg, var(--amber), var(--red)); box-shadow: 0 0 8px var(--red); }
.catch .end.harvest small { color: var(--amber); }
.catch .end.use small { color: var(--red); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; min-width: 0; }
.panel.wide { grid-column: span 4; }
.panel.half { grid-column: span 2; }
.panel header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.panel h3 { font-size: 14px; font-weight: 650; letter-spacing: 0; }
.panel header .muted { font-size: 12px; }
.sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.sw.amber { background: var(--amber); }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.bars.cols { grid-template-columns: repeat(3, 1fr); gap: 7px 20px; }
.bars li { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 5px 8px; font-size: 13px; border-radius: 5px; overflow: hidden; }
.bars li .fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(92, 225, 230, .22), rgba(92, 225, 230, .06)); border-right: 1px solid rgba(92, 225, 230, .55); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.bars li.hot .fill { background: linear-gradient(90deg, rgba(255, 77, 94, .28), rgba(255, 77, 94, .06)); border-right-color: rgba(255, 77, 94, .7); }
.bars li.osint .fill { background: linear-gradient(90deg, rgba(155, 140, 255, .28), rgba(155, 140, 255, .06)); border-right-color: rgba(155, 140, 255, .7); }
.bars li > span { position: relative; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars li .v { font-family: var(--mono); color: var(--ink-2); flex: none; }
.bars li .mono { color: var(--ink); }
.bars .none { color: var(--ink-3); font-style: italic; }
.spark { width: 100%; height: 140px; display: block; }
.spark .h { fill: url(#sparkfill); }
.spark .d { fill: var(--amber); }
.spark-axis { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 6px; }

/* ---------- offenders ---------- */
.search input { width: min(340px, 80vw); padding: 10px 14px; background: var(--panel-solid); border: 1px solid var(--line-2); border-radius: 8px; color: var(--ink); font: 14px var(--sans); }
.search input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-dim); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); max-height: 620px; overflow-y: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th { position: sticky; top: 0; background: #0B1120; text-align: left; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); padding: 11px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; z-index: 1; }
tbody td { padding: 9px 12px; border-bottom: 1px solid rgba(120, 160, 220, .07); white-space: nowrap; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
tbody tr:hover td { background: rgba(92, 225, 230, .04); }
.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); }
.ipbtn { background: none; border: 0; padding: 0; font-family: var(--mono); font-size: 13px; color: var(--cyan); }
.ipbtn:hover { text-decoration: underline; }
.masked { font-family: var(--mono); color: var(--ink-3); }
.chip { display: inline-block; padding: 1px 7px; margin-right: 4px; border-radius: 999px; font-size: 11px; border: 1px solid var(--line-2); color: var(--ink-2); }
.chip.hot { border-color: rgba(255, 77, 94, .5); color: #FF9AA4; }
.chip.intel { border-color: rgba(155, 140, 255, .55); color: #C7BEFF; background: rgba(155, 140, 255, .1); }
.dec.r { color: var(--red); font-weight: 700; }
.dec.h { color: var(--amber); font-weight: 700; }

/* ---------- how ---------- */
.steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.steps li { padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink-2); font-size: 14px; }
.steps b { display: block; color: var(--ink); margin-bottom: 6px; font-size: 15px; }
.fine { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; margin-top: 36px; padding-bottom: 20px; }
.fine h3 { font-size: 16px; margin-bottom: 10px; }
.fine ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; display: grid; gap: 6px; }
.fine p { color: var(--ink-2); font-size: 14px; margin: 0 0 10px; }

.foot { max-width: 1280px; margin: 48px auto 0; padding: 24px clamp(16px, 3vw, 32px) 40px; border-top: 1px solid var(--line); display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.foot a { color: var(--ink-2); }

/* ---------- drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 50; background: rgba(2, 3, 6, .6); backdrop-filter: blur(3px); display: flex; justify-content: flex-end; }
.drawer[hidden] { display: none; }
.drawer-card { width: min(520px, 100%); height: 100%; overflow-y: auto; background: #070B15; border-left: 1px solid var(--line-2); padding: 22px 24px 40px; box-shadow: -30px 0 60px -20px #000; animation: drawin .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes drawin { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-card > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.drawer-card h2 { font-size: 22px; word-break: break-all; }
.x { background: none; border: 1px solid var(--line-2); border-radius: 8px; width: 34px; height: 34px; font-size: 20px; line-height: 1; color: var(--ink-2); flex: none; }
.x:hover { color: var(--ink); border-color: var(--cyan); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 20px; }
.facts div { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-width: 0; }
.facts dt { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; }
.facts dd { margin: 3px 0 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin: 20px 0 10px; font-weight: 600; }
.evlist { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.evlist li { display: grid; grid-template-columns: 120px 1fr auto; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(120, 160, 220, .07); }
.evlist .ago { font-family: var(--mono); color: var(--ink-3); }
.evlist .p { font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer .actions { display: flex; gap: 8px; margin: 6px 0 0; }
.drawer .actions button { background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 12px; font-size: 13px; color: var(--ink-2); }
.drawer .actions button:hover { color: var(--ink); border-color: var(--cyan); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .counters { grid-template-columns: repeat(3, 1fr); }
  .counter:nth-child(3) { border-right: 0; }
  .counter:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .panel.wide { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .stage { height: auto; min-height: 0; display: flex; flex-direction: column; }
  #globe { position: relative; height: 62vh; min-height: 380px; order: 2; }
  .stage-copy { position: relative; left: auto; top: auto; max-width: none; padding: 24px 16px 0; order: 1; }
  .ticker { position: relative; right: auto; top: auto; bottom: auto; width: auto; height: 340px; margin: 0 16px 16px; order: 3; }
  .globe-tools { top: auto; bottom: auto; position: relative; left: auto; order: 4; padding: 0 16px 18px; }
  .links a:not(:last-child) { display: none; }
  .brand-sub { display: none; }
  .bars.cols { grid-template-columns: 1fr 1fr; }
  .fine { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .counters { grid-template-columns: repeat(2, 1fr); }
  .counter { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); }
  .counter:nth-child(2n) { border-right: 0 !important; }
  .grid { grid-template-columns: 1fr; }
  .panel.wide, .panel.half { grid-column: span 1; }
  .infocon { display: none; }
  .bars.cols { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .catch-list { grid-template-columns: 1fr; }
  .status #status-text { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
