/* Curfew 26 HUD: the rider's N4-G.A. pass with its dock, dock windows, the Night clock plate, item tags.
   Replaces the Season 1 HUD (questrider.css is no longer loaded). Tokens come from curfew26.css. */
:root { --plate-h: 122px; --line: #45413a; }
body.qr:not(.in-game) #rider-hud, body.qr:not(.in-game) #checkpoint-timer-container, body.qr:not(.in-game) .c26-win { display: none; }
.c26-i { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ---------- the pass (top left) ---------- */
.c26-pass { position: fixed; z-index: 10010; top: calc(10px + var(--safe-t)); left: 10px; width: 300px; max-width: calc(100vw - 20px);
  padding: 10px 10px 6px; border-radius: 10px; background: var(--grain), var(--tarmac); color: var(--paper);
  box-shadow: 0 10px 26px rgba(0,0,0,.45), inset 0 0 0 1px var(--line); font: 400 min(0.875rem, 20px)/1.3 var(--f-text); --fc: var(--paint); --fi: var(--paper); }
.c26-pass { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; grid-template-areas: "rank id min" "g g g" "dock dock dock"; column-gap: 10px; align-items: center; }
.c26-rank-wrap { grid-area: rank; position: relative; width: 70px; height: 70px; }
.qr .c26-rank-btn { width: 100%; height: 100%; padding: 0; border: 0; border-radius: 8px; background: none; color: inherit; cursor: pointer; }
/* the faction's certified stamp, faint, pressed into the pass's top right corner */
.c26-pass-stamp { position: absolute; z-index: -1; inset: 0; border-radius: 10px; overflow: hidden; pointer-events: none; }
.c26-pass-stamp::before { content: ""; position: absolute; top: -22px; right: -18px; width: 124px; height: 124px; opacity: .22;
  background: url("../img/stamp-pass-vultari.png") center / contain no-repeat; transform: rotate(9deg); }
.c26-pass[data-faction="solinar"] .c26-pass-stamp::before { background-image: url("../img/stamp-pass-solinar.png"); }
.c26-pass:not([data-faction]) .c26-pass-stamp { display: none; }
.c26-pass.mini .c26-pass-stamp::before { top: -30px; right: 6px; width: 96px; height: 96px; opacity: .16; }
.qr .c26-rank-btn:hover, .qr .c26-rank-btn:focus { background: none; }
.c26-pass-id { grid-area: id; min-width: 0; }
.qr .c26-pass-min { grid-area: min; align-self: start; width: 32px; height: 32px; margin: -4px -4px 0 0; }
.c26-pass-name { font: 900 min(1.625rem, 36px)/1 var(--f-display); letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c26-pass-title { margin-top: 5px; font: 800 min(0.9375rem, 21px)/1.2 var(--f-text); color: var(--fi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* medals: a ribbon and a road-paint star; the name sits beside it like an engraved plate */
.c26-medals:empty { display: none; }
/* pinned onto the rank plate's lower right corner like pins on a lapel: three at most, overlapping and a little fanned,
   so they always stay on the plate and clear of the gauges; a coin counts the rest. Any of them opens the medal case. */
.c26-medals { position: absolute; z-index: 3; right: 4px; bottom: -3px; display: flex; flex-direction: row-reverse; align-items: flex-start; cursor: pointer; }
.c26-medal-item { --tilt: -4deg; display: block; border-radius: 3px; transform: rotate(var(--tilt)); transform-origin: 50% 2px; transition: transform .12s ease-out; }
.c26-medal-item:nth-child(1) { --tilt: -7deg; } .c26-medal-item:nth-child(2) { --tilt: -1deg; } .c26-medal-item:nth-child(3) { --tilt: 6deg; }   /* the charms fan apart */
.c26-medal-item + .c26-medal-item { margin-right: -7px; }
.c26-medals .c26-medal-more { margin-right: -3px; }
.c26-medal-item:hover { transform: rotate(var(--tilt)) translateY(-2px); }
.c26-medal-item:focus-visible, .c26-medal-more:focus-visible { outline: 2px solid var(--paint); outline-offset: 1px; }
.c26-medal-more { position: relative; margin-top: 2px; width: 19px; height: 19px; border-radius: 50%; background: var(--paper); color: var(--ink);
  font: 800 10px/19px var(--f-text); text-align: center; box-shadow: 0 0 0 1.5px var(--ink), 1px 2px 0 rgba(23,21,15,.55); }
/* the medal case: every medal full size, its name, detail and date */
.c26-medal-case { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; margin-top: 10px; }
.c26-medal-card { display: grid; justify-items: center; align-content: start; gap: 3px; padding: 14px 8px 12px; border-radius: 6px; background: var(--asphalt); text-align: center; cursor: help; }
.c26-medal-card .c26-medal { width: 40px; height: 61px; margin-bottom: 6px; }
.c26-medal-card b { font: 800 0.875rem/1.2 var(--f-text); color: var(--paper); }
.c26-medal-card small { font: 400 0.75rem/1.25 var(--f-text); color: var(--paper-dim); }
.c26-medal { display: block; width: 19px; height: 29px; filter: drop-shadow(1px 2px 0 rgba(23,21,15,.55)) drop-shadow(0 1px 2px rgba(23,21,15,.5)); }
.c26-gauges { grid-area: g; display: grid; gap: 5px; margin: 10px 2px 0; }
.c26-gauge { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 8px; align-items: center; font: 700 min(0.75rem, 17px)/1 var(--f-text); }
.c26-gauge .k { color: var(--paper-dim); }
.c26-gauge .v { color: var(--paper); font-variant-numeric: tabular-nums; min-width: 6ch; text-align: right; }
.c26-gauge-track { position: relative; height: 8px; border-radius: 2px; overflow: hidden; background: #141310; box-shadow: inset 0 0 0 1px var(--line); }
.c26-gauge-track i { display: block; height: 100%; width: 0; transition: width .4s ease-out; }
.c26-gauge.energy i { background: var(--ok); }
/* Overextended (a turret in the other side's Sanctum): energy refills at half speed, so the bar is hatched and its name turns paint */
.c26-gauge.energy.over i { background: repeating-linear-gradient(135deg, var(--ok) 0 4px, #4f6a32 4px 7px); }
.c26-gauge.energy.over .k { color: var(--paint); }
.c26-sanctum-note { color: var(--paint); font-weight: 700; cursor: help; }   /* deploying inside the other side's Sanctum */
/* XP is the road to the next rank: lane dashes ahead, solid paint behind */
.c26-gauge.xp .c26-gauge-track { background: repeating-linear-gradient(90deg, rgba(226,181,46,.38) 0 7px, transparent 7px 13px) 0 50% / 100% 2px no-repeat, #141310; }
.c26-gauge.xp i { background: var(--paint); }
.c26-dock { grid-area: dock; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; margin-top: 9px; padding-top: 7px;
  background: repeating-linear-gradient(90deg, rgba(226,181,46,.5) 0 14px, transparent 14px 24px) 0 0 / 100% 2px no-repeat; }
.qr .c26-dock button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 50px;
  padding: 6px 2px 5px; border: 0; border-radius: 6px; background: none; color: var(--paper-dim); font: 700 min(0.75rem, 14px)/1 var(--f-text); text-transform: none; }   /* the dock's labels stop at 14 px: wider and they'd run together */
.c26-dock .c26-i { width: 21px; height: 21px; }
.qr .c26-dock button:hover { background: var(--tarmac-hi); color: var(--paper); }
.qr .c26-dock button[aria-pressed="true"] { background: var(--asphalt); color: var(--paint); }
.c26-count { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 4px; border-radius: 4px;
  background: var(--paint); color: var(--ink); font: 800 11px/18px var(--f-text); text-align: center; }
.c26-count[hidden] { display: none; }
/* mini: rank, name and two thin gauges, nothing else (Ragnarok's basic window, minimised) */
.c26-pass.mini { width: 232px; padding: 6px 6px 7px 7px; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "rank id min" "rank g min"; column-gap: 8px; }
.c26-pass.mini .c26-rank-wrap { width: 40px; height: 40px; }
.c26-pass.mini .c26-rank { transform: scale(.572); transform-origin: 0 0; }
.c26-pass.mini .c26-pass-name { font-size: min(1.1875rem, 27px); }
.c26-pass.mini .c26-pass-title, .c26-pass.mini .c26-medals, .c26-pass.mini .c26-dock, .c26-pass.mini .c26-gauge .k, .c26-pass.mini .c26-gauge .v { display: none; }
.c26-pass.mini .c26-gauges { margin: 4px 0 0; gap: 3px; }
.c26-pass.mini .c26-gauge { grid-template-columns: minmax(0, 1fr); }
.c26-pass.mini .c26-gauge-track { height: 4px; }
.qr .c26-pass.mini .c26-pass-min { align-self: center; margin: 0; }

/* ---------- rank emblem: Season 1's level effects, redrawn as road and clock ---------- */
.c26-rank { position: relative; display: block; width: 70px; height: 70px; --fc: var(--rust); --fi: #e48a6f; --pc: var(--fc); --pt: var(--paper); --sheen: #d4704f; }
.c26-rank.f-solinar { --fc: var(--mercury); --fi: #6cc7da; --pt: var(--ink); --sheen: #93dbe9; }
.c26-rank > * { position: absolute; }
.c26-rank-plate { inset: 12px; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border-radius: 6px; background: var(--pc); color: var(--pt); box-shadow: inset 0 0 0 3px var(--pc), inset 0 0 0 5px var(--pt); }
.c26-rank-plate b { font: 900 22px/.9 var(--f-display); letter-spacing: .01em; }
.c26-rank-plate:has(.c26-chev) b { font-size: 18px; }
.c26-chev { display: flex; gap: 1px; height: 6px; }
.c26-chev i { width: 7px; height: 6px; background: currentColor; clip-path: polygon(0 100%, 50% 0, 100% 100%, 76% 100%, 50% 45%, 24% 100%); }
/* R3: a sheen of fresh paint crosses the plate */
.t-sheen .c26-rank-plate { background: linear-gradient(115deg, var(--pc) 0 36%, var(--sheen) 50%, var(--pc) 64% 100%) 0 0 / 300% 100%;
  animation: c26-sheen 5.2s ease-in-out infinite; }
@keyframes c26-sheen { 0%, 35% { background-position: 100% 0; } 75%, 100% { background-position: 0 0; } }
/* R4: an outer ring, like a sign's reflective border */
.t-ring .c26-rank-plate { box-shadow: inset 0 0 0 3px var(--pc), inset 0 0 0 5px var(--pt), 0 0 0 2px var(--asphalt), 0 0 0 4px var(--fi); }
/* R5: Seconds rising off the plate as chips of road paint */
.c26-rank-chips { inset: 0; z-index: 3; pointer-events: none; }
.c26-rank-chips i { position: absolute; bottom: 12px; width: 6px; height: 2px; background: var(--paint); opacity: 0; animation: c26-chip 2.6s ease-out infinite; }
.c26-rank-chips i:nth-child(1) { left: 4px; }
.c26-rank-chips i:nth-child(2) { right: 4px; animation-delay: .9s; }
.c26-rank-chips i:nth-child(3) { left: 32px; bottom: 56px; animation-delay: 1.7s; }
@keyframes c26-chip { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-44px); opacity: 0; } }
.c26-rank-chips i:nth-child(3) { animation-name: c26-chip-top; }
@keyframes c26-chip-top { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-14px); opacity: 0; } }
/* R6: the 26-hour dial; R7: a second hand steps round it once every 26 seconds */
.c26-rank-dial { inset: 0; width: 70px; height: 70px; transform: rotate(-90deg); z-index: 1; }
.c26-rank-dial circle { fill: none; }
.c26-rank-dial .ticks { stroke: var(--paper-dim); stroke-width: 3; stroke-dasharray: .16 .84; opacity: .6; }
.c26-rank-dial .hand { stroke: var(--paint); stroke-width: 4.5; stroke-dasharray: .3 25.7; stroke-dashoffset: .07; animation: c26-hand 26s steps(26) infinite; }
@keyframes c26-hand { to { stroke-dashoffset: -25.93; } }
/* R10: a ring of lane dashes turns around the emblem */
.c26-rank-swirl { inset: 0; width: 70px; height: 70px; z-index: 0; animation: c26-turn 16s linear infinite; }
.c26-rank-swirl circle { fill: none; stroke: var(--fi); stroke-width: 2; stroke-dasharray: 1.1 .9; }
@keyframes c26-turn { to { transform: rotate(360deg); } }
/* R11: the plate turns to road paint, the faction line stays inside it */
.t-gold .c26-rank-plate { --pc: var(--paint); --pt: var(--ink); background: var(--paint);
  box-shadow: inset 0 0 0 3px var(--paint), inset 0 0 0 5px var(--fc); }
.t-gold.t-ring .c26-rank-plate { box-shadow: inset 0 0 0 3px var(--paint), inset 0 0 0 5px var(--fc), 0 0 0 2px var(--asphalt), 0 0 0 4px var(--fi); }
.t-gold.t-sheen .c26-rank-plate { background: linear-gradient(115deg, var(--paint) 0 36%, #f6e3a0 50%, var(--paint) 64% 100%) 0 0 / 300% 100%; }
/* R13: a crown of road spikes, and Chime pulses leaving the plate (one more per rank, up to four) */
.c26-rank-crown { left: 22px; right: 22px; top: 3px; height: 9px; z-index: 3; background: var(--paint);
  clip-path: polygon(0 100%, 0 35%, 17% 72%, 33% 0, 50% 62%, 67% 0, 83% 72%, 100% 35%, 100% 100%); }
.c26-rank-burst { inset: 12px; z-index: 1; border: 2px solid var(--fi); border-radius: 6px; opacity: 0;
  animation: c26-burst 3.2s ease-out infinite; animation-delay: calc(var(--i) * 3.2s / var(--n)); }
@keyframes c26-burst { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
/* R16: the whole dial lit */
.t-radiant .c26-rank-dial .ticks { stroke: var(--paint); opacity: 1; }
.t-radiant .c26-rank-dial .hand { stroke: var(--paper); }

/* ---------- dock windows ---------- */
.c26-win { position: fixed; z-index: 10020; top: 80px; left: 80px; display: flex; flex-direction: column; width: min(var(--w, 340px), calc(100vw - 16px));
  max-height: min(72vh, 600px); border-radius: 10px; background: var(--grain), var(--tarmac); color: var(--paper);
  box-shadow: 0 18px 40px rgba(0,0,0,.5), inset 0 0 0 1px var(--line); font: 400 0.9375rem/1.45 var(--f-text); animation: c26-win-in .16s ease-out; }
.c26-win[hidden] { display: none; }
@keyframes c26-win-in { from { transform: scale(.97); opacity: 0; } }
/* windows glide to their place in the rail when another one opens, closes or is dropped */
.c26-win { transition: left .2s cubic-bezier(.2, 0, 0, 1), top .2s cubic-bezier(.2, 0, 0, 1); }
.c26-win.fresh, .c26-win.dragging { transition: none; }
.c26-win.dragging { box-shadow: 0 26px 50px rgba(0,0,0,.6), inset 0 0 0 2px var(--paint); opacity: .96; }
.c26-win-bar { display: flex; align-items: center; gap: 8px; padding: 5px 5px 7px 12px; cursor: grab; touch-action: none; user-select: none;
  background: repeating-linear-gradient(90deg, rgba(226,181,46,.5) 0 14px, transparent 14px 24px) 0 100% / 100% 2px no-repeat; }
.c26-win-bar.grab { cursor: grabbing; }
.c26-win-ico { width: 20px; height: 20px; color: var(--paint); }
.qr .c26-win-title { flex: 1; min-width: 0; margin: 0; font: 900 min(1.375rem, 31px)/1 var(--f-display); color: var(--paper); letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qr .c26-win-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 6px;
  background: none; color: var(--paper-dim); font-size: 1.125rem; }
.qr .c26-win-btn:hover { background: var(--tarmac-hi); color: var(--paper); }
.c26-win-body { overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 10px 12px 14px; }   /* a tap margin at the edge never makes it scroll sideways */
.c26-win.min { min-width: 210px; }
.c26-win.min .c26-win-body { display: none; }
.c26-win.min .c26-win-bar { background: none; padding-bottom: 5px; }
.c26-wnote { font: 400 0.875rem/1.45 var(--f-text); color: var(--paper-dim); margin: 0 0 10px; }
.c26-wnote b { color: var(--paint); }
.c26-wempty { font: 400 0.9375rem/1.5 var(--f-text); color: var(--paper-dim); margin: 6px 0; }
.c26-wactions { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.qr .c26-wactions .c26-primary { width: auto; flex: 1; }
.c26-wactions > * { min-width: 0; }
.c26-wtabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; margin: 0 0 10px; padding: 3px; border-radius: 7px; background: var(--asphalt); }
.qr .c26-wtab { min-height: 40px; padding: 6px; border: 0; border-radius: 5px; background: transparent; color: var(--paper-dim); font: 700 min(0.9375rem, 21px)/1.1 var(--f-text); text-transform: none; white-space: normal; }
.qr .c26-wtab:hover { background: var(--tarmac-hi); color: var(--paper); }
.qr .c26-wtab.on { background: var(--paint); color: var(--ink); }
.qr .c26-wtabs.three .c26-wtab { padding: 6px 2px; font-size: min(0.8125rem, 18px); }       /* three tabs share the row: a long label still fits */
/* a tab's name keeps one line: centred when it fits, sliding to its end and back when it doesn't (ui.js mq) */
.qr .c26-wtab .c26-mq { margin: 0 -2px; }
/* tabs with a count (Items) are tiles like the items under them: each on its own dark tile, the open one road-paint
   yellow, the count in the bottom-right corner the way an item's is, so every name has the whole tile */
.qr .c26-wtabs.tiles { gap: 6px; padding: 0; background: none; }
.qr .c26-wtab.counted { min-height: 2.75rem; padding: 0.25rem 0.5rem 0.875rem; border-radius: 6px; background: var(--tarmac-hi);
  box-shadow: inset 0 0 0 1px rgba(230,220,198,.07), 0 2px 0 var(--asphalt); }
.qr .c26-wtab.counted:hover { background: #3d3a34; color: var(--paper); }
.qr .c26-wtab.counted.on { background: var(--paint); }
.c26-wtab-n { position: absolute; right: 5px; bottom: 3px; font: 800 0.75rem/1 var(--f-text); color: var(--paper); text-shadow: 0 1px 0 var(--ink), 0 0 3px var(--ink); }
.qr .c26-wtab.on .c26-wtab-n { color: var(--ink); text-shadow: none; }

/* Items: a grid of salvage tags */
.c26-inv { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 6px; }
.qr .c26-inv-cell { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 6px;
  background: var(--asphalt); }
.qr .c26-inv-cell:hover { background: var(--tarmac-hi); }
.qr .c26-inv-cell.on { background: var(--tarmac-hi); box-shadow: inset 0 0 0 2px var(--paint); }
.c26-inv-cell b { position: absolute; right: 4px; bottom: 2px; font: 800 0.8125rem/1 var(--f-text); color: var(--paper); text-shadow: 0 1px 0 var(--ink), 0 0 3px var(--ink); }
/* the chosen item's details stay pinned to the bottom of the window while the grid scrolls behind them */
.c26-inv-info { position: sticky; bottom: -14px; z-index: 1; margin: 10px 0 -14px; padding: 10px 12px 14px; border-radius: 6px 6px 0 0; background: var(--asphalt); box-shadow: 0 -8px 12px -4px rgba(23,21,15,.85); }
.c26-inv-name { font: 800 1.0625rem/1.25 var(--f-text); }
.c26-inv-sub { font: 400 0.8125rem/1.3 var(--f-text); color: var(--paper-dim); }
.c26-inv-sub::first-letter { text-transform: uppercase; }
.c26-inv-info p { margin: 6px 0 0; font: italic 400 0.875rem/1.45 var(--f-text); color: var(--paper); }

/* Item tag: the pictogram on a salvage tag in the rarity colour, with a punched hole */
.c26-tag { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px; border-radius: 5px;
  background: var(--r); color: var(--ink); box-shadow: inset 0 0 0 2px var(--r), inset 0 0 0 3.5px rgba(23,21,15,.5); }
.c26-tag::before { content: ""; position: absolute; top: 5px; left: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--asphalt); }
.c26-tag .c26-i { width: 23px; height: 23px; }
.c26-tag[data-size="lg"] { width: 58px; height: 58px; border-radius: 7px; }
.c26-tag[data-size="lg"] .c26-i { width: 36px; height: 36px; }
.c26-tag[data-size="lg"]::before { top: 7px; left: 7px; width: 5px; height: 5px; }
.c26-slot .c26-tag { width: 36px; height: 36px; }
/* a turret card's Power slots: portraits of what powers it and what it powers; an open slot shows what could, faded */
.c26-power { flex-wrap: wrap; row-gap: 6px; margin: 8px 0; }
.c26-power .c26-slots-label { min-width: 5.6em; }
.qr .c26-power-slot { min-height: 0; margin: 0; padding: 0; background: var(--asphalt); cursor: pointer; overflow: hidden; }
.c26-power-slot img { width: 38px; height: 38px; image-rendering: pixelated; object-fit: contain; }
.c26-power-slot.platoon:not(.empty) { border-color: var(--pw, var(--paint)); }
.c26-power-slot.haste:not(.empty) { border-color: #6cc7da; }
.c26-power-slot.stack:not(.empty) { border-color: #8f62d8; }
/* a number with what its powers added after it, in green, the way Dota shows a bonus (on the HP bar, pale: it sits on green) */
.c26-stats dd .up { margin-left: 4px; font: 800 0.8125rem var(--f-text); color: var(--ok); white-space: nowrap; }
.c26-bar .up { margin-left: 4px; font-weight: 800; color: #f2ffe2; }
/* a turret powering this one, or powered by it: its portrait and what it adds, in short; tap it to open that turret.
   Turrets giving the same share one chip, their portraits stacked. A row's chips wrap under each other, past its label */
.c26-prow { display: grid; grid-template-columns: 7.4em 1fr; align-items: start; gap: 8px; margin: 8px 0; }
.c26-prow .c26-slots-label { white-space: nowrap; }
.c26-prow .c26-slots-label { margin: 0; line-height: 40px; }
.c26-pchips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 40px; }
.qr .c26-pchip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin: 0; padding: 2px 10px 2px 2px; border: 0; border-radius: 6px;
  background: var(--asphalt); box-shadow: inset 0 0 0 2px var(--pw, var(--tarmac-hi)); color: var(--paper); text-align: left; text-transform: none; cursor: pointer; }
.qr .c26-pchip:hover, .qr .c26-pchip:focus { background: var(--tarmac-hi); color: var(--paper); }
.c26-pchip:focus-visible { outline: 2px solid var(--paint); outline-offset: 1px; }
.c26-pchip img { width: 34px; height: 34px; image-rendering: pixelated; object-fit: contain; }
.c26-pchip img + img { margin-left: -26px; }
.c26-pchip span { display: grid; gap: 2px; }
.c26-pchip b { font: 800 0.75rem/1.1 var(--f-text); white-space: nowrap; }
.c26-pchip.more { box-sizing: border-box; justify-content: center; min-width: 40px; padding: 0 8px; border: 2px dashed var(--tarmac-hi); box-shadow: none; background: transparent;
  color: var(--paper-dim); font: 800 0.8125rem var(--f-text); cursor: help; }
.c26-pnone { font: 700 0.8125rem var(--f-text); color: var(--paper-dim); }
/* a special combination's recipe on a turret's card: this turret + its partner, and its name; lit while it stands,
   dashed and faded while it's something to build toward (Platoons count their creeps) */
.c26-recipe { display: inline-flex; align-items: center; gap: 2px; min-height: 40px; padding: 2px 9px 2px 3px; box-sizing: border-box; border-radius: 6px;
  border: 2px dashed var(--tarmac-hi); color: var(--paper-dim); cursor: help; }
.c26-recipe img { width: 28px; height: 28px; image-rendering: pixelated; object-fit: contain; opacity: .45; filter: grayscale(1); }
.c26-recipe i { font: 800 0.75rem var(--f-text); font-style: normal; opacity: .7; }
.c26-recipe small { margin-left: 1px; font: 800 0.6875rem var(--f-text); }
.c26-recipe b { margin-left: 5px; font: 800 0.75rem/1.1 var(--f-text); white-space: nowrap; }
.c26-recipe.on { border: 0; background: var(--asphalt); box-shadow: inset 0 0 0 2px var(--pw); color: var(--paper); }
.c26-recipe.on img { opacity: 1; filter: none; }
.c26-recipe:focus-visible { outline: 2px solid var(--paint); outline-offset: 1px; }
/* a bar made of parts (a shield: its own, each Aegis Module, its neighbours'): a dark notch where each part ends */
.c26-bar-mark { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(20,19,16,.75); }
/* an enhancement slot, Ingress style: the module, what it adds, and the call sign of whoever fitted it */
/* ---------- a turret's card (turrets.js renderCard): never so tall it hides its turret. It scrolls between its head and
   its buttons, which stay at its foot; the map pans the turret into the clear band above it (link.js) ---------- */
.c26-sheet.turret { display: flex; flex-direction: column; max-height: min(60vh, 660px); max-height: min(60dvh, 660px); overflow: hidden; padding-bottom: 0; }
.c26-sheet.turret .c26-turret { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.c26-tc-body { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -18px; padding: 0 18px 14px; overscroll-behavior: contain; }
.c26-tc-body .c26-note { margin: 12px 0 0; }
.c26-tc-foot { flex: none; margin: 0 -18px; padding: 10px 18px calc(12px + var(--safe-b)); background: var(--grain), var(--tarmac); box-shadow: 0 -10px 18px -8px rgba(0,0,0,.55); }
.c26-tc-foot .c26-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.c26-tc-foot .c26-actions > * { flex: 1 1 0; min-width: 0; }
.c26-tc-foot .c26-actions .c26-primary { flex-basis: 100%; }
.qr .c26-tc-foot .c26-secondary { min-height: 40px; padding: 6px 8px; font-size: 0.9375rem; }
/* its head: portrait, then its name, its role and who built it (the call sign alone, in its colour), and its three
   enhancement slots right beside them, at every width (on a phone everything in it a size smaller) */
.c26-tc-head { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "pic id enh"; align-items: center; column-gap: 12px; margin-right: 40px; }
.c26-tc-head.bot { grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "pic id"; }
.c26-tc-head > img { grid-area: pic; width: 72px; height: 72px; margin: -6px 0 -4px -4px; object-fit: contain; image-rendering: pixelated; }
.c26-tc-id { grid-area: id; display: grid; gap: 1px; min-width: 0; }
.c26-tc-id .c26-card-title { font-size: 1.625rem; line-height: 1.02; overflow-wrap: anywhere; }
.c26-tc-id .c26-card-sub { font-size: 0.875rem; line-height: 1.3; }
.c26-card-who { min-width: 0; overflow: hidden; white-space: nowrap; }
.qr .c26-card-who .c26-callsign { font-size: 1.125rem; }
.c26-tc-enh { grid-area: enh; display: grid; grid-template-columns: repeat(3, 52px); gap: 5px; align-self: end; }
.c26-hslot { display: grid; justify-items: center; gap: 1px; min-width: 0; text-align: center; cursor: help; }
.c26-hslot .c26-tag { width: 38px; height: 38px; }
.c26-hslot > b { font: 800 0.6875rem/1.1 var(--f-text); color: var(--ok); }
.qr .c26-hslot .c26-callsign { max-width: 52px; overflow: hidden; font-size: 0.75rem; white-space: nowrap; text-overflow: clip; }
.c26-hslot.empty > span { display: grid; place-items: center; width: 38px; height: 38px; box-sizing: border-box; border: 1.5px dashed var(--tarmac-hi); border-radius: 5px;
  font: 800 1rem var(--f-text); color: var(--paper-dim); }
.c26-hslot.empty small { font: 600 0.6875rem/1.1 var(--f-text); color: var(--paper-dim); }
@media (max-width: 440px) {
  .c26-tc-head { grid-template-columns: 48px minmax(0, 1fr) auto; column-gap: 6px; margin-right: 30px; }
  .c26-tc-head > img { width: 48px; height: 48px; margin: -4px 0 -2px -2px; }
  .c26-tc-id .c26-card-title { font-size: 1.3125rem; letter-spacing: 0; }
  .c26-tc-id .c26-card-sub { font-size: 0.8125rem; }
  .qr .c26-card-who .c26-callsign { font-size: 1rem; }
  .c26-tc-enh { grid-template-columns: repeat(3, 36px); gap: 4px; }
  .c26-hslot .c26-tag, .c26-hslot.empty > span { width: 30px; height: 30px; }
  .c26-hslot > b { font-size: 0.625rem; }
  .qr .c26-hslot .c26-callsign { max-width: 36px; font-size: 0.6875rem; }
  .c26-hslot.empty small { font-size: 0.625rem; }
}
/* its numbers on a spec plate: one dark plate, the figures in the stencil type, thin rules between columns and a lane's
   dashes between rows; a figure and what it gained always stay on one line */
.c26-turret .c26-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 12px 0 0; border-radius: 8px; overflow: hidden;
  background: #141310; box-shadow: inset 0 0 0 1px #3a3631; }
.c26-turret .c26-stats > div { min-width: 0; padding: 9px 10px 10px; border-radius: 0; background: none; }
.c26-turret .c26-stats > div:not(:nth-child(3n + 1)) { box-shadow: inset 1px 0 0 #2e2b26; }
.c26-turret .c26-stats > div:nth-child(n + 4) { border-top: 2px dashed rgba(226,181,46,.32); }
.c26-turret .c26-stats > .pad { pointer-events: none; }
.c26-turret .c26-stats dt { overflow: hidden; font: 600 0.75rem/1.2 var(--f-text); text-overflow: ellipsis; white-space: nowrap; }
.c26-turret .c26-stats dd { overflow: hidden; margin-top: 2px; font: 900 1.5rem/1.05 var(--f-display); letter-spacing: .02em; text-overflow: ellipsis; white-space: nowrap; }
.c26-turret .c26-stats dd .up { margin-left: 4px; font: 800 0.75rem var(--f-text); letter-spacing: 0; vertical-align: 2px; }
@media (max-width: 440px) { .c26-turret .c26-stats > div { padding: 9px 8px 10px; } }
/* a turret card's sections (turrets.js section): a small header with a count at the right, over rows the card's full
   width, so every row and the stat tiles above share the same left and right edges */
.c26-psec { display: grid; gap: 6px; margin: 16px 0 0; }
.c26-psec > header { display: flex; justify-content: space-between; align-items: baseline; font: 400 0.8125rem/1.2 var(--f-text); color: var(--paper-dim); }
.c26-psec > header b { font: 700 0.75rem/1.2 var(--f-text); color: var(--paper-dim); }
/* a row: its pictures in a fixed column, a name and a line under it, a short note at the right. Lit (on): the asphalt
   tile with its side's ink round it; not there yet: dashed and faded, something to build toward */
.c26-crow { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; column-gap: 10px; min-height: 54px; padding: 4px 12px 4px 4px;
  box-sizing: border-box; border-radius: 6px; background: var(--asphalt); box-shadow: inset 0 0 0 1.5px var(--tarmac-hi); cursor: help; }
.c26-crow.on { box-shadow: inset 0 0 0 1.5px var(--pw, var(--tarmac-hi)); }
.c26-crow[data-open] { cursor: pointer; }
.c26-crow:not(.on) { background: transparent; box-shadow: none; border: 1.5px dashed var(--tarmac-hi); }
.c26-crow:hover, .c26-crow:focus-visible { background: var(--tarmac-hi); }
.c26-crow:focus-visible { outline: 2px solid var(--paint); outline-offset: 1px; }
.c26-crow-pics { display: flex; align-items: center; justify-content: center; }
.c26-crow-pics img { width: 30px; height: 30px; image-rendering: pixelated; object-fit: contain; }
.c26-crow-pics img + img { margin-left: -14px; }
.c26-crow-pics i { margin: 0 1px; font: 800 0.75rem var(--f-text); font-style: normal; color: var(--paper-dim); }
.c26-crow-pics i + img { margin-left: 0; }
.c26-crow:not(.on) .c26-crow-pics img { opacity: .45; filter: grayscale(1); }
.c26-crow-n { font: 800 0.9375rem var(--f-text); font-style: normal; color: var(--paper-dim); }
.c26-crow-txt { display: grid; gap: 1px; min-width: 0; }
.c26-crow-txt b { font: 800 0.875rem/1.2 var(--f-text); color: var(--paper); }
.c26-crow-txt small { font: 600 0.75rem/1.3 var(--f-text); color: var(--paper-dim); }
.c26-crow:not(.on) .c26-crow-txt b { color: var(--paper-dim); }
.c26-crow-aux { font: 800 0.75rem var(--f-text); color: var(--paper-dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* enhancements: three equal tiles across the section, Ingress style: the module, what it adds, who fitted it */
.c26-enhs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.c26-enh { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 92px; padding: 8px 4px; box-sizing: border-box; border-radius: 6px;
  background: var(--asphalt); text-align: center; cursor: help; }
.c26-enh .c26-tag { width: 40px; height: 40px; }
.c26-enh > b { font: 800 0.6875rem/1.15 var(--f-text); color: var(--ok); }
.c26-enh.empty { background: transparent; border: 1.5px dashed var(--tarmac-hi); color: var(--paper-dim); }
.c26-enh.empty span { font: 800 1.25rem/1 var(--f-text); }
.c26-enh.empty small { font: 600 0.75rem var(--f-text); }

.c26-bar[data-tip] { cursor: help; }
.c26-power-chip.stack { color: #e8deff; box-shadow: inset 0 0 0 2px #8f62d8; }
.c26-power-slot.empty { cursor: help; background: transparent; }
.c26-power-slot.empty img { opacity: .28; filter: grayscale(1); }
.qr .c26-power-slot:not(.empty):hover { background: var(--tarmac-hi); }
.c26-power-slot:focus-visible { outline: 2px solid var(--paint); outline-offset: 1px; }
.c26-power-sum { font: 800 0.875rem/1.2 var(--f-text); color: var(--paper); margin-left: 2px; }
.c26-power-slot.boost { width: 36px; height: 36px; }
.c26-power-slot.boost img { width: 30px; height: 30px; }
.c26-power-more, .c26-power-chip { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 9px; border-radius: 6px; cursor: help;
  font: 800 0.8125rem/1 var(--f-text); color: var(--paper-dim); box-shadow: inset 0 0 0 2px var(--tarmac-hi); }
.c26-power-chip { color: var(--paper); background: var(--asphalt); }
.c26-power-more:focus-visible, .c26-power-chip:focus-visible { outline: 2px solid var(--paint); outline-offset: 1px; }
.c26-row .c26-tag { width: 44px; height: 44px; }
.c26-part { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; white-space: nowrap; }
.c26-part .c26-tag { width: 22px; height: 22px; border-radius: 3px; box-shadow: none; }
.c26-part .c26-tag::before { display: none; }
.c26-part .c26-tag .c26-i { width: 15px; height: 15px; }

/* Auras */
.c26-auras { display: grid; gap: 6px; }
.c26-aura-row { display: grid; grid-template-columns: minmax(0, 1fr) 3ch auto; gap: 10px; align-items: center; min-height: 52px; padding: 6px 10px; border-radius: 6px; background: var(--asphalt); }
.c26-aura-row > b { font: 800 1rem/1.2 var(--f-text); }
.c26-wcount { margin: 0 0 8px; font: 700 0.875rem/1 var(--f-text); color: var(--paper-dim); }
.c26-wcount b { margin-right: 4px; font: 900 1.5rem/1 var(--f-display); color: var(--paint); vertical-align: -2px; }
.c26-aura-v { font: 900 1.75rem/1 var(--f-display); text-align: right; font-variant-numeric: tabular-nums; }
.c26-aura-v.up { color: var(--paint); }
.qr .c26-aura-row .c26-mini { min-height: 40px; padding: 4px 12px; }
.qr .c26-mini:disabled { background: #3a3732; color: #8d8577; }

/* Radio */
.c26-radio { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.c26-radio li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; font: 400 0.875rem/1.4 var(--f-text); }
.c26-radio time { color: var(--paper-dim); font-variant-numeric: tabular-nums; font-size: 0.8125rem; padding-top: 1px; }

/* Night Logs */
.c26-log { padding: 10px 0 12px; }
.c26-log + .c26-log { background: repeating-linear-gradient(90deg, rgba(226,181,46,.35) 0 14px, transparent 14px 24px) 0 0 / 100% 2px no-repeat; }
.c26-log-head, .c26-log-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.c26-log-n { font: 900 1.375rem/1 var(--f-display); }
.c26-log-foot { font: 400 0.8125rem var(--f-text); color: var(--paper-dim); }
/* Night Logs, World: the Night you pick on a plate like the clock's (its Chimes in big stencil numbers, the Undefined's in
   their violet in the middle, a bar of the three shares), the Nights before it to pick from, then each zone's own */
.c26-wp { padding: 10px 12px 9px; border-radius: 8px; background: var(--asphalt); box-shadow: inset 0 0 0 1px rgba(230,220,198,.07); cursor: help; }
.c26-wp-top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.c26-wp-side { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0;
  font: 900 2rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.c26-wp-side img { width: auto; height: 26px; flex: none; }
.c26-wp-side.v b { color: #e48a6f; } .c26-wp-side.s b { color: #6cc7da; }
.c26-wp-mid { text-align: center; white-space: nowrap; }
.c26-wp-night { display: flex; align-items: baseline; justify-content: center; }
.c26-wp-night span { margin-right: 5px; font: 700 0.75rem/1 var(--f-text); color: var(--paper-dim); }
.c26-wp-night b { font: 900 1.1875rem/1 var(--f-display); color: var(--paint); font-variant-numeric: tabular-nums; }
.c26-wp-mid > small { display: block; margin-top: 3px; font: 700 0.75rem/1 var(--f-text); color: var(--paper-dim); }
.c26-wp-undef { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin-top: 5px; }
.c26-wp-undef span { font: 700 0.75rem/1 var(--f-text); color: #b18ce8; }
.c26-wp-undef b { font: 900 1.375rem/1 var(--f-display); color: #b18ce8; font-variant-numeric: tabular-nums; }
.c26-wp-foot { font: 600 0.8125rem/1.3 var(--f-text); color: var(--paper-dim); text-align: center; }
.c26-wp-foot b { font-weight: 800; }
/* the three shares: rust from the left, the Undefined's violet hatching in the middle, mercury from the right; nothing
   played yet, an empty dashed track. The plate's has the clock bar's mark at its middle: past it is more than half */
.c26-tri { position: relative; display: flex; height: 8px; border-radius: 2px; overflow: hidden; background: var(--tarmac-hi); }
.c26-tri i { flex: none; height: 100%; box-shadow: inset 0 1px 0 rgba(230,220,198,.18); }
.c26-tri .v { background: var(--rust); } .c26-tri .s { background: var(--mercury); }
.c26-tri .u { background: repeating-linear-gradient(135deg, var(--violet) 0 3px, #5b3e8c 3px 6px); } /* design-tells-ok: R3 (Undefined violet hatching, as on the clock's bar) */
.c26-tri.empty { box-sizing: border-box; background: none; border: 1.5px dashed var(--tarmac-hi); }
.c26-tri.big { height: 10px; margin: 11px 0 9px; overflow: visible; }
.c26-tri.big i:first-child { border-radius: 2px 0 0 2px; } .c26-tri.big i:last-child { border-radius: 0 2px 2px 0; }
.c26-tri.big::before { content: ""; position: absolute; z-index: 1; left: 50%; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--paper); opacity: .45; }
/* the Nights: this one and the 5 before, the one on the plate filled; past three and a half rows it scrolls, the half row
   showing there are more */
.c26-nlist { display: grid; gap: 4px; max-height: calc(3.5 * 44px + 3 * 4px); overflow-y: auto; overscroll-behavior: contain; }
.qr .c26-nrow { display: grid; grid-template-columns: 4.75rem minmax(0, 1fr) 6.25rem; align-items: center; column-gap: 12px; min-height: 44px;
  margin: 0; padding: 4px 10px; border: 0; border-radius: 6px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--tarmac-hi);
  color: var(--paper); font: inherit; line-height: 1.2; text-align: left; text-transform: none; cursor: pointer; }
.qr .c26-nrow:hover, .qr .c26-nrow:focus { background: var(--tarmac-hi); color: var(--paper); }
.qr .c26-nrow.on { background: var(--tarmac-hi); box-shadow: inset 0 0 0 2px var(--paint); }
.qr .c26-nrow:focus-visible { outline: 2px solid var(--paint); outline-offset: 1px; }
.c26-nrow-n { display: grid; font: 900 1.0625rem/1 var(--f-display); white-space: nowrap; }
.c26-nrow-n small { margin-top: 2px; font: 800 0.6875rem/1 var(--f-text); color: var(--paint); }
.c26-nrow-r { justify-self: end; font: 600 0.8125rem/1.2 var(--f-text); color: var(--paper-dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.c26-nrow-r b { font-weight: 800; }
/* each zone on that Night: its name, its bar, who led it and by how much, a pin to look at it on the map */
.c26-zrows { display: grid; }
.c26-zrow { display: grid; grid-template-columns: minmax(0, 6.5rem) minmax(0, 1fr) 6.25rem 32px; align-items: center; column-gap: 12px; min-height: 40px; padding: 0 0 0 10px; cursor: help; }
.c26-zrow + .c26-zrow { border-top: 1px solid rgba(230,220,198,.06); }
.c26-zrow-n { min-width: 0; font: 700 0.875rem/1.2 var(--f-text); color: var(--paper); }
.c26-zrow-n .c26-mq:not(.slide) { text-align: left; }
.qr .c26-zgo { display: grid; place-items: center; width: 32px; height: 32px; margin: 0; padding: 0; border: 0; border-radius: 6px; background: transparent;
  color: var(--paper-dim); font-size: 18px; line-height: 1; cursor: pointer; }
.qr .c26-zgo:hover, .qr .c26-zgo:focus { background: var(--tarmac-hi); color: var(--paper); }
.c26-zgo.here { color: var(--paint); cursor: help; }
.c26-zgo .c26-i { width: 18px; height: 18px; }
@media (max-width: 440px) {
  .qr .c26-nrow { grid-template-columns: 4.5rem minmax(0, 1fr) 5.75rem; column-gap: 8px; }
  .c26-zrow { grid-template-columns: minmax(0, 5.25rem) minmax(0, 1fr) 5.5rem 32px; column-gap: 8px; padding-left: 8px; }
}

/* Menu */
.c26-switch { margin-left: auto; font-weight: 800; color: var(--paint); }

/* ---------- the Night clock plate (bottom) ---------- */
.c26-clockplate { position: fixed; z-index: 10005; left: 50%; bottom: calc(10px + var(--safe-b)); transform: translateX(-50%);
  width: min(480px, calc(100vw - 20px)); padding: 8px 12px 8px; border-radius: 10px; background: var(--grain), var(--tarmac); color: var(--paper);
  box-shadow: 0 10px 26px rgba(0,0,0,.45), inset 0 0 0 1px var(--line); font: 400 min(0.8125rem, 18px)/1.3 var(--f-text); }
.c26-cp-top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.c26-cp-side { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0;
  font: 900 min(1.875rem, 42px)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.c26-cp-side img { width: auto; height: 24px; flex: none; }
.c26-cp-side b { min-width: 0; overflow: hidden; text-overflow: clip; }
/* a score always fits its column: on a narrow phone with big text it shrinks to fit five digits rather than clip */
.c26-cp-side { container-type: inline-size; }
.c26-cp-side b { font-size: min(1em, calc((100cqi - 28px) / 2.1)); }
.c26-cp-side.v b { color: #e48a6f; } .c26-cp-side.s b { color: #6cc7da; }
/* Seconds landing: the number kicks and "+42" rises off it in the side's colour */
.c26-cp-side { position: relative; overflow: visible; }
.c26-cp-side b { display: inline-block; }
.c26-cp-side.bump b { animation: c26-kick .32s cubic-bezier(.2, 0, 0, 1); }
@keyframes c26-kick { 0% { transform: scale(1); } 30% { transform: scale(1.18); filter: brightness(1.35); } 100% { transform: scale(1); } }
.c26-cp-plus { position: absolute; bottom: 100%; font: 900 min(1.375rem, 31px)/1 var(--f-display); font-style: normal; pointer-events: none;
  text-shadow: 0 2px 0 var(--ink); animation: c26-rise 1.1s cubic-bezier(.2, 0, 0, 1) forwards; }
.c26-cp-side.v .c26-cp-plus { right: 0; color: #e48a6f; } .c26-cp-side.s .c26-cp-plus { left: 0; color: #6cc7da; }
@keyframes c26-rise { 0% { transform: translateY(8px); opacity: 0; } 18% { transform: translateY(0); opacity: 1; } 70% { opacity: 1; } 100% { transform: translateY(-16px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .c26-cp-side.bump b { animation: none; } .c26-cp-plus { animation: c26-fade 1.1s forwards; } @keyframes c26-fade { 70% { opacity: 1; } 100% { opacity: 0; } } }
.c26-cp-mid { text-align: center; }
.c26-cp-hour { display: flex; align-items: baseline; justify-content: center; gap: 3px; white-space: nowrap; }
.c26-cp-hour { gap: 0; }
.c26-cp-hour span { font: 700 min(0.75rem, 17px)/1 var(--f-text); color: var(--paper-dim); margin-right: 5px; }
.c26-cp-hour b, .c26-cp-hour small { font: 900 min(1.1875rem, 27px)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.c26-cp-hour b { color: var(--paint); }
.c26-cp-hour small { color: var(--paper-dim); }
.c26-cp-night { max-width: 100%; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; font: 700 min(0.75rem, 17px)/1 var(--f-text); color: var(--paper-dim); white-space: nowrap; }
/* the Undefined's own score this Hour, in their violet, the way the console writes it */
.c26-cp-undef { position: relative; margin-top: 4px; display: flex; align-items: baseline; justify-content: center; gap: 4px; white-space: nowrap; }
.c26-cp-undef span { font: 700 min(0.75rem, 17px)/1 var(--f-text); color: #b18ce8; }
.c26-cp-undef b { font: 900 min(1.0625rem, 24px)/1 var(--f-display); color: #b18ce8; font-variant-numeric: tabular-nums; }
.c26-cp-undef.bump b { animation: c26-kick .32s cubic-bezier(.2, 0, 0, 1); }
.c26-cp-undef .c26-cp-plus { left: 50%; transform: translateX(-50%); color: #b18ce8; font-size: min(1.0625rem, 24px); }
/* the tug of war for this Hour: rust pulls from the left, mercury from the right, the paint knot marks the front */
.c26-tug { position: relative; height: 10px; margin: 10px 3px 2px; --v: 50%; }
.c26-tug i { position: absolute; top: 0; bottom: 0; box-shadow: inset 0 1px 0 rgba(230,220,198,.18); transition: width .8s cubic-bezier(.2, 0, 0, 1); }
.c26-tug { --hv: 0%; --hs: 0%; }
.c26-tug .v { left: var(--hv); width: calc(var(--v) - var(--hv)); background: var(--rust); }
.c26-tug .s { left: var(--v); width: calc(100% - var(--v) - var(--hs)); background: var(--mercury); }
/* what the Undefined took from each side and still hold in their nodes: violet hatching on the side's outer end */
.c26-tug .hv, .c26-tug .hs { width: 0; background: repeating-linear-gradient(135deg, var(--violet) 0 3px, #5b3e8c 3px 6px); } /* design-tells-ok: R3 (Undefined violet hatching, two shades of one hue, not a purple-to-blue wash) */
.c26-tug .hv { left: 0; width: var(--hv); border-radius: 2px 0 0 2px; }
.c26-tug .hs { right: 0; width: var(--hs); border-radius: 0 2px 2px 0; }
.c26-tug:not(.held) .v { border-radius: 2px 0 0 2px; } .c26-tug:not(.held) .s { border-radius: 0 2px 2px 0; }
.c26-tug::before { content: ""; position: absolute; z-index: 1; left: 50%; top: -4px; bottom: -4px; width: 2px; margin-left: -1px;
  background: var(--paper); opacity: .45; }
.c26-tug .knot { position: absolute; z-index: 2; left: var(--v); top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px;
  border: 2px solid var(--ink); border-radius: 2px; background: var(--paint); transform: rotate(45deg); transition: left .8s cubic-bezier(.2, 0, 0, 1); }
/* ---------- reception: the clock tunes in to the zone in the middle of the map (main.js explore) ---------- */
/* no zone in range: the scores fall back and a dial needle sweeps the bar looking for a signal; tuning: it settles */
.c26-clockplate .c26-cp-side, .c26-clockplate .c26-cp-undef, .c26-clockplate .c26-track, .c26-tug i, .c26-tug .knot { transition: opacity .3s; }
.c26-clockplate.searching .c26-cp-side, .c26-clockplate.searching .c26-cp-undef, .c26-clockplate.searching .c26-track { opacity: .25; }
.c26-clockplate.searching .c26-tug i, .c26-clockplate.searching .c26-tug .knot { opacity: .12; }
.c26-tug .needle { display: none; position: absolute; z-index: 3; left: 50%; top: -7px; bottom: -7px; width: 3px; margin-left: -1.5px;
  border-radius: 1px; background: var(--paint); box-shadow: 0 0 0 1px var(--ink); }
.c26-clockplate.searching .c26-tug .needle, .c26-clockplate.tuning .c26-tug .needle { display: block; }
.c26-clockplate.searching .c26-tug .needle { animation: c26-seek 2.4s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
.c26-clockplate.tuning .c26-tug .needle { animation: c26-settle .9s cubic-bezier(.2, 0, 0, 1) forwards; }
@keyframes c26-seek { from { left: 4%; } to { left: 96%; } }
@keyframes c26-settle { 0% { left: 12%; } 55% { left: 62%; } 80% { left: 47%; opacity: 1; } 100% { left: 50%; opacity: 0; } }
/* the zone line's signal bars: one blinking while searching, filling while tuning, all three once tuned in */
.c26-sig { display: inline-flex; align-items: flex-end; gap: 1px; height: 9px; margin-right: 5px; vertical-align: -1px; }
.c26-sig i { width: 2px; border-radius: 1px; background: var(--paint); }
.c26-sig i:nth-child(1) { height: 3px; } .c26-sig i:nth-child(2) { height: 6px; } .c26-sig i:nth-child(3) { height: 9px; }
.c26-sig.searching i { background: var(--paper-dim); opacity: .3; }
.c26-sig.searching i:first-child { opacity: 1; animation: c26-blink 1.2s steps(2, jump-none) infinite; }
.c26-sig.tuning i { animation: c26-bar .9s steps(1) both; } .c26-sig.tuning i:nth-child(2) { animation-delay: .25s; } .c26-sig.tuning i:nth-child(3) { animation-delay: .5s; }
@keyframes c26-blink { from { opacity: 1; } to { opacity: .2; } }
@keyframes c26-bar { from { opacity: .25; } to { opacity: 1; } }
/* Migoy on the curfew band, when there's no zone in range: a speech bubble over the clock, his face talking */
.c26-migoy { position: fixed; z-index: 10006; left: 50%; bottom: calc(var(--plate-h) + 22px + var(--safe-b)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; width: min(380px, calc(100vw - 32px)); padding: 10px 14px 10px 10px; border-radius: 12px;
  background: var(--paper); color: var(--ink); box-shadow: 0 10px 24px rgba(0,0,0,.45); font: 600 min(0.875rem, 20px)/1.35 var(--f-text);
  animation: c26-bubble .28s cubic-bezier(.2, 0, 0, 1); }
.c26-migoy[hidden] { display: none; }
.c26-migoy::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -9px; border: 9px solid transparent; border-top-color: var(--paper); border-bottom: 0; }
.c26-migoy .c26-dj { margin: -4px 0 -4px -2px; animation: c26-talk .5s steps(1) infinite; }
.c26-migoy p { margin: 0; } .c26-migoy b { display: block; font: 800 min(0.75rem, 17px)/1.2 var(--f-text); color: #7a5a10; }
@keyframes c26-bubble { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes c26-talk { 0% { background-position: 0 0; } 25% { background-position: -52px 0; } 50% { background-position: -104px 0; } 75% { background-position: -52px 0; } }
/* the static (static.js): light grain crawling over the plate, and parts dropping out for a frame */
.c26-clockplate.static::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: var(--c26-static); background-size: 96px 96px; opacity: .2; animation: c26-grain .36s steps(3) infinite; }
@keyframes c26-grain { 0% { background-position: 0 0; } 33% { background-position: -31px 17px; } 66% { background-position: 23px -29px; } 100% { background-position: 0 0; } }
.c26-clockplate .c26-drop { visibility: hidden; }
/* while Migoy talks, the notices that live in that strip (ride mode, GPS, test ride) sit above his bubble */
body.c26-searching #c26-ride { bottom: calc(var(--plate-h) + 104px + var(--safe-b)); }
body.c26-searching #c26-gps, body.c26-searching #c26-testride { bottom: calc(var(--plate-h) + 150px + var(--safe-b)); }
@media (prefers-reduced-motion: reduce) {
  .c26-clockplate.searching .c26-tug .needle, .c26-clockplate.tuning .c26-tug .needle, .c26-sig i, .c26-migoy, .c26-migoy .c26-dj { animation: none; }
}
.c26-track { display: grid; grid-template-columns: repeat(26, minmax(0, 1fr)); gap: 3px; align-items: center; height: 12px; margin: 9px 0 6px; }
.c26-track i { height: 3px; border-radius: 1px; background: rgba(226,181,46,.4); }
.c26-track i.w-vultari { height: 10px; background: var(--rust); }
.c26-track i.w-solinar { height: 10px; background: var(--mercury); }
.c26-track i.w-none { height: 10px; background: #4a463f; }
.c26-track i.w-undefined { height: 10px; background: var(--violet); }
/* every won Hour the same tile with the same dark edge: a pale mercury square no longer reads bigger, or lower, than a
   dark rust one beside it */
.c26-track i[class^="w-"] { box-shadow: inset 0 0 0 1px rgba(20,19,16,.45); }
.c26-track i.now { height: 12px; background: linear-gradient(90deg, var(--paint) var(--p, 0%), #141310 var(--p, 0%)); box-shadow: 0 0 0 1.5px var(--paint); }
.c26-track.small { height: 10px; margin: 8px 0 6px; }
.c26-cp-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; color: var(--paper-dim); }
.c26-cp-foot span:last-child { margin-left: auto; }                 /* when big text wraps it, the wave timer stays right */
.c26-cp-foot span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c26-cp-foot b { color: var(--paper); font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- banners and notices make room for the plate ---------- */
#c26-ride { bottom: calc(var(--plate-h) + 20px + var(--safe-b)); }
#c26-gps { bottom: calc(var(--plate-h) + 66px + var(--safe-b)); }
/* Node 4's test ride (testride.js): always on screen while the position is simulated, where the GPS notice would be */
#c26-testride { display: none; position: fixed; left: 50%; transform: translateX(-50%); z-index: 10040; bottom: calc(var(--plate-h) + 66px + var(--safe-b));
  padding: 6px 12px; border: 2px solid var(--paint); border-radius: 6px; background: var(--tarmac); color: var(--paint); font: 800 0.8125rem/1.2 var(--f-text); }
.c26-testriding body.in-game #c26-testride { display: block; }
.qr .c26-n4-ride .c26-mini[aria-pressed="false"] { background: var(--tarmac-hi); color: var(--paper); }

/* ---------- phones: windows dock above the Night clock, one at a time ---------- */
@media (max-width: 640px) {
  .c26-pass:not(.mini) { width: 284px; padding: 8px 8px 4px; }
  .c26-pass:not(.mini) { grid-template-columns: 60px minmax(0, 1fr) auto; column-gap: 8px; }
  .c26-pass:not(.mini) .c26-rank-wrap { width: 60px; height: 60px; }
  .c26-pass:not(.mini) .c26-medals { right: 4px; bottom: -3px; }
  .c26-pass:not(.mini) .c26-rank { transform: scale(.857); transform-origin: 0 0; }
  .c26-pass-name { font-size: min(1.4375rem, 32px); }
  .c26-gauges { margin-top: 8px; }
  .qr .c26-dock button { min-height: 46px; padding: 5px 2px 4px; }
  .c26-win { left: 10px !important; right: 10px; top: auto !important; bottom: calc(var(--plate-h) + 18px + var(--safe-b)); width: auto; max-height: 58dvh; }
  .c26-win.min { left: 10px !important; right: auto; }
  .c26-win-bar { cursor: default; }
  #c26-toasts { top: auto; bottom: calc(var(--plate-h) + 24px + var(--safe-b)); }
  #c26-offline { top: auto; bottom: calc(var(--plate-h) + 20px + var(--safe-b)); }
}
@media (max-width: 380px) {
  .c26-cp-side { font-size: min(1.5625rem, 35px); gap: 4px; } .c26-cp-side img { height: 19px; } .c26-cp-top { gap: 8px; }
  .c26-cp-foot { font-size: min(0.75rem, 17px); }
}

@media (prefers-reduced-motion: reduce) {
  .c26-rank *, .c26-rank-plate, .c26-win, .c26-win-body.tuning * { animation: none !important; }
  .c26-win { transition: none; }
  .c26-needle { transition: none; }
  .c26-rank-chips, .c26-rank-burst { display: none; }
  .c26-gauge-track i { transition: none; }
}

/* ---------- the radio: the host's face in the title bar, a tuning dial, station presets ---------- */
.c26-dj { display: block; flex: none; width: 52px; height: 52px; margin: -16px -2px -6px -6px; image-rendering: pixelated;
  background: url("../img/radio/migoy.png") 0 0 / 208px 52px no-repeat; }
.c26-dj[data-who="neithan"] { background-image: url("../img/radio/neithan.png"); }
.c26-dj[data-who="jen"] { background-image: url("../img/radio/jen.png"); }
#win-radio .c26-win-title { font-variant-numeric: tabular-nums; }
.c26-tuner { position: relative; height: 34px; margin: 2px 0 10px; border-radius: 5px; overflow: hidden;
  background: repeating-linear-gradient(90deg, rgba(230,220,198,.35) 0 1px, transparent 1px 10px) 0 0 / 100% 7px no-repeat, #141310;
  box-shadow: inset 0 0 0 1px var(--line); }
.c26-tuner-scale span { position: absolute; left: var(--f); bottom: 4px; transform: translateX(-50%); font: 700 0.6875rem/1 var(--f-text);
  color: var(--paper-dim); font-variant-numeric: tabular-nums; }
.c26-tuner-scale span:first-child { transform: none; margin-left: 4px; } .c26-tuner-scale span:last-child { transform: translateX(-100%); margin-left: -4px; }
.c26-tuner-st { position: absolute; left: var(--f); top: 9px; width: 6px; height: 6px; margin-left: -3px; border-radius: 1px; background: var(--c); }
.c26-needle { position: absolute; left: var(--f); top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--paint);
  transition: left .32s cubic-bezier(.2, 0, 0, 1); }
/* tuning by hand: drag the dial (or swipe the stations); the needle follows the finger, the feed fades under grain */
.c26-tuner { cursor: ew-resize; touch-action: none; }
.c26-tuner:focus-visible { outline: 2px solid var(--paint); outline-offset: 2px; }
.c26-tuner.grab .c26-needle { transition: none; box-shadow: 0 0 0 1px rgba(23,21,15,.6); }
.c26-presets { touch-action: pan-y; }
.c26-feed { position: relative; }
.c26-feed.detuned > * { opacity: calc(.12 + .88 * var(--sig, 0)); transition: opacity .12s linear; }
.c26-feed.detuned::after { content: ""; position: absolute; inset: -2px 0; border-radius: 6px; pointer-events: none;
  background: var(--c26-static) 0 0 / 96px 96px; opacity: calc(.42 * (1 - var(--sig, 0))); animation: c26-grain .36s steps(3) infinite; }
.c26-deadair { display: grid; place-items: center; min-height: 96px; margin: 0; font: 900 1.375rem/1 var(--f-display); letter-spacing: .02em; }
.c26-feed.detuned .c26-deadair { opacity: .55; }
.c26-radio-enc { margin: 0 0 6px; color: #b18ce8; font-weight: 800; cursor: help; }
.c26-radio.enc span { color: var(--paper-dim); letter-spacing: .02em; }
.c26-dj.off { opacity: .35; filter: grayscale(1) contrast(.8); }
@media (prefers-reduced-motion: reduce) { .c26-feed.detuned::after { animation: none; } }
.c26-presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.qr .c26-preset { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 7px; align-items: baseline; min-height: 48px;
  padding: 7px 9px; border: 0; border-radius: 6px; background: var(--asphalt); color: var(--paper-dim); text-align: left; text-transform: none; }
.c26-preset b { grid-row: 1 / 3; font: 900 1.5rem/1 var(--f-display); color: var(--paper); font-variant-numeric: tabular-nums; align-self: center; }
.c26-preset span { font: 800 0.75rem/1.2 var(--f-text); color: var(--c); }
.c26-preset small { font: 400 0.75rem/1.2 var(--f-text); }
.qr .c26-preset:hover { background: var(--tarmac-hi); color: var(--paper); }
.qr .c26-preset.on { background: var(--asphalt); box-shadow: inset 0 0 0 2px var(--c); color: var(--paper); }
.c26-preset.on b { color: var(--c); }
.c26-win-body.tuning .c26-radio, .c26-win-body.tuning .c26-wnote, .c26-win-body.tuning .c26-wempty { animation: c26-static .32s steps(4) both; }
@keyframes c26-static { 0% { opacity: 1; } 25% { opacity: .2; transform: translateX(2px); } 50% { opacity: .6; transform: translateX(-2px); } 75% { opacity: .1; } 100% { opacity: 0; } }

/* ---------- scroll bars: a lane line on asphalt ---------- */
.qr ::-webkit-scrollbar { width: 10px; height: 10px; }
.qr ::-webkit-scrollbar-track { background: linear-gradient(90deg, transparent 4px, rgba(23,21,15,.75) 4px 6px, transparent 6px); }
.qr ::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 2px; background-clip: padding-box;
  background-image: repeating-linear-gradient(180deg, rgba(226,181,46,.8) 0 12px, transparent 12px 18px); }
.qr ::-webkit-scrollbar-thumb:hover { background-image: repeating-linear-gradient(180deg, var(--paint) 0 12px, transparent 12px 18px); }
.qr ::-webkit-scrollbar-corner { background: transparent; }
@supports not selector(::-webkit-scrollbar) { .qr * { scrollbar-width: thin; scrollbar-color: rgba(226,181,46,.7) transparent; } }

/* ---------- the one tooltip (tip.js): a slip of notice paper; the layout itself never explains ---------- */
.c26-tip { position: fixed; z-index: 100002; left: 0; top: 0; display: flex; align-items: flex-start; gap: 9px; max-width: min(290px, calc(100vw - 16px));
  padding: 8px 11px 8px; border-radius: 6px; background: linear-gradient(rgba(230,220,198,.86), rgba(230,220,198,.86)), var(--grain), var(--paper);
  color: var(--ink); font: 700 0.8125rem/1.4 var(--f-text); box-shadow: 0 8px 20px rgba(0,0,0,.5), inset 0 0 0 1px rgba(23,21,15,.14);
  pointer-events: none; opacity: 0; transform: translateY(5px) scale(.94); transform-origin: var(--arrow, 50%) 100%;
  transition: opacity .12s ease-out, transform .18s cubic-bezier(.2, 1.5, .45, 1); }
.c26-tip.below { transform-origin: var(--arrow, 50%) 0; }
.c26-tip.pic { padding-left: 8px; }
.c26-tip.on { opacity: 1; transform: none; }
.c26-tip.on { pointer-events: auto; }                                  /* the pointer can reach it: its words open their own */
/* a game word (terms.js): its side's colour and its picture, dotted under; hover or tap it for its own tooltip */
.tip-term { font-weight: 800; white-space: nowrap; cursor: help; text-decoration: underline dotted 1px; text-underline-offset: 2px; }
.tip-term img, .tip-term svg { width: 1.2em; height: 1.2em; margin-right: 2px; vertical-align: -0.25em; object-fit: contain; image-rendering: pixelated; }
.tip-term.v { color: #9a3a1e; } .tip-term.s { color: #13667a; } .tip-term.u { color: #5b2f9a; } .tip-term.n { color: #5a4310; }
/* a card of its own in a tooltip (a turret's pass on hover): dark, like the passholder's pass, its words in light inks */
.c26-tip.card { display: block; width: min(262px, calc(100vw - 16px)); padding: 10px 12px; background: linear-gradient(rgba(29,28,25,.94), rgba(29,28,25,.94)), var(--grain), var(--asphalt);
  color: var(--paper); box-shadow: 0 8px 20px rgba(0,0,0,.55), inset 0 0 0 1px rgba(230,220,198,.14); }
.c26-tip.card::after { background: #1d1c19; }
.c26-tip.card .tip-term.v { color: #e48a6f; } .c26-tip.card .tip-term.s { color: #6cc7da; } .c26-tip.card .tip-term.u { color: #c4a8f0; } .c26-tip.card .tip-term.n { color: #f0d27a; }
.c26-tip.card .n { color: var(--paper); font-weight: 900; }
.c26-tpass-head { display: flex; align-items: center; gap: 9px; }
.c26-tpass-head img { width: 42px; height: 42px; flex: none; image-rendering: pixelated; object-fit: contain; }
.c26-tpass-head b { display: block; font: 900 1.25rem/1 var(--f-display); color: var(--fi); letter-spacing: .01em; }
.c26-tpass-head span { font: 700 0.75rem/1.3 var(--f-text); color: var(--paper-dim); }
.c26-tpass-bars { display: grid; gap: 3px; margin: 8px 0 7px; }
.c26-tpass-bars i { position: relative; display: block; height: 14px; overflow: hidden; border-radius: 3px; background: #2b2925; }
.c26-tpass-bars i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--ok); }
.c26-tpass-bars i.sh::before { background: #49b3c9; }
.c26-tpass-bars span { position: relative; padding-left: 6px; font: 800 0.6875rem/14px var(--f-text); color: var(--paper); text-shadow: 0 1px 2px var(--ink); font-style: normal; }
.c26-tpass-by { display: flex; align-items: center; gap: 7px; font: 700 0.75rem var(--f-text); color: var(--paper-dim); }
.c26-tpass-does { margin: 7px 0 0; font: 700 0.8125rem/1.4 var(--f-text); color: var(--paper); }
/* a passholder's call sign (Node 4's in road-paint yellow): no box, its side's colour in the stencil type, with a glint
   running through it every few seconds; one you can tap (it opens their pass) brightens under the pointer */
.qr .c26-callsign { display: inline-block; margin: 0; padding: 0; border: 0; border-radius: 0; min-height: 0; background: linear-gradient(100deg, var(--cs) 0 42%, #fff8e0 50%, var(--cs) 58% 100%);
  background-size: 260% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent;
  font: 900 1.0625rem/1.1 var(--f-display); letter-spacing: .03em; text-transform: none; cursor: pointer; animation: c26-glint 3.6s ease-in-out infinite; }
.qr .c26-callsign:hover, .qr .c26-callsign:focus { background-color: transparent; color: transparent; filter: brightness(1.25); }
.c26-callsign:focus-visible { outline: 2px solid var(--paint); outline-offset: 2px; }
span.c26-callsign { cursor: default; }
.qr .c26-callsign.plain { --cs: var(--paper-dim); animation: none; }
@keyframes c26-glint { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .qr .c26-callsign { animation: none; background: none; color: var(--cs); } }
/* a turret card's name block: two rows on shared baselines. Its name, and on the same line at the right "Built by";
   under them its role, and on the same line the builder's call sign. The block centres on the portrait, so no row floats */
.c26-card-id { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: last baseline; }
.c26-card-id.bot { display: block; }
.c26-card-bylabel { justify-self: end; font: 400 0.8125rem/1 var(--f-text); color: var(--paper-dim); white-space: nowrap; }
.c26-card-byname { justify-self: end; min-width: 0; max-width: 11em; overflow: hidden; }
.qr .c26-card-byname .c26-callsign { font-size: 1.25rem; white-space: nowrap; }
/* on a phone the name gets the whole width: one column, its name, its role, then "Built by" and the call sign on one line */
@media (max-width: 480px) {
  .c26-card-id:not(.bot) { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; row-gap: 2px; }
  .c26-card-id .c26-card-title, .c26-card-id .c26-card-sub { flex-basis: 100%; }
  .c26-card-id .c26-card-title { order: 1; } .c26-card-id .c26-card-sub { order: 2; }
  .c26-card-bylabel { order: 3; } .c26-card-byname { order: 4; max-width: none; }
}
.qr .c26-tpass-by .c26-callsign { font-size: 1.125rem; }
.qr .c26-enh .c26-callsign { max-width: 100%; overflow: hidden; font-size: 0.875rem; text-overflow: clip; white-space: nowrap; }
/* another passholder's pass (hud.js openPass) */
.c26-xpass-head { display: flex; align-items: center; gap: 12px; }
.c26-xpass-rank { flex: none; width: 58px; height: 58px; }
.c26-xpass-rank svg { width: 100%; height: 100%; }
.c26-xpass-name { font: 900 2rem/1 var(--f-display); color: var(--fi); letter-spacing: .01em; }
.c26-xpass-sub { font: 700 0.875rem/1.4 var(--f-text); color: var(--paper-dim); }
.c26-xpass-xp { height: 6px; margin: 12px 0 10px; border-radius: 3px; background: #2b2925; overflow: hidden; cursor: help; }
.c26-xpass-xp i { display: block; height: 100%; background: var(--paint); }
.c26-xpass-medals { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.c26-xpass-medals .c26-medal { width: 22px; height: 34px; }
/* its picture: the thing itself (a turret, an item, a host, an icon) on a dark tile that stamps in */
.tip-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 5px; overflow: hidden; background: var(--ink); color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(230,220,198,.12); }
.c26-tip.on .tip-ico { animation: tip-stamp .26s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes tip-stamp { from { transform: rotate(-9deg) scale(.6); } }
.tip-ico img { width: 40px; height: 40px; object-fit: contain; image-rendering: pixelated; }
.tip-ico svg { width: 24px; height: 24px; }
.tip-ico .c26-tag { width: 36px; height: 36px; }
.tip-ico .c26-dj { display: block; width: 52px; height: 52px; margin: 4px -4px -8px; animation: c26-talk .5s steps(1) infinite; }
.tip-key { display: inline-block; min-width: 1.5em; padding: 0 4px; border-radius: 3px; background: var(--ink); color: var(--paper); box-shadow: 0 2px 0 rgba(23,21,15,.45);
  font: 800 0.6875rem/1.45 var(--f-text); text-align: center; vertical-align: 1px; }
.tip-txt { display: grid; gap: 1px; min-width: 0; }
.tip-t { font: 800 min(0.75rem, 17px)/1.2 var(--f-text); color: #7a5a10; }                 /* its name, the way Migoy signs the band */
.tip-b { font: 700 0.8125rem/1.4 var(--f-text); color: var(--ink); }
.tip-2 { font-weight: 600; color: rgba(23,21,15,.72); }                                     /* the rest steps back a little */
.tip-b .n { font-weight: 900; color: var(--ink); background: linear-gradient(transparent 58%, rgba(226,181,46,.6) 58% 92%, transparent 92%); padding: 0 1px; }
@media (prefers-reduced-motion: reduce) { .c26-tip { transform: none; } .c26-tip.on .tip-ico, .tip-ico .c26-dj { animation: none; } }
.c26-tip::after { content: ""; position: absolute; left: var(--arrow, 50%); bottom: -4px; width: 9px; height: 9px; margin-left: -4.5px;
  background: var(--paper); transform: rotate(45deg); }
.c26-tip.below::after { bottom: auto; top: -4px; }
[data-tip] { -webkit-touch-callout: none; }
.c26-wempty[data-tip], .c26-wcount[data-tip], .c26-wnote[data-tip], .c26-cp-side, .c26-cp-mid, .c26-tug, .c26-gauge, .c26-pass-title { cursor: help; }
@media (prefers-reduced-motion: reduce) { .c26-medal-item { transition: none; } }
@media (prefers-reduced-motion: reduce) { .c26-tip { transition: none; } .c26-tug i, .c26-tug .knot { transition: none; } }

/* ---------- the link from an open card to its thing on the map (link.js) ---------- */
#c26-link { position: fixed; inset: 0; z-index: 10052; width: 100%; height: 100%; overflow: visible; pointer-events: none;
  opacity: 0; transition: opacity .15s ease-out; }
#c26-link.on { opacity: 1; }
#c26-link path, #c26-link circle { vector-effect: non-scaling-stroke; }
#c26-link .under { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: round; opacity: .75; }
#c26-link .dash { fill: none; stroke: var(--paint); stroke-width: 3; stroke-dasharray: 11 8; animation: c26-march .55s linear infinite; }
@keyframes c26-march { to { stroke-dashoffset: -19; } }
#c26-link .from { fill: var(--paint); stroke: var(--ink); stroke-width: 2.5; }
#c26-link .brk-under { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: square; opacity: .8; }
#c26-link .brk { fill: none; stroke: var(--paint); stroke-width: 3; stroke-linecap: square; }
#c26-link.noline .under, #c26-link.noline .dash, #c26-link.noline .from { display: none; }
/* the dimmed backdrop leaves a clear circle around the thing */
.c26-sheet-backdrop.spot { -webkit-mask: radial-gradient(circle at var(--tx) var(--ty), transparent calc(var(--tr) - 2px), #000 var(--tr));
  mask: radial-gradient(circle at var(--tx) var(--ty), transparent calc(var(--tr) - 2px), #000 var(--tr)); }
/* our brackets mark the selection, so the map's own square focus ring goes */
.qr .gm-style [role="button"]:focus, .qr .gm-style [role="button"]:focus-visible { outline: none; }
@media (prefers-reduced-motion: reduce) { #c26-link .dash { animation: none; } #c26-link { transition: none; } }

/* ---------- Node 4 console (admins) ---------- */
.c26-dock.admin { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.c26-n4tabs { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(min(100%, 4.25rem), 1fr)); }   /* four in a row; two when big text needs it */
.qr .c26-n4tabs .c26-wtab { font-size: 0.8125rem; padding: 6px 2px; }
.c26-n4 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
/* Costs: each service's pages, a link per line (what to look at is in the tooltip) */
.c26-n4-costs { display: grid; gap: 2px; }
.c26-n4-costs > b { margin-bottom: 2px; font: 800 0.8125rem/1.2 var(--f-text); color: var(--paper-dim); }
.qr .c26-n4-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 6px 10px; border-radius: 6px;
  background: var(--asphalt); color: var(--paper); font: 700 0.9375rem/1.2 var(--f-text); text-decoration: none; text-transform: none; }
.qr .c26-n4-link:hover { background: var(--tarmac-hi); color: var(--paint); }
.qr .c26-n4-link:focus-visible { outline: 2px solid var(--paint); outline-offset: 1px; }
.c26-n4-link .c26-i { width: 16px; height: 16px; flex: none; opacity: .7; }
/* Node 4 full screen (desktop): the commander's view, every section at once in panels across the screen */
.c26-win.max { top: 18px; left: 18px; right: 18px; bottom: 18px; width: auto; max-height: none; }
.c26-win.max .c26-win-body { flex: 1; }
.c26-n4-dash { columns: 330px; column-gap: 14px; }                   /* panels flow down the columns, no gaps under short ones */
.c26-n4-panel { min-width: 0; break-inside: avoid; margin: 0 0 14px; padding: 12px 14px 14px; border-radius: 8px; background: rgba(23,21,15,.55); box-shadow: inset 0 0 0 1px var(--line); }
.c26-n4-panel > h3 { margin: 0 0 10px; font: 900 1.375rem/1 var(--f-display); color: var(--paint); letter-spacing: .01em; }
@media (max-width: 640px) { .c26-win-maxbtn { display: none; } }
.c26-n4-in { width: 100%; padding: 10px 11px; border: 2px solid transparent; border-radius: 6px; background: var(--paper); color: var(--ink);
  font: 400 0.9375rem/1.3 var(--f-text); resize: vertical; }
.c26-n4-in:focus { outline: none; border-color: var(--paint); }
.c26-n4-in.num { width: 84px; padding: 6px 8px; text-align: right; font-variant-numeric: tabular-nums; }
.c26-n4-find { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.qr .c26-n4-find .c26-mini { min-height: 42px; padding: 4px 14px; }
.c26-n4-card { display: grid; gap: 8px; padding: 10px; border-radius: 6px; background: var(--asphalt); }
.c26-n4-name { font: 900 1.5rem/1 var(--f-display); }
.c26-n4-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.qr .c26-n4-acts .c26-secondary { min-height: 42px; margin: 0; padding: 8px; font-size: 0.875rem; }
.c26-n4-rows { display: grid; gap: 6px; }
.c26-n4-rows > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px;
  background: var(--asphalt); font: 400 0.875rem/1.3 var(--f-text); }
.c26-n4-step { display: inline-flex; align-items: center; gap: 10px; }
.c26-n4-step b { min-width: 2ch; text-align: center; font: 900 1.375rem/1 var(--f-display); }
.c26-n4-bad { color: #b18ce8; font-weight: 800; }

/* ---------- Node 4's passholder monitor: counts that filter, the roster, one pass in full, the wire ---------- */
.c26-n4-panel.wide { column-span: all; }
.c26-pm { display: grid; gap: 10px; min-width: 0; }
.qr .c26-pm h4 { margin: 8px 0 2px; font: 800 0.9375rem/1.2 var(--f-text); letter-spacing: 0; text-transform: none; color: var(--paper); }
.c26-pm h4 small { margin-left: 4px; font-weight: 400; color: var(--paper-dim); }
.c26-pm-on { color: var(--paint); font-weight: 800; }
.c26-pm-dim { color: var(--paper-dim); }
.c26-pm-sw { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 2px; background: var(--c); vertical-align: 1px; }
.c26-pm-bar { display: inline-block; width: 64px; height: 6px; border-radius: 3px; vertical-align: middle;
  background: linear-gradient(90deg, var(--c, var(--paint)) calc(var(--p) * 100%), rgba(230,220,198,.16) 0); }
/* the counts across the top: each one shows its passes; the one showing is filled */
.c26-pm-sum { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.qr .c26-pm-count { display: grid; align-content: start; gap: 3px; min-height: 0; margin: 0; padding: 8px 10px 9px; border: 0; border-radius: 6px;
  background: var(--asphalt); color: var(--paper); text-align: left; text-transform: none; letter-spacing: 0; cursor: pointer; }
.c26-pm-count b { font: 900 1.625rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.c26-pm-count > span { font: 600 0.8125rem/1.2 var(--f-text); color: var(--paper-dim); }
.c26-pm-count small { margin-left: 4px; font: 800 0.8125rem var(--f-text); }
.qr .c26-pm-count:hover { background: var(--tarmac-hi); }
.qr .c26-pm-count:focus-visible { outline: 2px solid var(--paint); outline-offset: 1px; }
.qr .c26-pm-count[aria-pressed="true"] { background: var(--paint); color: var(--ink); }
.c26-pm-count[aria-pressed="true"] > span, .c26-pm-count[aria-pressed="true"] small span { color: var(--ink) !important; }
.c26-pm-count.warn b { color: #b18ce8; }
.c26-pm-count.warn[aria-pressed="true"] b { color: var(--ink); }
/* search, side, sort, and when it last heard */
.c26-pm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.c26-pm-tools > input { flex: 1 1 170px; width: auto; }
.c26-pm-tools > select { flex: 0 1 150px; width: auto; }
.c26-pm-seg { display: inline-flex; gap: 4px; }
.qr .c26-pm-seg .c26-mini[aria-pressed="false"] { background: var(--tarmac-hi); color: var(--paper); }
.c26-pm-at { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font: 400 0.8125rem var(--f-text); color: var(--paper-dim); font-variant-numeric: tabular-nums; }
.qr .c26-pm-at .c26-mini { padding: 5px 8px; background: var(--tarmac-hi); color: var(--paper); }
.c26-pm-at .c26-i { display: block; width: 16px; height: 16px; }
.c26-pm-main { display: grid; gap: 12px; min-width: 0; }
/* the roster as a list (in the window): a pass a line, tap to open it */
.c26-pm-list { display: grid; gap: 4px; min-width: 0; }
.qr .c26-pm-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px; margin: 0; padding: 8px 10px;
  border: 0; border-radius: 6px; background: var(--asphalt); color: var(--paper); text-align: left; text-transform: none; letter-spacing: 0; cursor: pointer; }
.qr .c26-pm-row:hover { background: var(--tarmac-hi); }
.c26-pm-who { display: grid; gap: 3px; min-width: 0; font: 800 0.9375rem/1.2 var(--f-text); }
.c26-pm-who small { font: 400 0.8125rem/1.3 var(--f-text); color: var(--paper-dim); }
.c26-pm-when { flex: none; font: 400 0.8125rem var(--f-text); color: var(--paper-dim); text-align: right; }
.c26-pm:not(.wide).open > .c26-pm-sum, .c26-pm:not(.wide).open > .c26-pm-tools, .c26-pm:not(.wide).open .c26-pm-list,
.c26-pm:not(.wide).open .c26-pm-wire, .c26-pm:not(.wide):not(.open) .c26-pm-detail { display: none; }
.qr .c26-pm-back { display: inline-flex; align-items: center; gap: 4px; justify-self: start; min-height: 40px; padding: 6px 2px; }
.c26-pm-back .c26-i { width: 18px; height: 18px; }
/* the wire: the latest things anyone did */
.c26-pm-wire > div { display: grid; gap: 1px; }
.qr .c26-pm-w { display: grid; grid-template-columns: 74px minmax(0, max-content) minmax(0, 1fr); gap: 8px; align-items: baseline; width: 100%; min-height: 0; margin: 0;
  padding: 5px 8px; border: 0; border-radius: 4px; background: transparent; color: var(--paper); font: 400 0.8125rem/1.35 var(--f-text);
  text-align: left; text-transform: none; letter-spacing: 0; cursor: pointer; }
.qr .c26-pm-w:hover { background: var(--asphalt); }
.c26-pm-w time, .c26-pm-log time { color: var(--paper-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.c26-pm-w b { font-weight: 800; }
.c26-pm-w small, .c26-pm-log small { margin-left: 4px; color: var(--paper-dim); }
.c26-pm-w.no span, .c26-pm-log li.no span { color: #b18ce8; }
/* one pass in full */
.c26-pm-detail { display: grid; gap: 10px; align-content: start; min-width: 0; }
.c26-pm-detail > div { display: grid; gap: 10px; min-width: 0; }
.c26-pm-head { display: grid; gap: 7px; }
.c26-pm-tags { display: flex; flex-wrap: wrap; gap: 5px; font: 700 0.8125rem/1 var(--f-text); }
.c26-pm-tags > * { padding: 5px 8px; border-radius: 4px; background: var(--tarmac-hi); }
.c26-pm-tags [data-tip] { cursor: help; }
.c26-pm-mail { min-width: 0; overflow-wrap: anywhere; text-align: right; }
.c26-stats.c26-pm-stats { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin: 0; }
.c26-pm-stats dd { font-size: 1.0625rem; }
.c26-pm-stats [data-tip] { cursor: help; }
.c26-pm-tlist { display: grid; gap: 6px; }
.c26-pm-t { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; padding: 8px 10px; border-radius: 6px; background: var(--asphalt); }
.c26-pm-t > div:first-child { display: grid; gap: 2px; font: 800 0.9375rem/1.2 var(--f-text); }
.c26-pm-t small { font: 400 0.8125rem var(--f-text); color: var(--paper-dim); }
.c26-pm-hp { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.c26-pm-tacts { grid-column: 2; grid-row: 1; display: flex; gap: 6px; }
.c26-pm-items { display: flex; flex-wrap: wrap; gap: 5px; }
.c26-pm-items > span { padding: 5px 8px; border-radius: 4px; background: var(--tarmac-hi); color: var(--c, var(--paper)); font: 700 0.8125rem/1.2 var(--f-text); cursor: help; }
.c26-pm-items b { margin-left: 3px; color: var(--paper); }
.c26-pm-log { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; }
.c26-pm-log li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 8px; padding: 5px 8px; border-radius: 4px; font: 400 0.8125rem/1.35 var(--f-text); }
.c26-pm-log li:nth-child(odd) { background: rgba(23,21,15,.45); }
.c26-pm-log b { font-weight: 800; }
/* full screen: the roster as a table beside the pass, the wire under the table */
.c26-pm.wide .c26-pm-main { grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); grid-template-areas: "list detail" "wire detail"; align-items: start; gap: 12px 16px; }
.c26-pm.wide .c26-pm-list { grid-area: list; display: block; max-height: max(300px, calc(100dvh - 500px)); overflow: auto; border-radius: 6px; background: var(--tarmac); }
.c26-pm.wide .c26-pm-wire { grid-area: wire; }
.c26-pm.wide .c26-pm-wire > div { max-height: 170px; overflow: auto; }
.c26-pm.wide .c26-pm-detail { grid-area: detail; max-height: max(560px, calc(100dvh - 300px)); overflow: auto; padding: 12px 14px; border-radius: 8px; background: var(--tarmac); }
.c26-pm-tbl { width: 100%; margin: 0; border: 0; border-collapse: separate; border-spacing: 0; font: 400 0.8125rem/1.25 var(--f-text); font-variant-numeric: tabular-nums; }
.c26-pm-tbl th { position: sticky; top: 0; z-index: 1; padding: 0; border: 0; background: var(--tarmac); box-shadow: 0 1px 0 var(--line); text-align: left; white-space: nowrap; }
.qr .c26-pm-tbl th button, .c26-pm-tbl th > span { display: inline-flex; gap: 3px; min-height: 0; margin: 0; padding: 10px 6px 8px; border: 0; background: none;
  color: var(--paper-dim); font: 700 0.75rem/1 var(--f-text); text-transform: none; letter-spacing: 0; cursor: pointer; }
.c26-pm-tbl th > span { cursor: help; }
.qr .c26-pm-tbl th button:hover, .qr .c26-pm-tbl th button[aria-sort="ascending"], .qr .c26-pm-tbl th button[aria-sort="descending"] { color: var(--paper); }
.qr .c26-pm-tbl th button:focus-visible { outline: 2px solid var(--paint); outline-offset: -2px; }
.c26-pm-tbl th i { font-style: normal; color: var(--paint); }
.c26-pm-tbl td { padding: 8px 6px; border: 0; white-space: nowrap; vertical-align: middle; }
.c26-pm-tbl td:first-child, .c26-pm-tbl th:first-child { padding-left: 10px; }
.c26-pm-tbl tbody tr + tr td { box-shadow: inset 0 1px 0 rgba(230,220,198,.06); }
.c26-pm-tbl td small { margin-left: 3px; color: var(--paper-dim); }
.c26-pm-tbl tbody tr { cursor: pointer; }
.c26-pm-tbl tbody tr:hover td { background: var(--tarmac-hi); }
.c26-pm-tbl tbody tr[aria-selected="true"] td { background: rgba(226,181,46,.18); }
.c26-pm-tbl tbody tr:focus-visible { outline: 2px solid var(--paint); outline-offset: -2px; }
.c26-pm-tbl tr.out td { opacity: .62; }
.c26-pm-tbl td.k-name b { font-weight: 800; }
.c26-pm-tbl td.k-last { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.c26-pm-tbl td.k-rank .c26-pm-bar { display: block; width: 40px; height: 3px; margin-top: 4px; }
.c26-pm-tbl td[data-tip] { cursor: help; }
.c26-stats dd small { font: 700 0.75rem var(--f-text); color: var(--paper-dim); margin: 0 6px 0 2px; }
.c26-err-line { color: #b18ce8; font-weight: 700; }

/* ---------- the first-night tour (tutorial.js): Node 4's notes pinned to the real things ---------- */
#c26-coach { position: fixed; inset: 0; z-index: 10060; pointer-events: none; }
.c26-coach-brk { position: fixed; pointer-events: none; transition: left .25s cubic-bezier(.2, 0, 0, 1), top .25s cubic-bezier(.2, 0, 0, 1), width .25s, height .25s; }
.c26-coach-brk i { position: absolute; width: 14px; height: 14px; border: 0 solid var(--paint); filter: drop-shadow(0 0 0 var(--ink)) drop-shadow(1px 1px 0 var(--ink)); }
.c26-coach-brk i:nth-child(1) { left: 0; top: 0; border-width: 3px 0 0 3px; }
.c26-coach-brk i:nth-child(2) { right: 0; top: 0; border-width: 3px 3px 0 0; }
.c26-coach-brk i:nth-child(3) { right: 0; bottom: 0; border-width: 0 3px 3px 0; }
.c26-coach-brk i:nth-child(4) { left: 0; bottom: 0; border-width: 0 0 3px 3px; }
.c26-coach-slip { position: fixed; width: min(320px, calc(100vw - 20px)); padding: 10px 14px 10px; border-radius: 6px; pointer-events: auto;
  background: linear-gradient(rgba(230,220,198,.8), rgba(230,220,198,.8)), var(--grain), var(--paper); color: var(--ink);
  box-shadow: 0 12px 28px rgba(0,0,0,.5); }
.c26-coach-slip::after { content: ""; position: absolute; left: var(--arrow, 50%); bottom: -6px; width: 12px; height: 12px; margin-left: -6px;
  background: var(--paper); transform: rotate(45deg); }
.c26-coach-slip.below::after { bottom: auto; top: -6px; }
.c26-coach-slip.in { animation: c26-slip-in .2s ease-out; }
@keyframes c26-slip-in { from { opacity: 0; transform: translateY(6px); } }
.c26-coach-head { display: flex; justify-content: space-between; font: 800 0.75rem/1 var(--f-text); color: #5b5344; font-variant-numeric: tabular-nums;
  padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid rgba(23,21,15,.25); }
.qr .c26-coach-title { margin: 0 0 4px; letter-spacing: 0; font: 900 1.3125rem/1.05 var(--f-display); color: var(--ink); }
.c26-coach-text { margin: 0; font: 400 0.9375rem/1.45 var(--f-text); color: var(--ink); }
.c26-coach-acts { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.qr .c26-coach-acts .c26-link { color: var(--ink); min-height: 40px; }
.qr .c26-coach-acts .c26-primary { width: auto; min-height: 40px; margin: 0; padding: 8px 18px; font-size: 0.9375rem; }
@media (prefers-reduced-motion: reduce) { .c26-coach-brk { transition: none; } .c26-coach-slip.in { animation: none; } }
/* the compass: shows while the map is tilted or turned (needle to north); a tap lays it flat, north up */
.qr .c26-compass { position: fixed; z-index: 10006; right: 12px; bottom: calc(var(--plate-h, 120px) + 22px + var(--safe-b));
  display: grid; place-items: center; width: 44px; height: 44px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: var(--grain), var(--tarmac); box-shadow: 0 6px 16px rgba(0,0,0,.45), inset 0 0 0 1px var(--line); cursor: pointer; }
.qr .c26-compass:hover { background: var(--tarmac-hi); }
.c26-compass[hidden] { display: none; }
.c26-compass svg { width: 26px; height: 26px; transform: rotate(var(--h, 0deg)); }
.c26-compass .n { fill: var(--paint); } .c26-compass .s { fill: var(--paper-dim); }
/* ---- tap targets: every control answers a touch at least 44 px across. It's drawn at its own size (the approved
   look); the rest is an invisible margin around it (tooltip spots like the medals only show text, so they keep their
   own size and never take a tap from the control under them). Number fields can't carry one, so they grow instead. ---- */
.qr .c26-win-btn, .qr .c26-mini, .qr .c26-wtab, .qr .c26-zgo, .qr .c26-rank-btn, .qr .c26-coach-acts .c26-primary,
.qr .c26-coach-acts .c26-link, .qr .c26-n4-acts .c26-secondary { position: relative; }
.qr .c26-win-btn::after, .qr .c26-mini::after, .qr .c26-wtab::after, .qr .c26-zgo::after, .qr .c26-rank-btn::after, .qr .c26-dock button::after,
.qr .c26-coach-acts .c26-primary::after, .qr .c26-coach-acts .c26-link::after,
.qr .c26-n4-acts .c26-secondary::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
.c26-n4-in.num { min-height: 44px; }
