@font-face { font-family: 'Press Start 2P'; src: url('fonts/press-start-2p-latin-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Silkscreen'; src: url('fonts/silkscreen-latin-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'VT323'; src: url('fonts/vt323-latin-400-normal.woff2') format('woff2'); font-display: swap; }
:root {
  --bg: #05140d; --panel: #0a2116; --rule: #2f6a43; --ink: #e6f7d3; --dim: #9cc4a0;
  --lime: #a8e87c; --pup: #f6c744; --tail: #7cf0c4; --seen: #ff6a55; --route: #3e7a50;
  --mono: 'VT323', ui-monospace, Menlo, Consolas, monospace;
  --pix: 'Silkscreen', 'VT323', monospace; --big: 'Press Start 2P', 'Silkscreen', monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 19px/1.25 var(--mono); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
a { color: var(--ink); }
.dim { color: var(--dim); } .small { font-size: 17px; }
.top { border-bottom: 1px solid var(--rule); position: sticky; top: 0; background: var(--bg); z-index: 2; }
.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.brand { font-weight: 700; letter-spacing: .08em; }
nav { display: flex; gap: 14px; } nav a { color: var(--dim); text-decoration: none; } nav a:hover { color: var(--ink); }
.hero { padding: 28px 0 8px; }
h1 { font-size: 28px; margin: 0 0 8px; letter-spacing: .02em; }
.lede { max-width: 720px; color: var(--dim); margin: 0 0 16px; } .lede b { color: var(--ink); font-weight: 400; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.facts > div { background: var(--panel); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.facts .k { font-size: 11px; color: var(--dim); letter-spacing: .08em; } .facts .v { font-weight: 700; }
@media (max-width: 700px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } h1 { font-size: 22px; } }
.panel { background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; padding: 16px; margin: 16px 0; scroll-margin-top: 56px; }
.ph { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
h2 { font-size: 15px; letter-spacing: .1em; margin: 0; }
h3 { font-size: 12px; letter-spacing: .1em; color: var(--dim); font-weight: 400; margin: 14px 0 6px; }
.chip { font-size: 11px; letter-spacing: .08em; border: 1px solid var(--rule); border-radius: 3px; padding: 2px 6px; color: var(--dim); }
.chip.ok { color: var(--tail); border-color: var(--tail); } .chip.bad { color: var(--seen); border-color: var(--seen); }
.live-grid, .train-grid, .two { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; }
.train-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.two { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
@media (max-width: 820px) { .live-grid, .train-grid, .two { grid-template-columns: minmax(0, 1fr); } }
.map svg, .trace svg { display: block; width: 100%; height: auto; }
.route { fill: none; stroke: var(--route); stroke-width: 1.2; stroke-linejoin: round; }
.gate { fill: none; stroke: var(--pup); stroke-width: .5; stroke-dasharray: 1 1; }
.ring { fill: none; stroke: var(--dim); stroke-width: .3; stroke-dasharray: 1.2 1; }
.view { fill: var(--seen); fill-opacity: .16; stroke: var(--seen); stroke-width: .3; }
.pupdot { fill: var(--pup); stroke: var(--bg); stroke-width: .5; }
.trail { fill: none; stroke: var(--pup); stroke-opacity: .5; stroke-width: .6; }
.pl { stroke: var(--bg); stroke-width: .5; }
.pl.tail { fill: var(--tail); } .pl.seen { fill: var(--seen); }
.pl.near { fill: none; stroke: var(--dim); stroke-width: .4; }
.heatdot { fill: var(--seen); fill-opacity: .45; }
.lbl { fill: var(--ink); font: 3px var(--mono); paint-order: stroke; stroke: var(--bg); stroke-width: .8; }
.key i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 4px -1px 10px; }
.key i:first-child { margin-left: 0; }
.k-pup { background: var(--pup); } .k-tail { background: var(--tail); } .k-seen { background: var(--seen); }
.k-near { border: 1px solid var(--dim); } .k-ring { border: 1px dashed var(--dim); }
.k-view { background: rgba(229, 83, 75, .25); border: 1px solid var(--seen); border-radius: 10px 10px 0 0 !important; }
.table-wrap { overflow-x: auto; } .table-wrap.scroll { max-height: 340px; overflow-y: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 6px 6px; border-top: 1px solid var(--rule); white-space: nowrap; }
th { color: var(--dim); font-weight: 400; font-size: 11px; letter-spacing: .06em; border-top: 0; position: sticky; top: 0; background: var(--panel); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.pick { cursor: pointer; } tr.pick:hover td { background: #14382a; } tr.sel td { background: #1a4632; }
tr.pick:focus-visible { outline: 1px solid var(--tail); outline-offset: -1px; }
.bar { display: inline-block; width: 64px; height: 8px; background: var(--rule); border-radius: 2px; vertical-align: middle; overflow: hidden; margin-right: 6px; }
.bar i { display: block; height: 100%; background: var(--seen); }
.why-caught { color: var(--seen); } .why-lost, .why-feed { color: var(--dim); } .why-open { color: var(--tail); }
.trace .band { fill: var(--seen); fill-opacity: .1; }
.trace .lost { fill: var(--dim); fill-opacity: .08; }
.trace .ideal { stroke: var(--tail); stroke-dasharray: 3 3; stroke-width: 1; }
.trace .line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.trace .spot { fill: var(--seen); stroke: var(--panel); stroke-width: 2; }
.trace .axis { fill: var(--dim); font: 10px var(--mono); }
.trace .grid { stroke: var(--rule); stroke-width: 1; }
.race { border-top: 1px solid var(--rule); padding: 10px 0; }
.race:first-child { border-top: 0; }
.race .head { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.race .kind { font-size: 11px; letter-spacing: .08em; border: 1px solid var(--rule); border-radius: 3px; padding: 1px 5px; }
.race .kind.official { color: var(--pup); border-color: var(--pup); }
.rules ol { padding-left: 20px; margin: 10px 0 0; } .rules li { margin: 6px 0; color: var(--dim); } .rules b { color: var(--ink); font-weight: 400; }
footer { padding: 8px 0 32px; }
.empty { color: var(--dim); padding: 8px 6px; }

/* ---- follow your agent ---- */
a.plain { text-decoration: none; }
.who { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.who input { flex: 1; min-width: 200px; background: var(--bg); color: var(--ink); border: 1px solid var(--rule); border-radius: 4px; padding: 6px 8px; font: inherit; }
.who button { background: var(--panel); color: var(--ink); border: 1px solid var(--tail); border-radius: 4px; padding: 6px 14px; font: inherit; cursor: pointer; }
.who-name { color: var(--tail); }
.state { border: 1px solid var(--rule); border-radius: 6px; padding: 14px 16px; margin: 16px 0; background: var(--panel); }
.state-main { font-size: 22px; font-weight: 700; letter-spacing: .06em; }
.state-sub { color: var(--dim); margin-top: 2px; }
.state.ok { border-color: var(--tail); } .state.ok .state-main { color: var(--tail); }
.state.warn { border-color: var(--pup); } .state.warn .state-main { color: var(--pup); }
.state.seen, .state.caught { border-color: var(--seen); } .state.seen .state-main, .state.caught .state-main { color: var(--seen); }
.state.caught { background: #2f1612; }
.state.lost .state-main, .state.bad .state-main { color: var(--dim); }
.follow-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
@media (max-width: 820px) { .follow-grid { grid-template-columns: minmax(0, 1fr); } }
.follow-grid .panel { margin: 0; }
.route.thin { stroke-width: .4; }
.close-ring { fill: var(--seen); fill-opacity: .12; stroke: var(--seen); stroke-width: .25; }
.map .dog rect { shape-rendering: crispEdges; }
.k-close { background: rgba(229, 83, 75, .3); border: 1px solid var(--seen); }
.gauge svg { display: block; width: 100%; height: auto; max-width: 420px; }
.g-close { fill: var(--seen); fill-opacity: .55; } .g-band { fill: var(--tail); fill-opacity: .45; } .g-far { fill: var(--rule); }
.g-ideal { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 2; }
.g-axis { fill: var(--dim); font: 9px var(--mono); }
.g-mark { fill: var(--ink); stroke: var(--bg); stroke-width: 1; } .g-mark.ahead { fill: var(--pup); }
.meter { display: flex; align-items: center; gap: 10px; }
.meter-track { flex: 1; max-width: 260px; height: 12px; background: var(--rule); border-radius: 3px; overflow: hidden; }
.meter-track i { display: block; height: 100%; background: var(--seen); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stats > div { display: flex; flex-direction: column; } .stats .k { font-size: 11px; color: var(--dim); } .stats .v { font-weight: 700; }
.cta { margin: 0 0 14px; } .cta a { color: var(--tail); font-weight: 700; }
.map .dog rect { shape-rendering: crispEdges; }
.picker { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; align-items: flex-start; }
.picker button { background: var(--bg); color: var(--ink); border: 1px solid var(--rule); border-radius: 4px; padding: 5px 10px; font: inherit; font-size: 12px; cursor: pointer; text-align: left; }
.picker button:hover { border-color: var(--tail); }
/* the follow map's 'you' */
.you-ring { fill: none; stroke: var(--tail); stroke-width: .35; }
.you-dot { fill: var(--ink); }
.you-stem { stroke: var(--tail); stroke-width: .25; }
.you-tag { fill: var(--tail); }
.you-text { fill: #06231f; font-family: var(--mono); font-weight: 700; letter-spacing: .02em; }
.k-you { border: 2px solid var(--tail); background: var(--ink); background-clip: content-box; padding: 2px; box-sizing: border-box; }
.view-tiles rect { fill: var(--seen); fill-opacity: .28; }
.view.zone { fill: var(--seen); fill-opacity: .07; stroke: var(--seen); stroke-width: .3; }
.view-tiles rect { fill-opacity: .38; }
/* Central: streets and the dog's loop */
.streets { fill: #1f2933; }
.loop { fill: none; stroke: var(--pup); stroke-opacity: .35; stroke-width: .5; stroke-dasharray: 1 .8; stroke-linejoin: round; }
.k-street { background: #1f2933; border-radius: 1px !important; } .k-loop { border: 1px dashed var(--pup); }

/* ---- the arcade look ---- */
html { background: var(--bg); }
.wrap-wide { max-width: 1500px; margin: 0 auto; padding: 0 16px; }
main.wrap { max-width: 1240px; }
h2 { font: 400 19px var(--pix); letter-spacing: .02em; color: var(--ink); }
h2 .dim { font-size: 13px; }
h3 { font: 400 14px var(--pix); letter-spacing: .02em; }
th { font-size: 16px; }
.panel { border: 2px solid var(--rule); border-radius: 10px; box-shadow: inset 0 0 0 2px #06170f, 0 0 0 1px #0f3020; padding: 14px; }
.chip { font: 400 12px var(--pix); letter-spacing: 0; }
.center { text-align: center; }
.marquee { position: relative; overflow: hidden; border-bottom: 3px solid var(--rule); background: linear-gradient(#04100b, #0a2a1b); min-height: 216px; }
.marquee.compact { min-height: 122px; }
.sky { position: absolute; inset: 0; } .sky svg { width: 100%; height: 100%; display: block; shape-rendering: crispEdges; }
.s-star { fill: #d7f5c0; opacity: .7; } .s-back { fill: #143d29; } .s-front { fill: #245c3b; } .s-lit { fill: var(--pup); }
.marquee-top { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; font: 400 15px var(--pix); color: var(--lime); flex-wrap: wrap; }
.online { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.online i { width: 12px; height: 12px; border-radius: 50%; background: var(--dim); } .online i.ok { background: var(--lime); } .online i.bad { background: var(--seen); }
.logo { position: relative; text-align: center; padding: 6px 12px 16px; text-shadow: 3px 3px 0 #05140d; }
.logo h1 { font: 400 clamp(25px, 5vw, 62px)/1.1 var(--big); color: #d9f7b4; margin: 0; letter-spacing: 0; text-shadow: 4px 4px 0 #1f5a39; }
.logo a { text-decoration: none; }
.logo-sub { display: inline-block; margin-top: 8px; padding: 5px 20px; background: var(--lime); color: #05140d; font: 400 clamp(14px, 2vw, 24px) var(--big); border-radius: 6px; text-shadow: none; }
.logo-tag { font: 400 clamp(13px, 1.7vw, 21px) var(--pix); color: var(--lime); margin: 10px 0 0; }
.logo-line { margin: 2px 0 0; font-size: 20px; }
.compact .logo h1 { font-size: clamp(20px, 3vw, 34px); } .compact .logo-sub { font-size: 13px; margin-top: 4px; padding: 3px 12px; } .compact .logo { padding-top: 16px; }
.tabs { display: flex; gap: 0; justify-content: center; flex-wrap: wrap; padding: 8px 12px; border-bottom: 2px solid var(--rule); background: #071a11; position: sticky; top: 0; z-index: 3; }
.tabs a { font: 400 15px var(--pix); color: var(--ink); text-decoration: none; padding: 8px 16px; border-right: 1px solid var(--rule); }
.tabs a:last-child { border-right: 0; } .tabs a:hover { color: var(--lime); }
.tabs a.on { background: var(--lime); color: #05140d; border-radius: 6px; border-right: 0; }
.board { display: grid; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr) minmax(280px, 350px); gap: 14px; margin-top: 14px; align-items: start; }
.col .panel { margin: 0 0 14px; }
.go { display: flex; gap: 8px; }
.go input { flex: 1; min-width: 0; background: var(--bg); color: var(--ink); border: 2px solid var(--lime); border-radius: 6px; padding: 6px 10px; font: inherit; }
.go button { background: var(--lime); color: #05140d; border: 0; border-radius: 6px; padding: 0 16px; font: inherit; cursor: pointer; }
.next-time { font: 400 clamp(20px, 2vw, 27px) var(--big); color: var(--pup); text-align: center; margin: 14px 0 8px; }
.next-in { text-align: center; color: var(--dim); }
.glance { list-style: none; counter-reset: g; margin: 10px 0; padding: 0; }
.glance li { counter-increment: g; display: flex; gap: 10px; align-items: baseline; padding: 5px 0; border-top: 1px solid #16432c; }
.glance li:first-child { border-top: 0; }
.glance li::before { content: counter(g); font: 400 13px var(--pix); background: #1f5a39; color: var(--lime); padding: 1px 7px; border-radius: 3px; }
.more { display: block; text-align: center; color: var(--lime); text-decoration: none; font: 400 14px var(--pix); margin-top: 8px; }
.race-line { color: var(--lime); margin: 4px 0 8px; min-height: 1.25em; }
.map { border: 2px solid var(--rule); border-radius: 6px; overflow: hidden; }
.map-foot { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.zoom { flex: none; margin-top: 8px; background: var(--panel); color: var(--lime); border: 2px solid var(--rule); border-radius: 5px; padding: 4px 10px; font: 400 13px var(--pix); cursor: pointer; }
.c-roof { fill: #08201a; } .streets { fill: #3c7048; } .c-fleck { fill: #5b9863; } .c-facade { fill: #123c2a; } .c-lit { fill: var(--pup); }
.loop { stroke: #e8f5b0; stroke-opacity: .55; }
.whole .loop { stroke-width: .6; }
.view { fill-opacity: .24; stroke-width: .35; }
.close-ring { fill-opacity: .2; }
.ring { stroke: #e6f7d3; stroke-width: .35; }
.trail { stroke: #fff4b0; stroke-opacity: .9; stroke-dasharray: .9 .9; }
.pl { stroke: #05140d; stroke-width: .3; } .whole .pl { stroke-width: .5; } .pl.near { fill: #d5e2d6; stroke: #05140d; stroke-width: .25; }
.lbl.other { fill: #d5e2d6; opacity: .85; }
.lbl { fill: #fff; font: 3.8px var(--mono); stroke: #05140d; stroke-width: .9; }
.near .lbl { font-size: 2.2px; stroke-width: .5; }
.heatdot { fill-opacity: .7; }
.pod { display: flex; align-items: center; gap: 10px; border: 2px solid var(--rule); border-radius: 6px; padding: 7px 10px; margin: 6px 0; }
.pod.p1 { border-color: var(--pup); } .pod-n { font: 400 13px var(--pix); background: var(--lime); color: #05140d; padding: 2px 8px; border-radius: 3px; } .pod.p1 .pod-n { background: var(--pup); }
.pod-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 21px; } .pod-res { font: 400 11px var(--pix); color: var(--dim); white-space: nowrap; }
td.name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.trace .axis, .g-axis { font-size: 13px; }
.state-main { font: 400 clamp(20px, 2.4vw, 28px) var(--pix); letter-spacing: 0; }
.state { border-width: 2px; border-radius: 10px; }
.stats .k, .facts .k { font-size: 15px; }
.you-text { font-family: var(--pix); font-weight: 400; }
.who input { font: inherit; }
.key i { margin-left: 8px; }
.bar i, .meter-track i { background: var(--seen); }
@media (max-width: 1120px) { .board { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .col-mid { grid-column: 1 / -1; order: -1; } }
@media (max-width: 720px) { .board { grid-template-columns: minmax(0, 1fr); } .marquee { min-height: 190px; } .tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; } .tabs a { white-space: nowrap; } .map-foot { flex-direction: column; } }

/* one header everywhere; the scrollbar's width doesn't shift the page between tabs */
html { scrollbar-gutter: stable; }

/* room between a panel's title row and what's under it */
.ph { margin-bottom: 12px; }
.ph + .race-line { margin-top: -4px; }

/* ---- the header: the operator's art, with the feed status over it ---- */
.marquee, .marquee.compact { min-height: 0; background: #06201a; }
.marquee .marquee-top { position: absolute; top: 0; left: 0; right: 0; z-index: 1; }
.art { position: relative; container-type: inline-size; width: 100%; max-width: 1400px; margin: 0 auto; }
.art > img { display: block; width: 100%; height: auto; }
@media (min-width: 1400px) { .art > img { -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); } }
.art-text { position: absolute; inset: 0 0 7% 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.art-text h1 { margin: 0; font: 400 4.6cqw/1.1 var(--big); color: #e2f8b8; text-shadow: .35cqw .35cqw 0 #1f5a39; letter-spacing: 0; }
.art-sub { display: flex; align-items: center; gap: 1.3cqw; margin-top: 1cqw; }
.art-sub img { height: 3.1cqw; width: auto; display: block; }
.art-sub span { font: 400 2.6cqw var(--big); color: #06201a; background: #93e35a; padding: .55cqw 2.4cqw; border-radius: 1.1cqw; }
.art-tag { margin: 1.1cqw 0 0; font: 400 2.05cqw var(--pix); color: var(--lime); }
.art-line { margin: .2cqw 0 0; font: 400 1.75cqw var(--mono); color: var(--ink); }
@media (max-width: 720px) { .marquee .marquee-top { position: static; padding: 6px 12px; font-size: 12px; } }


/* ---- modules: one frame; icon, title and a rule at the top ---- */
:root { --panel: #06242a; --frame: #8fdc7e; }
.panel, .state { background: var(--panel); border: 2px solid var(--frame); border-top-width: 4px; border-radius: 6px; box-shadow: inset 0 0 0 1px #0e3a34; }
.state.ok, .state.warn, .state.seen, .state.caught { border-top-width: 4px; }
.mh { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; padding: 0 0 9px 44px; min-height: 37px; border-bottom: 2px solid #4f9a5e; background-repeat: no-repeat; background-position: 2px calc(50% - 4px); background-size: auto 26px; white-space: nowrap; }
.mh, .mh h2 { font: 400 21px var(--pix); color: var(--lime); letter-spacing: .01em; }
.mh h2 { margin: 0; }
.mh .chip { flex: none; white-space: nowrap; }
.col-left h2.mh, .col-right h2.mh { font-size: 17px; }
.i-people { background-image: url('bars/icon-people.webp?v=2'); }
.i-monitor { background-image: url('bars/icon-monitor.webp?v=2'); }
.i-trophy { background-image: url('bars/icon-trophy.webp?v=2'); }
.i-chart { background-image: url('bars/icon-chart.webp?v=2'); }
.i-book { background-image: url('bars/icon-book.webp?v=2'); }
.i-flag { background-image: url('bars/icon-flag.webp?v=2'); }
.go input { background: #041a1e; }
@media (max-width: 480px) { .mh, .mh h2, h2.mh { font-size: 16px; } .mh { padding-left: 40px; background-size: auto 22px; } .mh .chip { font-size: 11px; padding: 2px 4px; } }

/* ---- one content width on every page and tab ---- */
:root { --content: 1240px; }
.wrap-wide, main.wrap { max-width: var(--content); margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
body[data-view]:not([data-view="overview"]) .board { grid-template-columns: minmax(0, 1fr); }
body[data-view]:not([data-view="overview"]) .only-overview { display: none; }
/* at full width the maps would be taller than a screen: the live map shares its row with the race table */
@media (min-width: 900px) {
  body[data-view="live"] [data-tab~="live"] { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); column-gap: 20px; grid-template-rows: auto auto auto auto auto auto auto 1fr auto; }
  body[data-view="live"] [data-tab~="live"] > .ph, body[data-view="live"] [data-tab~="live"] > .race-line { grid-column: 1 / -1; }
  body[data-view="live"] [data-tab~="live"] > .map { grid-column: 1; grid-row: 4 / span 5; }
  body[data-view="live"] [data-tab~="live"] > .map-foot { grid-column: 1; grid-row: 9; }
  body[data-view="live"] [data-tab~="live"] > .live-rules { grid-column: 1 / -1; grid-row: 3; }
  body[data-view="live"] [data-tab~="live"] > .live-next { grid-column: 2; grid-row: 4; }
  body[data-view="live"] [data-tab~="live"] > h3 { grid-column: 2; grid-row: 5; margin-top: 0; }
  body[data-view="live"] [data-tab~="live"] > .table-wrap { grid-column: 2; grid-row: 6; }
  body[data-view="live"] [data-tab~="live"] > #now-note { grid-column: 2; grid-row: 7; }
  body[data-view="learn"] #heat { max-width: 780px; margin: 0 auto; }
}

[hidden] { display: none !important; }

/* knocked out: a badge, and the row steps back */
.badge { display: inline-block; font: 400 11px var(--pix); padding: 1px 6px; border-radius: 3px; margin-left: 6px; vertical-align: 1px; }
.badge.caught { background: var(--seen); color: #2a0a05; }
.badge.lost { background: #6f8a78; color: #05140d; }
tr.out td { color: var(--dim); }

/* the map key, in a popup */
.map-foot { justify-content: flex-end; gap: 8px; }
@media (max-width: 720px) { .map-foot { flex-direction: row; } }
.key-pop { background: var(--panel); color: var(--ink); border: 2px solid var(--frame); border-top-width: 4px; border-radius: 6px; padding: 16px 20px; width: min(420px, calc(100vw - 32px)); }
.key-pop::backdrop { background: rgba(2, 10, 8, .65); }
.key-pop h3 { margin: 0 0 8px; color: var(--lime); font-size: 16px; }
.key-pop ul { list-style: none; margin: 0 0 12px; padding: 0; }
.key-pop li { padding: 4px 0; }
.key-pop i { margin: 0 10px -1px 0; }

/* the spotted moment */
.alert path { fill: var(--seen); stroke: #fff; stroke-width: .5; paint-order: stroke; shape-rendering: crispEdges; }
.alert { animation: alert-pop .35s steps(3) both; transform-box: fill-box; }
@keyframes alert-pop { from { opacity: 0; } to { opacity: 1; } }
.spot-ring { fill: none; stroke: var(--seen); stroke-width: .5; animation: spot-pulse .9s ease-out both; transform-box: fill-box; transform-origin: center; }
@keyframes spot-pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.3); opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .alert, .spot-ring { animation: none; } }

@media (max-width: 720px) {
  .art > img { height: 168px; object-fit: cover; }
  .art-text h1 { font-size: 6cqw; } .art-sub img { height: 18px; } .art-sub span { font-size: 11px; padding: 3px 12px; border-radius: 5px; } .art-sub { margin-top: 6px; gap: 8px; }
  .art-tag { font-size: 12px; margin-top: 7px; } .art-line { font-size: 15px; margin-top: 2px; padding: 0 14px; line-height: 1.1; }
}

/* title: tighter word gaps; a smaller PATROL row */
.art-text h1 { word-spacing: -.45em; }
.art-sub { margin-top: .7cqw; gap: 1cqw; }
.art-sub img { height: 2.2cqw; }
.art-sub span { font-size: 1.7cqw; padding: .4cqw 1.7cqw; border-radius: .8cqw; }
@media (max-width: 720px) { .art-sub img { height: 14px; } .art-sub span { font-size: 9px; padding: 3px 9px; } .art-sub { margin-top: 5px; gap: 6px; } }

/* the watch page's countdown; the Overview has its own Next Run panel */
.live-next { display: flex; flex-direction: column; align-items: center; border: 2px solid #4f9a5e; border-radius: 6px; padding: 12px; margin-bottom: 14px; }
.live-next .ln-k { font: 400 15px var(--pix); color: var(--lime); }
.live-next .next-time { margin: 8px 0 6px; }
body[data-view="overview"] .live-next { display: none; }

.alert-box { fill: #fff6e0; stroke: #05140d; stroke-width: .8; }
.alert path { stroke: none; }

.not-following { text-align: center; padding: 36px 8px; }
.nf-main { font: 400 clamp(20px, 2.4vw, 28px) var(--pix); color: var(--dim); margin-bottom: 6px; }

.next-time.long { font-size: clamp(15px, 1.35vw, 18px); }

/* slipping away: the clock on the lost line */
.lost-ring { fill: none; stroke: #b7cbe6; stroke-width: .45; stroke-dasharray: .9 .7; }
.bar.losing { width: 40px; margin-right: 6px; } .bar.losing i, .meter-track.losing i { background: #8aa6c8; }

/* the short rules, large, on the watch page until the run begins */
.live-rules { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; padding: 12px 8px; margin-bottom: 12px; border: 2px solid #4f9a5e; border-radius: 6px; font: 400 clamp(15px, 1.5vw, 20px) var(--pix); color: var(--lime); }
body[data-view="overview"] .live-rules { display: none; }

.live-rules { font-size: clamp(17px, 1.9vw, 25px); color: var(--pup); }

/* its view: an outline for its reach; solid red only on ground it can actually see */
.view.zone { fill: none; stroke: var(--seen); stroke-width: .3; }
.view-seen { fill: var(--seen); fill-opacity: .42; shape-rendering: crispEdges; }

/* the ground it can see, stronger */
.view-seen, .view-tiles rect { fill: #e23a2a; fill-opacity: .72; }


/* further than it should see: fish on someone in the run */
.view-fish, .view-tiles rect.fishy { fill: #8f2118; fill-opacity: .8; shape-rendering: crispEdges; }

/* fading as it goes outward */
.view-seen.vb0, .view-fish.vb0, .view-tiles rect.vb0 { fill-opacity: .9; }
.view-seen.vb1, .view-fish.vb1, .view-tiles rect.vb1 { fill-opacity: .74; }
.view-seen.vb2, .view-fish.vb2, .view-tiles rect.vb2 { fill-opacity: .58; }
.view-seen.vb3, .view-fish.vb3, .view-tiles rect.vb3 { fill-opacity: .42; }
.view-seen.vb4, .view-fish.vb4, .view-tiles rect.vb4 { fill-opacity: .26; }

/* a gentler fade: the far end stays easy to see */
.view-seen.vb0, .view-fish.vb0, .view-tiles rect.vb0 { fill-opacity: .95; }
.view-seen.vb1, .view-fish.vb1, .view-tiles rect.vb1 { fill-opacity: .88; }
.view-seen.vb2, .view-fish.vb2, .view-tiles rect.vb2 { fill-opacity: .81; }
.view-seen.vb3, .view-fish.vb3, .view-tiles rect.vb3 { fill-opacity: .74; }
.view-seen.vb4, .view-fish.vb4, .view-tiles rect.vb4 { fill-opacity: .67; }
