/* Callouts.io. One stylesheet for every page.
   Order: tokens and base, the top bar, shared pieces (buttons, labels, chips), home, game pages, cards, the support box,
   text pages, the footer, the map viewer, the area editor, game themes, small screens. */

/* ---- the site's typeface: Inter (SIL Open Font License, fonts/OFL-1.1.txt), one file holding every weight. It ships with the
   site so headlines and text look the same on every device; the system fonts after it only show until it has loaded. ---- */
@font-face { font-family: "Inter"; src: url("/fonts/Inter.woff2?v=1") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
/* two headline faces for game themes, also shipped with the site (both SIL Open Font License); a page only fetches the one its theme names */
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/BarlowCondensed-600.woff2?v=1") format("woff2"); font-weight: 100 649; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/BarlowCondensed-700.woff2?v=1") format("woff2"); font-weight: 650 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bitter"; src: url("/fonts/Bitter.woff2?v=1") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ---- tokens: a game's theme changes --accent, --accent2, --accent-ink, --canvas, --panel and --display; everything else follows ---- */
:root {
  --canvas: #0a0908; --paper: #f6f4ef; --accent: #4ad6c0; --accent2: var(--accent); --accent-ink: #06231f;
  --dim: color-mix(in srgb, var(--paper) 70%, transparent); --faint: color-mix(in srgb, var(--paper) 50%, transparent);
  --rule: color-mix(in srgb, var(--paper) 11%, transparent); --rule-strong: color-mix(in srgb, var(--paper) 24%, transparent);
  --surface: color-mix(in srgb, var(--paper) 4%, var(--canvas)); --surface-2: color-mix(in srgb, var(--paper) 8%, var(--canvas));
  --panel: color-mix(in srgb, color-mix(in srgb, var(--paper) 5%, var(--canvas)) 94%, transparent);
  --brand: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: var(--brand);
  --text: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --r: 12px; --r-sm: 7px; --pill: 999px; --gut: 24px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--canvas); }
body { background: var(--canvas); color: var(--paper); font: 16px/1.55 var(--text); height: 100dvh; overflow: hidden; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; }
h1 { font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.note, .muted { color: var(--dim); font-size: 13px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.stage:focus-visible, main:focus-visible { outline: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--paper) 22%, transparent) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; } ::-webkit-scrollbar-thumb { background: rgba(252, 250, 246, .18); border-radius: 9px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(252, 250, 246, .34); }
button, .cta, .card, .gcard, .gfeat, .lnk { -webkit-tap-highlight-color: transparent; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: .5rem .9rem; border-radius: 0 0 6px 0; font-weight: 700; text-decoration: none; }
.skip:focus { left: 0; }
.noscript { max-width: 760px; margin: 0 auto; padding: 28px var(--gut); overflow: auto; }
.noscript h1 { font-size: 1.8rem; margin-bottom: .6rem; } .noscript a { color: var(--accent); }
.loading { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; color: var(--dim); font: 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.loading i { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--rule-strong); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- the top bar ---- */
.top { display: flex; align-items: center; gap: 18px; height: 54px; padding: 0 var(--gut); border-bottom: 1px solid var(--rule); flex: none; position: relative; z-index: 20;
  background: color-mix(in srgb, var(--canvas) 88%, transparent); backdrop-filter: blur(10px); }
.brand { display: inline-flex; align-items: center; color: var(--paper); font: 700 17px/1 var(--brand); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--accent); }
.brand .mark { width: 1.3em; height: 1.3em; margin-right: .55rem; color: var(--accent); flex: none; }
.top .crumbs { padding-left: 18px; border-left: 1px solid var(--rule-strong); font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.top .crumbs:empty { display: none; }
.top .crumbs a { color: var(--paper); text-decoration: none; } .top .crumbs a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.topnav { margin-left: auto; display: flex; gap: 2px; }
.topnav a { padding: .45rem .75rem; border-radius: var(--r-sm); font-size: 14px; color: var(--dim); text-decoration: none; }
.topnav a:hover { color: var(--paper); background: color-mix(in srgb, var(--paper) 8%, transparent); }
.top .note { padding-left: 18px; border-left: 1px solid var(--rule); font-size: 12.5px; line-height: 1; color: var(--faint); white-space: nowrap; }
/* the language menu (app.js puts it in place of the plain <select id="lang">) */
select#lang { display: none; }
.langbox { position: relative; flex: none; }
.langbtn { display: flex; align-items: center; gap: .45rem; background: transparent; color: var(--paper); border: 1px solid var(--rule-strong); border-radius: var(--r-sm); padding: .42rem .6rem .42rem .55rem; font: 600 13px/1 var(--text); cursor: pointer; white-space: nowrap; }
.langbtn:hover, .langbtn[aria-expanded="true"] { border-color: var(--paper); }
.langbtn svg { width: 15px; height: 15px; flex: none; color: var(--dim); }
.langbtn .code { display: none; }
.langbtn i { width: 6px; height: 6px; border: solid var(--dim); border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform .12s; }
.langbtn[aria-expanded="true"] i { transform: translateY(1px) rotate(225deg); }
.langmenu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; margin: 0; padding: 6px; list-style: none; min-width: 12.5rem; max-height: min(70vh, 30rem); overflow-y: auto;
  background: color-mix(in srgb, var(--paper) 6%, var(--canvas)); border: 1px solid var(--rule-strong); border-radius: 10px; box-shadow: 0 18px 44px rgba(0, 0, 0, .55); }
.langmenu li { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: .55rem .7rem; border-radius: 6px; font: 500 14px/1.2 var(--text); color: var(--paper); cursor: pointer; outline: none; }
.langmenu li small { font: 600 11px/1 var(--text); letter-spacing: .06em; color: var(--faint); }
.langmenu li:hover, .langmenu li:focus-visible { background: color-mix(in srgb, var(--paper) 9%, transparent); }
.langmenu li[aria-selected="true"] { color: var(--accent); font-weight: 650; }
.langmenu li[aria-selected="true"] small { color: var(--accent); }
@media (max-width: 760px) { .langbtn .full { display: none; } .langbtn .code { display: inline; } .langbtn { padding: .42rem .5rem; } }
#acct { display: flex; align-items: center; gap: .6rem; font-size: 13px; white-space: nowrap; }
#acct span { color: var(--dim); }
#acct .signin, #acct button { color: #fff; background: #5865F2; border: 1px solid transparent; border-radius: var(--r-sm); padding: .5rem .8rem; font: 600 13px/1 var(--text); text-decoration: none; cursor: pointer; white-space: nowrap; }
#acct .signin:hover { filter: brightness(1.1); }
#acct button { background: transparent; border-color: var(--rule-strong); color: var(--paper); } #acct button:hover { border-color: var(--paper); }

/* ---- shared pieces ---- */
.wrap { width: 100%; max-width: 1240px; margin-left: auto; margin-right: auto; padding-left: var(--gut); padding-right: var(--gut); }
.kicker { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.kicker::before { content: ""; width: 7px; height: 7px; background: var(--accent); flex: none; }
.lead { color: var(--dim); font-size: 1.125rem; line-height: 1.6; margin: 0 0 1.75rem; max-width: 36rem; }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 44px; padding: 0 1.25rem; border-radius: var(--r-sm); border: 1px solid transparent;
  background: var(--accent); color: var(--accent-ink); font: 650 15px/1 var(--text); text-decoration: none; cursor: pointer; white-space: nowrap; transition: filter .15s, border-color .15s, background-color .15s; }
.cta:hover { filter: brightness(1.1); }
.cta.ghost { background: transparent; color: var(--paper); border-color: var(--rule-strong); }
.cta.ghost:hover { filter: none; border-color: var(--paper); background: color-mix(in srgb, var(--paper) 6%, transparent); }
.cta svg { width: 18px; height: 18px; flex: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.chip { display: inline-flex; align-items: center; gap: .5rem; min-height: 32px; padding: 0 .8rem; border: 1px solid var(--rule-strong); border-radius: var(--pill);
  background: color-mix(in srgb, var(--canvas) 72%, transparent); font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); text-decoration: none; white-space: nowrap; }
.chip b { color: var(--paper); font-weight: 700; }
.chip i { width: 7px; height: 7px; background: var(--accent); flex: none; }
.chip.on { color: var(--paper); border-color: color-mix(in srgb, var(--accent) 65%, transparent); }
.chip small { font-size: 10.5px; color: var(--faint); }
a.chip { color: var(--paper); transition: border-color .15s; } a.chip:hover { border-color: var(--accent); }
/* thin corner brackets, the same shape as the site's mark: around the hero picture, and as a frame on a game's hero */
.hud, .frame::before { --b: 1.5px; --l: 20px; --c: var(--paper); pointer-events: none; background-repeat: no-repeat;
  background-image: linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)),
    linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c));
  background-position: left top, left top, right top, right top, left bottom, left bottom, right bottom, right bottom;
  background-size: var(--l) var(--b), var(--b) var(--l), var(--l) var(--b), var(--b) var(--l), var(--l) var(--b), var(--b) var(--l), var(--l) var(--b), var(--b) var(--l); }
.frame { position: relative; }
.frame::before { content: ""; position: absolute; inset: -11px; opacity: .55; }
.ad { margin: 18px auto; width: calc(100% - 2 * var(--gut)); max-width: 1192px; min-height: 90px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--rule-strong); border-radius: 6px;
  color: var(--dim); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.side .ad { width: auto; min-height: 250px; margin: 14px 0 0; }

/* ---- list pages (home, a game, text): the page scrolls under the top bar, the footer sits at the bottom ---- */
main.list { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; scroll-behavior: smooth; }
main.list > * { flex: none; }
.band { padding-top: 72px; }
.band-alt { margin-top: 72px; padding-bottom: 72px; background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band-support { padding-bottom: 72px; }
.sec-head { margin-bottom: 28px; max-width: 46rem; }
.sec-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; scroll-margin-top: 24px; }
.sec-sub { margin: .8rem 0 0; color: var(--dim); }

/* ---- home: hero ---- */
.hero { position: relative; overflow: hidden; padding: 72px 0 68px; border-bottom: 1px solid var(--rule); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .8;
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px); background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(75% 95% at 78% 30%, #000, transparent 72%); mask-image: radial-gradient(75% 95% at 78% 30%, #000, transparent 72%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(46% 62% at 80% 38%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 4.7vw, 4.3rem); line-height: 1.02; letter-spacing: -.03em; font-weight: 750; margin-bottom: 1.3rem; text-wrap: balance; }
.stats { display: flex; flex-wrap: wrap; gap: 1rem 0; margin: 2.6rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--rule); }
.stats div { display: flex; flex-direction: column-reverse; padding-right: 1.75rem; margin-right: 1.75rem; border-right: 1px solid var(--rule); }
.stats div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.stats dd { margin: 0; font: 700 1.75rem/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats dt { margin-top: .5rem; font: 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.hero-art { margin: 0; }
.shotbox { aspect-ratio: 4 / 3; border-radius: var(--r); background: #070707 center / cover no-repeat; border: 1px solid var(--rule-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.shotbox .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.shotbox.noimg { background-image: var(--radar); }
.hero-art figcaption { margin-top: 22px; font: 11.5px/1.5 var(--mono); letter-spacing: .02em; color: var(--faint); }
.pin { position: absolute; z-index: 1; transform: translate(-50%, -50%); font: 600 12px/1 system-ui, sans-serif; font-style: normal; color: #fff; padding: 5px 10px; border-radius: 999px;
  background: rgba(12, 11, 10, .84); border: 1px solid rgba(255, 255, 255, .24); box-shadow: 0 2px 10px rgba(0, 0, 0, .6); white-space: nowrap; }
.pin::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; }
.mock-levels { position: absolute; z-index: 1; right: 14px; top: 14px; width: 128px; list-style: none; margin: 0; padding: 5px; border-radius: 8px; background: rgba(12, 11, 10, .88); border: 1px solid rgba(255, 255, 255, .16);
  font: 500 12px/1 system-ui, sans-serif; box-shadow: 0 6px 20px rgba(0, 0, 0, .5); }
.mock-levels li { padding: 7px 9px; border-radius: 5px; color: rgba(255, 255, 255, .6); }
.mock-levels li.on { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 2px 0 0 var(--accent); }

/* ---- home: what every map has ---- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.tile-text { padding: 20px 22px 24px; }
.tile h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -.01em; margin-bottom: .45rem; }
.tile p { margin: 0; color: var(--dim); font-size: .95rem; line-height: 1.55; }
.fx { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #070707 center / cover no-repeat; border-bottom: 1px solid var(--rule); }
.fx-levels { background: radial-gradient(circle at 36% 40%, #17191b, #070707 75%); }
.fx-levels > i { position: absolute; left: 8%; top: 17%; width: 52%; aspect-ratio: 4 / 3; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .3); background: #0a0908 var(--radar) center / cover no-repeat;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .6); }
.fx-levels > i:nth-child(1) { transform: translate(-7%, -12%); filter: brightness(.42); }
.fx-levels > i:nth-child(2) { filter: brightness(.68); }
.fx-levels > i:nth-child(3) { transform: translate(7%, 12%); }
.fx-levels .mock-levels { right: 6%; top: 50%; transform: translateY(-50%); width: 31%; }
.fx-3d .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.fx-3d .tilt { display: none; }
.fx-3d.noimg { background: radial-gradient(circle at 50% 30%, #1a1d1c, #060606); perspective: 600px; }
.fx-3d.noimg .tilt { display: block; position: absolute; inset: 12% 14% -6%; background: var(--radar) center / cover no-repeat; border-radius: 6px; transform: rotateX(56deg) rotateZ(-24deg);
  box-shadow: 14px 22px 0 -2px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .25); }
.fx-points { background-image: var(--radar); }
.fx-points i { position: absolute; transform: translate(-50%, -50%); width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .8); color: #111;
  font: 700 11px/20px system-ui, sans-serif; font-style: normal; text-align: center; box-shadow: 0 0 8px rgba(0, 0, 0, .8); }

/* ---- home: how callouts get their names ---- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 20px 0 20px 60px; border-top: 1px solid var(--rule); }
.steps li::before { content: "0" counter(step); position: absolute; left: 0; top: 24px; font: 500 13px/1 var(--mono); letter-spacing: .08em; color: var(--accent); }
.steps h3 { font-size: 1.1rem; font-weight: 650; letter-spacing: -.01em; margin-bottom: .3rem; }
.steps p { margin: 0; color: var(--dim); font-size: .97rem; }
.demo { position: relative; background: var(--canvas); border: 1px solid var(--rule-strong); border-radius: var(--r); overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.demo .tag { position: absolute; right: 12px; top: 12px; z-index: 2; font: 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; background: rgba(0, 0, 0, .72);
  border: 1px solid rgba(255, 255, 255, .26); color: rgba(255, 255, 255, .88); }
.demo-map { position: relative; aspect-ratio: 400 / 220; background: #070707 var(--radar) center / cover no-repeat; }
.demo-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo-map polygon { fill: color-mix(in srgb, var(--accent) 28%, transparent); stroke: #fff; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.demo-map circle { fill: #fff; stroke: #0b0b0c; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.demo-votes { list-style: none; margin: 0; padding: 14px; display: grid; gap: 6px; border-top: 1px solid var(--rule); }
.demo-votes li { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); font-size: .95rem; }
.demo-votes li:first-child { box-shadow: inset 2px 0 0 var(--accent); }
.demo-votes span { font: 12px/1 var(--mono); color: var(--dim); }

/* ---- games: the live ones large, the ones to come as a grid (each in its own colours) ---- */
.games-live { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr)); gap: 20px; }
.gfeat { display: grid; grid-template-columns: minmax(0, 50%) minmax(0, 1fr); align-items: stretch; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--r); overflow: hidden;
  color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.gfeat:hover, .gfeat:focus-visible { border-color: var(--accent); box-shadow: 0 18px 44px rgba(0, 0, 0, .45); }
