/* The new front end (features/modern-front-end): the singleplayer menu, the
   loading screen, the briefing and the class / spawn screen, from the owner's
   Figma file. Every screen lays out on a 1920x1080 stage (`ui/stage.js`)
   scaled uniformly to the window; pixel values here are the frames' own. */

:root {
  --ui-font: "Trebuchet MS", "Lucida Grande", "Lucida Sans Unicode", sans-serif;
  --ui-accent: #d4df97;
  --ui-ink: #172018;
  --ui-text: #f1f2e9;
  --ui-text-2: #a8b0a5;
  --ui-text-3: #79857c;
  --ui-sub: #d2d7cb;
  --ui-rule: #39433a;
  --ui-rail: #3b473d;
  --ui-panel: rgba(20, 29, 25, .91);
  --ui-panel-solid: #141d19;
  --ui-control: #202a21;
  --ui-btn2: #273225;
  --ui-btn2-edge: #687650;
  --ui-shade: 10, 16, 13;
}

.ui-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  font-family: var(--ui-font);
  color: var(--ui-text);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
.ui-screen[hidden] { display: none; }
.ui-screen h1, .ui-screen h2, .ui-screen h3 { color: var(--ui-text); font-family: var(--ui-font); }
.ui-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  transform-origin: 0 0;
}
.ui-abs { position: absolute; }
.ui-screen button { font-family: inherit; color: inherit; }
.ui-logo { position: absolute; display: block; object-fit: contain; object-position: left center; }

.ui-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ui-accent);
  line-height: 18px;
}
.ui-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 28px;
  padding: 0 8px;
  box-sizing: border-box;
  border: 1px solid var(--ui-rule);
  border-radius: 3px;
  background: #101713;
  font-size: 11px;
  font-weight: 700;
  color: var(--ui-text-2);
  letter-spacing: .5px;
}
.ui-back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 15px;
  color: var(--ui-text-2) !important;
}
.ui-back:hover { color: var(--ui-text) !important; }
.ui-back:hover .ui-key { border-color: var(--ui-text-3); color: var(--ui-text); }

.ui-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px 0 26px;
  box-sizing: border-box;
  border: 0;
  border-radius: 3px;
  background: var(--ui-accent);
  color: var(--ui-ink) !important;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}
.ui-primary:hover { filter: brightness(1.07); }
.ui-primary:active { transform: translateY(1px); }
.ui-primary:disabled { cursor: default; filter: saturate(.3) brightness(.7); }
.ui-primary .ui-trail { display: inline-flex; align-items: center; gap: 12px; }
.ui-primary .ui-key {
  min-width: 0;
  height: 22px;
  padding: 0 7px;
  border-color: rgba(23, 32, 24, .45);
  background: transparent;
  color: var(--ui-ink);
  font-size: 10px;
}
.ui-arrow { width: 24px; height: 24px; flex: none; }

.ui-panel {
  background: var(--ui-panel);
  border: 1px solid var(--ui-rule);
  border-radius: 4px;
  box-sizing: border-box;
}
.ui-rule { position: absolute; height: 1px; background: var(--ui-rule); }

/* Shared modal (team switch, kit change confirm, briefing text). */
.ui-modal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--ui-shade), .62);
  z-index: 5;
}
.ui-modal[hidden] { display: none; }
.ui-dialog {
  width: 640px;
  padding: 32px 36px 36px;
  box-sizing: border-box;
  background: #141d19;
  border: 1px solid var(--ui-rule);
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}
.ui-dialog h2 { margin: 8px 0 14px; font-size: 30px; line-height: 38px; }
.ui-dialog p { margin: 0 0 22px; font-size: 17px; line-height: 26px; color: var(--ui-sub); }
.ui-dialog .ui-note { font-size: 14px; color: var(--ui-text-3); margin: 14px 0 22px; }
.ui-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ui-dialog-actions button {
  height: 52px;
  border-radius: 3px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.ui-dialog-actions .ui-yes { background: var(--ui-accent); color: var(--ui-ink) !important; border: 0; }
.ui-dialog-actions .ui-no { background: transparent; border: 1px solid var(--ui-btn2-edge); }
.ui-dialog-actions .ui-no:hover { background: var(--ui-btn2); }
.ui-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  margin-bottom: 4px;
  border: 1px solid var(--ui-rule);
  border-radius: 3px;
  background: #101713;
}
.ui-balance .ui-side { display: flex; align-items: center; gap: 12px; }
.ui-balance img { width: 34px; height: 22px; object-fit: cover; border-radius: 1px; }
.ui-balance b { display: block; font-size: 18px; }
.ui-balance small { display: block; font-size: 10px; letter-spacing: 1.2px; color: var(--ui-text-3); font-weight: 700; text-transform: uppercase; }
.ui-balance .ui-even { font-size: 13px; font-weight: 700; color: var(--ui-accent); }

/* ---------------------------------------------------------------- menu --- */

.m-screen { background: #101814; z-index: 1; }
.m-bg { position: absolute; inset: 0; z-index: 0; }
.m-bg video, .m-bg .m-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5;
}
.m-bg::before {
  content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(13, 20, 20, .45);
}
.m-bg::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10, 18, 15, 0) 0%, rgba(5, 10, 9, .8) 100%);
}
.m-logo { left: 64px; top: 20px; width: 235px; height: 106px; }
.m-nav { position: absolute; top: 40px; display: flex; }
.m-nav button {
  height: 72px;
  padding: 0 30px;
  background: none;
  border: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--ui-text-2) !important;
  cursor: pointer;
  position: relative;
}
.m-nav button:hover:not(:disabled) { color: var(--ui-text) !important; }
.m-nav button[aria-current="page"] { color: var(--ui-accent) !important; }
.m-nav button[aria-current="page"]::after {
  content: ''; position: absolute; left: 0; right: 0; top: 94px; height: 3px; background: var(--ui-accent);
}
.m-nav button:disabled { color: var(--ui-text-3) !important; opacity: .5; cursor: not-allowed; }
.m-nav-main { left: 478px; }
.m-nav-main button { min-width: 176px; }
.m-nav-util { right: 64px; gap: 0; align-items: center; }
.m-nav-util button { padding: 0 22px; }
.m-sound-slot { display: inline-flex; width: 44px; height: 44px; margin-left: 2px; }
.m-sound-slot .ld-mute-btn {
  position: static !important; width: 44px !important; height: 44px !important; padding: 0 !important;
  background: none !important; border: 0 !important; box-shadow: none !important;
}
.m-sound-slot .ld-mute-btn svg { width: 22px !important; height: 22px !important; }
.m-sound-slot .ld-mute-btn .ld-mute-cone { fill: var(--ui-text-2) !important; }
.m-sound-slot .ld-mute-btn .ld-mute-wave, .m-sound-slot .ld-mute-btn .ld-mute-slash { stroke: var(--ui-text-2) !important; }
.m-sound-slot .ld-mute-btn:hover .ld-mute-cone { fill: var(--ui-text) !important; }
.m-sound-slot .ld-mute-btn:hover .ld-mute-wave, .m-sound-slot .ld-mute-btn:hover .ld-mute-slash { stroke: var(--ui-text) !important; }
.m-divider { left: 64px; top: 136px; width: 1792px; opacity: .65; }

.m-maps {
  position: absolute; left: 64px; top: 175px; width: 386px; height: 817px;
  overflow-y: auto; overflow-x: hidden; padding-right: 14px; box-sizing: border-box;
  scrollbar-width: thin; scrollbar-color: #829078 var(--ui-rule);
}
.m-maps::-webkit-scrollbar { width: 2px; }
.m-maps::-webkit-scrollbar-track { background: var(--ui-rule); }
.m-maps::-webkit-scrollbar-thumb { background: #829078; }
.m-map {
  display: flex; align-items: center; justify-content: space-between;
  width: 370px; height: 48px; padding: 0 16px 0 17px; box-sizing: border-box;
  border: 1px solid transparent; border-radius: 3px; background: none;
  font-size: 17px; color: var(--ui-text-2) !important; cursor: pointer; text-align: left;
}
.m-map:hover { color: var(--ui-text) !important; background: rgba(45, 56, 43, .35); }
.m-map small { font-size: 11px; font-weight: 700; color: var(--ui-text-3); letter-spacing: .3px; text-transform: uppercase; }
.m-map[data-botless="true"] { color: var(--ui-text-3) !important; }
.m-map[aria-selected="true"] {
  color: var(--ui-accent) !important; font-weight: 700;
  background: linear-gradient(90deg, rgba(45, 56, 43, 1) 0%, rgba(45, 56, 43, 0) 100%);
  border-color: rgba(104, 118, 80, .7);
}
.m-map[aria-selected="true"] small { color: var(--ui-accent); }

.m-preview {
  position: absolute; left: 478px; top: 175px; width: 848px; height: 521px;
  border-radius: 4px; overflow: hidden; background: #080e0b;
}
.m-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-preview::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 14, 11, 0) 0%, rgba(8, 14, 11, .10) 47%, rgba(8, 14, 11, .95) 100%);
}
.m-chip {
  position: absolute; left: 32px; top: 32px; z-index: 1;
  padding: 8px 12px; background: rgba(25, 33, 27, .8);
  font-size: 12px; font-weight: 700; letter-spacing: 1.6px; line-height: 16px; text-transform: uppercase;
}
.m-chip:empty { display: none; }
.m-ident { position: absolute; left: 32px; right: 32px; bottom: 30px; z-index: 1; }
.m-ident .ui-kicker { font-size: 12px; letter-spacing: 1.5px; line-height: 16px; margin-left: 3px; }
/* A two-line name sits tight (68 px lines for 64 px type); the 7.5 px each
   side the old 83 px line gave the kicker and the tagline is kept as margin. */
.m-ident h1 { margin: 15.5px 0 0; font-size: 64px; line-height: 68px; letter-spacing: 2px; font-weight: 700; text-transform: uppercase; }
.m-ident p { margin: 13.5px 0 0 3px; font-size: 19px; line-height: 25px; color: var(--ui-sub); }
.m-ident p:empty { display: none; }

.m-teams { position: absolute; left: 478px; top: 728px; width: 848px; height: 264px; display: grid; grid-template-columns: 408px 408px; gap: 32px; }
.m-team {
  position: relative; padding: 0; border: 0; border-radius: 3px; overflow: hidden; cursor: pointer;
  background: #1a221c;
}
.m-team img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.72) saturate(.85); transition: filter .2s ease; }
.m-team:hover img { filter: brightness(.9) saturate(.95); }
.m-team[aria-pressed="true"] img { filter: none; }
.m-team::after { content: ''; position: absolute; inset: 0; border-radius: 3px; border: 3px solid transparent; pointer-events: none; }
.m-team[aria-pressed="true"]::after { border-color: var(--ui-accent); }
.m-team .m-check {
  position: absolute; right: 14px; top: 14px; width: 30px; height: 30px; border-radius: 2px;
  background: var(--ui-accent); display: none; place-items: center; z-index: 1;
}
.m-team[aria-pressed="true"] .m-check { display: grid; }
.m-team .m-team-name {
  position: absolute; left: 18px; bottom: 14px; z-index: 1; font-size: 13px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase; text-shadow: 0 1px 6px rgba(0, 0, 0, .7);
}
.m-team:disabled { cursor: not-allowed; opacity: .3; }
.m-team .m-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; font-weight: 700; color: var(--ui-text-2); }

