/* Layout: slim app header; your team and the enemy team as card columns either side of the map column (event timers
   over the map). Dark only, like the live radar. TSUKI palette; the Systemspace touches are the faint scanlines, the
   logo's crawl and notched cards. */
:root {
  color-scheme: dark;
  --urn: #3fd3d0;         /* the soul urn's teal */
  --bg: #09090b;
  --bg-wash: #101018;
  --panel: #121216;
  --panel-2: #18181e;
  --line: #1f1f26;
  --line-2: #2a2a34;
  --ink: #e6e6ec;
  --ink-2: #a3a3ac;
  --ink-3: #6e6e79;
  --accent: #7374ff;
  --glow: 104, 105, 255;
  --mint: #8ccec4;       /* your team */
  --pink: #e876a8;       /* enemies */
  --soul: #6fd6a0;       /* souls */
  --amber: #ecb254;      /* estimates, warnings */
  --rank: #5758f0;       /* ability upgrade badges */
  --neutral: #8a8a96;
  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html, body { height: 100%; }
body {
  margin: 0;
  background: radial-gradient(70% 60% at 50% 55%, var(--bg-wash), var(--bg) 70%) fixed, var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
button, select { font-family: inherit; }

/* faint scanline weave over everything */
.texture { position: fixed; inset: 0; z-index: 50; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .016) 0 1px, transparent 1px 3px); }

