/*
 * Waypoint marketing page (waypoint-page.twig).
 *
 * Two layers:
 *  - wpm-  the page itself, in the LonexLabs storefront system (lonex.css
 *          tokens, hairline rows, emerald only on actions and live state).
 *  - wg-   Waypoint's in-game UI, recreated from waypoint_ui/web/src/styles:
 *          solid near-black panels, 3px corners, Public Sans, Plex Mono and
 *          the server's accent. The 3px accent edges are the product's own
 *          look, so they live inside the illustrations only.
 *
 * In-game screens are laid out on a virtual game screen: inside .wg-canvas
 * 1em is one pixel of a --vw-wide screen, so the mocks keep the real UI's
 * proportions at any size.
 */

.wpm {
  --wg-accent: #e8a33d;
  --wg-ink: #14100a;
  --wg-panel: rgba(9, 11, 15, 0.88);
  --wg-solid: #0c0f14;
  --wg-raised: rgba(255, 255, 255, 0.06);
  --wg-line: rgba(255, 255, 255, 0.1);
  --wg-line-2: rgba(255, 255, 255, 0.18);
  --wg-text: #f2f4f7;
  --wg-muted: rgba(242, 244, 247, 0.64);
  --wg-faint: rgba(242, 244, 247, 0.4);
  --wg-ok: #4cc38a;
  --wg-warn: #f2c14e;
  --wg-bad: #ef5a5f;
  --wg-info: #6cb4ee;
  --wg-sans: "Public Sans", ui-sans-serif, system-ui, sans-serif;
  --wg-mono: "IBM Plex Mono", ui-monospace, monospace;
}

/* ---------- Page rhythm ---------- */
.wpm-sec { padding: clamp(72px, 9vw, 128px) 0; border-top: 1px solid var(--lx-line); }
.wpm-hero + .wpm-sec { border-top: 0; }
.wpm-hero .wp-hero-foot p { max-width: 40rem; }
.wpm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; margin-bottom: clamp(28px, 3.5vw, 44px); }
.wpm-head h2 { font-family: var(--lx-display); font-weight: 600; font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.035em; line-height: 1; }
.wpm-head p { margin-top: 12px; max-width: 52ch; color: var(--lx-text-2); font-size: 17px; }
.wpm-display { font-family: var(--lx-display); font-weight: 600; font-size: clamp(40px, 5.6vw, 84px); letter-spacing: -0.045em; line-height: 0.95; }
.wpm-display em { font-style: normal; color: var(--lx-text-2); }

/* ---------- Intro ---------- */
.wpm-intro-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.wpm-intro-copy { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.wpm-intro-lead { font-family: var(--lx-display); font-weight: 500; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; letter-spacing: -0.02em; color: var(--lx-text); max-width: 30ch; }
.wpm-intro-copy .wpm-box { margin: 0; }
.wpm-box { margin: 28px 0 0; border-top: 1px solid var(--lx-line); }
.wpm-box > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--lx-line); }
.wpm-box dt { font-size: 14px; font-weight: 600; color: var(--lx-text); }
.wpm-box dd { margin: 0; font-size: 15px; color: var(--lx-text-2); }
.wpm-box > div + div dd { color: var(--lx-text-3); }

/* ---------- Server colour swatches ---------- */
.wpm-swatches { display: flex; align-items: center; gap: 8px; }
.wpm-swatches-label { margin-right: 6px; font-size: 13.5px; color: var(--lx-text-3); }
.wpm-swatches button {
  width: 28px; height: 28px; padding: 0; border-radius: 99px; cursor: pointer;
  background: var(--c); border: 2px solid var(--lx-bg); box-shadow: 0 0 0 1px var(--lx-line-2);
  transition: box-shadow .2s var(--lx-ease), transform .2s var(--lx-ease);
}
.wpm-swatches button:hover { transform: translateY(-1px); }
.wpm-swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--lx-text); }