.m-settings { position: absolute; left: 1354px; top: 175px; width: 502px; height: 521px; padding: 27px 30px 0 31px; }
.m-setting { height: 93px; margin-bottom: 43px; }
.m-setting .m-row { display: flex; justify-content: space-between; align-items: center; height: 32px; }
.m-setting label { font-size: 18px; }
.m-setting output { font-size: 28px; font-weight: 700; color: var(--ui-accent); }
.m-range { -webkit-appearance: none; appearance: none; width: 442px; height: 18px; margin: 13px 0 0; background: transparent; cursor: pointer; }
.m-range:focus { outline: none; }
.m-range::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg, var(--ui-accent) var(--p, 50%), var(--ui-rail) var(--p, 50%)); }
.m-range::-moz-range-track { height: 3px; background: var(--ui-rail); }
.m-range::-moz-range-progress { height: 3px; background: var(--ui-accent); }
.m-range::-webkit-slider-thumb { -webkit-appearance: none; width: 7px; height: 17px; margin-top: -7px; border-radius: 1px; background: var(--ui-accent); border: 0; }
.m-range::-moz-range-thumb { width: 7px; height: 17px; border-radius: 1px; background: var(--ui-accent); border: 0; }
.m-time { display: flex; justify-content: space-between; align-items: center; margin-top: -12px; }
.m-time label { font-size: 18px; }
.m-select {
  -webkit-appearance: none; appearance: none; height: 42px; min-width: 116px; padding: 0 44px 0 22px;
  background: var(--ui-control) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23d4df97' stroke-width='1.1'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 16px center;
  border: 1px solid var(--ui-rule); border-radius: 3px; color: var(--ui-accent);
  font: 700 18px var(--ui-font); cursor: pointer;
}
.m-select option { background: #141d19; color: var(--ui-text); }

.m-objective {
  position: absolute; left: 1354px; top: 728px; width: 502px; height: 168px; box-sizing: border-box;
  padding: 22px 30px 22px 31px; display: flex; flex-direction: column;
  background: var(--ui-panel-solid); border-radius: 3px;
}
.m-objective .ui-kicker { font-size: 11px; letter-spacing: 1.1px; line-height: 15px; }
.m-objective p { margin: 8px 0 0; font-size: 17px; line-height: 22px; }
.m-brief-btn {
  align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 30px; background: var(--ui-btn2); border: 1px solid var(--ui-btn2-edge); border-radius: 3px;
  font-size: 16px; font-weight: 700; color: var(--ui-accent) !important; cursor: pointer;
}
.m-brief-btn:hover { background: #303d2d; }
.m-actions { position: absolute; left: 1354px; top: 928px; width: 502px; display: flex; gap: 14px; }
.m-actions .m-start { flex: 1; min-width: 0; }
.m-end {
  flex: none; height: 64px; padding: 0 22px; background: rgba(16, 23, 19, .6); border: 1px solid var(--ui-btn2-edge);
  border-radius: 3px; font-size: 15px; font-weight: 700; letter-spacing: .4px; color: var(--ui-text) !important; cursor: pointer;
}
.m-end:hover { border-color: #b0644f; color: #f0b5a4 !important; }
.m-end[hidden] { display: none; }
/* Over a running level: the level dimmed behind instead of the movie. */
.m-screen[data-ingame="true"] { background: rgba(10, 16, 13, .96); z-index: 40; }
/* The level page styles its sidebar's form controls globally; the menu's own win. */
.m-screen .m-time label { white-space: nowrap; }
.m-screen .m-select { width: auto !important; flex: none; margin: 0; }
.m-screen .m-range { padding: 0; border: 0; box-shadow: none; }
.m-screen[data-ingame="true"] .m-bg { display: none; }
.m-status { position: absolute; left: 478px; top: 994px; font-size: 14px; color: var(--ui-text-3); }

/* View briefing: the game's campaign map beside its story and objectives
   (ui/campaign-briefings.js); the text alone where a level has no map. */
.m-briefing.has-map { width: 1180px; }
.m-briefing-body { display: block; }
.m-briefing.has-map .m-briefing-body { display: grid; grid-template-columns: 560px 1fr; gap: 32px; align-items: start; }
.m-briefing-map { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; display: block; }
.m-briefing-map[hidden] { display: none; }
.m-briefing-text { max-height: 560px; overflow: auto; padding-right: 8px; margin-bottom: 24px; }
.m-briefing:not(.has-map) .m-briefing-text { max-height: 420px; }
.m-briefing-text p { margin: 0 0 16px; }
.m-briefing-head { margin: 22px 0 8px; }
.m-briefing-text > .m-briefing-head:first-child { margin-top: 0; }

/* ------------------------------------------------------------- loading --- */

.lm-screen { background: #101713; }
.lm-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lm-shade { position: absolute; inset: 0; background: linear-gradient(180deg,
  rgba(var(--ui-shade), .30) 0%, rgba(var(--ui-shade), .03) 30%, rgba(var(--ui-shade), .13) 44%,
  rgba(var(--ui-shade), .79) 65%, rgba(var(--ui-shade), .96) 77%, rgba(var(--ui-shade), 1) 100%); }
/* The left edge's darkening fades out downward rather than ending in a line
   at 70% (the owner, 2026-11-17: a seam over the divider on light art). */
.lm-edge { position: absolute; left: 0; top: 0; right: 0; height: 80%; background: linear-gradient(90deg,
  rgba(var(--ui-shade), .40) 0%, rgba(var(--ui-shade), 0) 52%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%); }
.lm-logo { left: 64px; top: 30px; width: 196px; height: 100px; }
.lm-context { position: absolute; right: 64px; top: 48px; text-align: right; }
.lm-context .lm-mode { font-size: 13px; font-weight: 700; letter-spacing: 1.2px; line-height: 18px; color: var(--ui-text-2); text-transform: uppercase; }
.lm-context .lm-team { margin-top: 8px; font-size: 18px; font-weight: 700; line-height: 26px; text-transform: uppercase; }
.lm-ident { position: absolute; left: 64px; bottom: 406px; width: 1200px; }
.lm-ident h1 { margin: 12px 0 0; font-size: 88px; line-height: 100px; letter-spacing: 1px; font-weight: 700; text-transform: uppercase; }
.lm-ident p { margin: 12px 0 0; font-size: 20px; line-height: 28px; }
.lm-ident p:empty { display: none; }
.lm-divider { left: 64px; right: 64px; top: calc(100% - 344px); }
.lm-stage { position: absolute; left: 64px; top: calc(100% - 300px); width: 1176px; display: flex; align-items: center; gap: 12px; }
.lm-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ui-accent); animation: lm-pulse 1.4s ease-in-out infinite; }
@keyframes lm-pulse { 50% { opacity: .35; } }
.lm-stage b { font-size: 24px; line-height: 32px; }
.lm-pct { position: absolute; left: 64px; width: 1176px; text-align: right; top: calc(100% - 308px); font-size: 42px; line-height: 52px; font-weight: 700; color: var(--ui-accent); }
.lm-bar { position: absolute; left: 64px; top: calc(100% - 236px); width: 1176px; height: 4px; background: var(--ui-rule); overflow: hidden; }
.lm-bar i { display: block; height: 100%; width: 100%; background: var(--ui-accent);
  transform-origin: 0 50%; transform: scaleX(0); transition: transform .2s linear; will-change: transform; }
.lm-bar[data-indeterminate="true"] i { width: 30% !important; animation: lm-sweep 1.3s ease-in-out infinite; }
@keyframes lm-sweep { from { transform: translateX(-100%); } to { transform: translateX(400%); } }
.lm-asset { position: absolute; left: 64px; top: calc(100% - 212px); display: flex; align-items: center; gap: 16px; }
.lm-label { font-size: 12px; font-weight: 700; letter-spacing: 1px; line-height: 18px; color: var(--ui-text-2); text-transform: uppercase; }
.lm-asset span:last-child { font-size: 16px; line-height: 24px; }
.lm-stats { position: absolute; left: 64px; top: calc(100% - 168px); display: grid; grid-template-columns: 348px 348px 300px; }
.lm-stats b { display: block; margin-top: 8px; font-size: 22px; line-height: 30px; }
.lm-tip-rule { position: absolute; right: 615px; top: calc(100% - 296px); width: 1px; height: 180px; background: var(--ui-rule); }
.lm-tip { position: absolute; right: 64px; top: calc(100% - 296px); width: 488px; }
.lm-tip .ui-kicker { font-size: 12px; letter-spacing: 1.5px; }
.lm-tip h3 { margin: 14px 0 0; font-size: 24px; line-height: 32px; }
.lm-tip p { margin: 14px 0 0; font-size: 18px; line-height: 27px; color: var(--ui-text-2); }
.lm-cancel { position: absolute; left: 64px; top: calc(100% - 62px); font-size: 14px; }
.lm-hold { position: absolute; left: 380px; top: calc(100% - 58px); font-size: 14px; color: var(--ui-text-3); }
/* Inside the load overlay (`progress.js`): the game's plate hidden, the new
   screen up while loading, gone once the briefing takes over. */
.ld-overlay[data-skin="modern"] .ld-bg-layer,
.ld-overlay[data-skin="modern"] .ld-stage { display: none !important; }
.ld-overlay[data-skin="modern"][data-state="briefing"] .lm-screen { display: none; }
.ld-overlay .lm-cancel { pointer-events: auto; }
.ld-overlay .lm-cancel[hidden] { display: none; }
.ld-overlay[data-state="error"] .lm-stage b { color: #e8a08c; }
.ld-overlay[data-state="error"] .lm-dot { background: #e8a08c; animation: none; }

/* ------------------------------------------------------------ briefing --- */

.br-screen { z-index: 3; }
.br-shade { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, rgba(11, 16, 14, .62) 0%, rgba(11, 16, 14, .22) 38%, rgba(11, 16, 14, 0) 60%),
  linear-gradient(180deg, rgba(11, 16, 14, .28) 0%, rgba(11, 16, 14, 0) 16%, rgba(11, 16, 14, 0) 50%, rgba(11, 16, 14, .78) 100%); }
.br-logo { left: 64px; top: 30px; width: 196px; height: 100px; }
.br-mission { position: absolute; left: 64px; bottom: 64px; width: 760px; }
.br-mission h1 { margin: 10px 0 0; font-size: 72px; line-height: 86px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.br-side { display: flex; align-items: center; gap: 14px; margin-top: 10px; font-size: 22px; font-weight: 700; line-height: 29px; }
.br-side img { width: 44px; height: 28px; object-fit: cover; border-radius: 1px; }
.br-mission p { margin: 22px 0 0; width: 640px; font-size: 20px; line-height: 30px; color: var(--ui-text); }
.br-actions { position: absolute; right: 64px; bottom: 64px; display: flex; align-items: center; gap: 28px; }
.br-actions .ui-primary { width: 360px; }

/* -------------------------------------------------------------- deploy --- */

.dp-screen { z-index: 30; }
.dp-shade { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, rgba(11, 16, 14, .6) 0%, rgba(11, 16, 14, .25) 34%, rgba(11, 16, 14, .08) 50%, rgba(11, 16, 14, .25) 62%, rgba(11, 16, 14, .6) 100%),
  linear-gradient(180deg, rgba(11, 16, 14, .35) 0%, rgba(11, 16, 14, 0) 18%, rgba(11, 16, 14, 0) 78%, rgba(11, 16, 14, .6) 100%); }
.dp-head { position: absolute; left: 64px; top: 56px; display: flex; align-items: center; gap: 16px; }
.dp-head > img { width: 56px; height: 36px; object-fit: cover; border-radius: 1px; }
.dp-head h2 { margin: 0; font-size: 26px; line-height: 31px; font-weight: 700; text-transform: uppercase; }
.dp-head small { display: block; margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; color: var(--ui-accent); text-transform: uppercase; }
.dp-sep { width: 1px; height: 32px; background: var(--ui-rule); margin-left: 4px; }
.dp-switch { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; font-size: 14px; color: var(--ui-text-2) !important; padding: 4px 0; }
.dp-switch:hover { color: var(--ui-text) !important; }
.dp-switch svg { width: 16px; height: 16px; }
.dp-score { position: absolute; right: 64px; top: 62px; display: flex; align-items: center; gap: 28px; }
.dp-score span { display: inline-flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 700; }
.dp-score img { width: 30px; height: 20px; object-fit: cover; border-radius: 1px; }
.dp-score .dp-dim { color: var(--ui-text-2); }
.dp-held { text-align: right; }
.dp-held b { display: block; font-size: 19px; color: var(--ui-accent); line-height: 24px; }
.dp-held small { display: block; font-size: 10px; letter-spacing: 1.2px; color: var(--ui-text-3); font-weight: 700; }
.dp-divider { left: 64px; right: 64px; top: 152px; }
.dp-h { position: absolute; top: 192px; margin: 0; font-size: 30px; line-height: 36px; font-weight: 700; }
.dp-classes { position: absolute; left: 64px; top: 246px; width: 560px; display: grid; gap: 12px; }
.dp-class {
  display: flex; align-items: center; gap: 20px; height: 112px; padding: 0 20px 0 16px; box-sizing: border-box;
  background: rgba(20, 29, 25, .72); border: 1px solid var(--ui-rule); border-radius: 4px; cursor: pointer; text-align: left;
}
.dp-class:hover { background: rgba(28, 39, 33, .85); }
.dp-class[aria-pressed="true"] { background: linear-gradient(rgba(212, 223, 151, .1), rgba(212, 223, 151, .1)), rgba(20, 29, 25, .9); border-color: var(--ui-accent); }
.dp-class img { width: 88px; height: 88px; object-fit: contain; flex: none; }
.dp-class .dp-ctext { flex: 1; min-width: 0; }
.dp-class b { display: block; font-size: 22px; line-height: 26px; }
.dp-class .dp-load { display: block; margin-top: 6px; font-size: 15px; line-height: 18px; color: var(--ui-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-count { text-align: right; flex: none; }
.dp-count b { font-size: 28px; line-height: 34px; }
.dp-count small { display: block; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; color: var(--ui-text-3); }
.dp-class[aria-pressed="true"] .dp-count b { color: var(--ui-accent); }
.dp-map {
  position: absolute; right: 64px; top: 244px; width: 660px; height: 660px;
  background: #0d1210; border: 1px solid var(--ui-rule); box-sizing: border-box; overflow: hidden;
}
.dp-map > img.dp-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.dp-flag {
  position: absolute; display: flex; flex-direction: column; align-items: center; gap: 2px;
  transform: translate(-50%, -26px); background: none; border: 0; padding: 0;
}
.dp-flag .dp-ring { position: relative; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; }
.dp-flag .dp-ring img { width: 36px; height: 36px; object-fit: contain; image-rendering: auto; }
.dp-flag[data-base="true"] .dp-ring img { width: 44px; height: 44px; }
.dp-flag button.dp-hit { position: absolute; inset: 0; border-radius: 50%; border: 0; background: none; cursor: pointer; }
.dp-flag[data-spawn="true"] .dp-ring:hover { background: rgba(212, 223, 151, .1); box-shadow: 0 0 0 1px rgba(212, 223, 151, .5); }
.dp-flag[data-selected="true"] .dp-ring { background: rgba(212, 223, 151, .16); box-shadow: 0 0 0 2px var(--ui-accent); }
.dp-flag .dp-name { padding: 2px 6px; border-radius: 2px; background: rgba(13, 20, 20, .78); font-size: 12px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.dp-flag[data-spawn="false"] .dp-ring { pointer-events: none; }
.dp-dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; border: 0; padding: 0; cursor: pointer; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6); }
.dp-dot[data-selected="true"] { box-shadow: 0 0 0 2px var(--ui-accent), 0 0 0 3px rgba(0, 0, 0, .6); }
.dp-footer-rule { left: 64px; right: 64px; top: calc(100% - 144px); }
.dp-esc { position: absolute; left: 64px; top: calc(100% - 94px); display: flex; align-items: center; gap: 28px; }
.dp-leave { background: none; border: 0; padding: 0; font-size: 15px; color: var(--ui-text-3) !important; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(121, 133, 124, .5); }
.dp-leave:hover { color: var(--ui-text) !important; }
.dp-commit { position: absolute; right: 64px; top: calc(100% - 112px); display: flex; align-items: center; gap: 28px; }
.dp-summary { text-align: right; }
.dp-summary b { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; color: var(--ui-accent); text-transform: uppercase; }
.dp-summary span { display: block; margin-top: 4px; font-size: 17px; color: var(--ui-text-2); }
.dp-commit .ui-primary { width: 300px; }
.dp-suicide { background: none; border: 1px solid var(--ui-rule); border-radius: 3px; height: 64px; padding: 0 22px; font-size: 15px; font-weight: 700; color: var(--ui-text-2) !important; cursor: pointer; }
.dp-suicide:hover { border-color: #b0644f; color: #f0b5a4 !important; }
.dp-suicide[hidden] { display: none; }

/* The game's own spawn screen stays live under the new one (its kit rows,
   rings and buttons are what the new screen presses) but is not shown. */
body.ui-modern #fullmap.deploy { opacity: 0 !important; pointer-events: none !important; }
body.ui-modern-deploy #spawn-timer { display: none !important; }
/* Nothing of the HUD over the briefing or the class screen. */
body:has(.ld-overlay[data-skin="modern"][data-state="briefing"]:not([hidden])) #minimap,
body.ui-modern-deploy #minimap,
body:has(.ld-overlay[data-skin="modern"][data-state="briefing"]:not([hidden])) #hud-canvas,
body:has(.ld-overlay[data-skin="modern"][data-state="briefing"]:not([hidden])) #nametag-canvas,
body.ui-modern-deploy #hud-canvas,
body.ui-modern-deploy #nametag-canvas { visibility: hidden; }
.dp-score i { font-style: normal; }

/* ------------------------------------------------------------ paused --- */

.ui-paused {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 35;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 26px 48px 24px; background: rgba(13, 20, 20, .82); border: 1px solid var(--ui-rule); border-radius: 4px;
  font-family: var(--ui-font); color: var(--ui-text); pointer-events: none; user-select: none;
}
.ui-paused[hidden] { display: none; }
.ui-paused b { font-size: 40px; line-height: 46px; letter-spacing: 1px; text-transform: uppercase; }
.ui-paused > span { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ui-text-2); }
.ui-paused .ui-key { min-width: 28px; }

/* A stationary gun aimed down its sights (mg-feel.js): its sights, not the crosshair. */
body.mg-ads #crosshair { visibility: hidden !important; }

/* ---- The end of a round (ui/end-modern.js), the owner's Figma frames
   "End of round / Victory" and "/ Defeat". ---- */
/* Fixed over everything the page draws (the HUD, the briefing, the deploy
   screen, the loading overlay): the round is over. */
.en-screen { position: fixed !important; z-index: 60; pointer-events: auto; transition: opacity .12s ease; }
.en-screen.en-peek { opacity: 0; pointer-events: none; }
.en-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(13,20,20,.94), rgba(13,20,20,.80) 55%, rgba(13,20,20,.88)); }
.en-logo { left: 64px; top: 30px; width: 196px; height: 100px; }
.en-context { position: absolute; right: 64px; top: 48px; text-align: right; }
.en-status { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ui-text-3); }
.en-mode { margin-top: 6px; font-size: 22px; font-weight: 700; color: var(--ui-text); }
.en-rule { position: absolute; left: 64px; width: 1792px; height: 1px; background: rgba(241,242,233,.14); }
.en-rule-top { top: 152px; }
.en-rule-bottom { top: 936px; }
.en-result { position: absolute; left: 64px; top: 196px; width: 820px; }
.en-title { margin: 6px 0 0 -4px; font-size: 104px; line-height: 112px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: var(--ui-accent) !important; white-space: nowrap; }
.en-screen[data-result="defeat"] .en-title { color: #e0907c !important; }
.en-screen[data-result="draw"] .en-title { color: var(--ui-text) !important; }
.en-line { margin: 18px 0 0; width: 760px; font-size: 18px; line-height: 28px; color: var(--ui-text-2);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.en-panel { position: absolute; box-sizing: border-box; background: rgba(20,29,25,.72);
  border: 1px solid var(--ui-rule); border-radius: 4px; }
.en-label { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ui-text-3); }
.en-tickets { left: 64px; top: 582px; width: 800px; height: 304px; padding: 27px 31px; }
.en-tickets.en-nomargin .en-rule-in, .en-tickets.en-nomargin .en-margin-head,
.en-tickets.en-nomargin .en-track, .en-tickets.en-nomargin .en-classes { display: none; }
.en-teams { margin-top: 20px; display: grid; gap: 16px; }
.en-team { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 16px; height: 48px; }
.en-team img, .en-noflag { width: 56px; height: 36px; object-fit: cover; border-radius: 2px; }
.en-team b { display: block; font-size: 22px; line-height: 26px; color: var(--ui-text); text-transform: uppercase; }
.en-team div > span { display: block; margin-top: 2px; font-size: 11px; font-weight: 700; letter-spacing: 1.1px;
  text-transform: uppercase; color: var(--ui-text-3); }
.en-team.en-winner div > span { color: var(--ui-accent); }
.en-screen[data-result="defeat"] .en-team.en-winner div > span { color: #e0907c; }
.en-left { text-align: right; white-space: nowrap; }
.en-left b { display: inline !important; font-size: 40px !important; line-height: 48px !important; color: var(--ui-text-3) !important; }
.en-team.en-winner .en-left b { color: var(--ui-text) !important; }
.en-left span { margin-left: 10px; font-size: 18px; color: var(--ui-text-3); }
.en-rule-in { margin-top: 20px; height: 1px; background: rgba(241,242,233,.10); }
.en-margin-head { margin-top: 19px; display: flex; justify-content: space-between; }
.en-margin-value { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: var(--ui-accent); }
.en-screen[data-result="defeat"] .en-margin-value { color: #e0907c; }
.en-track { position: relative; margin-top: 10px; height: 8px; border-radius: 4px; background: var(--ui-rule); }
.en-fill { height: 8px; border-radius: 4px; background: var(--ui-accent); }
.en-screen[data-result="defeat"] .en-fill { background: #e0907c; }
.en-track i { position: absolute; top: -4px; width: 2px; height: 16px; margin-left: -1px; background: rgba(241,242,233,.7); }
.en-classes { position: relative; margin-top: 12px; height: 14px; }
.en-classes span { position: absolute; left: 0; font-size: 11px; font-weight: 700; letter-spacing: 1.1px;
  text-transform: uppercase; color: var(--ui-text-3); padding-left: 6px; }
.en-classes span:first-child { padding-left: 0; }
.en-classes span.en-on { color: var(--ui-accent); }
.en-screen[data-result="defeat"] .en-classes span.en-on { color: #e0907c; }
.en-head-top, .en-head-best { position: absolute; left: 1000px; }
.en-head-top { top: 196px; }
.en-head-best { top: 494px; }
.en-top { left: 1000px; top: 222px; width: 856px; height: 236px; }
.en-screen[data-result="victory"] .en-top { background: rgba(212,223,151,.08); border-color: rgba(212,223,151,.5); }
.en-top-medal { position: absolute; left: 31px; top: 29px; width: 176px; height: 176px; object-fit: contain; }
.en-top-name { position: absolute; left: 235px; top: 30px; font-size: 48px; line-height: 58px; font-weight: 700; color: var(--ui-text); }
.en-top-side { position: absolute; left: 235px; top: 103px; display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ui-text-2); }
.en-top-side img { width: 36px; height: 24px; object-fit: cover; border-radius: 2px; }
.en-top-stats { position: absolute; left: 235px; top: 145px; display: flex; gap: 26px; }
.en-stat b { display: block; font-size: 32px; line-height: 43px; color: var(--ui-text); }
.en-stat b.en-lead { color: var(--ui-accent); }
.en-screen[data-result="defeat"] .en-stat b.en-lead { color: var(--ui-text); }
.en-stat span { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--ui-text-3); }
.en-columns { position: absolute; left: 1000px; top: 494px; width: 856px; height: 16px; }
.en-columns span { position: absolute; top: 0; width: 64px; text-align: right; font-size: 11px; font-weight: 700;
  letter-spacing: 1.1px; text-transform: uppercase; color: var(--ui-text-3); }
.en-columns span:nth-child(1) { left: 303px; }
.en-columns span:nth-child(2) { left: 383px; }
.en-columns span:nth-child(3) { left: 463px; }
.en-columns span:nth-child(4) { left: 543px; }
.en-columns span:nth-child(5) { left: 623px; }
.en-columns span:nth-child(6) { left: 703px; }
.en-rows { position: absolute; left: 1000px; top: 520px; width: 856px; display: grid; gap: 12px; }
.en-head-you { position: absolute; left: 1000px; top: 788px; font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--ui-text-3); }
.en-you { position: absolute; left: 1000px; top: 814px; width: 856px; }
.en-row { display: grid; grid-template-columns: 36px 36px 1fr 64px 64px 64px 64px 64px 64px 56px; column-gap: 16px; align-items: center;
  box-sizing: border-box; height: 72px; padding: 0 16px 0 20px; background: rgba(20,29,25,.72);
  border: 1px solid var(--ui-rule); border-radius: 4px; }
.en-row-you { background: rgba(212,223,151,.10); border-color: rgba(212,223,151,.9); }
.en-rank { font-size: 26px; text-align: center; color: var(--ui-text); }
.en-row-you .en-rank { color: var(--ui-accent); }
.en-flag { width: 36px; height: 24px; object-fit: cover; border-radius: 2px; }
.en-who { min-width: 0; }
.en-who b { display: block; font-size: 20px; line-height: 24px; color: var(--ui-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.en-who span { display: block; margin-top: 2px; font-size: 11px; font-weight: 700; letter-spacing: 1.1px;
  text-transform: uppercase; color: var(--ui-text-3); }
.en-row-you .en-who span { color: var(--ui-accent); }
.en-num { font-size: 22px; text-align: right; color: var(--ui-text-2); }
.en-num.en-score { color: var(--ui-text); }
.en-medal { width: 56px; height: 56px; }
.en-medal img { width: 56px; height: 56px; object-fit: contain; display: block; }
.en-hint { position: absolute; left: 64px; top: 991px; display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--ui-text-2); }
.en-actions { position: absolute; right: 64px; top: 970px; display: flex; gap: 16px; }
.en-btn { display: inline-flex; align-items: center; gap: 14px; height: 64px; padding: 0 20px 0 24px; box-sizing: border-box;
  border: 1px solid var(--ui-rule); border-radius: 4px; background: rgba(20,29,25,.72); color: var(--ui-text) !important;
  font-size: 17px; font-weight: 700; cursor: pointer; transition: filter .15s ease, background .15s ease; }
.en-btn svg { width: 22px; height: 22px; flex: none; }
.en-btn .ui-key { min-width: 0; height: 22px; padding: 0 7px; }
.en-btn:hover { background: rgba(32,42,33,.92); }
.en-btn:disabled { cursor: default; opacity: .45; }
.en-btn.en-go { border-color: transparent; background: var(--ui-accent); color: var(--ui-ink) !important; font-size: 18px; }
.en-btn.en-go:hover { filter: brightness(1.07); }
.en-btn.en-go .ui-key { background: transparent; border-color: rgba(16,23,19,.6); color: var(--ui-ink); }

/* ---- The hold-TAB score board (ui/scoreboard-modern.js), the owner's Figma
   frame "Stalingrad / Scoreboard (hold TAB)". Under the end screen (60). ---- */
.sb-screen { position: fixed !important; z-index: 50; pointer-events: none; }
.sb-shade { position: absolute; inset: 0; background: rgba(13,20,20,.5); }
.sb-board { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
/* The two sides centred as one block, their tops level. */
.sb-pair { display: flex; align-items: flex-start; gap: 80px; }
.sb-team { position: relative; width: 856px; box-sizing: border-box; padding: 0 20px 20px;
  background: rgba(20,29,25,.78); border: 1px solid var(--ui-rule); border-radius: 4px; overflow: hidden; }
.sb-team::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; }
.sb-axis::before { background: #e0907c; }
.sb-allied::before { background: #8fb0d6; }
.sb-head { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; column-gap: 16px; height: 96px; }
.sb-flag { width: 56px; height: 36px; object-fit: cover; border-radius: 2px; }
.sb-side b { display: block; font-size: 28px; line-height: 34px; text-transform: uppercase; color: var(--ui-text); }
.sb-side span, .sb-count span, .sb-cols span { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.1px;
  text-transform: uppercase; color: var(--ui-text-3); }
.sb-count { text-align: right; }
.sb-count b { display: block; font-size: 44px; line-height: 50px; color: var(--ui-text); }
.sb-cols, .sb-row { display: grid; grid-template-columns: 36px 1fr auto 64px 64px 64px 64px 64px; column-gap: 14px;
  align-items: center; box-sizing: border-box; padding: 0 20px 0 12px; }
.sb-cols { height: 26px; }
.sb-cols span { text-align: right; }
.sb-cols span:nth-child(1) { grid-column: 4; }
.sb-cols span:nth-child(2) { grid-column: 5; }
.sb-cols span:nth-child(3) { grid-column: 6; }
.sb-cols span:nth-child(4) { grid-column: 7; }
.sb-cols span:nth-child(5) { grid-column: 8; }
.sb-rows { display: grid; gap: 6px; }
.sb-row { height: 48px; border-radius: 3px; background: rgba(20,29,25,.55); border: 1px solid transparent; }
.sb-row.sb-you { background: rgba(212,223,151,.12); border-color: rgba(212,223,151,.85); }
.sb-row.sb-dead { background: rgba(20,29,25,.35); }
.sb-icon { width: 36px; height: 36px; object-fit: contain; }
.sb-dead .sb-icon { opacity: .35; }
.sb-name { min-width: 0; font-size: 18px; color: var(--ui-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-you .sb-name { color: var(--ui-accent); }
.sb-dead .sb-name { color: var(--ui-text-3); }
.sb-tag { font-size: 11px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--ui-accent); }
.sb-dead .sb-tag { color: #e0907c; }
.sb-num { font-size: 18px; text-align: right; color: var(--ui-text-2); }
.sb-num.sb-score { color: var(--ui-text); }
.sb-dead .sb-num { color: var(--ui-text-3); }
.sb-more { margin-top: 10px; padding-left: 62px; font-size: 13px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--ui-text-3); }
/* The game's HUD while the board is up. */
html.sb-open #hud-canvas, html.sb-open #minimap, html.sb-open #crosshair, html.sb-open #nametag-canvas,
html.sb-open #comms-canvas, html.sb-open #scout-canvas, html.sb-open #spawn-timer,
html.sb-open #mobile-controls, html.sb-open #mobile-pad, html.sb-open #mobile-pad-right { visibility: hidden !important; }
/* The Sharpshooter (ui/end-modern.js): the most kills through the head. */
.en-sharp { left: 64px; top: 486px; width: 800px; height: 80px; display: grid; grid-template-columns: 56px 1fr auto;
  align-items: center; column-gap: 16px; padding: 0 24px 0 16px; }
.en-sharp[hidden] { display: none; }
.en-sharp-icon { width: 56px; height: 56px; object-fit: contain; }
.en-sharp-text b { display: block; font-size: 22px; line-height: 26px; color: var(--ui-text); }
.en-sharp-side { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--ui-text-3); }
.en-sharp-count { text-align: right; }
.en-sharp-count b { display: block; font-size: 32px; line-height: 36px; color: var(--ui-accent); }
.en-sharp-count span { font-size: 11px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--ui-text-3); }

/* --- The modern in-game HUD (ui/hud-modern.js), the owner's Figma frame
   "HUD in game / revised v2". Stage px, scaled with the window. ----------- */
.hm-screen {
  --hm-axis: #e0907c;
  --hm-allies: #8fb0d6;
  --hm-panel: rgba(20, 29, 25, .72);
  z-index: 1;
  pointer-events: none;
}
.hm-screen .ui-stage { pointer-events: none; }
.hm-screen b { font-weight: 700; }
.hm-screen [hidden] { display: none !important; }
.hm-panel, .hm-kill, .hm-cap, .hm-map, .hm-status, .hm-ammo, .hm-slot, .hm-veh, .hm-turret, .hm-wep {
  background: var(--hm-panel);
  border: 1px solid var(--ui-rule);
  border-radius: 4px;
}
.hm-bar { position: relative; height: 5px; border-radius: 3px; background: var(--ui-rule); overflow: hidden; }
.hm-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; background: var(--ui-accent); }
/* Text on the live view with no panel under it keeps a soft shadow. */
.hm-chat, .hm-cap-head, .hm-tickets { text-shadow: 0 1px 4px rgba(0, 0, 0, .65); }

/* Kill feed, top left. */
.hm-feed { position: absolute; left: 40px; top: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.hm-kill { display: flex; align-items: center; gap: 10px; padding: 7px 12px; font-size: 15px; line-height: 19px; }
.hm-kill.hm-you { background: rgba(212, 223, 151, .14); border-color: rgba(212, 223, 151, .6); }
.hm-kill.hm-plain span { color: var(--ui-text-2); font-weight: 700; }
.hm-wpn { padding: 1px 6px; border: 1px solid var(--ui-text-3); border-radius: 3px; color: var(--ui-text-2);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; line-height: 14px; }
.hm-hs { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--ui-accent); stroke-width: 1.5; stroke-linecap: round; }

/* Chat and radio, left. */
.hm-chatcol { position: absolute; left: 40px; top: 420px; display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.hm-chat { display: flex; flex-direction: column; gap: 8px; }
/* The typed line (K / L), Figma "In battle / Chat (typing)". */
.hm-say { display: flex; flex-direction: column; gap: 8px; width: 560px; }
.hm-say[hidden] { display: none; }
.hm-say-chans { display: flex; gap: 6px; }
.hm-say-chans span { padding: 3px 8px; border: 1px solid var(--ui-rule); border-radius: 2px; background: rgba(var(--ui-shade), .6);
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ui-text-2); }
.hm-say-chans span[aria-pressed="true"] { background: var(--ui-accent); border-color: var(--ui-accent); color: var(--ui-ink); }
.hm-say-field { display: flex; align-items: center; height: 44px; padding: 0 14px; box-sizing: border-box; border: 1px solid var(--ui-btn2-edge);
  border-radius: 3px; background: rgba(var(--ui-shade), .82); font-size: 17px; color: var(--ui-text); white-space: pre; overflow: hidden; }
.hm-say-caret { flex: none; width: 2px; height: 22px; margin: 0 1px; background: var(--ui-text); }
.hm-say-hint { font-size: 12px; color: var(--ui-text-2); text-shadow: 0 1px 4px rgba(0, 0, 0, .65); }
.hm-line { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 18px; }
.hm-line span:last-child { color: var(--ui-text); }
.hm-line.hm-info span { color: var(--ui-text-2); }
.hm-chan { flex: none; padding: 1px 5px; border: 1px solid var(--ui-text-2); border-radius: 3px; background: var(--hm-panel);
  color: var(--ui-text-2); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 12px; text-shadow: none; }

/* The capture banner, top centre. */
.hm-cap { position: absolute; left: 50%; top: 40px; width: 354px; margin-left: -177px; padding: 13px 17px 15px; box-sizing: border-box; }
.hm-cap-head { display: flex; align-items: baseline; gap: 10px; font-size: 11px; line-height: 13px; }
.hm-cap-verb { color: var(--ui-accent); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hm-cap-name { color: var(--ui-text); }
.hm-cap-pct { margin-left: auto; color: var(--ui-accent); font-weight: 700; letter-spacing: .06em; }
.hm-cap-bar { margin-top: 21px; height: 4px; }
.hm-cap[data-side="enemy"] { border-color: rgba(224, 144, 124, .6); }
.hm-cap[data-side="enemy"] .hm-cap-verb, .hm-cap[data-side="enemy"] .hm-cap-pct { color: var(--hm-axis); }
.hm-cap[data-side="enemy"] .hm-cap-bar i { background: var(--hm-axis); }

/* The minimap's panel and the tickets over it (the retail minimap sits on top). */
.hm-map { position: absolute; box-sizing: border-box; }
.hm-tickets { position: absolute; left: 9px; right: 9px; top: 9px; height: 31px; display: flex; justify-content: space-between; align-items: center; }
/* The flags under the minimap (the owner's Figma sketch): one bar each, the
   panel's width between them, the holder's colour; part grey while a flag
   changes hands. */
.hm-bars { position: absolute; left: 9px; right: 9px; bottom: 9px; height: 6px; display: flex; gap: 8px; }
.hm-flagbar { flex: 1; position: relative; overflow: hidden; border-radius: 3px; background: rgba(57, 67, 58, .9); }
.hm-flagbar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: var(--ui-text-3); }
.hm-flagbar.hm-axis i { background: var(--hm-axis); }
.hm-flagbar.hm-allies i { background: var(--hm-allies); }
.hm-flagbar.hm-moving { box-shadow: 0 0 0 1px rgba(241, 242, 233, .25); }
.hm-side { display: flex; align-items: center; gap: 12px; }
.hm-side img { width: 44px; height: 28px; border-radius: 2px; object-fit: cover; }
.hm-side b { font-size: 26px; line-height: 31px; color: var(--ui-text); }
.hm-side.hm-bleed b { color: var(--hm-axis); }

/* Class, health and stamina, bottom left. */
.hm-status { position: absolute; left: 40px; bottom: 40px; width: 146px; box-sizing: border-box; padding: 12px 16px 14px;
  display: flex; flex-direction: column; gap: 8px; }
.hm-cls { display: flex; align-items: center; gap: 8px; height: 18px; }
.hm-cls-icon { width: 18px; height: 18px; image-rendering: auto; }
.hm-cls-name { color: var(--ui-text-2); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hm-winded { color: var(--hm-axis); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hm-status .hm-hp { height: 5px; }
.hm-status.hm-low .hm-hp i { background: var(--hm-axis); }
.hm-st { height: 3px; }
.hm-st i { background: var(--ui-text); }
.hm-st.hm-locked i { background: var(--hm-axis); }
.hm-st em { display: none; position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(241, 242, 233, .8); }
.hm-st.hm-locked em { display: block; }

/* The kit, bottom centre, while he picks or just after a switch. */
.hm-kit { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); display: flex; gap: 8px; }
.hm-slot { position: relative; width: 84px; height: 60px; box-sizing: border-box; }
.hm-slot span { position: absolute; left: 9px; top: 5px; color: var(--ui-text-3); font-size: 12px; font-weight: 700; }
.hm-slot img { position: absolute; left: 22px; top: 0; width: 60px; height: 60px; object-fit: contain; opacity: .85; }
.hm-slot.hm-active { background: rgba(212, 223, 151, .12); border-color: rgba(212, 223, 151, .7); }
.hm-slot.hm-active span { color: var(--ui-accent); }
.hm-slot.hm-active img { opacity: 1; }

/* The ammunition, bottom right: the original game's magazine bar. */
.hm-ammo { position: absolute; right: 40px; bottom: 40px; display: flex; align-items: center; gap: 12px; padding: 6px 16px 6px 12px; }
.hm-mag { position: relative; width: 45px; height: 90px; flex: none; }
.hm-mag img { position: absolute; left: 0; top: 0; width: 45px; height: 90px; object-fit: fill; }
/* The fill window: its top and height set per weapon and round (hud-modern.js). */
.hm-mag-left { position: absolute; left: 0; right: 0; top: 0; height: 100%; overflow: hidden; }
.hm-count { display: flex; flex-direction: column; gap: 4px; }
.hm-rounds { font-size: 40px; line-height: 44px; color: var(--ui-text); }
.hm-mags { display: flex; align-items: center; gap: 6px; }
.hm-box { min-width: 10px; padding: 2px 6px; border: 1px solid var(--ui-text-3); border-radius: 3px; background: rgba(20, 29, 25, .6);
  color: var(--ui-text); font-size: 13px; font-weight: 700; text-align: center; line-height: 16px; }
.hm-lbl { color: var(--ui-text-3); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* The retail minimap moves down under the ticket header while the modern HUD is up. */
html.hm-on #minimap { margin-top: var(--hm-mm-push, 0px); margin-right: var(--hm-mm-push-r, 0px); }
html.sb-open .hm-screen { visibility: hidden !important; }
/* The minimap in the modern HUD's panel: no retail bezel, soft corners. */
html.hm-on #minimap canvas { border-radius: 3px; }

/* The command wheel (ui/command-wheel.js; Figma "Command wheel / 1..2"):
   held on Q over the live view, over the HUD canvas. */
.cw-screen {
  --cw-allies: #8fb0d6;
  --cw-axis: #e0907c;
  --cw-shout: #d9b56f;
  z-index: 3;
  pointer-events: none;
}
.cw-screen .ui-stage { pointer-events: none; }
.cw-screen [hidden] { display: none !important; }
.cw-scrim { position: absolute; inset: 0; background: rgba(10, 15, 13, .42); }
.cw-head {
  position: absolute; left: 0; right: 0; top: 40px; text-align: center;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--ui-text-2); white-space: pre;
}
.cw-foot {
  position: absolute; left: 0; right: 0; bottom: 100px; text-align: center;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--ui-text-2); white-space: pre;
}
.cw-wheel { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.cw-svg { position: absolute; left: 0; top: 0; overflow: visible; }
.cw-wedge { fill: var(--ui-panel-solid); fill-opacity: .42; stroke: var(--ui-rule); stroke-width: 1.5; }
.cw-wedge.cw-off { fill-opacity: .25; }
.cw-wedge.cw-hot { fill: var(--ui-accent); fill-opacity: .16; stroke: var(--ui-accent); stroke-opacity: .9; }
.cw-push[hidden] { display: none; }
.cw-g0, .cw-g1 { stop-color: var(--ui-accent); }
.cw-target { fill: none; stroke: var(--ui-accent); stroke-opacity: .7; stroke-width: 2; stroke-dasharray: 5 6; }
.cw-front { fill: none; stroke: var(--ui-accent); stroke-width: 3; stroke-linecap: round; }
.cw-chevron { fill: none; stroke: var(--ui-accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.cw-wedges, .cw-labels { transform-origin: 0 0; }
.cw-wheel.cw-enter .cw-wedges, .cw-wheel.cw-enter .cw-labels { animation: cw-in .18s ease-out; }
@keyframes cw-in { from { transform: scale(.88); opacity: 0; } to { transform: none; opacity: 1; } }
.cw-pointer { fill: none; stroke: var(--ui-accent); stroke-width: 5; stroke-linecap: round; }
.cw-label {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--ui-text); text-align: center; white-space: nowrap;
}
.cw-label b { font-size: 19px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cw-icon { width: 40px; height: 40px; }
.cw-sub { font-size: 13px; color: var(--ui-text-2); }
.cw-label.cw-hot { color: var(--ui-accent); }
.cw-label.cw-hot b { font-size: 22px; }
.cw-label.cw-hot .cw-icon { width: 48px; height: 48px; }
.cw-label.cw-hot .cw-sub { color: var(--ui-text); }
.cw-label.cw-off, .cw-label.cw-off .cw-sub { color: var(--ui-text-3); }
.cw-tag {
  font-size: 9px; font-weight: 700; letter-spacing: .1em; color: var(--ui-text-3);
  border: 1px solid var(--ui-text-3); border-radius: 3px; padding: 2px 5px;
}
.cw-centre {
  position: absolute; left: -114px; top: -114px; width: 228px; height: 228px; box-sizing: border-box;
  border-radius: 50%; background: rgba(20, 29, 25, .92); border: 1.5px solid var(--ui-rule);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 0 22px; text-align: center;
}
.cw-kicker { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--ui-accent); text-transform: uppercase; white-space: pre; }
.cw-title { font-size: 18px; font-weight: 700; color: var(--ui-text); line-height: 1.15; }
.cw-title.cw-long { font-size: 15px; }
.cw-line { font-size: 12px; color: var(--ui-text-2); line-height: 1.25; }
.cw-chip {
  font-size: 9px; font-weight: 700; letter-spacing: .1em; border: 1px solid; border-radius: 3px; padding: 2px 6px;
}
.cw-hints {
  position: absolute; left: 0; right: 0; bottom: 40px; display: flex; justify-content: center; gap: 24px;
  font-size: 13px; color: var(--ui-text-2);
}
.cw-hint { display: inline-flex; align-items: center; gap: 8px; }
.cw-hint kbd {
  font-family: inherit; font-size: 10px; font-weight: 700; color: var(--ui-text-2);
  border: 1px solid var(--ui-text-3); border-radius: 3px; padding: 3px 6px; background: rgba(20, 29, 25, .8);
}
html.sb-open .cw-screen { visibility: hidden !important; }

/* The modern vehicle HUD (modern-hud.js `vehicleModel`; Figma "Vehicle HUD /
   Fighter" 152:533, "/ Tank" 152:621): the vehicle's card and turret dial
   bottom left, its seat weapons bottom right, the game's own pictures. */
.hm-vehrow { position: absolute; left: 40px; bottom: 40px; display: flex; align-items: flex-end; gap: 12px; }
.hm-veh { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; }
.hm-veh-pic { width: 96px; height: 96px; object-fit: contain; }
.hm-veh-read { display: flex; flex-direction: column; gap: 6px; min-width: 150px; }
.hm-veh-head { display: flex; align-items: center; gap: 8px; }
.hm-veh-name { font-size: 15px; color: var(--ui-text); }
.hm-veh-seat { padding: 1px 6px; border: 1px solid var(--ui-accent); border-radius: 3px; color: var(--ui-accent);
  font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hm-veh-hp-head { display: flex; gap: 6px; align-items: baseline; }
.hm-veh-hp-val { color: var(--ui-text-2); font-size: 9px; font-weight: 700; }
.hm-veh .hm-veh-hp { width: 150px; }
.hm-veh.hm-low .hm-veh-hp i { background: var(--hm-axis); }
.hm-veh-crew { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.hm-crew { display: flex; align-items: center; gap: 6px; font-size: 11px; white-space: nowrap; }
.hm-crew b { color: var(--ui-text); }
.hm-crew.hm-crew-you b { color: var(--ui-accent); }
.hm-crew.hm-crew-empty b { color: var(--ui-text-3); font-weight: 400; }
.hm-seatdot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ui-text-3); box-sizing: border-box; }
.hm-crew-you .hm-seatdot { background: #3b8cff; border-color: #9cc4ff; }
.hm-crew:not(.hm-crew-you):not(.hm-crew-empty) .hm-seatdot { background: #2c5fa8; border-color: #6f95cf; }
.hm-turret { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; }
.hm-dial { position: relative; width: 96px; height: 96px; }
.hm-dial img { position: absolute; }
.hm-dial-plate { left: 0; top: 0; width: 96px; height: 96px; }
.hm-dial-hull { left: 15px; top: 15px; width: 48px; height: 48px; transform-origin: 50% 50%; }
.hm-dial-pipe { left: 27px; top: 0; width: 24px; height: 48px; }
.hm-weps { position: absolute; right: 40px; bottom: 40px; display: flex; align-items: flex-end; gap: 12px; }
.hm-wep { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 12px; min-width: 200px; box-sizing: border-box; }
.hm-wep-icon { width: 56px; height: 56px; object-fit: contain; flex: none; }
.hm-wep-read { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.hm-wep-head { display: flex; align-items: center; gap: 6px; }
.hm-wep-head kbd { font-family: inherit; font-size: 9px; font-weight: 700; color: var(--ui-text-2); letter-spacing: .06em;
  border: 1px solid var(--ui-text-3); border-radius: 3px; padding: 1px 5px; background: rgba(20, 29, 25, .8); }
.hm-wep-count { font-size: 30px; line-height: 34px; color: var(--ui-text); }
.hm-wep-meter { display: flex; align-items: center; gap: 6px; }
.hm-wep-meter .hm-bar { width: 110px; height: 4px; }
.hm-wep[data-mode="reload"] .hm-bar i { background: var(--ui-text); }
.hm-wep[data-mode="reload"] .hm-wep-count { color: var(--ui-text-3); }
.hm-wep[data-mode="heat"] .hm-bar i { background: var(--hm-axis); }
.hm-wep[data-mode="hot"] .hm-bar i, .hm-wep[data-mode="hot"] .hm-wep-state { background: var(--hm-axis); color: var(--hm-axis); }
.hm-wep[data-mode="hot"] .hm-wep-state { background: none; }


/* ------------------------------------------------ fan notice, credits --- */
/* Local mod (features/multiplayer-options-credits-design). */

.ui-fan { position: absolute; left: 64px; top: 1012px; width: 1792px; box-sizing: border-box; display: flex; align-items: center; gap: 24px;
  padding-top: 13px; border-top: 1px solid var(--ui-rule); z-index: 2; }
.ui-fan-badge { flex: none; padding: 4px 8px; border: 1px solid var(--ui-btn2-edge); border-radius: 2px; font-size: 11px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--ui-accent); white-space: nowrap; }
.ui-fan p { flex: 1; margin: 0; font-size: 13px; line-height: 18px; color: var(--ui-text-2); }
.ui-fan-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; background: transparent;
  border: 1px solid var(--ui-rule); border-radius: 3px; font-size: 13px; font-weight: 700; color: var(--ui-sub) !important; cursor: pointer; white-space: nowrap; }
.ui-fan-btn:hover:not(:disabled) { border-color: var(--ui-text-3); color: var(--ui-text) !important; }
.ui-fan-btn:disabled, .ui-btn2:disabled, .ui-btn3:disabled { opacity: .45; cursor: not-allowed; }

.ui-btn2 { height: 48px; padding: 0 22px; background: var(--ui-btn2); border: 1px solid var(--ui-btn2-edge); border-radius: 3px;
  font-size: 16px; font-weight: 700; color: var(--ui-accent) !important; cursor: pointer; }
.ui-btn2:hover:not(:disabled) { filter: brightness(1.15); }
.ui-btn3 { height: 48px; padding: 0 18px; background: transparent; border: 1px solid var(--ui-rule); border-radius: 3px;
  font-size: 15px; font-weight: 700; color: var(--ui-sub) !important; cursor: pointer; }
.ui-btn3:hover:not(:disabled) { border-color: var(--ui-text-3); color: var(--ui-text) !important; }

.ui-rights { z-index: 20; }
.ui-rights .ui-dialog { position: relative; width: 760px; max-width: calc(100vw - 32px); padding: 36px 40px; user-select: text; }
.ui-rights .ui-dialog h2 { margin-right: 90px; }
.ui-rights-close { position: absolute; right: 24px; top: 24px; height: 34px; padding: 0 14px; background: transparent; border: 1px solid var(--ui-rule);
  border-radius: 3px; font-size: 14px; font-weight: 700; color: var(--ui-sub) !important; cursor: pointer; }
.ui-rights-close:hover { color: var(--ui-text) !important; border-color: var(--ui-text-3); }
.ui-rights-help { margin: 0 0 24px; padding: 16px 22px; background: #19211b; border-radius: 3px; }
.ui-rights-help small { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ui-text-3); }
.ui-rights-help ul { margin: 8px 0 0; padding-left: 18px; font-size: 16px; line-height: 26px; color: var(--ui-text); }
.ui-rights-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ui-rights .ui-note { margin: 16px 0 0 !important; }

.cr-intro { position: absolute; left: 64px; top: 196px; width: 560px; user-select: text; }
.cr-intro .ui-kicker { font-size: 12px; letter-spacing: 1.5px; }
.cr-intro h1 { margin: 16px 0 18px; font-size: 64px; line-height: 70px; letter-spacing: 2px; font-weight: 700; text-transform: uppercase; }
.cr-intro > p { margin: 0 0 28px; font-size: 19px; line-height: 28px; color: var(--ui-sub); }
.cr-disclaimer { padding: 24px 26px; border-radius: 4px; }
.cr-disclaimer .ui-kicker { font-size: 12px; letter-spacing: 1.4px; }
.cr-disclaimer p { margin: 12px 0 0; font-size: 16px; line-height: 24px; color: var(--ui-sub); }
.cr-disclaimer .cr-strong { color: var(--ui-text); }
.cr-actions { display: flex; gap: 12px; margin-top: 20px; }
.cr-columns { position: absolute; left: 720px; top: 196px; width: 1136px; display: grid; grid-template-columns: 540px 540px; gap: 56px; user-select: text; }
.cr-section { margin-bottom: 30px; }
.cr-section h3 { margin: 0 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--ui-rule); font-size: 13px; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase; color: #829078 !important; }
.cr-entry { margin-bottom: 18px; }
.cr-entry small { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ui-accent); }
.cr-entry b { display: block; margin-top: 6px; font-size: 20px; line-height: 26px; font-weight: 700; }
.cr-entry span { display: block; margin-top: 4px; font-size: 15px; line-height: 21px; color: var(--ui-text-2); }

/* ------------------------------------------------------------- options --- */
/* Local mod (features/multiplayer-options-credits-design): the new OPTIONS. */

.op-tabs { position: absolute; left: 64px; top: 152px; display: flex; gap: 36px; }
.op-tabs button { position: relative; height: 46px; padding: 0; background: none; border: 0; font-size: 14px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--ui-text-2) !important; cursor: pointer; }
.op-tabs button:hover { color: var(--ui-text) !important; }
.op-tabs button[aria-current] { color: var(--ui-accent) !important; }
.op-tabs button[aria-current]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ui-accent); }
.op-panel { position: absolute; left: 64px; top: 228px; width: 1258px; height: 676px; box-sizing: border-box; padding: 28px 32px;
  display: flex; gap: 58px; overflow: auto; border-radius: 4px; }
.op-col { width: 560px; flex: none; }
.op-col h3 { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ui-accent) !important; }
.op-col h3:not(:first-child) { margin-top: 24px; }
.op-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 56px; padding: 4px 0; }
.op-row label { font-size: 18px; }
.op-row .op-text small { display: block; margin-top: 3px; font-size: 14px; color: var(--ui-text-2); }
.op-slider { display: block; padding: 10px 0 4px; }
.op-top { display: flex; justify-content: space-between; align-items: center; }
.op-top output { font-size: 22px; font-weight: 700; color: var(--ui-accent); }
.op-slider .m-range { width: 100%; margin: 6px 0 0; }
.op-switch { position: relative; flex: none; width: 52px; height: 28px; padding: 0; border-radius: 14px; background: var(--ui-control);
  border: 1px solid var(--ui-rule); cursor: pointer; }
.op-switch i { position: absolute; left: 4px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #829078; transition: left .15s ease; }
.op-switch[aria-checked="true"] { background: var(--ui-accent); border-color: var(--ui-accent); }
.op-switch[aria-checked="true"] i { left: 27px; background: var(--ui-ink); }
.op-input input { width: 300px; height: 44px; box-sizing: border-box; padding: 0 14px; background: var(--ui-control); border: 1px solid var(--ui-rule);
  border-radius: 3px; color: var(--ui-text); font: 18px var(--ui-font); user-select: text; }
.op-input input:focus { outline: none; border-color: var(--ui-btn2-edge); }
.op-chip { display: inline-block; margin-left: 10px; padding: 3px 8px; vertical-align: middle; border: 1px solid var(--ui-btn2-edge); border-radius: 2px;
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ui-accent); }
.op-about { position: absolute; left: 1354px; top: 228px; width: 502px; height: 676px; box-sizing: border-box; padding: 28px 30px; border-radius: 4px; }
.op-about small { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ui-text-3); }
.op-about h2 { margin: 12px 0 14px; font-size: 30px; line-height: 36px; }
.op-about p { margin: 0; font-size: 17px; line-height: 25px; color: var(--ui-sub); user-select: text; }
.op-about-extra { margin-top: 18px; }
.op-about-extra .op-chip { margin-left: 0; }
.op-cost { font-size: 15px; color: var(--ui-accent); }
.op-about-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.op-status { margin-top: 14px !important; font-size: 15px !important; color: var(--ui-accent) !important; }
.op-foot { position: absolute; left: 64px; top: 930px; display: flex; align-items: center; gap: 24px; }
.op-foot span { font-size: 15px; color: var(--ui-text-3); }
.op-foot [hidden] { display: none; }
.op-panel[data-sec="controls"] { padding: 0; overflow: hidden; }
.op-controls { display: flex; width: 100%; height: 100%; }
.op-cats { flex: none; width: 300px; box-sizing: border-box; padding: 24px 20px; border-right: 1px solid var(--ui-rule); }
.op-cats button { display: block; width: 100%; height: 48px; margin-bottom: 4px; padding: 0 16px; text-align: left; background: transparent;
  border: 1px solid transparent; border-radius: 3px; font-size: 17px; color: var(--ui-text-2) !important; cursor: pointer; }