.app {
  height: 100%;
  min-height: 640px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---- header ---- */
.top { display: flex; align-items: center; gap: 18px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.mark { position: relative; width: 26px; height: 26px; flex: none; }
.mark img { width: 100%; height: 100%; display: block; }
.mark::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(9, 9, 11, .36) 0 1px, transparent 1px 3px);
  -webkit-mask: url("logo.svg") center / contain no-repeat; mask: url("logo.svg") center / contain no-repeat;
  animation: crawl 1.5s steps(3) infinite;
}
@keyframes crawl { to { background-position: 0 3px; } }
.wm { font-weight: 700; font-size: 15px; letter-spacing: .14em; text-shadow: .6px 0 0 color-mix(in srgb, var(--mint) 55%, transparent), -.6px 0 0 color-mix(in srgb, var(--pink) 45%, transparent); }
.sub { color: var(--ink-3); font-size: 14px; font-weight: 500; padding-left: 10px; border-left: 1px solid var(--line-2); white-space: nowrap; }
.status { display: flex; align-items: center; gap: 8px; margin-left: auto; color: var(--ink-2); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.status b { color: var(--soul); font-weight: 600; }
.status .mode { color: var(--ink-3); padding-left: 8px; border-left: 1px solid var(--line-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--soul); box-shadow: 0 0 0 3px rgba(111, 214, 160, .14); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(111, 214, 160, .05); } }
.tools { display: flex; align-items: center; gap: 6px; }
.pick { display: flex; align-items: center; gap: 8px; margin-right: 4px; color: var(--ink-3); font-size: 13px; }
.pick select {
  height: 32px; padding: 0 30px 0 10px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a3a3ac' stroke-width='1.4'/%3E%3C/svg%3E") right 11px center no-repeat;
  color: var(--ink); font-size: 13px; appearance: none; cursor: pointer;
}
.ib { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink-2); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.ib svg { width: 16px; height: 16px; }
.ib:hover, .pick select:hover { border-color: rgba(var(--glow), .45); color: var(--ink); }
.ib[aria-pressed="true"], .ib[aria-expanded="true"] { border-color: rgba(var(--glow), .7); color: #c9caff; background: rgba(var(--glow), .1); }
.ib:focus-visible, .pick select:focus-visible, .card:focus-visible, .seg button:focus-visible, .tg input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- arena ---- */
.arena { min-height: 0; display: grid; grid-template-columns: 300px minmax(0, 1fr) 300px; align-items: center; gap: 22px; padding-block: 14px 18px; }
.arena.nopanels { grid-template-columns: minmax(0, 1fr); }
.arena.nopanels .team { display: none; }
.team { display: grid; gap: 10px; align-content: center; min-width: 0; }
.team-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 2px 2px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.team-h em { font-style: normal; color: var(--ink-3); letter-spacing: .08em; }
.team-a .team-h { color: var(--mint); }
.team-b .team-h { color: var(--pink); }
.team-h b { color: var(--ink-2); font-weight: 500; letter-spacing: .02em; text-transform: none; font-size: 12px; font-variant-numeric: tabular-nums; }
.team-h b i { font-style: normal; color: var(--soul); margin-left: 6px; }
.cards { display: grid; gap: 10px; }
.curved .team-a .card:nth-child(1), .curved .team-a .card:nth-child(6) { margin-left: 40px; }
.curved .team-a .card:nth-child(2), .curved .team-a .card:nth-child(5) { margin-left: 20px; }
.curved .team-a .card:nth-child(3), .curved .team-a .card:nth-child(4) { margin-right: 20px; }
.curved .team-b .card:nth-child(1), .curved .team-b .card:nth-child(6) { margin-right: 40px; }
.curved .team-b .card:nth-child(2), .curved .team-b .card:nth-child(5) { margin-right: 20px; }
.curved .team-b .card:nth-child(3), .curved .team-b .card:nth-child(4) { margin-left: 20px; }

/* ---- card: a 1px frame with a notched top-left corner ---- */
.card { --edge: var(--line-2); --tint: var(--mint); position: relative; padding: 1px; background: var(--edge); clip-path: polygon(9px 0, 100% 0, 100% 100%, 0 100%, 0 9px); cursor: pointer; outline: none; transition: background .15s; }
.team-b .card { --tint: var(--pink); }
.card.hot { --edge: #3b3b4a; }
.card.sel { --edge: var(--accent); }
.card-in { position: relative; isolation: isolate; background: var(--panel); clip-path: polygon(8.6px 0, 100% 0, 100% 100%, 0 100%, 0 8.6px); min-height: 92px; }
.card.sel .card-in { background: linear-gradient(90deg, rgba(var(--glow), .07), transparent 70%), var(--panel); }
.head { position: relative; height: 24px; display: flex; align-items: center; gap: 7px; padding: 0 10px 0 13px; background: var(--panel-2); }
.fill { position: absolute; inset: 0 auto 0 0; width: var(--hpw, 100%); background: color-mix(in srgb, var(--tint) 17%, transparent); transition: width .5s ease; }
.card.low .fill { background: color-mix(in srgb, #e05a5a 30%, transparent); }
.card.dormant .fill { background: rgba(255, 255, 255, .06); }
.nm, .lvl, .hpv, .urnb { position: relative; z-index: 2; white-space: nowrap; }
.nm { font-size: 13.5px; font-weight: 600; }
.lvl { font-size: 11px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.urnb { width: 17px; height: 17px; object-fit: contain; filter: drop-shadow(0 0 4px rgba(63, 211, 208, .85)); }
.urnhl .card.urnc:not(.sel) { --edge: rgba(63, 211, 208, .75); }
.hpv { margin-left: auto; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
.hpv small { font-size: 11px; font-weight: 500; color: var(--ink-3); }
.card.low .hpv { color: #f2a2a2; }
/* health colours (setting, on by default): the bar and the number follow the health, green -> orange -> red */
.hpcolor .card .fill { background: linear-gradient(90deg, hsl(var(--hh, 120) 72% 46% / .5), hsl(var(--hh, 120) 72% 50% / .26)); }
.hpcolor .card .hpv { color: hsl(var(--hh, 120) 85% 74%); }
.hpcolor .card.dead .hpv, .hpcolor .card.dormant .hpv { color: var(--ink-3); }
.card.dead .hpv, .card.dormant .hpv { color: var(--ink-3); font-weight: 500; }
.body { display: grid; gap: 7px; padding: 7px 92px 9px 10px; min-width: 0; }
.por { position: absolute; z-index: 1; right: 2px; bottom: 0; width: 84px; height: 84px; object-fit: contain; pointer-events: none; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); }
.stats { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; min-width: 0; }
.souls { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--soul); }
.souls svg { width: 10px; height: 14px; flex: none; }
.souls b { display: inline-block; min-width: 6ch; font-variant-numeric: tabular-nums; }   /* steady width as the number changes */
.kda { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.kda span { color: var(--ink-3); padding: 0 1px; }
.dst { margin-left: auto; font-size: 12px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.nodist .dst { display: none; }
.eye { position: relative; z-index: 2; width: 14px; height: 14px; flex: none; color: var(--ink-3); }
.eye svg { width: 100%; height: 100%; display: block; }
.eye.vis { color: var(--ink); }
.eye.spot { color: var(--ink-2); }
.abilities { display: flex; align-items: center; gap: 11px; min-height: 29px; }
.ab { position: relative; width: 29px; height: 29px; flex: none; }
.ab img { width: 100%; height: 100%; display: block; transition: opacity .3s; }
.ab.locked img, .ab.unk img { opacity: .2; }
.ab.cd img { opacity: .3; }
.ab .sweep { position: absolute; inset: -2px; border-radius: 50%; pointer-events: none; background: conic-gradient(rgba(var(--glow), .55) calc(var(--p, 0) * 1turn), transparent 0); -webkit-mask: radial-gradient(closest-side, transparent 78%, #000 80%); mask: radial-gradient(closest-side, transparent 78%, #000 80%); opacity: 0; }
.ab.cd .sweep { opacity: 1; }
.ab.soft .sweep { opacity: .45; }
.ab .lv { position: absolute; top: -6px; right: -7px; width: 15px; height: 15px; border-radius: 50%; background: var(--rank); box-shadow: 0 0 0 1.5px var(--panel); color: #eef; font-size: 7.5px; font-weight: 700; line-height: 15px; text-align: center; font-style: normal; }
.ab .ch { position: absolute; left: -5px; bottom: -5px; min-width: 13px; height: 13px; padding: 0 3px; border-radius: 7px; background: var(--panel-2); box-shadow: 0 0 0 1.5px var(--panel); color: var(--ink); font-size: 8.5px; font-weight: 700; line-height: 13px; text-align: center; font-style: normal; }
.ab .cdn { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; text-shadow: 0 1px 3px #000; }
.ab .cdn.long { font-size: 10px; letter-spacing: -.02em; }
.ab.soft .cdn { color: var(--amber); font-weight: 600; }
.ab:not(.cd) .cdn { display: none; }
.ultline { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ultline.ready { color: var(--mint); }
.card.dead .por { filter: grayscale(1) brightness(.55); }
.card.dead .stats, .card.dead .abilities { opacity: .45; }
.card.dormant .por { filter: grayscale(.6) brightness(.75); }

/* ---- map column: event timers over the map ---- */
.mapcol { height: 100%; min-height: 0; min-width: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 12px; }
.strip { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.clock { display: flex; align-items: baseline; gap: 8px; margin-right: 6px; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.clock b { display: inline-block; min-width: 5ch; text-align: center; font-weight: 700; }
.clock small { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 6px; border-radius: 13px; border: 1px solid var(--line-2); background: rgba(18, 18, 22, .8); font-size: 12px; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chip img { width: 16px; height: 16px; object-fit: contain; }
.chip b { display: inline-block; min-width: 4ch; text-align: right; color: var(--ink); font-weight: 600; }
.chip.est b { color: var(--ink-3); font-weight: 500; }
.chip.now { border-color: rgba(var(--glow), .55); background: rgba(var(--glow), .1); }
.chip.now b { color: #c9caff; }

.map-wrap { position: relative; container-type: size; height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; }

/* alert cards: under the timer strip, over the top of the map, 5 s each, like the overlay's warning cards */
.toasts { position: absolute; z-index: 8; top: 4px; left: 50%; transform: translateX(-50%); width: min(330px, 92%); display: grid; gap: 8px; pointer-events: none; }
.toast { padding: 1px; background: rgba(var(--glow), .55); clip-path: polygon(9px 0, 100% 0, 100% 100%, 0 100%, 0 9px); animation: tin .25s ease-out; transition: opacity .35s; }
.toast.out { opacity: 0; }
.toast-in { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 10px; background: rgba(18, 18, 24, .96); clip-path: polygon(8.6px 0, 100% 0, 100% 100%, 0 100%, 0 8.6px); }
.toast img { width: 26px; height: 26px; object-fit: contain; flex: none; }
.toast b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.toast span { display: block; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@keyframes tin { from { opacity: 0; transform: translateY(-6px); } }
.map { --mapw: min(100cqw, 100cqh * var(--ratio, 1)); position: relative; width: var(--mapw); aspect-ratio: var(--ratio, 1); overflow: hidden; }
.cam { position: absolute; inset: 0; transform-origin: 0 0; }
.plane { position: absolute; inset: 0; transition: transform .6s cubic-bezier(.3, .7, .2, 1); }
.flipped .plane { transform: rotate(180deg); }
.plane > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: var(--mo, 1); filter: drop-shadow(0 0 28px rgba(var(--glow), .12)); transition: opacity .3s; }
.lanesonly .plane > img { opacity: 0; }
.grid { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 6.25% 6.25%; }
.lanesonly .grid { opacity: .55; }
.plane > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lane { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.lane.n { stroke: var(--neutral); stroke-width: calc(2px * var(--lw, 1)); opacity: .22; }
.lane.glow { stroke-width: calc(9px * var(--lw, 1)); opacity: .1; }
.lane.core { stroke-width: calc(3px * var(--lw, 1)); }

/* map objects share one size unit and counter-scale when the camera zooms */
.pin { --u: calc(var(--mapw) * .045); position: absolute; width: 0; height: 0; }
.pin > .k { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) rotate(var(--unflip, 0deg)) scale(calc(1 / var(--z, 1))); }

.mk { --u: calc(var(--mapw) * .045 * var(--ms, 1)); position: absolute; left: 0; top: 0; width: var(--u); height: var(--u); margin: calc(var(--u) / -2) 0 0 calc(var(--u) / -2); cursor: pointer; z-index: 3; will-change: transform; }
.mk .face { position: absolute; inset: 0; border-radius: 50%; background: #15151c center / 86% no-repeat; box-shadow: 0 0 0 calc(var(--u) * .08) var(--ring), 0 2px 7px rgba(0, 0, 0, .6); transform: rotate(var(--unflip, 0deg)) scale(calc(1 / var(--z, 1))); transition: transform .15s, box-shadow .15s; }
.mk.a { --ring: var(--c-team, var(--mint)); }
.mk.b { --ring: var(--c-foe, var(--pink)); }
.mk.b .face { background-color: #3a1626; }
.mk.sel { --ring: var(--c-sel, var(--accent)); z-index: 5; }
.mk.sel .face { box-shadow: 0 0 0 calc(var(--u) * .09) var(--ring), 0 0 18px 3px rgba(var(--glow), .45); }
.mk.hot { z-index: 6; }
.mk.hot .face { transform: rotate(var(--unflip, 0deg)) scale(calc(1.2 / var(--z, 1))); }
.mk.dormant { opacity: .45; z-index: 2; }
.mk.dormant .face { box-shadow: 0 0 0 calc(var(--u) * .06) var(--ring); filter: grayscale(.6); }
.mk .urn { position: absolute; right: -30%; top: -30%; width: 62%; height: 62%; padding: 7%; border-radius: 50%; background: #0b1416; object-fit: contain; box-shadow: 0 0 0 1.5px var(--urn); transform: rotate(var(--unflip, 0deg)) scale(calc(1 / var(--z, 1))); }
/* the urn carrier: a teal halo round the marker and a glowing badge, hard to miss */
.urnhl .mk.urnc .urn { box-shadow: 0 0 0 1.5px var(--urn), 0 0 10px 3px rgba(63, 211, 208, .65); }
.urnhl .mk.urnc .face { box-shadow: 0 0 0 calc(var(--u) * .08) var(--ring), 0 0 0 calc(var(--u) * .17) rgba(63, 211, 208, .8), 0 0 18px 6px rgba(63, 211, 208, .4); }
.mk .cone { --cw: calc(var(--u) * 3.6 * var(--cs, 1)); position: absolute; left: 50%; top: 50%; width: var(--cw); height: var(--cw); margin: calc(var(--cw) / -2) 0 0 calc(var(--cw) / -2); border-radius: 50%; pointer-events: none; background: conic-gradient(from -28deg, color-mix(in srgb, var(--ring) 62%, transparent), color-mix(in srgb, var(--ring) 30%, transparent) 56deg, transparent 0); -webkit-mask: radial-gradient(closest-side, #000 38%, rgba(0, 0, 0, .45) 72%, transparent); mask: radial-gradient(closest-side, #000 38%, rgba(0, 0, 0, .45) 72%, transparent); transform: rotate(var(--yaw, 0deg)) scale(calc(1 / var(--z, 1))); display: none; }
.cones-sel .mk.sel .cone, .cones-all .mk .cone { display: block; }
.mk.dormant .cone { display: none !important; }
.mk .lbl { position: absolute; left: 50%; top: calc(100% + 4px); white-space: nowrap; transform: translateX(-50%) rotate(var(--unflip, 0deg)) scale(calc(1 / var(--z, 1))); transform-origin: 50% 0; font-size: 11px; font-weight: 600; color: var(--ink); text-shadow: 0 1px 3px #000, 0 0 6px #000; opacity: 0; pointer-events: none; transition: opacity .12s; }
.mk.haslbl .lbl, .mk.hot .lbl, .mk.sel .lbl, .mk.dormant .lbl { opacity: 1; }
.mk.dormant .lbl { color: var(--ink-2); font-weight: 500; }
/* visibility: in our sight = full; only on the team's minimap = a small eye badge; neither = dimmed */
.dimon .mk.dim .face { opacity: var(--dimop, .56); filter: grayscale(.45); }
/* health ring round the marker (setting): green, amber under half, red under a quarter */
.mk .hr { position: absolute; inset: calc(var(--u) * -.2); border-radius: 50%; pointer-events: none; display: none; background: conic-gradient(var(--hc, var(--soul)) calc(var(--hp, 1) * 1turn), rgba(255, 255, 255, .12) 0); -webkit-mask: radial-gradient(closest-side, transparent 82%, #000 85%); mask: radial-gradient(closest-side, transparent 82%, #000 85%); transform: rotate(var(--unflip, 0deg)) scale(calc(1 / var(--z, 1))); }
.hrings .mk .hr { display: block; }
/* "As the border": no separate ring; the marker's own border shows the health, in its team colour */
.hborder .mk .hr { display: block; inset: calc(var(--u) * -.08); background: conic-gradient(var(--hbc, var(--ring)) calc(var(--hp, 1) * 1turn), rgba(255, 255, 255, .16) 0); -webkit-mask: radial-gradient(closest-side, transparent 84%, #000 86%); mask: radial-gradient(closest-side, transparent 84%, #000 86%); }
.hborder .mk .face { box-shadow: 0 2px 7px rgba(0, 0, 0, .6); }
.hborder .mk.sel .face { box-shadow: 0 0 18px 3px rgba(var(--glow), .45); }
.hborder.urnhl .mk.urnc .face { box-shadow: 0 0 0 calc(var(--u) * .17) rgba(63, 211, 208, .8), 0 0 18px 6px rgba(63, 211, 208, .4); }
.dimon .mk.dim .hr { opacity: var(--dimop, .56); }
.hpcolor .mk { --hbc: var(--hc); }                                     /* the health border in health colours too */
/* effects that can be switched off */
.noscan .texture { display: none; }
.noglow .plane > img { filter: none; }
.noglow .lane.glow { display: none; }
.nogrid .grid { display: none; }
/* ---- moving the map (make_v9b): drag, wheel or pinch zoom, the corner buttons ---- */
.map { cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; }
.map.dragging, .map.dragging .mk { cursor: grabbing; }
.mapctl { position: absolute; z-index: 7; right: 10px; bottom: 10px; display: grid; gap: 6px; }
.mapctl .ib { background: rgba(18, 18, 22, .88); }
.recenter { position: absolute; z-index: 7; left: 50%; bottom: 12px; transform: translateX(-50%); height: 30px; padding: 0 14px; border-radius: 15px; border: 1px solid rgba(var(--glow), .55); background: rgba(18, 18, 24, .92); color: #d6d7ff; font-family: inherit; font-size: 12.5px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.recenter:hover { background: rgba(var(--glow), .16); }
.recenter:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* ---- the player you centre on: the old radar's arrow (the game's own marker) instead of the portrait, with a wider cone ---- */
.mk .selfarrow { position: absolute; left: 50%; top: 50%; width: calc(var(--u) * 1.6); height: calc(var(--u) * 1.6); margin: calc(var(--u) * -.8) 0 0 calc(var(--u) * -.8); display: none; pointer-events: none; transform: rotate(calc(var(--yaw, 90deg) - 90deg)) scale(calc(1 / var(--z, 1))); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .75)); }
.mk.me .selfarrow { display: block; }
.mk.me .face { opacity: 0; }
.mk.me .cone { display: block; --cw: calc(var(--u) * 5.4 * var(--cs, 1)); background: conic-gradient(from -38deg, color-mix(in srgb, var(--ring) 55%, transparent), color-mix(in srgb, var(--ring) 20%, transparent) 76deg, transparent 0); }
.cones-off .mk.me .cone { display: none; }
/* ---- feed state: stale data dims the map; outside a match a card says what the radar is waiting for ---- */
.map.stale .cam { opacity: .5; filter: grayscale(.5); transition: opacity .3s, filter .3s; }
.statecard { position: absolute; inset: 0; z-index: 8; display: grid; place-content: center; gap: 6px; padding: 24px; text-align: center; background: rgba(9, 9, 11, .76); }
.statecard b { font-size: 17px; font-weight: 600; color: var(--ink); }
.statecard span { font-size: 13px; color: var(--ink-3); }
.dot.warn { background: var(--amber); box-shadow: 0 0 0 3px rgba(236, 178, 84, .16); animation: none; }
.status b.warn { color: var(--amber); }
.nomid .plane > img, .nomid #lanes, .nomid .pin, .nomid .grid { display: none !important; }   /* off the main map: players only */
/* ---- the player's name on the card, linked to their Steam profile ---- */
.pn { position: relative; z-index: 2; min-width: 0; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--ink-3); text-decoration: none; }
a.pn[href]:hover { color: var(--ink); text-decoration: underline; }
a.pn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.nopn .pn { display: none; }
.mk.dormant .hr { opacity: .4; }
.mk .spotm { position: absolute; left: -20%; top: -20%; width: 44%; height: 44%; display: none; place-items: center; border-radius: 50%; background: #15151c; box-shadow: 0 0 0 1px var(--line-2); color: var(--ink-2); transform: rotate(var(--unflip, 0deg)) scale(calc(1 / var(--z, 1))); }
.mk .spotm svg { width: 72%; height: 72%; }
.mk.spot .spotm { display: grid; }

/* objectives: a team-coloured glyph with a small health bar; destroyed ones go hollow */
.ob { z-index: 1; }
.ob .k { display: grid; justify-items: center; gap: 2px; }
.ob i { display: block; width: calc(var(--u) * .34); height: calc(var(--u) * .34); background: var(--c); transform: rotate(45deg); box-shadow: 0 0 0 1.5px rgba(9, 9, 11, .9); }
.ob.walker i { width: calc(var(--u) * .44); height: calc(var(--u) * .44); }
.ob.base_guardian i { transform: none; }
.ob.base_sentry i { border-radius: 50%; transform: none; width: calc(var(--u) * .3); height: calc(var(--u) * .3); }
.ob.patron i { width: calc(var(--u) * .62); height: calc(var(--u) * .54); transform: none; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.ob img { width: calc(var(--u) * .62); height: calc(var(--u) * .62); object-fit: contain; filter: drop-shadow(0 1px 3px #000); }
.ob b { display: block; width: calc(var(--u) * .5); height: 2px; background: rgba(255, 255, 255, .14); }
.ob b::before { content: ""; display: block; height: 100%; width: var(--hp, 100%); background: var(--c); }
.ob.t2 { --c: var(--mint); }
.ob.t3 { --c: var(--pink); }
.ob.t0 { --c: var(--neutral); }
.ob.held img { filter: drop-shadow(0 0 2px var(--c)) drop-shadow(0 0 7px var(--c)); }   /* the urn carried out of sight: the holder's colour */
.ob.down i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c); opacity: .5; }
.ob.down b { display: none; }
.ob.rift .k { gap: 3px; }
.ob.rift .cap { display: grid; gap: 2px; }
.ob.rift .cap span { display: block; width: calc(var(--u) * .7); height: 2px; background: rgba(255, 255, 255, .12); }
.ob.rift .cap span::before { content: ""; display: block; height: 100%; width: var(--p, 0%); background: var(--c); }
.ob.rift .cap span:nth-child(1) { --c: var(--mint); }
.ob.rift .cap span:nth-child(2) { --c: var(--pink); }
.ob.rift.live img { filter: drop-shadow(0 0 8px rgba(var(--glow), .7)); }
/* camps and Sinner's vaults: the game's own icons, bare (cropped to the glyph at build time). Down = greyed with the
   respawn countdown; a vault in reach gets a health bar; its jackpot glows, and it pulses while someone hits it */
.camp { z-index: 1; }
.camp .k { display: grid; justify-items: center; gap: 2px; }
.camp img { display: block; width: calc(var(--u) * .5); height: calc(var(--u) * .5); object-fit: contain; filter: brightness(1.25) drop-shadow(0 0 1px #000) drop-shadow(0 1px 3px rgba(0, 0, 0, .8)); }
.camp.vault img { width: calc(var(--u) * .74); height: calc(var(--u) * .74); filter: drop-shadow(0 0 1px #000) drop-shadow(0 1px 3px rgba(0, 0, 0, .8)); }
.camp.down img { opacity: .38; filter: grayscale(1) drop-shadow(0 0 1px #000); }
.camp.live img { filter: drop-shadow(0 0 6px rgba(var(--glow), .9)) drop-shadow(0 1px 3px rgba(0, 0, 0, .8)); }
.camp.hit img { animation: hitp 1.1s ease-in-out infinite; }
@keyframes hitp { 50% { filter: drop-shadow(0 0 10px rgba(var(--glow), 1)) drop-shadow(0 1px 3px rgba(0, 0, 0, .8)); } }
.camp b { display: block; width: calc(var(--u) * .5); height: 2px; background: rgba(255, 255, 255, .14); }
.camp b::before { content: ""; display: block; height: 100%; width: var(--hp, 100%); background: #c9caff; }
.camp em { display: block; font-size: 9.5px; font-style: normal; font-weight: 600; color: var(--ink-3); text-align: center; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px #000; white-space: nowrap; }
.camp.down em { color: var(--amber); }
.camp.live em { color: #c9caff; }
.skull { z-index: 2; color: var(--pink); }
.skull .k { width: 16px; height: 18px; opacity: .75; }
.skull svg { width: 100%; height: 100%; display: block; }

/* ---- settings ---- */
.settings { position: fixed; z-index: 40; top: 60px; right: max(16px, env(safe-area-inset-right, 0px)); width: 340px; padding: 14px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(18, 18, 22, .97); box-shadow: 0 16px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(var(--glow), .06); display: grid; gap: 12px; max-height: calc(100% - 76px); overflow: auto; }
.settings h2 { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.settings hr { border: 0; border-top: 1px solid var(--line-2); margin: 2px 0; }
.srow { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; gap: 3px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line-2); }
.seg button { height: 28px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); font-size: 13px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--panel-2); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(var(--glow), .45); }
.tg { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.tg input, input.sw { appearance: none; width: 32px; height: 18px; border-radius: 9px; background: var(--line-2); position: relative; cursor: pointer; transition: background .15s; flex: none; margin: 0; }
.tg input::after, input.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink-2); transition: transform .15s, background .15s; }
.tg input:checked, input.sw:checked { background: rgba(var(--glow), .55); }
.tg input:checked::after, input.sw:checked::after { transform: translateX(14px); background: #fff; }
.tg small { display: block; font-size: 11.5px; color: var(--ink-3); }
.note { margin: 0; font-size: 12px; line-height: 1.45; color: var(--ink-3); }

#settings { width: min(720px, calc(100vw - 32px)); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.col { display: grid; gap: 12px; align-content: start; min-width: 0; }
@media (max-width: 780px) { .cols { grid-template-columns: 1fr; gap: 12px; } }
.sl { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.sl span { flex: none; width: 108px; }
.sl input { flex: 1; min-width: 0; accent-color: var(--accent); }
.sl output { width: 40px; text-align: right; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sl input:focus-visible, .colors input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.colors { display: flex; align-items: flex-end; gap: 14px; }
.colors label { display: grid; justify-items: center; gap: 4px; font-size: 11.5px; color: var(--ink-3); cursor: pointer; }
.colors input { width: 36px; height: 26px; padding: 0 2px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg); cursor: pointer; }
.colors .lnk { margin-left: auto; padding-bottom: 5px; }
.seg.three button { font-size: 12.5px; }
/* ---- per-item toggles: one pill per map object type and per timer ---- */
.grp { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.grp h3 { margin: 0; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.grp span { display: flex; gap: 10px; }
.lnk { border: 0; padding: 0; background: none; color: var(--ink-3); font-size: 12px; cursor: pointer; }
.lnk:hover { color: var(--ink); }
.pills { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pill { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 9px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink-3); font-size: 12.5px; line-height: 1.2; text-align: left; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.pill:hover { border-color: rgba(var(--glow), .35); }
.pill[aria-pressed="true"] { color: var(--ink); background: var(--panel-2); border-color: rgba(var(--glow), .5); }
.pill img, .pill svg, .pill .gl { width: 16px; height: 16px; flex: none; }
.pill img { object-fit: contain; opacity: .4; filter: grayscale(1); }
.pill svg { color: var(--ink-3); }
.pill[aria-pressed="true"] img { opacity: 1; filter: none; }
.pill[aria-pressed="true"] svg { color: var(--ink-2); }
.pill .gl { display: grid; place-items: center; }
.pill .gl::before { content: ""; width: 8px; height: 8px; background: var(--ink-3); transform: rotate(45deg); }
.pill .gl.walker::before { width: 10px; height: 10px; }
.pill .gl.base::before { width: 13px; height: 11px; transform: none; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.pill[aria-pressed="true"] .gl::before { background: var(--mint); }
.pill .gl.team::before, .pill .gl.foe::before { width: 9px; height: 9px; border-radius: 50%; transform: none; }
.pill[aria-pressed="true"] .gl.foe::before { background: var(--pink); }
.lnk:focus-visible, .pill:focus-visible, .arow select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.arow select { height: 26px; padding: 0 24px 0 8px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a3a3ac' stroke-width='1.4'/%3E%3C/svg%3E") right 8px center no-repeat; color: var(--ink); font-size: 12px; appearance: none; cursor: pointer; }

/* ---- alerts panel ---- */
.ib .slash { display: none; }
.ib.muted .slash { display: inline; }
.sndbtn { height: 34px; border-radius: 8px; border: 1px solid rgba(var(--glow), .55); background: rgba(var(--glow), .12); color: #d6d7ff; font-size: 13px; font-weight: 600; cursor: pointer; }
.sndbtn[aria-pressed="true"] { border-color: var(--line-2); background: var(--panel); color: var(--ink-2); font-weight: 500; }
.vol { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.vol input, .arow input[type="range"] { flex: 1; min-width: 0; accent-color: var(--accent); }
.vol output, .arow output { min-width: 30px; text-align: right; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.arows { display: grid; }
.arow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.arow .an { font-size: 13px; color: var(--ink); }
.arow .an small { display: block; font-size: 11.5px; color: var(--ink-3); }
.arow .lead { grid-column: 2 / 4; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
.arow.off .an, .arow.off .lead { opacity: .5; }
.play { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink-2); cursor: pointer; }
.play svg { width: 9px; height: 10px; }
.play:hover { border-color: rgba(var(--glow), .45); color: var(--ink); }
.sndbtn:focus-visible, .play:focus-visible, .arow input:focus-visible, .vol input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- narrow screens: timers, map, then each team as a list ---- */
@media (max-width: 1100px) {
  .arena { grid-template-columns: 270px minmax(0, 1fr) 270px; gap: 16px; }
  .body { padding-right: 80px; }
  .por { width: 74px; height: 74px; }
  .abilities { gap: 9px; }
}
@media (max-width: 980px) {
  .app { height: auto; min-height: 0; }
  .top { flex-wrap: wrap; gap: 10px 14px; }
  .status { order: 3; margin-left: 0; width: 100%; }
  .tools { margin-left: auto; }
  .pick span { display: none; }
  .arena { display: flex; flex-direction: column; align-items: stretch; }
  .mapcol { order: -1; height: auto; display: block; }
  .strip { margin-bottom: 10px; }
  .map-wrap { container-type: inline-size; height: auto; }
  .map { --mapw: 100cqw; }
  .curved .team .card { margin: 0 !important; }
  .settings { top: 108px; }
}
@media (max-width: 420px) {
  .sub { display: none; }
  .body { padding-right: 72px; }
  .por { width: 66px; height: 66px; }
  .abilities { gap: 8px; }
  .settings { left: max(16px, env(safe-area-inset-left, 0px)); width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .mark::after, .dot { animation: none; }
  .fill, .ab img, .plane, .mk .face, .card, .toast { transition: none; }
  .toast { animation: none; }
  .camp.hit img { animation: none; filter: drop-shadow(0 0 8px rgba(var(--glow), .9)) drop-shadow(0 1px 3px rgba(0, 0, 0, .8)); }
}