/*
 * Blink Strike interface theme (v0.60). Loaded last on every page, after style.css, multiplayer.css and
 * game-ui.css, and restyles the same elements with one kit:
 *
 *   type     Barlow Condensed (titles, buttons, labels, numbers) and Barlow (sentences), SIL Open Font License,
 *            self-hosted in assets/fonts/
 *   colour   near-black glass panels with a 1 px light edge over the live 3D scene; one accent, the brand orange
 *            of the title, for the main action and the selected choice; cyan only for Blink, green only for
 *            health, gold only for credits and XP, red only for damage
 *   shape    8 px corners on panels and buttons, 6 px on small controls, circles for the thumb buttons; no bevels,
 *            no outlines, no hard drop shadows
 *   icons    Tabler Icons (MIT) through src/ui-icons.js, one stroke weight
 *
 * Layout rules (the grids, the --s scale, the thumb-button positions) stay in game-ui.css and style.css; this
 * file only changes how things look, plus the home screen's composition (section 3). Text never goes below
 * 11 px on desktop (tests/ux-browser.cjs) or 10 px on phones (tests/install-browser.cjs).
 */
@font-face { font-family: 'Barlow'; src: url('assets/fonts/Barlow-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('assets/fonts/Barlow-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('assets/fonts/Barlow-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('assets/fonts/Barlow-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('assets/fonts/BarlowCondensed-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('assets/fonts/BarlowCondensed-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('assets/fonts/BarlowCondensed-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('assets/fonts/BarlowCondensed-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }

/* ---------- 1. Tokens: the older stylesheets read these names, so one block recolours every screen ---------- */
:root {
  --display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Barlow', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ui-font: var(--display);
  --ink: #0c1118; --paper: #f4f6f8; --muted: #a9b3bf;
  --accent: #ff7a1a; --accent-hi: #ff954b; --accent-ink: #1b0e03;
  --action: var(--accent); --action-ink: var(--accent-ink); --orange: var(--accent);
  --cyan: #3fe3cf; --green: #4ade80; --gold: #ffc83d; --red: #ff5a5a;
  --glass: rgba(12, 17, 24, .74); --glass-2: rgba(12, 17, 24, .58); --glass-hi: rgba(255, 255, 255, .07); --glass-hi2: rgba(255, 255, 255, .12);
  --line: rgba(255, 255, 255, .14); --line-2: rgba(255, 255, 255, .3);
  --plate: var(--glass); --plate-soft: var(--glass-2);
  --r: 8px; --r-s: 6px; --shadow: 0 12px 32px rgba(0, 0, 0, .38);
  --xhair: #f4f6f8;
}
html, body { font-family: var(--body); font-weight: 500; color: var(--paper); }
button, input, select { font-family: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lobby svg, .panel svg, .icon-button svg, .rail-button svg, .friends-button svg, .tile-icon { stroke-width: 2; }

/* ---------- 2. The kit: buttons, cards, fields ---------- */
.primary, .secondary, .start-button, .friends-button, .icon-button, .rail-button, .segmented button, .value-button,
.settings-tabs button, .settings-back, .locker-card, .locker-finish, .locker-ad, .text-button.boxed, .tile input, .auth-tabs button,
.tray-menu button, .scope-menu button, .quick-chat-menu button, .touch-select-list button, .train-card button, .layout-bar button, .roster-empty {
  border-radius: var(--r); transition: background-color .12s, border-color .12s, color .12s, transform .08s, box-shadow .12s;
}
.primary:active, .secondary:active, .start-button:active, .friends-button:active, .icon-button:active, .rail-button:active, .segmented button:active,
.settings-tabs button:active, .locker-card:active, .locker-finish:active { transform: scale(.985); }

/* The one orange action on every screen. */
.primary, .start-button, #beginMatch, .locker-main, .settings-back, .lobby .primary, .overlay .panel .primary, .summary-actions .start-button {
  background: var(--accent); color: var(--accent-ink); border: 1px solid transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
  font-family: var(--display); font-weight: 800; letter-spacing: .04em; text-shadow: none; text-transform: uppercase;
}
.primary:hover, .start-button:hover, #beginMatch:hover, .locker-main:hover, .settings-back:hover, .lobby .primary:hover, .overlay .panel .primary:hover { background: var(--accent-hi); color: var(--accent-ink); filter: none; }
.primary:disabled, .start-button:disabled, .lobby .primary:disabled, #beginMatch:disabled { background: rgba(255, 255, 255, .12); color: var(--muted); box-shadow: none; border-color: var(--line); filter: none; }
.primary > span { color: var(--accent-ink); opacity: .8; }
.start-button b { font: 800 calc(26px * var(--s, 1)) / 1 var(--display); letter-spacing: .03em; color: var(--accent-ink); }
.start-button small { font: 600 max(11px, calc(11.5px * var(--s, 1))) / 1.1 var(--display); letter-spacing: .08em; color: var(--accent-ink); opacity: .8; text-shadow: none; }
.start-button { position: relative; padding-right: calc(44px * var(--s, 1)); }
.start-button::after { content: ""; position: absolute; right: calc(18px * var(--s, 1)); top: 50%; width: calc(13px * var(--s, 1)); height: calc(16px * var(--s, 1)); transform: translateY(-50%); background: var(--accent-ink); clip-path: polygon(0 0, 100% 50%, 0 100%); opacity: .9; }
.start-button:disabled::after { background: var(--muted); }

/* Quiet choices: glass with a light edge. */
.secondary, .friends-button, .icon-button, .rail-button, .segmented button, .value-button, .settings-tabs button, .locker-card, .locker-finish,
.lobby .secondary, .overlay .panel .secondary, .text-button.boxed, .tray-menu button, .scope-menu button, .quick-chat-menu button, .train-card button, .roster-empty, .auth-tabs button {
  background: var(--glass); color: var(--paper); border: 1px solid var(--line); font-family: var(--display); font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.secondary:hover, .friends-button:hover, .icon-button:hover, .rail-button:hover, .locker-card:hover, .locker-finish:hover, .lobby .secondary:hover, .overlay .panel .secondary:hover,
.tray-menu button:hover, .scope-menu button:hover, .quick-chat-menu button:hover, .train-card button:hover, button.roster-empty:hover {
  background: var(--glass-hi2); border-color: var(--line-2); color: var(--paper);
}
.icon-button:hover, .rail-button:hover { color: var(--paper); }
.icon-button svg, .rail-button svg, .friends-button svg, .secondary svg { stroke: currentColor; color: inherit; }
.lobby .secondary:disabled, .overlay .panel .secondary:disabled { background: rgba(255, 255, 255, .04); color: var(--muted); border-color: var(--line); }
.text-button { color: var(--muted); font-family: var(--display); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.text-button:hover { color: var(--paper); }
.overlay .panel .text-button:hover { color: var(--paper); }

/* Selected choice (settings rows, tabs, locker chips): the accent as an edge, not a fill, so the orange PLAY stays the loudest thing. */
.segmented button[aria-checked=true], .value-button[aria-pressed=true], .auth-tabs button[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.settings-tabs button[aria-selected=true] { background: var(--glass-hi2); border-color: var(--accent); color: var(--paper); box-shadow: inset 3px 0 0 var(--accent); }
.locker-card.selected, .locker-finish.selected, .outfit.chosen, .tray-menu button[aria-selected=true] { background: var(--glass-hi2); border-color: var(--accent); }
.icon-button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.icon-button.on span { color: var(--accent-ink); }

/* Cards and plates */
.player-card, .name-card, .mode-card, .tile, .invite-card, .code-block, .locker-ad, .bar-stat, .lobby .roster-row, .invite-bar, .rank-card, .summary-stat, .summary-next, .mission-row, .history-row, .friend-row, .summary-goal, .career-totals div {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); color: var(--paper); box-shadow: none;
}
.player-card:hover { border-color: var(--line-2); }
.player-card .avatar, .slot-face, .account-face { background: rgba(255, 255, 255, .08); border: 1px solid var(--line); border-radius: var(--r-s); color: var(--paper); }
.roster-row.me .slot-face, .friend-row.online .slot-face { color: var(--accent); }
.card-text b { font: 800 calc(15px * var(--s, 1)) / 1 var(--display); letter-spacing: .04em; }
.card-text small, .mode-head small, .bar-note, .friends-button span, .tile p, .invite-card p, .mode-card p { color: var(--muted); }
.card-xp { background: rgba(255, 255, 255, .12); border: 0; border-radius: 3px; overflow: hidden; height: calc(5px * var(--s, 1)); }
.card-xp i { background: var(--gold); }
.lobby .roster-row.me { border-color: var(--accent); }
.lobby .roster-row.team-0 { border-top: 2px solid #4fa8ff; } .lobby .roster-row.team-1 { border-top: 2px solid #ff5a4d; }
.roster-empty { border-style: dashed; }

/* Fields */
.lobby select, .lobby .touch-select-button, .lobby .tile input, .lobby .name-card input, .friend-search input, #accountForm input, .room-panel input {
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); border-radius: var(--r-s); color: var(--paper); font-family: var(--display); font-weight: 700; letter-spacing: .03em;
}
.lobby .name-card input { background: none; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; }
.lobby .name-card input:focus { border-bottom-color: var(--accent); }
.lobby select:focus, .lobby .tile input:focus, .friend-search input:focus, #accountForm input:focus { border-color: var(--accent); outline: none; }
input[type=range] { accent-color: var(--accent); }
kbd { background: rgba(255, 255, 255, .08); border: 1px solid var(--line-2); border-radius: 4px; color: var(--paper); box-shadow: none; font: 700 11px var(--display); letter-spacing: .08em; }
.tag, .eyebrow, .mode-head .tag, .invite-card .tag, .code-block small, .locker-info .tag, .overlay .panel .eyebrow { color: var(--muted); font-family: var(--display); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.label, .lobby label { color: var(--muted); font-family: var(--display); letter-spacing: .08em; }

/* ---------- 3. Lobby chrome and the home screen ---------- */
.lobby-brand { font: 800 calc(26px * var(--s, 1)) / 1 var(--display); letter-spacing: .02em; transform: none; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.lobby-brand em { color: var(--accent); font-style: normal; }
.lobby-title h2, .settings-head h2, .practice-lobby .lobby-brand { font: 800 calc(24px * var(--s, 1)) / 1 var(--display); letter-spacing: .03em; font-style: normal; }
.icon-button { background: var(--glass); gap: calc(3px * var(--s, 1)); }
.icon-button span { color: var(--muted); font-weight: 700; letter-spacing: .06em; }
.icon-button:hover span { color: var(--paper); }

/* The home screen (v0.60): the title top left, settings top right, a rail of pages on the left under the player card,
   the character in the middle, and the ways to play stacked bottom right with PLAY NOW on top: the shape players know. */
.lobby.home { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "top top top" "left main right"; row-gap: calc(12px * var(--s)); }
.home .lobby-top { grid-area: top; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.home .brand-block { display: grid; gap: calc(5px * var(--s)); justify-items: start; }
.home .brand-block .lobby-brand { margin: 0; }
.home .home-pitch { margin: 0; max-width: 48ch; font: 500 max(12px, calc(12.5px * var(--s))) / 1.35 var(--body); color: #e6ebf1; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
.home .home-pitch .pitch-short { display: none; }
.home .lobby-icons { align-self: start; }
.home .lobby-left { grid-area: left; align-self: start; width: calc(196px * var(--s)); gap: calc(8px * var(--s)); }
.home .player-card { width: 100%; min-width: 0; }
.rail { display: grid; gap: calc(6px * var(--s)); }
.rail-button { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: calc(10px * var(--s)); min-height: calc(42px * var(--s)); padding: 0 calc(12px * var(--s)); text-decoration: none; cursor: pointer; text-align: left; }
.rail-button svg { width: calc(20px * var(--s)); height: calc(20px * var(--s)); flex: none; }
.rail-button span { font: 700 calc(13px * var(--s)) / 1 var(--display); letter-spacing: .08em; color: var(--paper); }
.rail-button[hidden] { display: none; }
.home .lobby-right { grid-area: right; align-self: end; justify-self: end; display: grid; gap: calc(8px * var(--s)); width: calc(300px * var(--s)); padding-bottom: calc(4px * var(--s)); }
.home .start-button { min-height: calc(66px * var(--s)); padding: calc(8px * var(--s)) calc(48px * var(--s)) calc(8px * var(--s)) calc(18px * var(--s)); }
.home .start-button b { font-size: calc(30px * var(--s)); }
.lobby .home-choice { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: calc(10px * var(--s)); row-gap: 1px; align-items: center; min-height: calc(46px * var(--s)); padding: calc(6px * var(--s)) calc(14px * var(--s)); }
.lobby .home-choice svg { grid-row: 1 / 3; width: calc(20px * var(--s)); height: calc(20px * var(--s)); color: var(--paper); }
.lobby .home-choice b { font: 700 calc(15px * var(--s)) / 1.1 var(--display); letter-spacing: .06em; color: var(--paper); }
.lobby .home-choice span { font: 600 max(11px, calc(11px * var(--s))) / 1.1 var(--display); letter-spacing: .06em; color: var(--muted); }
.lobby .home-choice span.online { color: var(--cyan); }
.friends-button b { font-family: var(--display); font-weight: 700; letter-spacing: .06em; }
.friends-button svg { color: var(--paper); }
.friends-button:hover { border-color: var(--line-2); background: var(--glass-hi2); }
.lobby .home-build { font: 600 11px var(--display); letter-spacing: .08em; color: rgba(255, 255, 255, .45); }

/* The practice screen and the room lobby keep their layouts; the cards take the kit. */
.mode-head .tag { color: var(--muted); }
.mode-head b { font: 800 calc(18px * var(--s)) / 1.05 var(--display); letter-spacing: .03em; }
.bar-title { color: var(--paper); font-weight: 800; letter-spacing: .1em; }
.bar-stat b { color: var(--gold); font-family: var(--display); }
.lobby-bottom { background: transparent; }
.tile { border-top: 1px solid var(--line); }
.tile-icon { color: var(--accent); }
.tile h3 { font: 800 calc(16px * var(--s)) / 1.1 var(--display); letter-spacing: .05em; }
.invite-card { border-top: 1px solid var(--line); box-shadow: var(--shadow); }
.invite-card h3 { font-style: normal; letter-spacing: .03em; }
#roomIntro { color: #dfe5ec; font-family: var(--body); font-weight: 500; }
#connection { color: var(--muted); font-family: var(--display); letter-spacing: .06em; }
#roomError { background: rgba(255, 90, 90, .14); border: 1px solid rgba(255, 90, 90, .4); border-left: 3px solid var(--red); border-radius: var(--r-s); color: #ffd7d7; font-family: var(--body); }
#hostHint, #careerReward, #matchResult { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-s); font-family: var(--body); font-weight: 500; }
#matchResult { border-left: 3px solid var(--accent); font-family: var(--display); font-weight: 800; }
.code-block b { font: 800 calc(20px * var(--s)) / 1 var(--display); letter-spacing: .18em; color: var(--gold); }
.slot-tags { color: var(--muted); }
.lobby .roster-row span:first-of-type { font-family: var(--display); }

/* ---------- 4. Settings: a dark page with the sections on the left ---------- */
#settings.overlay { background: var(--ink); }
#settings .settings-panel { background: var(--ink); border: 0; border-radius: 0; box-shadow: none; grid-template-areas: "head head" "tabs pages"; grid-template-columns: calc(168px * var(--s)) minmax(0, 1fr); column-gap: calc(18px * var(--s)); animation: none; }
#settings .settings-head { grid-area: head; }
#settings .settings-pages { grid-area: pages; }
#settings .settings-tabs { grid-area: tabs; }
.settings-tabs button { text-align: left; border-right: 0; font-weight: 700; color: var(--muted); }
.settings-tabs button:hover { color: var(--paper); background: var(--glass-hi); }
#settings .setting { background: var(--glass-hi); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: calc(5px * var(--s)); font-family: var(--body); font-weight: 600; font-size: max(12px, calc(13px * var(--s))); }
#settings .setting-note { color: var(--muted); font-family: var(--body); font-weight: 500; }
#settings #gyroStatus { color: var(--cyan); }
.range-value { color: var(--paper); font-family: var(--display); }
.segmented button { color: var(--muted); }
.segmented button + button { border-left: 1px solid var(--line); }
.segmented button:first-child { border-radius: var(--r-s) 0 0 var(--r-s); }
.segmented button:last-child { border-radius: 0 var(--r-s) var(--r-s) 0; }
.segmented button:not(:first-child):not(:last-child) { border-radius: 0; }
.segmented button[aria-checked=true] + button { border-left-color: var(--line); }
.value-button { border-color: var(--line-2); }
.settings-back { gap: calc(6px * var(--s)); }

/* ---------- 5. Overlays and panels ---------- */
.overlay { background: rgba(5, 8, 13, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.overlay .panel, .death-card, .match-tip, .touch-select-list, .scope-menu, .tray-menu, .quick-chat-menu, .layout-bar, .train-card, .invite-toast, .recovery-notice {
  background: var(--glass); border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); color: var(--paper);
}
.overlay .panel { animation: panelIn .18s ease-out; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .overlay .panel { animation: none; } }
.overlay .panel h2, .progress-heading h2, .summary-panel h2 { font: 800 30px / 1 var(--display); letter-spacing: .02em; font-style: normal; text-shadow: none; text-transform: uppercase; }
.overlay .panel .eyebrow { margin-bottom: 10px; }
.panel p, .results-panel > small, .resultstats small, .setting-note, .panel li, .install-steps li, .tips, .controls, .summary-wait, .summary-note, .death-hint, .together-hint, .locker-fair, .locker-status, .friend-empty, .result-save { color: #d6dde5; font-family: var(--body); font-weight: 500; }
.controls li, .tips { color: #d6dde5; }
.resultstats b, .reward b, .summary-stat b, .summary-earn b, .career-totals b, .rank-card b { font-family: var(--display); font-weight: 800; font-style: normal; color: var(--gold); }
.resultstats small, .summary-stat small { font-family: var(--display); letter-spacing: .1em; color: var(--muted); }
.reward { background: var(--glass-hi); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--r-s); }
#resultTitle:not(:empty), #resultNext, .summary-earn.credits b { color: var(--paper); }
#resultNext { color: var(--muted); }
.death-card strong { font: 800 26px / 1.1 var(--display); color: var(--red); letter-spacing: .03em; }
.death-card small { color: var(--muted); font-family: var(--display); letter-spacing: .1em; }
.death-card em { font-family: var(--display); font-style: normal; font-weight: 700; letter-spacing: .04em; }
.death-card { border-top: 1px solid var(--line); }
.match-tip { border-left: 3px solid var(--accent); font-family: var(--body); font-weight: 500; }
.train-card { border-left: 3px solid var(--accent); }
.train-card small { color: var(--muted); }
.train-card b { font-style: normal; }
.summary-goals h3, .friends-panel h3, .career-panel h3 { color: var(--muted); letter-spacing: .12em; }
.summary-goal-top b, .mission-row b, .history-row b { color: var(--gold); }
.summary-goal.done .summary-goal-top b, .mission-row.done b { color: var(--cyan); }
.summary-bar, .xp-track { background: rgba(255, 255, 255, .12); border-radius: 3px; overflow: hidden; }
.summary-bar > i { background: var(--gold); }
.summary-actions { background: var(--glass); border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; }
.outfit { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-s); }
.install-steps li::before { background: var(--accent); color: var(--accent-ink); border-radius: 50%; font-family: var(--display); }
.install-steps svg { stroke: var(--accent); }
#installStatus, #friendsStatus { color: var(--cyan); font-family: var(--body); }
#careerStatus { color: #ffd7d7; }
.touch-select-list b { color: var(--muted); font: 700 11px var(--display); letter-spacing: .12em; }
.touch-select-list button { font-family: var(--display); font-weight: 700; letter-spacing: .04em; border-radius: 0; }
.touch-select-list button[aria-selected=true] { color: var(--accent); background: var(--glass-hi2); }
.quick-chat-menu, .tray-menu, .scope-menu { border-left: 1px solid var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tray-menu i { color: var(--muted); }
.tray-menu span { color: var(--gold); }
.layout-bar b, .layout-bar .lb-hint { font-family: var(--display); }
.howto-legal { color: var(--accent); }
.invite-toast b { font-family: var(--display); }

/* ---------- 6. Match HUD ---------- */
.hud-plate, .matchclock, #hitdamage:not(:empty), #notice:not(:empty), #abilityinfo:not(:empty), .compass, #feed:not(:empty), .minimap, .pause-button, .spectate-next, .chat-hint {
  background: var(--glass-2); border: 1px solid var(--line); border-radius: var(--r); box-shadow: none; color: var(--paper);
}
#hud, #multiHud { text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.hud-plate small, .matchclock small, .location small, .vitals small, .ammo small, .dash small, .score small { color: var(--muted); font-family: var(--display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.vitals strong, .ammo strong, .matchclock strong, .score b { font-family: var(--display); font-weight: 800; letter-spacing: 0; font-style: normal; }
.vitals strong { color: var(--green); }
.ammo strong { color: var(--paper); }
.ammo span { color: var(--muted); font-family: var(--display); font-weight: 700; }
.ammo p, #scopelabel { color: var(--muted); font-family: var(--display); font-weight: 700; letter-spacing: .08em; }
.matchclock { border-top: 1px solid var(--line); }
.health-track, .armor-track, .dash-track { background: rgba(0, 0, 0, .45); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.health-track i { background: var(--green); }
.armor-track i { background: #c7d3dd; }
.dash-track i { background: var(--cyan); }
.helmet-label { color: #c7d3dd; font-family: var(--display); }
#dashlabel { color: var(--paper); font-family: var(--display); }
#notice { color: var(--paper); font: 800 18px / 1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
#hitdamage { color: var(--gold); font: 800 15px / 1 var(--display); letter-spacing: .06em; }
#hitmarker.kill { color: var(--accent); }
#feed { font-family: var(--display); font-weight: 700; letter-spacing: .03em; }
#fps { color: rgba(255, 255, 255, .55); font: 600 11px var(--display); letter-spacing: .08em; }
.compass-point, .compass-tick, .area-name { font-family: var(--display); }
.compass::before { background: var(--accent); }
.compass-marks i { background: var(--red); }
.minimap { background: rgba(12, 17, 24, .85); }
#liveScore { font-family: var(--display); font-weight: 700; letter-spacing: .03em; font-size: 14px; }
/* v0.82: your team is blue and theirs is red, everywhere (owner: one colour language) */#liveScore .team-0 span { color: #4fa8ff; } #liveScore .team-1 span { color: #ff5a4d; }
#liveScore .teams-line b { color: #4fa8ff; } #liveScore .teams-line b + b { color: #ff5a4d; }
#liveScore .teams-line .alive { display: flex; gap: 10px; font-size: 11px; letter-spacing: 1px; } #liveScore .teams-line .alive i { font-style: normal; } #liveScore .teams-line .alive i:first-child { color: #4fa8ff; } #liveScore .teams-line .alive i + i { color: #ff5a4d; }
#chatFeed { font-family: var(--display); }
.chat-row { background: var(--glass-2); border-radius: var(--r-s); }
.chat-row b { color: var(--accent); }
.voice-row { background: var(--accent); color: var(--accent-ink); border-radius: 4px; }
.zone-warn { box-shadow: inset 0 0 0 3px var(--red), inset 0 0 110px 20px rgba(255, 90, 90, .4); }
#touch button, #roomTouch button, #stick, #roomStick, #touchMenu, .pause-button, .chat-button, .voice-button, .spectate-next {
  background: rgba(12, 17, 24, .5); border: 1.5px solid rgba(255, 255, 255, .62); color: #fff; font-family: var(--display); font-weight: 700;
}
#touch [data-action=fire], #roomTouch [data-action=fire], #touch [data-action=fireLeft], #roomTouch [data-action=fireLeft] { border-color: #fff; background: rgba(255, 255, 255, .2); }
#touch button.active, #touch button[aria-pressed=true], #roomTouch button[aria-pressed=true], #roomTouch button.active, .voice-button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
#touch button small, #roomTouch button small { font-family: var(--display); font-weight: 700; }
#stick i, #roomThumb { background: rgba(255, 255, 255, .7); }
.weapon-slots button { background: rgba(12, 17, 24, .58); border: 1px solid var(--line); border-radius: var(--r-s); color: var(--paper); font-family: var(--display); font-weight: 700; }
.weapon-slots button.active { background: rgba(12, 17, 24, .85); border-color: var(--accent); }
.weapon-slots button span { color: var(--muted); font-family: var(--display); }
.weapon-slots button.active span { color: var(--gold); }
.fire-mode { background: rgba(12, 17, 24, .58); border: 1px solid var(--line); border-radius: var(--r-s); color: var(--paper); font-family: var(--display); font-weight: 700; }
#touch [data-count]::after, #roomTouch [data-count]::after { background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-weight: 800; border-radius: 8px; }
#touch [data-count="0"]::after, #roomTouch [data-count="0"]::after { background: rgba(255, 255, 255, .3); color: #fff; }
#touch [data-wait]::before, #roomTouch [data-wait]::before { background: rgba(12, 17, 24, .75); color: var(--paper); font-family: var(--display); font-weight: 800; }
.layout-editing [data-layout] { outline-color: rgba(255, 122, 26, .6); }
.layout-editing .layout-selected { outline: 2px solid var(--accent); }
#touch .train-focus { outline-color: var(--accent); box-shadow: 0 0 0 6px rgba(255, 122, 26, .3); }
@keyframes trainPulse { 50% { box-shadow: 0 0 0 12px rgba(255, 122, 26, 0); } }

/* Desktop windows: fewer plates, bigger numbers, one icon per thing (v0.59, now in the kit). */
@media (min-width: 900px) and (min-height: 700px) {
  #hud { padding: 20px 26px; }
  .hud-top .location { padding: 8px 12px; font: 800 12px var(--display); letter-spacing: .08em; }
  .hud-top .location small { font: 700 11px var(--display); letter-spacing: .08em; color: var(--muted); }
  .matchclock { padding: 6px 22px 8px; min-width: 150px; }
  .matchclock small { font-size: 11px; }
  .matchclock strong { font-size: 30px; margin-top: 2px; }
  .score { padding: 8px 14px; gap: 18px; }
  .score small { font-size: 11px; }
  .score b { font-size: 28px; margin-top: 2px; }
  #feed { top: 96px; right: 200px; left: auto; transform: none; text-align: right; max-width: 32vw; font: 700 13px / 1.7 var(--display); letter-spacing: .03em; color: #fff; }
  #feed:not(:empty) { background: transparent; border: 0; padding: 0; text-shadow: 0 1px 2px #000, 0 0 8px rgba(0, 0, 0, .6); }
  .vitals { padding: 10px 16px 12px; min-width: 250px; }
  .vitals small { font-size: 11px; }
  .vitals strong { font-size: 42px; line-height: 1; }
  .vitals span { font-size: 12px; margin-left: 6px; }
  .health-track { width: 220px; height: 10px; margin-top: 6px; }
  .dash { width: 92px; height: 92px; padding: 0; border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; }
  .dash::before { content: ""; width: 18px; height: 24px; background: var(--cyan); clip-path: polygon(58% 0, 14% 56%, 44% 56%, 34% 100%, 86% 40%, 54% 40%); }
  .dash small { font-size: 11px; letter-spacing: .08em; }
  .dash-track { width: 52px; height: 5px; margin: 2px auto 0; }
  #dashlabel { font: 800 12px var(--display); letter-spacing: .08em; }
  .ammo { padding: 10px 16px 12px; min-width: 150px; }
  .ammo small { font-size: 11px; }
  .ammo strong { font-size: 42px; line-height: 1; }
  .ammo span { font-size: 14px; }
  .ammo p { font: 700 11px var(--display); letter-spacing: .08em; margin: 4px 0 0; }
  #abilityinfo:not(:empty) { background: transparent; border: 0; padding: 0; bottom: 136px; color: #dfe5ec; opacity: .85; font: 700 12px var(--display); letter-spacing: .08em; }
  #notice:not(:empty) { font-size: 20px; padding: 9px 18px; width: max-content; margin: 0 auto; left: 0; right: 0; }
  .pause-button { top: 20px; right: 22px; width: 42px; height: 42px; border-radius: var(--r); font-size: 16px; }
  #hitmarker { font-size: 52px; }
  .lobby-brand { font-size: calc(30px * var(--s)); }
}

/* ---------- 7. Locker ---------- */
.locker-info b { font: 800 calc(20px * var(--s)) / 1.1 var(--display); letter-spacing: .03em; }
.locker-info .locker-req { color: var(--gold); }
.locker-card b { font: 800 calc(15px * var(--s)) / 1.1 var(--display); letter-spacing: .05em; }
.locker-card small { color: var(--muted); }
.locker-finish::before { border-radius: 3px; }
.locker-ad { border-color: var(--gold); }
.locker-ad b { color: var(--gold); }
.locker-who { font: 700 max(11px, calc(12px * var(--s))) var(--display); letter-spacing: .08em; color: var(--muted); }
.locker-earn-link { font-family: var(--display); }

/* ---------- 8. Account, admin and privacy pages ---------- */
.account-wrap header .wordmark, .wordmark { font: 800 26px var(--display); letter-spacing: .02em; color: var(--paper); text-decoration: none; }
.wordmark em { color: var(--accent); font-style: normal; }
.account-card { background: var(--glass); border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.account-card h1 { font: 800 44px / 1 var(--display); letter-spacing: .02em; }
.account-card h2 { font: 800 26px / 1.1 var(--display); letter-spacing: .02em; }
.account-card p, .account-card .account-note { font-family: var(--body); }
#accountStatus { color: var(--cyan); } #accountError { color: var(--red); }
.auth-tabs button { font: 700 13px var(--display); letter-spacing: .06em; }
#accountForm label { font: 700 12px var(--display); letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
#accountForm input { font: 600 15px var(--body); border-radius: var(--r-s); }
.account-section > small { color: var(--muted); font: 700 12px var(--display); letter-spacing: .12em; }
.account-section { border-top-color: var(--line); }
.recovery-notice b { font-family: var(--display); letter-spacing: .08em; }
.recovery-notice code { font-family: ui-monospace, Menlo, Consolas, monospace; }

/* ---------- 9. Phones: the kit at the base layout's sizes; type stays readable (10 px floor) ---------- */
@media (max-height: 540px) {
  .lobby.home { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 6px; }
  .home .lobby-left { width: 160px; gap: 6px; }
  .home .player-card { min-width: 0; }
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .rail-button { min-height: 34px; padding: 0 8px; gap: 6px; }
  .rail-button svg { width: 16px; height: 16px; }
  .rail-button span { font-size: 11px; letter-spacing: .04em; }
  .home .home-pitch { display: none; }
  .home .lobby-right { width: 236px; gap: 6px; padding-bottom: 2px; }
  .home .start-button { min-height: 50px; padding: 5px 40px 5px 14px; }
  .home .start-button b { font-size: 24px; }
  .home .start-button small { font-size: 11px; }
  .start-button::after { right: 14px; width: 11px; height: 14px; }
  .lobby .home-choice { min-height: 36px; padding: 3px 12px; row-gap: 0; }
  .lobby .home-choice b { font-size: 13px; }
  .lobby .home-choice span { font-size: 10px; }
  .lobby .home-choice svg { width: 16px; height: 16px; }
  .lobby-brand, .lobby-title h2, .practice-lobby .lobby-brand { font-size: 18px; letter-spacing: .03em; }
  .overlay .panel h2, .progress-heading h2 { font-size: 22px; }
  .death-card strong { font-size: 20px; }
  #settings .settings-panel { grid-template-columns: 132px minmax(0, 1fr); column-gap: 10px; }
}
@media (max-height: 350px) {
  .home .lobby-left { width: 150px; }
  .rail-button { min-height: 34px; }
  .home .lobby-right { width: 220px; gap: 4px; }
  .home .start-button { min-height: 44px; }
  .lobby .home-choice { min-height: 34px; }
  .lobby .home-choice span { display: none; }
  .lobby .home-choice b { font-size: 12px; }
}
@media (max-width: 620px) {
  .home .lobby-left { width: 118px; }
  .rail { grid-template-columns: 1fr; }
  .rail-button { min-height: 34px; }
  .home .lobby-right { width: 200px; }
  .lobby .home-choice span { display: none; }
}
/* HUD text boxes that carry no text draw nothing (two dark dots once showed at the screen centre). */
#notice:empty, #hitdamage:empty, #abilityinfo:empty, #feed:empty, #matchTip:empty { background: transparent; border: 0; outline: 0; box-shadow: none; padding: 0; }

/* ---------- 10. Corrections after the first look (v0.60) ---------- */
#settings .settings-head h2, .lobby-title h2, #beginMatch, .invite-card h3, .rank-card b, .summary-stat b, .summary-earn b, .train-card b, .start-button b, #roomLobby #beginMatch { font-style: normal; }
#results .results-panel > small, #results #rewardDetail, .reward small, .reward #rewardDetail, .resultstats small, #resultnote, .result-save { font-family: var(--body); letter-spacing: 0; }
.resultstats small { font-family: var(--display); letter-spacing: .1em; }
.start-button:disabled::after { display: none; }
html:has(.account-wrap), body:has(> .account-wrap) { background: var(--ink); }
body:has(> .account-wrap) { background: radial-gradient(900px 520px at 85% -10%, #1c2d3f, transparent 70%), var(--ink); }

/* Progress and rewards panel (solo): the same card kit as the rest. */
.progress-panel #xpLabel, .progress-panel #saveStatus { font: 700 12px var(--display); letter-spacing: .08em; color: var(--muted); }
.progress-panel #nextUnlock { font: 700 12px var(--display); letter-spacing: .06em; color: var(--gold); }
.progress-panel #careerStats { font: 500 13px / 1.6 var(--body); color: #d6dde5; }
.progress-panel h3 { font: 800 13px var(--display); letter-spacing: .1em; color: var(--paper); }
.progress-panel h3 small { font: 700 11px var(--display); letter-spacing: .08em; color: var(--muted); }
.xp-track { height: 6px; background: rgba(255, 255, 255, .12); border-radius: 3px; overflow: hidden; }
.xp-track i { background: var(--gold); }
.challenge { background: var(--glass-hi); border: 1px solid var(--line); border-radius: var(--r); }
.challenge b { font: 700 14px var(--display); letter-spacing: .05em; color: var(--paper); }
.challenge span { font: 500 12.5px / 1.45 var(--body); color: var(--muted); }
.challenge small { font: 700 11px var(--display); letter-spacing: .06em; color: var(--gold); }
.challenge.completed { border-color: rgba(63, 227, 207, .5); }
.challenge.completed small { color: var(--cyan); }
.skin { background: var(--glass-hi); border: 1px solid var(--line); border-top: 5px solid var(--swatch); border-radius: var(--r); transition: background-color .12s, border-color .12s; }
.skin b { font: 700 13px var(--display); letter-spacing: .05em; }
.skin small { font: 700 11px var(--display); letter-spacing: .06em; color: var(--muted); }
.skin[aria-pressed=true] { background: var(--glass-hi2); border-color: var(--accent); border-top-color: var(--swatch); }
.progress-panel .progress-help { font-family: var(--body); color: #d6dde5; }

/* After the gate (v0.60): the pitch stays on phones under the title (tests/phone-browser.cjs lists it), the HUD
   labels keep their own case (the capture-point line reads "IN 7s" and the point suite checks that text), and the
   locker column fits a 568x320 phone without scrolling. */
@media (max-height: 540px) {
  .home .home-pitch { display: block; max-width: 60ch; font-size: 11px; line-height: 1.25; }
  .home .home-pitch .pitch-long { display: none; }
  .home .home-pitch .pitch-short { display: inline; }
  .home .brand-block { justify-items: center; }
}
.hud-plate small, .matchclock small, .location small, .vitals small, .ammo small, .dash small, .score small { text-transform: none; }
@media (max-height: 350px) {
  #locker .lobby-left { gap: 4px; }
  #locker .locker-info { padding-top: 5px; padding-bottom: 5px; gap: 2px; }
  .lobby .locker-finish { min-height: 32px; padding: 3px 2px; }
  #locker .locker-list { gap: 4px; }
}
/* The small line under a choice (practice extras, career, locker links) stays on one line, like the home choices. */
.lobby .friends-button span, .lobby a.friends-button span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-height: 350px) { .lobby .practice-extras a.friends-button span, .lobby .practice-extras button.friends-button span { display: none; } .practice-extras .friends-button { min-height: 34px; } }
/* Phone HUD: the health row keeps the base layout's height (the grenade tile sits right above it at 568x320). */
@media (pointer: coarse) {
  #hud .vitals strong, #multiHud .vitals strong, .touch-room .vitals strong { line-height: 1; }
  #hud .vitals, #multiHud .vitals { align-items: center; }
}
@media (pointer: coarse) {
  #hud .vitals strong, #multiHud .vitals strong, .touch-room .vitals strong { display: block; height: 13px; line-height: 13px; overflow: visible; }
  #hud .vitals, #multiHud .vitals { height: 14px; align-items: center; }
}

/* ---------- 11. Motion that earns its place (v0.61): the title's sheen, the PLAY NOW shine, the elimination pop,
   the orange edge pulse, the win confetti and Blink's speed lines. All off under reduced motion. ---------- */
.lobby-brand em { background: linear-gradient(100deg, var(--accent) 0 38%, #ffd7b0 50%, var(--accent) 62% 100%); background-size: 260% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent; animation: brandShine 7s ease-in-out infinite; }
@keyframes brandShine { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0% 0; } }
.home .start-button { overflow: hidden; }
.home .start-button::before { content: ""; position: absolute; top: -40%; bottom: -40%; left: -30%; width: 22%; background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .45), rgba(255, 255, 255, 0)); transform: skewX(-18deg); animation: playShine 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes playShine { 0%, 70% { left: -30%; } 100% { left: 130%; } }
#notice.pop, #multiNotice.pop { animation: noticePop .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes noticePop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
#killpulse { position: fixed; inset: 0; pointer-events: none; z-index: 3; opacity: 0; box-shadow: inset 0 0 0 2px rgba(255, 122, 26, .9), inset 0 0 120px 30px rgba(255, 122, 26, .35); }
#killpulse.on { animation: killPulse .5s ease-out; }
@keyframes killPulse { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 61; overflow: hidden; }
#confetti i { position: absolute; top: -4vh; left: var(--x); width: var(--w); height: calc(var(--w) * .45); background: var(--c); border-radius: 2px; opacity: .95; animation: confettiFall var(--d) ease-in var(--t) 1 both; }
@keyframes confettiFall { 0% { transform: translateY(0) rotate(0deg); opacity: 1; } 100% { transform: translateY(110vh) rotate(var(--r)); opacity: .2; } }
#blinkflash.on { background: radial-gradient(ellipse at center, transparent 50%, rgba(63, 227, 207, .38) 100%), repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0) 0deg 9deg, rgba(190, 255, 245, .22) 9.5deg 10.5deg, rgba(255, 255, 255, 0) 11deg 20deg); -webkit-mask: radial-gradient(ellipse at center, transparent 34%, #000 100%); mask: radial-gradient(ellipse at center, transparent 34%, #000 100%); }
#results .panel h2, .summary-panel h2 { animation: noticePop .55s cubic-bezier(.2, 1.4, .4, 1); }
@media (prefers-reduced-motion: reduce) {
  .lobby-brand em { animation: none; background: none; color: var(--accent); -webkit-background-clip: initial; background-clip: initial; }
  .home .start-button::before, #confetti, #killpulse { display: none; }
  #notice.pop, #multiNotice.pop, #results .panel h2, .summary-panel h2 { animation: none; }
}

/* ---------- 12. Locker with seven characters (v0.62): a compact grid of cards instead of one tall list ---------- */
.locker-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(5px * var(--s)); }
.lobby .locker-card { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: calc(7px * var(--s)); row-gap: 0; min-height: calc(40px * var(--s)); padding: calc(4px * var(--s)) calc(8px * var(--s)); }
.lobby .locker-card b { font-size: calc(13px * var(--s)); letter-spacing: .04em; }
.lobby .locker-card span { font-size: max(10px, calc(10px * var(--s))); letter-spacing: .04em; }
.locker-swatch { width: calc(20px * var(--s)); height: calc(20px * var(--s)); }
@media (max-height: 540px) { .locker-list { gap: 4px; } .lobby .locker-card { min-height: 34px; padding: 3px 7px; } .lobby .locker-card b { font-size: 12px; } .lobby .locker-card span { font-size: 10px; } }
@media (max-height: 350px) { .lobby .locker-card { min-height: 30px; } .lobby .locker-card span { display: none; } .locker-list { gap: 3px; } }
@media (max-height: 540px) {
  .locker-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
  .lobby .locker-card { min-height: 30px; padding: 2px 5px; column-gap: 5px; grid-template-rows: auto; }
  .lobby .locker-card b { font-size: 11px; letter-spacing: .02em; }
  .lobby .locker-card span { display: none; }
  .locker-swatch { width: 14px; height: 14px; grid-row: auto; }
}
/* The home line-up is tappable: the lobby frame itself lets pointer events through to the scene; its panels keep them. */
.lobby.home { pointer-events: none; }
.lobby.home > * { pointer-events: auto; }

/* ---------- 13. The Blink kill banner (v0.63): cyan, not the usual white ---------- */
#notice.blink:not(:empty), #multiNotice.blink:not(:empty) { color: #e8fffb; background: rgba(15, 60, 58, .78); border-color: rgba(95, 240, 221, .7); box-shadow: 0 0 0 1px rgba(95, 240, 221, .25), 0 0 28px rgba(95, 240, 221, .35); }

/* ---------- 14. Home title (v0.63): the name is the hero; a Blink streak runs under it ---------- */
.home .brand-block .lobby-brand { font-size: calc(46px * var(--s)); line-height: .9; letter-spacing: .01em; position: relative; padding-bottom: calc(10px * var(--s)); text-shadow: 0 3px 0 rgba(0, 0, 0, .35), 0 8px 30px rgba(0, 0, 0, .45); }
.home .brand-block .lobby-brand::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: calc(4px * var(--s)); border-radius: 2px; background: linear-gradient(90deg, rgba(95, 240, 221, 0), #5ff0dd 30%, #ffffff 55%, rgba(95, 240, 221, 0) 80%); background-size: 220% 100%; box-shadow: 0 0 14px rgba(95, 240, 221, .6); animation: blinkStreak 3.8s cubic-bezier(.7, 0, .2, 1) infinite; }
@keyframes blinkStreak { 0% { background-position: 120% 0; opacity: 0; } 12% { opacity: 1; } 45%, 100% { background-position: -100% 0; opacity: .25; } }
.home .home-pitch { max-width: 40ch; margin-top: calc(4px * var(--s)); }
.lobby.home::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(8, 11, 16, .62) 0%, rgba(8, 11, 16, .28) 26%, rgba(8, 11, 16, 0) 46%), linear-gradient(0deg, rgba(8, 11, 16, .45) 0%, rgba(8, 11, 16, 0) 22%); z-index: -1; }
@media (max-height: 540px) { .home .brand-block .lobby-brand { font-size: 26px; padding-bottom: 6px; } .home .brand-block .lobby-brand::after { height: 3px; } }
@media (prefers-reduced-motion: reduce) { .home .brand-block .lobby-brand::after { animation: none; background-position: 40% 0; } }

/* ---------- 15. Home MAP chip (v0.64): one small control above PLAY NOW; its list opens upward ---------- */
.map-pick { position: relative; }
.map-chip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: calc(10px * var(--s)); width: 100%; min-height: calc(40px * var(--s)); padding: 0 calc(12px * var(--s)); background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); color: var(--paper); cursor: pointer; text-align: left; font-family: var(--display); }
.map-chip:hover, .map-chip[aria-expanded=true] { background: var(--glass-hi2); border-color: var(--line-2); }
.map-chip svg { width: calc(18px * var(--s)); height: calc(18px * var(--s)); }
.map-chip span { display: flex; align-items: baseline; gap: calc(8px * var(--s)); min-width: 0; }
.map-chip small { font: 700 max(11px, calc(11px * var(--s))) var(--display); letter-spacing: .1em; color: var(--muted); }
.map-chip b { font: 800 calc(15px * var(--s)) / 1 var(--display); letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-list { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 20; display: grid; gap: 2px; padding: 4px; background: rgba(12, 17, 24, .94); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); }
.map-list button { min-height: calc(36px * var(--s)); padding: 0 calc(12px * var(--s)); background: transparent; border: 0; border-radius: var(--r-s); color: var(--paper); text-align: left; font: 700 calc(14px * var(--s)) var(--display); letter-spacing: .06em; cursor: pointer; }
.map-list button:hover, .map-list button:focus-visible { background: var(--glass-hi2); }
.map-list button[aria-selected=true] { color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
@media (max-height: 540px) { .map-chip { min-height: 34px; padding: 0 10px; gap: 8px; } .map-chip b { font-size: 13px; } .map-chip svg { width: 15px; height: 15px; } .map-list button { min-height: 34px; font-size: 13px; } }
@media (max-height: 350px) { .map-chip small { display: none; } }
@media (max-height: 540px) { .map-list { left: auto; right: calc(100% + 6px); bottom: auto; top: 0; width: 176px; } .map-list button { min-height: 34px; } }

/* ---------- 16. Home v0.65: page icons in the header; the map card (picture, arrows, rotation) above PLAY NOW ---------- */
.home .home-icons { display: flex; gap: calc(6px * var(--s)); align-self: start; }
.home .home-icons .icon-button { min-width: calc(60px * var(--s)); height: calc(54px * var(--s)); padding: 0 calc(8px * var(--s)); gap: calc(4px * var(--s)); }
.home .home-icons .icon-button svg { width: calc(20px * var(--s)); height: calc(20px * var(--s)); }
.home .home-icons .icon-button span { font-size: max(11px, calc(10px * var(--s))); }
.home .lobby-left { width: calc(220px * var(--s)); }
.map-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: calc(6px * var(--s)); padding: calc(6px * var(--s)); background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); touch-action: pan-y; user-select: none; }
.map-view { position: relative; aspect-ratio: 16 / 7; border-radius: var(--r-s); overflow: hidden; background: #0b0f15; }
.map-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s; }
.map-text { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 1px; padding: calc(14px * var(--s)) calc(10px * var(--s)) calc(6px * var(--s)); background: linear-gradient(0deg, rgba(8, 11, 16, .85), rgba(8, 11, 16, 0)); }
.map-text small { font: 700 max(11px, calc(10px * var(--s))) var(--display); letter-spacing: .12em; color: var(--cyan); }
.map-text b { font: 800 calc(18px * var(--s)) / 1 var(--display); letter-spacing: .05em; color: #fff; text-shadow: 0 1px 2px #000; }
.map-dots { position: absolute; right: calc(8px * var(--s)); bottom: calc(8px * var(--s)); display: flex; gap: 4px; }
.map-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.map-dots i.on { background: var(--accent); }
.map-arrow { display: grid; place-items: center; width: calc(34px * var(--s)); height: calc(34px * var(--s)); padding: 0; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 50%; color: var(--paper); cursor: pointer; }
.map-arrow:hover { background: var(--glass-hi2); border-color: var(--line-2); }
.map-arrow svg { width: 60%; height: 60%; }
@media (max-height: 540px) {
  .home .lobby-left { width: 160px; }
  .map-card { padding: 3px; gap: 4px; }
  .map-view { aspect-ratio: auto; height: 34px; }
  .map-view img { right: auto; width: 60px; }
  .map-text { left: 66px; top: 0; padding: 0; background: none; align-content: center; }
  .map-text small { font-size: 10px; }
  .map-text b { font-size: 13px; }
  .map-dots { display: none; }
  .map-arrow { width: 34px; height: 34px; }
}
.map-text b, .map-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* v0.65 fixes: the narrow-phone width of the home's left column comes after the section-16 width; the locker's
   character list (twelve now) scrolls inside itself so the main button stays on screen. */
@media (max-width: 620px) { .home .lobby-left { width: 118px; } }
.locker-list { max-height: calc(3 * 40px * var(--s) + 2 * 5px * var(--s)); overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; }
@media (max-height: 540px) { .locker-list { max-height: 63px; } }
@media (max-height: 350px) { .locker-list { max-height: 63px; } }

/* v0.66.2: the profile screen in plain words. */
.profile-panel { width: min(640px, calc(100vw - 32px)); min-width: 0; display: grid; gap: 12px; }
.profile-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.profile-head h2 { font: 800 40px / 1 var(--display); letter-spacing: .02em; margin: 2px 0 0; color: var(--paper); }
.profile-head .secondary { width: auto; margin: 0; padding: 10px 18px; }
.profile-tag { font: 700 12px var(--display); letter-spacing: .14em; color: var(--muted); }
.profile-next { margin: 0; font: 600 15px var(--body); color: var(--paper); }
.profile-track { height: 8px; margin: 0; }
.profile-track i { background: var(--gold); }
.profile-unlock { margin: 0; font: 700 13px var(--display); letter-spacing: .04em; color: var(--gold); }
.profile-how { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--glass-hi); font: 500 13px var(--body); color: #d6dde5; }
.profile-how b { font: 800 12px var(--display); letter-spacing: .12em; color: var(--muted); }
.profile-how em { font-style: normal; font-weight: 700; color: var(--cyan); }
.profile-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.profile-stat { padding: 10px; border: 1px solid var(--line); border-radius: var(--r-s); background: rgba(255, 255, 255, .04); text-align: center; min-width: 0; }
.profile-stat b { display: block; font: 800 26px / 1.1 var(--display); color: var(--paper); font-variant-numeric: tabular-nums; }
.profile-stat small { font: 700 11px var(--display); letter-spacing: .1em; color: var(--muted); }
.profile-h { margin: 4px 0 0; font: 800 14px var(--display); letter-spacing: .12em; color: var(--paper); }
.profile-h small { margin-left: 8px; font: 500 12px var(--body); letter-spacing: 0; color: var(--muted); }
.profile-goals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.goal { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: rgba(255, 255, 255, .03); min-width: 0; }
.goal b { font: 600 14px var(--body); color: var(--paper); }
.goal-bar { display: block; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.goal-bar i { display: block; height: 100%; background: var(--cyan); }
.goal small { font: 700 12px var(--display); letter-spacing: .06em; color: var(--muted); font-variant-numeric: tabular-nums; }
.goal.done { border-color: rgba(63, 227, 207, .45); }
.goal.done small { color: var(--cyan); }
.profile-locker { margin: 0; font: 500 13px var(--body); color: var(--muted); }
.profile-locker a { color: var(--cyan); font-weight: 700; }
.profile-save { font: 600 12px var(--body); color: var(--gold); }
@media (max-width: 620px), (max-height: 520px) {
  .profile-panel { gap: 8px; padding: 14px 16px; }
  .profile-head h2 { font-size: 28px; }
  .profile-how { font-size: 12px; padding: 8px 10px; gap: 4px 10px; }
  .profile-stat { padding: 6px; } .profile-stat b { font-size: 20px; }
  .goal { padding: 7px 9px; gap: 4px; } .goal b { font-size: 12px; }
}
@media (max-width: 420px) { .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .profile-goals { grid-template-columns: 1fr; } }
/* Locker: gun colors (v0.66.2, from the old progress screen). */
.locker-guns { display: grid; gap: 4px; }
.locker-guns > small { font: 700 11px var(--display); letter-spacing: .12em; color: var(--muted); }
.locker-gun-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.locker-gun { display: grid; gap: 2px; padding: 5px 6px; border: 1px solid var(--line); border-top: 4px solid var(--swatch); border-radius: var(--r-s); background: var(--glass); color: var(--paper); font: 700 11px var(--display); letter-spacing: .04em; text-align: left; cursor: pointer; min-width: 0; }
.locker-gun small { font: 600 10px var(--display); color: var(--muted); }
.locker-gun[aria-pressed=true] { border-color: var(--swatch); box-shadow: 0 0 0 1px var(--swatch) inset; }
.locker-gun:disabled { opacity: .55; cursor: default; }
/* v0.66.2: older panel rules add margins to p, h3 small and .xp-track; the profile sets its own rhythm. */
.overlay .panel.profile-panel p, .overlay .panel.profile-panel h2, .overlay .panel.profile-panel h3 { margin: 0; }
.overlay .panel.profile-panel .profile-track { margin: 0; }
.overlay .panel.profile-panel .profile-h small { display: inline; margin: 0 0 0 8px; }
.overlay .panel.profile-panel .profile-next { margin-top: -6px; }
/* v0.66.2: short landscape phones: the profile in two columns (level, XP and stats left; goals right) so it fits
   without scrolling at 664x390 and 568x320. */
@media (max-height: 520px) {
  .overlay .panel.profile-panel { width: min(760px, 96vw); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 14px; row-gap: 5px; padding: 10px 14px; align-items: start; align-content: start; }
  .profile-panel > .profile-head { grid-column: 1; grid-row: 1; }
  .profile-panel > .profile-next { grid-column: 1; grid-row: 2; margin-top: 0; font-size: 12px; }
  .profile-panel > .profile-track { grid-column: 1; grid-row: 3; height: 5px; }
  .profile-panel > .profile-unlock { grid-column: 1; grid-row: 4; font-size: 11px; }
  .profile-panel > .profile-how { grid-column: 1; grid-row: 5; font-size: 11px; padding: 5px 8px; gap: 2px 8px; }
  .profile-panel > .profile-how b { width: 100%; font-size: 10px; }
  .profile-panel > .profile-stats { grid-column: 1; grid-row: 6; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .profile-stat { padding: 3px 2px; } .profile-stat b { font-size: 16px; } .profile-stat small { font-size: 9px; letter-spacing: .04em; }
  .profile-panel > .profile-h { grid-column: 2; grid-row: 1; align-self: end; font-size: 12px; }
  .profile-panel > .profile-goals { grid-column: 2; grid-row: 2 / 7; gap: 5px; }
  .profile-panel > .profile-locker { grid-column: 2; grid-row: 7; font-size: 11px; }
  .profile-panel > .profile-save { grid-column: 1 / -1; grid-row: 8; font-size: 10px; }
  .profile-head h2 { font-size: 24px; } .profile-head .secondary { padding: 6px 12px; } .profile-tag { font-size: 10px; }
  .goal { padding: 5px 8px; gap: 3px; } .goal b { font-size: 11px; line-height: 1.2; } .goal small { font-size: 10px; } .goal-bar { height: 4px; }
}
@media (max-height: 520px) {
  .profile-panel > .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-stat { display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 3px 4px; }
  .profile-stat b { display: inline; font-size: 16px; } .profile-stat small { font-size: 10px; letter-spacing: .04em; }
}
/* v0.66.3: open dropdown lists. The selects are dark with light text, but the browser drew the open list on white, so
   the options were white on white. Every list is dark now, with the browser's dark scrollbars and focus colours. */
select { color-scheme: dark; }
select option, select optgroup { background-color: #161d27; color: var(--paper); }
select option:checked { background-color: #2a3442; color: var(--paper); }
select option:disabled { color: var(--muted); }
/* v0.66.5: the Locker on phones (owner: "not responsive"). On short landscape screens the left column scrolls as one
   piece with the main button pinned at its bottom: every character is listed (no half-hidden inner list), nothing
   squeezes to zero height, and the gun colors stay inside the column. */
@media (max-height: 540px) {
  #locker .lobby-left.locker-side { max-height: calc(100vh - 62px); max-height: calc(100dvh - 62px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; gap: 6px; padding-right: 4px; scrollbar-width: thin; }
  #locker .lobby-left.locker-side > * { flex-shrink: 0; min-width: 0; }
  #locker .locker-list { max-height: none; overflow: visible; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  #locker .lobby .locker-card, .lobby .locker-card { min-height: 30px; padding: 3px 6px; }
  .lobby .locker-card span { display: none; }
  #locker #lockerDesc, #locker .locker-fair { display: none; }
  #locker .locker-info { padding: 6px 10px; gap: 1px; }
  #locker .locker-info b { font-size: 18px; }
  .locker-guns > small { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .locker-gun { padding: 3px 5px; border-top-width: 3px; }
  .locker-gun span { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .locker-gun small { font-size: 10px; }
  #locker #lockerAction { position: sticky; bottom: 0; z-index: 2; min-height: 44px; padding-top: 6px; padding-bottom: 6px; box-shadow: 0 -8px 14px rgba(12, 17, 24, .55); }
}
@media (max-height: 540px) {
  /* the pinned button is solid in every state, so the list never shows through it */
  #locker #lockerAction:disabled { background: #232c38; color: var(--muted); }
  #locker #lockerAction:disabled b, #locker #lockerAction:disabled small { color: var(--muted); }
}

/* v0.66.6: the map switch cover: the new map's picture over the reload, then a fade into the live map. */
.map-swap { position: fixed; inset: 0; z-index: 50; background: #0c1118 center / cover no-repeat; opacity: 0; pointer-events: none; transition: opacity .18s ease-out; }
.map-swap::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 55%, rgba(12, 17, 24, 0) 40%, rgba(12, 17, 24, .55)); }
.map-swap.on { opacity: 1; }
.map-swap.out { opacity: 0; transition: opacity .45s ease-in; }
/* the picture is a corner overview, not the home view: soft and dark, so the fade reads as a transition, not two views */
.map-swap { filter: blur(10px) brightness(.62) saturate(1.15); transform: scale(1.06); }
.map-swap.out { transition: opacity .3s ease-in; }

/* v0.76.1 CHOOSE A MAP: every map as a big picture card */
.map-view { cursor: pointer; }
.map-view:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.map-all { position: absolute; top: calc(6px * var(--s)); right: calc(6px * var(--s)); display: flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 99px; background: rgba(8, 11, 16, .72); border: 1px solid var(--line); font: 800 11px/1 var(--display); letter-spacing: .1em; color: #fff; pointer-events: none; }
.map-all svg { width: 12px; height: 12px; }
.map-view:hover .map-all { background: var(--accent); border-color: var(--accent); color: #14100c; }
.overlay.map-pick { position: fixed; inset: 0; grid-template-rows: minmax(0, 1fr); z-index: 30; padding: 0; background: rgba(5, 8, 12, .9); backdrop-filter: blur(6px); place-items: stretch; }
.map-pick-panel { min-height: 0; max-height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 12px; width: min(1240px, 100%); height: 100%; margin: 0 auto; padding: max(18px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(14px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); }
.map-pick-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.map-pick-head h2 { margin: 0; font: 800 clamp(26px, 4vw, 40px)/1 var(--display); letter-spacing: .04em; color: #fff; }
.map-pick-head p { margin: 4px 0 0; font: 600 14px/1.3 var(--display); letter-spacing: .03em; color: var(--muted); }
.map-pick-head .panel-x { position: static; flex: none; }
.map-grid { display: grid; grid-auto-rows: max-content; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; align-content: start; overflow-y: auto; overscroll-behavior: contain; padding: 4px 4px 12px; }
.map-tile { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; margin: 0; overflow: hidden; border: 2px solid rgba(255, 255, 255, .12); border-radius: 12px; background: #0b0f15; color: #fff; cursor: pointer; text-align: left; transition: transform .15s, border-color .15s, box-shadow .15s; }
.map-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.map-tile:hover, .map-tile:focus-visible { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .45); outline: none; }
.map-tile:hover img, .map-tile:focus-visible img { transform: scale(1.05); }
.map-tile[aria-selected="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.map-tile-text { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 3px; padding: 26px 12px 10px; background: linear-gradient(0deg, rgba(6, 9, 13, .94) 20%, rgba(6, 9, 13, 0)); }
.map-tile-text b { font: 800 clamp(18px, 2vw, 22px)/1 var(--display); letter-spacing: .05em; text-shadow: 0 1px 3px #000; }
.map-tile-text small { font: 600 12px/1.25 var(--display); letter-spacing: .03em; color: #c9d4d8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.map-tile-new, .map-tile-on { position: absolute; top: 8px; padding: 3px 8px; border-radius: 6px; font: 800 11px/1 var(--display); letter-spacing: .1em; }
.map-tile-new { left: 8px; background: var(--cyan); color: #06201c; }
.map-tile-on { right: 8px; background: var(--accent); color: #14100c; }
.map-tile-rot { border-style: dashed; }
.map-tile-rot img { filter: saturate(.75) brightness(.8); }
@media (max-height: 520px) {
  .map-pick-panel { gap: 8px; padding-top: max(10px, env(safe-area-inset-top, 0px)); padding-bottom: max(8px, env(safe-area-inset-bottom, 0px)); }
  .map-pick-head h2 { font-size: 22px; }
  .map-pick-head p { font-size: 12px; }
  .map-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
  .map-tile-text { padding: 18px 8px 6px; }
  .map-tile-text b { font-size: 15px; }
  .map-tile-text small { font-size: 10px; -webkit-line-clamp: 1; }
}
@media (max-height: 540px) { .map-all { top: 2px; left: 2px; right: auto; padding: 2px 3px; gap: 0; } .map-all-t { display: none; } .map-all svg { width: 11px; height: 11px; } }
@media (prefers-reduced-motion: reduce) { .map-tile, .map-tile img { transition: none; } .map-tile:hover img, .map-tile:focus-visible img { transform: none; } }

/* v0.77 a clean match view (owner: "simple, easy to understand, a clear view"): no key-help line (HOW TO PLAY in the
   pause menu and the first-play popup list the keys), no frame counter, short messages as small pills under the clock */
#abilityinfo, #fps { display: none !important; }
#notice { top: 132px; font: 800 15px/1 var(--display) !important; letter-spacing: .1em; color: #9ff3e4; }
#notice:not(:empty) { background: rgba(8, 13, 19, .72); padding: 7px 16px; border-radius: 99px; }
.match-tip { top: 170px; bottom: auto; max-width: min(420px, calc(100vw - 40px)); padding: 7px 16px; border: 0; border-radius: 99px; background: rgba(8, 13, 19, .72); font: 700 14px/1.1 var(--display); letter-spacing: .08em; text-transform: uppercase; text-align: center; }
@media (max-height: 540px) {
  #notice { top: 74px; font-size: 12px !important; }
  #notice:not(:empty) { padding: 5px 12px; }
  .match-tip { top: 104px; bottom: auto; max-width: min(300px, calc(100vw - 300px)); padding: 5px 12px; font-size: 11px; }
}
/* the map loading on PLAY when it is not in yet: its picture (the map-swap cover) and this label */
.map-loading { position: fixed; left: 50%; bottom: 14%; transform: translateX(-50%); z-index: 51; display: flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 99px; background: rgba(8, 13, 19, .8); color: #fff; font: 800 16px/1 var(--display); letter-spacing: .12em; }
.map-loading i { width: 16px; height: 16px; border: 3px solid rgba(255, 255, 255, .25); border-top-color: var(--accent); border-radius: 50%; animation: map-spin .8s linear infinite; }
@keyframes map-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .map-loading i { animation-duration: 2.4s; } }

/* v0.77 the match screen the Roblox way (owner: "clean this screen like the Roblox games do"): no boxes. A small
   clock at the top, kills and deaths as plain numbers, a thick health bar, the ammo number, a small Blink button.
   Mouse and keyboard screens only; phones keep their compact layout (pointer: coarse). */
@media (pointer: fine) {
  #hud .hud-top .location, #hud #compass, #hud .area-name { display: none !important; }
  /* one group at the top middle: eliminations, the clock, deaths */
  #hud .hud-top { justify-content: center !important; align-items: center !important; gap: 22px !important; }
  #hud .hud-top .score { display: contents !important; }
  #hud .hud-top .score > span:first-child { order: 0; }
  #hud .hud-top .matchclock { order: 1; }
  #hud .hud-top .score > span:last-child { order: 2; }
  #hud .hud-plate, #hud .matchclock { background: none !important; border: 0 !important; box-shadow: none !important; }
  #hud { text-shadow: 0 2px 4px rgba(0, 0, 0, .55); }
  /* the clock: one number in a soft pill */
  #hud .matchclock { padding: 4px 18px 5px !important; min-width: 0 !important; background: rgba(6, 10, 15, .45) !important; border-radius: 99px !important; display: grid; justify-items: center; gap: 0; }
  #hud .matchclock small { font: 700 11px/1 var(--display) !important; letter-spacing: .1em; color: rgba(255, 255, 255, .7); }
  #hud .matchclock strong { font: 800 28px/1 var(--display) !important; color: #fff; margin: 0 !important; }
  /* kills and deaths, top right */
  #hud .score { padding: 0 !important; gap: 16px !important; }
  #hud .score span { display: grid; justify-items: center; gap: 1px; }
  #hud .score small { font: 700 11px/1 var(--display) !important; letter-spacing: .1em; color: rgba(255, 255, 255, .75) !important; }
  #hud .score b { font: 800 26px/1 var(--display) !important; color: #fff; margin: 0 !important; }
  .pause-button { border: 0 !important; border-radius: 50% !important; background: rgba(6, 10, 15, .45) !important; box-shadow: none !important; }
  /* the radar map, top left */
  #hud .minimap { left: 26px; right: auto; top: 20px; width: 172px; height: 172px; }
  /* bottom row: Blink on the left, health in the middle, ammo on the right */
  #hud .hud-bottom { display: grid !important; grid-template-columns: 1fr auto 1fr; align-items: end; }
  #hud .hud-bottom > .dash { grid-area: 1 / 1; justify-self: start; position: relative; }
  #hud .hud-bottom > .vitals { grid-area: 1 / 2; width: 360px; }
  #hud .hud-bottom > .ammo { grid-area: 1 / 3; justify-self: end; }
  #hud .dash { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .22) !important; }
  #hud .dash::after { content: 'Q'; position: absolute; right: -4px; bottom: -4px; min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; background: #f2f5f8; color: #0b1118; font: 800 13px/1 var(--display); text-shadow: none; }
  /* health: the number and one thick bar, bottom left */
  #hud .vitals { display: grid !important; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; row-gap: 4px; padding: 0 !important; min-width: 0 !important; width: 290px; }
  #hud .vitals > small:first-child, #hud .vitals span { display: none !important; }
  #hud .vitals > div:first-of-type { grid-row: 1; }
  #hud .vitals strong { font: 800 30px/1 var(--display) !important; color: #fff !important; }
  #hud .vitals .health-track { grid-column: 2; height: 14px !important; border: 0 !important; border-radius: 99px !important; background: rgba(6, 10, 15, .5) !important; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12); }
  #hud .vitals .health-track, #hud .vitals .armor-track { width: auto !important; margin: 0 !important; }
  #hud .vitals .health-track { height: 16px !important; }
  #hud .vitals .health-track i { border-radius: 99px; background: linear-gradient(180deg, #7cf08a, #36c95a) !important; }
  #hud .vitals .armor-track { grid-column: 2; height: 5px !important; border: 0 !important; border-radius: 99px !important; background: rgba(6, 10, 15, .4) !important; }
  #hud .vitals .armor-track i { border-radius: 99px; }
  #hud .vitals .helmet-label { grid-column: 2; font: 700 11px var(--display); }
  /* Blink: a small round button with its bolt, bottom middle */
  #hud .dash { width: 62px !important; height: 62px !important; background: rgba(6, 10, 15, .45) !important; border-radius: 50% !important; gap: 4px !important; }
  #hud .dash small, #hud #dashlabel { display: none !important; }
  #hud .dash-track { width: 30px !important; height: 4px !important; border: 0 !important; border-radius: 99px !important; }
  /* ammo: the number, bottom right */
  #hud .ammo { padding: 0 !important; min-width: 0 !important; text-align: right; }
  #hud .ammo small { font: 700 13px/1 var(--display) !important; letter-spacing: .1em; color: rgba(255, 255, 255, .8) !important; }
  #hud .ammo strong { font: 800 46px/1 var(--display) !important; color: #fff !important; }
  #hud .ammo span { font: 700 20px/1 var(--display) !important; color: rgba(255, 255, 255, .65) !important; }
  #hud .ammo p, #hud #scopelabel { display: none !important; }
}

/* v0.77 the radar map (owner: "change the look of the map, create something cool"): the canvas draws its own round
   dial, so the element has no box of its own on any screen. */
.minimap { border: 0 !important; border-radius: 50% !important; background: transparent !important; box-shadow: none !important; backdrop-filter: none !important; }

/* v0.77 (owner: "remove the buttons from the map, just show it, and when someone clicks on it they see all maps"): the
   home map card is only the map's picture and name; a click (or Enter) opens CHOOSE A MAP. */
:is(#mapCard, #missionCard) { grid-template-columns: minmax(0, 1fr); }
:is(#mapCard, #missionCard) .map-arrow, :is(#mapCard, #missionCard) .map-dots, :is(#mapCard, #missionCard) .map-all { display: none !important; }
:is(#mapCard, #missionCard) .map-view { aspect-ratio: 16 / 6.2; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s; }
:is(#mapCard, #missionCard) .map-view img { transition: transform .25s ease, opacity .2s; }
:is(#mapCard, #missionCard) .map-view:hover { box-shadow: inset 0 0 0 2px var(--accent); }
:is(#mapCard, #missionCard) .map-view:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { :is(#mapCard, #missionCard) .map-view:hover img { transform: none; } }

/* v0.78 (owner: "show something else here so the game loads fast and smooth"): the home screen's backdrop is a picture of
   the chosen map (assets/maps/wide), darkened toward the menu, with a slow drift; no 3D is drawn behind it. While the
   CHARACTER picker is open the picture steps aside and the 3D line-up shows. */
#menu.lobby { isolation: isolate; }
.home-art { position: absolute; inset: 0; z-index: -1; background: #0b1016 center / cover no-repeat; pointer-events: none; transition: opacity .3s; }
.home-art::before { content: ''; position: absolute; inset: -4%; background: inherit; background-size: cover; background-position: center; animation: home-drift 40s ease-in-out infinite alternate; }
.home-art::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(6, 10, 15, .9) 0%, rgba(6, 10, 15, .6) 34%, rgba(6, 10, 15, .32) 60%, rgba(6, 10, 15, .6) 100%),
  linear-gradient(180deg, rgba(6, 10, 15, .55) 0%, rgba(6, 10, 15, 0) 28%, rgba(6, 10, 15, 0) 70%, rgba(6, 10, 15, .7) 100%); }
@keyframes home-drift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.06) translate(-1.5%, -1%); } }
@media (prefers-reduced-motion: reduce) { .home-art::before { animation: none; } }
body.picking .home-art { opacity: 0; }

/* =====================================================================================================================
   v0.79 SKIN: ICE CYAN (owner 2026-11-04: "make it look like a real app game, not an AI website"; colour picked from four
   options: Ice Cyan; buttons and screens approved as pictures in docs/design-v078). One system for every page:
   graphite panels, cut corners (top-left and bottom-right), filled buttons with a darker lip that sink when pressed,
   one action colour (cyan), white for the chosen option, red only for leaving. Loaded last (theme.css is the last
   stylesheet on every page), so it wins over the older rules above without touching them.
   ===================================================================================================================== */
:root {
  --ink: #0a0f15; --paper: #eef3f7; --muted: #93a2b3;
  --accent: #29d8ff; --accent-hi: #86ecff; --accent-lo: #0ea5d4; --accent-lip: #0a5878; --accent-ink: #04161d;
  --action: var(--accent); --action-ink: var(--accent-ink); --orange: var(--accent);
  --gold: #ffc83d; --red: #ff5a5a;
  --glass: rgba(18, 24, 33, .9); --glass-2: rgba(18, 24, 33, .7); --glass-hi: rgba(255, 255, 255, .07); --glass-hi2: rgba(255, 255, 255, .12);
  --line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .22);
  --panel-a: #1b232e; --panel-b: #0e131a; --steel-a: #283442; --steel-b: #161e28; --steel-hover-a: #33415300; --hi: rgba(255, 255, 255, .1);
  --r: 0px; --r-s: 0px;
  --cut: 10px;
  --chamfer: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  --xhair: #f4f6f8;
}
::selection { background: rgba(41, 216, 255, .35); }

/* ---------- buttons ---------- */
.primary, .secondary, .start-button, .friends-button, .icon-button, .rail-button, .value-button, .settings-back, .locker-main, #beginMatch,
.char-open, .auth-tabs button, .lb-chip, .train-card button, .panel-x {
  clip-path: var(--chamfer); border: 0 !important; border-radius: 0 !important;
  transition: background .12s, color .12s, transform .07s, box-shadow .07s, filter .12s;
}
/* keyboard focus draws inside the cut shape (an outline outside would be cut off) */
.primary:focus-visible, .secondary:focus-visible, .start-button:focus-visible, .friends-button:focus-visible, .icon-button:focus-visible,
.rail-button:focus-visible, .value-button:focus-visible, .settings-back:focus-visible, .char-open:focus-visible, .lb-chip:focus-visible,
.panel-x:focus-visible, #beginMatch:focus-visible, .locker-main:focus-visible { outline: 2px solid #fff; outline-offset: -5px; }

/* main action: cyan */
.primary, .start-button, #beginMatch, .locker-main, .lobby .primary, .overlay .panel .primary, .summary-actions .start-button {
  color: var(--accent-ink) !important;
  background: linear-gradient(180deg, var(--accent-hi), var(--accent) 55%, var(--accent-lo)) !important;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -5px 0 var(--accent-lip) !important;
  font-family: var(--display); font-weight: 800; letter-spacing: .06em;
}
.primary svg, .start-button svg, #beginMatch svg { color: var(--accent-ink); }
@media (hover: hover) {
  .primary:hover, .start-button:hover, #beginMatch:hover, .locker-main:hover { filter: brightness(1.1) saturate(1.05); }
}
.primary:active, .start-button:active, #beginMatch:active, .locker-main:active {
  transform: translateY(3px) !important; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 var(--accent-lip) !important;
}
.primary:disabled, .start-button:disabled, #beginMatch:disabled { filter: saturate(.25) brightness(.7); cursor: not-allowed; }

/* normal buttons: steel */
.secondary, .friends-button, .icon-button, .value-button, .char-open, .lb-chip, .train-card button, .auth-tabs button {
  color: var(--paper) !important;
  background: linear-gradient(180deg, var(--steel-a), var(--steel-b)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -4px 0 rgba(0, 0, 0, .42) !important;
  font-family: var(--display); font-weight: 800; letter-spacing: .05em;
}
.secondary svg, .friends-button svg, .icon-button svg, .value-button svg, .char-open svg, .lb-chip svg { color: var(--accent); }
@media (hover: hover) {
  .secondary:hover, .friends-button:hover, .icon-button:hover, .value-button:hover, .char-open:hover, .lb-chip:hover, .train-card button:hover {
    background: linear-gradient(180deg, #34435a, #1d2735) !important;
  }
}
.secondary:active, .friends-button:active, .icon-button:active, .value-button:active, .char-open:active, .lb-chip:active, .train-card button:active {
  transform: translateY(2px) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -2px 0 rgba(0, 0, 0, .42) !important;
}
.secondary:disabled, .friends-button[aria-disabled="true"] { opacity: .45; filter: saturate(.3); }

/* quiet: an outline that follows the cut (the button's own fill shows round a 2px inset copy of the same shape) */
.settings-back, .panel-x {
  position: relative; isolation: isolate; color: var(--paper) !important;
  background: rgba(255, 255, 255, .22) !important; box-shadow: none !important;
}
.settings-back::before, .panel-x::before {
  content: ''; position: absolute; inset: 2px; z-index: -1; background: #0d131c;
  clip-path: polygon(calc(var(--cut) - 1px) 0, 100% 0, 100% calc(100% - var(--cut) + 1px), calc(100% - var(--cut) + 1px) 100%, 0 100%, 0 calc(var(--cut) - 1px));
}
.settings-back svg { color: var(--paper); }
@media (hover: hover) { .settings-back:hover, .panel-x:hover { background: rgba(41, 216, 255, .7) !important; } }
.panel-x { --cut: 6px; }

/* plain text actions: quiet, readable, cyan on hover */
.text-button { color: var(--muted) !important; font-family: var(--display); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
@media (hover: hover) { .text-button:hover { color: var(--accent) !important; } }

/* danger: leaving a match */
#quit, #multiLeave, .danger-button {
  position: relative; isolation: isolate; color: #ff8a7a !important; background: rgba(255, 90, 74, .75) !important;
  clip-path: var(--chamfer); padding: 18px 20px !important; font-family: var(--display); font-weight: 800; letter-spacing: .08em; text-align: left;
}
#quit::before, #multiLeave::before, .danger-button::before {
  content: ''; position: absolute; inset: 2px; z-index: -1; background: #0e131b;
  clip-path: polygon(calc(var(--cut) - 1px) 0, 100% 0, 100% calc(100% - var(--cut) + 1px), calc(100% - var(--cut) + 1px) 100%, 0 100%, 0 calc(var(--cut) - 1px));
}

/* on / off and choices: the active side is cyan */
.segmented { gap: 0 !important; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); background: rgba(255, 255, 255, .06); border: 0 !important; }
.segmented button { border: 0 !important; border-radius: 0 !important; background: transparent !important; color: var(--muted) !important; font-family: var(--display); font-weight: 800; letter-spacing: .08em; }
.segmented button[aria-checked="true"] { background: var(--accent) !important; color: var(--accent-ink) !important; }

/* mode picker: the chosen mode is lit white */
.mode-pick { gap: 6px !important; }
.mode-pick button { clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); border: 0 !important; border-radius: 0 !important;
  background: linear-gradient(180deg, rgba(27, 35, 46, .95), rgba(14, 19, 26, .95)) !important; color: var(--muted) !important;
  box-shadow: inset 0 1px 0 var(--hi) !important; font-family: var(--display); font-weight: 800; letter-spacing: .08em; }
.mode-pick button[aria-pressed="true"] { background: linear-gradient(180deg, #ffffff, #d6dde6) !important; color: #0a0f15 !important; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2) !important; }

/* ---------- panels and screens ---------- */
.overlay { background: rgba(5, 8, 12, .8); }
.overlay .panel, .panel {
  border: 0 !important; border-radius: 0 !important; --cut: 16px; clip-path: var(--chamfer);
  background: linear-gradient(180deg, var(--panel-a), var(--panel-b)) !important; box-shadow: inset 0 1px 0 var(--hi) !important;
}
.panel h2 { font-family: var(--display); font-weight: 800; letter-spacing: .04em; }
.eyebrow { color: var(--accent) !important; }

/* settings: a full screen; tabs across the top on computers */
#settings.overlay { background: rgba(6, 9, 13, .97) !important; }
#settings .settings-panel { clip-path: none; background: transparent !important; box-shadow: none !important; }
.settings-tabs button { clip-path: none; border: 0 !important; border-radius: 0 !important; background: transparent !important; color: var(--muted) !important;
  font-family: var(--display); font-weight: 800; letter-spacing: .08em; box-shadow: none !important; }
.settings-tabs button[aria-selected="true"], .settings-tabs button.active, .settings-tabs button[aria-pressed="true"] { color: var(--paper) !important; box-shadow: inset 3px 0 0 var(--accent) !important; background: rgba(41, 216, 255, .08) !important; }
.setting { clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); border: 0 !important; border-radius: 0 !important;
  background: linear-gradient(180deg, rgba(27, 35, 46, .92), rgba(14, 19, 26, .92)) !important; box-shadow: inset 0 1px 0 var(--hi); }
input[type="range"] { accent-color: var(--accent); }
@media (pointer: fine) and (min-width: 900px) {
  #settings .settings-panel { grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: "head" "tabs" "pages" !important; }
  .settings-tabs { grid-auto-flow: column; justify-content: start; gap: 4px !important; border-bottom: 1px solid var(--line); overflow: visible !important; }
  .settings-tabs button { padding: 15px 22px !important; }
  .settings-tabs button[aria-selected="true"], .settings-tabs button.active, .settings-tabs button[aria-pressed="true"] { box-shadow: inset 0 -3px 0 var(--accent) !important; background: transparent !important; }
  .settings-pages { max-width: 1100px; }
}

/* pause: a side panel over the blurred match (computers and landscape tablets) */
@media (min-width: 760px) {
  #pause.overlay { place-items: stretch start; padding: 0; background: linear-gradient(90deg, rgba(8, 12, 18, .97) 0, rgba(8, 12, 18, .9) 420px, rgba(8, 12, 18, .35)); backdrop-filter: blur(6px); }
  #pause .panel { clip-path: none; width: min(520px, 100%); max-height: none; height: 100%; padding: 64px 56px; display: flex; flex-direction: column; gap: 12px;
    background: transparent !important; box-shadow: none !important; overflow-y: auto; }
  #pause .panel h2 { font-size: 64px; margin: 0; }
  #pause .panel > p { margin: 0 0 22px; }
  #pause .panel .primary { margin-top: 0; min-height: 70px; font-size: 26px; }
  #pause .panel .secondary { margin-top: 0; min-height: 58px; font-size: 19px; justify-content: flex-start; }
  #pause #quit { margin-top: auto; }
}

/* ---------- the lobby (home screen) ---------- */
#menu.lb { display: block !important; position: fixed; inset: 0; padding: 0 !important; background: none !important; grid-template-areas: none; }
.lb .home-art::before { filter: blur(5px) saturate(.85) brightness(.72); }
.lb .home-art::after { background:
  linear-gradient(90deg, rgba(9, 13, 19, .94) 0%, rgba(9, 13, 19, .5) 22%, rgba(9, 13, 19, .22) 50%, rgba(9, 13, 19, .58) 72%, rgba(9, 13, 19, .93) 100%),
  linear-gradient(180deg, rgba(9, 13, 19, .72) 0%, rgba(9, 13, 19, 0) 22%, rgba(9, 13, 19, 0) 62%, rgba(9, 13, 19, .88) 100%); }
.lb-floor { position: absolute; left: 50%; bottom: 6.6vh; width: 34vw; height: 9vh; transform: translateX(-56%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(41, 216, 255, .2), rgba(41, 216, 255, 0) 70%), radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); }
.lb-hero { position: absolute; left: 50%; bottom: 9.5vh; height: min(64vh, 700px); width: auto; transform: translateX(-58%); pointer-events: none;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .55)); }
.lb-hero:not([src]), .lb-hero[src=""] { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) { .lb-hero { animation: lb-in .45s cubic-bezier(.16, 1, .3, 1) both; } }
@keyframes lb-in { from { opacity: 0; transform: translateX(-58%) translateY(14px); } }

.lb-top { position: absolute; left: 0; right: 0; top: 0; height: 84px; display: flex; align-items: center; gap: 16px; padding: 0 28px; }
.lb-brand { margin: 0 14px 0 0 !important; font: 800 34px/1 var(--display) !important; letter-spacing: .02em !important; white-space: nowrap; }
.lb-brand em { font-style: normal; color: var(--accent); }
.lb-card { display: flex !important; align-items: center; gap: 12px; height: 60px; padding: 0 18px 0 8px !important; width: auto !important; min-width: 0 !important;
  clip-path: var(--chamfer); border: 0 !important; border-radius: 0 !important; background: linear-gradient(180deg, var(--panel-a), var(--panel-b)) !important; box-shadow: inset 0 1px 0 var(--hi) !important; }
.lb-hex { width: 42px; height: 48px; display: grid; place-items: center; flex: none; background: linear-gradient(180deg, var(--accent-hi), var(--accent-lo));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.lb-hex b { font: 800 20px/1 var(--display); color: var(--accent-ink); }
.lb-card .card-text { display: grid; gap: 5px; text-align: left; }
.lb-card #cardLevel { font: 800 18px/1 var(--display); letter-spacing: .05em; }
.lb-card .card-xp { width: 170px; height: 6px; background: rgba(255, 255, 255, .1) !important; border-radius: 0 !important; clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%); }
.lb-card .card-xp i { background: var(--accent) !important; border-radius: 0 !important; }
.lb-card small { font: 700 12px/1 var(--display) !important; letter-spacing: .08em; color: var(--muted) !important; }
.lb-gap { flex: 1; }
.lb-icons { display: flex !important; gap: 10px !important; }
.lb-icons .icon-button { width: 48px; height: 48px; min-width: 0 !important; padding: 0 !important; display: grid !important; place-items: center; --cut: 7px; }
.lb-icons .icon-button svg { width: 22px; height: 22px; color: var(--paper); }
.lb-icons .icon-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.lb-rail { position: absolute; left: 24px; top: 112px; display: grid; gap: 10px; }
.lb-rb { width: 86px; height: 78px; display: grid !important; justify-items: center; align-content: center; gap: 7px; padding: 0 !important; text-decoration: none;
  clip-path: var(--chamfer); border: 0 !important; color: var(--muted) !important; font: 800 13px/1 var(--display) !important; letter-spacing: .08em;
  background: linear-gradient(180deg, rgba(27, 35, 46, .88), rgba(14, 19, 26, .88)) !important; box-shadow: inset 0 1px 0 var(--hi) !important; }
.lb-rb svg { width: 28px; height: 28px; color: var(--paper); }
.lb-rb.on { color: var(--paper) !important; background: linear-gradient(180deg, rgba(41, 216, 255, .2), rgba(41, 216, 255, .05)), linear-gradient(180deg, var(--panel-a), var(--panel-b)) !important;
  box-shadow: inset 3px 0 0 var(--accent), inset 0 1px 0 var(--hi) !important; }
.lb-rb.on svg { color: var(--accent); }
@media (hover: hover) { .lb-rb:hover { color: var(--paper) !important; } .lb-rb:hover svg { color: var(--accent); } }
.lb-rb:active { transform: translateY(2px); }
#gunsName { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.lb-missions { position: absolute; left: 24px; bottom: 34px; width: 330px; padding: 16px 18px 18px; clip-path: var(--chamfer); --cut: 14px;
  background: linear-gradient(180deg, rgba(27, 35, 46, .9), rgba(14, 19, 26, .9)); box-shadow: inset 0 1px 0 var(--hi); }
.lb-missions h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font: 800 18px/1 var(--display); letter-spacing: .08em; }
.lb-missions h2 svg { width: 18px; height: 18px; color: var(--accent); }
.lb-ms { display: grid; grid-template-columns: 1fr auto; gap: 7px 10px; margin-top: 12px; font: 500 15px/1.2 var(--body); }
.lb-ms b { font: 800 15px/1 var(--display); color: var(--accent); }
.lb-ms i { grid-column: 1 / -1; height: 5px; background: linear-gradient(90deg, var(--accent) var(--p), rgba(255, 255, 255, .1) var(--p)); clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%); }

.lb-plate { position: absolute; left: 50%; bottom: 3.6vh; transform: translateX(-60%); display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.lb-plate #charName { font: 800 30px/1 var(--display); letter-spacing: .06em; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.lb-chip { height: 36px; display: inline-flex !important; align-items: center; gap: 6px; padding: 0 14px !important; font-size: 14px !important; letter-spacing: .08em; --cut: 7px; }
.lb-chip svg { width: 16px; height: 16px; }

.lb-play { position: absolute !important; right: 28px; bottom: 34px; width: 430px; display: grid !important; gap: 12px !important; margin: 0 !important; grid-template-columns: minmax(0, 1fr); }
.lb-play .mode-pick { display: grid !important; grid-template-columns: repeat(4, 1fr); }
.lb-play .mode-pick button { height: 44px; font-size: 16px !important; }
.lb-play .map-card { display: block !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
.lb-play .map-view { aspect-ratio: auto !important; height: 150px; clip-path: var(--chamfer); --cut: 12px; border-radius: 0 !important; box-shadow: none !important; }
.lb-play .map-view::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 13, 19, 0) 30%, rgba(9, 13, 19, .92)); pointer-events: none; }
.lb-play .map-text { position: absolute; left: 16px; bottom: 14px; z-index: 1; display: grid; gap: 4px; }
.lb-play #mapMode { font: 800 13px/1 var(--display) !important; letter-spacing: .12em; color: var(--accent) !important; }
.lb-play #mapName { font: 800 28px/1 var(--display) !important; letter-spacing: .03em; }
:is(#mapCard, #missionCard) .map-view .map-all { display: flex !important; position: absolute; left: auto; top: auto; right: 12px; bottom: 14px; z-index: 1; gap: 6px; padding: 8px 12px; border: 0; border-radius: 0;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); background: linear-gradient(180deg, var(--steel-a), var(--steel-b)); color: var(--paper);
  font: 800 13px/1 var(--display); letter-spacing: .08em; }
:is(#mapCard, #missionCard) .map-view .map-all svg { width: 15px; height: 15px; color: var(--accent); }
:is(#mapCard, #missionCard) .map-view .map-all-t { display: inline !important; }
@media (hover: hover) { :is(#mapCard, #missionCard) .map-view:hover .map-all { background: var(--accent); color: var(--accent-ink); } :is(#mapCard, #missionCard) .map-view:hover .map-all svg { color: var(--accent-ink); } }
:is(#mapCard, #missionCard) .map-view:hover { box-shadow: none !important; }

.lb-play #start { position: relative; height: 108px; min-height: 0 !important; width: 100% !important; display: grid !important; align-content: center; justify-items: start; padding: 0 28px !important; --cut: 18px; text-align: left; }
.lb-play #start b { font: 800 56px/.9 var(--display) !important; letter-spacing: .02em; }
.lb-play #start small { margin-top: 6px; font: 800 15px/1 var(--display) !important; letter-spacing: .1em; opacity: .8; color: var(--accent-ink) !important; }
.lb-play #start .lb-go { position: absolute; right: 26px; top: 50%; width: 46px; height: 46px; transform: translateY(-50%); stroke-width: 2.6; }
.lb-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; }
.lb-duo:not(:has(> :not([hidden]))) { display: none; }
.lb-play .friends-button { display: grid !important; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 4px; align-content: center; align-items: center;
  height: 64px; min-height: 0 !important; padding: 0 16px !important; margin: 0 !important; text-align: left; width: 100% !important; }
.lb-play .friends-button > svg:first-child { grid-row: 1 / 3; width: 26px; height: 26px; }
.lb-play .friends-button b { font: 800 19px/1 var(--display) !important; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-play .friends-button span { font: 700 12px/1 var(--display) !important; letter-spacing: .08em; color: var(--muted) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-play #roomsStatus { color: #6be38a !important; }
.lb-play .lb-practice { height: 56px; grid-template-columns: auto minmax(0, 1fr) auto; }
.lb-play .lb-practice .lb-go { grid-column: 3; grid-row: 1 / 3; width: 20px; height: 20px; color: var(--muted); }

/* shorter computer screens (1366 x 768 and the like) */
@media (max-height: 820px) and (min-height: 541px) {
  .lb-top { height: 72px; }
  .lb-rail { top: 92px; gap: 8px; } .lb-rb { width: 78px; height: 68px; }
  .lb-hero { height: 58vh; bottom: 10vh; }
  .lb-play { width: 380px; gap: 10px !important; bottom: 24px; }
  .lb-play .map-view { height: 116px; } .lb-play #mapName { font-size: 24px !important; }
  .lb-play #start { height: 92px; } .lb-play #start b { font-size: 48px !important; }
  .lb-play .friends-button { height: 56px; } .lb-play .lb-practice { height: 50px; }
  .lb-missions { width: 300px; bottom: 24px; padding: 13px 15px 15px; } .lb-ms { margin-top: 10px; font-size: 14px; }
}
/* narrow windows: missions give way to the play column */
@media (max-width: 1180px) and (min-height: 541px) { .lb-missions { display: none; } }
/* v0.85.1 square-ish windows (Playgama 1.6.8 checks a square one): the character and its name stand in the middle of the
   room left of the play column (rail ~92 px, column 430/380 px + 28 px), not the middle of the window, where the name
   and CHANGE ran under the PLAY panel */
@media (max-aspect-ratio: 5/4) and (min-height: 541px) and (min-width: 700px) {
  #menu { --lb-mid: calc(50vw + 46px - 229px); }
  #menu .lb-hero, #menu .lb-floor, #menu .lb-plate { left: var(--lb-mid); }
  #menu .lb-hero { height: min(56vh, 620px, 62vw); }
  #menu .lb-plate { transform: translateX(-50%); }
}
@media (max-aspect-ratio: 5/4) and (min-height: 541px) and (max-height: 820px) and (min-width: 700px) { #menu { --lb-mid: calc(50vw + 46px - 204px); } }

/* phones in landscape and other short screens */
@media (max-height: 540px) {
  .lb-top { height: 50px; padding: 0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left)); gap: 8px; }
  .lb-brand { font-size: 20px !important; margin-right: 4px !important; }
  .lb-card { height: 40px; padding: 0 10px 0 5px !important; gap: 8px; --cut: 7px; }
  .lb-hex { width: 28px; height: 32px; } .lb-hex b { font-size: 14px; }
  .lb-card #cardLevel { font-size: 14px; } .lb-card .card-xp { width: 90px; height: 4px; } .lb-card small { font-size: 11px !important; }
  .lb-icons { gap: 6px !important; } .lb-icons .icon-button { width: 36px; height: 36px; --cut: 5px; } .lb-icons .icon-button svg { width: 18px; height: 18px; }
  .lb-rail { left: max(12px, env(safe-area-inset-left)); top: 58px; gap: 6px; }
  .lb-rb { width: 54px; height: 46px; gap: 3px; font-size: 11px !important; --cut: 6px; } .lb-rb svg { width: 20px; height: 20px; }
  .lb-missions { display: none; }
  .lb-hero { height: 66vh; bottom: 14vh; transform: translateX(-80%); }
  .lb-floor { transform: translateX(-80%); width: 40vw; bottom: 9vh; }
  @keyframes lb-in { from { opacity: 0; transform: translateX(-80%) translateY(10px); } }
  .lb-plate { bottom: 2.5vh; transform: translateX(-84%); gap: 8px; } .lb-plate #charName { font-size: 18px; } .lb-chip { height: 28px; padding: 0 9px !important; font-size: 11px !important; }
  .lb-play { right: max(12px, env(safe-area-inset-right)); bottom: max(8px, env(safe-area-inset-bottom)); width: min(300px, 46vw); gap: 6px !important; }
  .lb-play .mode-pick button { height: 30px; font-size: 11px !important; }
  .lb-play .map-view { height: 58px; --cut: 8px; } .lb-play #mapMode { font-size: 11px !important; } .lb-play #mapName { font-size: 17px !important; } .lb-play .map-text { left: 10px; bottom: 8px; gap: 2px; }
  :is(#mapCard, #missionCard) .map-view .map-all { right: 8px; bottom: 8px; padding: 5px 7px; } :is(#mapCard, #missionCard) .map-view .map-all-t { display: none !important; }
  .lb-play #start { height: 60px; padding: 0 16px !important; --cut: 10px; } .lb-play #start b { font-size: 30px !important; } .lb-play #start small { font-size: 11px !important; margin-top: 3px; } .lb-play #start .lb-go { width: 26px; height: 26px; right: 14px; }
  .lb-play .friends-button { height: 40px; padding: 0 10px !important; column-gap: 8px; } .lb-play .friends-button > svg:first-child { width: 18px; height: 18px; }
  .lb-play .friends-button b { font-size: 13px !important; } .lb-play .friends-button span { font-size: 11px !important; }
  .lb-play .lb-practice { height: 34px; } .lb-play .lb-practice span { display: none; } .lb-play .lb-practice .lb-go { display: none; }
}
@media (max-height: 340px) {
  .lb-play .friends-button span { display: none; } .lb-play .friends-button { height: 32px; } .lb-play .friends-button > svg:first-child { grid-row: 1; }
  .lb-play .map-view { height: 46px; } .lb-play #start { height: 52px; } .lb-play .mode-pick button { height: 26px; }
  .lb-rb { height: 40px; } .lb-rb span { display: none; }
}
/* v0.79 lobby fixes after the first look at full size: stacked rail buttons, full-width mode tabs, square top icons,
   no old arrow or shine on PLAY, green only when rooms are online */
#menu .lb-rb { display: flex !important; flex-direction: column !important; align-items: center; justify-content: center; gap: 7px; text-align: center; }
#menu .lb-rb span { display: block; white-space: nowrap; }
#menu .lb-play .mode-pick { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; width: 100% !important; }
#menu .lb-play .mode-pick button { width: auto !important; min-width: 0 !important; padding: 0 6px !important; }
#menu .lb-icons .icon-button { height: 48px !important; min-height: 0 !important; align-self: center; flex: none; }
#menu #start::after, #menu #start::before { display: none !important; }
.lb-play #roomsStatus { color: var(--muted) !important; }
.lb-play #roomsStatus.online { color: #6be38a !important; }
@media (max-height: 540px) { #menu .lb-icons .icon-button { height: 36px !important; } #menu .lb-rb { gap: 3px; } }
/* v0.79 lobby on phones: the map picture fills its box; the two room buttons show their names only */
#menu .lb-play .map-view img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; right: 0 !important; object-fit: cover; }
@media (max-height: 540px) {
  #menu .lb-play .lb-duo .friends-button { grid-template-rows: auto; }
  #menu .lb-play .lb-duo .friends-button > svg:first-child { grid-row: 1; }
  #menu .lb-play .lb-duo .friends-button b { display: block !important; font-size: 13px !important; }
  #menu .lb-play .lb-duo .friends-button span { display: none !important; }
  #menu .lb-play .lb-practice { grid-template-rows: auto; } #menu .lb-play .lb-practice > svg:first-child { grid-row: 1; }
  #menu .lb-play .lb-practice b { display: block !important; font-size: 13px !important; }
}
@media (max-height: 540px) {
  #menu .lb-play .lb-duo .friends-button { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 0 6px !important; }
  #menu .lb-play .lb-duo .friends-button > svg:first-child { display: none; }
}
/* v0.79 fixes after photographing every screen: a hidden lobby stays hidden (the layout rule above outranked [hidden]),
   settings rows start under the tabs on an opaque screen, the character picker shows only itself and the 3D line-up,
   the pause screen's leave button matches the others */
#menu.lb[hidden] { display: none !important; }
#settings.overlay { background: #0a0f15 !important; }
@media (pointer: fine) and (min-width: 900px) {
  #settings .settings-panel { grid-template-rows: auto auto minmax(0, 1fr) !important; align-content: start; }
  #settings .settings-pages { align-self: start; }
}
body.picking:has(#charPick:not([hidden])) #menu .lb-hero, body.picking:has(#charPick:not([hidden])) #menu .lb-floor, body.picking:has(#charPick:not([hidden])) #menu .lb-plate,
body.picking:has(#charPick:not([hidden])) #menu .lb-missions, body.picking:has(#charPick:not([hidden])) #menu .lb-rail, body.picking:has(#charPick:not([hidden])) #menu .lb-play { visibility: hidden; }
#pause #quit { font-size: 19px !important; min-height: 58px; display: flex; align-items: center; }
/* v0.79 practice: the lobby's backdrop (the chosen map, blurred) and the worn character, set by the game as --home-art and --hero-img */
#practice.lobby { isolation: isolate; background: #0a0f15 !important; }
#practice.lobby::before { content: ''; position: absolute; inset: -3%; z-index: -2; background: var(--home-art, none) center / cover; filter: blur(5px) saturate(.85) brightness(.55); }
#practice.lobby::after { content: ''; position: absolute; z-index: -1; left: 46%; bottom: 9vh; width: 34vw; height: 62vh; transform: translateX(-50%); pointer-events: none;
  background: var(--hero-img, none) center bottom / contain no-repeat; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .55)); }
@media (max-height: 540px) { #practice.lobby::after { height: 60vh; bottom: 16vh; } }
/* v0.79 the last orange accents: the XP glow, the CLICK TO PLAY pulse and the big banner (FIRST KILL ...) in Ice Cyan.
   Kept warm on purpose: the BOT badge and enemy markers, which must stand apart from the player's own colour. */
@keyframes xpUp { 0% { box-shadow: 0 0 0 0 rgba(41, 216, 255, .85); } 100% { box-shadow: 0 0 0 9px rgba(41, 216, 255, 0); } }
@keyframes clickPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(41, 216, 255, .35); } 50% { box-shadow: 0 0 0 10px rgba(41, 216, 255, 0); } }
.click-play { border-color: rgba(41, 216, 255, .55) !important; border-radius: 0 !important; clip-path: var(--chamfer); }
#bigBanner { color: #e6fbff !important; text-shadow: 0 3px 0 #0a4a63, 0 0 24px rgba(41, 216, 255, .55) !important; }
/* v0.79 guards: anything hidden in the lobby or practice stays hidden (several layout rules above use display ... !important),
   and the pause side panel is for screens with room for it (phones keep the centred card, which fits) */
#menu.lb [hidden]:not(#nb-none), #practice [hidden]:not(#nb-none) { display: none !important; }
@media (min-width: 760px) and (max-height: 540px) {
  #pause.overlay { place-items: center; padding: 20px; background: rgba(5, 8, 12, .8); backdrop-filter: none; }
  #pause .panel { clip-path: var(--chamfer); width: 440px; height: auto; max-height: 95vh; padding: 32px; display: block; background: linear-gradient(180deg, var(--panel-a), var(--panel-b)) !important; }
  #pause .panel h2 { font-size: 32px; margin: 0 0 16px; } #pause .panel > p { margin-bottom: 25px; }
  #pause .panel .primary { margin-top: 23px; min-height: 0; font-size: inherit; } #pause .panel .secondary { margin-top: 10px; min-height: 0; font-size: inherit; }
  #pause #quit { margin-top: 0; }
}
@media (max-height: 540px) {
  #pause #quit { font-size: 13px !important; min-height: 0 !important; padding: 12px 16px !important; margin-top: 10px; }
  #pause .panel { padding: 22px 26px !important; } #pause .panel > p { margin-bottom: 12px !important; } #pause .panel .primary { margin-top: 12px !important; }
}
@media (max-height: 340px) { #menu .lb-play .friends-button { height: 34px !important; } #menu .lb-play .lb-practice { height: 34px !important; } }
@media (max-height: 340px) { #pause .panel > p { display: none; } }

/* =====================================================================================================================
   v0.79 PHONES IN A MATCH (owner: "deep focus on mobile, most of my players are on phones"). The same clean match view as
   on computers, sized for thumbs: clock and score together at the top middle with no boxes, the round radar map top left,
   no area name or compass strip, a thicker health bar, the gun slots as cut cards, and touch buttons in the Ice Cyan
   language (dark see-through fill, light ring; FIRE ringed in cyan; pressed buttons cyan). Button places are unchanged,
   so a layout made in the button editor stays as it was.
   ===================================================================================================================== */
@media (pointer: coarse) {
  #hud .hud-top .location, #hud #compass, #hud .area-name { display: none !important; }
  #hud .hud-plate, #hud .matchclock { background: none !important; border: 0 !important; box-shadow: none !important; }
  #hud { text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
  #hud .hud-top { justify-content: center !important; align-items: center !important; gap: 14px !important; padding-top: 2px; }
  #hud .hud-top .score { display: contents !important; }
  #hud .hud-top .score > span:first-child { order: 0; }
  #hud .hud-top .matchclock { order: 1; padding: 3px 14px 4px !important; min-width: 0 !important; background: rgba(6, 10, 15, .5) !important; border-radius: 99px !important; display: grid; justify-items: center; }
  #hud .hud-top .score > span:last-child { order: 2; }
  #hud .matchclock small { font: 700 11px/1 var(--display) !important; letter-spacing: .08em; color: rgba(255, 255, 255, .75) !important; }
  #hud .matchclock strong { font: 800 22px/1 var(--display) !important; margin: 0 !important; color: #fff; }
  #hud .score span { display: grid; justify-items: center; gap: 1px; }
  #hud .score small { font: 700 11px/1 var(--display) !important; letter-spacing: .06em; color: rgba(255, 255, 255, .75) !important; }
  #hud .score b { font: 800 20px/1 var(--display) !important; margin: 0 !important; color: #fff; }
  /* solo only: online the talk and chat buttons sit there (v0.80, tests/voice-browser) */ #hud .minimap { left: max(10px, env(safe-area-inset-left)) !important; right: auto !important; top: 8px !important; }
  #hud .vitals .health-track, #multiHud .vitals .health-track { height: 9px !important; border: 0 !important; border-radius: 99px !important; background: rgba(6, 10, 15, .55) !important; }
  #hud .vitals .health-track i, #multiHud .vitals .health-track i { border-radius: 99px; background: linear-gradient(180deg, #7cf08a, #36c95a) !important; }
  .weapon-slots button { border: 0 !important; border-radius: 0 !important; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    background: linear-gradient(180deg, rgba(40, 52, 66, .82), rgba(18, 24, 33, .82)) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
  .weapon-slots button.active { background: linear-gradient(180deg, rgba(41, 216, 255, .3), rgba(41, 216, 255, .12)), linear-gradient(180deg, rgba(40, 52, 66, .9), rgba(18, 24, 33, .9)) !important; box-shadow: inset 0 -2px 0 var(--accent); }
  .weapon-slots button.active span { color: var(--accent) !important; }
  #touch button, #roomTouch button { background: rgba(10, 15, 22, .42) !important; border-color: rgba(255, 255, 255, .55) !important; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
  #touch [data-action=fire], #roomTouch [data-action=fire], #touch [data-action=fireLeft], #roomTouch [data-action=fireLeft] { border-color: var(--accent) !important; background: rgba(41, 216, 255, .18) !important; box-shadow: 0 0 0 1px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(0, 0, 0, .25); }
  #touch button.active, #touch button[aria-pressed=true], #roomTouch button[aria-pressed=true], #roomTouch button.active { background: var(--accent) !important; border-color: var(--accent) !important; color: var(--accent-ink) !important; }
}
/* the online match, every screen: the plates lose their boxes for soft dark pills; no compass strip */
#multiHud .hud-plate, #multiHud .matchclock { border: 0 !important; border-radius: 10px !important; background: rgba(6, 10, 15, .5) !important; box-shadow: none !important; }
#multiHud #compass { display: none !important; }
#multiHud .matchclock strong { color: #fff; }
@media (pointer: coarse) {
  /* the first-match thumb hint sits under the clock and score instead of over them */
  #touchHint.touch-hint, #roomTouchHint { top: 52px !important; }
  .pause-button { border: 0 !important; border-radius: 50% !important; background: rgba(6, 10, 15, .5) !important; box-shadow: none !important; }
}
/* v0.79 phones: while the character picker is open the lobby's top bar steps aside, and on short screens the picker's
   cards are tighter so WEAR stays on screen */
body.picking:has(#charPick:not([hidden])) #menu .lb-brand, body.picking:has(#charPick:not([hidden])) #menu .lb-card { visibility: hidden; }
@media (max-height: 540px) {
  #charPick .char-panel { padding: 14px 16px !important; }
  #charPick .char-panel h2 { font-size: 20px !important; margin: 0 0 4px !important; }
  #charPick #charHint { margin: 0 0 8px !important; font-size: 12px !important; }
  #charPick .char-grid { gap: 5px !important; }
  #charPick .char-card { padding: 6px 8px !important; min-height: 0 !important; }
  #charPick .char-card small { font-size: 11px !important; }
  #charPick #charWear { margin-top: 10px !important; min-height: 40px !important; padding: 10px 14px !important; }
  #charPick #charClose { padding-top: 8px !important; }
}
@media (max-height: 540px) {
  /* the list scrolls inside the panel, WEAR and CLOSE stay on screen below it */
  #charPick .char-panel { display: flex !important; flex-direction: column; max-height: calc(100vh - 12px) !important; overflow: hidden !important; }
  #charPick .char-grid { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  #charPick .char-card small { white-space: nowrap; letter-spacing: .02em !important; }
  #charPick #charWear, #charPick #charClose { flex: none; }
}
@media (max-height: 540px) { #charPick .char-grid { grid-auto-rows: max-content !important; align-content: start; } }

/* v0.79 (owner, of the GUNS window: "what is this"): it shared the character picker's see-through style (made to show the
   3D line-up), so it opened over an empty black screen with plain browser lists. It is now a centred window over the
   dimmed lobby, like every other window, and every list in the game takes the game's style. */
body.picking:not(:has(#charPick:not([hidden]))) .home-art { opacity: 1 !important; }
  font: 800 15px/1 var(--display) !important; letter-spacing: .08em; color: var(--muted); }
select, .gun-row select, .panel select, .practice-lobby select, .room-card select {
  -webkit-appearance: none; appearance: none; height: 44px; min-width: 0; padding: 0 40px 0 14px !important; border: 0 !important; border-radius: 0 !important;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2329d8ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 14px,
    linear-gradient(180deg, var(--steel-a), var(--steel-b)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1) !important; color: var(--paper) !important; font: 800 15px/1 var(--display) !important; letter-spacing: .05em; cursor: pointer;
}
select:focus-visible { outline: 2px solid var(--accent) !important; outline-offset: -4px !important; }
select option { background: #121821; color: var(--paper); }
@media (max-height: 540px) { select, .gun-row select, .panel select, .practice-lobby select { height: 36px; font-size: 13px !important; padding-right: 32px !important; background-position: right 10px center, 0 0 !important; } }

/* =====================================================================================================================
   v0.80 SCREENS (owner 2026-11-04: "the buttons everywhere are the same box, it looks bad"; the pictures in docs/design-v080
   approved: "Perfect"). GUNS, How to Play, Progress, the Locker, Play Online and Account become full screens over the
   blurred map with a back arrow and a big title, and every control looks like what it does:
     one main action per screen   the cyan slab with a lip, bottom right (.scr-go)
     back                         an arrow beside the title, no box (.scr-back)
     choices                      words with a cyan underline (.scr-tabs)
     picking a thing              picture cards; chosen = cyan frame and corner tick, locked = dark with the level
     small actions                a word with an arrow (.scr-link)
   Sizes are in rem: the root font size follows the screen (10 design pixels on a 900 px tall screen, a larger share on
   phones), so each screen keeps its proportions from a phone held sideways to a desktop monitor. Nothing else in the
   game uses rem.
   ===================================================================================================================== */
html { font-size: min(calc(100vh / 90), calc(min(100vw, 200vh) / 150)); }
@media (max-height: 520px) { html { font-size: max(6px, min(calc(100vh / 50), calc(min(100vw, 200vh) / 104))); } }
body { font-size: 16px; }

.overlay.scr { display: grid; grid-template-rows: auto minmax(0, 1fr); align-items: stretch; justify-items: stretch; place-items: stretch;
  padding: 2.4rem max(3.2rem, env(safe-area-inset-right)) max(2.8rem, env(safe-area-inset-bottom)) max(3.2rem, env(safe-area-inset-left));
  background: #060a10 !important; backdrop-filter: none; isolation: isolate; overflow: hidden; color: var(--paper); font-family: var(--body); }
.scr .scr-world { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #0b1016; pointer-events: none; }
.scr .scr-world::before { content: ''; position: absolute; inset: -4%; background: var(--home-art, none) center / cover; filter: blur(8px) saturate(.8) brightness(.55); }
.scr .scr-world::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 10, 16, .8), rgba(6, 10, 16, .35) 30%, rgba(6, 10, 16, .55) 70%, rgba(6, 10, 16, .94)); }
.scr button { all: unset; box-sizing: border-box; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.scr button:focus-visible, .scr a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.scr svg[data-icon] { width: 1em; height: 1em; flex: none; }

/* top: back arrow and title, tabs, the level */
.scr .scr-top { display: flex; align-items: flex-end; gap: 4rem; min-width: 0; }
.scr .scr-back { display: flex; align-items: center; gap: 1.4rem; color: var(--paper); min-height: 44px; }
.scr .scr-back svg { font-size: 3rem; color: var(--muted); transition: transform .12s, color .12s; }
@media (hover: hover) { .scr .scr-back:hover svg { color: var(--accent); transform: translateX(-.4rem); } }
.scr .scr-back span { display: grid; text-align: left; }
.scr .scr-back small { font: 700 max(var(--tf, 11px), 1.25rem)/1 var(--display); letter-spacing: .16em; color: var(--accent); margin-bottom: .4rem; }
.scr .scr-back b { font: 800 4.6rem/1 var(--display); letter-spacing: .02em; white-space: nowrap; }
.scr .scr-tabs { display: flex; gap: 3.2rem; border-bottom: 1px solid var(--line); }
.scr .scr-tabs button { padding: 1.2rem 0 1.1rem; min-height: 44px; display: flex; align-items: center; font: 800 1.8rem/1 var(--display); letter-spacing: .1em; color: #56657a; white-space: nowrap; }
.scr .scr-tabs button[aria-selected="true"] { color: var(--paper); box-shadow: inset 0 -.3rem 0 var(--accent); }
.scr .scr-tabs em { font-style: normal; font-weight: 600; color: var(--muted); margin-left: .6rem; }
@media (hover: hover) { .scr .scr-tabs button:hover { color: var(--paper); } }
.scr .scr-lv { margin-left: auto; align-self: center; flex: none; width: 3.8rem; height: 4.2rem; display: grid; place-items: center; font: 800 1.9rem/1 var(--display); color: var(--accent-ink);
  background: linear-gradient(180deg, var(--accent-hi), var(--accent-lo)); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.scr .scr-lv:empty { visibility: hidden; }
.scr .scr-kicker { display: block; font: 700 max(var(--tf, 11px), 1.5rem)/1 var(--display); letter-spacing: .16em; color: var(--accent); }
.scr .scr-note { margin: 0; font: 500 max(var(--tf, 11px), 1.4rem)/1.4 var(--body); color: #56657a; }

/* the one main action */
.scr .scr-go { display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .4rem; min-height: 6.8rem; min-width: 24rem; padding: 0 3rem;
  clip-path: polygon(1.4rem 0, 100% 0, 100% calc(100% - 1.4rem), calc(100% - 1.4rem) 100%, 0 100%, 0 1.4rem);
  font: 800 2.8rem/1 var(--display); letter-spacing: .05em; color: var(--accent-ink);
  background: linear-gradient(180deg, var(--accent-hi), var(--accent) 55%, var(--accent-lo)); box-shadow: inset 0 .2rem 0 rgba(255, 255, 255, .5), inset 0 -.5rem 0 var(--accent-lip);
  transition: transform .07s, filter .12s, box-shadow .07s; }
.scr .scr-go small { font: 700 max(var(--tf, 11px), 1.25rem)/1 var(--display); letter-spacing: .1em; opacity: .7; }
.scr .scr-go small:empty { display: none; }
@media (hover: hover) { .scr .scr-go:hover:not(:disabled) { filter: brightness(1.1); } }
.scr .scr-go:active:not(:disabled) { transform: translateY(.3rem); box-shadow: inset 0 .2rem 0 rgba(255, 255, 255, .35), inset 0 -.2rem 0 var(--accent-lip); }
.scr .scr-go:disabled { cursor: default; color: var(--paper); background: linear-gradient(180deg, #243041, #151c27); box-shadow: inset 0 .1rem 0 rgba(255, 255, 255, .08); }
.scr .scr-go:disabled small { opacity: .55; }
.scr .scr-go[data-state="worn"] { color: var(--accent); }

/* a word with an arrow */
.scr .scr-link { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; font: 700 max(var(--tf, 11px), 1.6rem)/1 var(--display); letter-spacing: .08em; color: var(--accent); text-decoration: none; }
.scr .scr-link svg { font-size: 1.8rem; transition: transform .12s; }
.scr .scr-link.muted { color: var(--muted); }
@media (hover: hover) { .scr .scr-link:hover svg { transform: translateX(.3rem); } .scr .scr-link.muted:hover { color: var(--paper); } }

/* ---------- GUNS ---------- */
.scr-guns .gun-main { display: grid; grid-template-columns: minmax(0, 1fr) 34rem; grid-template-rows: minmax(0, 1fr) auto; gap: 2rem 4rem; min-height: 0; padding-top: 1.6rem; }
.scr-guns .gun-show { position: relative; min-height: 0; }
.scr-guns .gun-show::before { content: ''; position: absolute; left: 8%; right: 8%; bottom: 10%; height: 24%; border-radius: 50%; background: radial-gradient(closest-side, rgba(41, 216, 255, .18), transparent); }
.scr-guns .gun-show img { position: absolute; inset: 0 4% 6%; width: 92%; height: 94%; object-fit: contain; filter: drop-shadow(0 2.4rem 2.4rem rgba(0, 0, 0, .6)); }
.scr-guns .gun-info { align-self: center; display: grid; gap: 1.6rem; min-width: 0; }
.scr-guns .gun-info h2 { margin: -.6rem 0 0; font: 800 7.2rem/.9 var(--display); letter-spacing: .01em; color: var(--paper); font-style: normal; }
.scr-guns .gun-stats { display: grid; gap: 1.5rem; padding-top: .6rem; }
.scr-guns .gun-stat { display: grid; grid-template-columns: 1fr auto; gap: .6rem 1rem; font: 700 max(var(--tf, 11px), 1.45rem)/1 var(--display); letter-spacing: .1em; color: var(--muted); }
.scr-guns .gun-stat b { color: var(--paper); font-size: 1.7rem; letter-spacing: .04em; }
.scr-guns .gun-stat i { grid-column: 1 / -1; height: .6rem; background: rgba(255, 255, 255, .08); position: relative; }
.scr-guns .gun-stat i::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--v); background: linear-gradient(90deg, var(--accent-lo), var(--accent)); transition: width .25s; }
.scr-guns .gun-strip { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.2rem; align-items: stretch; }
.scr-guns .gun-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 1.2rem; min-width: 0; }
.scr .gun-card { position: relative; overflow: hidden; height: 13rem; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: .6rem; padding: 1.2rem 1.4rem;
  clip-path: polygon(1rem 0, 100% 0, 100% calc(100% - 1rem), calc(100% - 1rem) 100%, 0 100%, 0 1rem);
  background: linear-gradient(180deg, #1b2433, #0f1520); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); color: var(--paper); transition: background .12s; }
@media (hover: hover) { .scr .gun-card:hover { background: linear-gradient(180deg, #223047, #121a27); } }
.scr .gun-card img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.scr .gun-card-name { display: grid; gap: .3rem; text-align: left; }
.scr .gun-card-name b { font: 800 2rem/1 var(--display); letter-spacing: .05em; }
.scr .gun-card-name small { font: 700 max(var(--tf, 11px), 1.15rem)/1 var(--display); letter-spacing: .12em; color: var(--muted); }
.scr .gun-card.on { background: linear-gradient(180deg, rgba(41, 216, 255, .16), rgba(41, 216, 255, .03)), linear-gradient(180deg, #1b2433, #0f1520); box-shadow: inset 0 0 0 .25rem var(--accent); }
.scr .gun-card.on::before { content: ''; position: absolute; right: 0; top: 0; width: 3.4rem; height: 3.4rem; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.scr .gun-card > svg { position: absolute; right: .35rem; top: .3rem; font-size: max(var(--tf, 11px), 1.5rem); color: var(--accent-ink); stroke-width: 3.4; }
.scr .gun-card.locked img, .scr .gun-card.locked .gun-card-name { opacity: .38; filter: grayscale(1); }
.scr .gun-card-lock { position: absolute; left: 1.2rem; top: 1.1rem; display: flex; align-items: center; gap: .5rem; padding: .5rem .8rem; font: 800 max(var(--tf, 11px), 1.3rem)/1 var(--display); letter-spacing: .1em; background: rgba(6, 10, 16, .85); }
.scr .gun-card-lock svg { font-size: max(var(--tf, 11px), 1.5rem); color: var(--gold); }
.scr-guns .gun-strip .scr-go { min-height: 13rem; padding: 0 3rem; }
.scr-guns .scr-note:empty { display: none; }
@media (max-height: 520px) {
  .overlay.scr { padding: 1.6rem max(2.4rem, env(safe-area-inset-right)) max(1.6rem, env(safe-area-inset-bottom)) max(2.4rem, env(safe-area-inset-left)); }
  .scr .scr-top { gap: 2.6rem; }
  .scr-guns .gun-main { grid-template-columns: minmax(0, 1fr) 30rem; gap: 1.2rem 2.4rem; padding-top: .8rem; }
  .scr-guns .gun-info h2 { font-size: 5.6rem; } .scr-guns .gun-info { gap: 1rem; } .scr-guns .gun-stats { gap: 1rem; }
  .scr .gun-card { height: 10.5rem; padding: .9rem 1rem; } .scr-guns .gun-strip .scr-go { min-height: 10.5rem; min-width: 19rem; padding: 0 2.2rem; }
  .scr-guns .scr-note { display: none; }
}


/* v0.80 crosshair colour (owner: "remove the color dropdown, add actual colors"): a row of colour chips, the chosen one ringed in cyan */
.segmented.swatches { gap: 10px !important; clip-path: none; background: transparent; }
.segmented.swatches button { width: 44px; height: 44px; min-width: 44px; padding: 0 !important; display: grid; place-items: center; background: transparent !important;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .14) !important; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.segmented.swatches button i { width: 26px; height: 26px; clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.segmented.swatches button[aria-checked="true"] { background: rgba(41, 216, 255, .12) !important; box-shadow: inset 0 0 0 3px var(--accent) !important; }
@media (hover: hover) { .segmented.swatches button:hover { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .4) !important; } }
@media (max-height: 540px) { .segmented.swatches button { width: 36px; height: 36px; min-width: 36px; } .segmented.swatches button i { width: 20px; height: 20px; } }


/* ---------- How to Play ---------- */
.scr-how .how-main { display: grid; grid-template-columns: minmax(0, 1fr) 46rem; gap: 4rem; min-height: 0; padding-top: 2.4rem; }
.scr-how .how-pane { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.scr-how .how-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 3.6rem 6rem; align-content: center; }
.scr-how .how-grp h3 { margin: 0 0 1rem; display: flex; align-items: center; gap: .8rem; font: 800 max(var(--tf, 11px), 1.6rem)/1 var(--display); letter-spacing: .16em; color: var(--accent); }
.scr-how .how-grp h3 svg { font-size: 2rem; }
.scr-how .controls { display: block; margin: 0; padding: 0; list-style: none; font: 500 1.8rem/1.2 var(--body); color: var(--paper); }
.scr-how .controls li { display: flex; align-items: center; gap: 1.6rem; min-height: 5.4rem; padding: 0; color: var(--paper); }
.scr-how .controls li + li { border-top: 1px solid rgba(255, 255, 255, .08); }
.scr-how .caps { display: flex; gap: .5rem; flex: none; width: var(--cw, 10rem); }
/* keys look like real keys (rounded, light, with a lip), so nobody mistakes them for buttons */
.scr-how .controls kbd { display: inline-grid; place-items: center; min-width: 4rem; height: 4rem; padding: 0 .9rem; border: 0; border-radius: .6rem; flex: none;
  font: 800 max(var(--tf, 11px), 1.45rem)/1 var(--display); letter-spacing: .04em; color: #17202b; text-align: center;
  background: linear-gradient(180deg, #f4f7fa, #c9d2dc); box-shadow: inset 0 -.4rem 0 #8e9aa8, 0 .3rem .6rem rgba(0, 0, 0, .45); }
.scr-how .controls kbd.wide { padding: 0 1.2rem; }
.scr-how .controls kbd.mouse { position: relative; min-width: 3.2rem; width: 3.2rem; height: 4.4rem; padding: 0; border-radius: 1.6rem 1.6rem 1.9rem 1.9rem; overflow: hidden; background: #c9d2dc; }
.scr-how .controls kbd.mouse::before { content: ''; position: absolute; top: 0; left: 0; width: 50%; height: 45%; background: var(--accent); box-shadow: inset -1px -1px 0 #8e9aa8; }
.scr-how .controls kbd.mouse.r::before { left: auto; right: 0; box-shadow: inset 1px -1px 0 #8e9aa8; }
.scr-how .controls kbd.mouse.m::before { left: 50%; width: .5rem; margin-left: -.25rem; top: .7rem; height: 1.2rem; border-radius: 1rem; background: #6f7c8b; box-shadow: none; }
.scr-how .how-side { display: grid; align-content: center; gap: 2.8rem; padding-left: 4rem; border-left: 1px solid var(--line); min-height: 0; }
.scr-how .rule { display: grid; grid-template-columns: 7rem 1fr; gap: 1.6rem; align-items: center; }
.scr-how .rule b { display: grid; place-items: center; font: 800 4.4rem/1 var(--display); color: var(--paper); }
.scr-how .rule b svg { font-size: 4rem; color: var(--accent); }
.scr-how .rule p { margin: 0; font: 500 max(var(--tf, 11px), 1.6rem)/1.4 var(--body); color: var(--muted); }
.scr-how .rule strong { display: block; margin-bottom: .4rem; font: 800 1.9rem/1 var(--display); letter-spacing: .06em; color: var(--paper); }
.scr-how .how-side .scr-go { width: 100%; align-items: center; margin-top: 1.4rem; }
.scr-how .how-side .scr-go span { display: flex; align-items: center; gap: 1.2rem; }
.scr-how .how-side .scr-link { justify-self: start; }
/* touch: a drawing of the phone with the main buttons named */
.scr-how .how-touch { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 1.6rem; }
.scr-how .how-phone { position: relative; min-height: 22rem; border: .25rem solid rgba(255, 255, 255, .16); border-radius: 2.6rem; background: rgba(6, 10, 16, .55); overflow: hidden; }
.scr-how .how-phone::before { content: ''; position: absolute; left: 1rem; top: 50%; width: .5rem; height: 5rem; transform: translateY(-50%); border-radius: 1rem; background: rgba(255, 255, 255, .16); }
.scr-how .how-phone .t { position: absolute; display: grid; place-items: center; border-radius: 50%; border: .2rem solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); font-size: 2rem; color: var(--paper); }
.scr-how .how-phone .stick { left: 6%; bottom: 12%; width: 10rem; height: 10rem; }
.scr-how .how-phone .fire { right: 7%; bottom: 22%; width: 7.6rem; height: 7.6rem; border-color: var(--accent); background: rgba(41, 216, 255, .18); color: var(--accent); }
.scr-how .how-phone .jump { right: 24%; bottom: 10%; width: 4.8rem; height: 4.8rem; }
.scr-how .how-phone .aim { right: 4%; top: 22%; width: 4.8rem; height: 4.8rem; }
.scr-how .how-phone .blink { right: 19%; top: 32%; width: 4.8rem; height: 4.8rem; }
.scr-how .how-phone .lbl { position: absolute; font: 800 max(var(--tf, 11px), 1.3rem)/1 var(--display); letter-spacing: .12em; color: var(--accent); white-space: nowrap; }
.scr-how .how-phone .lbl::before { content: ''; display: inline-block; width: .6rem; height: .6rem; margin-right: .5rem; vertical-align: middle; background: var(--accent); transform: rotate(45deg); }
.scr-how .how-phone .lbl small { display: block; margin-top: .3rem; padding-left: 1.1rem; font: 500 max(var(--tf, 11px), 1.2rem)/1.2 var(--body); letter-spacing: 0; color: var(--muted); }
.scr-how .l-move { left: 5%; bottom: 47%; } .scr-how .l-look { left: 40%; top: 30%; } .scr-how .l-aim { right: 22%; top: 8%; } .scr-how .l-fire { right: 27%; bottom: 33%; }
.scr-how .how-phone .slots { position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%); display: flex; gap: .5rem; }
.scr-how .how-phone .slots i { width: 6.4rem; height: 3.4rem; border: .2rem solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .05); }
.scr-how .how-phone .slots i:first-child { border-color: var(--accent); }
.scr-how .how-touch .keys-touch { display: block; margin: 0; max-width: 90rem; font: 500 max(var(--tf, 11px), 1.5rem)/1.5 var(--body); color: var(--muted); }
.scr-how .how-tips .tips { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; max-width: 100rem; font: 500 1.7rem/1.45 var(--body); color: #d6dde5; border: 0; }
.scr-how .how-tips .tips li { padding: 1.3rem 0 1.3rem 2.4rem; position: relative; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.scr-how .how-tips .tips li::before { content: ''; position: absolute; left: .2rem; top: 2.1rem; width: .7rem; height: .7rem; background: var(--accent); transform: rotate(45deg); }
.scr-how .how-tips .touch-legend { margin: 2rem 0 0; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1.4rem 1rem; font: 700 max(var(--tf, 11px), 1.25rem)/1.2 var(--display); letter-spacing: .06em; color: var(--muted); }
.scr-how .how-tips .touch-legend svg { width: 2.8rem; height: 2.8rem; color: var(--accent); }
@media (max-height: 520px) {
  .scr-how .how-main { grid-template-columns: minmax(0, 1fr) 26rem; gap: 2.4rem; padding-top: 1.4rem; }
  .scr-how .how-side { gap: 1.4rem; padding-left: 0; border-left: 0; }
  .scr-how .rule { grid-template-columns: 4.6rem 1fr; gap: 1rem; } .scr-how .rule b { font-size: 3rem; } .scr-how .rule b svg { font-size: 2.8rem; }
  .scr-how .rule p { font-size: max(var(--tf, 11px), 1.35rem); } .scr-how .rule strong { font-size: max(var(--tf, 11px), 1.6rem); }
  .scr-how .how-side .scr-go { min-height: 6rem; font-size: 2.2rem; min-width: 0; padding: 0 1.6rem; margin-top: .4rem; }
  .scr-how .how-side .scr-link { display: none; }
  .scr-how .how-touch .keys-touch { display: none; }
  .scr-how .how-keys { gap: 2rem 3rem; align-content: start; } .scr-how .controls li { min-height: 4.6rem; font-size: max(var(--tf, 11px), 1.6rem); }
  .scr-how .how-tips .tips { font-size: max(var(--tf, 11px), 1.45rem); } .scr-how .how-tips .tips li { padding: .8rem 0 .8rem 2rem; } .scr-how .how-tips .tips li::before { top: 1.5rem; }
}


/* ---------- Progress ---------- */
.scr-prog .prog-main { display: grid; grid-template-columns: 44rem minmax(0, 1fr) 52rem; gap: 5rem; min-height: 0; padding-top: 3rem; }
.scr-prog .prog-rank { display: grid; align-content: start; justify-items: center; text-align: center; gap: 1.6rem; min-height: 0; }
.scr-prog .prog-emb { --rank: #c8864a; position: relative; width: 22rem; height: 25rem; display: grid; place-items: center; }
.scr-prog .prog-emb::before { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, color-mix(in srgb, var(--rank) 55%, #fff), var(--rank) 45%, color-mix(in srgb, var(--rank) 55%, #000));
  clip-path: polygon(50% 0, 100% 22%, 100% 70%, 50% 100%, 0 70%, 0 22%); }
.scr-prog .prog-emb::after { content: ''; position: absolute; inset: 1.2rem; background: linear-gradient(180deg, #1d2737, #0c121b); clip-path: polygon(50% 0, 100% 22%, 100% 70%, 50% 100%, 0 70%, 0 22%); }
.scr-prog .prog-emb b { position: relative; z-index: 1; font: 800 10rem/1 var(--display); color: color-mix(in srgb, var(--rank) 60%, #fff); }
.scr-prog .prog-emb small { position: absolute; z-index: 1; bottom: 5.4rem; font: 700 max(var(--tf, 11px), 1.4rem)/1 var(--display); letter-spacing: .2em; color: var(--muted); }
.scr-prog .prog-rank h2 { margin: 0; font: 800 4rem/1 var(--display); letter-spacing: .06em; font-style: normal; }
.scr-prog .prog-level { margin-top: .5rem; font: 700 max(var(--tf, 11px), 1.6rem)/1 var(--display); letter-spacing: .14em; color: var(--muted); }
.scr-prog .prog-xp { width: 100%; display: grid; gap: .8rem; }
.scr-prog .prog-xp .xp-track { display: block; height: 1rem; margin: 0; border: 0; background: rgba(255, 255, 255, .08); overflow: hidden; }
.scr-prog .prog-xp #xpBar { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-lo), var(--accent)); }
.scr-prog .prog-xp div { display: flex; justify-content: space-between; gap: 1rem; font: 700 max(var(--tf, 11px), 1.4rem)/1.2 var(--display); letter-spacing: .06em; color: var(--muted); text-align: left; }
.scr-prog .prog-xp #xpNow { color: var(--paper); white-space: nowrap; }
.scr-prog .prog-xp #xpLabel { text-align: right; }
.scr-prog .prog-next { display: flex; align-items: center; gap: 1.2rem; width: 100%; padding: 1.2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; }
.scr-prog .prog-next img { width: 9rem; height: 3.6rem; object-fit: contain; flex: none; }
.scr-prog .prog-next p { margin: 0; font: 700 max(var(--tf, 11px), 1.6rem)/1.3 var(--display); letter-spacing: .04em; color: var(--paper); }
.scr-prog .prog-ladder { display: flex; justify-content: space-between; width: 100%; padding-top: .4rem; }
.scr-prog .prog-ladder span { display: grid; justify-items: center; gap: .6rem; font: 700 max(var(--tf, 11px), 1.1rem)/1 var(--display); letter-spacing: .1em; color: #56657a; }
.scr-prog .prog-ladder span::before { content: ''; width: 1.6rem; height: 1.6rem; transform: rotate(45deg); background: var(--c); opacity: .35; }
.scr-prog .prog-ladder span.on { color: var(--paper); } .scr-prog .prog-ladder span.on::before { opacity: 1; box-shadow: 0 0 0 .3rem rgba(255, 255, 255, .12); }
.scr-prog .prog-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 0 4rem; }
.scr-prog .profile-stat { display: block; padding: 2.2rem 0; margin: 0; border: 0; border-bottom: 1px solid var(--line); background: none; clip-path: none; box-shadow: none; text-align: left; }
.scr-prog .profile-stat b { display: block; font: 800 6rem/1 var(--display); letter-spacing: .01em; color: var(--paper); }
.scr-prog .profile-stat small { display: block; margin-top: .6rem; font: 700 max(var(--tf, 11px), 1.4rem)/1 var(--display); letter-spacing: .14em; color: var(--muted); }
.scr-prog .prog-earn { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; font: 600 max(var(--tf, 11px), 1.45rem)/1 var(--body); color: var(--muted); }
.scr-prog .prog-earn b { font: 800 max(var(--tf, 11px), 1.4rem)/1 var(--display); letter-spacing: .14em; color: var(--paper); }
.scr-prog .prog-earn em { font: 800 max(var(--tf, 11px), 1.6rem)/1 var(--display); font-style: normal; color: var(--gold); margin-left: .4rem; }
.scr-prog .prog-stats .scr-note { display: block; margin-top: 1.6rem; color: var(--gold); }
.scr-prog .prog-goals { display: flex; flex-direction: column; min-height: 0; }
.scr-prog .prog-goals h3 { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 .6rem; font: 800 1.8rem/1 var(--display); letter-spacing: .14em; color: var(--paper); }
.scr-prog .prog-goals h3 small { font: 600 max(var(--tf, 11px), 1.35rem)/1 var(--body); letter-spacing: 0; color: var(--muted); }
.scr-prog #goalList { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.scr-prog .goal { display: grid; grid-template-columns: 4.4rem minmax(0, 1fr) auto; grid-template-areas: "ic name pay" "ic task pay" ". bar ."; gap: .4rem 1.4rem; align-items: center;
  padding: 1.5rem 0; margin: 0; border: 0; border-bottom: 1px solid var(--line); background: none; clip-path: none; box-shadow: none; }
.scr-prog .goal-ic { grid-area: ic; width: 4.4rem; height: 4.4rem; display: grid; place-items: center; font-size: 2.2rem; color: var(--gold); background: rgba(255, 200, 61, .08);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.scr-prog .goal-ic svg { width: 1em; height: 1em; }
.scr-prog .goal > b { grid-area: name; font: 800 1.9rem/1 var(--display); letter-spacing: .05em; color: var(--paper); }
.scr-prog .goal > p { grid-area: task; margin: 0; font: 500 max(var(--tf, 11px), 1.45rem)/1.2 var(--body); color: var(--muted); }
.scr-prog .goal-pay { grid-area: pay; text-align: right; font: 800 1.8rem/1 var(--display); color: var(--gold); }
.scr-prog .goal-pay small { display: block; margin-top: .5rem; font: 700 max(var(--tf, 11px), 1.25rem)/1 var(--display); letter-spacing: .1em; color: var(--muted); }
.scr-prog .goal-bar { grid-area: bar; display: block; height: .5rem; margin-top: .4rem; background: rgba(255, 255, 255, .08); position: relative; }
.scr-prog .goal-bar::after { content: ''; position: absolute; inset: 0 calc(100% - var(--v)) 0 0; background: var(--gold); }
.scr-prog .goal.done .goal-ic { color: #04161d; background: #5fe08a; } .scr-prog .goal.done .goal-pay { color: #5fe08a; } .scr-prog .goal.done > b { color: var(--muted); }
.scr-prog .goal.done .goal-bar { display: none; }
.scr-prog .prog-goals .scr-link { margin-top: 1.2rem; }
@media (max-height: 520px) {
  .scr-prog .prog-main { grid-template-columns: 26rem minmax(0, 1fr) 40rem; gap: 2.8rem; padding-top: 1.4rem; }
  .scr-prog .prog-emb { width: 12rem; height: 13.6rem; } .scr-prog .prog-emb b { font-size: 5.6rem; } .scr-prog .prog-emb small { bottom: 2.6rem; font-size: max(var(--tf, 11px), 1.1rem); }
  .scr-prog .prog-rank { gap: 1rem; } .scr-prog .prog-rank h2 { font-size: 2.8rem; } .scr-prog .prog-level { display: none; }
  .scr-prog .prog-next, .scr-prog .prog-ladder, .scr-prog .prog-earn { display: none; }
  .scr-prog .profile-stat { padding: 1.1rem 0; } .scr-prog .profile-stat b { font-size: 4rem; } .scr-prog .profile-stat small { font-size: max(var(--tf, 11px), 1.2rem); }
  .scr-prog .goal { padding: .9rem 0; gap: .3rem 1rem; grid-template-columns: 3.6rem minmax(0, 1fr) auto; } .scr-prog .goal-ic { width: 3.6rem; height: 3.6rem; font-size: 1.8rem; }
  .scr-prog .goal > b { font-size: 1.65rem; } .scr-prog .goal > p { font-size: max(var(--tf, 11px), 1.3rem); }
  .scr-prog .prog-goals .scr-link { margin-top: .4rem; }
}


/* ---------- Locker (its own page) ---------- */
.scr-locker { --home-art: url("assets/maps/wide/dockyard.webp"); pointer-events: auto; }
.scr a.scr-back { text-decoration: none; }
.scr-locker .lk-wallet { margin-left: auto; align-self: center; display: flex; align-items: center; gap: 2.4rem; }
.scr-locker .lk-who { font: 800 max(var(--tf, 11px), 1.6rem)/1 var(--display); letter-spacing: .08em; color: var(--paper); white-space: nowrap; }
.scr-locker .lk-ad { display: grid; gap: .3rem; text-align: right; color: var(--gold); }
.scr-locker .lk-ad b { font: 800 max(var(--tf, 11px), 1.5rem)/1 var(--display); letter-spacing: .08em; }
.scr-locker .lk-ad small { font: 700 max(var(--tf, 11px), 1.1rem)/1 var(--display); letter-spacing: .1em; color: var(--muted); }
.scr-locker .lk-ad:disabled { opacity: .5; cursor: default; }
.scr-locker .lk-main { display: grid; grid-template-columns: 50rem minmax(0, 1fr) 46rem; gap: 3rem; min-height: 0; padding-top: 2.6rem; }
.scr-locker .lk-left { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.scr-locker .lk-roster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; align-content: start; }
.scr .locker-card { position: relative; overflow: hidden; aspect-ratio: 3 / 4; display: block; padding: 0; width: auto; margin: 0; border: 0;
  clip-path: polygon(1rem 0, 100% 0, 100% calc(100% - 1rem), calc(100% - 1rem) 100%, 0 100%, 0 1rem);
  background: linear-gradient(180deg, #1b2433, #0f1520); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: background .12s; }
@media (hover: hover) { .scr .locker-card:hover { background: linear-gradient(180deg, #223047, #121a27); } }
.scr .locker-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.scr .locker-card .lk-plate { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: .3rem; padding: 1.4rem .8rem .7rem; text-align: left; background: linear-gradient(180deg, rgba(6, 10, 16, 0), rgba(6, 10, 16, .92)); }
.scr .locker-card b { font: 800 max(var(--tf, 11px), 1.5rem)/1 var(--display); letter-spacing: .05em; color: var(--paper); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scr .locker-card .lk-plate span { display: flex; align-items: center; gap: .3rem; font: 700 max(var(--tf, 11px), 1.15rem)/1 var(--display); letter-spacing: .08em; color: var(--muted); }
.scr .locker-card .lk-plate svg { width: 1.2rem; height: 1.2rem; color: var(--gold); }
.scr .locker-card.worn .lk-plate span { color: var(--accent); }
.scr .locker-card.selected { background: linear-gradient(180deg, rgba(41, 216, 255, .22), rgba(41, 216, 255, .04)); box-shadow: inset 0 0 0 .25rem var(--accent); }
.scr .locker-card.selected::before { content: ''; position: absolute; right: 0; top: 0; z-index: 1; width: 3rem; height: 3rem; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.scr .locker-card .lk-tick { position: absolute; right: .3rem; top: .25rem; z-index: 2; width: 1.4rem; height: 1.4rem; color: var(--accent-ink); stroke-width: 3.4; }
.scr-locker .lk-eyebrow { margin: 0 0 1rem; font: 700 max(var(--tf, 11px), 1.3rem)/1 var(--display); letter-spacing: .16em; color: var(--muted); }
.scr-locker .lk-gun-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-bottom: 1.4rem; }
.scr .locker-gun { display: grid; grid-template-columns: 5rem 1fr; grid-template-rows: auto auto; gap: .4rem 1.4rem; align-items: center; padding: 1.4rem; text-align: left;
  background: linear-gradient(180deg, #1b2433, #0f1520); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); clip-path: polygon(1rem 0, 100% 0, 100% calc(100% - 1rem), calc(100% - 1rem) 100%, 0 100%, 0 1rem); }
.scr .locker-gun i { grid-row: 1 / 3; width: 5rem; height: 5rem; background: var(--swatch); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.scr .locker-gun span { font: 800 1.8rem/1 var(--display); letter-spacing: .05em; color: var(--paper); }
.scr .locker-gun small { font: 700 max(var(--tf, 11px), 1.2rem)/1 var(--display); letter-spacing: .1em; color: var(--muted); }
.scr .locker-gun[aria-pressed="true"] { box-shadow: inset 0 0 0 .25rem var(--accent); } .scr .locker-gun[aria-pressed="true"] small { color: var(--accent); }
.scr .locker-gun:disabled { cursor: default; } .scr .locker-gun:disabled i, .scr .locker-gun:disabled span { opacity: .4; filter: grayscale(.7); }
.scr-locker .lk-stage { position: relative; min-height: 0; }
.scr-locker #lockerView { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.scr-locker #lockerNoGfx { position: absolute; inset: auto 2rem 40% 2rem; text-align: center; }
.scr-locker .lk-turn { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; align-items: center; gap: .6rem; font: 700 max(var(--tf, 11px), 1.2rem)/1 var(--display); letter-spacing: .14em; color: #56657a; pointer-events: none; }
.scr-locker .lk-info { display: flex; flex-direction: column; gap: 1.2rem; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 0 .4rem .4rem 0; }
.scr-locker .lk-info h2 { margin: -.2rem 0 0; font: 800 7.2rem/.9 var(--display); letter-spacing: .01em; color: var(--paper); font-style: normal; overflow-wrap: anywhere; }
.scr-locker .lk-tag { font: 700 max(var(--tf, 11px), 1.4rem)/1.2 var(--display); letter-spacing: .08em; color: var(--muted); }
.scr-locker .lk-info p { margin: 0; font: 500 max(var(--tf, 11px), 1.55rem)/1.45 var(--body); color: var(--muted); }
.scr-locker .lk-info .lk-req { color: var(--paper); }
.scr-locker .lk-info p:empty { display: none; }
.scr-locker .lk-blk { padding-top: 1.2rem; border-top: 1px solid var(--line); }
.scr-locker .lk-sw { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.scr .locker-finish { display: grid; justify-items: center; gap: .5rem; padding: .4rem; min-width: 7rem; font: 700 max(var(--tf, 11px), 1.2rem)/1 var(--display); letter-spacing: .08em; color: var(--muted); background: none; border: 0; }
.scr .locker-finish i { width: 5.4rem; height: 5.4rem; background: var(--swatch); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); box-shadow: inset 0 0 0 .4rem rgba(255, 255, 255, 0); }
.scr .locker-finish.selected { color: var(--paper); }
.scr .locker-finish.selected i { box-shadow: none; filter: drop-shadow(0 0 0 transparent); outline: none; background: radial-gradient(closest-side, var(--swatch) 78%, transparent 79%), var(--accent); }
.scr .locker-finish small { display: flex; align-items: center; gap: .3rem; color: var(--gold); font: 700 max(var(--tf, 11px), 1.15rem)/1 var(--display); }
.scr .locker-finish small svg { width: 1.2rem; height: 1.2rem; }
.scr-locker #lockerAction { width: 100%; flex: none; margin-top: .6rem; }
.scr-locker #lockerAction b { font: 800 2.8rem/1 var(--display); letter-spacing: .05em; white-space: nowrap; }
.scr-locker .lk-links { display: flex; flex-wrap: wrap; gap: 0 2.4rem; }
.scr-locker .lk-status { color: var(--accent) !important; }
@media (max-height: 520px) {
  .scr-locker .lk-main { grid-template-columns: 42rem minmax(0, 1fr) 36rem; gap: 1.6rem; padding-top: 1.2rem; }
  .scr-locker .lk-roster { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .6rem; }
  .scr .locker-card b { font-size: max(var(--tf, 11px), 1.2rem); } .scr .locker-card .lk-plate span { font-size: max(var(--tf, 11px), 1rem); } .scr .locker-card .lk-plate { padding: 1rem .5rem .4rem; }
  .scr-locker .lk-info h2 { font-size: 5.2rem; } .scr-locker #lockerDesc, .scr-locker .lk-tag, .scr-locker .locker-fair, .scr-locker .lk-turn { display: none; }
  .scr-locker .lk-info { gap: .8rem; } .scr-locker .lk-info p { font-size: max(var(--tf, 11px), 1.35rem); }
  .scr .locker-finish i { width: 4.4rem; height: 4.4rem; } .scr-locker .lk-sw { gap: 1rem; }
  .scr-locker #lockerAction { min-height: 6rem; } .scr-locker #lockerAction b { font-size: 2.4rem; }
  .scr-locker .lk-gun-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; } .scr .locker-gun { padding: 1rem; grid-template-columns: 4rem 1fr; } .scr .locker-gun i { width: 4rem; height: 4rem; }
  .scr-locker .lk-who { font-size: max(var(--tf, 11px), 1.3rem); }
}

.scr .locker-finish::before { display: none; }

/* ---------- Play Online: the first screen (Quick Play, a room with friends, a code) ---------- */
#roomMenu:has(#roomForm:not([hidden])) { padding: 2.4rem max(3.2rem, env(safe-area-inset-right)) max(2.8rem, env(safe-area-inset-bottom)) max(3.2rem, env(safe-area-inset-left)) !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important; gap: 2rem !important; }
#roomMenu:has(#roomForm:not([hidden]))::before { content: ''; position: fixed; inset: -4%; z-index: -1; background: var(--home-art, #0b1016) center / cover; filter: blur(8px) saturate(.8) brightness(.5); pointer-events: none; }
#roomMenu:has(#roomForm:not([hidden]))::after { content: ''; position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 10, 16, .82), rgba(6, 10, 16, .4) 30%, rgba(6, 10, 16, .6) 70%, rgba(6, 10, 16, .95)); pointer-events: none; }
#roomMenu:has(#roomForm:not([hidden])) .lobby-main { display: grid; min-height: 0; align-content: stretch; max-width: none; width: 100%; }
#roomMenu:has(#roomForm:not([hidden])) .lobby-top { align-items: center; }
#roomMenu:has(#roomForm:not([hidden])) .lobby-title { justify-self: start; text-align: left; }
#roomMenu:has(#roomForm:not([hidden])) .lobby-title h2 { font: 800 4.6rem/1 var(--display) !important; letter-spacing: .02em; margin: 0; }
#roomMenu:has(#roomForm:not([hidden])) #connection { font: 700 max(var(--tf, 11px), 1.35rem)/1.2 var(--display) !important; letter-spacing: .1em; color: var(--muted); margin-top: .4rem; }
/* the top icons: no boxes, an icon and a word */
#roomMenu .lobby-icons { gap: 2.6rem !important; }
#roomMenu .lobby-icons .icon-button { clip-path: none; background: none !important; box-shadow: none !important; min-width: 44px; min-height: 44px; padding: 0 !important;
  display: grid; justify-items: center; align-content: center; gap: .4rem; font: 700 max(var(--tf, 11px), 1.2rem)/1 var(--display) !important; letter-spacing: .12em; color: var(--muted) !important; }
#roomMenu .lobby-icons .icon-button svg { width: 2.6rem; height: 2.6rem; color: var(--paper); }
@media (hover: hover) { #roomMenu .lobby-icons .icon-button:hover { color: var(--paper) !important; } #roomMenu .lobby-icons .icon-button:hover svg { color: var(--accent); } }
#roomMenu .lobby-top .name-card { clip-path: none; background: none !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; }
#roomMenu .lobby-top .name-card .avatar { display: none; }

.on-form { display: grid !important; grid-template-columns: 1.25fr 1fr; gap: 1.6rem; min-height: 0; }
.on-form h3 { margin: 0; display: flex; align-items: center; gap: 1rem; font: 800 2.8rem/1 var(--display); letter-spacing: .03em; color: var(--paper); }
.on-form h3 svg { font-size: 2.6rem; color: var(--accent); }
/* quick play: one big picture */
.on-form .on-qp { position: relative; display: grid; align-content: end; gap: 1.4rem; padding: 3.6rem; min-height: 0; overflow: hidden;
  clip-path: polygon(1.8rem 0, 100% 0, 100% calc(100% - 1.8rem), calc(100% - 1.8rem) 100%, 0 100%, 0 1.8rem); background: #0b1016 url("assets/maps/wide/downtown.webp") center / cover; }
.on-form .on-qp::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 10, 16, 0) 10%, rgba(6, 10, 16, .7) 50%, rgba(6, 10, 16, .95)); }
.on-form .on-qp > * { position: relative; }
.on-form .on-qp h3 { font-size: 9rem; line-height: .85; letter-spacing: .01em; }
.on-form .on-qp p { margin: 0; max-width: 52rem; font: 500 1.75rem/1.4 var(--body); color: #c4cfdb; }
.on-form .on-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 3rem; margin-top: 1rem; }
.on-form .on-go { display: flex; align-items: center; gap: 1.2rem; white-space: nowrap; }
.on-form #quickPlay { min-width: 28rem; align-items: center; }
.on-form #quickPlay svg { stroke-width: 2.6; }
#soloPractice { padding: 0; text-decoration: none; font: 700 max(var(--tf, 11px), 1.6rem)/1 var(--display) !important; letter-spacing: .08em; color: var(--muted); }
/* friends: the map picture on top, two choices, a steel button */
.on-form .on-side { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 1.6rem; min-height: 0; }
.on-form .on-room, .on-form .on-code { background: rgba(14, 20, 30, .84); clip-path: polygon(1.4rem 0, 100% 0, 100% calc(100% - 1.4rem), calc(100% - 1.4rem) 100%, 0 100%, 0 1.4rem); }
.on-form .on-room { display: flex; flex-direction: column; gap: 1.6rem; padding: 0 3rem 2.6rem; min-height: 0; }
.on-form .on-room.tile-focus { outline: none !important; box-shadow: none !important; } /* owner: "remove this box blue borders, it looks bad" */
.on-form .on-banner { position: relative; flex: 1 1 18rem; min-height: 10rem; margin: 0 -3rem; padding: 2rem 3rem; display: flex; align-items: flex-end; gap: 1.4rem;
  background: #0b1016 var(--map, url("assets/maps/wide/frostline.webp")) center / cover; }
.on-form .on-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 20, 30, 0), rgba(14, 20, 30, .95)); }
.on-form .on-banner > * { position: relative; }
.on-form .on-map { display: block; margin-bottom: .6rem; font: 700 max(var(--tf, 11px), 1.4rem)/1 var(--display); letter-spacing: .14em; color: var(--accent); }
.on-form .on-change { position: relative; margin-left: auto; cursor: pointer; }

.on-form .on-opt { display: grid; grid-template-columns: 9rem minmax(0, 1fr); align-items: center; gap: 1.6rem; }
.on-form .on-opt > span { font: 700 max(var(--tf, 11px), 1.3rem)/1 var(--display); letter-spacing: .16em; color: var(--muted); }
.on-form .on-opt .segmented { display: flex; width: 100%; clip-path: none; background: none !important; border-bottom: 1px solid var(--line) !important; }
.on-form .on-opt .segmented button { flex: 1; min-height: 44px; padding: 0 .4rem; text-align: center; font: 700 max(var(--tf, 11px), 1.45rem)/1 var(--display) !important; letter-spacing: .08em; color: #56657a !important; background: none !important; }
.on-form .on-opt .segmented button[aria-checked="true"] { color: var(--paper) !important; background: none !important; box-shadow: inset 0 -.3rem 0 var(--accent) !important; }
.on-form #roomIntro { margin: 0; font: 500 max(var(--tf, 11px), 1.35rem)/1.4 var(--body) !important; color: #56657a !important; text-shadow: none; }
.on-form .on-steel { display: flex; align-items: center; justify-content: space-between; height: 5.6rem; padding: 0 2.2rem; flex: none;
  clip-path: polygon(1rem 0, 100% 0, 100% calc(100% - 1rem), calc(100% - 1rem) 100%, 0 100%, 0 1rem);
  font: 800 2rem/1 var(--display); letter-spacing: .06em; color: var(--paper); background: linear-gradient(180deg, #2c384c, #19212e); box-shadow: inset 0 .1rem 0 rgba(255, 255, 255, .1), inset 0 -.4rem 0 rgba(0, 0, 0, .4); }
.on-form .on-steel svg { font-size: 2.2rem; color: var(--accent); }
@media (hover: hover) { .on-form .on-steel:hover:not(:disabled) { background: linear-gradient(180deg, #36445b, #1f2938); } }
.on-form .on-steel:active:not(:disabled) { transform: translateY(.2rem); }
.on-form button:disabled { opacity: .5; cursor: default; }
/* a code: one field with the join arrow fixed to it */
.on-form .on-code { display: grid; gap: 1.4rem; padding: 2.4rem 3rem; }
.on-form .on-field { display: flex; height: 6rem; }
.on-form .on-field input { flex: 1; min-width: 0; height: 100%; padding: 0 2rem !important; border: 0 !important; border-radius: 0 !important; clip-path: none !important;
  font: 700 2.4rem/1 Consolas, 'Courier New', monospace !important; letter-spacing: .4em; text-transform: uppercase; color: var(--paper) !important; background: rgba(0, 0, 0, .35) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16) !important; }
.on-form .on-field input::placeholder { color: #56657a; letter-spacing: .2em; }
.on-form .on-field input:focus { outline: none; box-shadow: inset 0 0 0 .2rem var(--accent) !important; }
.on-form #joinRoom { width: 6rem; display: grid; place-items: center; font-size: 2.6rem; color: var(--accent-ink); background: var(--accent); }
.on-form #joinRoom svg { stroke-width: 2.6; }
@media (max-height: 520px) {
  #roomMenu:has(#roomForm:not([hidden])) { padding: 1.4rem max(2.4rem, env(safe-area-inset-right)) max(1.4rem, env(safe-area-inset-bottom)) max(2.4rem, env(safe-area-inset-left)) !important; gap: 1.2rem !important; }
  #roomMenu .lobby-icons .icon-button span { display: none; }
  #roomMenu:has(#roomForm:not([hidden])) .lobby-title h2 { font-size: 3.6rem !important; }
  .on-form { gap: 1.2rem; }
  .on-form .on-qp { padding: 2.4rem; } .on-form .on-qp h3 { font-size: 6.4rem; } .on-form .on-qp p { font-size: max(var(--tf, 11px), 1.45rem); }
  .on-form #quickPlay { min-height: 6.2rem; min-width: 22rem; font-size: 2.5rem; }
  .on-form .on-room { padding: 0 2rem 1.6rem; gap: 1.1rem; } .on-form .on-banner { flex-basis: 10rem; margin: 0 -2rem; padding: 1.4rem 2rem; }
  .on-form h3 { font-size: 2.2rem; } .on-form .on-opt { grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; }
  .on-form #roomIntro { display: none; } .on-form .on-banner { min-height: 6rem; }
  .on-form .on-steel { height: 4.8rem; font-size: 1.8rem; }
  .on-form .on-code { padding: 1.4rem 2rem; gap: 1rem; grid-template-columns: auto 1fr; align-items: center; } .on-form .on-code h3 span { display: none; }
  .on-form .on-field { height: 4.8rem; } .on-form .on-field input { font-size: 2rem !important; } .on-form #joinRoom { width: 4.8rem; }
}

.on-form .on-opt .segmented button { white-space: nowrap; }
@media (max-height: 520px) { .on-form .on-opt { grid-template-columns: 5.6rem minmax(0, 1fr); } .on-form .on-opt .segmented button { font-size: max(var(--tf, 11px), 1.3rem) !important; letter-spacing: .04em; } }

/* screens held upright (the Account page can open outside the sideways shell): the type follows the width */
@media (orientation: portrait) { html { font-size: max(7px, min(calc(100vw / 52), calc(100vh / 90))); } }

/* ---------- Account: what an account gives you on the left, the sign-in sheet on the right ---------- */
main.acc-screen { position: relative; isolation: isolate; max-width: none; min-height: 100vh; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 60rem; grid-template-rows: auto minmax(0, 1fr);
  gap: 2rem 4rem; padding: 2.4rem max(3.2rem, env(safe-area-inset-right)) max(2.8rem, env(safe-area-inset-bottom)) max(3.2rem, env(safe-area-inset-left)); }
.acc-screen .acc-world { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #0b1016; pointer-events: none; }
.acc-screen .acc-world::before { content: ''; position: absolute; inset: -4%; background: url("assets/maps/wide/dockyard.webp") center / cover; filter: blur(8px) saturate(.8) brightness(.55); }
.acc-screen .acc-world::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 10, 16, .8), rgba(6, 10, 16, .35) 30%, rgba(6, 10, 16, .55) 70%, rgba(6, 10, 16, .94)); }
.acc-screen .acc-top { grid-column: 1 / -1; display: flex; margin: 0; gap: 0; }
.acc-screen .acc-back { display: flex; align-items: center; gap: 1.4rem; min-height: 44px; color: var(--paper); text-decoration: none; }
.acc-screen .acc-back svg { width: 3rem; height: 3rem; color: var(--muted); transition: transform .12s, color .12s; }
@media (hover: hover) { .acc-screen .acc-back:hover svg { color: var(--accent); transform: translateX(-.4rem); } }
.acc-screen .acc-back span { display: grid; }
.acc-screen .acc-back small { font: 700 max(var(--tf, 11px), 1.25rem)/1 var(--display); letter-spacing: .16em; color: var(--accent); margin-bottom: .4rem; }
.acc-screen .acc-back b { font: 800 4.6rem/1 var(--display); letter-spacing: .02em; }
.acc-screen .acc-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }
.acc-screen .acc-pitch { position: sticky; top: 2.4rem; align-self: start; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 3rem; height: calc(100vh - 14rem); min-height: 36rem; }
.acc-screen .acc-crew { display: flex; justify-content: center; align-items: flex-end; min-height: 0; }
.acc-screen .acc-crew img { height: 100%; max-height: 52rem; min-width: 0; object-fit: contain; margin: 0 -5rem; filter: drop-shadow(0 2rem 2rem rgba(0, 0, 0, .5)); }
.acc-screen .acc-crew img:nth-child(2) { height: 108%; max-height: 56rem; position: relative; z-index: 1; }
.acc-screen .acc-perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem 4rem; max-width: 72rem; }
.acc-screen .acc-perks li { display: grid; grid-template-columns: 4.4rem 1fr; gap: 1.4rem; align-items: center; color: var(--muted); }
.acc-screen .acc-perks svg { width: 3rem; height: 3rem; color: var(--accent); justify-self: center; }
.acc-screen .acc-perks span { font: 500 max(var(--tf, 11px), 1.5rem)/1.3 var(--body); }
.acc-screen .acc-perks b { display: block; margin-bottom: .4rem; font: 800 2rem/1 var(--display); letter-spacing: .05em; color: var(--paper); }
/* the sheet */
.acc-screen .account-card { align-self: center; max-width: none; width: 100%; margin: 0; padding: 3.6rem 4rem 3.2rem; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  background: rgba(14, 20, 30, .9) !important; clip-path: polygon(1.8rem 0, 100% 0, 100% calc(100% - 1.8rem), calc(100% - 1.8rem) 100%, 0 100%, 0 1.8rem); }
.acc-screen .account-card p { font: 500 max(var(--tf, 11px), 1.5rem)/1.5 var(--body); }
.acc-screen #accountStatus:empty, .acc-screen #accountError:empty { display: none; }
.acc-screen .account-lead { color: var(--muted) !important; margin: 0 0 1rem; }
.acc-screen .auth-tabs { display: flex; gap: 0; margin: 0 0 2.4rem; border-bottom: 1px solid var(--line); }
.acc-screen .auth-tabs button { flex: 1; clip-path: none; background: none !important; box-shadow: none !important; border: 0 !important; padding: 1.4rem 0 !important; min-height: 44px;
  font: 800 2rem/1 var(--display) !important; letter-spacing: .1em; color: #56657a !important; }
.acc-screen .auth-tabs button[aria-pressed="true"] { color: var(--paper) !important; box-shadow: inset 0 -.3rem 0 var(--accent) !important; }
@media (hover: hover) { .acc-screen .auth-tabs button:hover { color: var(--paper) !important; } }
.acc-screen #accountForm { gap: 2.2rem; }
.acc-screen #accountForm label { gap: .8rem; font: 700 max(var(--tf, 11px), 1.3rem)/1 var(--display); letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.acc-screen .acc-field { display: flex; align-items: center; gap: 1.4rem; height: 6rem; padding: 0 1.8rem; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.acc-screen .acc-field:focus-within { box-shadow: inset 0 0 0 .2rem var(--accent); }
.acc-screen .acc-field > svg { width: 2.2rem; height: 2.2rem; flex: none; color: #56657a; }
.acc-screen .acc-field:focus-within > svg { color: var(--accent); }
.acc-screen #accountForm .acc-field input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0 !important; background: none !important; box-shadow: none !important; outline: none;
  font: 500 1.8rem/1 var(--body); text-transform: none; letter-spacing: 0; color: var(--paper); }
.acc-screen .acc-field input::placeholder { color: #56657a; }
.acc-screen .acc-eye { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -1rem; cursor: pointer; color: var(--muted); }
.acc-screen .acc-eye svg { width: 2.2rem; height: 2.2rem; } .acc-screen .acc-eye[aria-pressed="true"] { color: var(--accent); }
.acc-screen .acc-eye:focus-visible { outline: 2px solid var(--accent); }
.acc-screen #accountSubmit, .acc-screen .account-play { width: 100%; min-height: 6.8rem; margin: .4rem 0 0; font-size: 2.8rem !important; justify-content: center; --cut: 1.4rem; }
.acc-screen .acc-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; margin: 2rem 0 1rem; }
.acc-screen .acc-links .text-button { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; cursor: pointer; font: 700 max(var(--tf, 11px), 1.6rem)/1 var(--display); letter-spacing: .08em; color: var(--accent); }
.acc-screen .acc-links .acc-guest { color: var(--muted); }
.acc-screen .acc-links svg { width: 1.8rem; height: 1.8rem; }
.acc-screen .acc-links .text-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) { .acc-screen .acc-links .acc-guest:hover { color: var(--paper); } }
.acc-screen .account-legal { font-size: max(var(--tf, 11px), 1.3rem) !important; color: #56657a !important; margin: 0; }
.acc-screen .account-legal a { color: var(--muted); }
@media (max-height: 520px) and (orientation: landscape) {
  main.acc-screen { grid-template-columns: minmax(0, 1fr) 46rem; gap: 1.2rem 2.4rem; padding-top: 1.4rem; padding-bottom: 1.6rem; }
  .acc-screen .acc-pitch { height: calc(100vh - 11rem); min-height: 0; gap: 1.4rem; }
  .acc-screen .acc-crew img { max-height: none; margin: 0 -3rem; } .acc-screen .acc-perks { gap: 1.4rem 2rem; } .acc-screen .acc-perks li { grid-template-columns: 3rem 1fr; gap: 1rem; }
  .acc-screen .acc-perks svg { width: 2.2rem; height: 2.2rem; } .acc-screen .acc-perks b { font-size: max(var(--tf, 11px), 1.6rem); margin: 0; } .acc-screen .acc-perks span { font-size: 0; } .acc-screen .acc-perks b { font-size: max(var(--tf, 11px), 1.6rem); }
  .acc-screen .account-card { padding: 1.8rem 2.4rem; } .acc-screen .account-lead, .acc-screen .account-legal { display: none; }
  .acc-screen .auth-tabs { margin-bottom: 1.2rem; } .acc-screen .auth-tabs button { font-size: 1.7rem !important; padding: .8rem 0 !important; }
  .acc-screen #accountForm { gap: 1.2rem; } .acc-screen .acc-field { height: 4.8rem; } .acc-screen #accountForm .acc-field input { font-size: max(var(--tf, 11px), 1.6rem); }
  .acc-screen #accountSubmit { min-height: 5.6rem; font-size: 2.3rem !important; } .acc-screen .acc-links { margin: 1rem 0 0; }
}
@media (orientation: portrait) {
  main.acc-screen { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .acc-screen .acc-pitch { position: static; order: 2; height: auto; min-height: 0; } .acc-screen .acc-crew { display: none; }
  .acc-screen .account-card { order: 1; }
}

.acc-screen .acc-links #recoverTab, .acc-screen .acc-links .acc-guest { width: auto !important; margin: 0 !important; padding: 0 !important; display: inline-flex !important; font: 700 max(var(--tf, 11px), 1.6rem)/1 var(--display) !important; letter-spacing: .08em !important; }
.acc-screen .acc-links #recoverTab { color: var(--accent) !important; } .acc-screen .acc-links .acc-guest { color: var(--muted) !important; }
.acc-screen #accountSubmit, .acc-screen .account-play { font: 800 2.8rem/1 var(--display) !important; letter-spacing: .05em !important; }
@media (max-height: 520px) and (orientation: landscape) { .acc-screen #accountSubmit { font-size: 2.3rem !important; } }

/* ---------- the lobby, second pass (same layout as approved; the boxes go, docs/design-v080/1-lobby) ---------- */
/* the rail: icons with words, the current one marked by a cyan bar at the screen edge */
.lb-rail { gap: 22px !important; }
.lb-rb { position: relative; width: 72px !important; height: auto !important; min-height: 56px; clip-path: none !important; background: none !important; box-shadow: none !important; overflow: visible; }
.lb-rb svg { width: 30px !important; height: 30px !important; opacity: .82; }
.lb-rb.on svg, .lb-rb:hover svg { opacity: 1; }
.lb-rb.on { background: none !important; box-shadow: none !important; }
.lb-rb.on::before { content: ''; position: absolute; left: -24px; top: 2px; bottom: 2px; width: 4px; background: var(--accent); }
.lb-rb small { color: var(--accent); }
/* the top icons: bare, with a word under each on wide screens */
.lb-icons { gap: 26px !important; align-items: center; }
.lb-icons .icon-button { width: auto !important; min-width: 44px !important; height: auto !important; min-height: 44px; clip-path: none !important; background: none !important; box-shadow: none !important;
  display: grid !important; justify-items: center; align-content: center; gap: 5px; color: var(--muted) !important; }
.lb-icons .icon-button svg { width: 25px !important; height: 25px !important; color: var(--paper); }
.lb-icons .icon-button span { position: static !important; width: auto !important; height: auto !important; overflow: visible !important; clip: auto !important; font: 700 11px/1 var(--display); letter-spacing: .12em; }
@media (hover: hover) { .lb-icons .icon-button:hover { color: var(--paper) !important; } .lb-icons .icon-button:hover svg { color: var(--accent); } }
/* the player card: words over the map, no plate */
.lb-card { clip-path: none !important; background: none !important; box-shadow: none !important; }
/* mode: three words with a cyan underline */
.lb-play .mode-pick { gap: 0 !important; border-bottom: 1px solid var(--line); }
.lb-play .mode-pick button { clip-path: none !important; background: none !important; box-shadow: none !important; color: #56657a !important; }
.lb-play .mode-pick button[aria-pressed="true"] { background: none !important; color: var(--paper) !important; box-shadow: inset 0 -3px 0 var(--accent) !important; }
@media (hover: hover) { .lb-play .mode-pick button:hover { color: var(--paper) !important; } }
/* small actions become words with an arrow */
:is(#mapCard, #missionCard) .map-view .map-all { background: none !important; padding: 6px 0 !important; color: var(--accent) !important; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
@media (hover: hover) { :is(#mapCard, #missionCard) .map-view:hover .map-all { background: none !important; color: var(--paper) !important; } :is(#mapCard, #missionCard) .map-view:hover .map-all svg { color: var(--paper) !important; } }
.lb-chip { clip-path: none !important; background: none !important; box-shadow: none !important; padding: 0 !important; color: var(--accent) !important; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.lb-chip svg { color: var(--accent) !important; }
@media (hover: hover) { .lb-chip:hover { background: none !important; color: var(--paper) !important; } }
/* online and friends: two small picture tiles */
.lb-duo .home-choice { position: relative; isolation: isolate; overflow: hidden; background: #0b1016 center / cover !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08) !important; }
.lb-duo .home-choice::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 10, 16, .92), rgba(6, 10, 16, .45)); transition: opacity .15s; }
@media (hover: hover) { .lb-duo .home-choice:hover::before { opacity: .75; } }
#onlineOpen { background-image: url("assets/maps/wide/downtown.webp") !important; }
#friendsPlay { background-image: url("assets/maps/wide/frostline.webp") !important; }
.lb-duo .home-choice svg { color: var(--accent) !important; }
/* practice: a line of words, not a box */
.lb-play .lb-practice { clip-path: none !important; background: none !important; box-shadow: none !important; border-top: 1px solid var(--line) !important; height: 48px !important; padding: 0 2px !important; }
.lb-play .lb-practice > svg:first-child { color: var(--accent) !important; }
.lb-play .lb-practice .lb-go { color: var(--accent) !important; }
@media (hover: hover) { .lb-play .lb-practice:hover { background: none !important; } .lb-play .lb-practice:hover b { color: var(--accent); } }
@media (max-height: 540px) {
  .lb-rail { gap: 6px !important; } .lb-rb { width: 58px !important; min-height: 42px; } .lb-rb svg { width: 22px !important; height: 22px !important; }
  .lb-rb.on::before { left: max(-12px, calc(-1 * env(safe-area-inset-left))); left: -12px; }
  .lb-icons { gap: 14px !important; } .lb-icons .icon-button span { display: none; } .lb-icons .icon-button svg { width: 22px !important; height: 22px !important; }
}

.lb-missions { clip-path: none !important; background: none !important; box-shadow: none !important; padding-left: 0 !important; padding-right: 0 !important; }
.lb-missions h2 { color: var(--muted) !important; }

/* v0.80 screens held upright (tests and tall narrow windows; phones play sideways in the shell): one column that scrolls */
@media (orientation: portrait) {
  .overlay.scr { grid-template-rows: auto auto; overflow-y: auto; overscroll-behavior: contain; }
  .scr .scr-top { flex-wrap: wrap; gap: 1.6rem 3rem; }
  .scr-guns .gun-main, .scr-how .how-main, .scr-prog .prog-main, .scr-locker .lk-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .scr-guns .gun-show { height: 24rem; } .scr-guns .gun-strip { grid-template-columns: minmax(0, 1fr); }
  .scr-guns .gun-cards { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scr-how .how-keys { grid-template-columns: minmax(0, 1fr); } .scr-how .how-side { padding-left: 0; border-left: 0; } .scr-how .how-pane { overflow: visible; }
  .scr-prog #goalList { overflow: visible; }
  .scr-locker .lk-stage { height: 40vh; } .scr-locker .lk-left, .scr-locker .lk-info { overflow: visible; }
  .on-form { grid-template-columns: minmax(0, 1fr) !important; }
  #roomMenu:has(#roomForm:not([hidden])) { overflow-y: auto; }
}

/* v0.80 the shortest phones (568 x 320): the friends tile keeps CREATE ROOM on screen */
@media (max-height: 360px) {
  .on-form .on-banner { flex: 0 0 auto; min-height: 0; padding-top: 1rem; padding-bottom: 1rem; } .on-form .on-banner h3 { display: none !important; } .on-form .on-map { margin: 0; }
  .on-form .on-room { gap: .4rem; overflow-y: auto; padding-bottom: 1rem; } .on-form .on-opt .segmented button { min-height: 30px !important; height: 30px; }
  .on-form .on-banner h3 { white-space: nowrap; font-size: 1.8rem; } .on-form .on-banner h3 svg { display: none; } .on-form .on-steel { height: 3.6rem; } .on-form .on-banner { gap: .8rem; }
  .on-form .on-qp p { display: none; } .on-form .on-qp h3 { font-size: 5.2rem; }
}
/* v0.80: on short phones the death card starts below the top bar (the v0.79 clock sits top centre; 740 x 360 touched it) */
@media (max-height: 540px) { #death.death-card { top: max(13%, 60px); } }

/* v0.80 phone floor: no text under 10px (on a 664 x 390 phone 1rem is about 6.4px). Every v0.80 rule that sets text
   below 1.9rem (10px on the 568 x 320 phones, where 1rem is about 5.5px), collected by a script: */
@media (max-height: 520px) {
  .scr .scr-back small,
  .scr .scr-tabs button,
  .scr .scr-kicker,
  .scr .scr-note,
  .scr .scr-go small,
  .scr .scr-link,
  .scr .scr-link svg,
  .scr-guns .gun-stat,
  .scr-guns .gun-stat b,
  .scr .gun-card-name small,
  .scr .gun-card > svg,
  .scr .gun-card-lock,
  .scr .gun-card-lock svg,
  .scr-how .how-grp h3,
  .scr-how .controls,
  .scr-how .controls kbd,
  .scr-how .rule p,
  .scr-how .how-phone .lbl,
  .scr-how .how-phone .lbl small,
  .scr-how .how-touch .keys-touch,
  .scr-how .how-tips .tips,
  .scr-how .how-tips .touch-legend,
  .scr-how .rule strong,
  .scr-how .controls li,
  .scr-prog .prog-emb small,
  .scr-prog .prog-level,
  .scr-prog .prog-xp div,
  .scr-prog .prog-next p,
  .scr-prog .prog-ladder span,
  .scr-prog .profile-stat small,
  .scr-prog .prog-earn,
  .scr-prog .prog-earn b,
  .scr-prog .prog-earn em,
  .scr-prog .prog-goals h3,
  .scr-prog .prog-goals h3 small,
  .scr-prog .goal > p,
  .scr-prog .goal-pay,
  .scr-prog .goal-pay small,
  .scr-prog .goal-ic,
  .scr-prog .goal > b,
  .scr-locker .lk-who,
  .scr-locker .lk-ad b,
  .scr-locker .lk-ad small,
  .scr .locker-card b,
  .scr .locker-card .lk-plate span,
  .scr-locker .lk-eyebrow,
  .scr .locker-gun span,
  .scr .locker-gun small,
  .scr-locker .lk-turn,
  .scr-locker .lk-tag,
  .scr-locker .lk-info p,
  .scr .locker-finish,
  .scr .locker-finish small,
  #roomMenu:has(#roomForm:not([hidden])) #connection,
  #roomMenu .lobby-icons .icon-button,
  .on-form .on-qp p,
  #soloPractice,
  .on-form .on-map,
  .on-form .on-opt > span,
  .on-form .on-opt .segmented button,
  .on-form #roomIntro,
  .on-form .on-steel,
  .acc-screen .acc-back small,
  .acc-screen .acc-perks span,
  .acc-screen .account-card p,
  .acc-screen #accountForm label,
  .acc-screen #accountForm .acc-field input,
  .acc-screen .acc-links .text-button,
  .acc-screen .account-legal,
  .acc-screen .acc-perks b,
  .acc-screen .auth-tabs button,
  .acc-screen .acc-links #recoverTab,
  .acc-screen .acc-links .acc-guest,
  .on-form .on-banner h3 { font-size: max(10px, 1.25rem) !important; }
}


/* v0.80 the loadout bar (practice lobby, room page; owner: "remove the dropdown"): both guns as pictures, CHANGE opens GUNS */
.lo-sum { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 26px; min-height: 48px; padding: 4px 0; cursor: pointer; color: var(--paper); font-family: var(--display); }
.lo-sum:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.lo-sum .lo-k { font: 800 16px/1 var(--display); letter-spacing: .12em; }
.lo-sum .lo-g { display: flex; align-items: center; gap: 10px; }
.lo-sum .lo-g img { width: 66px; height: 30px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); }
.lo-sum .lo-g > span { display: grid; gap: 3px; }
.lo-sum small { font: 700 11px/1 var(--display); letter-spacing: .12em; color: var(--muted); }
.lo-sum b { font: 800 17px/1 var(--display); letter-spacing: .05em; color: var(--paper); }
.lo-sum .lo-chg { display: inline-flex; align-items: center; gap: 4px; font: 700 15px/1 var(--display); letter-spacing: .08em; color: var(--accent); }
.lo-sum .lo-chg svg { width: 17px; height: 17px; transition: transform .12s; }
@media (hover: hover) { .lo-sum:hover .lo-chg svg { transform: translateX(3px); } .lo-sum:hover .lo-chg { color: var(--paper); } }
@media (max-height: 540px) {
  .lo-sum { gap: 14px; min-height: 40px; } .lo-sum .lo-k { font-size: 13px; } .lo-sum .lo-g img { width: 46px; height: 22px; }
  .lo-sum small { display: none; } .lo-sum b { font-size: 13px; } .lo-sum .lo-chg { font-size: 12px; }
}
/* the GUNS screen on the room page sits above the room's own layers */
#roomMenu ~ #gunPick, body > #gunPick { z-index: 60; }


/* v0.80 practice: the arena as a map picture (CHANGE MAP opens the gallery), the difficulty as three words with an underline */
select[data-picker] { display: none !important; }
.practice-lobby .pr-row { display: grid; grid-template-columns: auto minmax(0, 1fr); justify-items: end; align-items: center; gap: 14px; margin: 10px 0 0; }
.practice-lobby .pr-k { font: 700 14px/1 var(--display); letter-spacing: .14em; color: var(--muted); }
.practice-lobby .pr-map { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.practice-lobby .pr-map:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.practice-lobby .pr-map img { width: 112px; height: 50px; object-fit: cover; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.practice-lobby .pr-map .lo-chg { display: inline-flex; align-items: center; gap: 4px; font: 700 15px/1 var(--display); letter-spacing: .08em; color: var(--accent); }
.practice-lobby .pr-map .lo-chg svg { width: 17px; height: 17px; transition: transform .12s; }
@media (hover: hover) { .practice-lobby .pr-map:hover .lo-chg { color: var(--paper); } .practice-lobby .pr-map:hover .lo-chg svg { transform: translateX(3px); } }
.practice-lobby .pr-row .segmented { display: flex; width: 100%; max-width: 300px; clip-path: none; background: none !important; border-bottom: 1px solid var(--line) !important; }
.practice-lobby .pr-row .segmented button { flex: 1; min-height: 44px; padding: 0 4px; white-space: nowrap; font: 700 15px/1 var(--display) !important; letter-spacing: .08em; color: #56657a !important; background: none !important; box-shadow: none !important; }
.practice-lobby .pr-row .segmented button[aria-checked="true"] { color: var(--paper) !important; box-shadow: inset 0 -3px 0 var(--accent) !important; }
@media (hover: hover) { .practice-lobby .pr-row .segmented button:hover { color: var(--paper) !important; } }
@media (max-height: 540px) {
  .practice-lobby .pr-row { margin-top: 4px; gap: 10px; } .practice-lobby .pr-k { font-size: 11px; }
  .practice-lobby .pr-map img { width: 76px; height: 34px; } .practice-lobby .pr-map .lo-chg { font-size: 12px; }
  .practice-lobby .pr-row .segmented { min-width: 0; } .practice-lobby .pr-row .segmented button { min-height: 36px; font-size: 12px !important; padding: 0 8px; }
}

.practice-lobby .pr-row .segmented button { min-width: 0 !important; }
.practice-lobby .pr-map .lo-chg { white-space: nowrap; }
.practice-lobby .pr-map img { width: 84px; height: 38px; }
@media (max-height: 360px) {
  .practice-lobby .pr-row { margin-top: 0; } .practice-lobby .pr-map { min-height: 34px; } .practice-lobby .pr-map img { width: 58px; height: 28px; }
  .practice-lobby .pr-row .segmented button { min-height: 30px; }
}


/* v0.80 one view per way to play (owner: "Play Online shows just Quick Play; Play with Friends just the friends box and the code") */
.on-form .on-switch { display: none !important; }
.on-form .on-switch svg:first-child { color: var(--accent); }
.on-form[data-view="quick"] { grid-template-columns: minmax(0, 1fr); }
.on-form[data-view="quick"] .on-side { display: none; }
.on-form[data-view="quick"] .on-qp h3 { font-size: 12rem; }
.on-form[data-view="quick"] .on-qp .on-switch { display: inline-flex !important; margin-top: .4rem; color: var(--paper); }
.on-form[data-view="friends"] { grid-template-columns: minmax(0, 1fr); }
.on-form[data-view="friends"] .on-qp { display: none; }
.on-form[data-view="friends"] .on-side { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
.on-form[data-view="friends"] .on-room { grid-row: 1 / 3; }
.on-form[data-view="friends"] .on-code { align-content: center; padding: 3.6rem 3rem; }
.on-form[data-view="friends"] .on-code h3 span { display: inline !important; }
.on-form[data-view="friends"] .on-side > .on-switch { display: inline-flex !important; grid-column: 2; justify-self: start; color: var(--paper); }
@media (max-height: 520px) {
  .on-form[data-view="quick"] .on-qp h3 { font-size: 8rem; }
  .on-form[data-view="friends"] .on-code { padding: 2rem; grid-template-columns: minmax(0, 1fr); }
}
@media (max-height: 360px) { .on-form[data-view="quick"] .on-qp h3 { font-size: 6.4rem; } }
@media (orientation: portrait) { .on-form[data-view="friends"] .on-side { grid-template-columns: minmax(0, 1fr); } .on-form[data-view="friends"] .on-room { grid-row: auto; } .on-form[data-view="friends"] .on-side > .on-switch { grid-column: 1; } }

.on-form .on-code-note { display: none; margin: 0; font: 500 max(var(--tf, 11px), 1.6rem)/1.45 var(--body); color: var(--muted); }
.on-form[data-view="friends"] .on-code-note { display: block; }
.on-form[data-view="friends"] .on-banner h3 { display: none; }
.on-form[data-view="friends"] .on-map { font: 800 3.4rem/1 var(--display) !important; letter-spacing: .03em; color: var(--paper); margin: 0; }
.on-form[data-view="friends"] .on-map span { color: var(--accent); }
@media (max-height: 520px) { .on-form[data-view="friends"] .on-map { font-size: 2.4rem !important; } .on-form[data-view="friends"] .on-code-note { font-size: max(10px, 1.35rem); } }

@media (max-height: 360px) { #roomMenu:has(#roomForm:not([hidden])) .lobby-title h2 { font-size: 2.4rem !important; white-space: nowrap; } #roomMenu:has(#roomForm:not([hidden])) #connection { font-size: 10px !important; } #roomMenu .lobby-icons { gap: 1rem !important; } }
@media (max-width: 600px) { .lo-sum { flex-wrap: wrap; gap: 8px 16px; max-width: 100%; } .lo-sum .lo-g img { width: 46px; height: 22px; } }

/* ---------- v0.80 the room screen (owner, of the waiting room: "change this look completely"): the match on the left with its one
   main action, the players as a list on the right, the room code in its own panel; the character stays in the middle ---------- */
#roomMenu:has(#roomLobby:not([hidden]))::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 10, 16, .88), rgba(6, 10, 16, .25) 34%, rgba(6, 10, 16, 0) 50%, rgba(6, 10, 16, .3) 62%, rgba(6, 10, 16, .9)),
    linear-gradient(180deg, rgba(6, 10, 16, .6), rgba(6, 10, 16, 0) 20%, rgba(6, 10, 16, 0) 75%, rgba(6, 10, 16, .8)); }
#roomLobby:not([hidden]) { display: grid !important; grid-template-columns: 40rem minmax(0, 1fr) 50rem; grid-template-areas: "left . squad"; gap: 2rem; align-items: start; width: 100%; max-width: none; min-height: 0; }
#roomLobby .lobby-left { grid-area: left; display: flex !important; flex-direction: column; gap: 1.4rem; width: auto !important; max-width: none !important; padding: 1.4rem 0 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
#roomLobby .rl-head { display: grid; gap: .6rem; }
#roomLobby .rl-map { font: 700 max(var(--tf, 11px), 1.4rem)/1 var(--display); letter-spacing: .16em; color: var(--accent); }
#roomLobby .rl-count { font: 800 8rem/.85 var(--display); letter-spacing: .01em; color: var(--paper); }
#roomLobby .rl-count::after { content: " PLAYERS"; font-size: 1.8rem; letter-spacing: .12em; color: var(--muted); }
#roomLobby #hostHint, #roomLobby #matchResult, #roomLobby #careerReward { margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; clip-path: none !important;
  font: 500 1.7rem/1.45 var(--body) !important; color: #c9d4e0 !important; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
#roomLobby #matchResult { font: 800 2.6rem/1.1 var(--display) !important; letter-spacing: .03em; color: var(--paper) !important; }
#roomLobby #careerReward { color: var(--gold) !important; font-weight: 600 !important; }
#roomLobby #beginMatch { width: 100% !important; min-height: 7.2rem !important; margin: .6rem 0 0 !important; font: 800 3rem/1 var(--display) !important; letter-spacing: .05em !important; font-style: normal !important; justify-content: flex-start; padding: 0 2.8rem !important; --cut: 1.4rem; }
#roomLobby #switchTeam, #roomLobby #quickTogether, #roomLobby .rl-steel { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: center; min-height: 5.6rem; padding: 0 2.2rem; cursor: pointer;
  clip-path: polygon(1rem 0, 100% 0, 100% calc(100% - 1rem), calc(100% - 1rem) 100%, 0 100%, 0 1rem); font: 800 1.9rem/1 var(--display); letter-spacing: .06em; color: var(--paper);
  background: linear-gradient(180deg, #2c384c, #19212e); box-shadow: inset 0 .1rem 0 rgba(255, 255, 255, .1), inset 0 -.4rem 0 rgba(0, 0, 0, .4); }
#roomLobby #switchTeam[hidden], #roomLobby #quickTogether[hidden] { display: none !important; }
@media (hover: hover) { #roomLobby #switchTeam:hover, #roomLobby #quickTogether:hover, #roomLobby .rl-steel:hover { background: linear-gradient(180deg, #36445b, #1f2938); } }
#roomLobby .rl-link { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; cursor: pointer; align-self: flex-start;
  font: 700 max(var(--tf, 11px), 1.6rem)/1 var(--display); letter-spacing: .1em; color: var(--muted); }
#roomLobby .rl-link[hidden] { display: none !important; }
@media (hover: hover) { #roomLobby .rl-link:hover { color: var(--paper); } }
#roomLobby .rl-link:focus-visible, #roomLobby .rl-steel:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#roomLobby .quick-alone { display: grid; gap: 1.2rem; margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; clip-path: none !important; }
#roomLobby .quick-alone[hidden] { display: none !important; }
#roomLobby .quick-alone p { margin: 0; font: 500 max(var(--tf, 11px), 1.5rem)/1.5 var(--body) !important; color: var(--muted) !important; }
#roomLobby .quick-alone-actions { display: grid !important; gap: .6rem; }
#roomLobby .together-hint { margin: 0; font: 500 max(var(--tf, 11px), 1.4rem)/1.4 var(--body); color: var(--muted); }
/* the players */
#roomLobby .squad { grid-area: squad; display: grid !important; gap: 1.6rem; align-content: start; min-width: 0; padding-top: 1.4rem; }
#roomLobby .rl-players { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: .8rem; border-bottom: 1px solid var(--line); font: 800 max(var(--tf, 11px), 1.6rem)/1 var(--display); letter-spacing: .16em; color: var(--muted); }
#roomLobby .rl-players b { font: 800 1.8rem/1 var(--display); letter-spacing: .06em; color: var(--paper); }
#roomLobby #roster { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 0 !important; }
#roomLobby #roster .roster-row { display: grid !important; grid-template-columns: 4.4rem minmax(0, 1fr) auto auto; grid-template-rows: auto auto; column-gap: 1.4rem; row-gap: .3rem; align-items: center; justify-items: start;
  min-height: 6.4rem !important; padding: .9rem 1.4rem !important; margin: 0 !important; text-align: left; border: 0 !important; border-bottom: 1px solid rgba(255, 255, 255, .06) !important; border-radius: 0 !important;
  clip-path: none !important; background: rgba(14, 20, 30, .8) !important; box-shadow: none !important; }
#roomLobby #roster .roster-row .slot-face { grid-row: 1 / 3; width: 4.4rem !important; height: 4.4rem !important; display: grid; place-items: center; border: 0 !important; border-radius: 0 !important; font: 800 2rem/1 var(--display) !important;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
#roomLobby #roster .roster-row > span:first-of-type { grid-column: 2; font: 800 2rem/1.1 var(--display) !important; letter-spacing: .03em !important; color: var(--paper) !important; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#roomLobby #roster .roster-row:not(:has(.slot-tags)) > span:first-of-type { grid-row: 1 / 3; }
#roomLobby #roster .roster-row .slot-tags { grid-column: 2; grid-row: 2; font: 700 max(var(--tf, 11px), 1.2rem)/1 var(--display) !important; letter-spacing: .12em !important; color: var(--accent) !important; }
#roomLobby #roster .roster-row > span:last-of-type { grid-column: 3; grid-row: 1 / 3; font: 700 max(var(--tf, 11px), 1.6rem)/1 var(--display) !important; letter-spacing: .08em !important; color: var(--muted) !important; }
#roomLobby #roster .roster-row .report-button { grid-column: 4; grid-row: 1 / 3; padding: 0 !important; font: 700 max(var(--tf, 11px), 1.2rem)/1 var(--display) !important; letter-spacing: .1em; color: #56657a !important; background: none !important; }
#roomLobby #roster .roster-row.me { background: linear-gradient(90deg, rgba(41, 216, 255, .16), rgba(14, 20, 30, .8) 60%) !important; box-shadow: inset .35rem 0 0 var(--accent) !important; }
#roomLobby #roster .roster-row.team-0 { box-shadow: inset .35rem 0 0 #4fa8ff !important; }
#roomLobby #roster .roster-row.team-1 { box-shadow: inset .35rem 0 0 #ff5a4d !important; }
#roomLobby #roster .roster-row.bot > span:first-of-type { color: #c9d4e0 !important; }
#roomLobby #roster .roster-empty { all: unset; box-sizing: border-box; display: flex; align-items: center; min-height: 5.2rem; padding: 0 1.4rem 0 7.2rem; border-bottom: 1px dashed rgba(255, 255, 255, .1);
  font: 700 max(var(--tf, 11px), 1.4rem)/1 var(--display); letter-spacing: .14em; color: #56657a; background: rgba(14, 20, 30, .35); }
#roomLobby #roster button.roster-empty { cursor: pointer; color: var(--accent); }
@media (hover: hover) { #roomLobby #roster button.roster-empty:hover { color: var(--paper); background: rgba(41, 216, 255, .08); } }
#roomLobby #roster button.roster-empty:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
#roomLobby #roster.many .roster-row { min-height: 5rem !important; padding-top: .6rem !important; padding-bottom: .6rem !important; }
#roomLobby #roster.many .roster-empty { min-height: 4.2rem; }
/* the room code */
#roomLobby #privateCode { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "code link" "code copy" "help help"; gap: .6rem 2rem; align-items: center; margin: 0 !important; padding: 2rem 2.4rem !important;
  background: rgba(14, 20, 30, .86) !important; border: 0 !important; box-shadow: none !important; clip-path: polygon(1.4rem 0, 100% 0, 100% calc(100% - 1.4rem), calc(100% - 1.4rem) 100%, 0 100%, 0 1.4rem) !important; }
#roomLobby #privateCode[hidden] { display: none !important; }
#roomLobby #privateCode .code-block { grid-area: code; display: grid; gap: .6rem; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; clip-path: none !important; }
#roomLobby #privateCode .code-block small { font: 700 max(var(--tf, 11px), 1.3rem)/1 var(--display) !important; letter-spacing: .16em; color: var(--muted) !important; }
#roomLobby #privateCode #codeValue { font: 700 4rem/1 Consolas, "Courier New", monospace !important; letter-spacing: .14em !important; color: var(--paper) !important; }
#roomLobby #privateCode #copyLink { grid-area: link; } #roomLobby #privateCode #copyLink[hidden] { display: none !important; }
#roomLobby #privateCode #copyCode { grid-area: copy; justify-self: end; color: var(--accent); }
#roomLobby #privateCode:not(:has(#copyLink:not([hidden]))) #copyCode { grid-row: 1 / 3; }
#roomLobby #privateCode #codeHelp { grid-area: help; margin: 0; font: 500 max(var(--tf, 11px), 1.35rem)/1.45 var(--body) !important; color: #56657a !important; }
@media (max-height: 520px) {
  #roomLobby:not([hidden]) { grid-template-columns: 32rem minmax(0, 1fr) 40rem; gap: 1.2rem; }
  #roomLobby .lobby-left, #roomLobby .squad { padding-top: .6rem; gap: .9rem; }
  #roomLobby .rl-count { font-size: 5.6rem; } #roomLobby .rl-count::after { font-size: max(var(--tf, 11px), 1.4rem); }
  #roomLobby #hostHint, #roomLobby .quick-alone p { font-size: max(var(--tf, 11px), 1.4rem) !important; }
  #roomLobby .quick-alone p { display: none; }
  #roomLobby #beginMatch { min-height: 5.8rem !important; font-size: 2.4rem !important; }
  #roomLobby #roster .roster-row { min-height: 5rem !important; padding: .6rem 1rem !important; grid-template-columns: 3.6rem minmax(0, 1fr) auto auto; }
  #roomLobby #roster .roster-row .slot-face { width: 3.6rem !important; height: 3.6rem !important; }
  #roomLobby #roster .roster-empty { min-height: 4rem; padding-left: 5.6rem; }
  #roomLobby #roster.many .roster-row { min-height: 3.8rem !important; } #roomLobby #roster.many .roster-empty { min-height: 3.2rem; }
  #roomLobby #privateCode { padding: 1.2rem 1.6rem !important; } #roomLobby #privateCode #codeValue { font-size: 3rem !important; } #roomLobby #privateCode #codeHelp { display: none; }
}
@media (orientation: portrait) { #roomLobby:not([hidden]) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "left" "squad"; } }

#roomLobby #beginMatch:disabled { filter: none !important; color: #8e9db0 !important; background: linear-gradient(180deg, #243041, #151c27) !important; box-shadow: inset 0 .1rem 0 rgba(255, 255, 255, .08) !important; cursor: default; }
#roomLobby #roster .roster-empty { color: #7d8ca0; background: rgba(14, 20, 30, .55); }
@media (max-height: 520px) {
  #roomLobby .rl-map, #roomLobby .rl-players, #roomLobby #roster .roster-row .slot-tags, #roomLobby #roster .roster-row .report-button, #roomLobby #roster .roster-empty,
  #roomLobby #privateCode .code-block small, #roomLobby .rl-link, #roomLobby .together-hint { font-size: max(10px, 1.25rem) !important; }
}


/* ---------- v0.80 the map chooser (src/map-sheet.js; owner, of the grid of picture cards: "change this look completely"):
   the chosen map large on the left with the one main button, the maps as a scrolling list of cards on the right ---------- */
#mapPick.scr { z-index: 70; }
.ms .scr-top { align-items: flex-end; }
.ms .ms-sub { margin: 0 0 .8rem; font: 500 max(var(--tf, 11px), 1.5rem)/1.4 var(--body); color: var(--muted); }
.ms .ms-body { display: grid; grid-template-columns: minmax(0, 1fr) 62rem; gap: 2.4rem; min-height: 0; padding-top: 2rem; }
.ms .ms-preview { position: relative; display: grid; align-content: end; min-height: 0; overflow: hidden;
  clip-path: polygon(1.8rem 0, 100% 0, 100% calc(100% - 1.8rem), calc(100% - 1.8rem) 100%, 0 100%, 0 1.8rem); background: #0b1016; }
.ms .ms-art { position: absolute; inset: 0; background: #0b1016 center / cover no-repeat; }
.ms .ms-art.in { animation: ms-in .35s ease-out; }
@keyframes ms-in { from { opacity: .35; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ms .ms-art.in { animation: none; } }
.ms .ms-preview::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 10, 16, 0) 35%, rgba(6, 10, 16, .75) 68%, rgba(6, 10, 16, .96)); pointer-events: none; }
.ms .ms-info { position: relative; z-index: 1; display: grid; gap: 1.2rem; justify-items: start; padding: 3.6rem; }
.ms .ms-info h2 { margin: 0; font: 800 8rem/.88 var(--display); letter-spacing: .01em; color: var(--paper); font-style: normal; text-shadow: 0 .3rem 1.6rem rgba(0, 0, 0, .5); }
.ms .ms-info p { margin: 0; max-width: 60rem; font: 500 1.75rem/1.4 var(--body); color: #c4cfdb; }
.ms .ms-info p:empty { display: none; }
.ms .ms-info .scr-go { margin-top: .8rem; min-width: 30rem; }
/* the list */
.ms .ms-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; align-content: start; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; padding: 0 .6rem .6rem 0; }
.ms .ms-card { position: relative; display: grid; grid-template-rows: auto auto; overflow: hidden; text-align: left; cursor: pointer; background: rgba(14, 20, 30, .86);
  clip-path: polygon(1rem 0, 100% 0, 100% calc(100% - 1rem), calc(100% - 1rem) 100%, 0 100%, 0 1rem); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); transition: background .12s; }
.ms .ms-card img { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; opacity: .82; transition: opacity .12s; }
.ms .ms-card-text { display: grid; gap: .4rem; padding: 1rem 1.3rem 1.2rem; }
.ms .ms-card b { font: 800 1.9rem/1 var(--display); letter-spacing: .04em; color: var(--paper); }
.ms .ms-card small { font: 500 max(var(--tf, 11px), 1.3rem)/1.3 var(--body); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (hover: hover) { .ms .ms-card:hover { background: rgba(28, 38, 54, .95); } .ms .ms-card:hover img { opacity: 1; } }
.ms .ms-card.on { background: linear-gradient(180deg, rgba(41, 216, 255, .18), rgba(14, 20, 30, .9)); box-shadow: inset 0 0 0 .25rem var(--accent); }
.ms .ms-card.on img { opacity: 1; }
.ms .ms-badge { position: absolute; left: 1rem; top: 1rem; padding: .4rem .7rem; font: 800 max(var(--tf, 11px), 1.15rem)/1 var(--display); letter-spacing: .12em; color: var(--accent-ink); background: var(--gold); }
.ms .ms-chosen { position: absolute; right: 1rem; top: 1rem; padding: .4rem .7rem; font: 800 max(var(--tf, 11px), 1.15rem)/1 var(--display); letter-spacing: .12em; color: var(--accent-ink); background: var(--accent); }
.ms .ms-card:focus-visible { outline: 2px solid var(--paper); outline-offset: -4px; }
@media (max-height: 520px) {
  .ms .ms-body { grid-template-columns: minmax(0, 1fr) 46rem; gap: 1.4rem; padding-top: 1rem; }
  .ms .ms-sub { display: none; }
  .ms .ms-info { padding: 2rem; gap: .8rem; } .ms .ms-info h2 { font-size: 5.2rem; } .ms .ms-info p { font-size: max(var(--tf, 11px), 1.4rem); }
  .ms .ms-info .scr-go { min-height: 5.8rem; min-width: 22rem; font-size: 2.4rem; }
  .ms .ms-list { gap: .8rem; } .ms .ms-card-text { padding: .7rem .9rem .8rem; } .ms .ms-card small { display: none; }
  .ms .ms-card b, .ms .ms-badge, .ms .ms-chosen { font-size: max(10px, 1.5rem); } .ms .ms-badge, .ms .ms-chosen { font-size: max(10px, 1.1rem); }
  .ms .ms-info p { font-size: max(10px, 1.4rem); }
}
@media (orientation: portrait) { .ms .ms-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: 30rem auto; overflow-y: auto; } .ms .ms-list { overflow: visible; } }

.ms .ms-list { grid-auto-rows: max-content; } .ms .ms-card { min-height: max-content; }

/* =====================================================================================================================
   v0.81 ONE PAGE (owner: "make the whole game one page, never reload"): Play Online, the Locker and Account are screens
   inside the home page (src/views.js), each a frame made once and kept. The one shown covers the home page; the others
   wait, hidden, without drawing. A short cover with the map picture shows while a screen opens for the first time.
   ===================================================================================================================== */
.nb-view { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; margin: 0; padding: 0; z-index: 5000; background: #060a10; visibility: hidden; pointer-events: none; }
.nb-view.on { visibility: visible; pointer-events: auto; }
.nb-view-cover { position: fixed; inset: 0; z-index: 5100; display: grid; place-items: center; background: #060a10; opacity: 0; visibility: hidden; transition: opacity .18s, visibility 0s .18s; }
.nb-view-cover::before { content: ''; position: absolute; inset: -4%; background: var(--home-art, none) center / cover; filter: blur(8px) saturate(.8) brightness(.45); }
.nb-view-cover.on { opacity: 1; visibility: visible; transition: opacity .12s; }
.nb-view-load { position: relative; display: grid; justify-items: center; gap: 12px; }
.nb-view-load b { font: 800 22px/1 var(--display); letter-spacing: .2em; color: var(--paper); }
.nb-view-load i { display: block; width: 180px; height: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; position: relative; }
.nb-view-load i::after { content: ''; position: absolute; inset: 0 70% 0 0; background: var(--accent); animation: nb-load 1s ease-in-out infinite; }
@keyframes nb-load { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }
@media (prefers-reduced-motion: reduce) { .nb-view-load i::after { animation: none; inset: 0 40% 0 0; } }

/* v0.82 missions: the screen (three map tabs as pictures, four mission cards, the brief and PLAY MISSION), the
   objective line during a mission with its hold bar and the USE button, MISSIONS on the home rail */
.scr-mis .mis-main { display: grid; grid-template-rows: auto auto 1fr; gap: 2.2rem; min-height: 0; padding-top: 2.4rem; }
.scr-mis .mis-total { margin-left: auto; font: 700 2.2rem/1 var(--display); color: var(--gold); letter-spacing: .04em; }
.scr-mis .mis-maps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
.scr-mis .mis-map { position: relative; display: block; height: 13rem; border: 0; border-radius: 1.2rem; overflow: hidden; background: #16202d; color: #fff; text-align: left; cursor: pointer; padding: 0; }
.scr-mis .mis-map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; transition: opacity .2s; }
.scr-mis .mis-map span { position: absolute; left: 1.6rem; bottom: 1.3rem; display: grid; gap: .3rem; text-shadow: 0 2px 8px rgba(0, 0, 0, .7); }
.scr-mis .mis-map b { font: 700 2.4rem/1 var(--display); letter-spacing: .04em; }
.scr-mis .mis-map small { font: 700 max(var(--tf, 11px), 1.3rem)/1 var(--display); letter-spacing: .12em; color: var(--gold); }
.scr-mis .mis-map.on { box-shadow: inset 0 -.5rem 0 var(--accent); }
.scr-mis .mis-map.on img, .mis-map:hover img { opacity: .9; }
.scr-mis .mis-map.locked small { color: #9aa7b6; }
.scr-mis .mis-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.scr-mis .mis-card { position: relative; display: grid; align-content: start; gap: .6rem; min-height: 12rem; padding: 1.4rem 1.5rem; border: 0; border-radius: 1rem; background: linear-gradient(180deg, #1b2636, #111a26); color: #fff; text-align: left; cursor: pointer; }
.scr-mis .mis-card small { font: 700 max(var(--tf, 11px), 1.25rem)/1 var(--display); letter-spacing: .14em; color: var(--accent); }
.scr-mis .mis-card b { font: 700 2rem/1.05 var(--display); letter-spacing: .02em; text-wrap: balance; }
.scr-mis .mis-card.on { background: linear-gradient(180deg, #223a52, #15263a); box-shadow: inset 0 0 0 .25rem var(--accent); }
.scr-mis .mis-card.locked { opacity: .5; }
.scr-mis .mis-card em { position: absolute; right: 1.2rem; top: 1.2rem; font: 700 max(var(--tf, 11px), 1.1rem)/1 var(--display); letter-spacing: .14em; font-style: normal; color: #9aa7b6; }
.scr-mis .mis-st { display: flex; gap: .45rem; margin-top: auto; }
.scr-mis .mis-st i { width: 1.9rem; height: 1.9rem; background: #2b3747; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.scr-mis .mis-st i.on { background: var(--gold); }
.scr-mis .mis-go { display: flex; align-items: end; justify-content: space-between; gap: 3rem; min-height: 0; }
.scr-mis .mis-brief { display: grid; gap: .6rem; max-width: 70rem; }
.scr-mis .mis-brief small { font: 700 max(var(--tf, 11px), 1.3rem)/1 var(--display); letter-spacing: .14em; color: var(--accent); }
.scr-mis .mis-brief b { font: 700 3.6rem/1 var(--display); letter-spacing: .02em; }
.scr-mis .mis-brief p { margin: 0; font: 500 1.8rem/1.35 var(--body); color: #dbe6f0; }
.scr-mis .mis-brief span { font: 700 max(var(--tf, 11px), 1.4rem)/1.2 var(--display); letter-spacing: .08em; color: var(--gold); white-space: pre-wrap; }
.scr-mis .mis-play { display: grid; place-items: center; min-width: 30rem; min-height: 7.2rem; border-radius: 1rem; font: 700 2.8rem/1 var(--display); letter-spacing: .06em; }
.scr-mis .mis-play:disabled { opacity: .45; cursor: default; }
.lb-rail .rb-mis small { color: var(--gold); }
.mis-hud { position: fixed; left: 50%; top: 96px; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; pointer-events: none; z-index: 6; }
.mis-hud > b { padding: 6px 16px; border-radius: 99px; background: rgba(8, 13, 19, .72); font: 700 15px/1.1 var(--display); letter-spacing: .08em; color: #fff; white-space: nowrap; }
.mis-bar { position: relative; width: 220px; height: 18px; border-radius: 99px; background: rgba(8, 13, 19, .72); overflow: hidden; }
.mis-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--gold); }
.mis-bar span { position: relative; display: block; text-align: center; font: 700 11px/18px var(--display); letter-spacing: .12em; color: #0a0f15; mix-blend-mode: normal; }
.mis-use { pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border: 0; border-radius: 99px; background: rgba(8, 13, 19, .78); color: #fff; font: 700 13px/1 var(--display); letter-spacing: .1em; }
.mis-use kbd { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--accent); color: #0a0f15; font: 700 14px/1 var(--display); }
@media (pointer: coarse) { .mis-use { position: fixed; right: 18vw; bottom: 30vh; padding: 0; width: 76px; height: 76px; border-radius: 50%; justify-content: center; flex-direction: column; gap: 2px; background: rgba(41, 216, 255, .9); color: #0a0f15; } .mis-use kbd { display: none; } .mis-use span::before { content: "USE · "; } }
@media (max-height: 520px) { .scr-mis .mis-map { height: 9rem; } .scr-mis .mis-card { min-height: 9rem; } .scr-mis .mis-brief b { font-size: 2.8rem; } .mis-hud { top: 64px; } }
@media (orientation: portrait) { .scr-mis .mis-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .scr-mis .mis-go { flex-direction: column; align-items: stretch; } .scr-mis .mis-play { min-width: 0; } }

/* v0.82: six buttons on the home rail (MISSIONS added) still fit a 320 px tall phone: tighter, without the small counts */
@media (max-height: 380px) { #menu .lb-rail { gap: 2px !important; top: 50px; } #menu .lb-rb { min-height: 38px; gap: 2px !important; } #menu .lb-rb small { display: none; } }

/* v0.82 results: a full game screen. Left, the result itself (the map and mode, a big VICTORY, the mission's stars, three
   big numbers); right, the XP card with the level bar and the unlocks as picture tiles; one action bar along the bottom
   with PLAY AGAIN (and NEXT MISSION) on the right. Nothing scrolls on a desktop or a landscape phone. */
#results.scr-res { display: grid !important; grid-template-rows: minmax(0, 1fr) auto; gap: 2rem; overflow: hidden; }
#results.scr-res[hidden] { display: none !important; }
.scr-res .res-main { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 58rem); gap: 7rem; align-items: center; min-height: 0; padding: 2rem 2rem 0; }
.scr-res .res-left { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; align-content: center; min-width: 0; }
.scr-res .res-match { margin: 0; font: 700 max(var(--tf, 11px), 1.6rem)/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.scr-res #resultTitle { margin: 0; font: 800 12rem/.88 var(--display); letter-spacing: -.01em; color: #fff; text-shadow: 0 .6rem 3rem rgba(0, 0, 0, .45); text-wrap: balance; }
.scr-res .res-note { margin: 0; font: 700 1.8rem/1.2 var(--display); letter-spacing: .08em; color: var(--gold); text-transform: uppercase; }
.scr-res .res-note:empty { display: none; }
.scr-res .res-stars { display: flex; gap: 2.4rem; flex-wrap: wrap; }
.scr-res .res-stars span { display: grid; justify-items: center; gap: .6rem; }
.scr-res .res-stars i { width: 6rem; height: 6rem; background: #2b3747; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.scr-res .res-stars span.on i { background: var(--gold); filter: drop-shadow(0 0 1.2rem rgba(255, 200, 61, .55)); }
.scr-res .res-stars small { font: 700 max(var(--tf, 11px), 1.2rem)/1 var(--display); letter-spacing: .12em; color: #9aa7b6; }
.scr-res .res-stars span.on small { color: #fff; }
.scr-res .resultstats { display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: 5.5rem; margin-top: 1.4rem; padding-top: 2rem; border-top: 1px solid var(--line); }
#results.scr-res .resultstats { width: auto !important; max-width: 100% !important; min-width: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }
.scr-res .resultstats div { display: grid; gap: .5rem; min-width: 0; }
.scr-res .resultstats b { font: 800 7.2rem/1 var(--display); color: #fff; font-variant-numeric: tabular-nums; }
.scr-res .resultstats small { font: 700 max(var(--tf, 11px), 1.3rem)/1.2 var(--display); letter-spacing: .14em; color: #9aa7b6; }
.scr-res .resultstats small i { display: block; font: 500 max(var(--tf, 11px), 1.2rem)/1.3 var(--body); letter-spacing: 0; font-style: normal; text-transform: none; color: #7d8a99; }
.scr-res .result-next { margin: 0; font: 700 max(var(--tf, 11px), 1.3rem)/1.3 var(--display); letter-spacing: .1em; color: #9aa7b6; }
.scr-res .res-xp { display: grid; gap: 1.4rem; align-content: start; padding: 2.8rem 3rem; border-radius: 1.4rem; background: linear-gradient(180deg, rgba(27, 38, 54, .94), rgba(14, 21, 31, .94)); box-shadow: inset 0 .3rem 0 var(--gold); min-width: 0; }
#results.scr-res .res-xp { grid-column: auto !important; grid-row: auto !important; margin: 0 !important; border-left: 0 !important; } /* older phone rules placed .reward in column 2 */
.scr-res #rewardXP { font: 800 5.6rem/1 var(--display); color: var(--gold); }
.scr-res .xp-meter { display: grid; gap: .9rem; }
.scr-res .xp-row { display: flex; justify-content: space-between; font: 700 max(var(--tf, 11px), 1.4rem)/1 var(--display); letter-spacing: .12em; color: #dbe6f0; }
.scr-res .xp-track { height: 1.2rem; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.scr-res .xp-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), #ffe08a); }
.scr-res .xp-unlock { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 1rem; margin: .6rem 0 0; }
.scr-res .xp-unlock > b { grid-column: 1 / -1; font: 800 2.4rem/1 var(--display); color: var(--accent); letter-spacing: .04em; }
.scr-res .xp-chip { display: grid; grid-template-rows: 6rem auto auto; gap: .3rem; padding: 1rem 1.1rem; border-radius: 1rem; background: rgba(255, 255, 255, .05); min-width: 0; }
.scr-res .xp-chip img { width: 100%; height: 100%; object-fit: contain; }
.scr-res .xp-chip > i { width: 4.4rem; height: 4.4rem; align-self: center; border-radius: 50%; background: var(--swatch, #8fa0b3); box-shadow: inset 0 -.4rem 0 rgba(0, 0, 0, .25), 0 0 0 .3rem rgba(255, 255, 255, .08); }
.scr-res .xp-chip small { font: 700 max(var(--tf, 11px), 1.05rem)/1 var(--display); letter-spacing: .12em; color: #9aa7b6; }
.scr-res .xp-chip b { font: 800 max(var(--tf, 11px), 1.6rem)/1.05 var(--display); color: #fff; overflow-wrap: anywhere; }
.scr-res #rewardDetail { margin: 0; font: 500 max(var(--tf, 11px), 1.35rem)/1.45 var(--body); color: #b8c6d4; }
.scr-res .double-xp { justify-self: start; }
.scr-res .result-save { margin: 0; font: 500 max(var(--tf, 11px), 1.25rem)/1.4 var(--body); color: #7d8a99; }
.scr-res .res-bar { position: relative; display: flex; align-items: center; gap: 1.2rem; padding: 0 2rem; flex-wrap: wrap; }
.scr-res .res-side, .scr-res .result-more { display: flex; gap: 1rem; flex-wrap: wrap; }
.scr-res .res-go { margin-left: auto; display: flex; gap: 1.2rem; align-items: stretch; }
.scr-res .res-ghost { display: inline-flex; align-items: center; gap: .7rem; min-height: 5.2rem; padding: 0 1.8rem; border: 0; border-radius: .9rem; background: rgba(255, 255, 255, .07); color: #dbe6f0; font: 700 max(var(--tf, 11px), 1.4rem)/1 var(--display); letter-spacing: .1em; text-decoration: none; cursor: pointer; }
.scr-res .res-ghost svg { width: 2rem; height: 2rem; }
#results.scr-res .result-more a.res-ghost, #results.scr-res .res-bar .res-ghost { margin: 0 !important; min-height: 5.2rem !important; height: auto !important; padding: 0 1.8rem !important; border: 0 !important; border-radius: .9rem !important; clip-path: none !important; background: rgba(255, 255, 255, .07) !important; box-shadow: none !important; font: 700 max(var(--tf, 11px), 1.4rem)/1 var(--display) !important; letter-spacing: .1em !important; color: #dbe6f0 !important; transform: none !important; }
#results.scr-res .res-bar .res-ghost:hover, #results.scr-res .res-bar .res-ghost:focus-visible { background: rgba(255, 255, 255, .14) !important; color: #fff !important; }
#results.scr-res .res-bar { align-items: center !important; }
.scr-res .res-ghost:hover, .scr-res .res-ghost:focus-visible { background: rgba(255, 255, 255, .14); color: #fff; }
.scr-res .res-next { min-height: 7rem; padding: 0 3rem; border: 0; border-radius: 1rem; background: linear-gradient(180deg, #ffd76a, var(--gold)); color: #0a0f15; font: 800 2.4rem/1 var(--display); letter-spacing: .06em; cursor: pointer; }
.scr-res .res-again { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; min-width: 30rem; min-height: 7rem; font: 800 2.6rem/1 var(--display) !important; letter-spacing: .06em; }
@media (max-height: 520px) and (orientation: landscape) {
  .scr-res .res-main { gap: 4rem; padding-top: .6rem; grid-template-columns: minmax(0, 1fr) minmax(0, 54rem); }
  .scr-res #resultTitle { font-size: 5.2rem; white-space: nowrap; } .scr-res .res-stars { gap: 1.6rem; } .scr-res .res-stars i { width: 3.4rem !important; height: 3.4rem !important; } .scr-res .res-stars span { grid-auto-flow: column; align-items: center; gap: .5rem; }
  #results.scr-res .res-bar .result-more, #results.scr-res .res-bar #shareScore { display: none !important; } .scr-res .res-bar { flex-wrap: nowrap; } .scr-res .resultstats small i { display: none; } .scr-res small { font-size: max(10px, 1.3rem) !important; } .scr-res .xp-row, .scr-res .res-match, .scr-res .xp-chip b { font-size: max(10.5px, 1.4rem) !important; } #results.scr-res .res-bar .res-ghost, #results.scr-res .result-more a.res-ghost { font-size: max(10.5px, 1.4rem) !important; } .scr-res .xp-chip small, .scr-res .res-stars small { font-size: max(10px, 1.05rem); } .scr-res .res-left { gap: 1rem; } .scr-res .result-next { display: none; }
  .scr-res .resultstats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; padding-top: 1.2rem; margin-top: .4rem; } .scr-res .resultstats b { font-size: 5.2rem; } .scr-res .res-left { min-width: 0; overflow: hidden; }
  .scr-res .res-xp { padding: 1.8rem 2.2rem; gap: 1rem; } .scr-res #rewardXP { font-size: 4.2rem; }
  .scr-res .xp-chip { grid-template-rows: 4.4rem auto auto; padding: .7rem .8rem; } .scr-res #rewardDetail, .scr-res .result-save { display: none; }
  .scr-res .res-stars i { width: 4.4rem; height: 4.4rem; }
  .scr-res .res-ghost { min-height: 4.6rem; padding: 0 1.3rem; } .scr-res .res-again, .scr-res .res-next { min-height: 5.6rem; }
}
@media (orientation: portrait) {
  #results.scr-res:not([hidden]) { display: block !important; overflow-y: auto; } .scr-res .res-bar { margin-top: 2.4rem; padding-bottom: 2rem; }
  .scr-res .res-main { grid-template-columns: 1fr; gap: 3rem; }
  .scr-res #resultTitle { font-size: 9rem; }
  .scr-res .res-go { margin-left: 0; width: 100%; } .scr-res .res-again { flex: 1; min-width: 0; }
}

/* v0.82 the MISSIONS tab on the home screen: four mode tabs, a plain line about the chosen mode, the next mission's
   card in the map card's place (its picture, MISSION 1 · BOMB, its name, its stars, ALL MISSIONS) */
#menu .mode-about { margin: .2rem 0 .9rem; font: 500 max(var(--tf, 11px), 1.45rem)/1.35 var(--body); color: #c9d6e2; text-wrap: balance; }
#menu .mode-about:empty { display: none; }
#menu #missionCard.mis-home { display: block; width: 100%; padding: 0; border: 0; text-align: left; cursor: pointer; background: none; }
#menu #missionCard.mis-home[hidden] { display: none !important; }
#menu #missionCard .map-view { display: block; }
#menu #missionCard .map-text small { color: var(--gold); }
#menu #missionCard .map-text small, #menu #missionCard .map-text b { text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 0 10px rgba(0, 0, 0, .7); }
.mis-home-st { position: absolute; right: 1.4rem; top: 1.2rem; display: flex; gap: .4rem; }
.mis-home-st i { width: 2rem; height: 2rem; background: rgba(255, 255, 255, .28); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.mis-home-st i.on { background: var(--gold); }
#modePick [data-mode="mission"] { color: var(--gold); }
#modePick [data-mode="mission"][aria-pressed="true"] { color: #fff; }
@media (max-height: 520px) { #menu .mode-about { font-size: max(10px, 1.25rem); margin: 0 0 .5rem; } #menu .lb-play .mode-pick button { white-space: nowrap; padding: 0 2px !important; letter-spacing: .02em !important; font-size: 10.5px !important; } }

/* v0.82 the online Bomb line sits under the taller online timer plate */
#bombHud.mis-hud { top: 128px; }
@media (max-height: 520px) { #bombHud.mis-hud { top: 86px; } }

/* v0.79 last word: anything hidden stays hidden, whatever a layout rule above says (two id-level :not()s outrank every rule in
   this sheet; several layout rules use display ... !important, and twice one of them showed an element that was hidden) */
[hidden]:not(#nb-a):not(#nb-b) { display: none !important; }

/* v0.82 the online match the same clean way as solo (owner: "why do the screens look different? keep the clear one"): the
   solo v0.77 layout on computers: the radar map top left, one clock pill in the top middle, players as a plain list top right,
   a thick health bar in the middle of the bottom row, Blink and grenade as small pills on the left, the ammo number on the
   right; no room plate, no key-help strip. Phones keep their compact layout (pointer: coarse). */
@media (pointer: fine) {
  #multiHud { text-shadow: 0 2px 4px rgba(0, 0, 0, .55); }
  #multiHud .hud-top > .hud-plate:first-child, #multiHud #desktopHelp, #multiHud #multiScope { display: none !important; }
  #multiHud .hud-top { justify-content: center !important; align-items: flex-start !important; position: relative; }
  #multiHud .hud-right { position: absolute; right: 0; top: 0; }
  #multiHud .hud-plate, #multiHud .matchclock { background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
  #multiHud .matchclock { padding: 4px 18px 5px !important; min-width: 0 !important; background: rgba(6, 10, 15, .45) !important; border-radius: 99px !important; display: grid; justify-items: center; gap: 0; }
  #multiHud .matchclock small { font: 700 11px/1 var(--display) !important; letter-spacing: .1em; color: rgba(255, 255, 255, .7); }
  #multiHud .matchclock strong { font: 800 28px/1 var(--display) !important; color: #fff; margin: 0 !important; }
  #bombHud.mis-hud, #pointHud.point-hud { top: 96px; }
  #multiHud .scoreboard { padding: 10px 14px !important; background: rgba(6, 10, 15, .45) !important; border-radius: 14px !important; }
  #multiHud .scoreboard > small { font: 700 11px/1 var(--display) !important; letter-spacing: .1em; color: rgba(255, 255, 255, .7) !important; }
  #roomTouch ~ #minimap { left: 26px; right: auto; top: 20px; width: 172px; height: 172px; }
  #chatButton { left: 26px; top: 204px; } #voiceButton { left: 74px; top: 204px; }
  #multiHud .hud-bottom { display: grid !important; grid-template-columns: 1fr auto 1fr; align-items: end; }
  #multiHud .hud-bottom > .hud-status { grid-area: 1 / 1; justify-self: start; align-items: flex-start; }
  #multiHud .hud-bottom > .vitals { grid-area: 1 / 2; width: 360px; }
  #multiHud .hud-bottom > .ammo { grid-area: 1 / 3; justify-self: end; }
  #multiHud .status-chips { justify-content: flex-start; }
  #multiHud .status-chips small { background: rgba(6, 10, 15, .45); border-radius: 99px; padding: 8px 13px; font: 700 12px/1 var(--display); letter-spacing: .08em; color: #fff; }
  #multiHud .vitals { display: grid !important; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; row-gap: 4px; padding: 0 !important; min-width: 0 !important; height: auto !important; }
  #multiHud .vitals > small:first-child { display: none !important; }
  #multiHud .vitals strong { font: 800 30px/1 var(--display) !important; color: #fff !important; height: auto !important; }
  #multiHud .vitals .health-track { grid-column: 2; height: 16px !important; border: 0 !important; border-radius: 99px !important; background: rgba(6, 10, 15, .5) !important; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12); width: auto !important; margin: 0 !important; }
  #multiHud .vitals .health-track i { border-radius: 99px; background: linear-gradient(180deg, #7cf08a, #36c95a) !important; }
  #multiHud .vitals .armor-track { grid-column: 2; height: 5px !important; border: 0 !important; border-radius: 99px !important; background: rgba(6, 10, 15, .4) !important; width: auto !important; margin: 0 !important; }
  #multiHud .vitals .armor-track i { border-radius: 99px; }
  #multiHud .vitals .helmet-label { grid-column: 2; font: 700 11px var(--display); }
  #multiHud .ammo { padding: 0 !important; min-width: 0 !important; text-align: right; }
  #multiHud .ammo small { font: 700 13px/1 var(--display) !important; letter-spacing: .1em; color: rgba(255, 255, 255, .8) !important; }
  #multiHud .ammo strong { font: 800 46px/1 var(--display) !important; color: #fff !important; }
  #multiHud .ammo span { font: 700 20px/1 var(--display) !important; color: rgba(255, 255, 255, .65) !important; }
}
/* the match menu (MATCH IN PROGRESS) as the solo pause screen, on computers: a side column over the blurred match, the key
   list behind CONTROLS. Touch screens keep the centred panel (it fits 844x390 with the touch settings in it). */
.touch-room #controlsOpen { display: none !important; }
#capture .capture-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#capture .capture-pair .secondary { margin-top: 0; }
@media (min-width: 760px) and (pointer: fine) {
  #capture.overlay { place-items: stretch start; padding: 0; background: linear-gradient(90deg, rgba(8, 12, 18, .97) 0, rgba(8, 12, 18, .9) 420px, rgba(8, 12, 18, .35)); backdrop-filter: blur(6px); }
  #capture .panel { clip-path: none; width: min(520px, 100%); max-height: none; height: 100%; padding: 56px 56px 40px; display: flex; flex-direction: column; gap: 10px; background: transparent !important; box-shadow: none !important; overflow-y: auto; }
  #capture .panel h2 { font-size: 44px; margin: 0; }
  #capture .panel > p { margin: 0 0 22px; }
  #capture .panel .primary { margin-top: 0; min-height: 70px; font-size: 26px; }
  #capture .panel .secondary { margin-top: 0; min-height: 58px; font-size: 19px; justify-content: flex-start; }
  #capture .panel .text-button { font-size: 19px !important; min-height: 58px; display: flex; align-items: center; padding: 0 !important; }
  #capture .capture-pair:has(#viewToggle) { display: contents; }
  /* the links join the column in order: VOICE CHAT and REPORT A PLAYER under CONTROLS, LEAVE ROOM and PRIVACY at the foot */
  #capture .room-links { display: contents; }
  #capture #exitMatch { margin-top: auto; }
  #capture .room-links a { order: 3; }
  #capture .capture-panel .controls { margin: 8px 0 0; padding-top: 16px; }
  #capture:has(#captureControls:not([hidden])) .panel { width: min(900px, 100%); }
  #capture:has(#captureControls:not([hidden])).overlay { background: linear-gradient(90deg, rgba(8, 12, 18, .97) 0, rgba(8, 12, 18, .9) 800px, rgba(8, 12, 18, .35)); }
  #capture .capture-panel .controls li { font-size: 14px; }
}

/* v0.82 the front door (owner 2026-11-06, for CrazyGames: a new player sees two doors, PLAY and PLAY WITH FRIENDS, and wants to
   click): two big map cards over the home's own scene, the PLAY card in the accent with a slow sheen; phones stack them. */
.door { position: fixed; inset: 0; z-index: 40; display: grid; grid-template-rows: auto auto; justify-items: center; align-content: center; gap: clamp(14px, 3vh, 36px); padding: clamp(14px, 4vh, 48px) clamp(16px, 4vw, 64px); background: radial-gradient(ellipse at 50% 35%, rgba(8, 12, 18, .35), rgba(8, 12, 18, .9) 78%); backdrop-filter: blur(3px); }
.door[hidden] { display: none !important; }
body.door-open #menu > :not(#homeArt):not(#homeHero):not(.lb-floor) { visibility: hidden; }
.door-brand { margin: 0; font: 800 clamp(34px, 6vw, 76px)/1 var(--display); letter-spacing: .04em; color: var(--paper); text-shadow: 0 4px 28px rgba(0, 0, 0, .65); }
.door-brand em { font-style: normal; color: var(--accent); }
.door-cards { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(12px, 2vw, 28px); width: min(1180px, 100%); }
.door-card { position: relative; display: grid; align-content: end; gap: 8px; min-height: clamp(200px, 46vh, 460px); padding: clamp(18px, 3vw, 36px); overflow: hidden; border-radius: 18px; text-decoration: none; color: var(--paper); background: #0c1219; box-shadow: 0 20px 60px rgba(0, 0, 0, .5), inset 0 0 0 2px rgba(255, 255, 255, .1); isolation: isolate; transition: transform .25s ease, box-shadow .25s ease; }
.door-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 5s ease; }
.door-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 12, 18, .05) 25%, rgba(8, 12, 18, .88) 100%); }
.door-card b { font: 800 clamp(32px, 5vw, 66px)/1 var(--display); letter-spacing: .03em; text-shadow: 0 3px 16px rgba(0, 0, 0, .6); padding-right: clamp(60px, 7vw, 96px); }
.door-tag { font: 700 clamp(11px, 1.1vw, 14px)/1 var(--display); letter-spacing: .18em; color: var(--accent); text-shadow: 0 2px 8px rgba(0, 0, 0, .7); }
.door-main { box-shadow: 0 20px 60px rgba(0, 0, 0, .5), inset 0 0 0 3px var(--accent), 0 0 54px rgba(41, 216, 255, .38); }
.door-main::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .16) 50%, transparent 65%); transform: translateX(-130%); animation: door-sheen 3.4s ease-in-out infinite; }
@keyframes door-sheen { 0%, 55% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
.door-go { position: absolute; right: clamp(16px, 2.5vw, 30px); bottom: clamp(16px, 3vw, 36px); width: clamp(52px, 5vw, 76px); height: clamp(52px, 5vw, 76px); display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink, #06202a); box-shadow: 0 8px 26px rgba(41, 216, 255, .45); }
.door-go svg { width: 46%; height: 46%; }
.door-card:not(.door-main) .door-go { background: rgba(255, 255, 255, .14); color: var(--paper); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
@media (hover: hover) { .door-card:hover { transform: translateY(-6px); } .door-card:hover img { transform: scale(1.1); } }
.door-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.door-card:active { transform: translateY(1px) scale(.99); }
@media (max-width: 700px), (max-height: 420px) { .door { gap: 10px; padding: 12px 14px; } .door-brand { font-size: clamp(26px, 7vw, 40px); } .door-cards { gap: 10px; } .door-card { min-height: clamp(96px, 30vh, 200px); padding: 14px 16px; border-radius: 14px; } .door-card b { font-size: clamp(22px, 5vw, 34px); } .door-go { width: 44px; height: 44px; right: 14px; bottom: 14px; } }
.door-foot { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.door-chip { padding: 9px 16px; border-radius: 99px; background: rgba(6, 10, 15, .55); color: var(--paper); font: 700 12px/1 var(--display); letter-spacing: .14em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.door-chip.goal { color: var(--accent); }
.door-chip[hidden] { display: none; }
.summary-vote { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; } /* four maps to vote on since 2026-11-11: one row, so the card still fits a laptop */
.summary-vote h3 { grid-column: 1 / -1; margin: 0; font: 800 12px/1 var(--display); letter-spacing: .14em; color: var(--muted); }
.summary-map { position: relative; height: 70px; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #0c1219 center / cover no-repeat; color: #fff; font: 800 13px/1 var(--display); letter-spacing: .06em; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); cursor: pointer; display: grid; align-items: end; justify-items: start; padding: 8px; }
.summary-map::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .7)); }
.summary-map > * { position: relative; }
.summary-map.current { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.summary-map[aria-pressed=true] { border-color: var(--accent); }
.summary-map b { position: absolute; right: 6px; top: 6px; padding: 2px 8px; border-radius: 99px; background: rgba(0, 0, 0, .6); font-size: 12px; }
.summary-mvp { grid-column: 1 / -1; margin: 0 0 6px; font: 800 14px/1 var(--display); letter-spacing: .12em; color: var(--accent); }
@media (max-width: 700px) { .door-cards { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .door-main::after { animation: none; } .door-card, .door-card img { transition: none; } }

/* v0.82 simple controls (owner 2026-11-06: "too many buttons; keep it completely simple; remove the pick-up things"): on a phone the
   match keeps the stick, FIRE, AIM, JUMP, CROUCH, RELOAD, BLINK, the grenade, the two weapon slots, USE when it matters and the
   menu. Peek, slide, prone, the run switch, fire mode, zoom, items, heal, the left-hand FIRE and the chat button are gone; armour
   and helmets went with the pickups. */
.armor-track, .helmet-label, #abilityinfo:empty { display: none !important; }
#touch [data-action=fireLeft], #roomTouch [data-action=fireLeft], #touch [data-action=scope], #roomTouch [data-action=scope], #touch [data-action=sprint], #roomTouch [data-toggle=sprint],
#touch [data-action=slide], #roomTouch [data-action=slide], #touch [data-action=prone], #roomTouch [data-action=prone], #touch [data-action=throwKind], #roomTouch [data-action=throwKind],
#touch [data-action=medPick], #roomTouch [data-action=medPick], #touch [data-action=heal], #roomTouch [data-action=heal], #touch [data-action=leanLeft], #roomTouch [data-hold=leanLeft],
#touch [data-action=leanRight], #roomTouch [data-hold=leanRight], #fireMode, #scopeButton, #chatButton { display: none !important; } /* the mic button stays: it only appears with friends in the room */
#touch [data-action=fire], #roomTouch [data-action=fire] { right: calc(18px * var(--k)) !important; bottom: calc(86px * var(--k)) !important; width: calc(88px * var(--k)) !important; height: calc(88px * var(--k)) !important; left: auto !important; }
#touch [data-action=aim], #roomTouch [data-hold=aim] { right: calc(107px * var(--k)) !important; bottom: calc(168px * var(--k)) !important; left: auto !important; }
#touch [data-action=jump], #roomTouch [data-action=jump] { right: calc(111px * var(--k)) !important; bottom: calc(47px * var(--k)) !important; left: auto !important; }
#touch [data-action=reload], #roomTouch [data-action=reload] { right: calc(50px * var(--k)) !important; bottom: calc(198px * var(--k)) !important; left: auto !important; }
#touch [data-action=crouch], #roomTouch [data-action=crouch] { right: calc(131px * var(--k)) !important; bottom: calc(108px * var(--k)) !important; left: auto !important; }
#touch [data-action=dash], #roomTouch [data-action=blink] { right: calc(176px * var(--k)) !important; bottom: calc(167px * var(--k)) !important; left: auto !important; }
/* phones, online: the same top row as solo (radar top left, no room plate), no text chips; narrow phones keep the grenade left
   of the weapon slots so the right-hand cluster stays clear */
@media (pointer: coarse) {
  #multiHud .hud-top > .hud-plate:first-child, #multiHud .status-chips, #multiHud #desktopHelp { display: none !important; }
  #roomTouch ~ #minimap { left: max(10px, env(safe-area-inset-left)) !important; right: auto !important; top: 8px !important; }
}
@media (pointer: coarse) and (max-width: 760px) {
  :root { --slot: 12vw; }
  .weapon-slots { left: calc(50% - 10px) !important; }
  #touch [data-action=grenade], #roomTouch [data-action=grenade] { left: calc(50% - 10px - var(--slot) - 70px) !important; right: auto !important; }
}

/* v0.82 the match HUD pass (owner: "think like the best UI/UX; fix, remove, add"): the score line stays, the list opens on Tab
   (or a tap on the score), between rounds and at the end; kill-feed pills; cooldown rings for Blink and the grenade; the 3-2-1;
   the BOMB PLANTED banner; no paragraph on the Esc menu on computers; phones keep the clock centred with the radar on the left */
#liveScore > div:not(.teams-line) { display: none; }
#liveScore.open > div:not(.teams-line) { display: flex; }
#multiHud .scoreboard > small { display: none; }
#liveScore.open ~ small, #multiHud .scoreboard:has(#liveScore.open) > small { display: block; }
#multiHud .scoreboard { cursor: pointer; }
#multiHud .kill-row { background: rgba(6, 10, 15, .5) !important; border: 0 !important; border-radius: 99px !important; padding: 5px 12px !important; margin-top: 5px !important; font: 700 12px/1 var(--display) !important; letter-spacing: .04em; color: rgba(255, 255, 255, .85); align-items: center; }
#multiHud .kill-row b { font-weight: 800; } #multiHud .kill-row span { font-size: 10px; letter-spacing: .08em; }
#multiHud .kill-row.mine { box-shadow: inset 0 0 0 1.5px #4fa8ff; } #multiHud .kill-row.dead { box-shadow: inset 0 0 0 1.5px #ff5a4d; }
.cool { position: relative; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; padding: 0 !important; background: conic-gradient(var(--accent) calc(var(--p, 1) * 360deg), rgba(6, 10, 15, .45) 0) !important; font-size: 0 !important; letter-spacing: 0 !important; }
.cool::before { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: rgba(6, 10, 15, .72); }
.cool svg { position: relative; width: 46%; height: 46%; color: #fff; }
.cool:not(.ready) svg { opacity: .55; }
.cool small { position: absolute; right: -3px; bottom: -3px; min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: #f2f5f8; color: #0b1118; font: 800 12px/1 var(--display); letter-spacing: 0; text-shadow: none; }
.cool.ready-pulse { box-shadow: 0 0 0 3px rgba(41, 216, 255, .45); }
.round-big { font: 800 clamp(64px, 12vh, 110px)/1 var(--display); color: #fff; text-shadow: 0 6px 30px rgba(0, 0, 0, .65); margin-top: 8px; }
.round-big.tick { animation: round-tick .5s ease-out; }
@keyframes round-tick { 0% { transform: scale(1.5); opacity: .4; } 100% { transform: scale(1); opacity: 1; } }
.bomb-banner { margin-top: 10px; padding: 10px 26px; border-radius: 10px; font: 800 clamp(22px, 3.2vw, 34px)/1 var(--display); letter-spacing: .08em; color: #fff; background: rgba(255, 59, 48, .9); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: banner-in .25s ease-out; }
.bomb-banner.defuse { background: rgba(79, 168, 255, .92); }
@keyframes banner-in { from { transform: translateY(-10px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
@media (pointer: fine) { #captureText { display: none; } }
@media (pointer: coarse) {
  #multiHud .hud-top { justify-content: center !important; position: relative; }
  #multiHud .hud-right { position: absolute; right: 64px; top: 0; }
  #multiHud .status-chips { display: none !important; }
}
#modePick.fresh [data-mode=gungame], #modePick.fresh [data-mode=survival] { display: none; }

@media (pointer: coarse) and (max-width: 600px) {
  :root { --slot: 10vw; }
}

/* the solo match gets the same grenade ring beside Blink (computers); phones have the button */
#hud .hud-bottom > #nadeRing { grid-area: 1 / 1; justify-self: start; align-self: end; margin-left: 76px; width: 62px; height: 62px; }
@media (pointer: coarse) { #nadeRing { display: none !important; } }

/* the solo Blink button is the same ring as the others: the bolt, the Q badge, the cooldown around it */
#hud .dash.cool { width: 62px !important; height: 62px !important; display: grid !important; place-items: center; padding: 0 !important; box-shadow: none !important; background: conic-gradient(var(--accent) calc(var(--p, 1) * 360deg), rgba(6, 10, 15, .45) 0) !important; }
#hud .dash.cool::after { content: 'Q'; }
#hud .dash.cool .dash-track, #hud .dash.cool small, #hud .dash.cool #dashlabel { display: none !important; }
#hud .dash.cool > svg { position: relative; width: 46%; height: 46%; color: #fff; }
#hud .dash.cool:not(.ready) > svg { opacity: .55; }
@media (pointer: coarse) and (max-width: 700px) {
  #multiHud .hud-right { top: 60px; right: 60px; } /* the score line drops under the clock on phones up to 700 wide (at 664 it crossed the clock) */
}
/* short laptop screens: the GOALS panel collided with the rail's lower buttons; the goals live on the door and the Progress screen */
@media (max-height: 720px) and (min-width: 760px) { .lb-missions { display: none !important; } }
/* phones: the health bar stays clear of CROUCH on narrow screens; the online menu button has one size everywhere (on tablets it
   had none and grew to fill its line); a lobby of ten splits into two columns, team A and team B, so it fits a phone */
@media (pointer: coarse) and (max-width: 760px) { #hud .vitals, #multiHud .vitals { width: 170px !important; } }
#touchMenu { position: fixed !important; top: 10px !important; right: 12px !important; width: 46px !important; height: 46px !important; min-height: 0 !important; padding: 0 !important; display: grid !important; place-items: center; font-size: 0 !important; }
#touchMenu[hidden] { display: none !important; }
#touchMenu svg { width: 54% !important; height: 54% !important; }
@media (pointer: coarse) {
  #roomLobby #roster:has(.roster-row:nth-child(7)) { grid-template-columns: 1fr 1fr !important; grid-auto-flow: column; grid-template-rows: repeat(5, auto); column-gap: 10px; }
  #roomLobby #roster:has(.roster-row:nth-child(7)) .roster-row { min-height: 4rem !important; padding: .3rem .9rem !important; }
  #roomLobby #roster:has(.roster-row:nth-child(7)) .roster-row small { font-size: max(var(--tf, 11px), .95rem) !important; }
}
/* the results card: the week's challenges live in CAREER (one tap away); with the map vote on the card they no longer fit a
   1366x650 laptop, and today's missions are what a player wants to see at the end of a match */
#summaryGoals > h3:nth-of-type(2), #summaryWeekly { display: none !important; }
/* the smallest phones (568 wide): the health bar is a touch narrower so CROUCH never touches it */
@media (pointer: coarse) and (max-width: 600px) { #hud .vitals, #multiHud .vitals { width: 150px !important; } }
/* the smallest phones (568 x 320): ten lobby rows in two columns are shorter so the whole roster sits above the loadout bar;
   the kicker on the Quick Play tile gets a shadow so it reads over the bright map */
@media (pointer: coarse) and (max-width: 600px) {
  #roomLobby #roster:has(.roster-row:nth-child(7)) .roster-row { min-height: 2.9rem !important; padding: .15rem .6rem !important; column-gap: .7rem; grid-template-columns: 3rem minmax(0, 1fr) auto auto; }
  #roomLobby #roster:has(.roster-row:nth-child(7)) .roster-row .slot-face { width: 2.6rem !important; height: 2.6rem !important; font-size: max(var(--tf, 11px), 1.3rem) !important; }
  #roomLobby #roster:has(.roster-row:nth-child(7)) .roster-row > span:first-of-type { font-size: max(var(--tf, 11px), 1.5rem) !important; }
}
.scr .scr-kicker { text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 0 12px rgba(0, 0, 0, .6); }
/* the results card body: the map vote and today's missions stack in the left column while the reward keeps the right one
   (before, the short vote shared a row with the tall reward and pushed the missions off a 1366x650 screen) */
@media (min-width: 621px) {
  .summary-body { grid-template-rows: auto auto; }
  .summary-body .summary-vote { grid-column: 1; grid-row: 1; margin-bottom: 0; }
  .summary-body #summaryGoals { grid-column: 1; grid-row: 2; }
  .summary-body .summary-vote[hidden] + #summaryReward ~ #summaryGoals { grid-row: 1 / 3; }
  .summary-body #summaryReward { grid-column: 2; grid-row: 1 / 3; }
}
/* the smallest phones (568 wide): a weapon box is too narrow for the name beside the ammo (M4 became "M."), so the name sits
   above the ammo in each box */
@media (pointer: coarse) and (max-width: 600px) {
  .weapon-slots button { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: auto auto; gap: 0 !important; padding: 0 4px !important; height: 38px !important; font-size: 10px !important; letter-spacing: 0 !important; line-height: 1.15 !important; justify-items: center; text-align: center !important; }
  .weapon-slots button span { font-size: 11px !important; }
}
/* phones up to 700 wide: the score line sits under the clock, so the spectating card and WATCH NEXT move down a step, and the
   friends' mic button sits under the radar (its old place crossed the radar) */
@media (pointer: coarse) and (max-width: 700px) {
  .touch-room #multiDeath.spectate { top: 102px !important; }
  .spectate-next { top: 174px !important; }
}
@media (pointer: coarse) { #roomTouch ~ #voiceButton, body:has(#roomTouch) #voiceButton { left: 12px !important; top: 104px !important; } }

/* v0.83 phone controls (owner 2026-11-06: "clean the right view more"): JUMP, CROUCH, AIM and RELOAD sit on one even arc round FIRE
   (94 px from its centre, 40 degrees apart) with BLINK just outside it; the Blink dial under the gun box is gone on phones because
   the BLINK button shows its own cooldown */
@media (pointer: coarse) { #hud .hud-bottom > .dash { visibility: hidden !important; } }

/* v0.84 online top bar (owner: "fix this layout, give it a different look; it looks bad and weird"): one scoreboard at the
   top centre in place of the clock bubble, the team pill in the corner and the round pill. Your team on the left in blue,
   the other on the right in red: a solid score tile beside the clock, the team's name and a slanted marker per player (lit
   while alive in Bomb). The clock and the round sit on a dark angled slab in the middle; the objective is one slim line
   under the bar. The corner plate is now a small SCORES button that opens the full list (Tab on a computer). */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; margin: -1px !important; padding: 0 !important; }
#multiHud .matchclock .tb-mid { display: grid; justify-items: center; align-content: center; }
#multiHud .matchclock .tb-side { display: none; }
#multiHud .matchclock.tb-teams { display: grid !important; grid-template-columns: auto auto auto; justify-content: center; align-items: stretch; row-gap: 8px; padding: 0 !important; min-width: 0 !important; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
#multiHud .matchclock.tb-teams > .tb-a { grid-column: 1; grid-row: 1; }
#multiHud .matchclock.tb-teams > .tb-mid { grid-column: 2; grid-row: 1; }
#multiHud .matchclock.tb-teams > .tb-b { grid-column: 3; grid-row: 1; }
#multiHud .matchclock.tb-teams > #compass { display: none !important; }
#multiHud .matchclock.tb-teams > #pointHud, #multiHud .matchclock.tb-teams > #bombHud { grid-column: 1 / -1; grid-row: 2; justify-self: center; margin: 0 !important; }
#multiHud .matchclock.tb-teams .tb-mid { position: relative; z-index: 1; min-width: 96px; padding: 5px 20px 6px; background: rgba(9, 13, 20, .9); clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 10px 100%); }
#multiHud .matchclock.tb-teams #clockLabel { display: none !important; }
#multiHud .matchclock.tb-teams #matchTime { font: 800 30px/1 var(--display) !important; letter-spacing: .02em; color: #fff; margin: 0 !important; font-variant-numeric: tabular-nums; }
#multiHud .matchclock .tb-round { font: 700 11px/1 var(--display) !important; letter-spacing: .14em; color: rgba(255, 255, 255, .72) !important; margin-top: 3px; white-space: nowrap; }
#multiHud .matchclock .tb-round:empty { display: none; }
#multiHud .matchclock.tb-teams .tb-side { display: flex; align-items: stretch; background: rgba(9, 13, 20, .62); min-height: 46px; }
#multiHud .matchclock.tb-teams .tb-a { flex-direction: row-reverse; clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%); margin-right: -10px; padding-left: 14px; }
#multiHud .matchclock.tb-teams .tb-b { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 100%, 0 100%); margin-left: -10px; padding-right: 14px; }
#multiHud .matchclock .tb-score { display: grid; place-items: center; min-width: 52px; padding: 0 6px; font: 800 30px/1 var(--display); color: #fff; font-variant-numeric: tabular-nums; }
#multiHud .matchclock .tb-a .tb-score { background: linear-gradient(180deg, #3d8bff, #1f63d6); padding-right: 14px; }
#multiHud .matchclock .tb-b .tb-score { background: linear-gradient(180deg, #ff5a5f, #cf2f3a); padding-left: 14px; }
#multiHud .matchclock .tb-info { display: grid; align-content: center; gap: 5px; padding: 0 12px; }
#multiHud .matchclock .tb-a .tb-info { justify-items: end; }
#multiHud .matchclock .tb-name { font: 800 12px/1 var(--display); letter-spacing: .12em; white-space: nowrap; }
#multiHud .matchclock .tb-a .tb-name { color: #9cc6ff; }
#multiHud .matchclock .tb-b .tb-name { color: #ffa3a6; }
#multiHud .matchclock .tb-pips { display: flex; gap: 3px; }
#multiHud .matchclock .tb-pips:empty { display: none; }
#multiHud .matchclock .tb-pips i { width: 8px; height: 13px; transform: skewX(-14deg); background: rgba(255, 255, 255, .16); }
#multiHud .matchclock .tb-a .tb-pips i.on { background: #4f9bff; box-shadow: 0 0 6px rgba(79, 155, 255, .6); }
#multiHud .matchclock .tb-b .tb-pips i.on { background: #ff5a5f; box-shadow: 0 0 6px rgba(255, 90, 95, .6); }
#multiHud .bomb-goal { display: inline-block; padding: 5px 14px; border-radius: 6px; background: rgba(9, 13, 20, .62); font: 800 13px/1 var(--display); letter-spacing: .1em; color: #fff; white-space: nowrap; }
#multiHud .bomb-goal:empty { display: none; }
/* the corner plate: a small SCORES button while closed (the full list opens on Tab, or a tap) */
body:has(#multiHud .matchclock.tb-teams) #multiHud .scoreboard:not(:has(#liveScore.open)) .teams-line { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; }
body:has(#multiHud .matchclock.tb-teams) #multiHud .scoreboard:not(:has(#liveScore.open)) { padding: 7px 12px !important; }
body:has(#multiHud .matchclock.tb-teams) #multiHud .scoreboard:not(:has(#liveScore.open))::before { content: 'TAB · SCORES'; font: 800 11px/1 var(--display); letter-spacing: .14em; color: rgba(255, 255, 255, .8); }
body.touch-room:has(#multiHud .matchclock.tb-teams) #multiHud .scoreboard:not(:has(#liveScore.open))::before { content: 'SCORES'; }
@media (max-width: 760px) {
  #multiHud .matchclock.tb-teams .tb-name { display: none; }
  #multiHud .matchclock.tb-teams .tb-side { min-height: 40px; }
  #multiHud .matchclock .tb-score { min-width: 40px; font-size: 24px; }
  #multiHud .matchclock.tb-teams #matchTime { font-size: 24px !important; }
  #multiHud .matchclock.tb-teams .tb-mid { min-width: 78px; padding: 4px 16px 5px; }
  #multiHud .matchclock .tb-pips i { width: 6px; height: 10px; }
  #multiHud .bomb-goal { font-size: 11px; padding: 4px 10px; }
}
#multiHud .matchclock.tb-teams > .area-name { display: none !important; }
body:has(#multiHud .matchclock.tb-teams) #bombHud.mis-hud, body:has(#multiHud .matchclock.tb-teams) #pointHud.point-hud { top: 84px !important; }
body:has(#multiHud .matchclock.tb-teams) #multiHud .scoreboard:not(:has(#liveScore.open)) { width: max-content !important; min-width: 0 !important; margin-left: auto !important; align-self: flex-end; }
@media (max-height: 520px) { body:has(#multiHud .matchclock.tb-teams) #bombHud.mis-hud, body:has(#multiHud .matchclock.tb-teams) #pointHud.point-hud { top: 64px !important; } }
/* phones: the SCORES button sits under the menu button, clear of the bar */
/* phones: the scores button is a small list icon left of the menu button, in the top band the look area leaves free */
@media (pointer: coarse) {
  body.touch-room:has(#multiHud .matchclock.tb-teams) #multiHud .hud-right { top: 10px !important; right: 66px !important; }
  body.touch-room:has(#multiHud .matchclock.tb-teams) #multiHud .scoreboard:not(:has(#liveScore.open)) { width: 40px !important; height: 40px !important; padding: 0 !important; border-radius: 10px !important; pointer-events: auto; background: rgba(6, 10, 15, .5) linear-gradient(#fff, #fff) no-repeat center 12px / 18px 2.5px !important; }
  body.touch-room:has(#multiHud .matchclock.tb-teams) #multiHud .scoreboard:not(:has(#liveScore.open))::before { content: '' !important; position: absolute; left: 11px; top: 18.5px; width: 18px; height: 9px; border-top: 2.5px solid #fff; border-bottom: 2.5px solid #fff; box-sizing: border-box; }
}
body:has(#multiHud .matchclock.tb-teams) #multiHud .scoreboard:not(:has(#liveScore.open)) #liveScore { min-width: 0 !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
@media (pointer: coarse) { body:has(#multiHud .matchclock.tb-teams) #bombHud.mis-hud, body:has(#multiHud .matchclock.tb-teams) #pointHud.point-hud { top: 70px !important; } }
/* phones, online: the look area starts under the top band, so the SCORES button (and the radar marks) there can be tapped;
   before v0.84 the look area covered the whole right side to the top and the score plate could not be pressed */
@media (pointer: coarse) { #roomTouch #roomLook { top: 56px !important; } }
@media (pointer: coarse) {
  body.touch-room:has(#multiHud .matchclock.tb-teams) #multiHud .hud-right:has(#liveScore.open) { top: 100px !important; }
}
@media (max-width: 600px) {
  #multiHud .matchclock .tb-score { min-width: 32px; font-size: 20px; padding: 0 4px; }
  #multiHud .matchclock .tb-a .tb-score { padding-right: 12px; }
  #multiHud .matchclock .tb-b .tb-score { padding-left: 12px; }
  #multiHud .matchclock.tb-teams .tb-side { min-height: 34px; }
  #multiHud .matchclock.tb-teams .tb-a { padding-left: 10px; }
  #multiHud .matchclock.tb-teams .tb-b { padding-right: 10px; }
  #multiHud .matchclock .tb-info { padding: 0 8px; }
  #multiHud .matchclock .tb-pips { gap: 2px; }
  #multiHud .matchclock .tb-pips i { width: 5px; height: 9px; }
  #multiHud .matchclock.tb-teams #matchTime { font-size: 20px !important; }
  #multiHud .matchclock .tb-round { font-size: 9px !important; letter-spacing: .1em; }
  #multiHud .matchclock.tb-teams .tb-mid { min-width: 64px; padding: 3px 14px 4px; }
}
@media (pointer: coarse) { body.touch-room:has(#multiHud .matchclock.tb-teams) #multiHud .scoreboard:not(:has(#liveScore.open)) { position: fixed !important; top: max(10px, env(safe-area-inset-top)) !important; right: max(64px, calc(env(safe-area-inset-right) + 54px)) !important; margin: 0 !important; } }
/* the phone scores button draws a leaderboard podium (three bars), not three lines like the menu button beside it */
@media (pointer: coarse) {
  body.touch-room:has(#multiHud .matchclock.tb-teams) #multiHud .scoreboard:not(:has(#liveScore.open)) { background-color: rgba(6, 10, 15, .5) !important; background-image: linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff) !important; background-size: 6px 10px, 6px 16px, 6px 7px !important; background-position: 10px 18px, 17px 12px, 24px 21px !important; background-repeat: no-repeat !important; }
  body.touch-room:has(#multiHud .matchclock.tb-teams) #multiHud .scoreboard:not(:has(#liveScore.open))::before { display: none !important; }
}

/* v0.84: aiming at 1x looks through the 3D red-dot sight on the gun; the flat box drawn over the screen is gone, its dot stays
   (it sits in the sight's glass) */
#redDot { border: 0 !important; background: none !important; box-shadow: none !important; border-radius: 0 !important; }
#redDot::after { display: none !important; }

/* v0.84.5: aiming zooms with the gun beside the middle; the red dot alone marks the centre (no box) */
#redDot i { width: 7px !important; height: 7px !important; margin: -3.5px !important; }
html.aim-sights #redDot { display: none !important; }
/* v0.84.6 aim style "holo" (default): at 1x the gun gives way to a holographic sight in the middle of the screen: a dark
   rounded frame with a faint blue glass, a red ring and a red dot; the world zooms as before */
html.aim-holo #redDot { width: 210px !important; height: 158px !important; margin: -79px 0 0 -105px !important; border-radius: 24px !important; border: 5px solid rgba(18, 24, 30, .94) !important; background: radial-gradient(ellipse at 50% 45%, rgba(150, 230, 255, .10), rgba(120, 200, 240, .04) 70%) !important; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .14), inset 0 -18px 30px rgba(40, 120, 170, .12), 0 6px 18px rgba(0, 0, 0, .35) !important; }
html.aim-holo #redDot::before { content: ''; position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px; border-radius: 50%; border: 2px solid rgba(255, 64, 52, .95); box-shadow: 0 0 6px rgba(255, 64, 52, .75); }
html.aim-holo #redDot::after { display: block !important; content: ''; position: absolute; left: 50%; bottom: -16px; top: auto; width: 70px; height: 11px; margin-left: -35px; background: rgba(18, 24, 30, .94); border-radius: 0 0 6px 6px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
html.aim-holo #redDot i { width: 6px !important; height: 6px !important; margin: -3px !important; }
@media (max-height: 520px) { html.aim-holo #redDot { width: 160px !important; height: 120px !important; margin: -60px 0 0 -80px !important; } html.aim-holo #redDot::before { width: 40px; height: 40px; margin: -20px; } }

/* v0.84.7 fixes from the full-screen audit (phones first) */
.lb-play #start small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 44px); }
@media (max-height: 520px) { .lb-play #start small { font-size: 10px !important; letter-spacing: .04em; } }
@media (max-height: 520px) and (max-width: 720px) { .lb-play #start small { letter-spacing: 0; max-width: calc(100% - 36px); } }
#menu .map-text small, #menu .map-text b { text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 0 10px rgba(0, 0, 0, .7); }
@media (max-height: 520px) and (orientation: landscape) and (max-width: 720px) {
  .scr-res .res-main { grid-template-columns: minmax(0, 1fr) minmax(0, 46rem); gap: 3rem; }
  .scr-res #resultTitle { font-size: 4.4rem; }
  .scr-res .resultstats { gap: 1rem; }
  .scr-res .resultstats small { letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* v0.84.9 a signed-in player's name comes from the account: shown, not typed */
.lobby .name-card input[readonly] { border-bottom-color: transparent; cursor: default; }
.lobby .name-card input[readonly]:focus { border-bottom-color: transparent; outline: none; }

/* ===== v0.85 BOSS FIGHT: the home card and the boss screen. One ember colour marks everything boss; the boss pictures
   break out of their frames. ===== */
:root { --ember: #ff6a2a; --ember-hi: #ffb347; --ember-deep: #2a0d06; }
.lb-play .boss-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 46%; align-items: end; height: 150px; margin-top: 50px; padding: 0 !important; border: 0; background: none; color: #fff; text-align: left; cursor: pointer; isolation: isolate; }
.boss-card::before { content: ''; position: absolute; inset: 0; z-index: -2; clip-path: var(--chamfer); --cut: 12px; background: radial-gradient(120% 140% at 85% 100%, #a2300f 0%, #5a1608 38%, var(--ember-deep) 72%), var(--ember-deep); box-shadow: inset 0 0 0 2px rgba(255, 106, 42, .5); }
.boss-card::after { content: ''; position: absolute; right: 6%; bottom: -10%; width: 46%; aspect-ratio: 1; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 140, 50, .55), rgba(255, 90, 20, 0)); animation: boss-ember 2.6s ease-in-out infinite; pointer-events: none; }
.boss-card-art { position: absolute; right: 0; bottom: 0; width: 60%; height: 200px; pointer-events: none; }
.boss-card-art img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: right bottom; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .6)); transition: transform .25s ease; transform-origin: 60% 100%; }
.boss-card-text { grid-column: 1; display: grid; justify-items: start; gap: 6px; padding: 0 0 16px 18px; min-width: 0; }
.boss-card-text small { display: inline-flex; align-items: center; gap: 6px; font: 800 13px/1 var(--display); letter-spacing: .16em; color: var(--ember-hi); }
.boss-card-text small svg { width: 16px; height: 16px; color: var(--ember); }
.boss-card-text b { font: 800 34px/.95 var(--display); letter-spacing: .02em; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); text-wrap: balance; }
#bossCardState { font: 700 12px/1.2 var(--display); letter-spacing: .1em; color: #f3c9b4; }
.boss-card-go { margin-top: 6px; display: inline-flex; align-items: center; gap: 2px; height: 30px; padding: 0 8px 0 12px; clip-path: var(--chamfer); --cut: 7px; background: var(--ember); color: #1b0700; font: 800 14px/1 var(--display); letter-spacing: .12em; }
.boss-card-go svg { width: 16px; height: 16px; stroke-width: 3; }
.boss-card:hover .boss-card-art img, .boss-card:focus-visible .boss-card-art img { transform: scale(1.05); }
.boss-card:focus-visible { outline: 3px solid var(--ember-hi); outline-offset: 3px; }
.boss-card:active { transform: translateY(1px); }
@keyframes boss-ember { 50% { opacity: .55; transform: scale(.92); } }

.scr-boss .boss-total { margin-left: auto; font: 700 2.2rem/1 var(--display); color: var(--ember-hi); letter-spacing: .04em; }
.scr-boss .boss-main { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 2.4rem; min-height: 0; padding-top: 2.4rem; }
.scr-boss .boss-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; min-height: 0; }
.scr-boss .boss-tile { position: relative; display: grid; align-content: end; min-height: 0; padding: 0 1.8rem 1.8rem; border: 0; border-radius: 1.2rem; overflow: hidden; color: #fff; text-align: left; cursor: pointer; isolation: isolate;
  background: radial-gradient(90% 70% at 50% 42%, color-mix(in srgb, var(--boss) 45%, transparent), transparent 70%), linear-gradient(180deg, #1d1410, #0d0a09); }
.scr-boss .boss-tile img { position: absolute; left: 50%; top: 4%; z-index: -1; height: 78%; width: auto; max-width: none; transform: translateX(-50%); filter: drop-shadow(0 1rem 1.6rem rgba(0, 0, 0, .7)); transition: transform .25s ease, filter .25s ease; }
.scr-boss .boss-tile::after { content: ''; position: absolute; inset: 45% 0 0; z-index: -1; background: linear-gradient(180deg, transparent, rgba(8, 6, 5, .94) 70%); }
.scr-boss .boss-num { position: absolute; left: 1.6rem; top: 1.2rem; font: 800 4.4rem/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .35); }
.scr-boss .boss-tile-text { display: grid; gap: .6rem; }
.scr-boss .boss-tile-text b { font: 800 3.4rem/1 var(--display); letter-spacing: .02em; text-wrap: balance; }
.scr-boss .boss-tile-text small { font: 700 max(var(--tf, 11px), 1.3rem)/1.2 var(--display); letter-spacing: .12em; color: #f3c9b4; }
.scr-boss .boss-badge { position: absolute; right: 1.2rem; top: 1.2rem; display: inline-flex; align-items: center; gap: .5rem; max-width: 70%; padding: .6rem 1rem; border-radius: .6rem; background: rgba(8, 6, 5, .72); font: 700 max(var(--tf, 11px), 1.2rem)/1.15 var(--display); letter-spacing: .1em; color: var(--ember-hi); }
.scr-boss .boss-badge svg { flex: none; width: 1.6rem; height: 1.6rem; }
.scr-boss .boss-tile.beaten .boss-badge { color: var(--green); }
.scr-boss .boss-tile.locked { cursor: not-allowed; }
.scr-boss .boss-tile.locked img { filter: grayscale(1) brightness(.3); }
.scr-boss .boss-tile.locked .boss-badge, .scr-boss .boss-tile.locked .boss-tile-text small { color: #9aa7b6; }
.scr-boss .boss-tile.on { box-shadow: inset 0 0 0 .3rem var(--ember), 0 0 2.4rem rgba(255, 106, 42, .35); }
.scr-boss .boss-tile.on img { transform: translateX(-50%) scale(1.06); }
.scr-boss .boss-tile:focus-visible { outline: .3rem solid var(--ember-hi); outline-offset: .3rem; }
.scr-boss .boss-tile.nope { animation: boss-nope .32s ease; }
@keyframes boss-nope { 25% { translate: -.6rem 0; } 75% { translate: .6rem 0; } }
.scr-boss .boss-go { display: flex; align-items: end; justify-content: space-between; gap: 3rem; }
.scr-boss .boss-brief { display: grid; gap: .6rem; max-width: 70rem; min-width: 0; }
.scr-boss .boss-brief small { font: 700 max(var(--tf, 11px), 1.3rem)/1 var(--display); letter-spacing: .14em; color: var(--ember-hi); }
.scr-boss .boss-brief p { margin: 0; font: 500 1.8rem/1.35 var(--body); color: #f1e3dc; }
.scr-boss .boss-fight { display: grid; place-items: center; min-width: 30rem; min-height: 7.2rem; padding: 0 2.4rem; border: 0; border-radius: 1rem; background: linear-gradient(180deg, var(--ember-hi), var(--ember)) !important; color: #1b0700 !important; font: 800 2.6rem/1 var(--display); letter-spacing: .06em; white-space: nowrap; box-shadow: 0 .6rem 2rem rgba(255, 106, 42, .35); }
@media (prefers-reduced-motion: reduce) { .boss-card::after { animation: none; } .scr-boss .boss-tile.nope { animation: none; } }
@media (max-height: 820px) and (min-height: 541px) { .lb-play .boss-card { height: 128px; margin-top: 44px; } .boss-card-art { height: 172px; } .boss-card-text b { font-size: 30px; } .boss-card-go { margin-top: 2px; } }
@media (max-height: 540px) {
  .lb-play .boss-card { height: 72px; margin-top: 24px; grid-template-columns: minmax(0, 1fr) 46%; }
  .boss-card::before { --cut: 8px; }
  .boss-card-art { height: 100px; width: 54%; }
  .boss-card-text { gap: 3px; padding: 0 0 7px 10px; }
  .boss-card-text small { font-size: 10px; gap: 4px; } .boss-card-text small svg { width: 12px; height: 12px; }
  .boss-card-text b { font-size: 19px; }
  #bossCardState { display: none; }
  .boss-card-go { margin-top: 1px; height: 18px; font-size: 10px; padding: 0 4px 0 7px; --cut: 5px; } .boss-card-go svg { width: 12px; height: 12px; }
  .scr-boss .boss-main { gap: 1.2rem; padding-top: 1.2rem; }
  .scr-boss .boss-tile { padding: 0 1.2rem 1.2rem; } .scr-boss .boss-tile-text b { font-size: 2.4rem; } .scr-boss .boss-num { font-size: 3rem; }
  .scr-boss .boss-fight { min-height: 5.6rem; min-width: 24rem; font-size: 2.2rem; } .scr-boss .boss-brief p { font-size: max(var(--tf, 11px), 1.5rem); }
}
@media (orientation: portrait) { .scr-boss .boss-list { grid-template-columns: minmax(0, 1fr); } .scr-boss .boss-go { flex-direction: column; align-items: stretch; } .scr-boss .boss-fight { min-width: 0; } }

/* v0.85 BOSS FIGHT intro: 3 s, then the boss walks in */
.boss-intro { position: fixed; inset: 0; z-index: 40; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; pointer-events: none; overflow: hidden;
  background: radial-gradient(70% 90% at 68% 55%, color-mix(in srgb, var(--boss, #ff6a2a) 30%, transparent), transparent 70%), radial-gradient(120% 120% at 50% 50%, rgba(20, 6, 2, .35), rgba(8, 3, 1, .9)); opacity: 0; }
.boss-intro[hidden] { display: none; }
.boss-intro.go { animation: bi-in 3.3s ease both; }
.boss-intro .bi-bar { position: absolute; left: 0; right: 0; height: 11vh; background: #050302; }
.boss-intro .bi-top { top: 0; } .boss-intro .bi-bottom { bottom: 0; }
.boss-intro.go .bi-top { animation: bi-bar-top 3.3s cubic-bezier(.2, .8, .2, 1) both; }
.boss-intro.go .bi-bottom { animation: bi-bar-bottom 3.3s cubic-bezier(.2, .8, .2, 1) both; }
.boss-intro .bi-art { grid-column: 2; grid-row: 1; justify-self: center; width: min(46vw, 78vh); height: auto; max-width: none; filter: drop-shadow(0 2vh 4vh rgba(0, 0, 0, .8)); }
.boss-intro.go .bi-art { animation: bi-art 3.3s cubic-bezier(.16, .9, .3, 1) both; }
.boss-intro .bi-text { grid-column: 1; grid-row: 1; display: grid; gap: 1.4vh; justify-items: end; padding-right: 2vw; text-align: right; }
.boss-intro .bi-text small { display: inline-flex; align-items: center; gap: .6vw; font: 800 clamp(14px, 2.4vh, 26px)/1 var(--display); letter-spacing: .3em; color: var(--ember-hi); }
.boss-intro .bi-text small svg { width: 1.2em; height: 1.2em; color: var(--ember); }
.boss-intro .bi-text b { font: 800 clamp(44px, 13vh, 150px)/.86 var(--display); letter-spacing: .01em; color: #fff; text-shadow: 0 .6vh 3vh rgba(255, 90, 20, .45); text-wrap: balance; }
.boss-intro .bi-text span { font: 700 clamp(12px, 2vh, 20px)/1 var(--display); letter-spacing: .16em; color: #f3c9b4; }
.boss-intro.go .bi-text { animation: bi-text 3.3s cubic-bezier(.16, .9, .3, 1) both; }
@keyframes bi-in { 0% { opacity: 0; } 8%, 82% { opacity: 1; } 100% { opacity: 0; } }
@keyframes bi-bar-top { 0% { transform: translateY(-100%); } 12%, 84% { transform: none; } 100% { transform: translateY(-100%); } }
@keyframes bi-bar-bottom { 0% { transform: translateY(100%); } 12%, 84% { transform: none; } 100% { transform: translateY(100%); } }
@keyframes bi-art { 0% { transform: translateX(30%) scale(1.25); opacity: 0; } 18% { transform: translateX(-2%) scale(1.02); opacity: 1; } 22% { transform: translateX(1%) scale(1.03) rotate(-.6deg); } 26% { transform: translateX(-.5%) scale(1.02) rotate(.4deg); } 30%, 84% { transform: none; opacity: 1; } 100% { transform: scale(1.1); opacity: 0; } }
@keyframes bi-text { 0%, 10% { transform: translateX(-12%); opacity: 0; } 24%, 84% { transform: none; opacity: 1; } 100% { transform: translateX(-4%); opacity: 0; } }
@media (orientation: portrait) { .boss-intro { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; } .boss-intro .bi-art { grid-column: 1; grid-row: 1; width: 80vw; } .boss-intro .bi-text { grid-column: 1; grid-row: 2; justify-items: center; text-align: center; padding: 0; } }
@media (prefers-reduced-motion: reduce) { .boss-intro.go .bi-art, .boss-intro.go .bi-text, .boss-intro.go .bi-top, .boss-intro.go .bi-bottom { animation: none; } }
.res-go .res-next.res-boss { background: linear-gradient(180deg, var(--ember-hi), var(--ember)); color: #1b0700; }

/* v0.85 first-time guide: the home screen dims except one thing, with a few words beside it */
.guide { position: fixed; inset: 0; z-index: 45; }
.guide[hidden] { display: none; }
.guide-hole { position: fixed; border-radius: 10px; box-shadow: 0 0 0 200vmax rgba(5, 8, 12, .74), 0 0 0 3px var(--accent), 0 0 24px 4px rgba(41, 216, 255, .45); transition: left .3s ease, top .3s ease, width .3s ease, height .3s ease; pointer-events: none; }
.guide-tip { position: fixed; display: grid; gap: 8px; width: min(300px, 42vw); padding: 16px 18px; border-radius: 12px; background: #121a25; box-shadow: 0 12px 40px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .08); color: #fff; transition: left .3s ease, top .3s ease; }
.guide-tip small { font: 700 12px/1 var(--display); letter-spacing: .16em; color: var(--accent); }
.guide-tip b { font: 800 26px/1 var(--display); letter-spacing: .03em; }
.guide-tip p { margin: 0; font: 500 15px/1.35 var(--body); color: #d8e2ec; }
.guide-act { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; }
.guide-skip { padding: 8px 4px; border: 0; background: none; color: var(--muted); font: 700 13px/1 var(--display); letter-spacing: .12em; cursor: pointer; }
.guide-skip:hover, .guide-skip:focus-visible { color: #fff; }
.guide-next { min-height: 40px; padding: 0 18px !important; font: 800 15px/1 var(--display) !important; letter-spacing: .1em; }
@media (max-height: 540px) { .guide-tip { gap: 5px; padding: 10px 12px; width: min(240px, 40vw); } .guide-tip b { font-size: 19px; } .guide-tip p { font-size: 12px; } .guide-next { min-height: 32px; font-size: 12px !important; } .guide-skip { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .guide-hole, .guide-tip { transition: none; } }

/* v0.85 phone match HUD in rooms (QA at 844x390): the kill feed sat on the team score bar and the objective chip; it now
   stands at the right under the menu button, three rows at most, clear of the action buttons. Between rounds the open
   score list and the ELIMINATED BY card overlapped: while the list is open the card steps aside (the round is over). */
@media (pointer: coarse) {
  .touch-room #killFeed { position: fixed; top: 64px; right: max(12px, env(safe-area-inset-right)); left: auto; margin: 0 !important; width: auto; max-width: 36vw; display: flex; flex-direction: column; align-items: flex-end; z-index: 5; pointer-events: none; }
  .touch-room #killFeed .kill-row:nth-child(n + 4) { display: none; }
  .touch-room:has(#liveScore.open) #multiDeath { display: none !important; }
}
@media (pointer: coarse) and (max-height: 350px) { .touch-room #killFeed { top: 54px; max-width: 40vw; } .touch-room #killFeed .kill-row:nth-child(n + 3) { display: none; } }
/* v0.85 quick chat on a computer (T): the list sat inside the narrow right-hand HUD column and wrapped a word a line */
@media (pointer: fine) { #chatHint { position: fixed; left: 24px; top: 42%; width: max-content; max-width: 40vw; white-space: nowrap; z-index: 6; } }
/* v0.85 (QA, critical): the mission and online Bomb HUD was centred with transform: translateX(-50%), which made it the
   containing block of its position:fixed USE button on phones (bottom: 30vh of a 40 px strip = above the screen), so
   phones could not plant or defuse. Centred without a transform now; the USE button is placed on the screen again. */
.mis-hud { left: 0 !important; right: 0 !important; margin-inline: auto; width: max-content; max-width: 92vw; transform: none !important; }
@media (pointer: coarse) { .mis-hud { z-index: 30 !important; } .mis-hud .mis-use { pointer-events: auto; } } /* above the touch look zone, which took the USE button's taps */
/* v0.85 (QA) phone missions: the USE button now lives in the touch layer; it stands on the left above the move stick (planting
   means standing still, so the left thumb is free; on the right it sat on CROUCH or BLINK depending on the phone), large and gold so it is found at once; the LEFT THUMB / RIGHT THUMB hint moves down while the mission line or
   the boss intro card is at the top (it covered both) */
@media (pointer: coarse) {
  #touch .mis-use, #roomTouch .mis-use { position: fixed !important; left: max(28px, 4vw) !important; bottom: 50vh !important; right: auto !important; top: auto !important; width: 64px; height: 64px; background: var(--gold, #ffc83d) !important; color: #1a1200 !important; z-index: 3; }
  body:has(#missionHud:not([hidden])) #touchHint.touch-hint, body:has(#bossIntro:not([hidden])) #touchHint.touch-hint { top: auto !important; bottom: 92px; }
}
@media (pointer: coarse) and (max-height: 350px) { #touch .mis-use, #roomTouch .mis-use { width: 54px; height: 54px; bottom: 53vh !important; } }
/* v0.85 (QA): a boss win ("INFERNO DRAGON DEFEATED") was cut on phones; a long title takes two balanced lines there */
@media (max-height: 520px) and (orientation: landscape) { .scr-res #resultTitle { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; text-wrap: balance; line-height: .92; } }
/* v0.85 (QA) missions screen: the chosen map tab is plainly marked; the "clear ... first" line reads on a bright picture */
.scr-mis .mis-map.on { outline: .3rem solid var(--accent); outline-offset: -.3rem; }
.scr-mis .mis-map.on img { opacity: 1; }
.scr-mis .mis-map.locked small { color: #fff; opacity: .9; text-shadow: 0 1px 3px #000, 0 0 10px rgba(0, 0, 0, .85); }
/* v0.85: the USE button's icon shows on touch screens only (the computer chip stays "F HOLD") */
.mis-use svg { display: none; }
@media (pointer: coarse) { #touch .mis-use svg, #roomTouch .mis-use svg { display: block; width: 20px; height: 20px; margin: 0 auto -2px; } #touch .mis-use, #roomTouch .mis-use { flex-direction: column; justify-content: center; gap: 0; } }

/* ===== THE HUNT (2026-11-11): the stage bar, approved by the owner as a picture ===== */
.hunt-hud { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif; color: #fff; }
.hunt-track { display: flex; align-items: center; gap: 6px; padding: 8px 18px; background: rgba(10, 15, 21, .74); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%); }
.hunt-room { font-weight: 800; font-size: 22px; letter-spacing: .06em; line-height: 1; margin-right: 10px; white-space: nowrap; }
.hunt-room small { font-weight: 700; font-size: 13px; color: rgba(255, 255, 255, .62); letter-spacing: .12em; margin-right: 6px; }
.hunt-room b { font-weight: 800; }
.hunt-track i { width: 16px; height: 16px; transform: rotate(45deg); border: 2px solid rgba(255, 255, 255, .4); flex: none; }
.hunt-track i[data-pip="done"] { background: var(--accent, #29d8ff); border-color: var(--accent, #29d8ff); }
.hunt-track i[data-pip="now"] { background: #ff6a2a; border-color: #ffb347; box-shadow: 0 0 12px rgba(255, 122, 26, .9); }
.hunt-track u { width: 28px; height: 2px; background: rgba(255, 255, 255, .3); flex: none; text-decoration: none; }
.hunt-track u[data-seg="done"] { background: var(--accent, #29d8ff); }
.hunt-track em { min-width: 30px; height: 30px; padding: 0 8px; box-sizing: border-box; border-radius: 15px; letter-spacing: .06em; border: 2px solid rgba(255, 255, 255, .4); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 11px; color: rgba(255, 255, 255, .72); flex: none; }
.hunt-left { display: flex; align-items: baseline; gap: 8px; padding: 4px 14px; background: rgba(10, 15, 21, .74); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); font-weight: 700; font-size: 13px; letter-spacing: .14em; color: rgba(255, 255, 255, .82); }
.hunt-left b { font-weight: 800; font-size: 24px; color: #ffb347; letter-spacing: 0; }
html.in-hunt .hud-top .matchclock, html.in-hunt .hud-top .score { visibility: hidden; }
@media (max-height: 430px) { .hunt-hud { top: 6px; gap: 4px; } .hunt-track { padding: 5px 14px; gap: 5px; } .hunt-room { font-size: 16px; margin-right: 6px; } .hunt-room small { font-size: 10px; } .hunt-track i { width: 12px; height: 12px; } .hunt-track u { width: 18px; } .hunt-track em { min-width: 24px; height: 24px; padding: 0 6px; font-size: 10px; } .hunt-left { font-size: 10px; padding: 3px 10px; } .hunt-left b { font-size: 17px; } }

/* ===== The first screen, three boxes (2026-11-11, approved by the owner as a picture): THE HUNT big, two online boxes beside it ===== */
.door.dh { --u: min(100vw / 1366, 100vh / 650); --ember: #ff6a2a; --ember-hi: #ffb347; grid-template-rows: auto minmax(0, 1fr) auto; justify-items: stretch; align-content: stretch; gap: calc(14 * var(--u)); padding: calc(22 * var(--u)) calc(34 * var(--u)) calc(24 * var(--u)); background: radial-gradient(120% 90% at 30% 100%, rgba(255, 106, 42, .22), transparent 60%), linear-gradient(180deg, rgba(8, 12, 18, .72), rgba(8, 12, 18, .95)); backdrop-filter: blur(10px); }
.door.dh .door-brand { justify-self: start; font-size: calc(34 * var(--u)); letter-spacing: .02em; }
.dh-grid { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); gap: calc(16 * var(--u)); min-height: 0; }
.dh-hunt { position: relative; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: calc(18 * var(--u)) calc(22 * var(--u)); border: 0; margin: 0; text-align: left; color: #fff; font-family: var(--display); cursor: pointer; background: radial-gradient(90% 120% at 78% 100%, #8f2a0c 0%, #4a1206 42%, #2a0d06 78%); clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px)); box-shadow: inset 0 0 0 2px rgba(255, 106, 42, .55); animation: dh-in .6s cubic-bezier(.2, .8, .2, 1) both; }
.dh-hunt::before { content: ''; position: absolute; inset: -20%; pointer-events: none; background: radial-gradient(40% 50% at 80% 110%, rgba(255, 140, 50, .34), transparent 70%); animation: dh-heat 3.6s ease-in-out infinite alternate; }
.dh-hunt > * { position: relative; }
.dh-head { display: block; }
.dh-eyebrow { display: flex; align-items: center; gap: calc(8 * var(--u)); font-weight: 700; font-size: max(11px, calc(15 * var(--u))); letter-spacing: .14em; color: var(--ember-hi); }
.dh-eyebrow i { width: calc(9 * var(--u)); height: calc(9 * var(--u)); background: var(--ember); transform: rotate(45deg); }
.dh-title { display: block; margin-top: calc(2 * var(--u)); font-weight: 800; font-size: calc(58 * var(--u)); line-height: .92; letter-spacing: .01em; }
.dh-road { position: relative; display: grid; grid-template-columns: 1fr 1fr 1.35fr; align-items: end; min-height: 0; }
.dh-boss { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; }
.dh-boss img { position: absolute; left: 50%; bottom: calc(46 * var(--u)); width: auto; height: 92%; max-width: 132%; object-fit: contain; transform: translateX(-50%); filter: drop-shadow(0 calc(10 * var(--u)) calc(16 * var(--u)) rgba(0, 0, 0, .65)); animation: dh-rise .7s cubic-bezier(.2, .8, .2, 1) both, dh-breathe 4.2s ease-in-out .7s infinite; }
.dh-boss.mid img { height: 84%; animation-delay: .12s, .9s; }
.dh-boss.final img { height: 112%; bottom: calc(40 * var(--u)); animation-delay: .24s, 1.1s; }
.dh-boss.locked img { filter: brightness(.16) saturate(.4) drop-shadow(0 0 calc(18 * var(--u)) rgba(255, 106, 42, .35)); }
.dh-boss.first::before { content: ''; position: absolute; left: 50%; bottom: calc(30 * var(--u)); width: 78%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 150, 60, .5), transparent); animation: dh-heat 2.4s ease-in-out infinite alternate; }
.dh-node { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: calc(3 * var(--u)); padding-top: calc(8 * var(--u)); }
.dh-pip { width: calc(26 * var(--u)); height: calc(26 * var(--u)); display: grid; place-items: center; background: #1a0c07; border: 2px solid rgba(255, 255, 255, .28); color: rgba(255, 255, 255, .6); transform: rotate(45deg); }
.dh-pip b { transform: rotate(-45deg); font-weight: 800; font-size: max(11px, calc(15 * var(--u))); font-style: normal; }
.dh-boss.first .dh-pip { background: var(--ember); border-color: var(--ember-hi); color: #1b0e03; animation: dh-pulse 1.6s ease-in-out infinite; }
.dh-name { font-weight: 800; font-size: max(13px, calc(20 * var(--u))); letter-spacing: .04em; line-height: 1; white-space: nowrap; }
.dh-boss.locked .dh-name { color: rgba(255, 255, 255, .62); }
.dh-tag { font-weight: 700; font-size: max(11px, calc(11.5 * var(--u))); letter-spacing: .14em; color: var(--ember-hi); }
.dh-boss.locked .dh-tag { color: rgba(255, 255, 255, .5); }
.dh-rail { position: absolute; left: 12%; right: 16%; bottom: calc(52 * var(--u)); height: 2px; z-index: 1; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .3) 0 calc(8 * var(--u)), transparent calc(8 * var(--u)) calc(16 * var(--u))); }
.dh-rail::before { content: ''; position: absolute; left: 0; top: -1px; height: 4px; width: 8%; background: var(--ember); }
.dh-foot { display: flex; align-items: center; justify-content: space-between; gap: calc(14 * var(--u)); margin-top: calc(10 * var(--u)); }
.dh-chips { display: flex; gap: calc(8 * var(--u)); }
.dh-chips i { font-style: normal; font-weight: 700; font-size: max(11px, calc(12.5 * var(--u))); letter-spacing: .12em; padding: calc(6 * var(--u)) calc(10 * var(--u)); background: rgba(0, 0, 0, .38); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.dh-go { position: relative; overflow: hidden; display: flex; align-items: center; gap: calc(14 * var(--u)); font-weight: 800; font-size: max(18px, calc(27 * var(--u))); line-height: 1; letter-spacing: .04em; color: #1b0e03; padding: calc(15 * var(--u)) calc(22 * var(--u)) calc(17 * var(--u)) calc(26 * var(--u)); background: linear-gradient(180deg, var(--ember-hi), var(--ember)); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); filter: drop-shadow(0 calc(5 * var(--u)) 0 #8a2c06); transition: transform .18s ease; }
.dh-go svg { width: calc(22 * var(--u)); height: calc(22 * var(--u)); min-width: 16px; min-height: 16px; }
.dh-go::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%); transform: translateX(-130%); animation: door-sheen 3s ease-in-out 1s infinite; }
@media (hover: hover) { .dh-hunt:hover .dh-go { transform: translateX(calc(6 * var(--u))); } .dh-hunt:hover .dh-boss.first img { animation-duration: .7s, 1.6s; } }
.dh-hunt:focus-visible { outline: 3px solid var(--ember-hi); outline-offset: 3px; }
.dh-hunt:active .dh-go { transform: translateY(2px); }
/* the two online boxes, beside the hunt */
.door.dh .door-cards { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; gap: calc(16 * var(--u)); width: auto; min-height: 0; }
.door.dh .door-card { min-height: 0; padding: calc(14 * var(--u)) calc(16 * var(--u)); border-radius: 0; gap: calc(4 * var(--u)); clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); animation: dh-in .6s cubic-bezier(.2, .8, .2, 1) .1s both; }
.door.dh .door-card + .door-card { animation-delay: .2s; }
.door.dh .door-main { box-shadow: inset 0 0 0 2px var(--accent); }
.door.dh .door-card img { filter: brightness(.7) saturate(.95); }
.door.dh .door-card b { font-size: max(18px, calc(30 * var(--u))); line-height: .95; padding-right: calc(56 * var(--u)); }
.door.dh .door-tag { font-size: max(11px, calc(12 * var(--u))); letter-spacing: .14em; }
.door.dh .door-go { right: calc(14 * var(--u)); bottom: calc(14 * var(--u)); width: max(34px, calc(40 * var(--u))); height: max(34px, calc(40 * var(--u))); }
.door.dh .door-foot { justify-content: flex-start; }
@keyframes dh-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes dh-rise { from { opacity: 0; transform: translateX(-50%) translateY(14%); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes dh-breathe { 0%, 100% { translate: 0 0; } 50% { translate: 0 -1.2%; } }
@keyframes dh-heat { from { opacity: .65; } to { opacity: 1; } }
@keyframes dh-pulse { 0%, 100% { box-shadow: 0 0 calc(8 * var(--u)) rgba(255, 122, 26, .6); } 50% { box-shadow: 0 0 calc(20 * var(--u)) rgba(255, 122, 26, 1); } }
/* tall windows (tablets): the picture is drawn from the width */
@media (max-aspect-ratio: 3/2) and (min-height: 431px) { .door.dh { --u: calc(100vw / 1060); } .dh-boss img { bottom: calc(60 * var(--u)); } }
/* phones on their side: the same picture drawn larger; the chips give way to the button */
@media (max-height: 430px) { .door.dh { --u: min(100vw / 840, 100vh / 400); padding: calc(12 * var(--u)) calc(18 * var(--u)) calc(14 * var(--u)); gap: calc(8 * var(--u)); } .door.dh .door-brand { font-size: calc(24 * var(--u)); } .dh-title { font-size: calc(34 * var(--u)); } .dh-chips, .door.dh .door-foot { display: none; } .dh-foot { justify-content: flex-end; } .dh-hunt { padding: calc(12 * var(--u)) calc(14 * var(--u)); } .dh-go { font-size: max(16px, calc(22 * var(--u))); padding: calc(11 * var(--u)) calc(16 * var(--u)) calc(12 * var(--u)) calc(18 * var(--u)); } .door.dh .door-card b { font-size: max(15px, calc(22 * var(--u))); } .dh-eyebrow, .dh-tag, .dh-pip b, .door.dh .door-tag { font-size: max(10px, calc(12 * var(--u))); } .dh-name { font-size: max(11px, calc(17 * var(--u))); } }
/* a phone held upright: the hunt on top, the two online boxes under it */
@media (max-width: 700px) and (min-height: 431px) { .door.dh { --u: calc(100vw / 520); grid-template-rows: auto minmax(0, 1fr) auto; } .dh-grid { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1.9fr) minmax(0, 1fr); } .door.dh .door-cards { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; } .dh-chips { display: none; } .dh-foot { justify-content: flex-end; } }
@media (prefers-reduced-motion: reduce) { .dh-hunt, .dh-hunt::before, .dh-boss img, .dh-boss.first::before, .dh-boss.first .dh-pip, .dh-go::after, .door.dh .door-card { animation: none; } }
.dh-boss img { object-position: 50% 100%; }
@media (max-height: 430px) { .door.dh .door-go { top: calc(12 * var(--u)); bottom: auto; width: 30px; height: 30px; } .door.dh .door-card b { padding-right: 0; } }

/* v0.88 the character list in the game's own look: the close mark in its corner (it sat on the title), no how-to line,
   cards in the display face with the cyan pick, and the worn character stands clear of the list at every size */
#charPick .panel-x { position: absolute !important; top: 14px; right: 14px; left: auto; }
#charPick #charHint:empty { display: none; }
#charPick .char-panel h2 { margin: 0 44px 14px 0; letter-spacing: .02em; }
#charPick .char-card { border-radius: 2px; border-color: rgba(255, 255, 255, .1); background: linear-gradient(180deg, #17202c, #0e141d); transition: border-color .15s, transform .15s; }
#charPick .char-card b { font: 700 14px/1.1 var(--display); letter-spacing: .04em; }
#charPick .char-card small { font: 600 11px/1 var(--body); letter-spacing: .06em; color: #8b9bb0; }
#charPick .char-card[aria-selected="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), 0 0 18px rgba(41, 216, 255, .18); }
#charPick .char-card[aria-selected="true"] small { color: var(--accent); }
@media (hover: hover) { #charPick .char-card:hover { border-color: rgba(41, 216, 255, .55); transform: translateY(-1px); } }

/* v0.88 Settings in the family look: the chosen map blurred behind (it was a flat black page), the arrow-and-title
   header of every other screen, rows as dark glass */
#settings.overlay { background: #0b1016; overflow: hidden; }
#settings.overlay::before { content: ''; position: absolute; inset: -4%; z-index: 0; background: var(--home-art, url("assets/maps/wide/dockyard.webp")) center / cover; filter: blur(10px) saturate(.8) brightness(.42); pointer-events: none; }
#settings.overlay::after { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(6, 10, 16, .82), rgba(6, 10, 16, .5) 35%, rgba(6, 10, 16, .9)); pointer-events: none; }
#settings .settings-panel { z-index: 1; background: transparent; }
#settings .settings-head { border-bottom: 0; align-items: center; }
#settings .settings-back { background: none !important; padding: 0 !important; min-width: 44px; min-height: 44px; clip-path: none; justify-content: center; }
#settings .settings-back::before { display: none; }
#settings .settings-back span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#settings .settings-back svg { font-size: calc(26px * var(--s, 1)); color: var(--muted); transition: transform .12s, color .12s; }
@media (hover: hover) { #settings .settings-back:hover { background: none !important; } #settings .settings-back:hover svg { color: var(--accent); transform: translateX(-3px); } }
#settings .settings-head h2 { font: 800 calc(38px * var(--s, 1)) / 1 var(--display); letter-spacing: .02em; }
#settings .setting { background: rgba(13, 19, 28, .74); border-color: rgba(255, 255, 255, .08); }

/* v0.88 the text floor: 11 px on computers, 10 px on phones (the sizes above read it as --tf) */
html { --tf: 11px; }
@media (max-height: 520px), (max-width: 700px) { html { --tf: 10px; } .scr-prog .profile-stat small { letter-spacing: .03em; } }
/* v0.88 missions on a window with room: larger map pictures and mission cards, less empty middle */
@media (min-height: 521px) { .scr-mis .mis-map { height: clamp(13rem, 25vh, 32rem); } .scr-mis .mis-card { min-height: clamp(12rem, 15vh, 20rem); } }
/* v0.88 phones: while the first-match thumbs hint is up, the notice line sits under it (it was hidden behind it) */
@media (max-height: 520px) { body:has(#touchHint:not([hidden])) #notice { top: 106px; } }

/* =====================================================================================================================
   v0.92 DAILY PLAY (src/daily.js, docs/CRAZYGAMES-RETRY.md): the wallet beside the level, the daily gift, the TODAY card
   (three challenges and three chests), the gift box, the credits toast and the results block. Gold is for credits only.
   ===================================================================================================================== */
.lb-wallet { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px 0 10px; border: 0; background: rgba(10, 15, 21, .55);
  box-shadow: inset 0 0 0 1px rgba(255, 200, 61, .35); clip-path: var(--chamfer); --cut: 7px; color: var(--gold); cursor: pointer; font: 800 20px/1 var(--display); }
.lb-wallet svg { width: 20px; height: 20px; }
.lb-wallet small { font: 700 11px/1 var(--display); letter-spacing: .1em; color: var(--muted); }
@media (hover: hover) { .lb-wallet:hover { box-shadow: inset 0 0 0 1px var(--gold); } }
.lb-gift { position: relative; }
.lb-gift .gift-dot { position: absolute; top: 0; right: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px #0a0f15; display: none; }
.lb-gift.ready .gift-dot { display: block; }
.lb-gift.ready svg { color: var(--gold) !important; }
@keyframes gift-nudge { 0%, 80%, 100% { transform: none; } 85% { transform: rotate(-12deg); } 90% { transform: rotate(10deg); } 95% { transform: rotate(-6deg); } }
@media (prefers-reduced-motion: no-preference) { .lb-gift.ready svg { animation: gift-nudge 2.4s ease-in-out infinite; } }

.lb-today { position: absolute; left: 132px; top: 104px; width: 300px; padding: 14px 16px; background: linear-gradient(180deg, rgba(14, 19, 26, .84), rgba(14, 19, 26, .66));
  box-shadow: inset 0 0 0 1px var(--line); clip-path: var(--chamfer); --cut: 12px; }
.lb-today header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.lb-today h2 { display: flex; align-items: center; gap: 7px; margin: 0; font: 800 18px/1 var(--display); letter-spacing: .08em; }
.lb-today h2 svg { width: 18px; height: 18px; color: var(--accent); }
.today-reset { display: inline-flex; align-items: center; gap: 5px; font: 700 12px/1 var(--display); letter-spacing: .08em; color: var(--muted); white-space: nowrap; }
.today-reset svg { width: 14px; height: 14px; }
#todayList { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
#todayList li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 9px; align-items: center; }
#todayList li > svg { width: 20px; height: 20px; color: var(--accent); }
#todayList li.done > svg { color: var(--green, #4ade80); }
.td-text { display: grid; gap: 5px; min-width: 0; }
.td-text b { font: 700 13px/1.1 var(--display); letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-bar { display: block; height: 5px; background: rgba(255, 255, 255, .1); }
.td-bar i { display: block; height: 100%; background: var(--accent); }
#todayList li.done .td-bar i { background: var(--green, #4ade80); }
.td-side { display: grid; justify-items: end; gap: 4px; }
.td-side small { font: 700 12px/1 var(--display); letter-spacing: .06em; color: var(--paper); }
#todayList li.done .td-side small { color: var(--green, #4ade80); }
.td-side em { display: inline-flex; align-items: center; gap: 3px; font: 800 12px/1 var(--display); font-style: normal; color: var(--gold); }
.td-side em svg { width: 13px; height: 13px; }
.chest-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.chest-row[hidden] { display: none; }
.chest { position: relative; display: grid; justify-items: center; gap: 5px; padding: 8px 4px 11px; border: 0; background: rgba(255, 255, 255, .05); clip-path: var(--chamfer); --cut: 7px; color: var(--paper); cursor: default; overflow: hidden; }
.chest .chest-ic { width: 26px; height: 26px; color: #8fa0b3; }
.chest-t { display: grid; justify-items: center; gap: 3px; }
.chest-t b { font: 800 12px/1 var(--display); letter-spacing: .08em; }
.chest-t small { font: 700 11px/1 var(--display); color: var(--muted); }
.chest-pay { display: inline-flex; align-items: center; gap: 3px; font: 800 12px/1 var(--display); color: var(--gold); }
.chest-pay svg { width: 12px; height: 12px; }
.chest-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .08); }
.chest-bar i { display: block; height: 100%; background: var(--gold); }
.chest.ready { background: linear-gradient(180deg, rgba(255, 200, 61, .3), rgba(255, 200, 61, .1)); box-shadow: inset 0 0 0 1px var(--gold); cursor: pointer; }
.chest.ready .chest-ic, .chest.ready .chest-t small { color: var(--gold); }
@media (prefers-reduced-motion: no-preference) { .chest.ready .chest-ic { animation: gift-nudge 2s ease-in-out infinite; } }
@media (hover: hover) { .chest.ready:hover { filter: brightness(1.15); } }
body.has-today .lb-missions { display: none !important; }
body.door-open .lb-today { visibility: hidden; }

.gift-box { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 12px; background: rgba(4, 8, 12, .74); backdrop-filter: blur(3px); }
.gift-box[hidden] { display: none; }
.gift-panel { position: relative; width: min(640px, 100%); padding: 26px 28px 22px; background: linear-gradient(180deg, var(--panel-a), var(--panel-b)); box-shadow: inset 0 0 0 1px var(--line-2); clip-path: var(--chamfer); --cut: 16px; text-align: center; }
.gift-kicker { display: inline-flex; gap: 7px; align-items: center; margin: 0; font: 800 14px/1 var(--display); letter-spacing: .14em; color: var(--gold); }
.gift-kicker svg { width: 18px; height: 18px; }
.gift-panel h2 { margin: 8px 0 18px; font: 800 40px/1 var(--display); letter-spacing: .03em; }
.gift-days { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) minmax(0, 1.4fr); gap: 8px; }
.gift-days li { display: grid; justify-items: center; align-content: center; gap: 6px; padding: 10px 2px; background: rgba(255, 255, 255, .05); clip-path: var(--chamfer); --cut: 7px; }
.gift-days small { font: 700 11px/1 var(--display); letter-spacing: .08em; color: var(--muted); }
.gift-days svg { width: 24px; height: 24px; color: var(--gold); }
.gift-days b { font: 800 18px/1 var(--display); color: var(--gold); }
.gift-days li.now { background: linear-gradient(180deg, rgba(255, 200, 61, .32), rgba(255, 200, 61, .08)); box-shadow: inset 0 0 0 2px var(--gold); }
.gift-days li.now small { color: var(--paper); }
.gift-days li.got { opacity: .55; }
.gift-days li.got svg { color: var(--green, #4ade80); }
.gift-days li.big svg { width: 34px; height: 34px; }
.gift-days li.big b { font-size: 22px; }
.gift-claim { min-width: 260px; height: 58px; font: 800 24px/1 var(--display) !important; letter-spacing: .06em; }
.gift-note { display: flex; justify-content: center; align-items: center; gap: 6px; min-height: 18px; margin: 12px 0 0; font: 700 13px/1 var(--display); letter-spacing: .08em; color: var(--muted); }
.gift-note svg { width: 15px; height: 15px; }
.gift-panel .panel-x { position: absolute; top: 10px; right: 12px; }

.daily-toast { position: fixed; left: 50%; top: 16%; z-index: 70; transform: translate(-50%, -10px); opacity: 0; pointer-events: none; display: grid; justify-items: center; gap: 5px;
  padding: 12px 24px; background: rgba(10, 15, 21, .92); box-shadow: inset 0 0 0 1px var(--gold); clip-path: var(--chamfer); --cut: 9px; transition: opacity .25s, transform .25s; }
.daily-toast.on { opacity: 1; transform: translate(-50%, 0); }
.daily-toast small { font: 700 12px/1 var(--display); letter-spacing: .12em; color: var(--muted); }
.daily-toast b { display: flex; align-items: center; gap: 7px; font: 800 28px/1 var(--display); color: var(--gold); }
.daily-toast b svg { width: 24px; height: 24px; }

.res-daily { display: grid; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); text-align: left; }
.res-daily[hidden] { display: none; }
.rd-credits { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--gold); }
.rd-credits svg { width: 22px; height: 22px; }
.rd-credits b { font: 800 24px/1 var(--display); }
.rd-credits small { flex-basis: 100%; font: 700 11px/1.3 var(--display); letter-spacing: .06em; color: var(--muted); }
.rd-today { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rd-today li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; align-items: center; font: 700 12px/1.1 var(--display); letter-spacing: .05em; color: var(--muted); }
.rd-today li svg { width: 16px; height: 16px; color: var(--accent); }
.rd-today li.done svg { color: var(--green, #4ade80); }
.rd-today li.now { color: var(--paper); }
.rd-today li.now small { color: var(--gold); }
.rd-chest { margin: 0; font: 800 13px/1 var(--display); letter-spacing: .08em; color: var(--gold); }

/* shorter computer screens */
@media (max-height: 820px) and (min-height: 541px) { .lb-today { top: 92px; } }
/* narrow windows: the card gives the character room */
@media (max-width: 1180px) and (min-height: 541px) { .lb-today { width: 270px; } }
/* phones in landscape and other short screens */
@media (max-height: 540px) {
  .lb-wallet { height: 32px; padding: 0 9px 0 7px; font-size: 16px; gap: 5px; --cut: 5px; }
  .lb-wallet svg { width: 16px; height: 16px; }
  .lb-wallet small { display: none; }
  .lb-today { left: calc(max(12px, env(safe-area-inset-left)) + 76px); top: 58px; width: min(250px, 31vw); padding: 9px 10px 10px; --cut: 8px; }
  .lb-today header { margin-bottom: 7px; }
  .lb-today h2 { font-size: 14px; gap: 5px; } .lb-today h2 svg { width: 14px; height: 14px; }
  .today-reset { font-size: 10px; } .today-reset svg { width: 11px; height: 11px; }
  #todayList { gap: 7px; } #todayList li { grid-template-columns: 15px minmax(0, 1fr) auto; gap: 6px; } #todayList li > svg { width: 15px; height: 15px; }
  .td-text { gap: 4px; } .td-text b { font-size: 11px; } .td-bar { height: 4px; }
  .td-side small, .td-side em { font-size: 10px; } .td-side em svg { width: 10px; height: 10px; }
  .chest-row { margin-top: 8px; padding-top: 8px; gap: 5px; }
  .chest { padding: 5px 2px 8px; gap: 3px; --cut: 5px; } .chest .chest-ic { width: 18px; height: 18px; }
  .chest-t b, .chest-t small { font-size: 10px; } .chest-pay { display: none; }
  .gift-panel { padding: 14px 14px 12px; --cut: 10px; }
  .gift-kicker { font-size: 11px; } .gift-kicker svg { width: 14px; height: 14px; }
  .gift-panel h2 { margin: 4px 0 10px; font-size: 26px; }
  .gift-days { gap: 5px; margin-bottom: 12px; } .gift-days li { padding: 7px 1px; gap: 4px; }
  .gift-days small { font-size: 10px; } .gift-days svg { width: 18px; height: 18px; } .gift-days b { font-size: 14px; }
  .gift-days li.big svg { width: 24px; height: 24px; } .gift-days li.big b { font-size: 16px; }
  .gift-claim { min-width: 200px; height: 44px; font-size: 18px !important; }
  .gift-note { margin-top: 8px; font-size: 11px; }
  .daily-toast b { font-size: 22px; }
  .res-daily { gap: 6px; margin-top: 8px; padding-top: 8px; }
  .rd-credits b { font-size: 18px; } .rd-credits svg { width: 17px; height: 17px; } .rd-credits small { font-size: 10px; }
  .rd-today li { font-size: 10px; gap: 6px; grid-template-columns: 14px minmax(0, 1fr) auto; } .rd-today li svg { width: 13px; height: 13px; }
  .rd-chest { font-size: 11px; }
}
/* the smallest phones: challenges only */
@media (max-height: 540px) and (max-width: 640px) { .lb-today { width: 30vw; } .chest-row { display: none; } .td-side em { display: none; } }
#giftBox .gift-claim { display: inline-flex !important; align-items: center; justify-content: center; width: min(360px, 100%) !important; margin: 0 auto; text-align: center; }
/* v0.92 phones: the character stands in the room between the TODAY card and the play column */
@media (max-height: 540px) {
  body.has-today #menu { --td-r: calc(max(12px, env(safe-area-inset-left)) + 76px + min(250px, 31vw)); --td-play: calc(100vw - max(12px, env(safe-area-inset-right)) - min(300px, 46vw)); }
  body.has-today #menu .lb-hero, body.has-today #menu .lb-floor { left: calc((var(--td-r) + var(--td-play)) / 2); transform: translateX(-50%); }
  body.has-today #menu .lb-plate { left: calc((var(--td-r) + var(--td-play)) / 2); transform: translateX(-50%); }
  @keyframes lb-in-td { from { opacity: 0; transform: translateX(-50%) translateY(10px); } }
  body.has-today #menu .lb-hero { animation-name: lb-in-td; }
}
/* the smallest phones: no room for the picture of the character; the card takes the space, the name and CHANGE stay */
@media (max-height: 540px) and (max-width: 700px) {
  body.has-today #menu .lb-hero, body.has-today #menu .lb-floor { display: none; }
  body.has-today #menu .lb-today { width: calc(var(--td-play) - (max(12px, env(safe-area-inset-left)) + 76px) - 14px); }
  body.has-today #menu .lb-plate { left: calc((max(12px, env(safe-area-inset-left)) + 76px + var(--td-play)) / 2); }
}
/* v0.92 NEXT MATCH: the main button after a bot match, Gun Game or Survival (the next mode on the next map, named under it); PLAY AGAIN beside it */
.scr-res .res-nextmatch { flex-direction: column; gap: .5rem !important; }
.scr-res .res-nextmatch small { font: 700 max(11px, 1.2rem)/1 var(--display); letter-spacing: .1em; opacity: .8; } /* v0.92.1: 9 px on a 1920 screen (the text floor is 11 px on desktop) */
.scr-res .res-again.res-second { min-width: 0; padding: 0 2.2rem; background: var(--steel-a) !important; color: var(--paper) !important; box-shadow: inset 0 -.3rem 0 var(--steel-b) !important; font-size: 1.8rem !important; }
@media (max-height: 540px) { .scr-res .res-nextmatch small { font-size: 11px; } .scr-res .res-again.res-second { flex: 0 0 auto; font-size: 13px !important; padding: 0 12px; } }
@media (max-height: 540px) { .res-daily .rd-today { display: none; } .res-daily { gap: 4px; } }
/* v0.92 the rank line on the player card (placement countdown, then the rank in its colour) */
.lb-card #cardRank { color: var(--accent) !important; }
@media (max-height: 540px) { .lb-card #cardXpLabel { display: none; } .lb-card #cardRank { font-size: 10px !important; } }
/* v0.92 narrow phones (568 to 700 px wide): the character keeps its own place (phone rules: always shown, never covered); the
   TODAY card fills the room left of it, as icons, bars and counts (the names show on wider screens and on the results) */
@media (max-height: 540px) and (max-width: 700px) {
  body.has-today #menu .lb-hero { display: block; left: 50%; transform: translateX(-80%); animation-name: lb-in; }
  body.has-today #menu .lb-floor { display: block; left: 50%; transform: translateX(-80%); }
  body.has-today #menu .lb-plate { left: 50%; transform: translateX(-84%); }
  body.has-today #menu .lb-today { width: calc(50vw - 21.5vh - max(12px, env(safe-area-inset-left)) - 86px); padding: 7px 8px 8px; }
  body.has-today #menu .lb-today .td-text b, body.has-today #menu .today-reset, body.has-today #menu .chest-row, body.has-today #menu .td-side em { display: none; }
  body.has-today #menu #todayList li { grid-template-columns: 14px minmax(0, 1fr) auto; gap: 5px; }
}
.lb-card #cardRank { white-space: nowrap; }
/* v0.92.1: on short phone screens (CrazyGames, iPhone 13: 718x342) the right column's empty top edge lay over the
   FRIENDS, GIFT and SETTINGS icons, so taps on them did nothing. Only the column's own pieces take taps now. */
#menu .lobby-right { pointer-events: none; }
#menu .lobby-right > * { pointer-events: auto; }

/* ===== v0.93 (2026-11-18): a calmer home screen. The owner: "too much things which make the player confuse". =====
   Fewer pieces: FRIENDS left the top row (WITH FRIENDS is under PLAY), HELP moved up beside the gift and settings,
   PROGRESS left the side menu (the level card opens it), the chests show only when one can be opened, and the map
   card is a slim strip with just the map's name. */
#menu #progressRail[hidden] { display: none !important; }
/* (v0.94: the TODAY card opens on purpose now, so its chest bars always show there) */
#menu .lb-play #mapMode, #menu .lb-play #missionCardMode { display: none !important; }
#menu .lb-play .map-view { height: 76px; }
#menu .lb-play #mapName, #menu .lb-play #missionCardName { font-size: 22px !important; }
@media (max-height: 820px) and (min-height: 541px) { #menu .lb-play .map-view { height: 62px; } }
@media (max-height: 540px) { #menu .lb-play .map-view { height: 40px; --cut: 7px; } #menu .lb-play #mapName, #menu .lb-play #missionCardName { font-size: 15px !important; } #menu .lb-play .map-text { bottom: 6px; } }
/* the mode tabs: the ones not chosen were too faint to read */
#menu .lb-play .mode-pick button[aria-pressed="false"] { color: #aab8c6 !important; }
@media (hover: hover) { #menu .lb-play .mode-pick button[aria-pressed="false"]:hover { color: var(--paper) !important; } }

/* v0.93 phone buttons (owner 2026-11-18: "there is no space to move the aim"): one tight set round FIRE in the
   bottom-right corner, so the right thumb has the middle of the right side free to drag the view (FIRE and AIM
   steer while held, as before). An L of 48 px buttons: JUMP and RELOAD above FIRE, AIM, BLINK and CROUCH down its
   left; no two buttons' boxes touch. On an iPhone 13 in CrazyGames (718 x 342) the set now spans x 554-712, y 150-334
   (it spanned x 492-700, y 94-295). A layout the player saved against the old spots starts fresh once
   (src/touch-prefs.js layoutVersion 3). */
#touch [data-action=fire], #roomTouch [data-action=fire] { right: calc(16px * var(--k)) !important; bottom: calc(52px * var(--k)) !important; width: calc(84px * var(--k)) !important; height: calc(84px * var(--k)) !important; }
#touch :is([data-action=reload], [data-action=jump], [data-action=aim], [data-action=dash], [data-action=crouch]),
#roomTouch :is([data-action=reload], [data-action=jump], [data-hold=aim], [data-action=blink], [data-action=crouch]) { width: calc(48px * var(--k)) !important; height: calc(48px * var(--k)) !important; left: auto !important; }
#touch [data-action=reload], #roomTouch [data-action=reload] { right: calc(6px * var(--k)) !important; bottom: calc(144px * var(--k)) !important; }
#touch [data-action=jump], #roomTouch [data-action=jump] { right: calc(58px * var(--k)) !important; bottom: calc(144px * var(--k)) !important; }
#touch [data-action=aim], #roomTouch [data-hold=aim] { right: calc(110px * var(--k)) !important; bottom: calc(118px * var(--k)) !important; }
#touch [data-action=dash], #roomTouch [data-action=blink] { right: calc(116px * var(--k)) !important; bottom: calc(62px * var(--k)) !important; }
#touch [data-action=crouch], #roomTouch [data-action=crouch] { right: calc(104px * var(--k)) !important; bottom: calc(8px * var(--k)) !important; }
/* the resting move stick sits a little further in from the left edge, away from CrazyGames' buttons beside the game */
#touch #stick, #roomTouch #roomStick { left: max(calc(44px * var(--k)), env(safe-area-inset-left)) !important; }

/* v0.93: YOUR BUTTONS, once, at a phone player's first match. The match and its buttons stay in view, dimmed. */
.btn-ask { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(5, 9, 14, .5); touch-action: none; }
.btn-ask[hidden] { display: none; }
.btn-ask-card { display: grid; justify-items: center; gap: 14px; padding: 18px 20px; background: linear-gradient(180deg, rgba(14, 19, 26, .94), rgba(10, 14, 20, .94)); border: 1px solid var(--line-2, rgba(255, 255, 255, .18)); clip-path: var(--chamfer); --cut: 12px; }
.btn-ask-card > b { font: 800 22px/1 var(--display); letter-spacing: .12em; color: var(--paper, #fff); }
.btn-ask-row { display: flex; gap: 10px; }
.btn-ask-row button { min-width: 150px; min-height: 48px; padding: 0 18px; font: 800 17px/1 var(--display) !important; letter-spacing: .08em; }
@media (max-height: 360px) { .btn-ask-card { gap: 10px; padding: 14px 16px; } .btn-ask-row button { min-width: 130px; min-height: 44px; } }
.btn-ask-row button { display: inline-flex !important; align-items: center; justify-content: center !important; text-align: center; white-space: nowrap; }

/* ===== v0.94 (owner 2026-11-18, looking at the v0.93 home: "too much things which look bad") =====
   The home screen keeps the character, the side menu and the play column. The big boss card became the BOSSES entry
   of the menu (same #bossCard, same boss screen); TODAY became a menu entry with its count that opens the card beside
   the menu (a tap anywhere else closes it); the PLAY entry, which only named this screen, is gone. */
#menu .lb-rb[hidden], #menu .rb-data { display: none !important; }
#menu .lb-rail .rb-today small { color: var(--gold); }
#menu .rb-today .gift-dot { position: absolute; top: 2px; right: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px #0a0f15; display: none; }
#menu .rb-today.ready .gift-dot { display: block; }
#menu .lb-today.pop:not(.open) { display: none !important; }
#menu .lb-today.pop.open { z-index: 30; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); }
#menu .lb-today.pop.open .chest-row { display: grid !important; } /* opened on purpose: the chest bars show again */
@media (max-height: 540px) { #menu .lb-today.pop.open .chest-row { display: grid !important; } #menu .lb-today.pop.open .td-text b, #menu .lb-today.pop.open .today-reset { display: revert !important; } }
@media (max-height: 540px) { body.has-today #menu .lb-today.pop.open { width: min(300px, 58vw) !important; padding: 9px 10px 10px !important; } }
#menu .lb-today.pop.open { background: linear-gradient(180deg, #121922, #0d131a) !important; }
#menu .lb-today.pop.open .today-reset { white-space: nowrap; display: inline-flex !important; align-items: center; gap: 5px; }
@media (max-height: 540px) and (max-width: 640px) { body.has-today #menu .lb-today.pop.open { width: 226px !important; } }

/* ===== v0.95 (owner 2026-11-18 on v0.94: "still feels busy"): fewer pictures and fewer choices on the home screen =====
   - three mode tabs: CLASSIC, GUN GAME, SURVIVAL (MISSIONS lives in the side menu; its tab shows only while a mission
     is the chosen mode, so that choice stays visible)
   - the map is one quiet line of words, no picture
   - PLAY ONLINE and WITH FRIENDS are plain buttons, no pictures
   - the backdrop behind the character is darker and softer
   - the rank line under the level is quiet */
#menu #modePick [data-mode="mission"][aria-pressed="false"] { display: none !important; }
#menu .lb-play :is(#mapCard, #missionCard) .map-view { height: 38px !important; background: rgba(255, 255, 255, .04) !important; box-shadow: inset 0 0 0 1px var(--line) !important; clip-path: none !important; border-radius: 4px !important; }
#menu .lb-play :is(#mapCard, #missionCard) .map-view img, #menu .lb-play :is(#mapCard, #missionCard) .map-view::after, #menu .lb-play .mis-home-st { display: none !important; }
#menu .lb-play :is(#mapCard, #missionCard) .map-text { left: 12px !important; right: 40px; top: 50% !important; bottom: auto !important; transform: translateY(-50%); }
#menu .lb-play :is(#mapName, #missionCardName) { font-size: 15px !important; letter-spacing: .06em; text-shadow: none !important; }
#menu .lb-play #mapName::before { content: 'MAP  '; color: var(--muted); white-space: pre; }
#menu .lb-play #missionCardName::before { content: 'MISSION  '; color: var(--muted); white-space: pre; }
#menu .lb-play :is(#mapCard, #missionCard) .map-view .map-all { top: 50% !important; bottom: auto !important; right: 10px !important; transform: translateY(-50%); padding: 0 !important; }
#menu .lb-duo .home-choice { background: rgba(255, 255, 255, .05) !important; background-image: none !important; }
#menu .lb-duo .home-choice::before { display: none; }
@media (hover: hover) { #menu .lb-duo .home-choice:hover { background: rgba(255, 255, 255, .1) !important; } }
#menu.lb .home-art::before { filter: blur(12px) saturate(.6) brightness(.42); }
#menu #cardRank { color: var(--muted) !important; }
#menu .lb-play .mode-pick { display: flex !important; }
#menu .lb-play .mode-pick button { flex: 1 1 0 !important; }
/* v0.95.1: a player who has never finished a match has only CLASSIC to choose (v0.82 shows newcomers fewer modes, and
   the MISSIONS tab now shows only while chosen), so the tab row stays away until the first match is done */
#menu #modePick.fresh:not(:has([data-mode="mission"][aria-pressed="true"])) { display: none !important; }

/* ===== v0.95.2 (owner 2026-11-18, a T-Rex win with five level-ups: the reward panel ran under FIGHT THE ORC WARLORD and
   PLAY AGAIN) — the results panel never runs under the buttons =====
   - the panel stays inside its row; if it ever has more than fits, it scrolls inside itself
   - with unlock tiles showing, the line that repeated them in small print and the TODAY rows step aside (the chest-ready
     line stays); the tiles get smaller on shorter screens */
#results.scr-res .res-main { overflow: hidden; }
#results.scr-res .res-xp { max-height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
#results.scr-res .res-xp:has(#xpUnlock:not([hidden])) #rewardDetail,
#results.scr-res .res-xp:has(#xpUnlock:not([hidden])) .rd-today { display: none !important; }
@media (max-height: 760px) {
  #results.scr-res .xp-unlock { grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .6rem; }
  #results.scr-res .xp-chip { grid-template-rows: 4.2rem auto auto; padding: .7rem .8rem; }
  #results.scr-res .xp-chip > i { width: 3.2rem; height: 3.2rem; }
}
@media (max-height: 540px) {
  #results.scr-res .xp-unlock > b { font-size: 15px; }
  #results.scr-res .xp-chip { grid-template-rows: 26px auto; grid-template-columns: minmax(0, 1fr); padding: 5px 6px; }
  #results.scr-res .xp-chip > i { width: 20px; height: 20px; }
  #results.scr-res .xp-chip small { display: none; }
}
/* v0.95.2: Progress — the goals list ended behind the LOCKER link (the sixth goal, ON FIRE, sat under it); the list now
   ends above the link and scrolls. Settings — on short phones the HUD-size note ran off the bottom of the screen. */
#progress .prog-main { min-height: 0; }
#progress .prog-goals { min-height: 0; max-height: 100%; overflow: hidden; }
#progress #goalList { flex: 1 1 0; min-height: 0; }
#progress .prog-goals .scr-link { flex: none; }
@media (max-height: 540px) { #settings [data-page="graphics"] .setting-note:last-of-type { display: none; } }
@media (max-height: 540px) {
  #results.scr-res .xp-unlock { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 4px !important; margin-top: 2px !important; }
  #results.scr-res .xp-chip { display: flex !important; align-items: center; gap: 6px; height: 30px; padding: 0 6px !important; }
  #results.scr-res .xp-chip img { width: 34px !important; height: 20px !important; flex: none; }
  #results.scr-res .xp-chip > i { width: 16px !important; height: 16px !important; flex: none; }
  #results.scr-res .xp-chip b { font-size: 11px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
}
@media (max-height: 540px) { #results.scr-res .xp-chip img { display: none !important; } #results.scr-res .xp-chip b { font-size: 12px !important; } }
@media (max-height: 540px) {
  #results.scr-res .xp-unlock { display: flex !important; flex-wrap: wrap; }
  #results.scr-res .xp-unlock > b { flex-basis: 100%; }
  #results.scr-res .xp-chip { flex: 0 1 auto; padding: 0 8px !important; }
  #results.scr-res .xp-chip b { overflow: visible; text-overflow: clip; letter-spacing: .04em !important; }
}
/* v0.95.2: the knock-out box kept an empty line's space under END MATCH */
.ko-panel .ko-note:empty { display: none; }
/* v0.95.2: a locked mission card's LOCKED tag sat on its type line on narrow cards: it moves to the bottom right, beside
   the stars. The home line for a mission drops the MISSION word (the MISSIONS tab says it), so the name fits. */
.scr-mis .mis-card em { top: auto !important; bottom: 1.2rem; }
#menu .lb-play #missionCardName::before { content: none !important; }
#matchTip.under-banner { visibility: hidden; }
/* v0.95.2: dead in a match, three lines said the same thing on top of each other (the feed "KESTREL › YOU", the tip
   "BACK IN 3 S, SHIELDED" and the ELIMINATED BY card); the card alone shows */
body:has(#death:not([hidden])) #matchTip, body:has(#death:not([hidden])) #feed { visibility: hidden; }
/* v0.95.2 online: in a free-for-all the scoreboard frame stood empty at the top (its list opens on a tap or Tab) — no
   frame until there is something in it; on short phones the sign-in note under the loadout ran under the room-code box */
#multiHud .scoreboard:not(:has(.teams-line)):not(:has(#liveScore.open)) { background: transparent !important; box-shadow: none !important; border-color: transparent !important; }
@media (max-height: 540px) { #roomMenu .bar-note { display: none !important; } }
/* v0.95.2: the online summary's labels under the numbers were 9.5 px on a laptop (the floor is 11 px on computers) */
.summary-stat small { font-size: 11px !important; }
@media (pointer: coarse) { .summary-stat small { font-size: 10px !important; letter-spacing: .04em !important; } }
/* v0.95.2 short phones, results: the unlocks sit in one row that scrolls sideways, so the credits and the chest line
   stay in view; the next-boss button keeps its words on one line */
@media (max-height: 540px) {
  #results.scr-res .xp-unlock { flex-wrap: nowrap !important; overflow-x: auto; overscroll-behavior: contain; scrollbar-width: none; padding-bottom: 2px; }
  #results.scr-res .xp-unlock::-webkit-scrollbar { display: none; }
  #results.scr-res .xp-unlock > b { display: none !important; } /* the panel heading already says +XP / LEVEL N */
  #results.scr-res .xp-chip { flex: 0 0 auto !important; }
  #results.scr-res .res-next { white-space: nowrap; font-size: 15px !important; padding: 0 14px !important; }
}
/* v0.95.2 short phones, online summary: the map vote pictures ran under PLAY AGAIN and the sign-in note sat under the
   buttons; the pictures get shorter and the note steps aside there */
@media (max-height: 540px) {
  #summary .summary-map { height: 46px !important; padding: 5px 6px !important; font-size: 11px !important; }
  #summary #summaryReward .summary-note { display: none !important; }
  #summary .summary-panel { gap: 6px !important; }
}
/* v0.95.2 short phones, room lobby: the room-code box ran 22 px into the loadout bar (CHANGE sat under it) */
@media (max-height: 360px) {
  #roomLobby #privateCode.invite-bar { padding: 8px 12px !important; gap: 4px 10px !important; min-height: 0 !important; }
  #roomLobby #privateCode #codeValue { font-size: 20px !important; letter-spacing: .12em !important; }
  #roomLobby #privateCode .rl-steel { min-height: 30px !important; padding: 0 12px !important; font-size: 13px !important; }
  #roomLobby #privateCode #codeHelp { display: none !important; }
}
@media (max-height: 360px) {
  #roomLobby #privateCode.invite-bar { padding: 6px 12px !important; row-gap: 2px !important; }
  #roomLobby #privateCode .rl-link { min-height: 30px !important; }
}
@media (max-height: 360px) {
  #summary .summary-panel h2 { font-size: 22px !important; }
  #summary .summary-stat { padding: 4px 2px !important; }
  #summary .summary-stat b { font-size: 18px !important; }
  #summary .summary-map { height: 38px !important; }
}
