:root {
  --bg: #0c0f14;
  --surface: #141920;
  --surface-2: #1b2129;
  --surface-3: #232a34;
  --line: #2a323d;
  --line-strong: #3a4452;
  --text: #e8edf2;
  --muted: #8d98a7;
  --faint: #5d6877;
  --brand: #ffb547;
  --brand-ink: #1a1206;
  --smoke: #c7d2de;
  --flash: #ffe066;
  --molotov: #ff7a45;
  --he: #7fdc8f;
  --t: #e3b25f;
  --ct: #6fa8ff;
  --radius: 10px;
  --shadow: 0 8px 28px rgba(0, 0, 0, .35);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Barlow Condensed", "Inter", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
svg { width: 1em; height: 1em; }
[hidden] { display: none !important; }

/* --- top bar -------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px;
  height: 56px; padding: 0 20px;
  background: rgba(12, 15, 20, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font: 700 22px/1 var(--display); letter-spacing: .04em; text-transform: uppercase;
}
.brand-mark { width: 26px; height: 26px; }
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs .sep { color: var(--faint); }
.crumbs .here { color: var(--text); }
.status { margin-left: auto; color: var(--muted); font-size: 12.5px; white-space: nowrap; }

/* --- home ----------------------------------------------------------------- */
.home { max-width: 1280px; margin: 0 auto; padding: 36px 20px 60px; }
.home-head h1 {
  margin: 0 0 6px;
  font: 700 40px/1.05 var(--display); letter-spacing: .02em; text-transform: uppercase;
}
.lede { margin: 0 0 28px; max-width: 680px; color: var(--muted); font-size: 15px; }
.map-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.map-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 250px; padding: 18px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease;
}
.map-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.map-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.map-card .bg {
  position: absolute; inset: -10%;
  background-size: cover; background-position: center;
  filter: saturate(.6) brightness(.55);
  transform: rotate(-4deg) scale(1.05);
  transition: filter .2s ease, transform .3s ease;
}
.map-card:hover .bg { filter: saturate(.8) brightness(.7); transform: rotate(-4deg) scale(1.1); }
.map-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,15,20,0) 20%, rgba(12,15,20,.92) 85%);
}
.map-card > * { position: relative; z-index: 1; }
.map-card h2 {
  margin: 0;
  font: 700 34px/1 var(--display); letter-spacing: .03em; text-transform: uppercase;
}
.map-card .meta { margin: 6px 0 12px; color: var(--muted); font-size: 13px; }
.map-card .types { display: flex; flex-wrap: wrap; gap: 6px; }
.type-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px 3px 7px;
  border-radius: 99px; background: rgba(20, 25, 32, .85); border: 1px solid var(--line);
  font-size: 12px; font-weight: 600;
}
.type-pill svg { width: 14px; height: 14px; }
.no-radar-bg {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,181,71,.12), transparent 50%),
    repeating-linear-gradient(45deg, #151a21 0 12px, #121720 12px 24px);
}

.news { margin-top: 40px; }
.news-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.news-head h2 { margin: 0; font: 700 26px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.news-head .seg { width: auto; }
.news-head .seg button { padding: 5px 12px; }
.lede.small { font-size: 13.5px; margin: 6px 0 14px; }
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.news-list li a, .news-list li .row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  text-decoration: none;
}
.news-list li a:hover { border-color: var(--line-strong); background: var(--surface-2); }
.news-list .stars { color: var(--brand); font-size: 12px; min-width: 40px; letter-spacing: 1px; }
.news-list .teams { font-weight: 600; }
.news-list .ev { color: var(--muted); font-size: 12.5px; }
.news-list .go { color: var(--brand); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.news-list .have { color: var(--he); font-weight: 600; font-size: 12.5px; white-space: nowrap; }

/* --- map view layout ---------------------------------------------------- */
.mapview {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr) 420px;
  gap: 0;
  height: calc(100vh - 56px);
}
.filters, .panel { overflow-y: auto; background: var(--surface); }
.filters { border-right: 1px solid var(--line); padding: 16px 16px 40px; }
.panel { border-left: 1px solid var(--line); }
.stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; }