.gfeat .art, .gcard .art { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 34%, var(--gc, #121212)), var(--gc, #0b0b0a) 72%); }
.gfeat .art { min-height: 240px; }
.gfeat .art img, .gcard .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gfeat .art span, .gcard .art span { font: 700 1.1rem/1.15 var(--brand); letter-spacing: .04em; text-transform: uppercase; color: #fff; text-align: center; padding: 0 14px; }
.gfeat .body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 24px 36px; }
.status { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 .9rem; font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--paper); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .2); }
.gfeat h3 { font: 700 clamp(1.7rem, 2.6vw, 2.3rem)/1.05 var(--brand); letter-spacing: -.02em; margin-bottom: .7rem; }
.gfeat p { margin: 0 0 1rem; color: var(--dim); max-width: 34rem; }
.gfeat .readout { font: 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--paper); margin-bottom: 1.4rem; }
.games-live:has(.gfeat:nth-child(2)) .gfeat { grid-template-columns: minmax(0, 1fr); }      /* two or more live games: side by side, art on top */
.games-live:has(.gfeat:nth-child(2)) .gfeat .art { min-height: 0; aspect-ratio: 460 / 215; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.gcard { display: block; border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--rule); color: inherit; text-decoration: none; transition: transform .15s, border-color .15s, box-shadow .15s; }
.gcard:hover, .gcard:focus-visible { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0, 0, 0, .45); }
.gcard .art { aspect-ratio: 460 / 215; border-bottom: 2px solid var(--accent); border-image: linear-gradient(90deg, var(--accent) 72%, var(--accent2) 72%) 1; }   /* (the game's two colours) */
.gcard .art img { filter: saturate(.6) brightness(.72); transition: filter .2s; }
.gcard:hover .art img, .gcard:focus-visible .art img { filter: none; }
.gcard .meta { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; }
.gcard b { font: 650 15.5px/1.25 var(--brand); letter-spacing: -.005em; }
.gcard .meta span { font: 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }

/* ---- a game's page: hero, map cards, the coming-soon state ---- */
.ghero { position: relative; overflow: hidden; --pb: 64px; padding: 88px 0 var(--pb); border-bottom: 1px solid var(--rule);
  background: radial-gradient(70% 130% at 88% 0%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 66%), var(--canvas); }
.ghero::before { content: ""; position: absolute; inset: 0; background: var(--art, none) center 22% / cover no-repeat; opacity: 0; transition: opacity .35s; }
.ghero.has-art::before { opacity: .7; }
.ghero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--canvas) 6%, color-mix(in srgb, var(--canvas) 78%, transparent) 42%, transparent 92%), linear-gradient(0deg, var(--canvas), transparent 45%); }
.ghero .wrap::after { content: ""; position: absolute; left: var(--gut); bottom: calc(-1 * var(--pb)); width: 132px; height: 3px; z-index: 3;      /* the game's two colours, sitting on the header's bottom edge */
  background: linear-gradient(90deg, var(--accent) 68%, var(--accent2) 68%); }