/* ---------- Frames around in-game screens ---------- */
.wpm-frame { margin: 0; }
.wpm-frame > .wpm-frame-bar,
.wpm-frame > .wg-stage { border: 1px solid var(--lx-line-2); }
.wpm-frame-bar {
  display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px;
  background: #101317; border-bottom: 0 !important; border-radius: var(--lx-r-lg) var(--lx-r-lg) 0 0;
}
.wpm-frame-bar > span { width: 10px; height: 10px; border-radius: 99px; background: var(--lx-bg-3); }
.wpm-frame-bar b { margin: 0 auto; transform: translateX(-24px); padding: 3px 12px; border-radius: 6px; background: rgba(255, 255, 255, .04); font-size: 12px; font-weight: 500; color: var(--lx-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; }
.wpm-frame > .wg-stage { border-radius: 0 0 var(--lx-r-lg) var(--lx-r-lg); box-shadow: var(--lx-shadow-lg); }
.wpm-frame figcaption { margin-top: 12px; font-size: 13px; color: var(--lx-text-3); }

/* ---------- Game stage ---------- */
.wg-stage {
  --vw: 1280;
  position: relative; overflow: hidden; container-type: inline-size;
  aspect-ratio: 16 / 9; background: #0b2a20 var(--wpm-art) center 60% / cover no-repeat;
}
.wg-stage::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 12, 9, .25), rgba(4, 12, 9, .55)); }
.wg-canvas {
  --u: calc(100cqw / var(--vw));
  position: absolute; inset: 0; font-size: var(--u);
  font-family: var(--wg-sans); color: var(--wg-text); line-height: 1.35;
  -webkit-font-smoothing: antialiased; font-feature-settings: "tnum";
}
.wg-canvas * { box-sizing: border-box; }
.wg-mono { font-family: var(--wg-mono); font-feature-settings: "zero"; }
.wg-dim { color: var(--wg-faint); }
.wg-ok { color: var(--wg-ok); }
.wg-warn { color: var(--wg-warn); }
.wg-small { font-size: calc(11 * var(--u)); }
.wg-canvas svg { display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Core scene placement */
.wg-stage-core .wg-alert-911 { position: absolute; top: calc(24 * var(--u)); right: calc(488 * var(--u)); width: calc(300 * var(--u)); }
.wg-stage-core .wg-toast { position: absolute; top: calc(24 * var(--u)); left: calc(24 * var(--u)); }
.wg-sheet { position: absolute; top: 0; right: 0; bottom: 0; width: calc(440 * var(--u)); }
.wg-minimap { position: absolute; left: calc(24 * var(--u)); bottom: calc(52 * var(--u)); width: calc(236 * var(--u)); height: calc(150 * var(--u)); }
.wg-vitals { position: absolute; left: calc(24 * var(--u)); bottom: calc(24 * var(--u)); width: calc(236 * var(--u)); }
.wg-hud { position: absolute; left: calc(272 * var(--u)); bottom: calc(24 * var(--u)); width: calc(300 * var(--u)); }
.wg-stage-core .wg-veh { position: absolute; left: calc(612 * var(--u)); bottom: calc(24 * var(--u)); }

/* ---------- In-game panels ---------- */
.wg-alert {
  background: var(--wg-solid); border-radius: calc(3 * var(--u)); border: calc(1 * var(--u)) solid var(--wg-line);
  box-shadow: inset calc(3 * var(--u)) 0 0 var(--wg-info); padding: calc(12 * var(--u)) calc(14 * var(--u)) calc(12 * var(--u)) calc(17 * var(--u)); font-size: calc(13 * var(--u));
}
.wg-alert p, .wg-alert div, .wg-alert span, .wg-alert b { font-size: 1em; }
.wg-alert-hd { display: flex; justify-content: space-between; align-items: baseline; }
.wg-alert-hd b { font-size: 1.08em; font-weight: 700; }
.wg-alert-hd span { color: var(--wg-faint); font-size: .85em; }
.wg-alert p { margin: calc(4 * var(--u)) 0 0; color: var(--wg-muted); font-size: 1em; line-height: 1.35; }
.wg-alert-ft { display: flex; justify-content: space-between; gap: 10px; margin-top: .7em; padding-top: .6em; border-top: 1px solid var(--wg-line); color: var(--wg-faint); font-size: .9em; }
.wg-respond { color: var(--wg-text); }
.wg-alert-shots { box-shadow: inset calc(3 * var(--u)) 0 0 #f08a3c; }

.wg-toast {
  width: calc(320 * var(--u)); padding: calc(11 * var(--u)) calc(14 * var(--u)) calc(13 * var(--u)) calc(17 * var(--u)); position: relative; overflow: hidden;
  background: var(--wg-solid); border: calc(1 * var(--u)) solid var(--wg-line); border-radius: calc(3 * var(--u));
  box-shadow: inset calc(3 * var(--u)) 0 0 var(--wg-info);
}
.wg-toast b { display: block; font-size: calc(13 * var(--u)); font-weight: 700; }
.wg-toast span { display: block; margin-top: calc(2 * var(--u)); font-size: calc(12.5 * var(--u)); color: var(--wg-muted); }
.wg-toast i { position: absolute; left: 0; bottom: 0; height: calc(2 * var(--u)); background: currentColor; color: var(--wg-info); opacity: .8; }
.wg-toast-ok { box-shadow: inset calc(3 * var(--u)) 0 0 var(--wg-ok); } .wg-toast-ok i { color: var(--wg-ok); }
.wg-toast-warn { box-shadow: inset calc(3 * var(--u)) 0 0 var(--wg-warn); } .wg-toast-warn i { color: var(--wg-warn); }
.wg-toast-bad { box-shadow: inset calc(3 * var(--u)) 0 0 var(--wg-bad); } .wg-toast-bad i { color: var(--wg-bad); }

/* F6 sheet */
.wg-sheet { background: var(--wg-solid); border-left: calc(1 * var(--u)) solid var(--wg-line); box-shadow: inset 0 calc(4 * var(--u)) 0 var(--wg-accent); display: flex; flex-direction: column; }
.wg-sheet-hd { padding: calc(26 * var(--u)) calc(24 * var(--u)) calc(14 * var(--u)); }
.wg-sheet-hd b { display: block; font-size: calc(22 * var(--u)); font-weight: 700; letter-spacing: -.01em; }
.wg-sheet-hd span { display: block; margin-top: calc(3 * var(--u)); font-size: calc(13 * var(--u)); color: var(--wg-muted); }
.wg-tabs { display: flex; gap: calc(22 * var(--u)); padding: 0 calc(24 * var(--u)); border-bottom: calc(1 * var(--u)) solid var(--wg-line); }
.wg-tabs span { padding: calc(10 * var(--u)) 0 calc(11 * var(--u)); font-size: calc(13 * var(--u)); color: var(--wg-muted); box-shadow: inset 0 0 0 transparent; }
.wg-tabs span.is-on { color: var(--wg-text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--wg-accent); }
.wg-sheet-body { padding: calc(20 * var(--u)) calc(24 * var(--u)); display: grid; gap: calc(8 * var(--u)); }
.wg-duty { display: flex; align-items: center; justify-content: space-between; padding: calc(14 * var(--u)); margin-bottom: calc(10 * var(--u)); background: var(--wg-raised); border-radius: calc(3 * var(--u)); }
.wg-state { display: inline-flex; align-items: center; gap: calc(8 * var(--u)); font-size: calc(15 * var(--u)); font-weight: 700; }
.wg-state i { width: .55em; height: .55em; border-radius: 99px; background: var(--wg-ok); }
.wg-btn { display: inline-block; white-space: nowrap; padding: .6em 1.1em; border-radius: 3px; background: var(--wg-accent); color: var(--wg-ink); font-size: calc(13 * var(--u)); font-weight: 700; transition: background-color .3s var(--lx-ease); }
.wg-btn-sm { font-size: calc(11.5 * var(--u)); padding: .45em .8em; }
.wg-label { font-size: calc(11.5 * var(--u)); color: var(--wg-faint); margin-top: calc(6 * var(--u)); }
.wg-field { padding: calc(10 * var(--u)) calc(12 * var(--u)); border: calc(1 * var(--u)) solid var(--wg-line); border-radius: calc(3 * var(--u)); background: rgba(0, 0, 0, .25); font-size: calc(13 * var(--u)); }
.wg-field.wg-mono { font-size: calc(13 * var(--u)); }
.wg-depts { list-style: none; margin: 0; padding: 0; border: calc(1 * var(--u)) solid var(--wg-line); border-radius: calc(3 * var(--u)); }
.wg-depts li { display: flex; align-items: center; gap: .6em; padding: .75em .9em; font-size: calc(13 * var(--u)); border-bottom: 1px solid var(--wg-line); color: var(--wg-muted); }
.wg-depts li:last-child { border-bottom: 0; }
.wg-depts li.is-on { color: var(--wg-text); background: var(--wg-raised); }
.wg-depts i { width: .6em; height: .6em; border-radius: 99px; background: var(--d); flex: none; }
.wg-depts li > span:last-child { margin-left: auto; font-size: .85em; color: var(--wg-faint); }
.wg-chip { display: inline-block; padding: .2em .55em; border-radius: 3px; border: 1px solid var(--wg-line-2); font-size: calc(11.5 * var(--u)); color: var(--wg-text); }
.wg-depts .wg-chip { font-size: .85em; color: var(--wg-text) !important; }
.wg-chip-warn { border-color: rgba(242, 193, 78, .5); color: var(--wg-warn) !important; }

/* Minimap, vitals and HUD stack */
.wg-minimap { background: rgba(14, 30, 26, .85); border: calc(2 * var(--u)) solid rgba(0, 0, 0, .55); border-radius: calc(2 * var(--u)); overflow: hidden; }
.wg-minimap svg { width: 100%; height: 100%; stroke: rgba(255, 255, 255, .35); stroke-width: 6; }
.wg-minimap circle { fill: var(--wg-accent); stroke: none; }
.wg-vitals { display: grid; grid-template-columns: calc(16 * var(--u)) 1fr 1fr; gap: calc(6 * var(--u)); align-items: center; }
.wg-vitals svg { width: calc(16 * var(--u)); height: calc(16 * var(--u)); color: var(--wg-ok); }
.wg-bar { height: calc(6 * var(--u)); background: rgba(0, 0, 0, .55); border-radius: calc(1 * var(--u)); overflow: hidden; }
.wg-bar i { display: block; height: 100%; }
.wg-bar-hp i { background: var(--wg-ok); }
.wg-bar-ar i { background: #4f8fe8; }

.wg-hud { display: grid; gap: calc(4 * var(--u)); }
.wg-row {
  display: flex; align-items: center; gap: .55em; padding: .5em .8em; font-size: calc(13 * var(--u));
  background: rgba(9, 11, 15, .8); border-radius: 3px; box-shadow: inset 3px 0 0 var(--wg-accent);
}
.wg-row > *:last-child:not(:first-child) { margin-left: auto; }
.wg-row b { font-weight: 700; }
.wg-dot { width: .55em; height: .55em; border-radius: 99px; background: var(--d); }
.wg-loc { align-items: flex-start; }
.wg-loc small { display: block; font-size: .88em; color: var(--wg-muted); }
.wg-dir { white-space: nowrap; color: var(--wg-muted); }
.wg-dir b { color: var(--wg-text); }
.wg-postal { padding: .1em .45em; border-radius: 3px; background: var(--wg-accent); color: var(--wg-ink); font-weight: 600; transition: background-color .3s var(--lx-ease); }

/* Vehicle HUD */
.wg-veh { display: grid; grid-template-columns: auto auto; align-items: end; justify-content: start; column-gap: calc(10 * var(--u)); row-gap: calc(6 * var(--u)); }
.wg-veh-side { grid-column: 1 / -1; }
.wg-speed { display: flex; align-items: baseline; gap: calc(6 * var(--u)); text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.wg-speed b { font-size: calc(52 * var(--u)); font-weight: 800; line-height: .9; letter-spacing: -.02em; }
.wg-speed span { font-size: calc(12 * var(--u)); font-weight: 700; color: var(--wg-muted); }
.wg-gear { display: grid; place-items: center; width: calc(28 * var(--u)); height: calc(28 * var(--u)); margin-bottom: calc(4 * var(--u)); border: calc(2 * var(--u)) solid #f2c14e; border-radius: calc(3 * var(--u)); color: #f2c14e; font-size: calc(15 * var(--u)); font-weight: 800; width: 1.9em; height: 1.9em; border-width: .13em; }
.wg-gear-n { color: #fff; border-color: #fff; }
.wg-veh-side { display: flex; align-items: center; gap: calc(8 * var(--u)); }
.wg-ico { width: calc(22 * var(--u)); height: calc(22 * var(--u)); color: var(--wg-faint); }
.wg-ico svg { width: 100%; height: 100%; }
.wg-ico-on { color: var(--wg-ok); }
.wg-ico-bad { color: var(--wg-bad); }
.wg-fuel { width: calc(70 * var(--u)); height: calc(6 * var(--u)); background: rgba(0, 0, 0, .55); border-radius: calc(1 * var(--u)); overflow: hidden; }
.wg-fuel i { display: block; height: 100%; background: var(--wg-text); }
.wg-rpm { grid-column: 1 / -1; width: calc(150 * var(--u)); height: calc(4 * var(--u)); background: rgba(0, 0, 0, .55); }
.wg-rpm i { display: block; height: 100%; background: var(--wg-accent); transition: background-color .3s var(--lx-ease); }

/* ---------- Module screens ---------- */
.wg-stage-mod { --vw: 760; aspect-ratio: 16 / 10; background-size: 150% auto; background-position: 22% 62%; }
@media (prefers-reduced-motion: no-preference) { .wg-stage-mod { transition: background-size .9s var(--lx-ease), background-position .9s var(--lx-ease); } }
.wg-stage-mod[data-view="doors"] { background-size: 260% auto; background-position: 30% 62%; }
.wg-stage-mod[data-view="doorbells"] { background-size: 210% auto; background-position: 100% 70%; }
.wg-stage-mod[data-view="shotspotter"] { background-size: 120% auto; background-position: 50% 20%; }
.wg-stage-mod[data-view="custody"] { background-size: 180% auto; background-position: 80% 40%; }
.wg-stage-mod[data-view="seatbelt"] { background-size: 320% auto; background-position: 38% 52%; }
.wg-stage-mod[data-view="fuel"] { background-size: 240% auto; background-position: 12% 66%; }
.wg-stage-mod[data-view="damage"] { background-size: 280% auto; background-position: 72% 70%; }
.wg-stage-mod[data-view="sirens"] { background-size: 170% auto; background-position: 60% 30%; }
.wg-stage-mod[data-view="radar"] { background-size: 140% auto; background-position: 85% 75%; }
.wg-stage-mod[data-view="lidar"] { background-size: 200% auto; background-position: 92% 66%; }
.wg-stage-mod[data-view="evidence"] { background-size: 230% auto; background-position: 40% 92%; }
.wg-stage-mod[data-view="photos"] { background-size: 190% auto; background-position: 62% 18%; }
.wg-stage-mod[data-view="afk"] { background-size: 130% auto; background-position: 50% 40%; }
.wg-screen { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.wg-screen.is-current { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  .wg-screen { transition: opacity .35s var(--lx-ease), visibility 0s .35s; }
  .wg-screen.is-current { transition: opacity .45s var(--lx-ease) .05s, visibility 0s; }
  .wg-screen > * { transition: transform .55s var(--lx-ease) .05s, filter .55s var(--lx-ease) .05s; }
  .wg-screen:not(.is-current) > * { transform: translateY(10px); filter: blur(4px); }
}
.wg-pos-tr { position: absolute; top: calc(24 * var(--u)); right: calc(24 * var(--u)); }
.wg-screen .wg-alert { width: calc(300 * var(--u)); }

.wg-prompt {
  position: absolute; left: 50%; bottom: 26%; transform: translateX(-50%);
  display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(8 * var(--u)) calc(14 * var(--u)) calc(8 * var(--u)) calc(8 * var(--u)); white-space: nowrap;
  background: var(--wg-panel); border-radius: calc(3 * var(--u)); font-size: calc(14 * var(--u));
}
.wg-prompt kbd { display: grid; place-items: center; min-width: 1.9em; height: 1.9em; padding: 0 .4em; border-radius: 3px; background: var(--wg-text); color: #0e1014; font: 700 1em var(--wg-sans); }
.wg-prompt b { font-weight: 700; }
.wg-prompt span { padding-left: 10px; border-left: 1px solid var(--wg-line-2); color: var(--wg-muted); }

.wg-hint { position: absolute; left: 34%; bottom: 10%; white-space: nowrap; transform: translateX(-50%); margin: 0; font-size: calc(12 * var(--u)); color: var(--wg-muted); }

/* target */
.wg-eye { position: absolute; left: calc(34% - calc(15 * var(--u))); top: calc(58% - calc(15 * var(--u))); width: calc(30 * var(--u)); height: calc(30 * var(--u)); border-radius: 99px; display: grid; place-items: center; background: rgba(9, 11, 15, .7); box-shadow: 0 0 0 calc(2 * var(--u)) var(--wg-accent); color: var(--wg-accent); }
.wg-eye svg { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }
.wg-eye-menu { position: absolute; left: calc(34% + calc(28 * var(--u))); top: calc(58% - calc(15 * var(--u))); min-width: calc(190 * var(--u)); margin: 0; padding: calc(4 * var(--u)); list-style: none; background: var(--wg-solid); border: calc(1 * var(--u)) solid var(--wg-line); border-radius: calc(3 * var(--u)); }
.wg-eye-menu li { display: flex; align-items: center; gap: .7em; padding: .55em .7em; border-radius: 2px; font-size: calc(13 * var(--u)); }
.wg-eye-menu li:first-child { background: var(--wg-raised); }
.wg-eye-menu svg { width: 1.15em; height: 1.15em; color: var(--wg-accent); }
.wg-eye-menu .wg-mono { margin-left: auto; font-size: .85em; color: var(--wg-faint); }

/* doors */
.wg-lock { position: absolute; left: 22%; top: 30%; width: calc(34 * var(--u)); height: calc(34 * var(--u)); display: grid; place-items: center; border-radius: 99px; background: rgba(9, 11, 15, .75); }
.wg-lock svg { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
.wg-lock-red { color: var(--wg-bad); }
.wg-keypad { position: absolute; right: 9%; top: 12%; width: calc(220 * var(--u)); padding: calc(14 * var(--u)); background: var(--wg-solid); border-radius: calc(3 * var(--u)); box-shadow: inset 0 calc(3 * var(--u)) 0 var(--wg-accent); }
.wg-keypad-hd { font-size: calc(13 * var(--u)); font-weight: 700; }
.wg-keypad-code { margin: calc(8 * var(--u)) 0 calc(10 * var(--u)); padding: calc(6 * var(--u)) calc(10 * var(--u)); border-radius: calc(3 * var(--u)); background: rgba(0, 0, 0, .35); font-size: calc(18 * var(--u)); letter-spacing: .2em; }
.wg-keypad-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(5 * var(--u)); }
.wg-keypad-keys span { display: grid; place-items: center; height: calc(32 * var(--u)); border-radius: calc(3 * var(--u)); background: var(--wg-raised); font-size: calc(14 * var(--u)); font-weight: 600; height: 2.3em; }
.wg-keypad-keys .wg-ok-key { background: var(--wg-accent); color: var(--wg-ink); }

/* doorbells */
.wg-bell { position: absolute; left: 30%; top: 34%; width: calc(40 * var(--u)); height: calc(40 * var(--u)); display: grid; place-items: center; border-radius: 99px; background: rgba(9, 11, 15, .75); color: var(--wg-text); }
.wg-bell svg { width: calc(20 * var(--u)); height: calc(20 * var(--u)); }

/* shotspotter */
.wg-map { position: absolute; left: 6%; top: 10%; width: 46%; height: 70%; border-radius: calc(3 * var(--u)); background: rgba(9, 20, 18, .82); border: calc(1 * var(--u)) solid var(--wg-line); overflow: hidden;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: calc(28 * var(--u)) calc(28 * var(--u)); }
.wg-ring { position: absolute; left: 50%; top: 50%; width: calc(130 * var(--u)); height: calc(130 * var(--u)); margin: calc(-65 * var(--u)) 0 0 calc(-65 * var(--u)); border-radius: 99px; border: calc(2 * var(--u)) solid #f08a3c; background: rgba(240, 138, 60, .14); }
.wg-ring-2 { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .wg-screen.is-current .wg-ring-2 { animation: wg-pulse 2.4s var(--lx-ease) infinite; }
}
@keyframes wg-pulse { 0% { opacity: .7; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.35); } }

/* custody */
.wg-custody { position: absolute; left: 50%; top: calc(24 * var(--u)); transform: translateX(-50%); padding: calc(10 * var(--u)) calc(22 * var(--u)); text-align: center; background: var(--wg-solid); border-radius: calc(3 * var(--u)); box-shadow: inset 0 calc(3 * var(--u)) 0 var(--wg-bad); }
.wg-custody span { display: block; font-size: calc(12.5 * var(--u)); color: var(--wg-muted); }
.wg-custody b { display: block; font-size: calc(22 * var(--u)); color: var(--wg-bad); }
.wg-screen[data-screen="custody"] .wg-pos-tr { top: auto; bottom: calc(24 * var(--u)); }

/* vehicle HUD on module screens */
.wg-veh-mod { position: absolute; left: 50%; bottom: calc(24 * var(--u)); transform: translateX(-50%); }
@media (prefers-reduced-motion: no-preference) {
  .wg-screen.is-current .wg-blink { animation: wg-blink 1s steps(2, jump-none) infinite; }
}
@keyframes wg-blink { 50% { opacity: .2; } }

/* fuel */
.wg-pill { position: absolute; left: 50%; bottom: 44%; transform: translateX(-50%); display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(8 * var(--u)) calc(14 * var(--u)); border-radius: calc(99 * var(--u)); background: var(--wg-panel); white-space: nowrap; }
.wg-pill > span:first-child, .wg-pill b { font-size: calc(13 * var(--u)); }
.wg-pill b { font-weight: 600; }
.wg-pill-bar { width: calc(120 * var(--u)); height: calc(6 * var(--u)); border-radius: calc(99 * var(--u)); background: rgba(255, 255, 255, .12); overflow: hidden; }
.wg-pill-bar i { display: block; height: 100%; background: var(--wg-accent); transition: background-color .3s var(--lx-ease); }

/* sirens */
.wg-keymap { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; grid-template-columns: repeat(2, calc(200 * var(--u))); gap: calc(6 * var(--u)) calc(10 * var(--u)); padding: calc(16 * var(--u)); background: var(--wg-solid); border-radius: calc(3 * var(--u)); box-shadow: inset 0 calc(3 * var(--u)) 0 var(--wg-accent); }
.wg-keymap div { display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(4 * var(--u)); border-radius: calc(3 * var(--u)); }
.wg-keymap div.is-on { background: var(--wg-raised); }
.wg-keymap kbd { display: grid; place-items: center; min-width: 1.9em; height: 1.9em; padding: 0 .45em; border-radius: 3px; background: var(--wg-text); color: #0e1014; font: 700 calc(12 * var(--u)) var(--wg-sans); }
.wg-keymap span { font-size: calc(13 * var(--u)); color: var(--wg-muted); }
.wg-keymap .is-on span { color: var(--wg-text); font-weight: 600; }
.wg-lightbar { position: absolute; left: 50%; top: 9%; transform: translateX(-50%); display: flex; gap: calc(6 * var(--u)); }
.wg-lightbar i { width: calc(70 * var(--u)); height: calc(10 * var(--u)); border-radius: calc(2 * var(--u)); background: #2a3140; }
@media (prefers-reduced-motion: no-preference) {
  .wg-screen.is-current .wg-lightbar i:first-child { animation: wg-red .5s steps(2, jump-none) infinite; }
  .wg-screen.is-current .wg-lightbar i:last-child { animation: wg-blue .5s steps(2, jump-none) infinite; }
}
@keyframes wg-red { 0% { background: #ef4444; } 100% { background: #2a3140; } }
@keyframes wg-blue { 0% { background: #2a3140; } 100% { background: #3b82f6; } }

/* radar */
.wg-radar { position: absolute; right: calc(24 * var(--u)); bottom: calc(24 * var(--u)); width: calc(272 * var(--u)); padding: calc(8 * var(--u)) calc(10 * var(--u)); background: var(--wg-solid); border-radius: calc(3 * var(--u)); border: calc(1 * var(--u)) solid var(--wg-line); }
.wg-radar-row { display: grid; grid-template-columns: calc(50 * var(--u)) 1fr calc(58 * var(--u)) calc(14 * var(--u)); align-items: center; gap: calc(4 * var(--u)); padding: calc(6 * var(--u)) 0; border-bottom: calc(1 * var(--u)) solid var(--wg-line); }
.wg-radar-row > span:first-child { font-size: calc(12 * var(--u)); font-weight: 600; }
.wg-radar-row small { display: block; font-size: .85em; font-weight: 500; color: var(--wg-faint); }
.wg-radar-row > b { font-size: calc(28 * var(--u)); font-weight: 700; text-align: right; }
.wg-radar-row > b.wg-fast { font-size: calc(17 * var(--u)); color: var(--wg-warn); }
.wg-radar-lock { width: calc(14 * var(--u)); height: calc(14 * var(--u)); color: var(--wg-accent); }
.wg-radar-plates { display: flex; gap: calc(6 * var(--u)); padding: calc(7 * var(--u)) 0; }
.wg-radar-plates span { display: flex; align-items: center; gap: calc(5 * var(--u)); padding: calc(3 * var(--u)) calc(6 * var(--u)); border-radius: calc(3 * var(--u)); background: var(--wg-raised); }
.wg-radar-plates i { font-style: normal; font-size: calc(10 * var(--u)); color: var(--wg-faint); }
.wg-radar-plates b { font-size: calc(12 * var(--u)); font-weight: 500; }
.wg-radar-ft { display: flex; justify-content: space-between; padding-top: calc(4 * var(--u)); font-size: calc(12 * var(--u)); color: var(--wg-faint); }
.wg-radar-ft b { color: var(--wg-ok); font-weight: 600; }

/* lidar */
.wg-reticle { position: absolute; left: calc(50% - calc(28 * var(--u))); top: calc(42% - calc(28 * var(--u))); width: calc(56 * var(--u)); height: calc(56 * var(--u)); border: calc(2 * var(--u)) solid #fff; border-radius: calc(2 * var(--u)); }
.wg-reticle i { position: absolute; left: 50%; top: 50%; width: calc(4 * var(--u)); height: calc(4 * var(--u)); margin: calc(-2 * var(--u)) 0 0 calc(-2 * var(--u)); border-radius: 99px; background: var(--wg-bad); }
.wg-reticle-over { border-color: var(--wg-bad); }
.wg-lidar { position: absolute; left: 50%; top: calc(42% + calc(40 * var(--u))); transform: translateX(-50%); text-align: center; white-space: nowrap; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.wg-lidar > b { font-size: calc(34 * var(--u)); font-weight: 700; color: var(--wg-bad); }
.wg-lidar > span { margin-left: calc(4 * var(--u)); font-size: calc(13 * var(--u)); font-weight: 700; color: var(--wg-muted); }
.wg-lidar small { display: block; margin-top: calc(2 * var(--u)); font-size: calc(12.5 * var(--u)); color: var(--wg-text); }

/* evidence */
.wg-locker { position: absolute; left: 6%; top: 9%; width: calc(380 * var(--u)); background: var(--wg-solid); border-radius: calc(3 * var(--u)); box-shadow: inset 0 calc(3 * var(--u)) 0 var(--wg-accent); padding: calc(14 * var(--u)) calc(14 * var(--u)) calc(6 * var(--u)); }
.wg-locker-hd { display: flex; justify-content: space-between; align-items: baseline; }
.wg-locker-hd b { font-size: calc(15 * var(--u)); font-weight: 700; }
.wg-locker-hd span { font-size: calc(12 * var(--u)); color: var(--wg-faint); }
.wg-seg { display: flex; gap: calc(3 * var(--u)); margin: calc(10 * var(--u)) 0 calc(6 * var(--u)); padding: calc(3 * var(--u)); border-radius: calc(3 * var(--u)); background: rgba(0, 0, 0, .3); }
.wg-seg span { flex: 1; padding: calc(4 * var(--u)) 0; text-align: center; border-radius: calc(2 * var(--u)); font-size: calc(12 * var(--u)); color: var(--wg-muted); }
.wg-seg .is-on { background: var(--wg-raised); color: var(--wg-text); font-weight: 600; }
.wg-locker ul { list-style: none; margin: 0; padding: 0; }
.wg-locker li { display: grid; grid-template-columns: calc(14 * var(--u)) 1fr auto; gap: calc(10 * var(--u)); align-items: center; padding: calc(9 * var(--u)) 0; border-top: calc(1 * var(--u)) solid var(--wg-line); }
.wg-locker li b { display: block; font-size: calc(12.5 * var(--u)); font-weight: 500; }
.wg-locker li small { display: block; font-size: calc(11.5 * var(--u)); color: var(--wg-faint); }
.wg-casing { width: calc(6 * var(--u)); height: calc(14 * var(--u)); border-radius: calc(2 * var(--u)) calc(2 * var(--u)) calc(1 * var(--u)) calc(1 * var(--u)); background: #d6a840; justify-self: center; }
.wg-blood { width: calc(11 * var(--u)); height: calc(11 * var(--u)); border-radius: calc(99 * var(--u)) calc(99 * var(--u)) calc(99 * var(--u)) 0; transform: rotate(-45deg); background: var(--wg-bad); justify-self: center; }
.wg-screen[data-screen="evidence"] .wg-prompt { left: 74%; bottom: 20%; }

/* photos / ID card (the card is deliberately light, as in game) */
.wg-idcard { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-1.5deg); width: calc(400 * var(--u)); border-radius: calc(8 * var(--u)); overflow: hidden; background: #eef1f4; color: #14181f; box-shadow: 0 calc(30 * var(--u)) calc(60 * var(--u)) calc(-20 * var(--u)) rgba(0, 0, 0, .7); }
.wg-idcard-hd { display: flex; justify-content: space-between; align-items: center; padding: calc(10 * var(--u)) calc(14 * var(--u)); background: #1c2b3d; color: #fff; }
.wg-idcard-hd b { font-size: calc(12.5 * var(--u)); font-weight: 700; letter-spacing: .02em; }
.wg-idcard-hd span { font-size: calc(13 * var(--u)); font-weight: 800; }
.wg-idcard-body { display: grid; grid-template-columns: calc(92 * var(--u)) 1fr; gap: calc(16 * var(--u)); padding: calc(14 * var(--u)); }
.wg-idcard-photo { width: calc(92 * var(--u)); height: calc(112 * var(--u)); background: #cfd6de; border-radius: calc(2 * var(--u)); overflow: hidden; }
.wg-idcard-photo svg { width: 100%; height: 100%; fill: #a3afbd; stroke: none; }
.wg-idcard dl { margin: 0; display: grid; gap: calc(7 * var(--u)); align-content: start; }
.wg-idcard dt { font-size: calc(9.5 * var(--u)); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #5d6876; }
.wg-idcard dd { margin: 0; font-size: calc(14 * var(--u)); font-weight: 600; }
.wg-idcard-pair { display: grid; grid-template-columns: 1fr 1fr; }
.wg-idcard-ft { display: flex; justify-content: space-between; padding: calc(8 * var(--u)) calc(14 * var(--u)); border-top: calc(1 * var(--u)) solid #d4dae1; font-size: calc(11.5 * var(--u)); color: #5d6876; }
.wg-idcard-ft b { color: #14181f; font-weight: 500; }

/* afk */
.wg-afk { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); min-width: calc(300 * var(--u)); padding: calc(16 * var(--u)) calc(20 * var(--u)); text-align: center; background: var(--wg-solid); border-radius: calc(3 * var(--u)); box-shadow: inset 0 calc(3 * var(--u)) 0 var(--wg-warn); }
.wg-afk > b:first-child { display: block; font-size: calc(16 * var(--u)); font-weight: 700; }
.wg-afk > span { display: block; margin-top: calc(2 * var(--u)); font-size: calc(12.5 * var(--u)); color: var(--wg-muted); }
.wg-afk-t { display: block; margin-top: calc(6 * var(--u)); font-size: calc(24 * var(--u)); color: var(--wg-warn); }

/* a module that has been switched off */
.wg-off { position: absolute; inset: 0; display: grid; place-content: center; gap: calc(6 * var(--u)); text-align: center; padding: 0 15%; background: rgba(6, 8, 10, .82); opacity: 0; visibility: hidden; transition: opacity .3s var(--lx-ease), visibility 0s .3s; }
.wg-off b { font-size: calc(18 * var(--u)); font-weight: 700; }
.wg-off span { font-size: calc(13 * var(--u)); color: var(--wg-muted); }
.wg-stage.is-off .wg-off { opacity: 1; visibility: visible; transition: opacity .3s var(--lx-ease), visibility 0s; }
.wg-stage.is-off .wg-screen { opacity: 0 !important; }

/* ---------- Core areas (hairline rows, two columns) ---------- */
.wpm-areas { margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--lx-line); }
.wpm-area { display: grid; grid-template-columns: 220px minmax(0, 1fr) 300px; gap: 8px 32px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--lx-line); }
.wpm-area h3 { font-size: 15.5px; letter-spacing: -0.01em; }
.wpm-area p { font-size: 15px; color: var(--lx-text-2); max-width: 62ch; }
.wpm-area .wpm-keys { margin-top: 0; justify-content: flex-end; }
.wpm-keys { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.wpm-keys kbd, .wpm-keys code {
  display: inline-flex; align-items: center; height: 24px; padding: 0 7px; border-radius: 6px;
  border: 1px solid var(--lx-line-2); font-size: 12.5px; color: var(--lx-text-2); white-space: nowrap;
}
.wpm-keys kbd { font-family: var(--lx-font); font-weight: 600; color: var(--lx-text); background: var(--lx-bg-2); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .4); }
.wpm-keys code { font-family: var(--lx-mono); font-feature-settings: "zero"; background: transparent; }

/* ---------- Module rack ---------- */
.wpm-count { font-size: 15px; color: var(--lx-text-3); }
.wpm-count b { font-family: var(--lx-display); font-size: 28px; font-weight: 600; color: var(--lx-text); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.wpm-rack { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.wpm-rack-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--lx-line); border-radius: var(--lx-r-xl); overflow: hidden; }
.wpm-mod { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-bottom: 1px solid var(--lx-line); transition: background-color .2s var(--lx-ease); }
.wpm-mod:last-child { border-bottom: 0; }
.wpm-mod:hover { background: rgba(255, 255, 255, .025); }
.wpm-mod.is-current { background: var(--lx-bg-2); }
.wpm-mod.is-current::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--lx-text); }
.wpm-mod-name::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 10px; vertical-align: 2px; border-right: 1.6px solid currentColor; border-top: 1.6px solid currentColor; transform: rotate(45deg); opacity: 0; transition: opacity .2s var(--lx-ease), transform .25s var(--lx-ease); }
.wpm-mod.is-current .wpm-mod-name::after { opacity: 1; transform: translateX(3px) rotate(45deg); }
.wpm-mod-pick { display: grid; gap: 3px; padding: 15px 8px 15px 20px; text-align: left; background: none; border: 0; cursor: pointer; color: inherit; }
.wpm-mod-name { font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.wpm-mod-line { font-size: 14px; color: var(--lx-text-2); }
.wpm-mod-pick .wpm-keys { margin-top: 6px; }
.wpm-mod.is-removed .wpm-mod-name, .wpm-mod.is-removed .wpm-mod-line { color: var(--lx-text-3); }
.wpm-switch { position: relative; width: 38px; height: 22px; margin-right: 20px; padding: 0; border-radius: 99px; border: 1px solid var(--lx-line-2); background: var(--lx-bg-3); cursor: pointer; transition: background-color .2s var(--lx-ease), border-color .2s var(--lx-ease); }
.wpm-switch i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 99px; background: var(--lx-text-3); transition: transform .25s var(--lx-ease), background-color .2s; }
.wpm-switch[aria-checked="true"] { background: var(--lx-accent); border-color: var(--lx-accent); }
.wpm-switch[aria-checked="true"] i { transform: translateX(16px); background: var(--lx-accent-ink); }
.wpm-rack-view { position: sticky; top: 96px; }
.wpm-rack-view .wpm-frame-bar b { transform: none; margin-left: 12px; margin-right: auto; }

/* ---------- Fair play ---------- */
.wpm-rules { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 72px); border-top: 1px solid var(--lx-line); }
.wpm-rules > div { padding: 20px 0 22px; border-bottom: 1px solid var(--lx-line); }
.wpm-rules h3 { font-size: 18px; letter-spacing: -.015em; }
.wpm-rules p { margin-top: 6px; font-size: 15.5px; color: var(--lx-text-2); max-width: 54ch; }

/* ---------- Requirements ---------- */
.wpm-reqs-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.wpm-reqs h2 { font-family: var(--lx-display); font-weight: 600; font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -.03em; line-height: 1.05; }
.wpm-spec { margin: 0; border-top: 1px solid var(--lx-line); }
.wpm-spec > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--lx-line); }
.wpm-spec dt { font-size: 14px; color: var(--lx-text-3); }
.wpm-spec dd { margin: 0; font-size: 15.5px; color: var(--lx-text); }

/* ---------- Close ---------- */
.wpm-close { position: relative; overflow: hidden; padding: clamp(96px, 12vw, 168px) 0 clamp(80px, 10vw, 136px); border-top: 1px solid var(--lx-line);
  background: linear-gradient(180deg, var(--lx-bg) 0%, rgba(10, 11, 13, .72) 45%, rgba(10, 11, 13, .9) 100%), #0b2a20 var(--wpm-art) center 70% / cover no-repeat; }
.wpm-close p { margin-top: 18px; max-width: 46ch; font-size: 18px; color: var(--lx-text-2); }
.wpm-close .wp-hero-cta { margin-top: 30px; }
.wpm-close .lx-btn-ghost { background: rgba(10, 11, 13, .45); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .wpm-area { grid-template-columns: 200px minmax(0, 1fr); }
  .wpm-area .wpm-keys { grid-column: 2; justify-content: flex-start; }
  .wpm-intro-copy { grid-template-columns: 1fr; align-items: start; }
  .wpm-intro-grid, .wpm-reqs-grid { grid-template-columns: 1fr; align-items: start; }
  .wpm-rack { grid-template-columns: minmax(0, 1fr); }
  .wpm-rack-view { order: -1; position: sticky; top: 72px; z-index: 5; padding-bottom: 10px; background: var(--lx-bg); }
  .wpm-rack-view figcaption { display: none; }
}
@media (max-width: 760px) {
  .wpm-areas, .wpm-rules { grid-template-columns: 1fr; }
  .wpm-head .wpm-swatches { width: 100%; }
  /* Zoom the core scene: a narrower virtual screen, the F6 sheet hidden. */
  .wg-stage-core { --vw: 440; aspect-ratio: 3 / 4; background-position: 30% 50%; }
  .wg-stage-core .wg-sheet { display: none; }
  .wg-stage-core .wg-alert-911 { right: calc(16 * var(--u)); left: calc(16 * var(--u)); top: calc(16 * var(--u)); width: auto; }
  .wg-stage-core .wg-toast { display: none; }
  .wg-stage-core .wg-veh { left: auto; right: calc(16 * var(--u)); bottom: auto; top: calc(186 * var(--u)); }
  .wg-stage-core .wg-minimap { display: none; }
  .wg-stage-core .wg-vitals { left: calc(16 * var(--u)); right: calc(16 * var(--u)); width: auto; bottom: calc(16 * var(--u)); }
  .wg-stage-core .wg-hud { left: calc(16 * var(--u)); right: calc(16 * var(--u)); bottom: calc(34 * var(--u)); width: auto; }
  .wg-stage-mod { --vw: 460; aspect-ratio: 4 / 3; }
  .wpm-intro-copy { grid-template-columns: 1fr; }
  .wpm-area { grid-template-columns: 1fr; gap: 4px; }
  .wpm-area .wpm-keys { grid-column: 1; justify-content: flex-start; margin-top: 6px; }
  .wpm-area .wpm-keys:empty { display: none; }
  .wg-eye { left: calc(30% - calc(15 * var(--u))); }
  .wg-eye-menu { left: calc(30% + calc(28 * var(--u))); }
  .wg-hint { left: 30%; }
  .wpm-box > div, .wpm-spec > div { grid-template-columns: 1fr; gap: 4px; }
  .wpm-mod-pick { padding-left: 16px; }
  .wpm-switch { margin-right: 16px; }
}

/* photos: the photo-taking step */
.wg-booth { position: absolute; left: 50%; top: 8%; width: calc(190 * var(--u)); height: calc(238 * var(--u)); transform: translateX(-50%); }
.wg-booth i { position: absolute; width: calc(26 * var(--u)); height: calc(26 * var(--u)); border: 0 solid var(--wg-text); }
.wg-booth i:nth-child(1) { left: 0; top: 0; border-left-width: calc(2 * var(--u)); border-top-width: calc(2 * var(--u)); }
.wg-booth i:nth-child(2) { right: 0; top: 0; border-right-width: calc(2 * var(--u)); border-top-width: calc(2 * var(--u)); }
.wg-booth i:nth-child(3) { left: 0; bottom: 0; border-left-width: calc(2 * var(--u)); border-bottom-width: calc(2 * var(--u)); }
.wg-booth i:nth-child(4) { right: 0; bottom: 0; border-right-width: calc(2 * var(--u)); border-bottom-width: calc(2 * var(--u)); }
.wg-booth-keys { position: absolute; left: 50%; bottom: calc(24 * var(--u)); transform: translateX(-50%); display: grid; grid-template-columns: repeat(3, auto); gap: calc(5 * var(--u)) calc(14 * var(--u)); padding: calc(10 * var(--u)) calc(14 * var(--u)); background: var(--wg-solid); border-radius: calc(3 * var(--u)); white-space: nowrap; }
.wg-booth-keys div { display: flex; align-items: center; gap: calc(5 * var(--u)); }
.wg-booth-keys kbd { display: grid; place-items: center; min-width: 1.8em; height: 1.8em; padding: 0 .4em; border-radius: 3px; background: var(--wg-text); color: #0e1014; font: 700 calc(11 * var(--u)) var(--wg-sans); }
.wg-booth-keys span { font-size: calc(12 * var(--u)); color: var(--wg-muted); }
.wg-booth-keys .is-on span { color: var(--wg-text); font-weight: 600; }
.wg-booth-hint { left: 50%; bottom: auto; top: calc(8% + calc(248 * var(--u))); text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }

/* the core scene comes alive once, when it scrolls into view */
@media (prefers-reduced-motion: no-preference) {
  .js .wg-stage-core[data-live] .wg-alert-911 { opacity: 0; translate: calc(24 * var(--u)) 0; transition: opacity .6s var(--lx-ease) .5s, translate .8s var(--lx-ease) .5s; }
  .js .wg-stage-core[data-live].is-live .wg-alert-911 { opacity: 1; translate: 0 0; }
}

.wg-screen[data-screen="target"] .wg-hint { left: auto; bottom: auto; right: calc(66% + calc(26 * var(--u))); top: calc(58% - calc(8 * var(--u))); transform: none; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }

/* the frame's tab names the module on screen, tying it to the selected row */
.wpm-frame-mod .wpm-frame-bar b { color: var(--lx-text-2); }
.wpm-frame-mod .wpm-frame-bar b span { color: var(--lx-text); font-family: var(--lx-font); font-weight: 600; margin-right: 8px; }

@media (max-width: 760px) {
  /* third eye: menu inside the frame */
  .wg-eye { top: calc(30% - calc(15 * var(--u))); }
  .wg-eye-menu { top: calc(30% - calc(15 * var(--u))); }
  .wg-screen[data-screen="target"] .wg-hint { right: auto; left: calc(30% + calc(28 * var(--u))); top: auto; bottom: calc(10 * var(--u)); }
  /* photos: smaller guide, caption dropped where it would collide */
  .wg-booth { top: 6%; width: calc(120 * var(--u)); height: calc(150 * var(--u)); }
  .wg-booth-hint { display: none; }

  /* core scene: a tall frame with the F6 duty panel stacked under the game view */
  .wg-stage-core { aspect-ratio: 440 / 1000; background-size: auto 60%; background-position: 30% 0; }
  .wg-stage-core::before { bottom: 41%; }
  .wg-stage-core .wg-sheet { display: flex; top: calc(590 * var(--u)); left: 0; right: 0; width: auto; border-left: 0; }
  .wg-stage-core .wg-sheet-hd { padding: calc(18 * var(--u)) calc(16 * var(--u)) calc(10 * var(--u)); }
  .wg-stage-core .wg-tabs { padding: 0 calc(16 * var(--u)); }
  .wg-stage-core .wg-sheet-body { padding: calc(14 * var(--u)) calc(16 * var(--u)); }
  .wg-stage-core .wg-hud { bottom: auto; top: calc(382 * var(--u)); }
  .wg-stage-core .wg-vitals { bottom: auto; top: calc(560 * var(--u)); }
}