.op-cats button:hover { color: var(--ui-text) !important; }
.op-cats button[aria-current] { background: #212c22; border-color: var(--ui-btn2-edge); color: var(--ui-text) !important; font-weight: 700; }
.op-cats p { margin: 20px 4px 0; font-size: 14px; line-height: 20px; color: var(--ui-text-3); }
.op-binds { flex: 1; overflow: auto; padding: 16px 24px 20px; }
.op-bind { display: grid; grid-template-columns: 1fr 200px 200px; gap: 16px; align-items: center; height: 44px; border-bottom: 1px solid rgba(57, 67, 58, .6); font-size: 16px; }
.op-bind kbd { display: flex; align-items: center; justify-content: center; height: 30px; background: var(--ui-control); border: 1px solid var(--ui-rule);
  border-radius: 3px; font: 700 14px var(--ui-font); color: var(--ui-text); }
.op-bind-head { height: 32px; border: 0; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #829078; }
.op-bind-head span:not(:first-child) { text-align: center; }
.op-bind-head span:first-child { color: var(--ui-accent); }

/* --------------------------------------------------------- multiplayer --- */
/* Local mod (features/multiplayer-options-credits-design): the new MULTIPLAYER. */

.mp-body { position: absolute; left: 64px; top: 228px; width: 1792px; height: 676px; }
.mp-kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ui-accent); }
.mp-muted { color: #829078; }
.mp-banner { display: flex; align-items: center; gap: 16px; width: 1258px; box-sizing: border-box; padding: 14px 18px; background: #1d261f;
  border: 1px dashed var(--ui-btn2-edge); border-radius: 3px; }
.mp-banner b { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ui-accent); }
.mp-banner span { flex: 1; font-size: 15px; line-height: 21px; color: var(--ui-sub); }
.mp-banner .ui-btn3 { height: 36px; }
.mp-left { position: absolute; left: 0; top: 0; width: 1258px; display: flex; flex-direction: column; gap: 22px; }
.mp-card { padding: 24px 28px; border-radius: 4px; }
.mp-card p { margin: 10px 0 18px; font-size: 17px; color: var(--ui-sub); }
.mp-fields { display: flex; gap: 16px; align-items: flex-end; }
.mp-field { display: flex; flex-direction: column; gap: 8px; }
.mp-field small { font-size: 11px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--ui-text-2); }
.mp-field input { height: 46px; box-sizing: border-box; padding: 0 14px; background: var(--ui-control); border: 1px solid var(--ui-rule); border-radius: 3px;
  color: var(--ui-text); font: 18px var(--ui-font); user-select: text; }
