/* ---- the system map as three glass planes over a plinth (js/isomap.js) ---- */
.sysmap.iso { position: relative; isolation: isolate; }
/* the light the stack stands in: a cool violet glow behind it, a deeper one under it */
.sysmap.iso::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 46%; width: min(1180px, 130%); height: 96%; transform: translate(-50%, -50%); pointer-events: none;
  background:
    radial-gradient(42% 38% at 50% 44%, rgba(132, 118, 255, .13), rgba(132, 118, 255, .04) 55%, transparent 78%),
    radial-gradient(60% 30% at 50% 82%, rgba(70, 110, 255, .06), transparent 70%); }
.sysmap.iso .iso-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.iso-stage { position: relative; width: 100%; }
.iso-svg { display: block; width: 100%; height: auto; overflow: visible; }
.iso-fx { position: absolute; left: 0; top: 0; width: 100%; height: auto; overflow: visible; pointer-events: none; will-change: transform; }

.iso-floor line { stroke: rgba(200, 196, 255, .07); stroke-width: 1; }
.iso-plinth-top { fill: url(#iso-plat); }
.iso-plinth-front { fill: url(#iso-platfront); }
.iso-plinth-edge { stroke: rgba(255, 255, 255, .24); stroke-width: 1; }
.iso-plinth-bevel { stroke: rgba(255, 255, 255, .05); stroke-width: 1; }
.iso-engrave line { stroke: rgba(255, 255, 255, .045); stroke-width: 1; }
.iso-pillars line { stroke: rgba(255, 255, 255, .08); stroke-width: 1; }

/* a plane: glass lit from above toward its back, a hairline round it, its front edge catching light */
.iso-glass { stroke: none; }
.iso-glass-lines line { stroke: rgba(255, 255, 255, .03); stroke-width: 1; }
.iso-rim { fill: none; stroke: rgba(255, 255, 255, .15); stroke-width: 1; }
.iso-rim.core { stroke: rgba(190, 180, 255, .3); }
.iso-back-hi { stroke: rgba(255, 255, 255, .3); stroke-width: .5; }
.iso-front-hi { stroke: rgba(255, 255, 255, .26); stroke-width: 1; }
.iso-layer-k { font: 600 10px/1 var(--text); letter-spacing: .2em; text-transform: uppercase; fill: rgba(244, 241, 234, .5); }

/* pills: the room's own, standing on the glass */
.iso-pill { transition: opacity .24s cubic-bezier(.4, 0, .2, 1); }
.iso-pill-bg { fill: #111215; }
.iso-pill-ring { fill: none; stroke: rgba(255, 255, 255, .11); stroke-width: 1; }
.iso-pill-hi { stroke: rgba(255, 255, 255, .26); stroke-width: .5; }
.iso-pill-top { fill: none; stroke-width: 2; stroke-linecap: round; }
.iso-pill[data-state="live"] .iso-pill-top { stroke: var(--accent); }
.iso-pill[data-state="record"] .iso-pill-top { stroke: rgba(244, 241, 234, .92); }
.iso-pill[data-state="road"] .iso-pill-bg { fill: rgba(11, 12, 15, .55); }
.iso-pill[data-state="road"] .iso-pill-ring { stroke: rgba(244, 241, 234, .3); stroke-dasharray: 3 3; }
.iso-pill[data-state="road"] .iso-pill-hi { display: none; }
.iso-pill-t { font: 500 14px/1 var(--text); fill: #EDEDF2; }
.iso-pill[data-state="road"] .iso-pill-t { fill: rgba(244, 241, 234, .5); }
.iso-pill-i { fill: rgba(237, 237, 242, .7); }
.iso-pill[data-state="live"] .iso-pill-i { fill: var(--accent); }
.iso-pill[data-state="road"] .iso-pill-i { fill: none; stroke: rgba(244, 241, 234, .45); stroke-width: 1; stroke-dasharray: 2 1.6; }
.iso-pill-hit { fill: transparent; }

/* beams: a hairline in the gap, the same line faint through the glass */
.iso-beam-line { fill: none; stroke-width: 1; }
.iso-beam[data-tone="live"] .iso-beam-line { stroke: var(--accent); stroke-opacity: .28; }
.iso-beam[data-tone="record"] .iso-beam-line { stroke: rgba(244, 241, 234, .28); }
.iso-thru .iso-beam-line { stroke-opacity: .2 !important; }
.iso-beam-k text { font: 600 10px/1 var(--text); letter-spacing: .16em; text-transform: uppercase; fill: rgba(244, 241, 234, .62); }
.iso-beam-arrow { fill: none; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.iso-beam-k[data-tone="live"] .iso-beam-arrow { stroke: var(--accent); }
.iso-beam-k[data-tone="record"] .iso-beam-arrow { stroke: rgba(244, 241, 234, .85); }
.iso-beam, .iso-beam-k { transition: opacity .24s cubic-bezier(.4, 0, .2, 1); }

/* the moving light */
.iso-flow { fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 6 10; opacity: 0; }
.iso-beam[data-tone="live"] .iso-flow { stroke: #FFC47A; }
.iso-beam[data-tone="record"] .iso-flow { stroke: #fff; }
.iso-packet, .iso-packet-glow { fill: none; stroke-linecap: round; opacity: 0; }
.iso-packet { stroke-width: 2; stroke-linecap: butt; }
.iso-packet-glow { stroke-width: 6; stroke-linecap: butt; }
.iso-beam[data-tone="live"] .iso-packet { stroke: #FFE6C4; }
.iso-beam[data-tone="live"] .iso-packet-glow { stroke: var(--accent); stroke-opacity: .38; }
.iso-beam[data-tone="record"] .iso-packet { stroke: #fff; }
.iso-beam[data-tone="record"] .iso-packet-glow { stroke: #D9D4FF; stroke-opacity: .4; }
.iso-arrive { fill: none; stroke-width: 1.5; opacity: 0; stroke: rgba(255, 255, 255, .85); }
.iso-arrive[data-state="live"] { stroke: var(--accent); }
.iso-sheen { opacity: 0; }

/* a pill in focus lights its own paths and quiets everything else */
.iso-svg.focusing .iso-beam:not(.on), .iso-svg.focusing .iso-beam-k:not(.on), .iso-svg.focusing .iso-pill:not(.on), .iso-fx.focusing .iso-beam:not(.on) { opacity: .3; }

/* on a phone, the names of the paths beneath the stack */
.iso-tall-legend { display: none; }
@media (max-width: 639px) {
  .iso-tall-legend { display: grid; gap: 8px; margin-top: 4px; }
  .iso-tl-paths { display: grid; gap: 9px; }
  .iso-tl-paths p { margin: 0; display: flex; align-items: center; gap: 10px; font: 600 10.5px/1.35 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-soft); }
  .iso-tl-paths span { flex: none; position: relative; width: 9px; height: 18px; }
  .iso-tl-paths span::before { content: ""; position: absolute; left: 4px; top: 2px; bottom: 2px; width: 1px; background: var(--accent); }
  .iso-tl-paths span::after { content: ""; position: absolute; left: 1.5px; width: 6px; height: 6px; border: solid var(--accent); border-width: 1px 0 0 1px; }
  .iso-tl-paths span[data-dir="up"]::after { top: 2px; transform: rotate(45deg); }
  .iso-tl-paths span[data-dir="down"]::after { bottom: 2px; transform: rotate(225deg); }
  .iso-tl-paths p[data-tone="record"] span::before { background: rgba(244, 241, 234, .9); }
  .iso-tl-paths p[data-tone="record"] span::after { border-color: rgba(244, 241, 234, .9); }
}
@media (prefers-reduced-motion: reduce) { .iso-pill, .iso-beam, .iso-beam-k { transition: none; } }