.filters-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.filters h2 { margin: 0; font: 700 20px/1 var(--display); text-transform: uppercase; letter-spacing: .05em; }
fieldset { border: 0; margin: 14px 0 0; padding: 0; }
legend { padding: 0; margin-bottom: 7px; color: var(--muted); font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; }
.link { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font-size: 13px; }
.link:hover { text-decoration: underline; }
.hint { margin: 7px 0 0; color: var(--faint); font-size: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface-2); color: var(--muted);
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.chip svg { width: 15px; height: 15px; }
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip[aria-pressed="true"] { color: var(--text); background: var(--surface-3); border-color: var(--c, var(--brand)); }
.chip[aria-pressed="true"] svg { color: var(--c, var(--brand)); }
.chip:focus-visible, .seg button:focus-visible, select:focus-visible, input:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 1px;
}

.seg { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }
.seg button {
  flex: 1; padding: 5px 4px; border: 0; border-radius: 6px;
  background: none; color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer;
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }

select, input[type="date"], .combo input {
  width: 100%; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface-2);
}
.combo { position: relative; }
.combo input { padding-right: 30px; }
.combo .clear {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border: 0; border-radius: 6px;
  background: none; color: var(--muted); font-size: 17px; cursor: pointer;
}
.combo .clear:hover { color: var(--text); background: var(--surface-3); }
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }

/* HLTV: who is best on this map, and where our teams are */
.hltv { margin-top: 8px; }
.hltv:empty { display: none; }
.hltv-sel { margin: 0 0 8px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.hltv-sel b { color: var(--text); font-weight: 600; }
.hltv-top { border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.hltv-row {
  display: grid; grid-template-columns: 24px 1fr 46px 46px; align-items: center; gap: 4px;
  padding: 4px 8px; font-size: 12.5px; color: var(--muted);
}
.hltv-row + .hltv-row { border-top: 1px solid var(--line); }
.hltv-row.head { color: var(--faint); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.hltv-row.head span:nth-child(n+3) { text-align: right; }
.hltv-cap { margin: 0 0 5px; color: var(--muted); font-size: 12px; font-weight: 600; }
.hltv-row .pos { color: var(--faint); font-variant-numeric: tabular-nums; }
.hltv-row .num { text-align: right; font-variant-numeric: tabular-nums; }
.hltv-row .hltv-nm { color: var(--faint); }
.hltv-row button {
  padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-weight: 500;
  cursor: pointer; text-align: left;
}
.hltv-row button:hover { color: var(--brand); text-decoration: underline; }
.hltv-row.ours .pos { color: var(--muted); }
.hltv-row.on { background: var(--surface-3); box-shadow: inset 2px 0 0 var(--brand); }
.hltv-row.on button { color: var(--brand); }
.hltv > .link { margin-top: 6px; font-size: 12.5px; }
.hltv .hint a { color: var(--muted); }
.hltv .hint .link { font-size: 12px; margin-left: 2px; }
body.shared .hltv-owner { display: none !important; }

/* /hltv-import: where the HLTV bookmark lands */
.import-page { max-width: 720px; margin: 0 auto; padding: 36px 20px 60px; }
.import-page h1 { margin: 0 0 12px; font: 700 30px/1.1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.import-page h2 { margin: 26px 0 8px; font: 700 18px/1.2 var(--display); text-transform: uppercase; letter-spacing: .05em; }
.import-page p { color: var(--muted); line-height: 1.5; }
.import-page .lede { margin: 0 0 8px; }
.import-world { margin: 0 0 4px; font-size: 13.5px; }
.import-msg { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--radius); font-weight: 500; }
.import-msg.ok { color: var(--text); background: color-mix(in srgb, var(--he) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--he) 45%, var(--line)); }
.import-msg.bad { color: var(--text); background: color-mix(in srgb, var(--molotov) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--molotov) 45%, var(--line)); }
.import-steps { margin: 0 0 18px; padding-left: 22px; color: var(--muted); display: grid; gap: 10px; line-height: 1.5; }
.import-steps .hint { display: block; }
.hltv-bm { display: inline-flex; margin-left: 6px; cursor: grab; vertical-align: middle; text-decoration: none;
  color: var(--brand); border-color: color-mix(in srgb, var(--brand) 60%, var(--line)); font-weight: 600; }
.import-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.import-list li { display: grid; grid-template-columns: minmax(80px, 1fr) auto auto; align-items: center; gap: 14px;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.import-list li > a:first-child { color: var(--text); font-weight: 600; text-decoration: none; }
.import-list li > span { color: var(--muted); font-size: 13px; }
.import-list li.next { border-color: var(--brand); }
.import-list .btn { padding: 6px 10px; font-size: 13px; text-decoration: none; }
@media (max-width: 560px) {
  .import-list li { grid-template-columns: 1fr auto; }
  .import-list li > span { grid-column: 1; grid-row: 2; }
  .import-list .btn { grid-column: 2; grid-row: 1 / span 2; }
}
@media (pointer: coarse) { .hltv-row { padding: 7px 8px; } }
.dates label { color: var(--muted); font-size: 12px; display: grid; gap: 4px; }

/* --- stage / radar ---------------------------------------------------------- */
.stage-bar {
  display: flex; align-items: center; gap: 14px;
  min-height: 48px; padding: 8px 16px;
  border-bottom: 1px solid var(--line);
}
.legend { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 12.5px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend svg { width: 14px; height: 14px; }
.count { margin-left: auto; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.radar-wrap {
  position: relative; flex: 1; min-height: 0;
  display: grid; place-items: center;
  padding: 14px;
  background: radial-gradient(ellipse at center, #131922 0%, var(--bg) 75%);
}
.radar { width: 100%; height: 100%; max-width: 100%; max-height: 100%; aspect-ratio: 1; }
.radar-empty {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 10px 16px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line);
  color: var(--muted);
}

.spot { cursor: pointer; }
.spot circle.ring { fill: rgba(12, 15, 20, .82); stroke-width: 3; transition: r .12s; }
.spot:hover circle.ring, .spot.active circle.ring { stroke-width: 4.5; }
.spot .badge rect { fill: var(--text); }
.spot .badge text { fill: var(--bg); font: 700 15px var(--font); }
.spot.dim { opacity: .28; }
.spot:focus-visible circle.ring { stroke: var(--brand) !important; }
.path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.path.hot { stroke-width: 5; opacity: 1; }
.origin circle { fill: var(--bg); stroke-width: 3; }
.origin.hot circle { stroke-width: 4.5; }
.origin { cursor: pointer; }
.flying { fill: var(--text); stroke: var(--bg); stroke-width: 2; }

/* --- panel ------------------------------------------------------------------ */
.panel-head { position: sticky; top: 0; z-index: 2; padding: 14px 16px 12px; background: var(--surface);
  border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font: 700 22px/1.1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.back svg { width: 16px; height: 16px; }
.list { list-style: none; margin: 0; padding: 8px; }
.card {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center;
  width: 100%; padding: 10px 10px;
  border: 1px solid transparent; border-radius: var(--radius);
  background: none; text-align: left; cursor: pointer;
}
.card:hover, .card.hot { background: var(--surface-2); border-color: var(--line); }
.card .ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--surface-3); }
.card .ico svg { width: 19px; height: 19px; }
.card .title { font-weight: 600; }
.card .sub { color: var(--muted); font-size: 12.5px; }
.card .n { font: 700 20px/1 var(--display); color: var(--text); text-align: right; }
.card .n small { display: block; color: var(--faint); font: 500 11px var(--font); }
.empty { padding: 28px 18px; color: var(--muted); }
.empty strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }

.detail { padding: 0 0 30px; }
.video {
  position: relative; aspect-ratio: 16 / 9; background: #07090c;
  border-bottom: 1px solid var(--line);
}
.video video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.video .none {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  padding: 20px; color: var(--muted); font-size: 13px;
  background:
    linear-gradient(135deg, rgba(255,181,71,.07), transparent 60%),
    repeating-linear-gradient(-45deg, #0d1117 0 10px, #0b0e13 10px 20px);
}
.video .none strong { display: block; color: var(--text); font-size: 14px; margin-bottom: 4px; }
.detail-body { padding: 14px 16px 0; }
.detail h3 { margin: 0; font: 700 26px/1.08 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.badge-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 6px;
  background: var(--surface-3); color: var(--text); font-size: 12px; font-weight: 600;
}
.badge-tag.side-T { color: var(--t); }
.badge-tag.side-CT { color: var(--ct); }
.badge-tag svg { width: 13px; height: 13px; }
.steps { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start;
  padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line);
}
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px;
  background: var(--brand); color: var(--brand-ink); font: 700 14px var(--display);
}
.steps b { display: block; font-size: 13px; }
.steps span { color: var(--muted); font-size: 12.5px; }
.cmd {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 16px; padding: 8px 8px 8px 12px;
  border-radius: var(--radius); background: #0a0d11; border: 1px solid var(--line);
}
.cmd code { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 12.5px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; color: #cfe3ff; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--surface-3); cursor: pointer; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.btn:hover { border-color: var(--brand); }
.btn svg { width: 15px; height: 15px; }
.btn.ghost { background: none; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 18px; }
.stat { padding: 10px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.stat b { display: block; font: 700 24px/1 var(--display); }
.stat span { color: var(--muted); font-size: 11.5px; }
.detail h4 { margin: 0 0 8px; color: var(--muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.instances { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.instances th { text-align: left; color: var(--faint); font-weight: 500; padding: 0 6px 6px 0; }
.instances td { padding: 7px 6px 7px 0; border-top: 1px solid var(--line); vertical-align: top; }
.instances td.muted { color: var(--muted); }
.instances tr.cur td { color: var(--brand); }
.instances .play { border: 0; background: none; color: var(--brand); cursor: pointer; padding: 0; }
.instances .play svg { width: 14px; height: 14px; vertical-align: -2px; }
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  padding: 9px 14px; border-radius: 8px; background: var(--text); color: var(--bg);
  font-weight: 600; box-shadow: var(--shadow); z-index: 50;
}

/* --- flash coverage --------------------------------------------------------- */
.btn.pick { margin-left: 2px; }
.btn.pick svg { color: var(--flash); }
.btn.pick[aria-pressed="true"] { background: var(--flash); color: #1b1603; border-color: var(--flash); }
.btn.pick[aria-pressed="true"] svg { color: #1b1603; }
.btn.pick.from svg { color: var(--smoke); }
.btn.pick.from[aria-pressed="true"] { background: var(--smoke); border-color: var(--smoke); color: #11161c; }
.btn.pick.from[aria-pressed="true"] svg { color: #11161c; }
.odot { stroke: var(--bg); stroke-width: 1.5; opacity: .9; }
.frommark circle { fill: rgba(199, 210, 222, .18); stroke: var(--smoke); stroke-width: 3; }
.frommark .reach { fill: rgba(199, 210, 222, .08); stroke: var(--smoke); stroke-width: 1.5; stroke-dasharray: 6 5; }
.typecount { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 12.5px; }
.typecount span { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.typecount svg { width: 14px; height: 14px; }
.radar.picking { cursor: crosshair; }
.radar.picking .spot { pointer-events: none; }
.pick-hint {
  position: absolute; left: 50%; top: 22px; transform: translateX(-50%);
  padding: 7px 12px; border-radius: 8px; background: var(--flash); color: #1b1603;
  font-weight: 700; font-size: 13px; box-shadow: var(--shadow); pointer-events: none;
}
.cov rect { stroke: rgba(12, 15, 20, .55); stroke-width: .8; }
.cov rect:hover { stroke: var(--text); stroke-width: 2; }
.real circle { fill: none; stroke-width: 3; }
.real text, .posmark text {
  font: 700 15px var(--font); fill: var(--text); paint-order: stroke; stroke: var(--bg); stroke-width: 4px;
}
.posmark circle { fill: rgba(255, 255, 255, .12); stroke: #fff; stroke-width: 3.5; }
.posmark path { stroke: #fff; stroke-width: 3; }
.posmark .pulse { fill: none; stroke: #fff; stroke-width: 2; transform-box: fill-box; transform-origin: center;
  animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .posmark .pulse { animation: none; opacity: 0; } }
.tip {
  position: absolute; z-index: 5; pointer-events: none; max-width: 260px;
  padding: 8px 10px; border-radius: 8px; background: rgba(12, 15, 20, .96); border: 1px solid var(--line-strong);
  font-size: 12.5px; line-height: 1.35; box-shadow: var(--shadow);
}
.tip b { font-size: 15px; }
.tip .muted { color: var(--muted); }
.scale { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; font-size: 11.5px; color: var(--muted); }
.scale span { display: inline-flex; align-items: center; gap: 5px; }
.scale i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.blindlist { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 4px; }
.blindlist li {
  display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: baseline;
  padding: 7px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line);
}
.blindlist b { font: 700 18px/1 var(--display); color: var(--flash); }
.blindlist small { grid-column: 1 / -1; color: var(--faint); font-size: 11.5px; margin-top: -2px; }
.blindlist .enemy b { color: #ff6b6b; }
.yourpos {
  margin: 0 0 14px; padding: 10px 12px; border-radius: var(--radius);
  background: rgba(255, 224, 102, .1); border: 1px solid rgba(255, 224, 102, .45);
}
.yourpos b { font: 700 24px/1 var(--display); color: var(--flash); margin-right: 6px; }
.levels { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.posmark .num { font: 800 15px var(--font); fill: #fff; stroke: none; }
.poschips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.poschip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 4px;
  border-radius: 8px; background: var(--surface-3); border: 1px solid var(--line-strong); font-size: 12.5px;
}
.poschip b, .pp b, .pn {
  display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; color: var(--bg); font: 800 11px var(--font);
}
.poschip button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 15px; padding: 0 4px; }
.poschip button:hover { color: var(--text); }
.perpos { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.pp { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; }
.pp.ok { color: var(--flash); }
.pp.no { color: var(--faint); }
.pp.no b { background: var(--faint); }
.grouphead { margin: 14px 16px 2px; }
.yp-head { font-weight: 700; margin-bottom: 8px; }
.yourpos .blindlist { margin: 0; }
.yourpos .blindlist li { background: rgba(12, 15, 20, .5); }
.yourpos .blindlist .pn { margin-right: 6px; color: var(--bg); font: 800 11px var(--font); vertical-align: 1px; }
.yourpos .miss { color: var(--faint); font: 600 13px var(--font); }
.card .n.secs { color: var(--flash); }
.card .real-s { color: #ff8f8f; }

.only-narrow { display: none; }

@media (max-width: 1180px) {
  .mapview { grid-template-columns: 250px minmax(0, 1fr); grid-template-rows: auto auto; height: auto; }
  .stage { min-height: 70vh; }
  .panel { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .filters { min-height: 70vh; }
}
@media (max-width: 760px) {
  .topbar { padding: 0 14px; gap: 12px; }
  .status { display: none; }
  .home { padding: 24px 16px 40px; }
  .home-head h1 { font-size: 32px; }
  .mapview { display: block; }
  .only-narrow { display: inline-flex; }
  .filters {
    position: fixed; inset: 56px 0 0 0; z-index: 30; min-height: 0;
    transform: translateX(-100%); transition: transform .2s ease; border-right: 0;
  }
  .filters.open { transform: none; }
  .stage { min-height: 0; }
  .radar-wrap { padding: 8px; }
  .radar { height: auto; }
  .legend { display: none; }
  .stats { grid-template-columns: repeat(3, 1fr); }
}

/* lineups with a recorded clip */
.card .vid { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; padding: 1px 7px 1px 5px;
  border-radius: 999px; background: color-mix(in srgb, var(--flash) 18%, transparent); color: var(--flash);
  font: 600 11px/1.5 var(--font); vertical-align: 2px; }
.card .vid svg { width: 11px; height: 11px; }
.spot .vidmark circle { fill: var(--flash); stroke: var(--bg); stroke-width: 2; }
.spot .vidmark use { color: var(--bg); }
#f-vid button svg { width: 12px; height: 12px; margin-right: 4px; vertical-align: -1px; }

/* a lineup opened from a round replay: that round's throw */
.mine-note { margin: 8px 0 0; padding: 6px 9px; border-radius: 8px; font-size: 12.5px; line-height: 1.45;
  background: rgba(255, 181, 71, .08); border: 1px solid rgba(255, 181, 71, .3); }
.instances tr.mine td:first-child::after { content: " · rundan"; color: var(--brand); font-size: 11px; font-weight: 600; }

/* --- phones: the header and the lineups page fit the screen ---------------------------------- */
@media (max-width: 760px) {
  .brand span { display: none; }                 /* the mark is enough on a phone */
  .topbar { gap: 10px; padding: 0 10px; }
  .stage-bar { flex-wrap: wrap; gap: 8px; padding: 8px 10px; }
  .count { flex-basis: 100%; margin-left: 0; }
  #panel { scroll-margin-top: 60px; }
  .map-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .map-card { min-height: 150px; padding: 12px; }
  .map-card h2 { font-size: 22px; }
  .map-card .meta { margin: 4px 0 8px; font-size: 11.5px; }
  .type-pill { padding: 2px 6px 2px 5px; font-size: 11px; }
}

/* --- flash a position: enemies with a view, teammates' areas -------------------------------------- */
.placing { display: grid; gap: 8px; margin-top: 12px; }
.placing .seg { width: auto; }
.placing .hint { margin: 0; }
.posrows { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.posrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px;
  padding: 6px 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }
.posrow .pname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.posrow .x { border: 0; background: none; color: var(--muted); font-size: 17px; cursor: pointer; padding: 0 2px; }
.posrow .x:hover { color: var(--text); }
.posrow.mate { grid-template-columns: auto minmax(0, 1fr) auto; }
.pn.mate { background: #5fd08a !important; color: #0b0e13 !important; }
.posrows-head { margin-top: 4px; color: var(--muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.vseg { width: auto; }
.vseg button { padding: 3px 7px; font-size: 11.5px; white-space: nowrap; }
.grouphead.ok { color: #5fd08a; }
.grouphead.warn { color: #ffb547; }
.matesafe, .matehit { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 600; }
.matesafe { color: #5fd08a; }
.matehit { color: #ffb547; }
.posmark { cursor: grab; }
.posmark .facing, .facing.live { stroke: #fff; stroke-width: 3.5; stroke-linecap: round; fill: none; }
.facing.live { stroke-dasharray: 6 5; pointer-events: none; }
.matemark .area { fill: rgba(95, 208, 138, .16); stroke: #5fd08a; stroke-width: 2.5; stroke-dasharray: 7 5; }
.matemark circle:not(.area) { fill: #0b0e13; stroke: #5fd08a; stroke-width: 3; }
.matemark .num { font: 800 12px var(--font); fill: #5fd08a; }
.matemark { pointer-events: none; }