.mp-field input:focus { outline: none; border-color: var(--ui-btn2-edge); }
.mp-grow { flex: 1; }
.mp-fields .mp-field:not(.mp-grow) input { width: 300px; }
.mp-fields .ui-btn2 { height: 46px; }
.mp-rooms-head { display: flex; justify-content: space-between; align-items: baseline; }
.mp-rooms-head h2 { margin: 0; font-size: 22px; }
.mp-rooms-head small { font-size: 14px; color: var(--ui-text-3); }
.mp-rooms { display: flex; flex-direction: column; max-height: 300px; overflow: auto; }
.mp-room { display: grid; grid-template-columns: 1fr 240px 200px 110px; gap: 16px; align-items: center; height: 52px; padding: 0 18px; text-align: left;
  background: transparent; border: 0; border-bottom: 1px solid rgba(57, 67, 58, .6); border-radius: 3px; font-size: 16px; color: var(--ui-sub) !important; cursor: pointer; }
.mp-room span:first-child { font-size: 17px; font-weight: 700; color: var(--ui-text); }
.mp-room:hover:not(.mp-room-head) { background: rgba(45, 56, 43, .35); }
.mp-room[aria-selected="true"] { background: #212c22; box-shadow: inset 0 0 0 1px var(--ui-accent); }
.mp-room-head { height: 30px; cursor: default; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #829078 !important; }
.mp-room-head span:first-child { font-size: 11px; color: #829078; }
.mp-full { color: #d9826b; }
.mp-empty { margin: 0; padding: 18px 0; font-size: 16px; line-height: 23px; color: var(--ui-text-2); }
.mp-actions .ui-primary { min-width: 300px; gap: 24px; }
.mp-side { position: absolute; left: 1290px; top: 0; width: 502px; height: 676px; box-sizing: border-box; padding: 28px 30px;
  display: flex; flex-direction: column; gap: 18px; border-radius: 4px; }
.mp-status { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ui-accent); }
.mp-status i { width: 9px; height: 9px; border-radius: 50%; background: var(--ui-accent); }
.mp-status[data-on="false"] { color: var(--ui-text-3); }
.mp-status[data-on="false"] i { background: #829078; }
.mp-side h2 { margin: 0; font-size: 30px; line-height: 36px; }
.mp-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 14px; }
.mp-steps li { display: grid; grid-template-columns: 28px 1fr; column-gap: 16px; row-gap: 3px; counter-increment: step; }
.mp-steps li::before { content: counter(step); grid-row: span 2; width: 28px; height: 28px; box-sizing: border-box; border-radius: 50%;
  border: 1px solid var(--ui-btn2-edge); display: grid; place-items: center; font-size: 14px; font-weight: 700; color: var(--ui-accent); }
.mp-steps b { font-size: 18px; font-weight: 600; }
.mp-steps span { font-size: 15px; line-height: 20px; color: var(--ui-text-2); }
.mp-share { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; background: var(--ui-control); border: 1px solid var(--ui-rule); border-radius: 3px; }
.mp-share span { flex: 1; font-size: 18px; font-weight: 600; user-select: text; }
.mp-share .ui-btn3 { height: 34px; padding: 0 14px; font-size: 14px; }
.mp-note { margin: 0; font-size: 14px; line-height: 20px; color: var(--ui-text-3); }
.mp-note code { color: var(--ui-sub); font-size: 13px; }
.mp-side-go { margin-top: auto; width: 100%; }
.mp-side-go:disabled { cursor: not-allowed; }
.mp-maps { position: absolute; left: 0; top: 0; width: 386px; height: 676px; overflow: auto; }
.mp-maps::-webkit-scrollbar { width: 2px; }
.mp-maps::-webkit-scrollbar-thumb { background: #829078; }
.mp-map { display: flex; justify-content: space-between; align-items: center; width: 376px; height: 48px; box-sizing: border-box; padding: 0 17px; text-align: left;
  background: transparent; border: 1px solid transparent; border-radius: 3px; font-size: 17px; color: var(--ui-text-2) !important; cursor: pointer; }
.mp-map:hover { color: var(--ui-text) !important; background: rgba(45, 56, 43, .35); }
.mp-map[aria-selected="true"] { background: #212c22; border-color: var(--ui-btn2-edge); color: var(--ui-text) !important; font-weight: 700; }
.mp-map small { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ui-accent); }
.mp-mid { position: absolute; left: 414px; top: 0; width: 848px; display: flex; flex-direction: column; gap: 18px; }
.mp-preview { position: relative; height: 400px; border-radius: 4px; overflow: hidden; background: #0d1414; }
.mp-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mp-preview::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 20, 20, 0) 35%, rgba(13, 20, 20, .9) 100%); }
.mp-ident { position: absolute; left: 32px; right: 32px; bottom: 28px; z-index: 1; }
.mp-ident .ui-kicker { font-size: 12px; letter-spacing: 1.5px; }
.mp-ident h1 { margin: 10px 0 0; font-size: 54px; line-height: 60px; letter-spacing: 1.5px; font-weight: 700; text-transform: uppercase; }
.mp-ident p { margin: 8px 0 0; font-size: 18px; color: var(--ui-sub); }
.mp-ident p:empty { display: none; }
.mp-seg { display: flex; border: 1px solid var(--ui-rule); border-radius: 3px; overflow: hidden; }
.mp-seg button { flex: 1; height: 50px; background: rgba(20, 29, 25, .6); border: 0; font-size: 16px; font-weight: 600; color: var(--ui-text-2) !important; cursor: pointer; }
.mp-seg button[aria-pressed="true"] { background: var(--ui-btn2); color: var(--ui-accent) !important; box-shadow: inset 0 0 0 1px var(--ui-accent); font-weight: 700; }
.mp-desc { margin: 0; font-size: 17px; line-height: 25px; color: var(--ui-sub); }
.mp-settings { gap: 10px; }
.mp-settings .mp-field input { width: 100%; }
.mp-settings .mp-note { margin-bottom: 10px; }

/* ------------------------------------------------- multiplayer messages --- */
.rm-modal { position: fixed !important; z-index: 60 !important; font-family: var(--ui-font); color: var(--ui-text); }
.rm-dialog { width: 600px; max-width: calc(100vw - 32px); padding: 32px 36px; }
.rm-kicker { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ui-accent); }
.rm-dialog[data-tone="error"] .rm-kicker { color: #d9826b; }
.rm-dialog h2 { margin: 10px 0 12px; font-size: 28px; line-height: 34px; color: var(--ui-text); font-family: var(--ui-font); }
.rm-dialog p { margin: 0 0 24px; font-size: 17px; line-height: 25px; color: var(--ui-sub); user-select: text; }
.rm-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rm-modal button { font-family: var(--ui-font); }

/* -------------------------------------------------------------- replay --- */
/* Local mod (features/multiplayer-options-credits-design): the replay feed
   (`play/recordings-feed.js`) and the replay player (`replay-ui.js`) in the
   new palette, through their own variables, with flatter plates. */

.rpl-area { position: absolute; left: 64px; top: 164px; width: 1792px; height: 824px; }
.rf-root.rf-modern {
  --rf-plate: rgba(20, 29, 25, .93); --rf-plate-deep: rgba(16, 24, 20, .72); --rf-card: #141d19;
  --rf-edge: #39433a; --rf-edge-strong: #687650; --rf-khaki: #d4df97; --rf-khaki-ink: #172018;
  --rf-ink: #f1f2e9; --rf-muted: #a8b0a5; --rf-faint: #79857c; --rf-gold: #d4df97; --rf-alert: #d9826b;
  font-family: var(--ui-font);
}
.rf-root.rf-modern .rf-panel { border-radius: 4px; box-shadow: none; }
.rf-root.rf-modern .rf-head { min-height: 46px; padding: 0 10px 0 20px; background: transparent; color: var(--ui-accent);
  border-bottom: 1px solid var(--rf-edge); font-size: 13px; letter-spacing: .12em; }
.rf-root.rf-modern .rf-head .rf-count { color: var(--rf-muted); opacity: 1; }
.rf-root.rf-modern .rf-head .rf-btn { color: var(--rf-ink); border-color: var(--rf-edge); background: transparent; height: 30px; }
.rf-root.rf-modern .rf-head .rf-btn:hover { border-color: var(--rf-faint); background: rgba(255, 255, 255, .04); }
.rf-root.rf-modern .rf-bar { padding: 12px 20px; }
.rf-root.rf-modern .rf-body { padding: 20px; }
.rf-root.rf-modern .rf-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.rf-root.rf-modern .rf-btn { border-radius: 3px; border-color: var(--rf-edge); font-size: 12px; letter-spacing: .06em; }
.rf-root.rf-modern .rf-btn.primary { background: var(--ui-accent); border-color: var(--ui-accent); color: var(--ui-ink); }
.rf-root.rf-modern .rf-btn.primary:hover { filter: brightness(1.07); background: var(--ui-accent); }
.rf-root.rf-modern .rf-seg { border-radius: 3px; }
.rf-root.rf-modern .rf-seg button[aria-pressed="true"] { background: var(--ui-btn2); color: var(--ui-accent); box-shadow: inset 0 0 0 1px var(--ui-accent); }
.rf-root.rf-modern .rf-cover { border-radius: 4px; }
.rf-root.rf-modern .rf-name { font-size: 16px; }
.rf-root.rf-modern .rf-line { font-size: 13px; }
.rf-root.rf-modern .rf-play { background: var(--ui-accent); }

.rp-root.rp-modern {
  --rp-plate: rgba(20, 29, 25, .88); --rp-plate-deep: rgba(16, 24, 20, .92); --rp-plate-menu: rgba(16, 24, 20, .97);
  --rp-edge: #39433a; --rp-edge-strong: #687650; --rp-khaki: #d4df97; --rp-khaki-ink: #172018;
  --rp-ink: #f1f2e9; --rp-muted: #a8b0a5; --rp-gold: #d4df97;
}
.rp-root.rp-modern .rp-bar { border-radius: 4px; background: linear-gradient(to top, rgba(13, 20, 20, .94), rgba(20, 29, 25, .82)); }
.rp-root.rp-modern .rp-card { border-radius: 4px; }
.rp-root.rp-modern .rp-btn { border-radius: 3px; }
.rp-root.rp-modern .rp-btn.on { background: var(--ui-btn2, #273225); color: var(--rp-khaki); border-color: var(--rp-khaki); }
.rp-root.rp-modern .rp-btn.play { border-color: var(--rp-khaki); }

/* ---- The map vote at a LAN round's end (ui/end-modern.js, server/room-vote.mjs). */
.en-screen.en-voting .en-head-top, .en-screen.en-voting .en-top, .en-screen.en-voting .en-head-best,
.en-screen.en-voting .en-columns, .en-screen.en-voting .en-rows, .en-screen.en-voting .en-head-you,
.en-screen.en-voting .en-you { display: none !important; }
.en-vote { position: absolute; left: 1000px; top: 190px; width: 856px; }
.en-vote[hidden] { display: none; }
.en-vote-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.en-vote-head .ui-kicker { font-size: 13px; letter-spacing: 1.4px; }
.en-vote-time { font-size: 16px; color: var(--ui-text); }
.en-vote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.en-vote-card { display: flex; flex-direction: column; padding: 0; text-align: left; background: #141d19; border: 1px solid var(--ui-rule);
  border-radius: 4px; overflow: hidden; cursor: pointer; font-family: var(--ui-font); color: var(--ui-text); }
.en-vote-card:hover { border-color: var(--ui-btn2-edge); }
.en-vote-card[aria-pressed="true"] { border: 2px solid var(--ui-accent); }
.en-vote-pic { position: relative; display: block; height: 150px; background: #0d1414 center / cover no-repeat; }
.en-vote-pic i { position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 2px;
  background: rgba(13, 20, 20, .8); font-style: normal; font-size: 16px; font-weight: 700; }
.en-vote-card[aria-pressed="true"] .en-vote-pic i { background: var(--ui-accent); color: var(--ui-ink); }
.en-vote-pic em { position: absolute; right: 14px; top: 16px; padding: 5px 9px; border-radius: 2px; background: var(--ui-accent); color: var(--ui-ink);
  font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; }
.en-vote-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px 16px; }
.en-vote-top { display: flex; justify-content: space-between; align-items: baseline; }
.en-vote-top b { font-size: 20px; }
.en-vote-top span { font-size: 16px; font-weight: 700; color: var(--ui-sub); }
.en-vote-card[aria-pressed="true"] .en-vote-top span { color: var(--ui-accent); }
.en-vote-body small { font-size: 14px; color: var(--ui-text-2); }
.en-vote-bar { display: block; height: 4px; border-radius: 2px; background: var(--ui-control); overflow: hidden; }
.en-vote-bar span { display: block; height: 100%; background: #829078; }
.en-vote-card[aria-pressed="true"] .en-vote-bar span { background: var(--ui-accent); }
.en-vote-note { margin: 18px 0 0; font-size: 15px; color: var(--ui-text-2); }

/* Local mod (features/multiplayer-options-credits-design): the room menu of
   a LAN battle (`ui/room-panel.js`, Figma "In battle / Host menu (Esc)"). */
.m-screen.m-in-room .ui-stage > :not(.rh-root):not(.ui-fan) { visibility: hidden; }
.rh-root { position: absolute; inset: 0; background: rgba(var(--ui-shade), .45); font-family: var(--ui-font); color: var(--ui-text); }
.rh-root[hidden] { display: none; }
.rh-players, .rh-room { position: absolute; top: 140px; padding: 30px 30px 26px; }
.rh-players { left: 262px; width: 716px; }
.rh-room { left: 1021px; width: 637px; }
.rh-root h2 { margin: 6px 0 18px; font-size: 30px; font-weight: 700; }
.rh-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 620px; overflow-y: auto; }
.rh-row { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 0 0 18px; border: 1px solid var(--ui-rule);
  border-radius: 3px; background: rgba(var(--ui-shade), .55); font-size: 18px; }
.rh-row:not(:has(.rh-kick)) { padding-right: 18px; }
.rh-name { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rh-badge { padding: 2px 7px; border-radius: 2px; background: var(--ui-accent); color: var(--ui-ink); font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; }
.rh-badge.rh-you { background: transparent; color: var(--ui-text-2); border: 1px solid var(--ui-rule); }
.rh-side { color: var(--ui-text-2); font-size: 15px; min-width: 56px; text-align: right; }
.rh-row[data-team="1"] .rh-side { color: #d79a8a; }
.rh-row[data-team="2"] .rh-side { color: #9fb6d6; }
.rh-kick { height: 50px !important; border-width: 0 0 0 1px !important; border-radius: 0 3px 3px 0 !important; font-size: 15px; }
.rh-line { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; font-size: 19px;
  border-bottom: 1px solid var(--ui-rule); }
.rh-line b { color: var(--ui-accent); font-weight: 700; }
.rh-line small { display: block; margin-top: 3px; color: var(--ui-text-3); font-size: 14px; }
.rh-room > .ui-kicker { margin-bottom: 6px; }
.rh-acts { display: flex; gap: 12px; margin-top: 26px; }
.rh-acts[hidden] { display: none; }
.rh-note { margin: 22px 0 0; color: var(--ui-text-2); font-size: 16px; }
.rh-note:empty { display: none; }
.rh-foot { position: absolute; left: 262px; top: 896px; display: flex; gap: 14px; align-items: center; }
.rh-foot .ui-btn3 { height: 52px; font-size: 17px; }
.rh-confirm { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(var(--ui-shade), .6); }
.rh-confirm[hidden] { display: none; }
.rh-confirm-box { width: 620px; padding: 34px 36px 30px; }
.rh-confirm-box p { margin: 0 0 26px; color: var(--ui-text-2); font-size: 18px; line-height: 1.45; }
.rh-confirm-acts { display: flex; gap: 12px; }
.mp-tag { margin-left: 8px; padding: 1px 6px; border: 1px solid var(--ui-rule); border-radius: 2px; font-style: normal; font-size: 11px;
  letter-spacing: 1px; text-transform: uppercase; color: var(--ui-text-2); vertical-align: 2px; }

/* Local mod (features/multiplayer-options-credits-design): a LAN room's lobby
   (`ui/lobby-modern.js`, Figma "Multiplayer / Lobby (host)"). Over map.html,
   so fixed over the page rather than in a front-end host. */
.lb-screen { position: fixed; background: radial-gradient(ellipse at 30% 20%, #1c2a20 0%, #101814 60%, #0c120f 100%);
  transition: opacity .25s ease; }
.lb-screen.lb-leaving { opacity: 0; pointer-events: none; }
.lb-screen:focus { outline: none; }
.lb-head { position: absolute; left: 64px; top: 168px; width: 1220px; height: 40px; display: flex; align-items: center; gap: 18px; }
.lb-title { margin: 0 8px 0 0; font-size: 32px; font-weight: 700; white-space: nowrap; }
.lb-chip { display: inline-flex; align-items: baseline; gap: 10px; height: 34px; padding: 0 14px; line-height: 32px; border: 1px solid var(--ui-rule);
  border-radius: 3px; background: rgba(var(--ui-shade), .6); }
.lb-chip[hidden] { display: none; }
.lb-chip small { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ui-text-3); }
.lb-chip b { font-size: 15px; color: var(--ui-accent); }
.lb-invite { margin-left: auto; height: 40px !important; font-size: 15px; }
.lb-side { position: absolute; top: 238px; width: 612px; }
.lb-side[data-team="2"] { left: 64px; }
.lb-side[data-team="1"] { left: 708px; }
.lb-banner { position: relative; height: 112px; overflow: hidden; border-radius: 3px; background: var(--ui-btn2); display: flex;
  align-items: center; justify-content: space-between; padding: 0 24px; }
.lb-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(.8); }
.lb-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--ui-shade), .75), rgba(var(--ui-shade), .15) 70%); }
.lb-banner-copy, .lb-count { position: relative; z-index: 1; }
.lb-banner h2 { margin: 2px 0 0; font-size: 30px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.lb-count { font-size: 17px; font-weight: 700; }
.lb-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.lb-row { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 18px; border: 1px solid var(--ui-rule); border-radius: 3px;
  background: rgba(var(--ui-shade), .55); font-size: 18px; }
.lb-row.lb-self { border-color: var(--ui-btn2-edge); }
.lb-name { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-ready { min-width: 86px; text-align: right; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ui-text-3); }
.lb-ready[data-on="true"] { color: var(--ui-accent); }
.lb-empty { margin: 10px 0 0; height: 50px; line-height: 48px; padding: 0 18px; border: 1px dashed var(--ui-rule); border-radius: 3px;
  color: var(--ui-text-3); font-size: 16px; }
.lb-switch { position: absolute; left: 64px; top: 760px; }
.lb-card { position: absolute; left: 1352px; top: 228px; width: 504px; height: 674px; display: flex; flex-direction: column; overflow: hidden; }
.lb-art { width: 100%; height: 172px; object-fit: cover; flex: none; background: var(--ui-control); }
.lb-ident { padding: 20px 26px 18px; border-bottom: 1px solid var(--ui-rule); }
.lb-ident h2 { margin: 0; font-size: 26px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.lb-ident p { margin: 6px 0 0; font-size: 15px; color: var(--ui-text-2); }
.lb-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 18px 26px 22px; }
.lb-log { flex: 1; min-height: 0; overflow-y: auto; margin: 10px 0 14px; font-size: 16px; line-height: 1.5; }
.lb-log p { margin: 0 0 4px; overflow-wrap: anywhere; }
.lb-log b { color: var(--ui-accent); font-weight: 700; }
.lb-log .lb-event { color: var(--ui-text-3); }
.lb-say { display: grid; gap: 8px; }
.lb-say input { height: 46px; padding: 0 14px; border: 1px solid var(--ui-rule); border-radius: 3px; background: var(--ui-control);
  color: var(--ui-text); font: inherit; font-size: 16px; }
.lb-say input:focus { outline: none; border-color: var(--ui-btn2-edge); }
.lb-foot { position: absolute; left: 64px; top: 928px; width: 1220px; display: flex; align-items: center; gap: 28px; }
.lb-foot .ui-btn3 { height: 46px; font-size: 16px; }
.lb-status { margin: 0; font-size: 16px; color: var(--ui-text-2); }
.lb-go { position: absolute; left: 1352px; top: 924px; width: 504px; height: 56px; justify-content: space-between; }
.lb-go[aria-pressed="true"] { filter: saturate(.4) brightness(.85); }

/* Local mod (features/multiplayer-options-credits-design): JOIN BY CODE
   (`ui/join-code.js`, Figma "Multiplayer / Join by code (dialog)"). */
.mp-joincode { position: absolute; right: 64px; top: 156px; height: 38px !important; font-size: 14px; }
.jc-modal { z-index: 40; }
.jc-dialog { width: 680px; text-align: left; }
.jc-dialog > p { margin-bottom: 20px; }
.jc-dialog .mp-field { margin-bottom: 16px; }
.jc-dialog .mp-field input { width: 100%; }
.jc-code input { height: 62px !important; font-size: 30px; font-weight: 700; letter-spacing: 4px; }
.jc-status { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 16px; box-sizing: border-box; margin-bottom: 20px;
  border: 1px solid var(--ui-rule); border-radius: 3px; background: rgba(var(--ui-shade), .55); font-size: 16px; line-height: 1.4; color: var(--ui-sub); }
.jc-status[hidden] { display: none; }
.jc-status::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ui-text-3); }
.jc-status[data-tone="ok"] { border-color: var(--ui-btn2-edge); color: var(--ui-accent); }
.jc-status[data-tone="ok"]::before { background: var(--ui-accent); }
.jc-status[data-tone="error"]::before { background: #d07a62; }
.jc-actions { display: flex; gap: 14px; align-items: center; }
.jc-actions .ui-btn3 { height: 56px; }
.jc-go { height: 56px; min-width: 220px; gap: 18px; }

/* Local mod (features/multiplayer-options-credits-design): CONNECTION LOST
   (`ui/reconnect.js`, Figma "In battle / Connection lost (reconnecting)"). */
.rc-modal { position: fixed; background: rgba(var(--ui-shade), .38); font-family: var(--ui-font); color: var(--ui-text); }
.rc-modal:focus { outline: none; }
.rc-dialog { width: 560px; text-align: left; }
.rc-kicker { color: #e0a074; }
.rc-dialog h2 { display: flex; align-items: baseline; gap: 14px; margin: 8px 0 16px; }
.rc-left { font-variant-numeric: tabular-nums; }
.rc-bar { height: 4px; margin: 0 0 18px; border-radius: 2px; background: var(--ui-rule); overflow: hidden; }
.rc-bar i { display: block; height: 100%; width: 100%; background: var(--ui-accent); transition: width .25s linear; }
.rc-dialog p { margin: 0 0 20px; }
.rc-leave { height: 42px !important; font-size: 15px; }

/* Local mod (features/multiplayer-options-credits-design): OPTIONS >
   ACCESSIBILITY (`ui/accessibility.js` writes --hm-text and --hm-size). */
.hm-feed, .hm-chatcol { zoom: var(--hm-text, 1); }
.hm-status, .hm-vehrow { scale: var(--hm-size, 1); transform-origin: left bottom; }
.hm-ammo, .hm-weps { scale: var(--hm-size, 1); transform-origin: right bottom; }
.hm-kit { scale: var(--hm-size, 1); transform-origin: center bottom; }
.hm-cap { scale: var(--hm-size, 1); transform-origin: center top; }
/* Sound direction markers (`ui/sound-markers.js`): a ring of arcs round the
   crosshair, over the view and under every menu. */
.sm-ring { position: fixed; left: 50%; top: 50%; width: 320px; height: 320px; margin: -160px 0 0 -160px; z-index: 2; pointer-events: none; overflow: visible; }
.sm-ring path { fill: none; stroke: #f4f1dc; stroke-width: 7; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(0, 0, 0, .8)); }
/* ACCESSIBILITY's team colour pairs, in the About panel. */
.op-palettes { display: grid; gap: 8px; margin-top: 4px; }
.op-palette { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 1px solid var(--ui-rule); border-radius: 3px;
  background: rgba(var(--ui-shade), .5); font: inherit; font-size: 15px; color: var(--ui-text) !important; cursor: pointer; text-align: left; }
.op-palette[aria-pressed="true"] { border-color: var(--ui-btn2-edge); background: var(--ui-btn2); color: var(--ui-accent) !important; font-weight: 700; }
.op-swatch { width: 26px; height: 14px; border-radius: 2px; }
.op-palette-sample { display: flex; gap: 18px; margin-top: 18px; padding: 12px 14px; border-radius: 3px; background: rgba(var(--ui-shade), .7); font-size: 15px; }

/* Local mod (features/multiplayer-options-credits-design): the singleplayer
   menu on a phone held sideways (`ui/phone-menu.js`, Figma "Phone
   (landscape) / Menu"), in the phone's own pixels. Shown in place of the
   fitted stage on a short landscape screen. */
.pm-root { display: none; }
@media (orientation: landscape) and (max-height: 520px) {
  /* (Not over a LAN room: its menu is the room's, on the stage.) */
  .m-screen:has(> .pm-root):not(.m-in-room) > .ui-stage { display: none; }
  .m-screen:not(.m-in-room) > .pm-root { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; gap: 12px;
    padding: 12px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left)); box-sizing: border-box;
    background: radial-gradient(ellipse at 30% 20%, rgba(28, 42, 32, .92), rgba(12, 18, 15, .96)); font-family: var(--ui-font); color: var(--ui-text); }
}
.pm-top { display: flex; align-items: center; gap: 22px; flex: none; }
.pm-logo { height: 34px; width: auto; }
.pm-nav { display: flex; gap: 18px; }
.pm-nav button, .pm-more, .pm-info { background: none; border: 0; padding: 6px 2px; font: inherit; font-size: 13px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: var(--ui-text) !important; cursor: pointer; }
.pm-nav button[aria-current] { color: var(--ui-accent) !important; }
.pm-nav button:disabled { opacity: .4; cursor: not-allowed; }
.pm-more { margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--ui-rule); border-radius: 3px;
  background: rgba(var(--ui-shade), .6); text-transform: none; letter-spacing: 0; }
.pm-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(150px, 28%) 1fr minmax(170px, 27%); gap: 14px; }
.pm-list { overflow-y: auto; display: flex; flex-direction: column; gap: 2px; min-height: 0; }
.pm-list button { flex: none; text-align: left; height: 38px; padding: 0 12px; background: none; border: 1px solid transparent; border-radius: 3px;
  font: inherit; font-size: 15px; color: var(--ui-sub) !important; cursor: pointer; }