.hud { position: absolute; inset: 18px; z-index: 1; opacity: .4; }
.ghero .wrap { position: relative; z-index: 2; }
.ghero-in { max-width: 46rem; }
.ghero h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); letter-spacing: -.03em; font-weight: 750; margin-bottom: 1.1rem; text-wrap: balance; }
.ghero .lead { max-width: 40rem; color: color-mix(in srgb, var(--paper) 84%, transparent); }
.card { display: block; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; color: inherit; text-decoration: none; transition: transform .15s, border-color .15s, box-shadow .15s; }
.card:hover, .card:focus-visible { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0, 0, 0, .45); outline: none; }
.card .thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0a0908; border-bottom: 1px solid var(--rule); }
.card .thumb i { position: absolute; inset: 0; background: center / cover no-repeat; transition: transform .3s; }
.card:hover .thumb i, .card:focus-visible .thumb i { transform: scale(1.04); }
.card .meta { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.card b { font: 650 17px/1.2 var(--display); letter-spacing: -.01em; }
.card .meta span { font: 12px/1.3 var(--mono); letter-spacing: .02em; color: var(--dim); }
.card .count { position: absolute; left: 10px; top: 10px; font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: var(--pill);
  background: rgba(8, 8, 8, .78); border: 1px solid rgba(255, 255, 255, .3); color: #fff; white-space: nowrap; }
.card .count.none { color: rgba(255, 255, 255, .62); border-color: rgba(255, 255, 255, .16); }
.soon-panel { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.soon-panel:has(.soon-side[hidden]) { grid-template-columns: minmax(0, 1fr); }
.soon-main, .soon-side { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 32px 36px; }
.soon-main h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.1; letter-spacing: -.02em; margin-bottom: .9rem; }
.soon-main p:not(.kicker) { color: var(--dim); max-width: 42rem; margin: 0 0 1.3rem; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 13px 0 13px 30px; border-top: 1px solid var(--rule); color: var(--dim); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 10px; height: 10px; border: 1.5px solid var(--accent); }
.checks b { color: var(--paper); font-weight: 600; }
.soon-side h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -.01em; margin-bottom: .5rem; }
.soon-side p { margin: 0 0 1.3rem; color: var(--dim); }

/* ---- the support box ---- */
.support { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; padding: 28px 32px; background: var(--surface); border: 1px solid var(--rule-strong);
  border-radius: var(--r); box-shadow: inset 2px 0 0 var(--accent); }
.support-text { flex: 1 1 24rem; }
.support h2 { font-size: 1.25rem; font-weight: 650; letter-spacing: -.01em; }
.support p { margin: .45rem 0 0; color: var(--dim); max-width: 46rem; }
.support-btns { display: flex; gap: 10px; flex-wrap: wrap; }
/* who that person is: their picture, name and role (and, in the buttons, where to reach them) */
.owner { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; }
.owner img { width: 56px; height: 56px; flex: none; border-radius: 50%; border: 2px solid var(--accent); object-fit: cover; background: var(--surface); }
.owner b { display: block; font-size: 1.1rem; font-weight: 650; line-height: 1.2; color: var(--paper); }
.owner span { display: block; margin-top: 4px; font: 500 11.5px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }
.support .owner-ask { margin-top: .55rem; }
.support.who { display: block; padding: 0; background: none; border: 0; box-shadow: none; margin: 0 0 1.2rem; }
.support.who .owner { margin: 0; gap: 16px; } .support.who .owner img { width: 76px; height: 76px; } .support.who .owner b { font-size: 1.3rem; }
.support.buttons .owner-ask { margin: 0 0 1rem; }
.support.compact .owner { gap: 9px; margin: 0 0 9px; } .support.compact .owner img { width: 34px; height: 34px; border-width: 1.5px; }
.support.compact .owner b { font-size: 13px; } .support.compact .owner span { margin-top: 2px; font-size: 10px; }
.support.compact a.owner { text-decoration: none; color: inherit; } .support.compact a.owner > div { flex: 1; min-width: 0; } .support.compact a.owner svg { width: 16px; height: 16px; flex: none; color: var(--dim); }
.support.compact a.owner:hover span, .support.compact a.owner:hover svg { color: var(--paper); }
.support.buttons { display: block; padding: 0; background: none; border: 0; box-shadow: none; margin: 1.4rem 0 0; }
.support.compact { display: block; margin: 1rem 0 0; padding: .8rem .85rem; border-color: var(--rule); border-radius: var(--r-sm); background: color-mix(in srgb, var(--paper) 4%, transparent); box-shadow: none; }
.support.compact p { margin: 0 0 .65rem; font-size: 12.5px; line-height: 1.45; }
.support.compact .support-btns { gap: 6px; }
.support.compact .cta { flex: 1 1 auto; min-height: 32px; padding: 0 .5rem; font-size: 12px; gap: .35rem; background: transparent; color: var(--paper); border-color: var(--rule-strong); }
.support.compact .cta:hover { filter: none; border-color: var(--paper); }
.support.compact .cta svg { width: 14px; height: 14px; }
.support.compact .cta.tip svg { color: var(--accent); }

/* ---- text pages: about, privacy, terms, not found ---- */
.doc { width: 100%; max-width: 47rem; margin: 0 auto; padding: 72px var(--gut) 88px; }
.doc h1 { font-size: clamp(2.2rem, 4.4vw, 3.25rem); line-height: 1.05; letter-spacing: -.025em; margin-bottom: 1.3rem; text-wrap: balance; }
.doc h2 { margin: 2.6rem 0 .8rem; padding-top: 1.9rem; border-top: 1px solid var(--rule); font-size: 1.3rem; line-height: 1.2; font-weight: 650; letter-spacing: -.01em; }
.doc p, .doc li { font-size: 1.0625rem; line-height: 1.7; color: color-mix(in srgb, var(--paper) 86%, transparent); }
.doc p { margin: 0 0 1.1rem; }
.doc .lead { font-size: 1.25rem; line-height: 1.55; color: var(--paper); max-width: none; margin-bottom: 1.4rem; }
.doc .muted { font: 12px/1.4 var(--mono); letter-spacing: .04em; color: var(--faint); }
.doc .kicker { font: 500 12px/1 var(--mono); color: var(--dim); }
.doc ul { padding-left: 1.25rem; margin: 0 0 1.1rem; } .doc li { margin: .5rem 0; } .doc li::marker { color: var(--accent); }
.doc a:not(.cta) { color: var(--paper); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.doc a:not(.cta):hover { color: var(--accent); }
.doc .cta-row { margin-top: 1.6rem; }

/* ---- the footer ---- */
.foot { margin-top: auto; background: var(--surface); border-top: 1px solid var(--rule); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, .6fr) minmax(0, .6fr); gap: 40px; padding-top: 44px; padding-bottom: 36px; }
.foot-brand p { margin: 14px 0 14px; color: var(--dim); font-size: 14px; line-height: 1.55; max-width: 30rem; }
.foot-share { background: none; border: 0; padding: 0; color: var(--paper); font: 600 14px/1.4 var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 5px; cursor: pointer; }
.foot-share:hover { color: var(--accent); }
.foot nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.foot h3 { margin-bottom: 4px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.foot nav a { color: var(--paper); text-decoration: none; font-size: 14.5px; } .foot nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.foot-legal { margin-top: 0; margin-bottom: 0; padding-top: 18px; padding-bottom: 26px; color: var(--faint); font-size: 12.5px; line-height: 1.5; }
.foot-legal::before { content: ""; display: block; height: 1px; background: var(--rule); margin-bottom: 18px; }

/* ================= the map page: the map fills the page, everything else floats over it ================= */
#map { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.viewer { position: relative; flex: 1; min-height: 0; }
.map-panel { position: absolute; inset: 0; }
.stage { position: absolute; inset: 0; overflow: hidden; background: rgba(255, 255, 255, .02); touch-action: none; cursor: grab; --z: 1; }
.stage:active { cursor: grabbing; }
.zoom { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.zoom img, .pic img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; pointer-events: none; }
/* the map's picture: a box of its own under the zoomed one, laid out large and scaled down (app.js picPlace) */
.pic { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; }
#tiles { position: absolute; inset: 0; }
/* the picture of the level just left: it lies over the new one until that has loaded, then fades out (app.js picGhost) */
#pic .ghost { position: absolute; inset: 0; transition: opacity .4s ease; }
/* a link to a spot (app.js spotHtml): the pin, and over it what it says with its two buttons. The same in both views. */
.spot { position: absolute; z-index: 6; width: 0; height: 0; transform: scale(calc(1 / var(--z, 1))); pointer-events: none; }
#marks3d .spot { transform: none; }
.spot i { position: absolute; left: -11px; top: -28px; width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--accent); border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .55); }
.spot i::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.spot::before { content: ""; position: absolute; left: -9px; top: -5px; width: 18px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); animation: spot-ring 1.8s ease-out infinite; }
@keyframes spot-ring { from { transform: scale(.4); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .spot::before { animation: none; opacity: .6; } }
.spot span { position: absolute; left: 0; top: -36px; transform: translate(-50%, -100%); display: flex; align-items: center; gap: .15rem; padding: .2rem .25rem .2rem .6rem; white-space: nowrap; font-size: .78rem; font-weight: 600; color: #fff; background: rgba(12, 11, 10, .92); border: 1px solid var(--rule-strong); border-radius: 999px; pointer-events: auto; }
.spot span button { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.spot span button:hover { background: color-mix(in srgb, #fff 16%, transparent); }
.spot span .ic { width: .95rem; height: .95rem; }
.stage.spotting, .stage.spotting #gl { cursor: crosshair !important; }
.zoom-controls button[data-spot].on, .zoom-controls button[data-foot].on, .stage.onfoot .zoom-controls button[data-foot] { background: var(--accent); color: #fff; }
/* the callout trainer (app.js quizDraw): its button in the side panel, its card over the map, its marks on the areas */
.quizbtn { display: flex; align-items: center; justify-content: center; gap: .45rem; width: 100%; margin: 0 0 .6rem; padding: .55rem .8rem; border: 1px solid var(--rule-strong); border-radius: var(--r-sm); background: rgba(255, 255, 255, .05); color: inherit; font: 600 13.5px system-ui, "Segoe UI", sans-serif; cursor: pointer; }
.quizbtn:hover { border-color: var(--accent); } .quizbtn[hidden] { display: none; } .quizbtn .ic { width: .85rem; height: .85rem; color: var(--accent); }
#quiz { position: absolute; z-index: 8; left: calc(var(--visw, 100%) / 2); bottom: 1.1rem; transform: translateX(-50%); width: min(560px, calc(var(--visw, 100%) - 1.4rem)); padding: 10px 14px 12px; border: 1px solid color-mix(in srgb, var(--paper) 16%, transparent); border-radius: 16px;
  background: color-mix(in srgb, color-mix(in srgb, var(--paper) 4%, var(--canvas)) 92%, transparent); backdrop-filter: blur(16px) saturate(1.15); box-shadow: 0 20px 56px rgba(0, 0, 0, .62), 0 2px 8px rgba(0, 0, 0, .4); color: rgba(252, 250, 246, .92); font: 14px/1.5 system-ui, "Segoe UI", sans-serif; transition: border-color .2s; }
#quiz[hidden] { display: none; } #quiz.ok { border-color: #4ec27a; } #quiz.no { border-color: #e2574c; }
#quiz button { font: inherit; color: inherit; cursor: pointer; }
.qz-head { display: flex; align-items: center; gap: .6rem; }
.qz-tabs { display: flex; gap: 2px; padding: 2px; border-radius: 999px; background: rgba(255, 255, 255, .07); }
.qz-tabs button { padding: .2rem .7rem; border: 0; border-radius: 999px; background: none; font-size: 12.5px; font-weight: 600; opacity: .7; } .qz-tabs button.on { background: var(--accent); color: #fff; opacity: 1; }
.qz-score { margin-left: auto; font-size: 12.5px; font-variant-numeric: tabular-nums; opacity: .8; white-space: nowrap; }
.qz-head > button { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; padding: 0; border: 0; border-radius: 50%; background: none; } .qz-head > button:hover { background: rgba(255, 255, 255, .1); }
.qz-ask { margin: .55rem 0 .1rem; font-size: 1.15rem; font-weight: 600; } .qz-ask b { color: var(--accent); }
.qz-lv { margin-left: .6rem; padding: .1rem .5rem; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 12px; font-weight: 500; vertical-align: middle; }
.qz-sub { margin: 0 0 .4rem; opacity: .75; }
.qz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin: .5rem 0 .2rem; }
.qz-opts button { padding: .5rem .7rem; border: 1px solid var(--rule-strong); border-radius: var(--r-sm); background: rgba(255, 255, 255, .05); font-weight: 600; text-align: left; }
.qz-opts button:hover:not(:disabled) { border-color: var(--accent); } .qz-opts button.right { border-color: #4ec27a; background: rgba(78, 194, 122, .18); } .qz-opts button.dim { opacity: .45; }
.qz-row { display: flex; align-items: center; gap: .7rem; margin-top: .45rem; min-height: 1.9rem; }
.qz-said { flex: 1; opacity: .8; } #quiz.ok .qz-said { color: #6fdc98; opacity: 1; font-weight: 600; } #quiz.no .qz-said { color: #ff8b80; opacity: 1; font-weight: 600; }
.qz-n { font-size: 12.5px; opacity: .6; font-variant-numeric: tabular-nums; }
.qz-row button { padding: .3rem .8rem; border: 1px solid var(--rule-strong); border-radius: var(--r-sm); background: rgba(255, 255, 255, .05); font-weight: 600; font-size: 13px; }
.qz-row button.go { display: flex; align-items: center; gap: .4rem; border-color: var(--accent); background: var(--accent); color: #fff; } .qz-row .ic { width: .9rem; height: .9rem; }
/* (while a round is played every area looks the same - its colour would be a hint - and the trainer's own marks stand out) */
.stage.quizzing #areas polygon { fill: #b9c0c8; stroke: #b9c0c8; cursor: crosshair; }
.stage.quizzing #areas polygon.q-cur, .stage.quizzing #areas polygon.q-show { fill: #ffd24a; fill-opacity: .42; stroke: #ffd24a; }
.stage.quizzing #areas polygon.q-right { fill: #4ec27a; fill-opacity: .45; stroke: #4ec27a; }
.stage.quizzing #areas polygon.q-wrong { fill: #e2574c; fill-opacity: .4; stroke: #e2574c; }
body.quiz-on #rooms, body.quiz-on #search, body.quiz-on #contrib, body.quiz-on #sug { display: none; }
.stage.quizzing .mode3d-btn, .stage.quizzing #walk, .stage.quizzing .zoom-controls button[data-spot], .stage.quizzing .zoom-controls button[data-foot] { display: none; }
/* the strat board (app.js stratDraw, stratBar): what is drawn, and the bar of tools */
#strat { position: absolute; overflow: visible; pointer-events: none; z-index: 5; }
#strat polyline { fill: none; stroke: var(--c); stroke-width: 3.5; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, .9)); }
#strat polygon { fill: var(--c); stroke: var(--c); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, .9)); }
#stratm { position: absolute; pointer-events: none; z-index: 6; }
#stratm .sm { position: absolute; display: grid; place-items: center; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: var(--c); color: #111; font: 700 13px/1 system-ui, sans-serif; border: 2px solid rgba(0, 0, 0, .8); transform: scale(calc(1 / var(--z, 1))); }
#stratm .sx { position: absolute; padding: .1rem .45rem; border-radius: 6px; background: rgba(12, 11, 10, .88); color: var(--c); font: 700 13px/1.4 system-ui, sans-serif; border: 1px solid var(--c); white-space: nowrap; transform: translate(-50%, -50%) scale(calc(1 / var(--z, 1))); }
#stratbar { position: absolute; left: calc(var(--visw, 100%) / 2); top: .8rem; transform: translateX(-50%); z-index: 9; display: flex; align-items: center; gap: .5rem; padding: .3rem .4rem; background: rgba(12, 11, 10, .92); border: 1px solid var(--rule-strong); border-radius: 12px; max-width: calc(var(--visw, 100%) - 1rem); flex-wrap: wrap; justify-content: center; }
#stratbar[hidden] { display: none; }
#stratbar .sb-g { display: flex; align-items: center; gap: 2px; padding-right: .5rem; border-right: 1px solid var(--rule); } #stratbar .sb-g:last-child { border-right: 0; padding-right: 0; }
#stratbar button { display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 8px; background: none; color: #fff; cursor: pointer; }
#stratbar button:hover:not(:disabled) { background: rgba(255, 255, 255, .12); } #stratbar button.on { background: var(--accent); } #stratbar button:disabled { opacity: .35; cursor: default; }
#stratbar .sb-c { width: 1.5rem; height: 1.5rem; margin: 0 .1rem; border-radius: 50%; background: var(--c); border: 2px solid rgba(0, 0, 0, .6); } #stratbar .sb-c:hover:not(:disabled) { background: var(--c); } #stratbar .sb-c.on { background: var(--c); box-shadow: 0 0 0 2px #fff; }
#stratbar .sb-link { display: flex; gap: .35rem; width: auto; padding: 0 .7rem; font: 600 13px system-ui, sans-serif; white-space: nowrap; }
/* rotation times: the picture over the map, the bar, the time under the pointer */
#rotl { position: absolute; pointer-events: none; } #rotl[hidden] { display: none; }
#rotl canvas { position: absolute; opacity: .92; }
.stage.rotting #areas { opacity: .28; } .stage.rotting #roomsimg { opacity: .25; }
.stage.rotting .mode3d-btn, .stage.rotting #walk, .stage.rotting .zoom-controls button[data-spot], .stage.rotting .zoom-controls button[data-foot], .stage.quizzing .zoom-controls button[data-rot], .stage.onfoot .zoom-controls button[data-rot], .zoom-controls button[data-rot][hidden] { display: none; }
.stage.rotting[data-rmode="point"], .stage.rotting[data-rmode="point"]:active { cursor: crosshair; }
#rotbar { position: absolute; left: calc(var(--visw, 100%) / 2); top: .8rem; transform: translateX(-50%); z-index: 9; display: flex; align-items: center; gap: .5rem; padding: .3rem .4rem; background: rgba(12, 11, 10, .92); border: 1px solid var(--rule-strong); border-radius: 12px; max-width: calc(var(--visw, 100%) - 1rem); flex-wrap: wrap; justify-content: center; color: #fff; font: 600 13px system-ui, sans-serif; }
#rotbar[hidden] { display: none; } #rotbar.busy { cursor: progress; }
#rotbar .sb-g { display: flex; align-items: center; gap: 2px; padding-right: .5rem; border-right: 1px solid var(--rule); } #rotbar .sb-g:last-child { border-right: 0; padding-right: 0; }
#rotbar button { display: grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 .6rem; border: 0; border-radius: 8px; background: none; color: #fff; font: inherit; cursor: pointer; white-space: nowrap; }
#rotbar button:hover { background: rgba(255, 255, 255, .12); } #rotbar button.on { background: var(--accent); } #rotbar button[data-do] { padding: 0; width: 2rem; }
#rotbar .rb-say { opacity: .8; font-weight: 500; padding-left: .4rem; }
#rotbar .rb-leg { display: flex; align-items: center; gap: .25rem; }
.rb-dot { display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--c, #eee); color: #0b0a09; font: 700 11px system-ui, sans-serif; font-style: normal; } .rb-dot.tie { background: #f2f2f2; }
#rotbar .rb-ramp { position: relative; display: flex; justify-content: space-between; align-items: center; width: 9rem; height: 1.1rem; padding: 0 .3rem; border-radius: 6px; color: #0b0a09; font-size: 11px; }
#rottip { position: absolute; z-index: 9; pointer-events: none; display: flex; gap: .6rem; padding: .3rem .55rem; background: rgba(12, 11, 10, .94); border: 1px solid var(--rule-strong); border-radius: 9px; color: #fff; font: 500 13px system-ui, sans-serif; white-space: nowrap; }
#rottip[hidden] { display: none; } #rottip span { display: flex; align-items: center; gap: .3rem; opacity: .7; } #rottip span.lead { opacity: 1; font-weight: 700; font-size: 15px; }
#stratin { position: absolute; z-index: 10; transform: translate(-50%, -50%); width: 11rem; padding: .3rem .5rem; border: 1px solid var(--accent); border-radius: 6px; background: rgba(12, 11, 10, .95); color: #fff; font: 600 13px system-ui, sans-serif; }
.stage.stratting:not([data-stool="v"]), .stage.stratting:not([data-stool="v"]):active { cursor: crosshair; }
.stage.stratting:not([data-stool="v"]) #zoom button, .stage.stratting:not([data-stool="v"]) #marks > * { pointer-events: none; }      /* (with a drawing tool, the map's own labels are drawn over, not pressed) */
.stage.stratting .mode3d-btn, .stage.stratting #walk, .stage.stratting .zoom-controls button[data-spot], .stage.stratting .zoom-controls button[data-foot], .stage.quizzing .zoom-controls button[data-strat], .stage.onfoot .zoom-controls button[data-strat] { display: none; }
.zoom-controls button[data-strat].on { background: var(--accent); color: #fff; }
/* on foot (app.js footBar): what the keys do, and the way out */
#footbar { position: absolute; left: 50%; top: .8rem; transform: translateX(-50%); z-index: 8; display: flex; align-items: center; gap: .6rem; padding: .3rem .35rem .3rem .85rem; font-size: .8rem; color: #fff; background: rgba(12, 11, 10, .88); border: 1px solid var(--rule-strong); border-radius: 999px; white-space: nowrap; }
#footbar[hidden] { display: none; }
#footbar button { display: flex; align-items: center; gap: .3rem; padding: .25rem .7rem .25rem .5rem; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
#footbar .ic { width: .9rem; height: .9rem; }
#footbar button[data-light] { background: rgba(255, 255, 255, .12); padding: .25rem .6rem .25rem .45rem; } #footbar button[data-light].on { background: #ffd24a; color: #111; }
.stage.onfoot #gl { cursor: crosshair; }
.stage.onfoot .zoom-controls button:not([data-foot]), .stage.onfoot #walk, .stage.onfoot #hint { display: none; }
@media (max-width: 720px) { #footbar > span { display: none; } }
#marks { position: absolute; inset: 0; }
#view3d { position: absolute; inset: 0; background: #0b0c0e; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#marks3d { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#marks3d .lnk, #marks3d .lbl[data-z] { pointer-events: auto; } #marks3d .lbl[data-z] { cursor: pointer; } #marks3d .lbl[data-z]:hover { border-color: #fff; }
#msg3d { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: .55rem 1rem; border-radius: var(--r-sm); background: var(--panel); border: 1px solid var(--rule-strong);
  font-size: .9em; color: var(--paper); pointer-events: none; text-align: center; max-width: 80%; }
#msg3d:empty { display: none; }

/* callout labels: a small tag with the area's colour, readable on any background */
.lbl { position: absolute; transform: translate(-50%, -50%) scale(calc(1 / var(--z, 1))); white-space: nowrap; pointer-events: none;
  font: 600 12px/1.2 system-ui, "Segoe UI", sans-serif; letter-spacing: .02em; color: #fff; padding: 2px 8px 2px 7px; border-radius: 999px;
  background: rgba(12, 11, 10, .78); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 1px 6px rgba(0, 0, 0, .55); display: inline-flex; align-items: center; gap: 5px; }
.lbl::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, #ccc); flex: none; }
.lbl.big { font-size: 13.5px; padding: 3px 10px 3px 8px; }
.lbl.hl { color: #fff; font-size: 14px; background: var(--c, #ffd24a); border-color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); box-shadow: 0 0 0 3px rgba(255, 255, 255, .25), 0 2px 10px rgba(0, 0, 0, .6); z-index: 2; }
.lbl.hl::before { background: #fff; }
.lbl .tm { display: inline-block; min-width: 1.25em; margin-right: .35em; padding: 0 .25em; border-radius: 3px; color: #0b0d10; font-weight: 800; text-align: center; }   /* team badge on a spawn callout */
.lnk { position: absolute; transform: translate(-50%, -50%) scale(calc(1 / var(--z, 1))); background: rgba(12, 11, 10, .84); color: #fff; border: 1px solid var(--accent); border-radius: 999px;
  font: 700 10.5px/1 system-ui, sans-serif; padding: 3px 7px; cursor: pointer; white-space: nowrap; }
.lnk:hover { background: var(--accent); color: var(--accent-ink); }
.lnk.up { transform: translate(-50%, -50%) scale(calc(1 / var(--z, 1))) translateY(-24px); } .lnk.dn { transform: translate(-50%, -50%) scale(calc(1 / var(--z, 1))) translateY(24px); }
.bld { position: absolute; transform: translate(-50%, -50%) scale(calc(1 / var(--z, 1))); font: 800 14px/1 system-ui, "Segoe UI", sans-serif; letter-spacing: .16em; text-transform: uppercase;
  color: #fff; white-space: nowrap; pointer-events: none; text-shadow: 0 0 2px #000, 0 0 6px #000, 0 2px 10px #000; z-index: 1; }
.pt { position: absolute; transform: translate(-50%, -50%) scale(calc(1 / var(--z, 1))); width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .75);
  color: #101010; font: 700 10px/14px system-ui, sans-serif; font-style: normal; text-align: center; box-shadow: 0 0 4px rgba(0, 0, 0, .7); pointer-events: none; z-index: 2; }
#marks3d .lbl, #marks3d .lnk, #marks3d .bld, #marks3d .pt { transform: translate(-50%, -50%); }
#marks .lbl[data-z] { pointer-events: auto; cursor: pointer; } #marks .lbl[data-z]:hover { border-color: #fff; }

/* over the map: title, zoom buttons, the 3D switch, the toggles, the hint */
.titlecard { position: absolute; top: .9rem; left: 1rem; z-index: 6; max-width: 44%; pointer-events: none; text-shadow: 0 2px 8px rgba(0, 0, 0, .85); }
.titlecard .crumbs { font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.titlecard a { pointer-events: auto; color: var(--paper); text-decoration: none; } .titlecard a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.titlecard h1 { font-size: clamp(1.6rem, 3vw, 2.5rem); margin: .45rem 0 .4rem; }
.titlecard p { margin: 0; font: 12px/1.3 var(--mono); letter-spacing: .03em; color: var(--dim); }
.map-panel:has(.stage.editing) .titlecard h1 { font-size: 1.2rem; margin: .4rem 0 0; }      /* while editing, the title steps back so the editor's bar does not sit on it */
.map-panel:has(.stage.editing) .titlecard p { display: none; }
.zoom-controls { position: absolute; bottom: .9rem; left: .9rem; z-index: 7; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--rule-strong); border-radius: var(--r-sm); background: var(--panel);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45); }
.zoom-controls button { width: 2.25rem; height: 2.25rem; border: 0; border-bottom: 1px solid var(--rule); background: none; color: var(--paper); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.zoom-controls button:last-child { border-bottom: 0; }
.zoom-controls button:hover { background: color-mix(in srgb, var(--paper) 10%, transparent); }
.mode3d-btn { position: absolute; bottom: .9rem; right: calc(340px + 1.6rem); z-index: 7; display: inline-flex; align-items: center; gap: .5rem; height: 2.5rem; padding: 0 1rem; border-radius: var(--pill);
  border: 1px solid var(--accent); background: var(--panel); color: var(--paper); font: 650 13.5px/1 var(--text); letter-spacing: .02em; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .5); }
.mode3d-btn span { color: var(--accent); font-size: 1.1em; }
.mode3d-btn:hover { background: color-mix(in srgb, var(--accent) 16%, var(--canvas)); }
.mode3d-btn.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; } .mode3d-btn.on span { color: inherit; }
.legend { position: absolute; bottom: .9rem; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; gap: .25rem 1rem; flex-wrap: wrap; justify-content: center;
  max-width: min(60%, calc(100% - 420px)); font-size: 13px; background: var(--panel); backdrop-filter: blur(8px); padding: .55rem .9rem; border-radius: var(--r-sm); border: 1px solid var(--rule-strong); }
.legend label { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; white-space: nowrap; color: var(--dim); }
.legend label:hover, .legend label:has(input:checked) { color: var(--paper); }
.legend input { accent-color: var(--accent); margin: 0; }
.hint { position: absolute; top: .9rem; left: 50%; transform: translateX(-50%); z-index: 6; background: var(--panel); backdrop-filter: blur(8px); padding: .45rem .8rem; border-radius: var(--r-sm);
  border: 1px solid var(--rule-strong); font: 11.5px/1.2 var(--mono); letter-spacing: .02em; color: var(--dim); pointer-events: none; }
.hint:empty { display: none; }
@media (min-width: 860px) { .legend { left: calc((100% - 340px) / 2); max-width: calc(100% - 340px - 16rem); } }
.tipbox { position: absolute; z-index: 9; width: 240px; padding: .5rem .65rem; border-radius: 6px; background: var(--panel); border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .5); font: 13px/1.4 system-ui, "Segoe UI", sans-serif; color: var(--paper); pointer-events: none; }

/* the side panel: levels, game modes, the guide, callouts */
.side { position: absolute; top: .8rem; right: .8rem; z-index: 6; width: 340px; max-width: calc(100vw - 1.6rem); max-height: calc(100% - 1.6rem); overflow-y: auto;
  background: var(--panel); backdrop-filter: blur(8px); border: 1px solid var(--rule-strong); border-radius: var(--r); padding: .95rem; box-shadow: 0 10px 32px rgba(0, 0, 0, .5); }
.side h2 { margin: 1.15rem 0 .55rem; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.side > h2:first-child { margin-top: .15rem; }
#levels { display: grid; gap: 2px; }
#levels button { display: flex; justify-content: space-between; align-items: center; gap: .5rem; width: 100%; background: none; border: 0; color: var(--dim); text-align: left;
  cursor: pointer; padding: .5rem .65rem; border-radius: var(--r-sm); font: inherit; font-size: 14.5px; }
#levels button span { font-weight: 600; }
#levels button small { color: var(--faint); font: 11.5px/1 var(--mono); }
#levels button:hover { background: color-mix(in srgb, var(--paper) 6%, transparent); color: var(--paper); }
#levels button.on { background: color-mix(in srgb, var(--paper) 10%, transparent); color: var(--paper); box-shadow: inset 2px 0 0 var(--accent); }
#levels button.on small { color: var(--dim); }
#modelist { display: grid; gap: 1px; }
#modelist label { display: flex; align-items: center; gap: .55rem; padding: .32rem .5rem; border-radius: var(--r-sm); cursor: pointer; font-size: 14.5px; }
#modelist label:hover { background: color-mix(in srgb, var(--paper) 6%, transparent); }
#modelist input { accent-color: var(--accent); margin: 0; }
#modelist .pt { position: static; transform: none; flex: none; }
#modelist span { flex: 1; } #modelist small { color: var(--faint); font: 11.5px/1 var(--mono); }
.search { width: 100%; margin: 0 0 .6rem; padding: .5rem .65rem; border-radius: var(--r-sm); font: inherit; font-size: 14px; color: inherit; background: color-mix(in srgb, var(--paper) 5%, transparent); border: 1px solid var(--rule-strong); }
.search:focus { outline: none; border-color: color-mix(in srgb, var(--paper) 55%, transparent); }
#rooms { list-style: none; margin: 0; padding: 0; }
#rooms li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .38rem .55rem; border-radius: var(--r-sm); cursor: pointer; font-size: 14.5px; }
#rooms li:hover { background: color-mix(in srgb, var(--paper) 6%, transparent); }
#rooms li.active { background: color-mix(in srgb, var(--paper) 10%, transparent); box-shadow: inset 2px 0 0 var(--accent); }
#rooms li small { color: var(--faint); white-space: nowrap; font: 11.5px/1 var(--mono); }
#rooms li.none { cursor: default; color: var(--faint); font-size: 13.5px; padding-left: .1rem; } #rooms li.none:hover { background: none; }
#rooms li .pen { background: none; cursor: pointer; font-size: .74em; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: .1rem .5rem; color: var(--dim); white-space: nowrap; }
#rooms li .pen:hover { border-color: var(--accent); color: var(--paper); }
.sidefoot { margin: 1rem 0 0; padding-top: .7rem; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: 12px; color: var(--faint); }
.sidefoot a { color: var(--dim); text-decoration: none; } .sidefoot a:hover { color: var(--paper); } .sidefoot span { flex-basis: 100%; }

/* contributing: the box that asks for callouts, and the suggest / vote box */
#contrib { margin: 0 0 .7rem; padding: .8rem .85rem; border: 1px solid var(--rule-strong); border-radius: var(--r-sm); background: color-mix(in srgb, var(--paper) 5%, transparent); box-shadow: inset 2px 0 0 var(--accent); }
#contrib p { margin: 0 0 .7rem; font-size: 13.5px; line-height: 1.45; color: var(--dim); } #contrib b { color: var(--paper); }
#contrib .row { display: flex; gap: .5rem; flex-wrap: wrap; }
#contrib button { flex: 1 1 8rem; margin: 0; min-height: 36px; padding: 0 .7rem; border-radius: var(--r-sm); border: 1px solid var(--rule-strong); background: transparent; color: var(--paper);
  font: 650 13.5px/1 var(--text); cursor: pointer; }
#contrib button:hover { border-color: var(--paper); }
#contrib #sugbtn, #contrib #sugbtn[hidden] + #editbtn { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
#contrib #sugbtn:hover, #contrib #sugbtn[hidden] + #editbtn:hover { filter: brightness(1.1); }
#sug { position: relative; margin: 0 0 .8rem; padding: .8rem; border: 1px solid var(--rule-strong); border-radius: var(--r-sm); background: var(--surface-2); }
#sug h3 { margin: 0 1.6rem .55rem 0; font-size: 1.02em; }
#sug p { margin: .2rem 0 .5rem; } #sug ul { list-style: none; margin: 0 0 .6rem; padding: 0; }
#sug li { display: flex; align-items: center; gap: .5rem; padding: .25rem 0; } #sug li span { flex: 1; } #sug li small { color: var(--dim); font-size: .8em; }
#sug li.mine span { color: var(--paper); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
#sug li.top span { font-weight: 700; } #sug li button { white-space: nowrap; }
#sug button { font: inherit; font-size: .82em; color: inherit; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); border-radius: 4px; padding: .15rem .55rem; cursor: pointer; }
#sug button:disabled { opacity: .4; cursor: default; }
#sug form { display: flex; gap: .4rem; margin-bottom: .4rem; }
#sug input { flex: 1; min-width: 0; padding: .35rem .5rem; border-radius: 4px; font: inherit; color: inherit; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .15); }
#sug .link { background: none; border: 0; color: var(--dim); text-decoration: underline; padding: 0; margin-right: .8rem; }
#sug .err { color: #ff8a7a; min-height: 1em; margin: 0; }
#sug .x { position: absolute; top: .35rem; right: .4rem; border: 0; background: none; font-size: 1.25em; line-height: 1; color: var(--dim); padding: 0 .3rem; }
#sug .go { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; padding: .35rem .8rem; }
#sug a.signin2 { display: block; text-align: center; text-decoration: none; border-radius: 6px; padding: .5rem; margin-bottom: .6rem; }

/* Zombies mode: markers with notes, possible places, the guide */
.pt.maybe { background: rgba(10, 9, 8, .78) !important; border: 2px solid var(--k); color: var(--k); }
.pt.tip { pointer-events: auto; cursor: pointer; } .pt.tip:hover { box-shadow: 0 0 0 3px rgba(255, 255, 255, .35), 0 0 4px rgba(0, 0, 0, .7); }
#modelist .pt.tip { pointer-events: none; }
/* Zombies guide: generator / door links and the Easter egg steps */
.pt.k-gate { border-radius: 4px; }
/* a generator's place in the order to switch them on in: a small number on its marker */
.pt[data-o]::after { content: attr(data-o); position: absolute; top: -9px; right: -10px; min-width: 14px; height: 14px; padding: 0 2px; box-sizing: border-box; border-radius: 7px; background: #0e0d0c; color: #fff;
  border: 1px solid rgba(255, 255, 255, .75); font: 700 10px/12px system-ui, sans-serif; text-align: center; }
#guide .zlist em { padding: 0 .3em; border-radius: .7em; }
.pt.off { opacity: .28; } .pt.sel { box-shadow: 0 0 0 3px rgba(255, 255, 255, .85), 0 0 8px rgba(0, 0, 0, .8); z-index: 3; }
.pt.far { outline: 2px dashed rgba(255, 255, 255, .9); outline-offset: 3px; }
.zlines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
/* the walkthrough's line through the map, and its numbered stops */
.zroute, .zroute3d { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.zroute polyline, .zroute3d polyline { fill: none; stroke: var(--wk-line, #ff4438); stroke-linecap: round; stroke-linejoin: round; }
.zroute polyline { stroke-width: calc(2px / var(--z, 1)); opacity: .5; }
.zroute polyline.done { stroke: #8fa0a8; opacity: .45; }
.zroute polyline.cur { stroke-width: calc(4.5px / var(--z, 1)); opacity: 1; filter: drop-shadow(0 0 calc(1.5px / var(--z, 1)) #000); }
.zroute polyline.ride { stroke-dasharray: calc(9px / var(--z, 1)) calc(6px / var(--z, 1)); }
.zroute polyline.lift, .zroute polyline.off { stroke-dasharray: calc(2px / var(--z, 1)) calc(6px / var(--z, 1)); }
.zroute polyline.off { opacity: .28; } .zroute polyline.cur.off { opacity: .6; }
.zroute3d polyline { stroke-width: 2px; opacity: .5; }
.zroute3d polyline.done { stroke: #8fa0a8; opacity: .45; }
.zroute3d polyline.cur { stroke-width: 4.5px; opacity: 1; filter: drop-shadow(0 0 1.5px #000); }
.zroute3d polyline.ride { stroke-dasharray: 9 6; } .zroute3d polyline.lift, .zroute3d polyline.off { stroke-dasharray: 2 6; }
.zroute3d polyline.off { opacity: .28; } .zroute3d polyline.cur.off { opacity: .6; }
.wstop { position: absolute; transform: translate(-50%, -50%) scale(calc(1 / var(--z, 1))); min-width: 21px; height: 21px; padding: 0 4px; border: 2px solid #1b1608; border-radius: 11px;
  background: var(--wk, #e62e28); color: var(--wk-ink, #fff); font: 700 11.5px/17px system-ui, "Segoe UI", sans-serif; text-align: center; cursor: pointer; pointer-events: auto; z-index: 3; box-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
#marks3d .wstop { transform: translate(-50%, -50%); }
.wstop.done { background: #8fa0a8; opacity: .8; } .wstop.off { opacity: .45; }
.wstop.cur { min-width: 27px; height: 27px; border-radius: 14px; font-size: 13.5px; line-height: 23px; z-index: 5; opacity: 1; box-shadow: 0 0 0 3px rgba(230, 46, 40, .35), 0 1px 5px rgba(0, 0, 0, .7); }
.wstop:hover { background: #fff; color: #1b1608; opacity: 1; }
.zlines line { stroke-width: calc(2.5px / var(--z, 1)); stroke-dasharray: calc(7px / var(--z, 1)) calc(5px / var(--z, 1)); stroke-linecap: round; opacity: .9; filter: drop-shadow(0 0 1px #000); }
#guide .zlist { list-style: none; margin: .4rem .45rem; padding: 0; }
#guide .zlist li { margin: 0 0 .2rem; }
#guide .zlist button { display: flex; align-items: flex-start; gap: .5rem; width: 100%; padding: .38rem .45rem; border: 1px solid transparent; border-radius: var(--r-sm); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
#guide .zlist button:hover { background: color-mix(in srgb, var(--paper) 6%, transparent); }
#guide .zlist button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
#guide .zlist .pt { position: static; transform: none; flex: none; margin-top: 1px; }
#guide .zlist em { flex: none; min-width: 1.35em; height: 1.35em; border-radius: 50%; background: rgba(255, 255, 255, .12); font: 700 11.5px/1.35em system-ui, sans-serif; font-style: normal; text-align: center; margin-top: 1px; }
#guide .zsteps button.on em { background: var(--accent); color: #fff; }
#guide .zlist small { display: block; color: var(--dim); font-size: 12px; margin-top: .1rem; }
#guide .zhow, #guide .znote { color: var(--dim); font-size: 12.5px; }
#guide .zlist .zt { display: block; }
#guide .zsteps button.done em { background: #3fae6a; color: #fff; } #guide .zsteps button.done em::after { content: " ✓"; } #guide .zsteps button.done span { opacity: .72; }
#guide .zreset { border: 0; background: none; color: var(--dim); font: 12.5px system-ui, "Segoe UI", sans-serif; text-decoration: underline; cursor: pointer; padding: 0; }
.wkbtn { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border: 1px solid var(--accent); border-radius: var(--pill, 999px); background: color-mix(in srgb, var(--accent) 22%, transparent); color: inherit; font: 700 13.5px system-ui, "Segoe UI", sans-serif; cursor: pointer; }
.wkbtn:hover { background: var(--accent); color: var(--accent-ink, #fff); }
.titlecard .wkbtn { margin-top: .55rem; pointer-events: auto; }
/* the walkthrough card: over the map, above the legend; on a phone it follows the map */
#walk { position: absolute; z-index: 8; bottom: 6.1rem; left: 50%; transform: translateX(-50%); width: min(620px, calc(100% - 1.4rem)); max-height: 46vh; overflow: auto; padding: .7rem .85rem .6rem; border: 1px solid var(--rule-strong); border-radius: var(--r-sm); background: var(--panel); box-shadow: 0 10px 30px rgba(0, 0, 0, .55); font: 14px/1.5 system-ui, "Segoe UI", sans-serif; color: rgba(252, 250, 246, .92); }
@media (min-width: 860px) { #walk { left: calc((100% - 340px) / 2); width: min(620px, calc(100% - 340px - 9rem)); } }   /* (clear of the zoom buttons) */
#walk .wk-head { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .3rem; }
#wk-pos { flex: none; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; } #wk-title { flex: 1; font-size: 15.5px; }
#wk-close { flex: none; width: 1.7rem; height: 1.7rem; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: inherit; font: 18px/1 system-ui, sans-serif; cursor: pointer; } #wk-close:hover { background: var(--accent); }
#wk-text small { display: block; margin-top: .25rem; color: var(--dim); font-size: 12.5px; }
#wk-places { display: flex; flex-wrap: wrap; gap: .3rem; margin: .5rem 0 .1rem; }
#wk-places button { display: inline-flex; align-items: center; gap: .4rem; padding: .22rem .55rem .22rem .3rem; border: 1px solid var(--rule); border-radius: 999px; background: rgba(255, 255, 255, .04); color: inherit; font: 12.5px system-ui, "Segoe UI", sans-serif; cursor: pointer; text-align: left; }
#wk-places button:hover { border-color: var(--accent); } #wk-places button.far { border-style: dashed; }
#wk-places .pt { position: static; transform: none; flex: none; pointer-events: none; opacity: 1; box-shadow: none; outline: 0; } #wk-places small { margin-left: .35rem; color: var(--dim); }
#walk .wk-nav { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .55rem; }
#walk .wk-nav button { padding: .4rem .85rem; border: 1px solid var(--rule-strong); border-radius: var(--r-sm); background: rgba(255, 255, 255, .05); color: inherit; font: 600 13.5px system-ui, "Segoe UI", sans-serif; cursor: pointer; }
#walk .wk-nav button:hover:not(:disabled) { border-color: var(--accent); } #walk .wk-nav button:disabled { opacity: .35; cursor: default; }
#wk-next { background: color-mix(in srgb, var(--accent) 26%, transparent) !important; border-color: var(--accent) !important; }
#walk .wk-nav label { display: inline-flex; align-items: center; gap: .35rem; color: var(--dim); font-size: 13px; cursor: pointer; }
#wk-dots { display: flex; gap: 4px; margin-top: .55rem; } #wk-dots button { flex: 1; height: 5px; padding: 0; border: 0; border-radius: 3px; background: rgba(255, 255, 255, .16); cursor: pointer; }
#wk-dots button.done { background: #3fae6a; } #wk-dots button.on { background: var(--accent); outline: 1px solid rgba(255, 255, 255, .7); outline-offset: 1px; }
@media (max-width: 859px) { #walk { position: static; transform: none; width: auto; max-height: none; margin: .7rem var(--gut) 0; } }
#guide .znav { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
#guide .znav span { color: var(--dim); font-size: 12.5px; }
#guide .znav button, #zclear { padding: .32rem .7rem; border: 1px solid var(--rule); border-radius: var(--r-sm); background: rgba(255, 255, 255, .04); color: inherit; font: 600 13px system-ui, "Segoe UI", sans-serif; cursor: pointer; }
#guide .znav button:hover, #zclear:hover { border-color: var(--accent); }
#zclear { width: 100%; margin-top: .2rem; }
#guide details { border: 1px solid var(--rule); border-radius: var(--r-sm); margin-bottom: .4rem; background: rgba(255, 255, 255, .02); }
#guide summary { cursor: pointer; padding: .45rem .6rem; font-weight: 600; font-size: 14.5px; }
#guide details[open] summary { border-bottom: 1px solid var(--rule); }
#guide details > :not(summary) { margin: .55rem .65rem; font: 13.5px/1.5 system-ui, "Segoe UI", sans-serif; color: rgba(252, 250, 246, .86); }
#guide ol { padding-left: 1.2rem; } #guide li { margin: .3rem 0; }
#guide table { width: calc(100% - 1.3rem); border-collapse: collapse; font-size: 12.5px; }
#guide th, #guide td { text-align: left; padding: .25rem .35rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
#guide th { color: var(--dim); font-weight: 600; }

/* ---- drawn areas and the area editor ---- */
#areas { position: absolute; overflow: visible; pointer-events: none; }
#areas polygon { fill: var(--c); fill-opacity: .16; stroke: var(--c); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
#areas polygon.pend { stroke-dasharray: 6 5; fill-opacity: .08; }
#areas.editing polygon.sel { fill-opacity: .34; stroke: #fff; stroke-width: 3; }
#areas .vx { fill: #fff; stroke: #000; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
#areas .vx.first { fill: var(--accent); }
#areas .draft { fill: none; stroke: #fff; stroke-width: 2.5; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.editbar { position: absolute; top: 3.4rem; left: 50%; transform: translateX(-50%); z-index: 8; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: center;
  max-width: calc(100% - 420px); padding: .6rem .85rem; border-radius: var(--r-sm); background: var(--panel); backdrop-filter: blur(8px); border: 1px solid var(--rule-strong);
  box-shadow: inset 0 2px 0 var(--accent), 0 6px 24px rgba(0, 0, 0, .5); font-size: 13.5px; }
.editbar > b { display: inline-flex; align-items: center; gap: .5rem; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--paper); margin-right: .2rem; }
.editbar > b::before { content: ""; width: 7px; height: 7px; background: var(--accent); }
.editbar button { font: inherit; font-size: 13px; color: inherit; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--r-sm); padding: .3rem .65rem; cursor: pointer; }
.editbar button:hover { border-color: var(--accent); }
.editbar input { width: 11rem; padding: .3rem .5rem; border-radius: var(--r-sm); font: inherit; color: inherit; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .22); }
.editbar #e-sel { display: inline-flex; gap: .4rem; align-items: center; }
.editbar #e-save { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 650; }

/* built-in areas as vector shapes */
#areas path.zn { fill: var(--c); fill-opacity: .14; fill-rule: evenodd; stroke: var(--c); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
#areas path.zn.faint { fill: none; stroke: rgba(235, 235, 230, .3); stroke-width: 1.2; }
#areas path.zn.hl { fill-opacity: .38; stroke: #fff; stroke-width: 3; }
.stage.editing #marks .lbl { pointer-events: none; }
.editbar .ehelp { flex-basis: 100%; text-align: center; color: var(--dim); font-size: .8em; }
.stage.editing { outline: 2px solid var(--accent); outline-offset: -2px; }

/* editors: history of area changes */
#e-log { flex-basis: 100%; list-style: none; margin: .2rem 0 0; padding: 0; max-height: 14rem; overflow: auto; text-align: left; }
#e-log li { display: flex; align-items: center; gap: .6rem; padding: .25rem .2rem; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .88em; }
#e-log li span { flex: 1; } #e-log small { display: block; color: var(--dim); font-size: .85em; } #e-log li.none { color: var(--dim); }

/* outlines keep the same thickness on screen however far the map is zoomed in */
#areas polygon { stroke-width: calc(2.5px / var(--z, 1)); }
#areas.editing polygon.sel { stroke-width: calc(3px / var(--z, 1)); }
#areas .vx { stroke-width: calc(1.5px / var(--z, 1)); }
#areas .draft { stroke-width: calc(2.5px / var(--z, 1)); stroke-dasharray: calc(5px / var(--z, 1)) calc(4px / var(--z, 1)); }
#areas path.zn { stroke-width: calc(2px / var(--z, 1)); }
#areas path.zn.faint { stroke-width: calc(1.2px / var(--z, 1)); }
#areas path.zn.hl { stroke-width: calc(3px / var(--z, 1)); }
#areas polygon.pend { stroke-dasharray: calc(6px / var(--z, 1)) calc(5px / var(--z, 1)); }

/* the area editor: what is grabbable looks grabbable, and a click's result is shown before the click */
.stage.editing #marks * { pointer-events: none; }                 /* nothing on the map gets between the pointer and the shapes */
#areas .selshape { fill: var(--c); fill-opacity: .30; stroke: #fff; stroke-width: calc(3px / var(--z, 1)); stroke-linejoin: round; }
#areas .selshape.pend { stroke-dasharray: calc(6px / var(--z, 1)) calc(5px / var(--z, 1)); }
#areas .hovr { fill: var(--c); fill-opacity: .30; stroke: #fff; stroke-width: calc(2.5px / var(--z, 1)); stroke-dasharray: calc(3px / var(--z, 1)) calc(4px / var(--z, 1)); }
#areas .vx { fill: #fff; stroke: #0b0b0c; stroke-width: calc(2px / var(--z, 1)); }
#areas .vx.hot { fill: var(--accent); stroke: #fff; }
#areas .vx.pick { fill: var(--accent); stroke: #fff; stroke-width: calc(3.5px / var(--z, 1)); }      /* the corner that was clicked or tapped: "Remove corner" acts on it */
.editbar #e-fin { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 650; }
#areas .mid { fill: #fff; fill-opacity: .5; stroke: #0b0b0c; stroke-opacity: .7; stroke-width: calc(1.2px / var(--z, 1)); }
#areas .mid.hot { fill: var(--accent); fill-opacity: 1; stroke: #fff; stroke-opacity: 1; }
#areas .draft { fill: none; stroke: #fff; stroke-width: calc(3px / var(--z, 1)); stroke-dasharray: none; stroke-linejoin: round; }
#areas .fillprev { fill: #fff; fill-opacity: .13; stroke: none; }
#areas .rubber { stroke: #fff; stroke-width: calc(2.5px / var(--z, 1)); stroke-dasharray: calc(6px / var(--z, 1)) calc(5px / var(--z, 1)); }
#areas .closing { stroke: rgba(255, 255, 255, .4); stroke-width: calc(1.5px / var(--z, 1)); stroke-dasharray: calc(3px / var(--z, 1)) calc(5px / var(--z, 1)); }
#areas .vx.first { fill: var(--accent); stroke: #fff; }
#areas .vx.first.snap { fill: #fff; stroke: var(--accent); stroke-width: calc(4px / var(--z, 1)); }
#areas .ghost { fill: var(--accent); fill-opacity: .85; stroke: #fff; stroke-width: calc(1.5px / var(--z, 1)); }
.editbar #e-draw.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.editbar #e-msg { padding: .2rem .6rem; border-radius: 999px; background: color-mix(in srgb, var(--paper) 14%, transparent); color: var(--paper); font-weight: 600; }
.editbar .ehelp { color: var(--paper); opacity: .86; line-height: 1.5; }
.editbar .ehelp b { color: var(--paper); text-transform: none; letter-spacing: 0; font-size: 1em; }
.editbar kbd { font: inherit; font-size: .88em; padding: 0 .35em; border: 1px solid rgba(255, 255, 255, .3); border-bottom-width: 2px; border-radius: 4px; background: rgba(255, 255, 255, .07); }
@media (min-width: 860px) { .editbar { left: calc(50% - 190px); max-width: calc(100% - 470px); } }   /* centred over the map, clear of the side panel */
#edg { filter: drop-shadow(0 0 calc(1.2px / var(--z, 1)) rgba(0, 0, 0, .95)); }   /* white lines and dots stay readable on a pale floor */

/* ================= game themes: colours come from site.json; these add the type and shape that go with them ================= */
.theme-square { --r: 2px; --r-sm: 2px; --pill: 2px; }
.theme-caps .ghero h1, .theme-caps .titlecard h1 { text-transform: uppercase; letter-spacing: -.01em; }
.theme-italic .ghero h1, .theme-italic .titlecard h1 { font-style: italic; }
.theme-cond h1, .theme-cond h2, .theme-cond h3 { letter-spacing: .004em; }                          /* a condensed face: set larger and without the tight tracking */
.theme-cond .ghero h1 { font-size: clamp(3.2rem, 7.4vw, 5.9rem); line-height: .94; letter-spacing: 0; }
.theme-cond .titlecard h1 { font-size: clamp(1.9rem, 3.5vw, 2.9rem); letter-spacing: .005em; }
.theme-cond .sec-head h2, .theme-cond .soon-main h2 { font-size: clamp(1.95rem, 3.1vw, 2.7rem); }
.theme-cond .soon-side h3 { font-size: 1.4rem; } .theme-cond .support h2 { letter-spacing: .004em; }
.theme-cond .card b { font-size: 20px; letter-spacing: .012em; } .theme-cond .stats dd { letter-spacing: 0; }
.theme-serif h1, .theme-serif .sec-head h2, .theme-serif .soon-main h2, .theme-serif .soon-side h3, .theme-serif .support h2 { font-weight: 600; letter-spacing: 0; }
/* Bodycam: body-camera footage. Near-black, white type, a thin white frame, and red only where something is active. */
.theme-bodycam .ghero { background: var(--canvas); }
.theme-bodycam .ghero.has-art::before { filter: grayscale(1) contrast(1.1); opacity: .62; }
.theme-bodycam .hud { opacity: .8; --l: 24px; }
.theme-bodycam .ghero h1, .theme-bodycam .titlecard h1 { text-transform: uppercase; font-weight: 800; letter-spacing: -.015em; }
.theme-bodycam .card b { text-transform: uppercase; font-size: 15.5px; letter-spacing: .02em; }
.theme-bodycam .card:hover, .theme-bodycam .card:focus-visible { border-color: var(--paper); box-shadow: inset 0 -2px 0 var(--accent), 0 14px 32px rgba(0, 0, 0, .5); }
.theme-bodycam .mode3d-btn { border-color: var(--rule-strong); } .theme-bodycam .mode3d-btn:hover { border-color: var(--paper); background: var(--panel); }
.theme-bodycam .lnk { border-color: rgba(255, 255, 255, .55); }

/* ---- a feature band on a game's page: a mode or a tool of the game, with its own look (Zombies; Loadouts: loadout/hero.css) ---- */
.gjump { margin-top: 10px; } .gjump:empty { display: none; }
.feat { position: relative; overflow: hidden; margin-top: 72px; padding: 76px 0 72px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); scroll-margin-top: 54px; }
.feat + .feat { margin-top: 0; border-top: 0; }
.feat > .wrap { position: relative; z-index: 2; }
.feat-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 56px; align-items: center; }
.feat-copy { min-width: 0; }
.feat-copy h2 { font: 800 clamp(2.1rem, 4.4vw, 3.6rem)/1.02 var(--display); letter-spacing: -.02em; text-wrap: balance; margin: 0 0 1.1rem; }
.theme-bodycam .feat-copy h2 { text-transform: uppercase; letter-spacing: -.012em; }
.feat-copy .lead { max-width: 34rem; color: color-mix(in srgb, var(--paper) 82%, transparent); }
.feat .stats { margin-top: 2rem; padding-top: 1.4rem; }
.feat-more { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 1.4rem 0 0; font-size: 14px; color: var(--dim); }
.feat-more a { color: var(--paper); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 4px; } .feat-more a:hover { color: var(--accent); }
/* Zombies: the lights are out. A red glow low on the left, footage lines over everything, the mode's maps large. */
.feat-z { background: radial-gradient(ellipse 60% 90% at 0% 100%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 68%), radial-gradient(ellipse 40% 60% at 100% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%), #070707; }
.feat-z::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 3px); }
.feat-z .feat-in { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.feat-z .stats { margin: 0; padding: 0; border-top: 0; }
.zgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 44px; }
.zcard { position: relative; display: block; overflow: hidden; color: inherit; text-decoration: none; background: #0b0b0b; border: 1px solid var(--rule-strong); border-radius: var(--r); transition: transform .2s, border-color .2s, box-shadow .2s; }
.zcard:hover, .zcard:focus-visible { border-color: var(--paper); transform: translateY(-4px); box-shadow: inset 0 -2px 0 var(--accent), 0 22px 48px rgba(0, 0, 0, .6); outline: none; }
.zthumb { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #050505; }
.zthumb i { position: absolute; inset: 0; background: center / cover no-repeat; filter: grayscale(.75) contrast(1.08) brightness(.8); transition: transform .5s cubic-bezier(.2, .7, .2, 1), filter .3s; }
.zthumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8, 8, 8, .92) 100%), radial-gradient(ellipse 90% 70% at 50% 110%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%); }
.zcard:hover .zthumb i, .zcard:focus-visible .zthumb i { transform: scale(1.06); filter: none; }
.zmeta { position: relative; display: grid; gap: 6px; padding: 0 20px 20px; margin-top: -34px; }
.zmeta b { font: 800 clamp(1.5rem, 2.4vw, 2rem)/1 var(--display); letter-spacing: -.01em; text-transform: uppercase; }
.zmeta > span:not(.ztags) { font: 12px/1.3 var(--mono); letter-spacing: .04em; color: var(--dim); }
.ztags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ztags em { font: 500 10.5px/1 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; padding: 6px 8px; border: 1px solid var(--rule-strong); border-radius: var(--pill); color: var(--paper); white-space: nowrap; }
.ztags em.egg { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 22%, transparent); }
@media (max-width: 980px) {
  .feat { margin-top: 52px; padding: 52px 0; } .feat-in, .feat-z .feat-in { grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
  .zgrid { margin-top: 32px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } main.list { scroll-behavior: auto; } }

/* ================= smaller screens ================= */
@media (max-width: 1180px) { .top .note { display: none; } }
@media (max-width: 1180px) { .stats div { padding-right: 1.1rem; margin-right: 1.1rem; } }
@media (max-width: 1020px) {
  .hero-grid, .split { gap: 40px; }
  .stats { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 18px 40px; } .stats div { border-right: 0; margin-right: 0; padding-right: 0; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tiles .tile:last-child { grid-column: 1 / -1; flex-direction: row; } .tiles .tile:last-child .fx { flex: 0 0 50%; border-bottom: 0; border-right: 1px solid var(--rule); }
  .tiles .tile:last-child .tile-text { align-self: center; }
  .soon-panel { grid-template-columns: minmax(0, 1fr); }
}
/* phones and narrow windows: one column; the page itself scrolls; on a map page the map is on top at a useful height,
   its switches under it, then the panel */
@media (max-width: 859px) {
  :root { --gut: 16px; }
  body { height: auto; min-height: 100dvh; overflow: auto; }
  .top { position: sticky; top: 0; gap: 10px; }
  .top .crumbs { display: none; }
  main.list { overflow: visible; }
  .band { padding-top: 52px; } .band-alt { margin-top: 52px; padding-bottom: 52px; } .band-support { padding-bottom: 52px; }
  .sec-head h2 { scroll-margin-top: 78px; }
  .hero { padding: 40px 0 44px; }
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero h1 { font-size: clamp(2.2rem, 9.4vw, 3rem); }
  .lead { font-size: 1.05rem; }
  .stats { margin-top: 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; } .stats dd { font-size: 1.45rem; }
  .frame::before { inset: -7px; --l: 14px; }
  .hero-art figcaption { margin-top: 16px; }
  .mock-levels { width: 104px; font-size: 11px; right: 10px; top: 10px; } .mock-levels li { padding: 6px 8px; }
  .gfeat { grid-template-columns: minmax(0, 1fr); } .gfeat .art { min-height: 0; aspect-ratio: 460 / 215; } .gfeat .body { padding: 22px 20px 24px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
  .ghero { --pb: 40px; padding: 56px 0 var(--pb); } .hud { inset: 8px; --l: 14px; }
  .ghero h1 { font-size: clamp(2.2rem, 11vw, 3.2rem); }
  .soon-main, .soon-side { padding: 22px 20px; }
  .support { padding: 22px 20px; } .support-btns { width: 100%; } .support-btns .cta { flex: 1 1 auto; }
  .doc { padding-top: 40px; padding-bottom: 56px; } .doc .lead { font-size: 1.15rem; }
  .foot-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 20px; padding-top: 32px; } .foot-brand { grid-column: 1 / -1; }

  .viewer { display: flex; flex-direction: column; gap: .7rem; padding: 0 0 1rem; }
  .map-panel { position: relative; inset: auto; display: flex; flex-direction: column; }
  .stage { position: relative; inset: auto; height: min(64dvh, 560px); flex: none; }
  .titlecard { max-width: 78%; top: .6rem; left: var(--gut); }
  .titlecard h1 { font-size: 1.45rem; margin: .3rem 0 0; } .titlecard p { display: none; }
  .legend { position: static; transform: none; max-width: none; margin: .7rem var(--gut) 0; justify-content: flex-start; gap: .5rem .9rem; }
  .hint { top: auto; bottom: 3.9rem; font-size: 10.5px; white-space: nowrap; }
  .editbar { position: static; transform: none; max-width: none; margin: .7rem var(--gut) 0; }
  .side { position: static; width: auto; max-width: none; max-height: none; margin: 0 var(--gut); }
  .mode3d-btn { bottom: .7rem; right: .7rem; }
  .zoom-controls { bottom: .7rem; left: .7rem; }
  .lbl { font-size: 11px; padding: 1px 6px 1px 5px; } .lbl.big { font-size: 12px; }
}
@media (max-width: 620px) {
  .tiles { grid-template-columns: minmax(0, 1fr); } .tiles .tile:last-child { flex-direction: column; } .tiles .tile:last-child .fx { flex: none; border-right: 0; border-bottom: 1px solid var(--rule); }
  .steps li { padding-left: 44px; }
}
@media (max-width: 520px) { .topnav { display: none; } #acct { margin-left: auto; } .cta-row .cta { flex: 1 1 auto; } .grid.soon { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .gcard .meta { padding: 10px 11px 12px; } .gcard b { font-size: 14px; } }
@media (max-width: 859px) { .theme-cond .ghero h1 { font-size: clamp(2.7rem, 13vw, 3.7rem); } .theme-cond .titlecard h1 { font-size: 1.7rem; } }

/* ================= the Zombies panel: tabs, the run as a list of steps, markers in groups, notes as cards ================= */
/* The guide's own small system, so that it reads as one thing:
   colour   one accent, --wk, means "the walkthrough" (the line, the stop, the step being walked, the button that moves it on):
            the site's red, with white on it (--wk-line is the same red a shade lighter, for a thin line over a picture);
            green means done; everything else is the site's greys. While a step is walked the site's own use of its accent
            (level bar, 3D button, switches) goes grey, so that red means the walkthrough and nothing else.
   surface  things are grouped by a step of surface (--s1 to --s3) and by space; a border is kept for the panel and the card.
   type     four sizes (--t-xs labels in capitals, --t-sm second lines, --t-md text and rows, --t-lg names) in two weights (500, 700);
            the mono face only where figures stand in a column (the levels).
   space    a 4 px unit; rows are 40 px. */
.viewer { --side-w: 340px; --wk: #e62e28; --wk-ink: #fff; --wk-line: #ff4438; --ok: #3fae6a; --ok-soft: #6fd596;
  --s1: color-mix(in srgb, var(--paper) 5%, transparent); --s2: color-mix(in srgb, var(--paper) 9%, transparent); --s3: color-mix(in srgb, var(--paper) 15%, transparent);
  --t-xs: 11px; --t-sm: 13px; --t-md: 14.5px; --t-lg: 18px;
  --ic-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ic-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ic { flex: none; width: 16px; height: 16px; display: block; }
@media (min-width: 860px) {
  .viewer:has(.side.ztabbed) { --side-w: 392px; }
  .side.ztabbed { width: var(--side-w); padding: .75rem .9rem .95rem; }
  .viewer:has(.side.ztabbed) .legend { left: calc((100% - var(--side-w)) / 2); max-width: calc(100% - var(--side-w) - 16rem); }
  .viewer:has(.side.ztabbed) .mode3d-btn { right: calc(var(--side-w) + 1.6rem); }
  .viewer:has(.side.ztabbed) #walk { left: calc((100% - var(--side-w)) / 2); width: min(600px, calc(100% - var(--side-w) - 9rem)); }
}
.side.ztabbed .zoff, .side.ztabbed h2.ph { display: none !important; }
.side.ztabbed > h2:first-child { margin-top: 0; }
.side.ztabbed .support.compact { margin-top: 2rem; border: 0; background: var(--s1); }

/* ---- over the map, on every map: drawn icons in the buttons, quiet switches in the legend ---- */
.zoom-controls button { display: grid; place-items: center; }
.zoom-controls [data-layers] { display: none; }
.mode3d-btn span { display: grid; place-items: center; }
.legend input { appearance: none; -webkit-appearance: none; flex: none; display: grid; place-content: center; width: 15px; height: 15px; margin: 0; border: 1.5px solid var(--rule-strong); border-radius: 4px; background: none; cursor: pointer;
  transition: background .12s, border-color .12s; }
.legend input::after { content: ""; width: 11px; height: 11px; background: var(--canvas); -webkit-mask: var(--ic-check, none) center / contain no-repeat; mask: var(--ic-check, none) center / contain no-repeat; opacity: 0; }
.legend input:checked { border-color: transparent; background: color-mix(in srgb, var(--paper) 86%, transparent); }
.legend input:checked::after { opacity: 1; }
.legend label:hover input:not(:checked) { border-color: var(--paper); }
.legend input:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }

/* ---- the tabs: every one in sight; a language with long words gets them tighter, and past that the bar scrolls ---- */
#ztabs { position: sticky; top: -.75rem; z-index: 4; display: flex; gap: 2px; margin: .9rem 0 1rem; padding: 3px; border: 0; border-radius: 10px; overflow-x: auto; scrollbar-width: none;
  background: color-mix(in srgb, var(--paper) 8%, var(--canvas)); }
#ztabs::-webkit-scrollbar { display: none; }
#ztabs button { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 .5rem; border: 0; border-radius: 8px; background: none;
  color: var(--dim); font: 500 var(--t-sm)/1 var(--text); white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
#ztabs.tight button { padding: 0 .34rem; font-size: 11.5px; letter-spacing: -.01em; }
#ztabs button:hover { color: var(--paper); }
#ztabs button.on { background: color-mix(in srgb, var(--paper) 18%, var(--canvas)); color: var(--paper); box-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
#ztabs button:focus-visible, .ztl .zst > button:focus-visible, #walk button:focus-visible, #levels button:focus-visible, .zoom-controls button:focus-visible { outline: 2px solid var(--wk); outline-offset: 1px; }
#guide .zpane { font: var(--t-sm)/1.5 var(--text); color: rgba(252, 250, 246, .88); }
#guide .zlead { margin: 0 0 .6rem; }
#guide .zhow, #guide .znote { margin: 0 0 .55rem; }
#guide .znote { margin-top: .7rem; padding: .5rem .65rem; border-left: 2px solid var(--rule-strong); background: var(--s1); border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* ---- the levels while a step is walked: folded to the one the step is on (the walkthrough picks the level itself); a click opens the list ---- */
.side.lvfold > h2:first-child { display: none; }
.side.lvfold #levels button { height: 40px; padding: 0 .75rem; border-radius: 8px; box-shadow: none; }
.side.lvfold:not(.lvopen) #levels button:not(.on) { display: none; }
.side.lvfold:not(.lvopen) #levels button.on { background: var(--s1); }
.side.lvfold:not(.lvopen) #levels button.on:hover { background: var(--s2); }
.side.lvfold:not(.lvopen) #levels button.on::after { content: ""; flex: none; width: 16px; height: 16px; margin-left: .1rem; background: var(--dim); -webkit-mask: var(--ic-chev) center / contain no-repeat; mask: var(--ic-chev) center / contain no-repeat; }
.side.lvfold #levels button small { margin-left: auto; }
.side.lvfold #ztabs { margin-top: .6rem; }

/* ---- the run: its name and how far along, what it is, the button that starts it; then every step under its chapter ---- */
.wkhead { padding: .1rem .15rem 0; border: 0; background: none; }
.wkname { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.wkname b { font: 700 var(--t-lg)/1.2 var(--display, system-ui); letter-spacing: -.005em; color: var(--paper); }
.wkname span { color: var(--dim); font: 500 var(--t-sm)/1 var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wkbar { height: 3px; margin: .7rem 0 0; border-radius: 2px; background: var(--s3); overflow: hidden; }
.wkbar i { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--ok); transition: width .3s ease; }
#guide .wkhead .zlead { margin: .8rem 0 0; color: var(--dim); font-size: var(--t-sm); line-height: 1.5; }
.wkacts { display: flex; flex-direction: column; align-items: stretch; gap: .6rem; margin-top: .9rem; }
.wkbtn { gap: .5rem; min-height: 40px; padding: 0 1rem; border: 0; border-radius: 10px; background: var(--wk, #e62e28); color: var(--wk-ink, #fff); font: 700 var(--t-md, 14.5px)/1.2 var(--text); transition: filter .12s, transform .08s; }
.wkbtn:hover { background: var(--wk, #e62e28); color: var(--wk-ink, #fff); filter: brightness(1.08); }
.wkbtn:active { transform: scale(.985); }
.wkbtn:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
.wkacts .wkbtn { justify-content: center; text-align: center; }
.titlecard .wkbtn { margin-top: .7rem; }
#guide .wkacts .zreset { align-self: center; font-size: 12px; color: var(--faint); text-underline-offset: 3px; } #guide .wkacts .zreset:hover { color: var(--paper); }
#guide .zpane.walking .zlead, #guide .zpane.walking .wkacts { display: none; }        /* (while a step is walked the head is only the name and the bar) */
.ztl { list-style: none; margin: 0 0 .2rem; padding: 0; }
#guide .ztl .zch { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin: 28px 0 4px; padding: 0 12px;
  color: color-mix(in srgb, var(--paper) 62%, transparent); font: 700 var(--t-xs)/16px var(--text); letter-spacing: .08em; text-transform: uppercase; }
#guide .ztl .zch:first-child { margin-top: 20px; }
.ztl .zch small { flex: none; color: var(--faint); font: 500 var(--t-xs)/16px var(--text); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.ztl .zch.done small { color: var(--ok-soft); }
#guide .ztl .zst { margin: 0; }
.ztl .zst > button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 40px; padding: 6px 12px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: background .16s ease; }
.ztl .zst > button:hover { background: var(--s1); }
.ztl .zst > button:active { background: var(--s2); }
.ztl em { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; font: 700 var(--t-xs)/1 var(--text); font-style: normal; font-variant-numeric: tabular-nums;
  color: var(--dim); background: var(--s2); transition: background .16s ease, color .16s ease; }
.ztl .zt { min-width: 0; font: 500 var(--t-md)/1.3 var(--text); color: rgba(252, 250, 246, .9); transition: color .16s ease; }
.ztl .zst.done em { background: none; font-size: 0; }
.ztl .zst.done em::after { content: ""; width: 14px; height: 14px; background: var(--ok-soft); -webkit-mask: var(--ic-check) center / contain no-repeat; mask: var(--ic-check) center / contain no-repeat; }
.ztl .zst.done .zt { color: var(--dim); }
.ztl .zst.on > button { background: color-mix(in srgb, var(--wk) 13%, transparent); box-shadow: none; }
.ztl .zst.on em { background: var(--wk); color: var(--wk-ink); font-size: var(--t-xs); }
.ztl .zst.on em::after { content: none; }
.ztl .zst.on .zt { color: var(--paper); font-weight: 700; }
/* power */
#guide .zpow { margin: .2rem 0 0; }
#guide .zpow li { margin: 0 0 .3rem; }
#guide .zpow button { align-items: center; gap: .6rem; padding: .5rem .6rem; border: 1px solid var(--rule); background: rgba(255, 255, 255, .025); }
#guide .zpow button > span { flex: 1; min-width: 0; }
#guide .zpow b { display: block; font-size: 14px; }
#guide .zpow .zopens { display: block; color: rgba(252, 250, 246, .78); font-size: 13px; }
#guide .zpow em { flex: none; min-width: 0; height: auto; padding: .2rem .45rem; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--dim); font: 700 11px/1 var(--mono); margin: 0; }
#guide .zpow .pt { width: 22px; height: 22px; line-height: 18px; font-size: 12px; margin: 0; }
/* notes */
.zcard { margin: 0 0 .6rem; padding: .7rem .8rem; border: 1px solid var(--rule); border-radius: var(--r-sm); background: rgba(255, 255, 255, .025); }
.zcard h3 { margin: 0 0 .4rem; font: 700 13px/1.2 var(--text); letter-spacing: .02em; color: var(--paper); }
.zcard p { margin: 0 0 .5rem; } .zcard p:last-child { margin-bottom: 0; }
/* markers */
#modelist.mgroups { gap: .2rem; }
.mgroups .mall { display: flex; gap: .4rem; margin: 0 0 .55rem; }
.mgroups .mall button { padding: .3rem .7rem; border: 1px solid var(--rule); border-radius: 999px; background: rgba(255, 255, 255, .04); color: var(--dim); font: 600 12px var(--text); cursor: pointer; }
.mgroups .mall button:hover { color: var(--paper); border-color: var(--rule-strong); }
.mgroups section { margin: 0 0 .7rem; }
.mgroups h3 { margin: 0 0 .3rem; color: var(--faint); font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.mgroups .mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; }
#modelist.mgroups label { padding: .42rem .5rem; border: 1px solid var(--rule); background: rgba(255, 255, 255, .025); font-size: 13px; min-width: 0; transition: border-color .15s, background .15s; }
#modelist.mgroups label:has(input:checked) { border-color: color-mix(in srgb, var(--paper) 45%, transparent); background: color-mix(in srgb, var(--paper) 9%, transparent); }
#modelist.mgroups input { position: absolute; opacity: 0; pointer-events: none; }
#modelist.mgroups label:not(:has(input:checked)) .pt { filter: grayscale(.85); opacity: .55; }
#modelist.mgroups label:not(:has(input:checked)) span { color: var(--dim); }
#modelist.mgroups span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#modelist.mgroups label:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---- the step, on a card over the map: a rail of every step along its top, the step's number and name, what to do, the places
   it happens at, and the three buttons that move the run along. The one place a step is told. ---- */
#walk { display: flex; flex-direction: column; bottom: 1.1rem; max-height: min(56vh, 460px); padding: 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--paper) 16%, transparent); border-radius: 16px;
  background: color-mix(in srgb, color-mix(in srgb, var(--paper) 4%, var(--canvas)) 92%, transparent); backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: 0 20px 56px rgba(0, 0, 0, .62), 0 2px 8px rgba(0, 0, 0, .4); font: var(--t-md)/1.55 var(--text); color: rgba(252, 250, 246, .9); }
#walk[hidden] { display: none !important; }
#walk > * { flex: none; }
#wk-grab { display: none; }
#wk-dots { display: flex; gap: 2px; margin: 0; padding: 8px 16px 0; }
#wk-dots button { flex: 1 1 0; min-width: 0; height: 16px; padding: 0; border: 0; border-radius: 0; background: none; cursor: pointer; display: flex; align-items: center; outline: 0; transform: none; }
#wk-dots button.gap { margin-left: 6px; }
#wk-dots button.done, #wk-dots button.on { background: none; outline: 0; transform: none; }
#wk-dots i { display: block; width: 100%; height: 3px; border-radius: 2px; background: var(--s3); transition: height .16s ease, background .2s ease; }
#wk-dots button.done i { background: var(--ok); }
#wk-dots button.on i { height: 5px; border-radius: 3px; background: var(--wk); }
#wk-dots button:hover i { height: 7px; border-radius: 4px; background: var(--paper); }
#walk .wk-head { display: flex; align-items: center; gap: 12px; margin: 0; padding: 8px 12px 0 16px; }
#walk .wk-num { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--wk); color: var(--wk-ink); font: 700 15px/1 var(--text); font-variant-numeric: tabular-nums; box-shadow: none; }
#walk .wk-h { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
#walk #wk-pos { flex: none; color: color-mix(in srgb, var(--paper) 62%, transparent); font: 700 var(--t-xs)/1.25 var(--text); letter-spacing: .08em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#walk #wk-title { flex: none; font: 700 var(--t-lg)/1.22 var(--display, system-ui); letter-spacing: -.005em; color: var(--paper); }
#wk-close, #wk-editbtn { flex: none; align-self: flex-start; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--dim); cursor: pointer; transition: background .12s, color .12s; }
#wk-close:hover, #wk-editbtn:hover { background: var(--s2); color: var(--paper); }
#wk-close:active, #wk-editbtn:active { background: var(--s3); }
#wk-editbtn.on { background: var(--wk); color: var(--wk-ink); }
#wk-text { flex: 0 1 auto; min-height: 0; overflow-y: auto; padding: 12px 16px 0; scrollbar-width: thin; }
#wk-text b { color: var(--paper); font-weight: 700; }
#wk-text small { display: block; margin-top: 10px; padding: 8px 12px; border: 0; border-radius: 8px; background: var(--s1); color: var(--dim); font-size: var(--t-sm); line-height: 1.45; }
#wk-text small b { color: var(--paper); font-weight: 700; }
#wk-places { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 12px 16px 0; }
#wk-places:empty { display: none; }
#wk-places button { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 0 12px 0 6px; border: 0; border-radius: 999px; background: var(--s2); color: inherit; font: 500 var(--t-sm)/1.2 var(--text); cursor: pointer; text-align: left;
  transition: background .12s; }
#wk-places button { max-width: 100%; } #wk-places button > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }      /* (a long name is cut with an ellipsis, never by the card's edge) */
#wk-places button:hover { background: var(--s3); }
#wk-places button:active { background: color-mix(in srgb, var(--paper) 20%, transparent); }
#wk-places button.far { box-shadow: inset 0 0 0 1px var(--rule-strong); background: none; }
#wk-places .pt { position: static; transform: none; flex: none; width: 18px; height: 18px; border-width: 0; font-size: 10px; line-height: 18px; pointer-events: none; opacity: 1; box-shadow: none; outline: 0; }
#wk-places small { margin-left: 6px; color: var(--dim); }
/* (the boxes the step's way passes: named after the step's places, not a button - there may be several of each on the map) */
#wk-places .wkway { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 0 6px; color: var(--dim); font: 500 var(--t-sm)/1.2 var(--text); white-space: nowrap; }
#walk .wk-nav { display: flex; align-items: center; justify-content: flex-start; gap: 8px; margin: 0; padding: 16px 12px 12px; border: 0; background: none; }
#walk .wk-nav .wk-sp { flex: 1; }
#walk .wk-nav button { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--s2); color: var(--paper);
  font: 500 var(--t-md)/1 var(--text); cursor: pointer; transition: background .12s, filter .12s, transform .08s; }
#walk .wk-nav button:hover:not(:disabled) { background: var(--s3); border: 0; }
#walk .wk-nav button:active:not(:disabled) { transform: scale(.975); }
#walk .wk-nav button:disabled { opacity: .35; cursor: default; }
#walk .wk-nav #wk-prev { padding-left: 10px; }
#walk .wk-nav #wk-replay { background: none; color: var(--dim); padding: 0 12px 0 10px; }
#walk .wk-nav #wk-replay:hover { background: var(--s2); color: var(--paper); }
#walk .wk-nav #wk-next { min-width: 7.5rem; padding: 0 12px 0 18px; background: var(--wk) !important; color: var(--wk-ink) !important; font-weight: 700 !important; border: 0 !important; }
#walk .wk-nav #wk-next:hover { filter: brightness(1.08); }
/* a new step comes in softly; the card itself rises in */
@keyframes wkin { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes wkup { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
#walk.open { animation: wkup .22s cubic-bezier(.2, .7, .2, 1) both; }
#walk.swap .wk-num, #walk.swap .wk-h, #walk.swap #wk-text, #walk.swap #wk-places { animation: wkin .2s ease both; }
#walk.swap #wk-text { animation-delay: .03s; } #walk.swap #wk-places { animation-delay: .06s; }

/* ---- the map while a step is walked: the step's line, its stop and its places. What belongs to other steps or to moving between
   levels by hand steps out of the way; the site's own accent goes grey, so the walkthrough's colour is the only one; the map's
   switches are put away behind a button by the zoom buttons. ---- */
.viewer:has(.stage.walking) { --accent: color-mix(in srgb, var(--paper) 86%, transparent); --accent2: var(--accent); --accent-ink: #14110a; }
.viewer:has(.stage.walking) .mode3d-btn.on { background: var(--s3); color: var(--paper); border-color: color-mix(in srgb, var(--paper) 40%, transparent); }
.stage.walking .lnk, .stage.walking .wstop:not(.cur), .stage.walking .pt.off { display: none !important; }
/* (...and the weapon and loadout boxes that way passes, a size under the step's own places) */
.stage.walking .pt.way { width: 16px; height: 16px; font-size: 9px; line-height: 12px; z-index: 1; }
@media (min-width: 860px) {
  .stage.walking .zoom-controls [data-layers] { display: grid; border-top: 1px solid var(--rule); border-bottom: 0; }
  .stage.walking.lg-open .zoom-controls [data-layers] { background: var(--s3); }
  .map-panel:has(.stage.walking:not(.lg-open)) .legend { display: none; }
  .map-panel:has(.stage.walking.lg-open) .legend { left: 4.2rem; bottom: .9rem; transform: none; max-width: 15rem; flex-direction: column; align-items: flex-start; gap: .55rem; padding: .7rem .85rem; z-index: 9; }
  .map-panel:has(.stage.walking) .hint { display: none; }
}
.zroute polyline, .zroute3d polyline { vector-effect: non-scaling-stroke; filter: none; }
.zroute polyline { stroke-width: calc(1.5px / var(--z, 1)); opacity: .3; }
/* the run so far stays on the map: the walkthrough's red, thinner and quieter than the step being walked, over a thin casing; the
   steps still ahead are a pale thread */
.zroute polyline.done { stroke: var(--wk-line, #ff4438); stroke-width: calc(2.4px / var(--z, 1)); opacity: .62; }
.zroute polyline.case.done { stroke: #120f08; stroke-width: calc(5px / var(--z, 1)); opacity: .5; stroke-dasharray: none; }
.zroute polyline.todo { stroke: #fff; opacity: .3; }
.zroute polyline.cur { stroke-width: calc(3.5px / var(--z, 1)); opacity: 1; filter: none; }
.zroute polyline.case { stroke: #120f08; stroke-width: calc(7.5px / var(--z, 1)); opacity: .82; stroke-dasharray: none; }
.zroute polyline.ride { stroke-dasharray: calc(9px / var(--z, 1)) calc(6px / var(--z, 1)); }
.zroute polyline.case.ride { stroke-dasharray: none; }
.zroute polyline.lift, .zroute polyline.off { stroke-dasharray: calc(2px / var(--z, 1)) calc(6px / var(--z, 1)); }
.zroute polyline.off { opacity: .2; } .zroute polyline.cur.off { opacity: .55; }
.zroute polyline.flow { stroke: #fff; stroke-width: calc(1.5px / var(--z, 1)); stroke-dasharray: calc(1px / var(--z, 1)) calc(15px / var(--z, 1)); opacity: .95; filter: none; animation: zflow 1.1s linear infinite; }
.zroute3d polyline { stroke-width: 1.5px; opacity: .3; } .zroute3d polyline.done { stroke: var(--wk-line, #ff4438); stroke-width: 2.4px; opacity: .62; } .zroute3d polyline.todo { stroke: #fff; opacity: .3; } .zroute3d polyline.cur { stroke-width: 3.5px; opacity: 1; filter: none; }
.zroute3d polyline.case { stroke: #120f08; stroke-width: 7.5px; opacity: .82; stroke-dasharray: none; }
.zroute3d polyline.off { opacity: .2; } .zroute3d polyline.cur.off { opacity: .55; }
.zroute3d polyline.flow { stroke: #fff; stroke-width: 1.5px; stroke-dasharray: 1 15; opacity: .95; filter: none; animation: zflow3 1.1s linear infinite; }
@keyframes zflow { from { stroke-dashoffset: calc(16px / var(--z, 1)); } to { stroke-dashoffset: 0; } }
@keyframes zflow3 { from { stroke-dashoffset: 16; } to { stroke-dashoffset: 0; } }
.zroute.flying polyline.flow { display: none; }
.wstop.cur { min-width: 28px; height: 28px; border-radius: 14px; border-color: #120f08; font-size: 13.5px; line-height: 24px; box-shadow: 0 2px 8px rgba(0, 0, 0, .7); }
.wstop.cur::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--wk-line, #ff4438); opacity: 0; pointer-events: none; animation: zpulse 2.2s ease-out infinite; }
@keyframes zpulse { 0% { transform: scale(.75); opacity: .9; } 70%, 100% { transform: scale(1.55); opacity: 0; } }
.wstop span { position: absolute; left: calc(100% + 9px); top: 50%; transform: translateY(-50%); padding: 6px 10px; border: 0; border-radius: 8px; background: rgba(18, 15, 8, .92); color: #fff;
  font: 700 var(--t-sm, 13px)/1 var(--text); white-space: nowrap; pointer-events: none; box-shadow: 0 2px 10px rgba(0, 0, 0, .6); }

/* ---- over the map: the title stays readable on any picture; the 3D hint sits out of everyone's way, above the 3D button, and
   goes once the view has been moved ---- */
.titlecard::before { content: ""; position: absolute; z-index: -1; inset: -1.2rem -5rem -2.2rem -1.2rem; pointer-events: none;
  background: radial-gradient(ellipse at 22% 34%, color-mix(in srgb, var(--canvas) 82%, transparent) 0%, color-mix(in srgb, var(--canvas) 55%, transparent) 45%, transparent 72%); }
.titlecard .crumbs { color: color-mix(in srgb, var(--paper) 82%, transparent); }
.titlecard h1 { transition: font-size .2s ease; }
.map-panel:has(.stage.walking) .titlecard h1 { font-size: 1.25rem; margin: .4rem 0 0; }      /* while a step is walked the title steps back: the map above the card is the step's */
.map-panel:has(.stage.walking) .titlecard p { display: none; }
.titlecard p { color: color-mix(in srgb, var(--paper) 78%, transparent); }
.hint { transition: opacity .5s ease; }
.hint.seen { opacity: 0; }
@media (min-width: 860px) {
  .hint { top: auto; bottom: 3.75rem; left: auto; right: calc(var(--side-w) + 1.6rem); transform: none; padding: 0; border: 0; background: none; backdrop-filter: none; text-align: right;
    color: color-mix(in srgb, var(--paper) 80%, transparent); text-shadow: 0 1px 2px #000, 0 0 8px #000, 0 0 14px #000; }
}

/* ---- a phone: the card is a sheet at the foot of the screen, the map takes the room above it; its handle folds it to the name and
   the buttons (a tap, or a pull down), so the list under the map can be read; touch targets are 44 px ---- */
@media (max-width: 859px) {
  #walk { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; width: auto; margin: 0; transform: none; max-height: 56dvh; border-width: 1px 0 0; border-radius: 18px 18px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -14px 40px rgba(0, 0, 0, .6); backdrop-filter: none; background: color-mix(in srgb, var(--paper) 5%, var(--canvas)); }
  #wk-grab { display: grid; place-items: center; height: 24px; cursor: grab; touch-action: none; }
  #wk-grab::before { content: ""; width: 40px; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--paper) 32%, transparent); }
  #wk-dots { padding-top: 0; } #wk-dots button { height: 20px; }
  #walk.min #wk-dots, #walk.min #wk-text, #walk.min #wk-places, #walk.min #wk-edit { display: none; }
  #walk #wk-pos { white-space: normal; }
  #walk .wk-nav { padding: 14px 12px 12px; }
  #walk .wk-nav button { height: 46px; } #walk .wk-nav #wk-prev { flex: 1; } #walk .wk-nav #wk-next { flex: 1.5; } #walk .wk-nav .wk-sp { display: none; }
  #walk .wk-nav #wk-replay { width: 46px; padding: 0; } #walk .wk-nav #wk-replay span { display: none; }
  #wk-close, #wk-editbtn { width: 44px; height: 44px; margin: -6px -4px 0 0; }
  #wk-places button, #wk-places .wkway { min-height: 36px; }
  .ztl .zst > button { min-height: 44px; } #ztabs button { height: 40px; }
  #ztabs { position: static; margin-top: .6rem; }
  .wstop span { display: none; }                /* (the sheet right under the map has the name) */
  .map-panel:has(.stage.walking) .stage { height: max(240px, calc(100dvh - var(--top-h, 56px) - var(--wk-h, 0px))); }
  .viewer:has(.stage.walking) { padding-bottom: calc(var(--wk-h, 0px) + 1rem); }
  .map-panel:has(.stage.walking) .titlecard .crumbs { display: none; }
}
@media (prefers-reduced-motion: reduce) { .zroute polyline.flow, .zroute3d polyline.flow, .wstop.cur::before, #walk.open, #walk.swap .wk-num, #walk.swap .wk-h, #walk.swap #wk-text, #walk.swap #wk-places { animation: none; }
  .ztl .zst > button, .ztl em, .ztl .zt, #wk-dots i { transition: none; } }

/* the walkthrough's line edited by hand */
#wk-edit { margin: 12px 16px 0; padding: .5rem .65rem; border: 1px dashed var(--wk); border-radius: var(--r-sm); background: color-mix(in srgb, var(--wk) 7%, transparent); font-size: 12.5px; }
#wk-edit p { margin: 0 0 .45rem; } #wk-edit div { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
#wk-edit button { padding: .3rem .7rem; border: 1px solid var(--rule-strong); border-radius: var(--r-sm); background: rgba(255, 255, 255, .06); color: inherit; font: 600 12.5px var(--text); cursor: pointer; }
#wk-edit button:hover { border-color: var(--wk); } #re-save { background: var(--wk) !important; border-color: var(--wk) !important; color: var(--wk-ink) !important; }
#re-msg { color: var(--dim); }
.rh { position: absolute; z-index: 6; width: 13px; height: 13px; margin: 0; border-radius: 50%; background: #fff; border: 2px solid #1b1608; transform: translate(-50%, -50%) scale(calc(1 / var(--z, 1))); cursor: grab; pointer-events: auto; box-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.rh.mid { width: 9px; height: 9px; background: rgba(27, 22, 8, .55); border: 1.5px solid #fff; z-index: 5; }
.rh:hover, .rh.sel { background: var(--wk-line); } .rh.sel { box-shadow: 0 0 0 3px rgba(255, 255, 255, .7); z-index: 7; }
/* the line from the side: way along it across, height up; a point is dragged up or down */
#re-prof { display: block; width: 100%; height: 96px; margin: 0 0 .5rem; border-radius: var(--r-sm); background: rgba(0, 0, 0, .28); touch-action: none; user-select: none; }
#re-prof .pg { stroke: rgba(255, 255, 255, .14); stroke-width: 1; stroke-dasharray: 3 4; }
#re-prof .pl { fill: none; stroke: var(--wk-line); stroke-width: 2; stroke-linejoin: round; } #re-prof .pl.k1 { stroke-dasharray: 8 5; } #re-prof .pl.k2 { stroke-dasharray: 2 5; }
#re-prof .ph { fill: #fff; stroke: #1b1608; stroke-width: 2; cursor: ns-resize; } #re-prof .ph:hover, #re-prof .ph.sel { fill: var(--wk-line); stroke: #fff; }
#re-prof text { fill: var(--dim); font: 500 10px var(--text); font-variant-numeric: tabular-nums; }
.stage.redit .zroute polyline.flow, .stage.redit .zroute polyline.case { display: none; } .stage.redit .wstop.cur { cursor: grab; }
.stage.redit .wstop.cur::before { animation: none; }

/* ---- the step's card on a wide screen: smaller, so more of the map (the 3D view above all) is seen round it; and a button beside
   the cross folds it to its name and buttons. A phone keeps its own sheet and handle. ---- */
#wk-fold { flex: none; align-self: flex-start; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--dim); cursor: pointer; transition: background .12s, color .12s; }
#wk-fold:hover { background: var(--s2); color: var(--paper); } #wk-fold:active { background: var(--s3); }
@media (max-width: 859px) { #wk-fold { display: none; } }
@media (min-width: 860px) {
  #walk { max-height: min(46vh, 380px); font-size: var(--t-sm); line-height: 1.5; }
  #walk, .viewer:has(.side.ztabbed) #walk { width: min(500px, calc(100% - var(--side-w) - 9rem)); }
  #walk .wk-head { gap: 10px; padding-top: 6px; }
  #walk .wk-num { width: 30px; height: 30px; font-size: 13px; }
  #walk #wk-title { font-size: 16px; }
  #wk-text { padding-top: 8px; }
  #wk-text small { margin-top: 8px; padding: 6px 10px; font-size: 12px; }
  #wk-places { gap: 4px; padding-top: 8px; }
  #wk-places button, #wk-places .wkway { min-height: 24px; font-size: 12px; gap: 6px; }
  #wk-places button { padding: 0 10px 0 4px; }
  #walk .wk-nav { padding: 10px 12px; }
  #walk .wk-nav button { height: 34px; font-size: var(--t-sm); }
  #walk .wk-nav #wk-next { min-width: 6.5rem; }
  #walk.min #wk-text, #walk.min #wk-places, #walk.min #wk-edit { display: none; }
  #walk.min .wk-nav { padding-top: 8px; }
}
