/* The WebGL canvas fills the stage; everything else the player sees is engine
 * chrome. The only DOM this game owns is the HUD (render/hud.js) and the map's
 * loading card (render/level.js), both placed off session.layout — never off
 * hardcoded corner margins. */
.mc-wrap { position: absolute; inset: 0; overflow: hidden; background: #162324; }
.mc-cv   { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.mc-hud { position: absolute; inset: 0; pointer-events: none; color: #e9e4c6;
  font: 700 13px/1.2 'Roboto Condensed', system-ui, sans-serif; }
.mc-hud .row { position: absolute; display: flex; gap: 8px; align-items: center; }
.mc-controls { position: absolute; width: 274px; }
/* The engine's round controls guide (#443), mounted bare in the left slot: its
   text, deadline and fade are the engine's; the box and type are ours. */
.mc-controls .mm-controls-hint { box-sizing: border-box; padding: 10px 12px;
  background: rgba(22, 35, 36, .88); border-left: 3px solid #ffd800;
  color: #fff5d9; font: 400 12px/1.5 'Roboto Condensed', system-ui, sans-serif; }
.mc-controls .mm-controls-hint::first-line { color: #ffd800; font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
@media (max-height: 520px), (max-width: 700px) {
  .mc-controls { width: 248px; }
  .mc-controls .mm-controls-hint { padding: 5px 8px; font-size: 11px; line-height: 1.05; }
  .mc-controls .mm-controls-hint::first-line { font-size: 12px; }
}
.mm-idlabels { --mm-idlabel-color:#fff5d9; --mm-idlabel-bg:#142126d9; --mm-idlabel-size:12px;
  --mm-idlabel-max:132px; --mm-idlabel-pad:3px 7px; --mm-idlabel-radius:2px; --mm-idlabel-shadow:0 1px 1px #000; }
.mm-idlabels [data-part=label] { border-left:3px solid currentColor; letter-spacing:.25px;
  font-family:'Roboto Condensed',system-ui,sans-serif; font-weight:700; }
/* v209: the engine moves the name tags by transform on their own layers (#554, adopt #146); v203's will-change here was its stand-in. */
/* ITS OWN LAYER (v203). Everything the page draws over the WebGL canvas is, by
 * default, ONE viewport-sized compositor layer: any change in it re-records the
 * whole layer and re-rasters its tiles, and in a fight something changed every
 * frame (the crosshair's spread, the clip count, a name tag, the red edges). On
 * the office Chromebooks that tripled the raster tasks a frame while firing and
 * nearly doubled the GPU process's work for the page (docs/CHROMEBOOK_RESULTS.md
 * 2026-11-12/13). So each piece that changes during play is its own small layer:
 *  - `will-change: transform` where the piece only ever MOVES or turns (no scale):
 *    the compositor moves it, nothing is painted;
 *  - `will-change: opacity` where it fades, or where its transform includes a
 *    scale (a fixed raster would blur): it is repainted, but only its own few
 *    square centimetres.
 * The engine's name tags are placed with left/top; their own layer turns that
 * into a move too (remove when the engine places them with a transform:
 * proposal/overlay-compositing). Not here on purpose: the bolt's scope (its
 * 4x zoom wants a re-raster), and panels that change a few times a minute.
 * The `will-change` itself sits in each piece's own rule below (one rule a
 * selector: test/static.test.mjs). */
#mcfps { will-change: transform; }
.mc-grenade-markers { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.mc-grenade-marker { position: absolute; left: 0; top: 0; margin: -16px 0 0 -16px;
  width: 32px; height: 32px; box-sizing: border-box; border: 2px solid #ff493e; border-radius: 50%;
  box-shadow: 0 0 0 1px #401411, 0 0 8px #ff302dcc, inset 0 0 5px #ff302d88; will-change: opacity; }
.mc-grenade-marker i { position: absolute; width: 2px; height: 5px; left: 13px; top: -6px;
  background: #ff7769; box-shadow: 0 0 3px #ff302d; }
.mc-grenade-marker i:nth-child(2) { top: 29px; }
.mc-grenade-marker i:nth-child(3) { top: 13px; left: -6px; width: 5px; height: 2px; }
.mc-grenade-marker i:nth-child(4) { top: 13px; left: 29px; width: 5px; height: 2px; }
.mc-throw-guide { position: absolute; left: 50%; top: 62%; transform: translateX(-50%); text-align: center;
  padding: 7px 12px; color: #ffcf3f; background: #102124d9; border-bottom: 2px solid #ffcf3f; border-left: 3px solid #ffd800; box-shadow: 0 4px 14px rgba(0,0,0,0.45), inset 0 0 12px rgba(255, 216, 0, 0.14); text-shadow: 0 0 8px rgba(255, 216, 0, 0.35); pointer-events: none; will-change: transform; }
.mc-throw-guide b { display: block; font-size: 20px; letter-spacing: 1px; }
.mc-throw-guide span { display: block; font-size: 11px; color: #f5ead0; }

/* MercZone's HUD (its PlayerUIService): slate panels at 82%, cream type with a
 * slate drop, health in slanted red ticks, the weapon in yellow. */
.mc-vitals { flex-direction: column; align-items: flex-start; gap: 3px; will-change: transform; }
.mc-hptext { padding-left: 8px; font-size: 22px; line-height: 1; color: #e9fbc6; text-shadow: 2px 2px 0 #2f4545; }
.mc-hptext span { font-size: 15px; }
.mc-hptext.low { color: #eb4040; text-shadow: 0 0 10px rgba(255, 42, 109, 0.65), 1px 1px 0 rgba(0, 0, 0, 0.5); }
.mc-hpframe { padding: 7px 30px 7px 12px; background: rgba(47, 69, 70, 0.82);
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%); }
.mc-ticks { --tick: 8px; position: relative; height: 14px; width: calc(var(--n) * var(--tick)); transform: skewX(-22deg);
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0 calc(var(--tick) - 3px), transparent calc(var(--tick) - 3px) var(--tick)); }
.mc-ticks > i { position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: repeating-linear-gradient(90deg, #eb4040 0 calc(var(--tick) - 3px), transparent calc(var(--tick) - 3px) var(--tick)); }
.mc-ticks.low > i { animation: mc-low 0.8s ease-in-out infinite alternate; }
@keyframes mc-low { to { opacity: 0.45; } }

.mc-ammo { align-items: flex-end; gap: 14px; padding: 8px 14px 8px 26px; background: rgba(47, 69, 70, 0.82);
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%); will-change: transform; }
.mc-gun { display: flex; flex-direction: column; gap: 3px; }
/* the Assault Rifle silhouette in MercZone's HUD atlas: (0, 640) 224 x 64, drawn at 0.625 */
.mc-gunicon { display: block; width: 140px; height: 40px;
  background: url(./assets/textures/ui/uisprite.webp?v=c4a2a56f) 0 -400px / 320px 640px no-repeat; }
.mc-guntitle { font-size: 13px; letter-spacing: .06em; color: #e9e4c6; }
.mc-gunname { font-size: 11px; letter-spacing: .12em; color: #1a9aa0; }
/* the weapon not in hand, above the panel: E (or the middle button, 1/2, the wheel) swaps */
.mc-alt { gap: 8px; padding: 2px 10px 2px 18px; background: rgba(47, 69, 70, 0.6);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%); font-size: 11px; letter-spacing: .08em; white-space: pre; will-change: transform; }
.mc-alt .mc-gunicon { width: 70px; height: 20px; background-size: 160px 320px; opacity: .6; }
.mc-altname { opacity: .8; }
.mc-alt .k { display: inline-block; min-width: 14px; padding: 0 3px; text-align: center; font-size: 10px; line-height: 14px;
  color: #1b2a2b; background: #e9e4c6; border-radius: 2px; }
/* the grenade, at the end of that row: MercZone's power frame (its atlas at 0.417:
   40 x 40), its hatched fill rising with the cooldown, the grenade glyph lit when
   one is ready (Q) */
.mc-nade { position: relative; width: 40px; height: 40px; flex: none; margin-left: 6px;
  background: url(./assets/textures/ui/uisprite.webp?v=c4a2a56f) -106.67px -160px / 213.33px 426.67px no-repeat; }
.mc-nade .fill { position: absolute; inset: 0; clip-path: inset(calc(100% - var(--f, 0%)) 0 0 0); opacity: .55;
  background: url(./assets/textures/ui/uisprite.webp?v=c4a2a56f) -146.67px -160px / 213.33px 426.67px no-repeat; }
.mc-nade .g { position: absolute; left: 6.67px; top: 0; width: 26.67px; height: 40px; filter: brightness(.25);
  background: url(./assets/textures/ui/uisprite.webp?v=c4a2a56f) -186.67px -160px / 213.33px 426.67px no-repeat; }
.mc-nade.ready .g { filter: none; }
.mc-nade.ready .fill { opacity: .9; }
.mc-nade .k { position: absolute; right: -6px; bottom: -4px; min-width: 14px; padding: 0 3px; text-align: center; font-size: 10px; line-height: 14px;
  color: #1b2a2b; background: #e9e4c6; border-radius: 2px; }
.mc-count { position: relative; display: flex; align-items: baseline; text-shadow: 2px 2px 0 #2f4545; font-variant-numeric: tabular-nums; }
.mc-count b { font-size: 44px; line-height: 0.9; min-width: 1.1em; text-align: right; }
.mc-count b.empty { color: #eb4040; }
.mc-count span { font-size: 17px; margin-left: 2px; }
.mc-reload { position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; background: rgba(233, 228, 198, 0.2); visibility: hidden; }
.mc-reload > i { display: block; height: 100%; width: 100%; background: #ffd800; transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }

.mc-callout { font-size: 22px; letter-spacing: .08em; text-transform: uppercase; color: #ffd800; text-shadow: 2px 2px 0 #1b2a2b;
  background: rgba(47, 69, 70, 0.82); padding: 4px 22px; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); white-space: nowrap;
  max-width: min(340px, calc(100vw - 32px)); white-space: normal; text-align: center; box-sizing: border-box; }
.mc-callout:empty { display: none; }
.mc-fps { font-size: 11px; font-weight: 400; letter-spacing: .06em; background: rgba(47, 69, 70, 0.7); padding: 2px 7px; }
.mc-fps:empty { display: none; }

/* Narrow screens (a phone held upright): the panels give up their extras so
 * health and ammo never meet in the middle. */
@media (max-width: 700px) {
  .mc-gun { display: none; }
  .mc-alt .mc-gunicon { display: none; }
  .mc-ammo { padding-left: 22px; }
  .mc-count b { font-size: 32px; }
  .mc-ticks { --tick: 5px; }
  .mc-hptext { font-size: 18px; }
}

/* The round clock: the engine's chip (session.hud.clock), in MercZone's yellow on
 * its winged timer backdrop; the slot is empty, so hidden, when no clock runs. */
.mc-clock { position: absolute; left: 50%; transform: translateX(-50%); min-width: 132px; height: 86px;
  display: flex; align-items: center; justify-content: center;
  background: url(./assets/textures/ui/mercZone_timeBackground.svg?v=ee524b96) center / 100% 100% no-repeat; opacity: 0.92;
  --mm-clock-color: #ffd800; --mm-clock-low: #eb4040; will-change: transform; }
.mc-clock:empty { display: none; }
.mc-clock [data-part=label] { display: none; }

/* The bolt-action rifle's scope (MercZone's Reticle.js): its black ring the
 * full height of the view, black either side of it, cross-hairs; it fades in
 * over the second half of the aim ramp, zooming from 4x to 1x as it comes. */
.mc-scope { position: absolute; inset: 0; display: none; overflow: hidden; --zoom: 1; --sx: 0px; --sy: 0px; }
.mc-scope .lens { position: absolute; left: 50%; top: 50%; height: 92%; aspect-ratio: 1 / 1; border-radius: 50%; pointer-events: none;
  transform: translate(calc(-50% + var(--sx)), calc(-50% + var(--sy))) scale(var(--zoom));
  background: repeating-linear-gradient(180deg, rgba(56, 232, 255, 0.03) 0 2px, transparent 2px 4px), radial-gradient(circle at 34% 28%, rgba(160, 235, 255, 0.11) 0%, rgba(70, 180, 220, 0.04) 36%, transparent 62%, rgba(0, 12, 22, 0.42) 88%, rgba(0, 0, 0, 0.82) 100%);
  box-shadow: inset 2px 0 8px rgba(255, 60, 90, 0.22), inset -2px 0 8px rgba(50, 210, 255, 0.22), inset 0 0 36px rgba(0, 0, 0, 0.65); }
.mc-scope .ring { position: absolute; left: 50%; top: 50%; height: 100%; aspect-ratio: 1 / 1; transform: translate(-50%, -50%) scale(var(--zoom));
  background: url(./assets/textures/ui/scope.webp?v=d3f1f7ee) center / 100% 100% no-repeat; box-shadow: 0 0 0 100vmax #000; }
.mc-scope::before { content: ''; position: absolute; background: rgba(0, 0, 0, 0.85); left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; }
.mc-scope::after { content: ''; position: absolute; background: rgba(0, 0, 0, 0.85); top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; }

/* The crosshair: MercZone's reticle, one tapered tick turned four ways, narrow
 * end in, 16 px out (its Reticle.js at the rifle's hip spread). Aiming down the
 * sights (--ads 0..1, from render/hud.js) brings the ticks in to 9 px with the
 * tighter spread, and over the ramp's last tenth (--dot) they give way to the
 * red dot (Reticle.js redDotAlpha = mapRangeClamped(0.9, 1, 0, 1, scope)). */
.mc-cross { position: absolute; left: 50%; top: 50%; width: 0; height: 0; --dot: 0; --red: 0; --out: -16px; }
.mc-cross i { position: absolute; left: -4px; top: -10px; width: 8px; height: 20px; opacity: calc(1 - var(--dot));
  background: url(./assets/textures/ui/reticle.webp?v=fd6de21c) center / 100% 100% no-repeat; will-change: transform, opacity; }
.mc-cross i:nth-child(1) { transform: translateY(var(--out)); }
.mc-cross i:nth-child(2) { transform: rotate(90deg) translateY(var(--out)); }
.mc-cross i:nth-child(3) { transform: rotate(180deg) translateY(var(--out)); }
.mc-cross i:nth-child(4) { transform: rotate(270deg) translateY(var(--out)); }
.mc-cross .dot { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; opacity: var(--red);
  background: url(./assets/textures/ui/reddot.webp?v=5e6f89a9) center / 100% 100% no-repeat; will-change: opacity; }
/* The hit marker (v18): Call of Duty's X, four ticks round the crosshair that
 * pop out and settle. Cream a hit, yellow a head, red a kill; p0/p1 alternate
 * so each hit restarts the pop (the same keyframes under two names). */
.mc-cross .mark { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; --c: #f4efd6; --len: 9px; transition: opacity .08s linear; will-change: opacity; }
.mc-cross .mark i { position: absolute; left: -1.5px; top: calc(-1 * var(--len)); width: 3px; height: var(--len);
  background: var(--c); box-shadow: 0 0 2px rgba(0, 0, 0, .7); transform-origin: 50% 100%; }
.mc-cross .mark i:nth-child(1) { transform: rotate(45deg) translateY(-7px); }
.mc-cross .mark i:nth-child(2) { transform: rotate(135deg) translateY(-7px); }
.mc-cross .mark i:nth-child(3) { transform: rotate(225deg) translateY(-7px); }
.mc-cross .mark i:nth-child(4) { transform: rotate(315deg) translateY(-7px); }
.mc-cross .mark.on { opacity: 1; }
.mc-cross .mark.head { --c: #ffd23f; --len: 11px; }
.mc-cross .mark.kill { --c: #ff3b30; --len: 13px; }
.mc-cross .mark.on.p0 { animation: mc-mark0 .12s ease-out; }
.mc-cross .mark.on.p1 { animation: mc-mark1 .12s ease-out; }
@keyframes mc-mark0 { from { transform: scale(1.5); } to { transform: scale(1); } }
@keyframes mc-mark1 { from { transform: scale(1.5); } to { transform: scale(1); } }

/* Hurt (v18): a red arc round the crosshair pointing back where it came from
 * (render/hud.js turns it), and the screen's edges in red: four strips, never
 * a full-screen layer, shown only while they say something. */
.mc-arcs { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.mc-arcs i { display: none; position: absolute; left: -95px; top: -95px; width: 190px; height: 190px; border-radius: 50%;
  border: 6px solid transparent; border-top-color: rgba(235, 50, 40, .9); box-sizing: border-box;
  filter: drop-shadow(0 0 3px rgba(120, 0, 0, .8)); will-change: transform, opacity; }
.mc-pain { display: none; position: absolute; inset: 0; opacity: 0; will-change: opacity; }
.mc-pain i { position: absolute; }
.mc-pain .t { left: 0; right: 0; top: 0; height: 14%; background: linear-gradient(rgba(170, 16, 16, .7), rgba(170, 16, 16, 0)); }
.mc-pain .b { left: 0; right: 0; bottom: 0; height: 14%; background: linear-gradient(rgba(170, 16, 16, 0), rgba(170, 16, 16, .7)); }
.mc-pain .l { left: 0; top: 0; bottom: 0; width: 10%; background: linear-gradient(90deg, rgba(170, 16, 16, .7), rgba(170, 16, 16, 0)); }
.mc-pain .r { right: 0; top: 0; bottom: 0; width: 10%; background: linear-gradient(90deg, rgba(170, 16, 16, 0), rgba(170, 16, 16, .7)); }

/* The map's loading card, over the canvas until collision + visuals are in: the
 * title/lobby backdrop and MercZone's slate, cream and yellow (config.js theme). */
.mc-loading { position: absolute; inset: 0; z-index: 25; display: flex; align-items: center; justify-content: center; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(18, 33, 35, 0.42), rgba(7, 13, 16, 0.88) 78%),
    linear-gradient(180deg, rgba(10, 18, 19, 0.62), rgba(10, 18, 19, 0.78)),
    var(--mc-stage-bg, url(./assets/brand/backdrop.webp?v=0ecf3fcf)) center / cover,
    #162324 url(./assets/brand/backdrop.webp?v=0ecf3fcf) center / cover;
  opacity: 1; transition: opacity .22s ease-out, transform .22s ease-out; }
.mc-loading.mc-loading-out { opacity: 0; transform: scale(1.015); }
.mc-stage-hold .mc-cv, .mc-stage-hold .mc-hud, .mc-stage-hold .mc-watch-button, .mc-stage-hold .mc-deploy-button, .mc-stage-hold .mc-play-menu { visibility: hidden; }
.mm-cp-still { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.mc-loading .box { width: min(420px, calc(100vw - 32px)); text-align: left; color: #e9e4c6; font: 15px/1.4 'Roboto Condensed', system-ui, sans-serif;
  background: linear-gradient(180deg, rgba(36, 55, 56, 0.96), rgba(22, 35, 36, 0.96));
  border: 1px solid #4b6e70; border-top: 4px solid #ffd800; border-radius: 3px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 12px 18px 14px; box-sizing: border-box; }
.mc-load-head { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #a4b5ae; border-bottom: 1px solid rgba(114, 154, 156, 0.28); padding-bottom: 6px; margin-bottom: 8px; }
.mc-load-brand { color: #ffd800; }
.mc-load-zone { background: rgba(15, 26, 27, 0.72); border: 1px solid rgba(114, 154, 156, 0.38); padding: 1px 6px; border-radius: 2px; color: #e9e4c6; text-shadow: -1px 0 rgba(255, 42, 133, 0.45), 1px 0 rgba(56, 232, 255, 0.45); }
.mc-loading .t { font: 700 22px/1.15 'Chakra Petch', 'Roboto Condensed', system-ui, sans-serif; letter-spacing: .07em; text-transform: uppercase; color: #ffd800; margin-bottom: 8px; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55); }
.mc-load-preview { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 156px; border-radius: 2px; overflow: hidden;
  border: 1px solid #4b6e70; background: #101c1d url(./assets/brand/backdrop.webp?v=0ecf3fcf) center / cover; margin-bottom: 8px; }
.mc-load-preview::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 18, 19, 0.05) 45%, rgba(10, 18, 19, 0.78) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px);
  pointer-events: none; }
.mc-load-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-load-badge { position: absolute; left: 8px; bottom: 6px; z-index: 1;
  background: rgba(16, 28, 29, 0.88); border: 1px solid rgba(255, 216, 0, 0.55); border-left: 3px solid #ffd800;
  padding: 2px 7px; font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #f6eec9; }
.mc-load-brief { font-size: 13px; line-height: 1.35; color: #e9e4c6; margin-bottom: 9px; opacity: .92; }
.mc-loading .bar { position: relative; height: 8px; border-radius: 2px; background: rgba(12, 21, 22, 0.78);
  border: 1px solid rgba(114, 154, 156, 0.35); overflow: hidden; }
.mc-loading .bar > i { display: block; height: 100%; width: 5%;
  background: repeating-linear-gradient(-45deg, #ffd800 0 8px, #e3b800 8px 16px);
  box-shadow: 0 0 10px rgba(255, 216, 0, 0.45); transition: width .18s ease-out; }
.mc-load-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 6px; }
.mc-loading .s { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #c7d4cf; }
.mc-load-pct { font: 700 12px/1 'Chakra Petch', 'Roboto Condensed', monospace; color: #ffd800; letter-spacing: .06em; }
.mc-load-tip { margin-top: 8px; padding-top: 7px; border-top: 1px solid rgba(114, 154, 156, 0.24);
  font-size: 11.5px; line-height: 1.35; color: #b5c4be; }

.mc-note { color: #f1e9e2; font: 16px/1.5 system-ui, sans-serif; padding: 24px; max-width: 46ch; }

/* The Armory keeps its brand mark until its first completed merc render. */
.mc-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
canvas.mc-preview { opacity: 0; transition: opacity .15s linear; }
canvas.mc-preview.on { opacity: 1; }
.mc-preview-still.off { display: none; }
.mc-armory-loading-logo { padding: clamp(12px,3vh,28px) 12%; box-sizing: border-box; }
.mc-pv-name:has(~ .mc-armory-loading-logo:not(.off)) { visibility: hidden; }

/* The player list (render/hud.js; MercZone's PlayerList): a slate plate a row,
 * the suit's colour, the name in yellow and the kills in cream; yours on the
 * yellow plate in slate. Small enough to stay out of the aim. */
.mc-board { position: absolute; display: flex; flex-direction: column; gap: 2px; width: 11rem;
  font: 700 13px/1 'Roboto Condensed', system-ui, sans-serif;
  overflow: hidden; }
.mc-pl { display: flex; align-items: center; gap: 6px; height: 1.4rem; padding: 0 12px 0 8px; white-space: nowrap;
  background: rgba(47, 69, 70, 0.78); color: #ffd800; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.mc-pl .sw { flex: none; width: 4px; height: 70%; }
.mc-pl .n { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.mc-pl .k { color: #e9e4c6; min-width: 1.6em; text-align: right; }
.mc-pl.local { background: rgba(255, 216, 0, 0.92); color: #2f4546; }
.mc-pl.local .k { color: #2f4546; }
.mc-pl.down { opacity: 0.55; }
.mc-plhead { height: 1rem; background: none; color: #e9e4c6; font-size: 10px; letter-spacing: .12em; text-shadow: 1px 1px 0 #1b2a2b, 0 0 3px #1b2a2b; }

/* A Kill Leader's bounty on its skull (MercZone PlayerList: bounty.svg), in red. */
.mc-pl .bty { flex: none; display: flex; align-items: center; gap: 2px; color: #eb4040; font-size: 11px; }
.mc-pl .bty::before { content: ''; width: 12px; height: 12px; background: currentColor;
  -webkit-mask: url(./assets/textures/ui/bounty.svg?v=0e24eb4f) center / contain no-repeat; mask: url(./assets/textures/ui/bounty.svg?v=0e24eb4f) center / contain no-repeat; }
.mc-pl.local .bty { color: #a3201e; }

/* TEAM DEATHMATCH: each side's total either side of the round clock (MercZone's
 * TopHUD), on a slate plate in its suit colour. Hidden in a free-for-all. */
.mc-teams { position: absolute; left: 50%; display: none; width: 0; height: 0; }
.mc-teams b { position: absolute; top: 0; min-width: 3.2em; padding: 4px 12px; text-align: center;
  font: 800 22px/1 'Roboto Condensed', system-ui, sans-serif; font-variant-numeric: tabular-nums; color: #fff;
  text-shadow: 2px 2px 0 #1b2a2b; }
.mc-teams .t0 { right: 74px; background: rgba(235, 64, 64, 0.85); clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%); }
.mc-teams .t1 { left: 74px; background: rgba(64, 64, 235, 0.85); clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 0 100%); }

/* THE ANNOUNCER (render/fx.js; MercZone's AnnounceLogApplet). A call to
 * the room under the clock; what happened to you above the crosshair (you
 * are down when it shows); your kill's banner under it: the bounty skull in
 * two rings, STREAK n, who you got, in MercZone's red. Shown only while they
 * say something; the rings turn in as MercZone's did, unless motion is off. */
.mc-announce { position: absolute; inset: 0; pointer-events: none; }
.mc-say { position: absolute; left: 50%; top: 96px; transform: translateX(-50%); display: none; white-space: nowrap;
  font: 800 22px/1.1 'Roboto Condensed', system-ui, sans-serif; letter-spacing: .04em; color: #e9e4c6; text-shadow: 3px 3px 0 #2f4546;
  top: var(--mc-top, 112px); max-width: var(--mc-message-width, min(560px, calc(100% - 40px))); white-space: normal; text-align: center; font-size: 19px; }
.mc-say.on { display: block; }
/* v206: the trackpad tip (render/fx.js announce.tip), under the room's calls, quiet */
.mc-tip { position: absolute; left: 50%; top: calc(var(--mc-top, 112px) + 48px); transform: translateX(-50%); display: none;
  width: var(--mc-message-width, min(560px, calc(100% - 40px))); text-align: center; padding: 8px 12px;
  background: rgba(20, 28, 30, .72); border: 1px solid rgba(233, 228, 198, .35);
  font: 700 13px/1.3 'Roboto Condensed', system-ui, sans-serif; letter-spacing: .03em; color: #e9e4c6; }
.mc-tip b { display: block; font-size: 17px; color: #ffd27a; margin-bottom: 2px; }
.mc-tip span { display: block; }
.mc-tip.on { display: block; }
.mc-shout { position: absolute; left: 50%; bottom: 60%; transform: translateX(-50%); display: none; white-space: nowrap;
  font: 800 40px/1 'Roboto Condensed', system-ui, sans-serif; text-transform: uppercase; color: #e9e4c6; text-shadow: 4px 4px 0 #2f4546;
  top: calc(var(--mc-top, 112px) + 44px); bottom: auto; width: var(--mc-message-width, min(560px, calc(100% - 40px))); white-space: normal; text-align: center; }
.mc-shout.on { display: block; }
.mc-shout .verb { color: #eb4040; padding: 0 6px;
  display: block; margin-top: 10px; font-size: 17px; letter-spacing: .18em; }
.mc-streak { position: absolute; left: 50%; bottom: 22%; width: 7rem; height: 7rem; margin-left: -3.5rem; display: none; color: #eb4040;
  bottom: var(--mc-bottom, 170px); width: min(340px, calc(100% - 32px)); height: 70px; margin-left: 0; transform: translateX(-50%);
  color: #ffd34e; background: linear-gradient(110deg, rgba(18, 29, 32, .96), rgba(33, 48, 51, .92)); border-left: 4px solid #ffd34e;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
.mc-streak.on { display: block; }
.mc-streak .ring { position: absolute; border: 2px solid currentColor; border-radius: 50%; }
.mc-streak .ring.o { inset: 0.7rem;
  inset: 13px auto auto 9px; width: 42px; height: 42px; border-width: 1px; opacity: .55; }
.mc-streak .ring.i { inset: 1.25rem;
  display: none; }
.mc-streak .skull { position: absolute; inset: 2.1rem; background: currentColor;
  -webkit-mask: url(./assets/textures/ui/bounty.svg?v=0e24eb4f) center / contain no-repeat; mask: url(./assets/textures/ui/bounty.svg?v=0e24eb4f) center / contain no-repeat;
  inset: 23px auto auto 19px; width: 24px; height: 24px; }
.mc-streak .sn { position: absolute; left: 6.6rem; top: 1.2rem; display: flex; flex-direction: column; align-items: center;
  font: 800 16px/1 'Roboto Condensed', system-ui, sans-serif; letter-spacing: .1em; text-shadow: 2px 2px 0 #2f4546;
  left: auto; right: 12px; top: 12px; font-size: 9px; text-shadow: none; }
.mc-streak .sn b { font-size: 46px; line-height: 0.95; letter-spacing: 0;
  font-size: 30px; }
.mc-streak .sv { position: absolute; left: 50%; top: 6.4rem; transform: translateX(-50%); white-space: nowrap;
  font: 800 26px/1 'Roboto Condensed', system-ui, sans-serif; text-transform: uppercase; text-shadow: 3px 3px 0 #2f4546;
  left: 67px; top: 31px; transform: none; max-width: calc(100% - 130px); overflow: hidden; text-overflow: ellipsis; font-size: 22px; text-shadow: none; }

@media (max-width: 700px) {
  .mc-shout { font-size: 26px; }
  .mc-say { font-size: 17px; }
}

/* THE LOOK PANEL (render/look.js, $): MercZone's slate and yellow, a scrolling
   column of sliders on the right; it closes through its own Close button only */
.mc-look { position: fixed; top: 12px; right: 12px; bottom: 12px; width: min(340px, calc(100% - 24px)); z-index: 2147483000;
  display: flex; flex-direction: column; background: rgba(27, 42, 43, 0.94); color: #e9e4c6; border: 1px solid #2f4545;
  font: 12px/1.3 'Roboto Condensed', system-ui, sans-serif; pointer-events: auto; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45); }
.mc-look .hd { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 12px 8px; border-bottom: 1px solid #2f4545; }
.mc-look .hd b { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: #ffd800; }
.mc-look .hd .map { font-size: 11px; letter-spacing: .08em; color: #1a9aa0; text-transform: uppercase; }
.mc-look .bd { flex: 1; overflow-y: auto; padding: 4px 12px 10px; }
.mc-look .sec { margin: 12px 0 4px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #ffd800; }
.mc-look label { display: grid; grid-template-columns: 1fr 120px 52px; align-items: center; gap: 8px; min-height: 26px; }
.mc-look label span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-look input[type=range] { width: 100%; accent-color: #ffd800; }
.mc-look input[type=color] { width: 100%; height: 22px; padding: 0; border: 1px solid #2f4545; background: none; }
.mc-look output { text-align: right; font-variant-numeric: tabular-nums; color: #e9fbc6; }
.mc-look .ft { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 10px; border-top: 1px solid #2f4545; align-items: center; }
.mc-look button { font: inherit; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; cursor: pointer;
  color: #e9e4c6; background: #2f4545; border: 1px solid #3f5c5d; }
.mc-look button:hover { background: #3a5556; }
.mc-look button.go { color: #1b2a2b; background: #ffd800; border-color: #ffd800; margin-left: auto; }
.mc-look .imp { padding: 0 12px; border-top: 1px solid #2f4545; }
.mc-look .imp textarea { width: 100%; height: 120px; margin-top: 8px; resize: vertical; box-sizing: border-box;
  font: 11px/1.35 ui-monospace, monospace; color: #e9fbc6; background: #142021; border: 1px solid #2f4545; }
.mc-look .imp .ft { border-top: none; padding: 6px 0 10px; }
.mc-look .imp .msg { color: #ff8a7a; }

/* ===================================================================================
   THE ARMORY (v21): the engine's workbench (the M picker, the armory on death and
   the world's join screen), restyled. Scoped to the workbench that shows OUR preview
   (`.mc-preview`, render/preview.js), and addressed by the engine's stable regions
   (`data-mm-part`: chassis / preview / slots / catalog) and the cards inside them.
   Keep the native ad tier and its reserved box. Large screens may expand the
   card within the viewport. Motion runs on the CHILDREN of the regions
   the engine's own exit ('split') animates, so the two never fight, and only when the
   player has not asked for reduced motion. The scope holds through that exit: the
   engine disposes the preview first, and render/preview.js keeps the `.mc-preview`
   pictures (marked `.mc-leaving`) until the modal leaves the document (v197).
   =================================================================================== */
.mm-modal:has(.mc-preview) .mm-modal-card {
  background:
    linear-gradient(180deg, rgba(255, 216, 0, 0.07), transparent 96px),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0 2px, transparent 2px 9px),
    radial-gradient(120% 100% at 50% 35%, #263b3c 0%, #1a2a2b 62%, #111c1d 100%);
  border-color: rgba(255, 216, 0, 0.32);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
/* the title: stencil caps and a strip of hazard tape running off to the right */
.mm-modal:has(.mc-preview) .mm-modal-h { font-size: 22px; letter-spacing: 0.24em; text-transform: uppercase; color: #fff4c2; }
.mm-modal:has(.mc-preview) .mm-modal-h::after {
  content: ''; flex: 1 1 auto; height: 7px; margin-left: 8px; opacity: 0.5;
  background: repeating-linear-gradient(135deg, var(--mm-accent) 0 9px, transparent 9px 18px);
  -webkit-mask: linear-gradient(90deg, #000, transparent); mask: linear-gradient(90deg, #000, transparent);
}

/* THE MERCS: a roster, not a wall of tiles. All five fit a Chromebook's 630 px
   window; portrait at left, the name, and the merc's whole description. The
   description WRAPS, never an ellipsis: a player picks a merc by reading it. */
.mm-modal:has(.mc-preview) [data-mm-part="chassis"] .mm-classgrid { display: flex; flex-direction: column; gap: 6px; }
.mm-modal:has(.mc-preview) [data-mm-part="chassis"] .mm-classchip {
  position: relative; aspect-ratio: auto; display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto auto;
  align-content: center; column-gap: 10px; row-gap: 2px; align-items: center; justify-items: start; padding: 5px 10px 5px 5px; text-align: left; overflow: hidden;
  border-radius: 3px; border: 1px solid rgba(75, 110, 112, 0.6); filter: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.18s, background 0.18s, box-shadow 0.18s;
  animation: none;
}
.mm-modal:has(.mc-preview) [data-mm-part="chassis"] .mm-classchip .mm-avatar {
  grid-row: 1 / span 2; width: 48px; height: 48px; border-radius: 2px; overflow: hidden;
  background: radial-gradient(90% 90% at 50% 100%, rgba(255, 216, 0, 0.12), transparent 70%), #1a2a2b !important;
  transition: transform 0.18s;
}
.mm-modal:has(.mc-preview) [data-mm-part="chassis"] .mm-clslabel {
  position: static; transform: none; grid-column: 2; align-self: end; max-width: 100%;
  padding: 0; background: none; box-shadow: none; color: var(--mm-text);
  font: 700 15px/1.1 var(--mm-font); letter-spacing: 0.08em; text-transform: uppercase;
}
.mm-modal:has(.mc-preview) [data-mm-part="chassis"] .mm-classchip::after {
  content: attr(data-mm-tip); grid-column: 2; align-self: start; max-width: 100%;
  font: 400 11px/1.3 var(--mm-font); color: var(--mm-text2); white-space: normal; overflow-wrap: break-word; text-wrap: pretty;
}
/* a light sweeping across the card under the pointer (the engine's spinning ring is a tile's) */
.mm-modal:has(.mc-preview) [data-mm-part="chassis"] .mm-classchip::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; animation: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.10) 50%, transparent 65%);
  transform: translateX(-110%);
}
.mm-modal:has(.mc-preview) [data-mm-part="chassis"] .mm-classchip:hover,
.mm-modal:has(.mc-preview) [data-mm-part="chassis"] .mm-classchip.mm-vhover { transform: translateX(4px); border-color: rgba(255, 216, 0, 0.6); outline: none; }
.mm-modal:has(.mc-preview) [data-mm-part="chassis"] .mm-classchip:hover .mm-avatar { transform: scale(1.06); }
.mm-modal:has(.mc-preview) [data-mm-part="chassis"] .mm-classchip.on {
  border-color: var(--mm-accent); animation: none;
  background: linear-gradient(90deg, rgba(255, 216, 0, 0.26), rgba(255, 216, 0, 0.05) 70%, transparent);
  box-shadow: inset 4px 0 0 var(--mm-accent), 0 0 18px -6px rgba(255, 216, 0, 0.7);
}
.mm-modal:has(.mc-preview) [data-mm-part="chassis"] .mm-classchip.on .mm-clslabel { color: var(--mm-accent); }
.mm-modal:has(.mc-preview) [data-mm-part="chassis"] .mm-classchip:focus-visible { outline: 2px solid var(--mm-accent); outline-offset: -2px; }
/* a short window (a Chromebook's 630 px): tighter rows, so all five mercs show without scrolling */
@media (max-height: 720px) {
  .mm-modal:has(.mc-preview) [data-mm-part="chassis"] .mm-classgrid { gap: 4px; }
  .mm-modal:has(.mc-preview) [data-mm-part="chassis"] .mm-classchip { grid-template-columns: 38px minmax(0, 1fr); padding: 3px 8px 3px 3px; column-gap: 8px; }
  .mm-modal:has(.mc-preview) [data-mm-part="chassis"] .mm-classchip .mm-avatar { width: 38px; height: 38px; }
  .mm-modal:has(.mc-preview) [data-mm-part="chassis"] .mm-clslabel { font-size: 13px; }
  .mm-modal:has(.mc-preview) [data-mm-part="chassis"] .mm-classchip::after { font-size: 10.5px; }
}

/* THE PREVIEW: your merc under a spotlight, its name stencilled huge behind it */
.mm-modal:has(.mc-preview) [data-mm-part="preview"] .mm-lo-pview {
  position: relative; overflow: hidden; border-radius: 3px;
  background:
    radial-gradient(ellipse 34% 62% at 50% 42%, rgba(255, 216, 0, 0.16), transparent 72%),
    radial-gradient(ellipse 30% 9% at 50% 97%, rgba(0, 0, 0, 0.55), transparent 75%),
    linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.25));
}
.mc-pv-name {
  position: absolute; left: 0; right: 0; top: 50%; z-index: 0; transform: translateY(-50%); text-align: center; pointer-events: none;
  font: 800 clamp(56px, 9vw, 132px)/1 var(--mm-font, 'Roboto Condensed', sans-serif); letter-spacing: 0.08em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 216, 0, 0.16); white-space: nowrap;
}
.mm-lo-pview .mc-preview { z-index: 1; }     /* (absolute, over the name: see .mc-preview) */
.mc-killer-tv {
  display: none; position: absolute; z-index: 5; left: 10px; top: 10px;
  width: min(42%, 216px); aspect-ratio: 16 / 9; overflow: hidden;
  border: 3px solid #d5b75b; border-radius: 4px; background: #071014;
  box-shadow: 0 4px 18px #000b, inset 0 0 0 1px #f4df9a;
  pointer-events: none;
}
.mc-killer-tv.on { display: block; }
/* Extra desktop room belongs to the Armory, while the native ad placement
   keeps its own dimensions and clearance. Short laptops keep the SDK sizing. */
@media (min-width: 1600px) and (min-height: 900px) {
  .mm-modal:has(.mc-preview) .mm-modal-card { width: min(92vw, 1800px); max-width: min(92vw, 1800px); }
  .mm-modal:has(.mc-preview) .mc-killer-tv { width: min(48%, 360px); }
  .mm-modal:has(.mc-preview) .mc-killer-tv-label { font-size: 11px; padding: 5px 7px; }
}
.mm-modal:has(.mc-preview):has([data-mm-part="catalog"]:not([hidden])) .mc-killer-tv.on { display: none; }
.mc-killer-tv canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; opacity: 0; transition: opacity .12s linear; }
.mc-killer-tv canvas.painted { opacity: 1; }
.mc-killer-tv::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,0,0,.13) 3px 4px), linear-gradient(180deg, transparent 42%, rgba(56, 232, 255, 0.07) 48%, rgba(255, 42, 133, 0.06) 51%, transparent 56%);
}
.mc-killer-tv-label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 3px 5px;
  overflow: hidden; color: #ffe38b; background: rgba(4,12,15,.78);
  font: 700 9px/1.2 var(--mm-font, 'Roboto Condensed', sans-serif); letter-spacing: .1em;
  text-overflow: ellipsis; white-space: nowrap; text-shadow: -1px 0 #ff2a6d, 1px 0 #38e8ff, 0 1px 3px #000;
}
.mc-watch-button {
  position: absolute; left: 12px; min-width: 44px; min-height: 44px; padding: 0 14px;
  border: 1px solid rgba(255,216,0,.72); border-radius: 3px;
  color: #ffe38b; background: rgba(5,15,19,.9); cursor: pointer;
  font: 700 11px/1 var(--mm-font, 'Roboto Condensed', sans-serif); letter-spacing: .11em;
  text-shadow: 0 1px 2px #000; box-shadow: 0 3px 12px #0008;
}
.mc-deploy-button {
  position: absolute; left: 12px; min-width: 44px; min-height: 44px; padding: 0 14px;
  border: 1px solid #ffd34e; border-radius: 3px;
  color: #fff4c2; background: rgba(24,42,46,.95); cursor: pointer;
  font: 700 11px/1 var(--mm-font, 'Roboto Condensed', sans-serif); letter-spacing: .11em;
  text-shadow: 0 1px 2px #000; box-shadow: 0 3px 12px #0008;
}
.mc-watch-button:hover, .mc-deploy-button:hover { background: rgba(38,62,68,.96); }
.mc-watch-button:focus-visible, .mc-deploy-button:focus-visible { outline: 2px solid #fff1ad; outline-offset: 2px; }
.mc-play-menu { position: absolute; right: max(12px, var(--mm-safe-right, 12px)); top: 72px; width: 162px; min-height: 36px;
  border: 1px solid #7f8e8e; border-left: 3px solid #ffd34e; border-radius: 2px;
  background: #14262ded; color: #fff0bf; cursor: pointer;
  font: 700 13px/1.2 'Roboto Condensed', system-ui, sans-serif; letter-spacing: .08em; }
.mc-play-menu:hover { background: #31454a; }
.mc-play-menu:focus-visible { outline: 2px solid #fff1ad; outline-offset: 2px; }

/* Short laptop/Chromebook windows: preserve the roster and the native ad's
   clearance by tightening only the class-card contents. */
@media (max-height: 640px) {
  .mm-modal:has(.mc-preview) [data-mm-part="chassis"] .mm-classgrid { gap: 2px; }
  .mm-modal:has(.mc-preview) [data-mm-part="chassis"] .mm-classchip { grid-template-columns: 32px minmax(0, 1fr); padding: 1px 8px 1px 2px; column-gap: 7px; }
  .mm-modal:has(.mc-preview) [data-mm-part="chassis"] .mm-classchip .mm-avatar { width: 32px; height: 32px; }
  .mm-modal:has(.mc-preview) [data-mm-part="chassis"] .mm-clslabel { font-size: 12px; }
  .mm-modal:has(.mc-preview) [data-mm-part="chassis"] .mm-classchip::after { font-size: 10px; }
}

/* The native workbench stacks below 900px. Its preview has no reserved picture
   height in that layout, so a live inset would cover the class list and actions. */
@media (max-width: 899px) {
  .mm-modal:has(.mc-preview) .mc-killer-tv.on { display: none; }
}

/* THE SLOTS AND THE MERC'S NUMBERS: tagged plates down the right */
.mm-modal:has(.mc-preview) [data-mm-part="slots"] .mm-lo-slotcard {
  position: relative; overflow: hidden; border-radius: 3px; padding: 9px 30px 9px 14px;
  border-color: rgba(75, 110, 112, 0.6); box-shadow: inset 3px 0 0 rgba(255, 216, 0, 0.55);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.18s, box-shadow 0.18s;
}
.mm-modal:has(.mc-preview) [data-mm-part="slots"] .mm-lo-slotcard::after {
  content: ''; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; opacity: 0.6;
  border-right: 2px solid var(--mm-text2); border-bottom: 2px solid var(--mm-text2); transform: translateY(-50%) rotate(-45deg);
  transition: transform 0.18s, border-color 0.18s, opacity 0.18s;
}
.mm-modal:has(.mc-preview) [data-mm-part="slots"] .mm-lo-slotcard:hover,
.mm-modal:has(.mc-preview) [data-mm-part="slots"] .mm-lo-slotcard.mm-vhover { transform: translateX(-3px); border-color: rgba(255, 216, 0, 0.6); box-shadow: inset 4px 0 0 var(--mm-accent); outline: none; }
.mm-modal:has(.mc-preview) [data-mm-part="slots"] .mm-lo-slotcard:hover::after { border-color: var(--mm-accent); opacity: 1; transform: translate(3px, -50%) rotate(-45deg); }
.mm-modal:has(.mc-preview) [data-mm-part="slots"] .mm-lo-slotv { font-size: 16px; letter-spacing: 0.02em; }
.mm-modal:has(.mc-preview) .mm-lo-cmp .mm-lo-blk { border-radius: 3px; border-color: rgba(75, 110, 112, 0.45); background: rgba(10, 18, 19, 0.35); }
.mm-modal:has(.mc-preview) .mm-lo-cmp .mm-lo-blkh { color: var(--mm-accent); font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; }
.mm-modal:has(.mc-preview) .mm-lo-cmp .mm-lo-stats li { position: relative; padding-left: 13px; list-style: none; }
.mm-modal:has(.mc-preview) .mm-lo-cmp .mm-lo-stats li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 5px; height: 5px; background: var(--mm-accent); transform: rotate(45deg); }

/* THE RACK (a slot's catalog): darker glass; the hat or skin picked glows */
.mm-modal:has(.mc-preview) [data-mm-part="catalog"] { border-radius: 3px; border-color: rgba(255, 216, 0, 0.35); background: rgba(16, 27, 28, 0.97); box-shadow: -18px 0 40px rgba(0, 0, 0, 0.35); }
.mm-modal:has(.mc-preview) [data-mm-part="catalog"] .mm-lo-catopt {
  border-radius: 3px; border-color: rgba(75, 110, 112, 0.5); background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.0));
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.15s, box-shadow 0.15s;
}
.mm-modal:has(.mc-preview) [data-mm-part="catalog"] .mm-lo-catopt:hover,
.mm-modal:has(.mc-preview) [data-mm-part="catalog"] .mm-lo-catopt.mm-vhover { transform: translateY(-2px); border-color: rgba(255, 216, 0, 0.7); outline: none; }
.mm-modal:has(.mc-preview) [data-mm-part="catalog"] .mm-lo-catopt.on { border-color: var(--mm-accent); box-shadow: inset 0 0 0 1px var(--mm-accent), 0 0 16px -4px rgba(255, 216, 0, 0.75); }
.mm-modal:has(.mc-preview) [data-mm-part="catalog"] .mm-lo-catart { border-radius: 2px; }

/* A PHONE HELD SIDEWAYS (v79): the stacked workbench left one merc in view
   under the name and colours. Lay its regions out side by side instead:
   identity | the five mercs | gear and numbers, all inside the engine's card
   (its size, swatches' 44 px targets and the actions untouched). */
@media (max-width: 899px) and (max-height: 500px) and (orientation: landscape) {
  .mm-modal:has(.mc-preview) .mm-modal-h { margin-bottom: 6px; }
  .mm-modal:has(.mc-preview) .mm-lo-bench { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; align-items: start; }
  .mm-modal:has(.mc-preview) [data-mm-part="chassis"] { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
  .mm-modal:has(.mc-preview) [data-mm-part="identity"] .mm-lo-idcolors { flex-wrap: wrap; gap: 6px; }
  .mm-modal:has(.mc-preview) [data-mm-part="chassis"] .mm-classgrid { margin: 0; }
  .mm-modal:has(.mc-preview) [data-mm-part="chassis"] .mm-classchip { min-height: 36px; }
  .mm-modal:has(.mc-preview) [data-mm-part="preview"] { display: none; }
  .mm-modal:has(.mc-preview) .mm-lo-right { margin: 0; }
  .mm-modal:has(.mc-preview) .mm-lo-cmp .mm-lo-blkh { font-size: 12px; }
  .mm-modal:has(.mc-preview) .mm-lo-cmp .mm-lo-stats li { font-size: 12px; }
}

/* DEPLOY: tape letters; once it may be taken, a glint runs across it now and then */
.mm-modal:has(.mc-preview) .mm-lo-actions .mm-btn { letter-spacing: 0.22em; border-radius: 3px; }
.mm-modal:has(.mc-preview) #mm-lo-go { position: relative; overflow: hidden; }
.mm-modal:has(.mc-preview) #mm-lo-go:not(:disabled)::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent); transform: translateX(-120%);
}

/* SUNSET ARMORY: scoped by the reversible art trial's own preview canvas.
   The engine still sizes/positions its card, regions and ad inventory. The ad
   frame changes appearance only: no resize, reparenting, overlay or hit target. */
.mm-modal:has(.mc-sunset-preview) {
  background: linear-gradient(90deg,rgba(4,12,18,.5),transparent 42%,rgba(4,12,18,.25)),url('./assets/brand/backdrop.webp?v=0ecf3fcf') center/cover;
}
/* The native modal retains all input/layout ownership. Only its artwork moves. */
.mc-city-vista { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .65s ease; container-type:size; }
.mc-city-vista.ready { opacity: 1; }
.mc-city-frame { position:absolute; width:100%; height:100%; width:max(100cqw,177.778cqh); height:max(100cqh,56.25cqw); left:50%; top:50%; transform:translate(-50%,-50%); }
.mc-city-hover { position:absolute; inset:0; transform:translate(calc(var(--city-mouse-x,0px) * var(--depth)),calc(var(--city-mouse-y,0px) * var(--depth))); transition:transform 700ms ease-out; }
.mc-city-hover-0 { --depth:.12; }
.mc-city-hover-1 { --depth:.5; }
.mc-city-hover-2 { --depth:1; }
.mc-city-depth { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; animation: mc-city-drift 12s ease-in-out infinite alternate; }
.mc-city-depth > canvas:not(.mc-city-clouds):not(.mc-city-window) { width:100%; height:100%; display:block; }
.mc-city-depth-0 { --drift: 1px; --rise:2px; }
.mc-city-depth-1 { --drift: 3px; --rise:7px; }
.mc-city-depth-2 { --drift: 6px; --rise:8px; --rise:min(10px,1.3cqh); }
.mc-city-clouds { position:absolute; left:0; top:0; width:200%; height:26%; animation:mc-city-cloud-drift 240s linear infinite; }
.mc-city-sun { position:absolute; left:80%; top:10%; width:24%; height:43%; border-radius:50%; background:radial-gradient(ellipse,#fff4b5a0,#ffca5048 48%,transparent 70%); animation:mc-city-sun-breathe 12s ease-in-out infinite alternate; }
.mc-city-window { position:absolute; pointer-events:none; animation:mc-city-room-light 30s linear infinite; }
.mc-city-hologram { position:absolute; left:15.40625%; top:46.05556%; width:7.0625%; height:14.11111%; }
/* Three generated cumulative cement-light states, fixed to the middle plate. */
.mc-city-spill { position:absolute; left:14.32%; top:41.78%; width:9.25%; height:25.78%; object-fit:fill; mix-blend-mode:screen; pointer-events:none; opacity:0; animation:mc-spill-one 11s ease-in-out infinite; }
.mc-city-spill-1 { animation-name:mc-spill-two; }
.mc-city-spill-2 { animation-name:mc-spill-three; }
@keyframes mc-spill-one { 0%,8%,29%,100%{opacity:0} 11%{opacity:.34} 12%{opacity:.08} 18%,19%{opacity:.42} }
@keyframes mc-spill-two { 0%,19%,40%,100%{opacity:0} 22%{opacity:.34} 23%{opacity:.09} 29%,30%{opacity:.42} }
@keyframes mc-spill-three { 0%,30%,91%,100%{opacity:0} 33%{opacity:.36} 34%{opacity:.10} 40%,58%,60%,77%{opacity:.42} 59%{opacity:.28} }
.mc-holo-word { position:absolute; width:100%; height:30.70866%; display:block; opacity:.85; animation:mc-holo-earn 11s ease-in-out infinite; }
.mc-holo-word-1 { animation-name:mc-holo-fast; }
.mc-holo-word-2 { animation-name:mc-holo-cash; }
@keyframes mc-holo-earn { 0%,8%,91%,100%{opacity:.06} 11%{opacity:.78} 12%{opacity:.22} 18%,58%,60%,77%{opacity:.9} 59%{opacity:.62} }
@keyframes mc-holo-fast { 0%,19%,91%,100%{opacity:.06} 22%{opacity:.78} 23%{opacity:.22} 29%,77%{opacity:.9} }
@keyframes mc-holo-cash { 0%,30%,91%,100%{opacity:.06} 33%{opacity:.84} 34%{opacity:.24} 40%,72%,74%,77%{opacity:1} 73%{opacity:.68} }
.mc-city-traffic { position:absolute; left:calc(51.2% + var(--lane)); top:100%; width:2px; height:3px; border-radius:40%; background:#fff0b8; box-shadow:0 0 3px #ffc96b; animation:mc-city-traffic 26s linear infinite; }
.mc-city-traffic-away { background:#ff6342; box-shadow:0 0 3px #ff633e; animation-direction:reverse; }
@keyframes mc-city-cloud-drift { from{transform:translateX(0)} to{transform:translateX(-50%)} }
@keyframes mc-city-sun-breathe { from{opacity:.18;transform:scale(.98)} to{opacity:.48;transform:scale(1.05)} }
@keyframes mc-city-room-light { 0%,32%,71%,100%{opacity:.88} 33%,70%{opacity:0} }
@keyframes mc-city-traffic { 0%{transform:translate(0,0) scale(1);opacity:0} 8%{opacity:.8} 88%{opacity:.65} 100%{transform:translate(8px,-22%) scale(.35);transform:translate(var(--traffic-drift,1.2cqh),-22cqh) scale(.35);opacity:0} }
.mc-city-vista::after { content: ''; position: absolute; inset: 0; background:linear-gradient(0deg,#100d251c,transparent 20%); }
.mc-city-beacon { position:absolute; width:3px; height:3px; margin:-2px; border-radius:50%; background:#ffd3b3; box-shadow:0 0 5px 2px #ff4b28aa; animation:mc-city-beacon 3.8s ease-in-out infinite; }
.mc-city-heli { position:absolute; top:23%; left:0; width:5%; color:#3d2e40; animation:mc-city-flight 52s linear infinite; animation-delay:-20s; }
.mc-city-heli-far { top:16.5%; width:2.9%; opacity:.62; animation:mc-city-flight-far 76s linear infinite; animation-delay:-9s; }
.mc-city-heli-far::after { display:none; }
.mc-city-tail-strobe { position:absolute; left:8%; top:32%; width:2.5px; height:2.5px; border-radius:50%; background:#ff5a3d; box-shadow:0 0 5px 1px #ff3b22; animation:mc-city-beacon 1.5s ease-in-out infinite; }
.mc-city-steam { position:absolute; width:2.6%; height:4.4%; border-radius:50%; pointer-events:none;
  background:radial-gradient(ellipse,rgba(255,224,200,.24),rgba(218,175,188,.08) 55%,transparent 75%);
  animation:mc-city-steam-rise 9.5s ease-out infinite; }
.mc-city-siren { position:absolute; width:4.5%; height:2.4%; border-radius:50%; pointer-events:none; mix-blend-mode:screen;
  animation:mc-city-siren-sweep 14s linear infinite; }
.mc-city-heli::after { content:''; position:absolute; width:130%; height:190%; left:-63%; top:52%; transform:rotate(25deg); transform-origin:80% 0; background:linear-gradient(#ffd37c99,#ffc06400); clip-path:polygon(80% 0,100% 100%,0 100%); animation:mc-city-search-sweep 17s ease-in-out infinite alternate; }
.mc-city-heli svg { display:block; width:100%; }
.mc-city-rotor { transform-origin:45px 8px; animation:mc-city-rotor .14s linear infinite alternate; }
@keyframes mc-city-beacon { 0%,12%,100%{opacity:.25} 5%{opacity:1} }
@keyframes mc-city-flight { 0%{transform:translate(-200%,20px) scale(.8)} 48%{transform:translate(1250%,-12px) scale(1)} 100%{transform:translate(2800%,5px) scale(.75)} }
@keyframes mc-city-flight-far { 0%{transform:translate(3600%,8px) scaleX(-1) scale(.88)} 50%{transform:translate(1600%,-8px) scaleX(-1) scale(.95)} 100%{transform:translate(-260%,12px) scaleX(-1) scale(.82)} }
@keyframes mc-city-steam-rise { 0%{transform:translate(0,0) scale(.65);opacity:0} 35%{opacity:.26} 100%{transform:translate(18%,-34%) scale(1.45);transform:translate(1.8cqh,-3.4cqh) scale(1.45);opacity:0} }
@keyframes mc-city-siren-sweep {
  0%,100%{transform:translate(-15%,0);transform:translate(-1.5cqh,0);background:radial-gradient(ellipse,rgba(255,46,76,.45),transparent 70%);opacity:0}
  15%,45%,75%{background:radial-gradient(ellipse,rgba(255,46,76,.48),transparent 70%);opacity:.65}
  30%,60%,90%{background:radial-gradient(ellipse,rgba(46,123,255,.48),transparent 70%);opacity:.65}
  95%{transform:translate(22%,-8%);transform:translate(2.2cqh,-.8cqh);opacity:0}
}
@keyframes mc-city-search-sweep { 0%{transform:rotate(-18deg);opacity:.7} 43%{transform:rotate(12deg);opacity:.9} 100%{transform:rotate(43deg);opacity:.65} }
@keyframes mc-city-rotor { from{transform:scaleX(.45)} to{transform:scaleX(1)} }
.mm-modal:has(.mc-city-vista) .mm-modal-card { position: relative; }
.mc-city-vista.paused *, .mc-city-vista.paused *::before, .mc-city-vista.paused *::after, .mc-city-still .mc-city-vista *, .mc-city-still .mc-city-vista *::before, .mc-city-still .mc-city-vista *::after { animation-play-state: paused !important; }
.mc-city-inspector-picture { position:relative; width:100%; aspect-ratio:16/9; overflow:hidden; background:url('./assets/brand/backdrop.webp?v=0ecf3fcf') center/cover; }
.mc-city-inspector p { margin:10px 0 0; color:var(--mm-text2,#a4b5ae); font-size:13px; }
.mc-city-still .mc-city-depth { animation-play-state:paused; }
.mm-modal:has(.mc-city-inspector) .mm-modal-card { width:min(1200px,94vw,calc((100vh - 260px) * 1.77778 + 50px)); max-width:94vw; }
@keyframes mc-city-drift { from { transform: scale(1.06) translate(calc(-1 * var(--drift)),var(--rise)); } to { transform: scale(1.06) translate(var(--drift),calc(-1 * var(--rise))); } }
@media (prefers-reduced-motion: reduce) {
  .mc-city-vista *, .mc-city-vista *::before, .mc-city-vista *::after { animation: none !important; }
  .mc-city-depth { transform: scale(1.06); }
  .mc-city-spill-2 { opacity:.42; }
  .mc-city-hover { transform:none; transition:none; }
  .mc-city-clouds,.mc-city-sun,.mc-city-window,.mc-city-traffic,.mc-city-steam,.mc-city-siren { display:none; }
  .mc-city-heli { left:28%; }
  .mc-city-heli-far { left:68%; }
  .mc-city-vista { transition: none; }
}
.mm-modal:has(.mc-sunset-preview) .mm-modal-card {
  background: linear-gradient(90deg,rgba(5,15,21,.90) 0%,rgba(5,15,21,.70) 23%,rgba(5,15,21,.22) 36%,rgba(5,15,21,.12) 65%,rgba(5,15,21,.88) 80%);
  border-color: rgba(132,171,181,.42); border-radius: 2px;
  box-shadow: 0 16px 48px #0008,inset 0 1px 0 #ffffff12;
}
.mm-modal:has(.mc-sunset-preview) .mm-modal-h {
  font-size: clamp(25px,3vw,44px); letter-spacing: .20em; color: #fff4d9;
  text-shadow: 0 3px 8px #0008;
}
.mm-modal:has(.mc-sunset-preview) .mm-modal-h::after { opacity: .85; height: 4px; }
.mm-modal:has(.mc-sunset-preview) [data-mm-part="chassis"] .mm-classchip {
  background: linear-gradient(125deg,#182c34eb,#09171ef2); border-color: #5d7b8580;
  box-shadow: inset 0 1px 0 #ffffff0c;
}
.mm-modal:has(.mc-sunset-preview) [data-mm-part="chassis"] .mm-classchip.on {
  border-color: #ffe04b; background: linear-gradient(110deg,#685822cc,#111e23ed 75%);
  box-shadow: inset 4px 0 #ffe04b,0 0 14px #ffcf2633;
}
.mm-modal:has(.mc-sunset-preview) [data-mm-part="chassis"] .mm-clslabel { font-weight: 900; letter-spacing: .08em; }
.mm-modal:has(.mc-sunset-preview) [data-mm-part="preview"] .mm-lo-pview {
  background: radial-gradient(ellipse at 50% 85%,#ffb72b35,transparent 58%);
}
.mm-modal:has(.mc-sunset-preview) .mc-pv-name {
  top: 28%; transform: translateY(-50%) rotate(-6deg); letter-spacing: .015em;
  font-size: clamp(60px,9vw,140px); -webkit-text-stroke: 1px #efb43980;
}
.mm-modal:has(.mc-sunset-preview) [data-mm-part="slots"] .mm-lo-slotcard {
  background: linear-gradient(125deg,#192c34f2,#0b1820f5); border-color: #5d7b8580;
  box-shadow: inset 4px 0 #ffdb37; padding-top: 13px; padding-bottom: 13px;
}
.mm-modal:has(.mc-sunset-preview) .mm-lo-slotv { color: #fff5df; font-weight: 800; }
.mm-modal:has(.mc-sunset-preview) .mm-lo-cmp .mm-lo-blk {
  background: linear-gradient(140deg,#172b33f0,#09161df5); border-color: #5d7b8580;
  padding: 16px;
}
.mm-modal:has(.mc-sunset-preview) .mm-lo-cmp .mm-lo-blkh { font-size: 24px; color: #ffdc3d; }
.mm-modal:has(.mc-sunset-preview) .mm-lo-stats li { font-size: 15px; line-height: 1.65; color: #dce6e5; }
.mm-modal:has(.mc-sunset-preview) .mm-lo-actions .mm-btn { min-height: 48px; font-size: 19px; letter-spacing: .20em; }
.mm-modal:has(.mc-sunset-preview) #mm-lo-no { background: #0b1a22eb; border-color: #8aa0a5; color: #f3eee1; }
.mm-modal:has(.mc-sunset-preview) #mm-lo-go {
  background: repeating-linear-gradient(135deg,transparent 0 52px,#ba82151a 52px 74px),linear-gradient(100deg,#ffcf25,#ffe755);
  color: #152026; border-color: #ffed83; box-shadow: 0 0 20px #ffbf2733;
}
.mm-modal:has(.mc-sunset-preview) .mm-adslot-loadout {
  background: #07141ce8; border-color: #70919a; outline: 1px solid #e1b845; outline-offset: 6px;
  box-shadow: -10px -10px 0 -8px #ffdc40,10px 10px 0 -8px #ffdc40,0 10px 30px #0009;
}
.mm-modal:has(.mc-sunset-preview) .mm-adlbl { color: #d3dde0; letter-spacing: .16em; }
.mm-modal:has(.mc-sunset-preview) .mm-adlbl::before { content: 'CORPORATE TRANSMISSION / '; color: #f8d84f; }
@media (min-width: 900px) and (min-height: 900px) {
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="chassis"] .mm-classchip { min-height: 56px; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="chassis"] .mm-classchip .mm-avatar { width: 46px; height: 46px; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="preview"] .mm-lo-pview { min-height: 390px; }
}
/* The entry screen also includes identity. Keep all five mercs in view beside
   it at laptop heights; the engine keeps ownership of the scrolling regions. */
@media (min-width: 900px) and (max-height: 850px) {
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="identity"] .mm-lo-idsw { width: 30px; height: 30px; min-width: 30px; min-height: 30px; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="identity"] .mm-lo-idcolors { gap: 6px; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="chassis"]:has([data-mm-part="identity"]) .mm-classgrid { gap: 4px; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="chassis"]:has([data-mm-part="identity"]) .mm-classchip { grid-template-columns: 30px minmax(0,1fr); padding: 3px 6px; column-gap: 8px; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="chassis"]:has([data-mm-part="identity"]) .mm-avatar { width: 30px; height: 30px; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="chassis"]:has([data-mm-part="identity"]) .mm-clslabel { font-size: 12px; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="chassis"]:has([data-mm-part="identity"]) .mm-classchip::after { font-size: 10px; }
}
@media (max-width: 899px) {
  .mm-modal:has(.mc-sunset-preview) .mm-modal-card { background: #091820ed; }
  .mm-modal:has(.mc-sunset-preview) .mm-lo-actions .mm-btn { font-size: 15px; letter-spacing: .12em; }
  .mm-modal:has(.mc-sunset-preview) .mm-lo-cmp .mm-lo-blk { padding: 10px; }
}

/* Keep the equipped hat, gun, and all four merc stats visible in short laptop
   workbenches. These rules compact only the gear panel's child content. */
@media (max-height: 640px) {
  .mm-modal:has(.mc-preview) [data-mm-part="slots"] .mm-lo-slotcard { padding: 4px 22px 4px 8px; }
  .mm-modal:has(.mc-preview) [data-mm-part="slots"] .mm-lo-slotv { font-size: 13px; }
  .mm-modal:has(.mc-preview) .mm-lo-cmp .mm-lo-blk { padding: 4px 7px; }
  .mm-modal:has(.mc-preview) .mm-lo-cmp .mm-lo-blkh { font-size: 13px; line-height: 1.1; letter-spacing: .08em; }
  .mm-modal:has(.mc-preview) .mm-lo-cmp .mm-lo-stats { margin: 3px 0 0; padding-left: 0; }
  .mm-modal:has(.mc-preview) .mm-lo-cmp .mm-lo-stats li { padding-left: 11px; font-size: 12px; line-height: 1.2; }
}

/* THE MOTION (none at all under reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  /* coming in: the roster from the left, card by card; the plates from the right;
     the merc rises into its light; the tape unrolls; the buttons come up last */
  .mm-modal:has(.mc-preview):not(.mm-cp-exiting) [data-mm-part="chassis"] .mm-classchip { animation: mc-in-left 0.44s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .mm-modal:has(.mc-preview):not(.mm-cp-exiting) [data-mm-part="chassis"] .mm-classchip:nth-child(2) { animation-delay: 0.05s; }
  .mm-modal:has(.mc-preview):not(.mm-cp-exiting) [data-mm-part="chassis"] .mm-classchip:nth-child(3) { animation-delay: 0.1s; }
  .mm-modal:has(.mc-preview):not(.mm-cp-exiting) [data-mm-part="chassis"] .mm-classchip:nth-child(4) { animation-delay: 0.15s; }
  .mm-modal:has(.mc-preview):not(.mm-cp-exiting) [data-mm-part="chassis"] .mm-classchip:nth-child(n+5) { animation-delay: 0.2s; }
  .mm-modal:has(.mc-preview):not(.mm-cp-exiting) [data-mm-part="slots"] .mm-lo-slotcard { animation: mc-in-right 0.44s 0.08s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .mm-modal:has(.mc-preview):not(.mm-cp-exiting) [data-mm-part="slots"] .mm-lo-slotcard + .mm-lo-slotcard { animation-delay: 0.14s; }
  .mm-modal:has(.mc-preview):not(.mm-cp-exiting) .mm-lo-cmp .mm-lo-blk { animation: mc-in-right 0.44s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .mm-modal:has(.mc-preview):not(.mm-cp-exiting) [data-mm-part="preview"] .mm-lo-pview { animation: mc-rise 0.6s 0.06s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .mm-modal:has(.mc-preview):not(.mm-cp-exiting) .mm-modal-h::after { animation: mc-tape 0.7s 0.1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .mm-modal:has(.mc-preview):not(.mm-cp-exiting) .mm-lo-actions .mm-btn { animation: mc-in-up 0.4s 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .mm-modal:has(.mc-preview) #mm-lo-go:not(:disabled)::after { animation: mc-glint 3.2s 0.8s ease-in-out infinite; }
  .mm-modal:has(.mc-preview) [data-mm-part="chassis"] .mm-classchip:hover::before { transform: translateX(110%); transition: transform 0.5s ease-out; }
  /* the rack opens: its cards pop in, a few at a time */
  .mm-modal:has(.mc-preview) [data-mm-part="catalog"]:not([hidden]) { animation: mc-in-up 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .mm-modal:has(.mc-preview) [data-mm-part="catalog"] .mm-lo-catopt { animation: mc-pop 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
  .mm-modal:has(.mc-preview) [data-mm-part="catalog"] .mm-lo-catopt:nth-child(n+8) { animation-delay: 0.04s; }
  .mm-modal:has(.mc-preview) [data-mm-part="catalog"] .mm-lo-catopt:nth-child(n+15) { animation-delay: 0.08s; }
  .mm-modal:has(.mc-preview) [data-mm-part="catalog"] .mm-lo-catopt:nth-child(n+22) { animation-delay: 0.12s; }
  /* a new merc slides into the light; a new hat, skin or colour is a quick pop */
  .mc-pv-ghost.leave { animation: mc-pv-out 0.26s ease-in both; }
  .mc-preview.swap { animation: mc-pv-in 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .mc-preview.pop { animation: mc-pv-pop 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.3) both; }
  .mc-pv-name.swap { animation: mc-name-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
}
@keyframes mc-in-left { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes mc-in-right { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes mc-in-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes mc-rise { from { opacity: 0; transform: translateY(18px) scale(0.96); filter: brightness(2.2); } 55% { filter: brightness(1.25); } to { opacity: 1; transform: none; filter: none; } }
@keyframes mc-tape { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }
@keyframes mc-pop { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes mc-glint { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }
@keyframes mc-pv-out { to { opacity: 0; transform: translateX(-46px) scale(0.97); filter: blur(2px); } }
@keyframes mc-pv-in { from { opacity: 0; transform: translateX(56px) scale(0.98); filter: blur(3px) brightness(1.8); } 60% { filter: blur(0) brightness(1.15); } to { opacity: 1; transform: none; filter: none; } }
@keyframes mc-pv-pop { from { transform: scale(0.965); filter: brightness(1.6); } to { transform: none; filter: none; } }
@keyframes mc-name-in { from { opacity: 0; letter-spacing: 0.5em; } to { opacity: 1; letter-spacing: 0.08em; } }
/* v35: live engine reserves feed the HUD, and callouts stay inside their lanes. */

.mc-hud.compact .mc-ticks { --tick: 5px; }
.mc-hud.compact .mc-gunicon { width: 90px; height: 26px; background-size: 208px 416px; }
.mc-hud.compact .mc-ammo .mc-gunicon { display: none; }
.mc-hud.compact .mc-alt .mc-gunicon { display: none; }
.mc-hud.compact .mc-count b { font-size: 34px; }
.mc-hud.compact .mc-guntitle { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-deathwash { display: none; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(100, 6, 12, .35), #9c192a); will-change: opacity; }



.mc-shout .who { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }





.mc-streak .contract { position: absolute; top: 14px; left: 67px; font-size: 11px; letter-spacing: .14em; }
.mc-streak.stinger .contract { color: #ffe866; font-weight: 900; text-shadow: -1px 0 #ff2a85, 1px 0 #38e8ff, 0 1px 4px #000; }



@media (prefers-reduced-motion: no-preference) {
  .mc-streak.on { animation: mc-confirm .18s ease-out both; }
  .mc-streak.on .ring.o, .mc-streak.on .skull, .mc-streak.on .sn { animation: none; }
  .mc-announce .mc-say.on, .mc-announce .mc-shout.on { animation: mc-centered-drop .18s ease-out both; }
  .mm-modal:has(.mc-preview):not(.mm-cp-exiting) [data-mm-part="chassis"] .mm-classchip,
  .mm-modal:has(.mc-preview):not(.mm-cp-exiting) [data-mm-part="slots"] .mm-lo-slotcard,
  .mm-modal:has(.mc-preview):not(.mm-cp-exiting) .mm-lo-cmp .mm-lo-blk { animation-name: mc-in-up; animation-duration: .32s; }
}
@media (max-height: 480px) {
  .mc-clock { min-width: 104px; height: 64px; }
  .mc-say { font-size: 14px; }
  .mc-shout { top: calc(var(--mc-top, 112px) + 8px); font-size: 26px; }
  .mc-shout .verb { font-size: 12px; margin-top: 4px; }
  .mc-streak { height: 62px; }
  .mc-altname { display: none; }
}

@keyframes mc-confirm { from { opacity: 0; transform: translate(-50%, 8px) scale(.96); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes mc-centered-drop { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
/* The explicitly opened device survey uses the full viewport for its child
   game's canvas; its small toolbar overlays rather than changing render size. */
.mc-autotest-page { margin: 0; overflow: hidden; background: #101c22; color: #f4eed5; font: 16px 'Roboto Condensed', sans-serif; }
.mc-test-shell { position: fixed; inset: 0; background: #101c22; display: grid; grid-template-rows: auto minmax(0,1fr); }
.mc-test-shell header { position: relative; grid-row: 1; grid-column: 1; z-index: 3; display: flex; align-items: center; gap: 18px; padding: 8px 16px; background: #101c22ed; border-bottom: 2px solid #fed401; }
.mc-test-shell header > div { flex: 1; min-width: 0; }
#mc-test-recovery-status { display: block; font-size: 12px; color: #bacbd0; }
#mc-test-intro label { display: block; margin: 8px 0; }
#mc-test-scope, #mc-test-graphics { padding: 8px; max-width: 100%; background: #20343c; color: #f7edce; border: 1px solid #fed401; font: inherit; }
.mc-test-shell button { padding: 10px 16px; border: 1px solid #fed401; background: #fed401; color: #101c22; font: inherit; font-weight: bold; cursor: pointer; margin: 4px; }
.mc-test-shell button:disabled { opacity: .4; cursor: default; }
#mc-test-intro, #mc-test-result { position: relative; grid-row: 2; grid-column: 1; min-height: 0; margin: 0 5% 20px; z-index: 2; background: #101c22; padding: 20px 30px; overflow: auto; }
#mc-test-intro p { max-width: 850px; line-height: 1.5; }
#mc-test-summary { white-space: pre-wrap; line-height: 1.45; font-size: 14px; }
#mc-test-view, #mc-test-view iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 600px) {
  .mc-test-shell header { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px; padding: 8px 12px; }
  .mc-test-shell header strong { font-size: 14px; }
  .mc-test-shell header > div { grid-row: 2; grid-column: 1 / -1; }
  .mc-test-shell header button { grid-row: 1; grid-column: 2; padding: 6px 10px; font-size: 14px; }
  #mc-test-intro, #mc-test-result { margin: 0 12px 12px; padding: 16px; }
  #mc-test-scope, #mc-test-graphics { width: 100%; font-size: 14px; }
}

/* Requested panel-free title: the surface knob has a .35 opacity floor.
 * Only the outer card disappears; native fields and buttons retain contrast. */
.mm-title-screen .mm-title-card.mm-title-menu { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; }
.mm-title-screen .mm-subtitle { color: #f6eec9; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(7, 13, 18, 0.92), 0 0 18px rgba(255, 202, 80, 0.22); }
.mm-title-screen .mm-title-menu button,
.mm-title-screen .mm-title-menu .mm-btn {
  border-radius: 2px; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.mm-title-screen .mm-title-menu button:hover,
.mm-title-screen .mm-title-menu .mm-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.58), 0 0 12px rgba(255, 216, 0, 0.28);
}
.mm-title-screen .mm-title-menu input {
  background: rgba(16, 28, 30, 0.86); border: 1px solid rgba(114, 154, 156, 0.58); border-radius: 2px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.42);
}

/* Contract intermission: native standings, vote, tally and countdown. */
.mm-results:has(.mm-results-inter) {
  background: linear-gradient(110deg,rgba(9,18,25,.83),rgba(29,19,37,.65)), url('./assets/brand/backdrop.webp?v=0ecf3fcf') center / cover;
  backdrop-filter: none;
}
.mm-results .mm-results-card.mm-results-inter {
  width: min(1120px,calc(100vw - 48px)); max-width: none; max-height: calc(100vh - 40px);
  padding: 0 24px 16px; border: 1px solid #687077; border-top: 5px solid #ffd800;
  border-radius: 3px; background: linear-gradient(135deg,#172832f5,#0b151ef5);
  box-shadow: 0 20px 70px #0009; color: #f2ead5;
}
.mm-results .mm-results-inter .mm-results-band {
  margin: 0 -24px 14px; padding: 16px 24px 18px; border-bottom: 0;
  background: linear-gradient(110deg,#ffd80018,transparent 65%);
  position: relative;
}
.mm-results .mm-results-inter .mm-results-band::after {
  content: ''; position: absolute; bottom: 0; left: 24px; right: 24px; height: 4px;
  background: repeating-linear-gradient(120deg,#ffd800 0 13px,transparent 13px 26px);
}
.mm-results .mm-results-inter .mm-results-title { color: #ded7c1; letter-spacing: .32em; font-size: 11px; }
.mm-results .mm-results-inter .mm-results-winner { color: #ffd800; font: 900 clamp(24px,3vw,40px)/1.15 'Roboto Condensed',sans-serif; letter-spacing: .05em; text-transform: uppercase; text-shadow: none; -webkit-text-stroke: 0; }
.mm-results .mm-results-inter .mm-results-scroll { min-height: 0; width: 100%; }
.mm-results .mm-results-inter .mm-results-board { width: 100%; max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 5px 16px; margin: 0; padding: 0; }
.mm-results .mm-results-inter .mm-results-board li { margin: 0; padding: 6px 12px; min-height: 30px; border-radius: 2px; background: #ffffff08; border-left: 3px solid #637680; }
.mm-results .mm-results-inter .mm-results-board li:first-child { background: #ffd80022; border-left-color: #ffd800; }
.mm-results .mm-results-inter .mm-results-board .mm-rk { color: #ffd800; }
.mm-results .mm-results-inter .mm-results-board b { color: #f2ead5; }
.mm-results .mm-results-inter .mm-round-slot { margin: 8px 0 0; flex-shrink: 0; }
.mc-contract-brief { color: #d8d9cc; font: 600 13px/1.4 'Roboto Condensed',sans-serif; padding: 8px 0; letter-spacing: .04em; }
.mm-results .mm-results-inter .mm-stagevote { margin: 0; width: 100%; }
.mm-results .mm-results-inter .mm-stagevote-h { color: #ffd800; font-weight: 800; letter-spacing: .1em; margin-bottom: 9px; }
.mm-results .mm-results-inter .mm-stagevote-row { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 9px; overflow: visible; padding: 3px; width: 100%; box-sizing: border-box; }
.mm-results .mm-results-inter .mm-stagecard { width: 100%; min-width: 0; max-width: none; flex: none; border-radius: 2px; border: 1px solid #657078; background: #0b151e; }
.mm-results .mm-results-inter .mm-stageshot { height: 100px; }
.mm-results .mm-results-inter .mm-stagelbl { left: 0; right: 0; bottom: 0; padding: 7px 4px; border-radius: 0; font-size: 13px; background: #0b151ee8; white-space: normal; }
.mm-results .mm-results-inter .mm-stagecard:hover,.mm-results .mm-results-inter .mm-stagecard:focus-visible { border-color: #ffd800; box-shadow: 0 0 0 2px #ffd800; outline: none; }
.mm-results .mm-results-inter .mm-results-timer { flex-shrink: 0; margin: 14px 0 0; padding: 10px; background: #050c1399; color: #f2ead5; font-size: 16px; letter-spacing: .04em; }
.mm-results .mm-results-inter .mm-results-timer b { color: #ffd800; font-size: 22px; }
@media (max-width: 1100px) {
  .mm-results .mm-results-inter .mm-stagevote-row { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .mm-results .mm-results-inter .mm-stageshot { height: 76px; }
}
@media (max-height: 680px) {
  .mm-results .mm-results-card.mm-results-inter { padding-bottom: 10px; }
  .mm-results .mm-results-inter .mm-results-band { padding-top: 10px; padding-bottom: 12px; margin-bottom: 8px; }
  .mm-results .mm-results-inter .mm-results-board li { padding: 3px 10px; min-height: 26px; }
  .mm-results .mm-results-inter .mm-results-timer { margin-top: 8px; padding: 6px; }
}

/* CONTRACTOR DECK — native workbench regions, no duplicated controls. The
   portrait and TV share an art mount but occupy separate columns. Inventory
   keeps the SDK's exact ad box dimensions; only its placement changes. */
@media (min-width: 900px) {
  .mm-modal:has(.mc-sunset-preview) {
    --deck-side: 260px; --deck-gap: 16px; --deck-roster: 230px;
    justify-content: flex-start; gap: 18px; padding: 18px; box-sizing: border-box;
  }
  .mm-modal:has(.mc-sunset-preview) .mm-modal-card {
    width: min(96vw,1800px); max-width: min(96vw,1800px);
    height: calc(100vh - 200px); max-height: calc(100vh - 200px);
    height: calc(100dvh - 200px); max-height: calc(100dvh - 200px);
    padding: 16px; border-radius: 5px; box-sizing: border-box;
    background: linear-gradient(90deg,#0b1922ed,#15202e55 42%,#0b1922c9);
    border: 1px solid #8e9b9166; box-shadow: 0 12px 50px #0008;
  }
  .mm-modal:has(.mc-sunset-preview) .mm-modal-h {
    min-height: 34px; margin: 0 0 12px; padding: 0; font-size: 25px; letter-spacing: .16em;
  }
  .mm-modal:has(.mc-sunset-preview) .mm-modal-h::before {
    content: 'MERC CITY /'; color: #ffe04b; font-size: 25px; letter-spacing: .04em; margin-right: 12px;
    position: static; width: auto; height: auto; background: none; box-shadow: none; flex: 0 0 auto; transform: none;
  }
  .mm-modal:has(.mc-sunset-preview) .mm-modal-h::after { height: 3px; opacity: .25; }
  .mm-modal:has(.mc-sunset-preview) .mm-lo-bench {
    flex: 1 1 0; min-height: 0; grid-template-columns: var(--deck-roster) minmax(0,1fr) var(--deck-side);
    grid-template-rows: minmax(0,1fr); gap: var(--deck-gap);
  }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="chassis"] { grid-column: 1; grid-row: 1; padding: 0; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="preview"] { grid-column: 2 / 4; grid-row: 1; min-width: 0; gap: 0; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="preview"] .mm-lo-pview {
    width: 100%; height: 100%; min-height: 0; flex: 1 1 0; border: 0;
    background: radial-gradient(ellipse at 34% 60%,#ffbd5030,transparent 52%);
  }
  .mm-modal:has(.mc-sunset-preview) .mc-preview {
    width: calc(100% - var(--deck-side) - var(--deck-gap));
    mask-image: linear-gradient(#000 88%,transparent);
  }
  .mm-modal:has(.mc-sunset-preview) .mc-pv-name {
    top: 4px; left: 12px; right: calc(var(--deck-side) + var(--deck-gap)); transform: none;
    text-align: left; font-size: clamp(27px,3.5vw,64px); line-height: 1; letter-spacing: .03em;
    color: #fff2ce; -webkit-text-stroke: 0; text-shadow: 0 2px 18px #0008;
  }
  .mm-modal:has(.mc-sunset-preview) .mc-pv-name::after {
    content: 'CONTRACTOR / SELECT YOUR LOADOUT'; display: block; margin-top: 8px;
    font-size: 10px; letter-spacing: .18em; color: #d5b96b;
  }
  .mm-modal:has(.mc-sunset-preview) .mc-killer-tv {
    top: 0; right: 0; left: auto; width: var(--deck-side); box-sizing: border-box;
    border: 1px solid #b69c59; border-top: 23px solid #111f29; border-radius: 3px;
    height: calc(var(--deck-side) * .5625 + 23px); aspect-ratio: auto; overflow: visible;
    box-shadow: 0 5px 16px #0005;
  }
  .mm-modal:has(.mc-sunset-preview) .mc-killer-tv::before {
    content: '●  REC / KILL TV  PLAY ►'; position: absolute; top: -18px; left: 8px;
    font: 700 11px/1 'Roboto Condensed',sans-serif; letter-spacing: .16em; color: #ffe05a;
  }
  .mm-modal:has(.mc-sunset-preview) .mc-killer-tv canvas { image-rendering: auto; }
  .mm-modal:has(.mc-sunset-preview) .mm-lo-right {
    grid-column: 3; grid-row: 1; z-index: 2; margin-top: calc(var(--deck-side) * .5625 + 34px);
    gap: 6px; min-height: 0;
  }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="slots"] { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="slots"] .mm-lo-slotcard { padding: 5px 19px 5px 9px; min-height: 42px; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="slots"] .mm-lo-slotcard::after { right: 8px; width: 5px; height: 5px; }
  .mm-modal:has(.mc-sunset-preview) .mm-lo-slotl { font-size: 10px; letter-spacing: .12em; }
  .mm-modal:has(.mc-sunset-preview) .mm-lo-slotv { font-size: 14px; }
  .mm-modal:has(.mc-sunset-preview) .mm-lo-cmp .mm-lo-blk { padding: 6px 10px; }
  .mm-modal:has(.mc-sunset-preview) .mm-lo-cmp .mm-lo-blkh { font-size: 14px; line-height: 1; }
  .mm-modal:has(.mc-sunset-preview) .mm-lo-stats { margin: 6px 0 0; padding: 0; }
  .mm-modal:has(.mc-sunset-preview) .mm-lo-stats li { font-size: 12px; line-height: 1.45; }
  .mm-modal:has(.mc-sunset-preview) .mm-lo-actions { margin-top: 10px; gap: 12px; }
  .mm-modal:has(.mc-sunset-preview) .mm-lo-actions .mm-btn { min-height: 44px; font-size: 18px; }
  .mm-modal:has(.mc-sunset-preview) #mm-lo-no { flex: 0 0 var(--deck-roster); }
  .mm-modal:has(.mc-sunset-preview) #mm-lo-go { flex: 1; }
  .mm-modal:has(.mc-sunset-preview) .mm-adslot-loadout { position: relative; z-index: 1; margin: 0; flex-shrink: 0; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="identity"] { margin-bottom: 10px; padding: 8px; background: #091820d9; border: 1px solid #6b838455; border-radius: 3px; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="identity"] input { min-height: 30px; height: 30px; padding: 12px 8px 1px; font-size: 14px; line-height: 16px; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="identity"] .mm-lo-idname input ~ label { top: 3px; left: 9px; transform: none; font-size: 8px; line-height: 1; letter-spacing: .08em; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="identity"] .mm-lo-idcolors { gap: 5px; flex-wrap: nowrap; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="identity"] .mm-lo-idsw { width: 22px; height: 22px; min-width: 22px; min-height: 22px; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="chassis"] .mm-classgrid { gap: 5px; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="chassis"] .mm-classchip { grid-template-columns: 38px minmax(0,1fr); min-height: 44px; padding: 3px 6px; gap: 0 8px; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="chassis"] .mm-classchip .mm-avatar { width: 38px; height: 38px; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="chassis"] .mm-clslabel { font-size: 14px; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="chassis"] .mm-classchip::after { font-size: 10px; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="catalog"] { z-index: 6; left: calc(var(--deck-roster) + var(--deck-gap)); right: 0; }
}
@media (min-width: 900px) and (max-height: 680px) {
  .mm-modal:has(.mc-sunset-preview) { --deck-side: 226px; --deck-roster: clamp(232px,22vw,260px); --deck-gap: 12px; padding: 12px; gap: 14px; }
  .mm-modal:has(.mc-sunset-preview) .mm-modal-card { height: calc(100vh - 184px); max-height: calc(100vh - 184px); height: calc(100dvh - 184px); max-height: calc(100dvh - 184px); padding: 10px 12px; }
  .mm-modal:has(.mc-sunset-preview) .mm-modal-h { min-height: 24px; font-size: 20px; margin-bottom: 8px; }
  .mm-modal:has(.mc-sunset-preview) .mm-modal-h::before { font-size: 20px; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="identity"] { padding: 5px 7px; margin-bottom: 6px; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="identity"] .mm-lo-idcolors { gap: 3px; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="chassis"] .mm-classgrid { gap: 3px; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="chassis"] .mm-classchip { min-height: 35px; grid-template-columns: 29px minmax(0,1fr); padding: 2px 5px; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="chassis"] .mm-classchip .mm-avatar { width: 29px; height: 29px; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="chassis"] .mm-clslabel { font-size: 12px; }
  .mm-modal:has(.mc-sunset-preview) .mm-lo-cmp .mm-lo-stats li { font-size: 12px; line-height: 1.2; margin: 0; padding-top: 0; padding-bottom: 0; }
  .mm-modal:has(.mc-sunset-preview) .mm-lo-actions .mm-btn { min-height: 38px; font-size: 16px; }
}
@media (min-width: 900px) and (max-height: 610px) {
  .mm-modal:has(.mc-sunset-preview) { --deck-side: 208px; }
}
/* Match the SDK's 300x250 inventory breakpoint, including tall laptops. */
@media (min-width: 1000px) and (min-height: 860px) {
  .mm-modal:has(.mc-sunset-preview) { --deck-side: 336px; --deck-roster: clamp(240px,19vw,380px); --deck-gap: 24px; padding: 32px; justify-content: center; }
  .mm-modal:has(.mc-sunset-preview) .mm-modal-card { height: min(900px,calc(100vh - 64px)); max-height: calc(100vh - 64px); height: min(900px,calc(100dvh - 64px)); max-height: calc(100dvh - 64px); padding: 24px; }
  .mm-modal:has(.mc-sunset-preview) .mm-lo-bench { grid-template-rows: minmax(0,1fr) 150px; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="catalog"] { right: calc(var(--deck-side) + var(--deck-gap)); }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="chassis"] { grid-row: 1 / 3; }
  .mm-modal:has(.mc-sunset-preview) .mm-lo-right { grid-column: 2; grid-row: 2; margin: 0; }
  .mm-modal:has(.mc-sunset-preview) .mm-lo-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
  .mm-modal:has(.mc-sunset-preview) .mm-lo-stats li { font-size: 15px; }
  .mm-modal:has(.mc-sunset-preview) .mm-lo-cmp .mm-lo-blkh { font-size: 18px; }
  .mm-modal:has(.mc-sunset-preview) .mm-lo-slotv { font-size: 18px; }
  .mm-modal:has(.mc-sunset-preview) .mm-lo-actions .mm-btn { min-height: 58px; font-size: 23px; }
  .mm-modal:has(.mc-sunset-preview) .mm-adslot-loadout { position: absolute; right: calc((100vw - min(96vw,1800px))/2 + 25px); bottom: calc((100vh - min(900px,100vh - 64px))/2 + 100px); bottom: calc((100dvh - min(900px,100dvh - 64px))/2 + 100px); }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="identity"] { padding: 12px; margin-bottom: 18px; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="identity"] .mm-lo-idsw { width: 28px; height: 28px; min-width: 28px; min-height: 28px; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="chassis"] .mm-classgrid { gap: 10px; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="chassis"] .mm-classchip { min-height: 80px; grid-template-columns: 64px minmax(0,1fr); padding: 7px; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="chassis"] .mm-classchip .mm-avatar { width: 64px; height: 64px; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="chassis"] .mm-clslabel { font-size: 20px; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="chassis"] .mm-classchip::after { font-size: 13px; line-height: 1.3; }
}
/* Large desktops: the roster's descriptions read at body size. */
@media (min-width: 1600px) and (min-height: 860px) {
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="chassis"] .mm-classchip::after { font-size: 14px; }
}
@media (min-width: 1000px) and (max-width: 1399px) and (min-height: 860px) {
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="identity"] .mm-lo-idsw { width: 20px; height: 20px; min-width: 20px; min-height: 20px; }
  .mm-modal:has(.mc-sunset-preview) [data-mm-part="identity"] .mm-lo-idcolors { gap: 3px; }
  .mm-modal:has(.mc-sunset-preview) .mm-lo-cmp .mm-lo-stats li { font-size: 13px; line-height: 1.2; }
}

/* Short windows (a Chromebook's 600-680 px): the name and its description run
   as ONE paragraph beside the portrait, so every word shows and all five mercs
   still fit without scrolling. Two or three short lines, never an ellipsis. */
@media (max-height: 700px) {
  .mm-modal:has(.mc-preview) [data-mm-part="chassis"] .mm-classgrid .mm-classchip {
    display: block; min-height: 0; padding: 2px 6px 2px 3px; text-align: left; font-size: 12px; line-height: 1.18;
  }
  .mm-modal:has(.mc-preview) [data-mm-part="chassis"] .mm-classgrid .mm-classchip .mm-avatar {
    float: left; width: 29px; height: 29px; margin-right: 7px;
  }
  .mm-modal:has(.mc-preview) [data-mm-part="chassis"] .mm-classgrid .mm-clslabel {
    display: inline; position: relative; inset: auto; transform: none; z-index: 1; margin: 0; font-size: 12px; line-height: inherit;
  }
  .mm-modal:has(.mc-preview) [data-mm-part="chassis"] .mm-classgrid .mm-classchip::after {
    display: inline; position: relative; z-index: 1; margin-left: 6px; font-size: 10.5px; line-height: inherit;
  }
}

/* Phone-only HUD. The native pad owns buttons, stick and look (engine 303). */
.mc-touch-play .mc-wrap, .mc-touch-play .mc-cv { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.mc-touch { position: absolute; inset: 0; z-index: 20; pointer-events: none; display: none;
  font: 700 10px/1 'Roboto Condensed', system-ui, sans-serif; color: #e9e4c6; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.mc-touch.on { display: block; }
/* v109 thumb arc: the AUTO pill under the top-right corner's chrome, and the
   red X up and left of the pad's buttons while the bolt is scoped */
.mc-auto-pill { display:none; position:absolute; right:max(12px,env(safe-area-inset-right)); top:64px; min-height:32px; padding:0 14px;
  pointer-events:auto; border-radius:16px; border:1.5px solid #e9e4c666; background:rgba(22,35,36,.82); color:#9fb0ae;
  font:700 12px/1 'Roboto Condensed', system-ui, sans-serif; letter-spacing:.08em; }
.mc-auto-pill.on { border-color:#ffd800; color:#ffd800; }
.mc-auto-pill.firing { border-color:#ff7769; color:#ffb3a6; }
.mc-touch.live:not(.portrait) .mc-auto-pill { display:block; }
.mc-scope-cancel { display:none; position:absolute; right:252px; bottom:112px; width:52px; height:52px; padding:0; pointer-events:auto;
  border-radius:50%; border:2px solid #fff; background:rgba(200,40,36,.85); color:#fff; font:700 22px/1 system-ui, sans-serif; }
.mc-touch.live.scoping:not(.portrait) .mc-scope-cancel { display:block; }
.mc-t-install { display:none; position:absolute; top:max(12px,env(safe-area-inset-top)); right:max(12px,env(safe-area-inset-right)); min-height:44px; padding:0 14px; pointer-events:auto; border-radius:22px; border:1px solid #ffd800; background:#162324; color:#ffd800; font:inherit; }
.mc-touch.live.installable .mc-t-install { display:block; }
.mc-touch.portrait .mc-t-install { display:none; }
/* held upright: a card asks for landscape (the match keeps running behind it) */
.mc-trotate { display: none; position: absolute; inset: 0; pointer-events: auto; background: rgba(16, 28, 30, 0.94);
  flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; }
.mc-trotate b { font-size: 22px; letter-spacing: .1em; color: #ffd800; }
.mc-trotate span { font-size: 14px; color: #e9e4c6; font-weight: 400; }
.mc-trotate::before { content: ''; width: 46px; height: 76px; border: 3px solid #e9e4c6; border-radius: 9px; transform: rotate(90deg); margin-bottom: 18px; }
.mc-touch.on.live.portrait .mc-trotate { display: flex; }
/* the HUD on the phone: keyboard keycaps mean nothing to a thumb */
.mc-hud.touch .mc-alt .k, .mc-hud.touch .mc-nade .k { display: none; }
.mc-hud.touch .mc-gun { display: none; }
.mc-hud.touch .mc-ammo { padding: 6px 12px 6px 22px; }
.mc-hud.touch .mc-count b { font-size: 32px; }
.mc-hud.touch .mc-hptext { font-size: 18px; }
.mc-hud.touch .mc-ticks { --tick: 5px; }
/* the dock: the clip reloads, the spare weapon swaps, the grenade box throws */
.mc-hud.dock .mc-ammo { pointer-events: auto; }
.mc-hud.dock .mc-alt { pointer-events: auto; min-height: 44px; box-sizing: border-box; font-size: 12px; }
.mc-hud.dock .mc-altname { display: inline; }
.mc-hud.dock .mc-alt::before { content: '\21C4'; font-size: 15px; color: #ffd800; }
.mc-hud.dock .mc-nade { pointer-events: auto; width: 48px; height: 48px; margin: 0; box-sizing: border-box; border: 2px solid #ffd80099; border-radius: 6px;
  background-position: -104.67px -158px; }
.mc-hud.dock .mc-nade .fill { inset: 2px; }
.mc-hud.dock .mc-nade .g { left: 8.67px; top: 2px; }
.mc-hud.dock .mc-ammo:active, .mc-hud.dock .mc-alt:active { filter: brightness(1.35); }
.mc-hud.dock .mc-nade:active { transform: scale(.92); }
/* the phone's scores: one pill (leader | you | credits); a tap opens the list */
.mc-sbpill { pointer-events: auto; position: absolute; display: flex; align-items: center; gap: 10px; min-height: 44px; box-sizing: border-box; padding: 0 12px 0 10px;
  background: rgba(47, 69, 70, 0.82); border-left: 4px solid #ffd800; color: #e9e4c6; font: 700 13px/1 'Roboto Condensed', system-ui, sans-serif;
  letter-spacing: .04em; white-space: nowrap; }
.mc-sbpill[hidden] { display: none; }
.mc-sbpill .lead { color: #ffd800; max-width: 12em; overflow: hidden; text-overflow: ellipsis; }
.mc-sbpill .me:empty, .mc-sbpill .cr:empty { display: none; }
.mc-sbpill .cr { display: flex; align-items: center; gap: 4px; color: #ffda60; }
.mc-sbpill .cr::before { content: ''; width: 11px; height: 7px; background: #ffd34e; border-top: 2px solid #fff0ac; border-bottom: 2px solid #b97e20; }
.mc-sbpill .chev { width: 0; height: 0; border: 5px solid transparent; border-top-color: #e9e4c6; margin-top: 5px; }
.mc-hud.sbopen .mc-sbpill .chev { border-top-color: transparent; border-bottom-color: #e9e4c6; margin: 0 0 5px; }
.mc-hud.touch:not(.sbopen) .mc-board { display: none; }

/* Earned credits share the scoreboard's safe-area flow. */
.mc-wallet { display:flex; align-items:center; gap:6px; padding:5px 9px; margin-top:3px; color:#ffda60; background:rgba(20,30,31,.88); border-left:3px solid #ffce3d; font-size:11px; letter-spacing:.06em; }
.mc-wallet::before { content:''; width:15px; height:9px; background:#ffd34e; border-top:2px solid #fff0ac; border-bottom:2px solid #b97e20; flex:none; }
.mc-wallet b { margin-left:auto; font-size:15px; letter-spacing:0; }

/* Wide / Ultrawide (21:9, 32:9) & Super High-Resolution MegaPC (1440p, 4K, 5K) scaling */
@media (min-aspect-ratio: 21/9) {
  .mc-pain .l, .mc-pain .r { width: 13%; }
  .mc-scope .ring { box-shadow: 0 0 0 150vmax #000; }
}
@media (min-aspect-ratio: 30/9) {
  .mc-pain .l, .mc-pain .r { width: 16%; }
  .mc-scope .ring { box-shadow: 0 0 0 200vmax #000; }
}
@media (min-width: 2200px) and (min-height: 1200px) {
  .mc-hud:not(.touch) { font-size: 15px; }
  .mc-hud:not(.touch) .mc-board { width: 13rem; font-size: 14px; gap: 3px; }
  .mc-hud:not(.touch) .mc-pl { height: 1.6rem; padding: 0 14px 0 10px; }
  .mc-hud:not(.touch) .mc-hptext { font-size: 26px; }
  .mc-hud:not(.touch) .mc-hptext span { font-size: 17px; }
  .mc-hud:not(.touch) .mc-ticks { --tick: 9px; height: 16px; }
  .mc-hud:not(.touch) .mc-count b { font-size: 50px; }
  .mc-hud:not(.touch) .mc-count span { font-size: 19px; }
  .mc-hud:not(.touch) .mc-controls { width: 310px; }
  .mc-hud:not(.touch) .mc-controls .mm-controls-hint { padding: 12px 15px; font-size: 13px; }
  .mc-hud:not(.touch) .mc-callout { font-size: 25px; max-width: min(420px, calc(100vw - 48px)); }
  .mm-idlabels { --mm-idlabel-size: 14px; --mm-idlabel-max: 156px; --mm-idlabel-pad: 4px 9px; }
}
@media (min-width: 3400px) and (min-height: 1800px) {
  .mc-hud:not(.touch) { font-size: 17px; }
  .mc-hud:not(.touch) .mc-board { width: 15rem; font-size: 16px; gap: 4px; }
  .mc-hud:not(.touch) .mc-pl { height: 1.85rem; }
  .mc-hud:not(.touch) .mc-hptext { font-size: 30px; }
  .mc-hud:not(.touch) .mc-ticks { --tick: 10px; height: 18px; }
  .mc-hud:not(.touch) .mc-count b { font-size: 58px; }
  .mc-hud:not(.touch) .mc-controls { width: 350px; }
  .mc-hud:not(.touch) .mc-controls .mm-controls-hint { padding: 14px 18px; font-size: 15px; }
  .mm-idlabels { --mm-idlabel-size: 16px; --mm-idlabel-max: 184px; --mm-idlabel-pad: 5px 11px; }
}