.pm-list button[aria-selected="true"] { border-color: var(--ui-btn2-edge); background: var(--ui-btn2); color: var(--ui-text) !important; font-weight: 700; }
.pm-preview { position: relative; min-height: 0; border-radius: 3px; overflow: hidden; background: var(--ui-control); align-self: start; aspect-ratio: 16 / 10; max-height: 100%; }
.pm-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pm-preview h1 { position: absolute; left: 14px; bottom: 10px; margin: 0; font-size: 24px; font-weight: 700; text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.pm-side { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.pm-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 38px; flex: none; padding: 0 12px;
  border: 1px solid var(--ui-rule); border-radius: 3px; background: rgba(var(--ui-shade), .6); font: inherit; cursor: pointer; color: var(--ui-text) !important; }
.pm-card small { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ui-text-2); }
.pm-card b { font-size: 13px; color: var(--ui-accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-card:disabled { cursor: default; }
.pm-side .pm-start { height: 54px; font-size: 17px; flex: none; }
.pm-fan { flex: none; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 11px; color: var(--ui-text-2); }
.pm-fan b { padding: 1px 6px; border: 1px solid var(--ui-btn2-edge); border-radius: 2px; color: var(--ui-accent); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.pm-info { font-size: 11px; text-transform: none; letter-spacing: 0; text-decoration: underline; color: var(--ui-text-2) !important; padding: 2px; }
.pm-sheet { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; background: rgba(var(--ui-shade), .7); }
.pm-sheet[hidden] { display: none; }
.pm-sheet-box { width: min(440px, 92%); max-height: 92%; overflow-y: auto; padding: 16px 18px; box-sizing: border-box; border: 1px solid var(--ui-rule);
  border-radius: 4px; background: var(--ui-panel-solid); }
.pm-sheet-box h2 { margin: 0 0 10px; font-size: 18px; }
.pm-range { display: grid; gap: 4px; margin-bottom: 12px; font-size: 13px; }
.pm-range span { display: flex; justify-content: space-between; }
.pm-range output { color: var(--ui-accent); font-weight: 700; }
.pm-range .m-select { height: 34px; font-size: 14px; }
.pm-more-list { display: grid; gap: 6px; }
.pm-more-list .ui-btn3, .pm-sheet-actions .ui-btn2 { height: 40px; font-size: 14px; }
.pm-sheet-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.pm-range .m-range { width: 100%; max-width: 100%; margin: 0; box-sizing: border-box; }
.pm-range span { gap: 12px; }
.pm-range .m-range { height: 30px; }
.pm-range .m-range::-webkit-slider-thumb { width: 20px; height: 26px; margin-top: -12px; border-radius: 4px; }
.pm-range .m-range::-moz-range-thumb { width: 20px; height: 26px; border-radius: 4px; }

/* Local mod (features/multiplayer-options-credits-design, Figma "Phone
   (landscape) / Battle"): the new HUD with the touch controls up. The stage
   is a third of its size on a phone, and its corners are where the thumbs'
   buttons are: each panel moves into a gap between them and grows (stage
   px; the accessibility sizes still multiply). */
body:has(#mobile-controls:not([hidden])) .hm-screen { --hm-touch: 2; }
body:has(#mobile-controls:not([hidden])) .hm-status { top: 270px; bottom: auto; left: 40px; transform-origin: left top;
  scale: calc(var(--hm-size, 1) * var(--hm-touch)); }
body:has(#mobile-controls:not([hidden])) .hm-ammo { bottom: 30px; right: auto; left: 1400px; transform-origin: left bottom;
  scale: calc(var(--hm-size, 1) * 1.5); }
body:has(#mobile-controls:not([hidden])) .hm-vehrow,
body:has(#mobile-controls:not([hidden])) .hm-weps { display: none; }
body:has(#mobile-controls:not([hidden])) .hm-cap { scale: calc(var(--hm-size, 1) * 1.6); }
body:has(#mobile-controls:not([hidden])) .hm-feed { left: 50%; top: 240px; translate: -50% 0; align-items: center;
  zoom: calc(var(--hm-text, 1) * 1.8); }
body:has(#mobile-controls:not([hidden])) .hm-chatcol { left: 470px; top: 470px; max-width: 520px; zoom: calc(var(--hm-text, 1) * 1.8); }

/* Local mod (features/multiplayer-options-credits-design): the other screens
   on a phone held sideways, the owner's Figma frames "Phone (landscape) /
   Multiplayer, Options, Replay, Credits" (2026-11-18). A screen that opts in
   (`fitStage({ phone: true })`, `ui/phone-bar.js`) keeps its own markup; here
   its stage stops being a scaled 1920 x 1080 box and its parts are laid out
   in the phone's own pixels. The query is `PHONE_QUERY` (ui/stage.js). */
.pc-bar { display: none; }
.op-i, .op-inline-note, .cr-index { display: none; }
@media (orientation: landscape) and (max-height: 520px) {
  .ph-screen > .ui-stage { width: 100% !important; height: 100% !important; transform: none !important; }
  .ph-screen .m-logo, .ph-screen .m-nav, .ph-screen .m-divider { display: none; }
  .ph-screen > .pc-bar { position: absolute; left: 0; right: 0; top: 0; z-index: 4; height: 46px; box-sizing: border-box;
    display: flex; align-items: center; gap: 20px; padding: 8px max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
  .pc-logo { height: 32px; width: auto; }
  .pc-nav { display: flex; gap: 18px; }
  .pc-nav button, .pc-more, .pc-back { background: none; border: 0; padding: 6px 2px; font: inherit; font-size: 13px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase; color: var(--ui-text) !important; cursor: pointer; }
  .pc-nav button[aria-current] { color: var(--ui-accent) !important; }
  .pc-nav button:disabled { opacity: .4; cursor: not-allowed; }
  .pc-more, .pc-back { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--ui-rule); border-radius: 3px;
    background: rgba(var(--ui-shade), .6); text-transform: none; letter-spacing: 0; font-weight: 500; }
  .pc-more { margin-left: auto; }
  .pc-title { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
  .pc-sheet { z-index: 30; }
  /* The fan line, one line along the foot. */
  .ph-screen .ui-fan { left: 16px; right: 16px; top: auto; bottom: 6px; width: auto; padding: 0; border: 0; gap: 10px; justify-content: center; }
  .ph-screen .ui-fan-badge { padding: 1px 6px; font-size: 9px; }
  .ph-screen .ui-fan p { flex: 0 1 auto; min-width: 0; font-size: 11px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ph-screen .ui-fan-btn { height: 22px; padding: 0 8px; font-size: 11px; gap: 6px; }
  .ph-screen .ui-fan-btn[data-act="github"] { display: none; }
  .ph-screen .ui-fan-btn svg { width: 12px; height: 12px; }
  /* Sub-tabs (MULTIPLAYER's and OPTIONS'). */
  .ph-screen .op-tabs { left: 16px; top: 50px; gap: 20px; }
  .ph-screen .op-tabs button { height: 30px; font-size: 11px; letter-spacing: 1px; }
  .ph-screen .op-tabs button[aria-current]::after { height: 2px; }

  /* --- MULTIPLAYER (Figma "Phone (landscape) / Multiplayer / LAN, Create game") */
  .mp-screen .mp-joincode { top: 48px; right: 16px; height: 30px !important; font-size: 12px; padding: 0 12px; }
  .mp-screen .mp-body { left: 16px; right: 16px; top: 86px; bottom: 34px; width: auto; height: auto; }
  .mp-screen .mp-banner { width: 100%; flex-wrap: wrap; gap: 8px 12px; padding: 10px 12px; }
  .mp-screen .mp-banner span { flex: 1 1 60%; font-size: 12px; line-height: 17px; }
  .mp-screen .mp-banner .ui-btn3 { height: 30px; font-size: 12px; }
  .mp-screen .mp-left { left: 0; top: 0; bottom: 0; width: calc(64% - 8px); gap: 8px; }
  .mp-screen .mp-rooms-head { order: 1; }
  .mp-screen .mp-rooms-head h2 { font-size: 14px; }
  .mp-screen .mp-rooms-head small { font-size: 10px; }
  .mp-screen .mp-rooms { order: 2; flex: 1; min-height: 0; max-height: none; }
  .mp-screen .mp-room { grid-template-columns: 1.3fr 1fr 1fr 52px; gap: 8px; height: 36px; padding: 0 10px; font-size: 12px; }
  .mp-screen .mp-room span:first-child { font-size: 14px; }
  .mp-screen .mp-room-head { height: 20px; font-size: 9px; }
  .mp-screen .mp-room-head span:first-child { font-size: 9px; }
  .mp-screen .mp-empty { padding: 8px 0; font-size: 12px; line-height: 17px; }
  .mp-screen .mp-card { order: 3; padding: 8px 10px; }
  .mp-screen .mp-card p { display: none; }
  .mp-screen .mp-card .mp-kicker { font-size: 9px; margin-bottom: 4px; }
  .mp-screen .mp-fields { gap: 8px; }
  .mp-screen .mp-field { gap: 3px; }
  .mp-screen .mp-field small { font-size: 9px; }
  .mp-screen .mp-field input { height: 32px; padding: 0 10px; font-size: 13px; }
  .mp-screen .mp-fields .mp-field:not(.mp-grow) input { width: 120px; }
  .mp-screen .mp-fields .ui-btn2 { height: 32px; padding: 0 12px; font-size: 12px; }
  .mp-screen .mp-actions { order: 4; }
  .mp-screen .mp-actions .ui-primary { width: 100%; min-width: 0; height: 44px; font-size: 15px; }
  .mp-screen .mp-side { left: auto; right: 0; top: 0; bottom: 0; width: calc(36% - 8px); height: auto; padding: 10px 12px; gap: 8px; }
  .mp-screen .mp-side h2 { font-size: 14px; line-height: 18px; }
  .mp-screen .mp-status { font-size: 9px; gap: 6px; }
  .mp-screen .mp-steps, .mp-screen .mp-side .mp-note { display: none; }
  .mp-screen .mp-share { padding: 6px 8px; gap: 8px; }
  .mp-screen .mp-share span { font-size: 12px; }
  .mp-screen .mp-share .ui-btn3 { height: 26px; padding: 0 8px; font-size: 11px; }
  .mp-screen .mp-side-go { height: 44px; font-size: 14px; }
  .mp-screen .mp-maps { width: 28%; height: auto; bottom: 0; }
  .mp-screen .mp-map { width: 100%; height: 34px; padding: 0 10px; font-size: 14px; }
  .mp-screen .mp-map small { display: none; }
  .mp-screen .mp-mid { left: calc(28% + 12px); width: calc(44% - 24px); gap: 6px; }
  .mp-screen .mp-preview { height: 128px; }
  .mp-screen .mp-ident { left: 12px; right: 12px; bottom: 8px; }
  .mp-screen .mp-ident .ui-kicker { font-size: 9px; }
  .mp-screen .mp-ident h1 { margin-top: 2px; font-size: 20px; line-height: 24px; }
  .mp-screen .mp-ident p { display: none; }
  .mp-screen .mp-mid .mp-kicker { font-size: 9px; }
  .mp-screen .mp-seg button { height: 30px; font-size: 11px; padding: 0 2px; }
  .mp-screen .mp-desc { margin: 0; font-size: 11px; line-height: 15px; }
  .mp-screen .mp-settings { width: 28%; }
  .mp-screen .mp-settings .mp-field input { width: 100%; }

  /* --- JOIN BY CODE (Figma "... / Join by code (keyboard up)"): a sheet along
     the top, since the phone's keyboard takes the lower half. */
  .jc-modal { align-items: flex-start; padding-top: 8px; }
  .jc-dialog { width: min(560px, 94vw); padding: 12px 16px; display: grid; grid-template-columns: 1fr 180px; column-gap: 10px; row-gap: 8px; }
  .jc-dialog > .ui-kicker, .jc-status, .jc-actions { grid-column: 1 / -1; }
  .jc-dialog > h2, .jc-dialog > p { display: none; }
  .jc-dialog .mp-field { margin: 0; }
  .jc-code input { height: 44px !important; font-size: 22px; letter-spacing: 3px; }
  .jc-name input { height: 44px; }
  .jc-status { min-height: 32px; margin: 0; padding: 6px 10px; font-size: 12px; }
  .jc-actions .ui-btn3, .jc-go { height: 40px; }
  .jc-go { min-width: 160px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  /* --- OPTIONS (Figma "Phone (landscape) / Options / Video, Touch controls"):
     two columns of compact rows; the About panel becomes each row's i. */
  .op-screen .op-panel { left: 16px; right: 16px; top: 84px; bottom: 64px; width: auto; height: auto; padding: 0 2px 0 0; gap: 16px;
    background: none; border: 0; box-shadow: none; }
  .op-screen .op-col { width: calc(50% - 8px); }
  .op-screen .op-col h3 { margin: 0 0 4px; font-size: 10px; }
  .op-screen .op-col h3:not(:first-child) { margin-top: 10px; }
  .op-screen .op-row { min-height: 34px; padding: 3px 8px 3px 12px; gap: 10px; margin-bottom: 4px; border-radius: 3px; background: rgba(var(--ui-shade), .55); }
  .op-screen .op-row.op-open { background: #212c22; box-shadow: inset 0 0 0 1px var(--ui-btn2-edge); margin-bottom: 0; }
  .op-screen .op-row label { font-size: 13px; }
  .op-screen .op-row .op-text { flex: 1; min-width: 0; }
  .op-screen .op-row .op-text small { margin-top: 1px; font-size: 10px; }
  .op-screen .op-row .m-select { height: 28px; font-size: 12px; padding-top: 0; padding-bottom: 0; }
  .op-screen .op-switch { width: 40px; height: 22px; }
  .op-screen .op-switch i { width: 16px; height: 16px; top: 2px; left: 3px; }
  .op-screen .op-switch[aria-checked="true"] i { left: 20px; }
  .op-screen .op-slider { display: block; padding: 5px 12px 6px; }
  .op-screen .op-top output { font-size: 13px; }
  .op-screen .op-slider .m-range { margin-top: 2px; height: 22px; }
  .op-screen .op-input input { width: 170px; height: 30px; font-size: 13px; }
  .op-screen .op-chip { font-size: 9px; padding: 1px 5px; }
  .op-screen .op-about { display: none; }
  .op-screen .op-foot { left: 16px; top: auto; bottom: 32px; gap: 14px; }
  .op-screen .op-foot .ui-btn3 { height: 30px; font-size: 12px; padding: 0 12px; }
  .op-screen .op-foot span { font-size: 11px; }
  .op-screen .op-i { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 18px; height: 18px; padding: 0;
    margin-left: auto; border: 1px solid var(--ui-rule); border-radius: 50%; background: none; font: 700 10px var(--ui-font); color: var(--ui-text-2) !important; cursor: pointer; }
  .op-screen .op-top .op-i { margin: 0 8px 0 auto; }
  .op-screen .op-inline-note:not([hidden]) { display: block; margin: 0 0 4px; padding: 5px 12px 7px; border-radius: 0 0 3px 3px;
    background: #212c22; font-size: 11px; line-height: 15px; color: var(--ui-text-2); }
  /* The CONTROLS keyboard table is the touch settings on a phone. */
  .op-screen .op-panel[data-sec="touch"] { padding: 0; overflow: auto; }

  /* --- REPLAY (Figma "Phone (landscape) / Replay"): the feed over the body. */
  .rpl-screen .rpl-area { left: 16px; right: 16px; top: 52px; bottom: 32px; width: auto; height: auto; }

  /* --- CREDITS (Figma "Phone (landscape) / Credits"): an index beside one
     scrolling panel; the long introduction gives way to its contact button. */
  .cr-screen .cr-index { position: absolute; left: 16px; top: 56px; width: 196px; display: flex; flex-direction: column; gap: 2px; z-index: 1; }
  .cr-index button { height: 34px; padding: 0 12px; text-align: left; background: none; border: 1px solid transparent; border-radius: 3px;
    font: inherit; font-size: 14px; color: var(--ui-sub) !important; cursor: pointer; }
  .cr-index button[aria-current] { background: #212c22; border-color: var(--ui-btn2-edge); color: var(--ui-text) !important; font-weight: 700; }
  .cr-screen .cr-columns { left: 228px; right: 16px; top: 56px; bottom: 34px; width: auto; display: block; overflow-y: auto; padding: 12px 16px;
    box-sizing: border-box; background: var(--ui-panel); border: 1px solid var(--ui-rule); border-radius: 3px; }
  .cr-screen .cr-columns > div { display: block; }
  .cr-screen .cr-section { margin-bottom: 14px; }
  .cr-screen .cr-section h3 { margin: 0 0 8px; padding-bottom: 6px; font-size: 13px; }
  .cr-screen .cr-entry { margin-bottom: 10px; }
  .cr-screen .cr-entry small { font-size: 10px; }
  .cr-screen .cr-entry b { margin-top: 2px; font-size: 15px; line-height: 19px; }
  .cr-screen .cr-entry span { margin-top: 2px; font-size: 12px; line-height: 16px; }
  .cr-screen .cr-intro { left: 16px; top: auto; bottom: 36px; width: 196px; }
  .cr-screen .cr-intro > .ui-kicker, .cr-screen .cr-intro > h1, .cr-screen .cr-intro > p,
  .cr-screen .cr-disclaimer > .ui-kicker, .cr-screen .cr-disclaimer > p, .cr-screen .cr-actions [data-act="github"] { display: none; }
  .cr-screen .cr-disclaimer { padding: 0; background: none; border: 0; box-shadow: none; }
  .cr-screen .cr-actions { margin: 0; }
  .cr-screen .cr-actions .ui-btn3 { height: 30px; padding: 0 12px; font-size: 12px; }

  /* --- THE LOBBY (Figma "Phone (landscape) / Multiplayer / Lobby"), over
     the battle page. */
  .lb-screen .lb-head { left: 16px; top: 50px; width: calc(100% - 32px); height: 32px; gap: 10px; }
  .lb-screen .lb-title { font-size: 17px; margin-right: 2px; }
  .lb-screen .lb-chip { height: 22px; line-height: 20px; padding: 0 8px; gap: 6px; }
  .lb-screen .lb-chip small { font-size: 9px; }
  .lb-screen .lb-chip b { font-size: 11px; }
  .lb-screen .lb-invite { height: 30px !important; font-size: 12px; padding: 0 12px; }
  .lb-screen .lb-side { top: 90px; width: 250px; }
  .lb-screen .lb-side[data-team="2"] { left: 16px; }
  .lb-screen .lb-side[data-team="1"] { left: 278px; }
  .lb-screen .lb-banner { height: 50px; padding: 0 12px; }
  .lb-screen .lb-banner h2 { font-size: 16px; }
  .lb-screen .lb-banner .ui-kicker { font-size: 9px; }
  .lb-screen .lb-count { font-size: 12px; }
  .lb-screen .lb-list { margin-top: 6px; gap: 6px; max-height: 118px; overflow-y: auto; }
  .lb-screen .lb-row { height: 34px; padding: 0 10px; gap: 8px; font-size: 13px; }
  .lb-screen .lb-ready { min-width: 0; font-size: 9px; }
  .lb-screen .lb-empty { height: 34px; line-height: 32px; margin-top: 6px; font-size: 12px; }
  .lb-screen .lb-switch { left: 16px; top: auto; bottom: 74px; height: 32px; font-size: 12px; padding: 0 12px; }
  .lb-screen .lb-card { left: auto; right: 16px; top: 90px; bottom: 96px; width: 284px; height: auto; }
  .lb-screen .lb-art { height: 54px; }
  .lb-screen .lb-ident { padding: 6px 12px; }
  .lb-screen .lb-ident h2 { font-size: 15px; }
  .lb-screen .lb-ident p { margin-top: 2px; font-size: 11px; }
  .lb-screen .lb-chat { padding: 6px 12px 8px; }
  .lb-screen .lb-chat > .ui-kicker { font-size: 9px; }
  .lb-screen .lb-log { margin: 4px 0 6px; font-size: 12px; line-height: 1.35; }
  .lb-screen .lb-say { gap: 0; }
  .lb-screen .lb-say > .ui-kicker { display: none; }
  .lb-screen .lb-say input { height: 30px; font-size: 13px; padding: 0 10px; }
  .lb-screen .lb-foot { left: 16px; top: auto; bottom: 34px; width: calc(100% - 332px); gap: 12px; }
  .lb-screen .lb-foot .ui-btn3 { height: 32px; font-size: 12px; padding: 0 12px; }
  .lb-screen .lb-status { font-size: 11px; line-height: 15px; }
  .lb-screen .lb-go { left: auto; right: 16px; top: auto; bottom: 34px; width: 284px; height: 48px; font-size: 16px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  /* With no room server the side's note is all it has to say: kept. */
  .mp-screen .mp-side:not(:has(.mp-steps)) .mp-note { display: block; font-size: 11px; line-height: 15px; }
}

/* Local mod (site-config.js): a site with no room server hides every way in
   to MULTIPLAYER, each screen's nav button and the phone's MORE row. */
.mp-off [data-tab="multiplay"], .mp-off [data-more="multiplay"] { display: none !important; }
