/* Live map: full-screen Leaflet map with floating, collapsible HUD panels. Theme in theme.css. */

.map-page { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.map-stage { position: relative; flex: 1; min-height: 0; }
#map { position: absolute; inset: 0; background: var(--bg-deep); }

/* ---------- HUD ---------- */

.hud { position: absolute; inset: 0; z-index: 500; pointer-events: none; }
.hud-left, .hud-right {
  position: absolute; top: 12px; bottom: 44px;
  display: flex; flex-direction: column; gap: 10px; min-height: 0;
}
.hud-left { left: 12px; width: min(360px, calc(100vw - 24px)); }
.hud-right { right: 12px; width: min(340px, calc(100vw - 24px)); bottom: 96px; }
.hud-left > *, .hud-right > * { pointer-events: auto; }

.hud-bar { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; }
.seg { display: flex; gap: 0; }
.seg button { --bevel-w: 2px; min-height: 30px; padding: 3px 10px 6px; font-size: 14px; }
.seg button[aria-checked="true"] { --b-bg: var(--green); --b-ink: #fff; --b-hover: var(--mc-yellow); text-shadow: 2px 2px 0 rgba(0, 0, 0, .35); }
.goto { display: flex; gap: 6px; flex: 1; min-width: 150px; }
.goto input { min-height: 30px; padding: 3px 8px; }
.goto button { min-height: 30px; padding: 3px 12px 6px; }
.panel-toggles { display: flex; flex-wrap: wrap; gap: 4px; width: 100%; }
.panel-toggles button[aria-pressed="false"] { --b-bg: #6a6a6a; --b-ink: #d0d0d0; }

.float { display: flex; flex-direction: column; min-height: 42px; max-height: 100%; overflow: hidden; }
.hud-right .float { flex: 0 1 auto; }
.hud-right .float:not(.collapsed) { min-height: 120px; }
.float-head {
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px;
  background: rgba(0, 0, 0, .25); cursor: pointer; user-select: none; flex: none;
}
.float-head h2 { flex: 1; margin: 0; font: 10px/1.4 var(--pixel); text-transform: uppercase; text-shadow: 2px 2px 0 #000; }
.float-head h2::before { content: "- "; color: var(--dim); }
.float.collapsed .float-head h2::before { content: "+ "; }
.float-head .count { color: var(--muted); font-size: 13px; }
.float-body { overflow-y: auto; min-height: 0; padding: 8px 12px 12px; }
.float.collapsed .float-body { display: none; }

.layer-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.layer-list label { font-size: 14px; }
.layer-list .layer-group {
  grid-column: 1 / -1; margin: 6px 0 0; font: 9px/1.5 var(--pixel); text-transform: uppercase; color: var(--gold); text-shadow: 2px 2px 0 #000;
}
.layer-list .layer-group:first-child { margin-top: 0; }
.layer-list label.sub { padding-left: 14px; }
/* Swatches: colour from --sw, set per row in map.js. */
.sw { flex: none; display: inline-block; width: 12px; height: 12px; background: var(--sw); box-shadow: 1px 1px 0 #000; }
.sw-ring { background: transparent; border: 2px solid var(--sw); box-shadow: none; }
.sw-dot { width: 10px; height: 10px; border-radius: 50%; }
.sw-line { height: 3px; width: 14px; }

.trails .trail-row { display: flex; align-items: center; gap: 8px; }
.trails .trail-row b { font-weight: 400; color: #fff; }
.trails .trail-row .dim { margin-left: auto; font-size: 13px; }
.trail-class {
  padding: 1px 6px 3px; font-size: 12px; color: #1a1a1a; background: var(--sw);
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .25), inset 2px 2px 0 rgba(255, 255, 255, .3);
}
.trails li .kv { display: none; margin-top: 8px; font-size: 13px; cursor: default; }
.trails li.open { background: rgba(255, 255, 255, .06); }
.trails li.open .kv { display: grid; }
.leaflet-popup-content .kv { margin-top: 6px; font-size: 13px; }

.leaflet-marker-icon.cap-icon {
  background: #fff; border: 2px solid #000; box-shadow: 2px 2px 0 rgba(0, 0, 0, .5);
}
.cap-pop { display: grid; gap: 4px; }

/* Portals, drawn with the game's own textures: the first frame of the animated nether portal strip in an obsidian
   border, an end portal frame with its eye, and the end portal sky in a round purpur border for gateways. Colours
   stand in when the coordinator has no client jar. */
.leaflet-marker-icon.portal-icon, .sw-tex-nether, .sw-tex-end { image-rendering: pixelated; }
.leaflet-marker-icon.portal-icon { box-shadow: 2px 2px 0 rgba(0, 0, 0, .5); }
.portal-nether, .sw-tex-nether {
  background: #7b2fbe url("/mc-assets/minecraft/textures/block/nether_portal.png") 0 0 / 100% auto no-repeat;
}
.portal-end, .sw-tex-end {
  background: url("/mc-assets/minecraft/textures/block/end_portal_frame_eye.png") 0 0 / 100% 100% no-repeat,
    #5f8b6c url("/mc-assets/minecraft/textures/block/end_portal_frame_top.png") 0 0 / 100% 100% no-repeat;
}
.portal-end-gateway { background: #0d2a2a url("/mc-assets/minecraft/textures/entity/end_portal.png") 0 0 / 400% auto; }
.leaflet-marker-icon.portal-nether { border: 2px solid #140c1f; }
.leaflet-marker-icon.portal-end { border: 2px solid #000; }
.leaflet-marker-icon.portal-end-gateway { border: 2px solid #a77ba7; border-radius: 50%; }
.portal-pop { display: grid; gap: 4px; }
.counts li.link .sw { vertical-align: -1px; }
.cap-thumb { display: block; width: 220px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--well); box-shadow: inset 0 0 0 2px #000; }
.cap-thumb:not([src]) { visibility: hidden; }
.leaflet-popup-content .row-end { margin-top: 6px; display: flex; justify-content: flex-end; }

/* ---------- square editor ---------- */

body.placing #map, body.placing .leaflet-interactive { cursor: crosshair !important; }
.leaflet-marker-icon.sq-handle { background: #ffff55; border: 2px solid #000; box-shadow: 2px 2px 0 rgba(0, 0, 0, .5); }
.sq-n, .sq-s { cursor: ns-resize; }
.sq-e, .sq-w { cursor: ew-resize; }
.sq-nw, .sq-se { cursor: nwse-resize; }
.sq-ne, .sq-sw { cursor: nesw-resize; }
path.sq-edit { cursor: move; }
.leaflet-tooltip.sq-size { font-size: 14px; pointer-events: none; }
.square-editor {
  position: absolute; z-index: 650; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(460px, calc(100vw - 24px));
  display: flex; flex-direction: column;
}
.square-editor .float-head { cursor: default; }
.square-editor .float-head h2::before { content: none; }
.square-editor .float-head .count { color: #fff; font-size: 14px; }
.square-editor .float-body { display: grid; gap: 8px; }
.square-editor .seg button { flex: 1; }
.sq-spacing { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.sq-spacing[hidden] { display: none; }
.sq-spacing input { width: 110px; min-height: 28px; padding: 2px 8px; }
.sq-bounds { margin: 0; font-size: 13px; }
.sq-stats { display: flex; flex-wrap: wrap; gap: 6px; min-height: 26px; }
.square-editor .error { margin: 0; min-height: 0; }
.square-editor .error:empty { display: none; }
.square-editor .row-end { display: flex; justify-content: flex-end; gap: 6px; }
.sq-skip { font-size: 14px; }
.leaflet-marker-icon.sq-vertex { border-radius: 50%; cursor: move; }
body.sketching #map, body.sketching .leaflet-interactive, body.note-placing #map { cursor: crosshair !important; }

/* ---------- layer hints ---------- */


/* ---------- plan panel ---------- */

.plan-body { display: grid; gap: 8px; }
.plan-body .layer-group { margin: 6px 0 0; font: 9px/1.5 var(--pixel); text-transform: uppercase; color: var(--gold); text-shadow: 2px 2px 0 #000; }
.plan-headline { margin: 0; color: #fff; }
.plan-bots li, .plan-searches li { display: flex; align-items: center; gap: 8px; cursor: default; }
.plan-bots li b { font-weight: 400; color: #fff; flex: none; }
.plan-bots li.manual b { color: var(--mc-yellow); }
.plan-what { flex: 1; min-width: 0; color: var(--muted); font-size: 13px; }
.plan-searches .plan-what b { font-weight: 400; color: #fff; }
.plan-acts { display: flex; gap: 4px; flex: none; }
.plan-notes { margin: 0; padding-left: 18px; font-size: 13px; color: var(--mc-yellow); }
.plan-notes:empty { display: none; }

/* ---------- drawings ---------- */

.draw-bar { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; }
.draw-bar[hidden] { display: none; }
.draw-colors { display: flex; gap: 4px; }
.swatch-btn { --bevel-w: 0; width: 26px; height: 26px; min-height: 26px; padding: 0; background: var(--sw); box-shadow: inset 0 0 0 2px #000; }
.swatch-btn[aria-checked="true"] { box-shadow: inset 0 0 0 2px #000, 0 0 0 3px #fff; }
.draw-bar button[hidden] { display: none; }
.leaflet-div-icon.map-note { background: none; border: 0; width: 0 !important; height: 0 !important; }
.map-note span {
  position: absolute; left: 0; bottom: 6px; transform: translateX(-50%); display: block; width: max-content; max-width: 220px;
  padding: 3px 8px 5px; color: #fff; background: rgba(0, 0, 0, .78); border-left: 4px solid var(--note);
  font: 13px/1.3 var(--mc); text-shadow: 2px 2px 0 #3f3f3f; white-space: pre-wrap; overflow-wrap: anywhere; cursor: pointer;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .45);
}
.map-note span::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -3px; width: 6px; height: 6px; background: var(--note); }
.drawing-pop p { margin: 0 0 6px; overflow-wrap: anywhere; }
.drawing-by { display: flex; align-items: center; gap: 6px; }
.note-form { display: grid; gap: 6px; width: 240px; }
.note-form textarea { resize: vertical; font: 14px var(--mc); }

/* ---------- the villager ---------- */

.helper { position: absolute; z-index: 660; right: 58px; bottom: 12px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.helper > * { pointer-events: auto; }
.helper-mascot {
  --bevel-w: 0; width: 58px; height: 70px; min-height: 0; padding: 4px 7px; background: rgba(0, 0, 0, .55);
  box-shadow: inset 0 0 0 2px #000, 3px 3px 0 rgba(0, 0, 0, .5);
}
.helper-mascot:hover, .helper-mascot[aria-expanded="true"] { background: rgba(60, 40, 20, .85); }
.villager { display: block; width: 100%; height: 100%; }
.helper-mascot .villager { animation: villager-idle 4s steps(1) infinite; }
.helper-mascot.thinking .villager { animation: villager-hmm .5s steps(2) infinite; }
@keyframes villager-idle { 0%, 92% { transform: none; } 94% { transform: translateY(-2px); } 96% { transform: none; } }
@keyframes villager-hmm { 0% { transform: rotate(-4deg); } 100% { transform: rotate(4deg); } }
.helper-panel { width: min(380px, calc(100vw - 24px)); max-height: min(60vh, 520px); display: flex; flex-direction: column; }
.helper-panel[hidden] { display: none; }
.helper-panel .float-head { cursor: default; }
.helper-panel .float-head h2::before { content: none; }
.helper-log { list-style: none; margin: 0; padding: 10px 12px; overflow-y: auto; flex: 1; min-height: 80px; display: grid; gap: 8px; align-content: start; }
.bubble { display: flex; gap: 8px; align-items: flex-start; }
.bubble .villager { flex: none; width: 24px; height: 32px; }
.bubble-text { padding: 6px 10px 8px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .35); font-size: 14px; }
.bubble-text p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.you { justify-content: flex-end; }
.bubble.you .bubble-text { background: rgba(85, 255, 85, .12); color: #fff; }
.bubble.thinking .bubble-text { color: var(--dim); }
.bubble-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; }
.helper-chips { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 12px 8px; }
.chip-btn { --bevel-w: 2px; min-height: 26px; padding: 2px 8px 4px; font-size: 12.5px; }
.helper-form { display: flex; gap: 6px; padding: 0 12px 12px; }
.helper-form input { flex: 1; min-height: 32px; }

.list { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.list li { padding: 7px 4px; border-bottom: 2px solid rgba(0, 0, 0, .3); cursor: pointer; }
.list li:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.list li:last-child { border-bottom: 0; }
.list .sub { display: block; color: var(--muted); font-size: 13px; }
.list .none { color: var(--dim); cursor: default; }
.list .none:hover { background: none; }
.events li { cursor: default; overflow-wrap: anywhere; }
.events li:hover { background: none; }
.events .when { color: var(--dim); font-size: 12px; float: right; }
.events .detail { display: block; font: 12.5px/1.4 var(--sans); color: var(--muted); -webkit-font-smoothing: antialiased; }

.bot-row { display: flex; align-items: center; gap: 10px; }
.bot-row .who { flex: 1; min-width: 0; }
.bot-row .who b { font-weight: 400; color: #fff; }
.bot-row .badge { font-size: 11px; padding: 2px 5px 4px; }
.bot-row.other-dim { opacity: .55; }

.keys { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.keys dt { color: var(--gold); }
.keys dd { margin: 0; }
.help-dialog { max-width: min(620px, 94vw); }
.help-dialog .how { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.help-dialog .how b { color: #fff; font-weight: 400; }
.help-dialog .patterns { margin-bottom: 10px; }

/* ---------- Leaflet, in game-tooltip style ---------- */

.leaflet-container { font: 14px/1.4 var(--mc); background: var(--bg-deep); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background: rgba(16, 0, 16, .94); color: #fff; border-radius: 0;
  box-shadow: inset 0 0 0 2px #2b0a5e, 0 0 0 2px #100010, 4px 4px 0 rgba(0, 0, 0, .5);
}
.leaflet-popup-content { margin: 10px 12px; font-size: 14px; }
.leaflet-popup-content b { color: var(--mc-yellow); font-weight: 400; }
.leaflet-popup-content pre { margin: 6px 0 0; white-space: pre-wrap; font-size: 13px; color: var(--muted); }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.leaflet-bar { border: 0 !important; box-shadow: var(--drop) !important; border-radius: 0 !important; }
.leaflet-bar a, .leaflet-bar a:hover {
  width: 34px; height: 34px; line-height: 32px; border-radius: 0 !important; border: 0;
  font: 20px/32px var(--mc); color: #141414; background-color: var(--button);
  background-image:
    linear-gradient(to top, rgba(0, 0, 0, .28) 3px, transparent 3px), linear-gradient(to left, rgba(0, 0, 0, .28) 3px, transparent 3px),
    linear-gradient(to right, rgba(255, 255, 255, .28) 3px, transparent 3px), linear-gradient(to bottom, rgba(255, 255, 255, .28) 3px, transparent 3px);
  background-repeat: no-repeat; background-position: left bottom, right top, left top, left top;
}
.leaflet-bar a:hover { color: var(--green-dark); }
.leaflet-bar a.leaflet-disabled { background-color: #505050; color: #8c8c8c; }
.leaflet-bottom.leaflet-right { margin: 0 12px 12px 0; }
.leaflet-bottom.leaflet-left { margin: 0 0 12px 12px; }
.leaflet-control { margin: 0 !important; }
.coords { padding: 4px 10px 6px; color: #fff; background: rgba(0, 0, 0, .72); font: 14px var(--mc); text-shadow: 2px 2px 0 #3f3f3f; }

.bot-pin { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.bot-pin .head { box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--mc-green), 3px 3px 0 4px rgba(0, 0, 0, .5); }
.bot-pin span { padding: 1px 6px 3px; color: #fff; background: rgba(0, 0, 0, .65); font: 13px var(--mc); text-shadow: 2px 2px 0 #3f3f3f; }
.leaflet-div-icon.bot-icon { background: none; border: 0; }

@media (max-width: 760px) {
  .hud-left { top: 8px; left: 8px; right: 8px; width: auto; bottom: auto; max-height: 55%; }
  .hud-right { top: auto; left: 8px; right: 8px; width: auto; bottom: 56px; max-height: 42%; }
  .hud-bar { padding: 8px; gap: 6px; }
  .seg button { padding: 3px 8px 6px; font-size: 13px; }
  .hud-left .float { max-height: 30vh; }
  .hud-right { bottom: 50px; }
  .leaflet-control-zoom { display: none; }   /* pinch to zoom */
}

/* The bot list is short: keep it whole while long site lists scroll. */
.hud-right .float[data-panel="bots"] { flex-shrink: 0; max-height: 40%; }

/* ---------- terrain ---------- */

.terrain-layer img { image-rendering: pixelated; }
#map { background: #0b0e12; }

/* ---------- 3D view ---------- */

.view3d { position: absolute; inset: 0; z-index: 450; background: #78a7ff; }
.view3d canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.view3d canvas:active { cursor: grabbing; }
.view3d-msg { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font: 14px var(--pixel); color: #fff; text-shadow: 2px 2px 0 #000; }
.view3d-load {
  position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 10px;
  margin: 0; background: rgba(20, 40, 80, .55); pointer-events: none;
}
.view3d-load-spin {
  width: 48px; height: 48px; image-rendering: pixelated;
  background:
    linear-gradient(#c6a15b, #c6a15b) center / 100% 100%,
    linear-gradient(#8b6914, #8b6914);
  box-shadow: inset 0 0 0 3px #5a3a10, 4px 4px 0 rgba(0, 0, 0, .45);
  animation: view3d-spin 1.1s steps(4) infinite;
}
.view3d-load-title { margin: 0; font: 16px var(--pixel); color: #fff; text-shadow: 2px 2px 0 #000; }
.view3d-load-detail { margin: 0; min-height: 1.2em; font: 13px var(--mc); color: #e8f0ff; text-shadow: 2px 2px 0 #000; opacity: .9; }
/* Hide the corner title while the loader is up — truncated coords look like a lone "…". */
.view3d:has(.view3d-load) .view3d-label { visibility: hidden; }
@keyframes view3d-spin {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(90deg) scale(1.05); }
  50% { transform: rotate(180deg) scale(1); }
  75% { transform: rotate(270deg) scale(1.05); }
  100% { transform: rotate(360deg) scale(1); }
}
.view3d-label {
  position: absolute; left: 12px; bottom: 12px; padding: 4px 10px 6px; color: #fff; background: rgba(0, 0, 0, .72);
  font: 14px var(--mc); text-shadow: 2px 2px 0 #3f3f3f; pointer-events: none;
}

.view3d canvas:focus { outline: none; }
.view3d .view3d-label { max-width: calc(50% - 190px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.v3-bar {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 2;
  display: flex; align-items: center; gap: 8px; padding: 6px 8px;
}
.v3-bar button.on { --b-bg: var(--gold); --b-ink: #2a1500; }
.v3-filters {
  position: absolute; right: 12px; bottom: 84px; z-index: 2; width: min(340px, calc(100vw - 24px));
  max-height: calc(100% - 96px); overflow-y: auto; padding: 10px 12px 12px; display: grid; gap: 10px; font-size: 14px;
}
.v3-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.v3-end { justify-content: flex-end; }
.v3-key { min-width: 44px; color: var(--muted); }
.v3-check { display: inline-flex; align-items: center; gap: 6px; }
.v3-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding-left: 4px; font-size: 13px; }
.v3-kinds[hidden] { display: none; }
.v3-count { color: var(--mc-yellow); margin-left: auto; padding-left: 4px; }
.v3-y { flex-wrap: nowrap; }
.v3-sliders { position: relative; flex: 1; height: 28px; }
.v3-sliders input[type="range"] {
  position: absolute; inset: 0; width: 100%; margin: 0; padding: 0; min-height: 0; background: none; border: 0;
  pointer-events: none; accent-color: var(--green);
}
.v3-sliders input[type="range"]::-webkit-slider-thumb { pointer-events: auto; }
.v3-sliders input[type="range"]::-moz-range-thumb { pointer-events: auto; }
.v3-yval { min-width: 82px; text-align: right; color: var(--mc-yellow); font-variant-numeric: tabular-nums; }
.v3-list { display: grid; gap: 4px; color: var(--muted); }
.v3-list input { color: var(--ink); }
@media (max-width: 700px) {
  .v3-bar { bottom: 56px; }
  .v3-filters { bottom: 104px; max-height: 55%; }
}

/* ---------- site detail ---------- */

.site-panel {
  position: absolute; z-index: 700; top: 12px; right: 12px; bottom: 92px; width: min(560px, calc(100vw - 24px));
  display: flex; flex-direction: column; overflow: hidden;
}
.site-panel .float-head { cursor: default; }
.site-panel .float-head h2 { font-size: 11px; }
.site-panel .float-head h2::before { content: none; }
.site-panel .float-body { flex: 1; padding: 12px 14px 16px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: #fff; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.site-actions { display: flex; gap: 6px; margin: 12px 0 4px; }
.site-sec { margin-top: 16px; }
.site-sec h3 { margin: 0 0 8px; font: 10px/1.5 var(--pixel); text-transform: uppercase; color: var(--gold); text-shadow: 2px 2px 0 #000; }
.site-sec .shots + h3 { margin-top: 14px; }
.counts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; font-size: 13.5px; }
.counts li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.counts li b { font-weight: 400; color: #fff; font-variant-numeric: tabular-nums; }
.counts li.link { cursor: pointer; grid-column: 1 / -1; }
.counts li.link:hover { color: #fff; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.shots p { margin: 0; }
.shot-groups > p { margin: 0; }
.shot-group + .shot-group { margin-top: 10px; }
.shot-group h4 { margin: 0 0 6px; font-size: 12px; font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.site-sec .shot-groups + h3 { margin-top: 14px; }
.tier { font: 10px/1.6 var(--pixel); text-shadow: 2px 2px 0 #000; }
.tier-high { color: #e06464; }
.tier-medium { color: #e0a84a; }
.tier-low { color: #6aa7e8; }
.shots figure { margin: 0; cursor: zoom-in; background: var(--well); box-shadow: inset 0 0 0 2px #000; }
.shots img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shots figcaption { padding: 3px 6px 4px; font-size: 12px; color: var(--muted); }
.iso-wrap > p { margin: 0; }
.iso-bar { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.iso-bar select { width: auto; flex: 1; min-height: 28px; padding: 2px 6px; font-size: 13px; }
.iso-meta { margin-left: auto; font-size: 12px; }
.iso-stage {
  display: grid; place-items: center; min-height: 200px; padding: 2px;
  background: radial-gradient(circle at 50% 40%, #2a3340, #12161c 75%); box-shadow: inset 0 0 0 2px #000;
}
canvas.iso { cursor: zoom-in; image-rendering: pixelated; }
.signs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.signs li { padding: 6px 8px; background: rgba(0, 0, 0, .25); }
.signs .kw { margin-left: 8px; color: var(--mc-aqua); }
.signs pre { margin: 4px 0 0; white-space: pre-wrap; color: #fff; font-size: 13px; }
.table-wrap { overflow-x: auto; }
table.mini { width: 100%; border-collapse: collapse; font-size: 12.5px; white-space: nowrap; }
table.mini th { text-align: left; color: var(--muted); font-weight: 400; padding: 3px 8px 3px 0; border-bottom: 2px solid rgba(0, 0, 0, .35); }
table.mini td { padding: 3px 8px 3px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.shot-dialog { width: auto; max-width: 92vw; padding: 14px; }
.shot-dialog img { display: block; max-width: 88vw; max-height: 80vh; }
.shot-dialog canvas { display: block; image-rendering: pixelated; }
.shot-dialog .row-end { margin-top: 10px; }
.leaflet-tooltip.mc-tip { background: rgba(16, 0, 16, .94); color: #fff; border: 0; border-radius: 0; font: 13px var(--mc); box-shadow: inset 0 0 0 2px #2b0a5e; }
.leaflet-tooltip.mc-tip::before { display: none; }
.hud-left .float[data-panel="plan"] { flex: 0 1 auto; max-height: 45%; }
.plan-pick { flex: none; max-width: 140px; font: inherit; font-size: 13px; }
