/* Весь интерфейс как в CS2: токены --md-* (имена остались от Material 3) - палитра CS2: серые панели, голубой акцент #82D8FF,
   шрифт Stratum2. Свои блоки: «Меню как в CS2», «HUD как в CS2», «Окна в игре как в CS2» (внизу файла) */
/* Stratum2 - шрифт интерфейса CS2 (panorama/fonts/stratum2.uifont в CS2, переведён в woff2: client/fonts) */
@font-face { font-family: Stratum2; src: url(fonts/stratum2-regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Stratum2; src: url(fonts/stratum2-medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Stratum2; src: url(fonts/stratum2-bold.woff2) format('woff2'); font-weight: 700 900; font-display: swap; }
:root {
  --md-primary: #82d8ff;
  --md-on-primary: #0b1a22;
  --md-primary-container: #1d3a4a;
  --md-on-primary-container: #d4f0ff;
  --md-secondary-container: #3a3d42;
  --md-on-secondary-container: #e6e6e6;
  --md-surface: #141619;
  --md-surface-1: #1c1e22;   /* tonal elevation 1 */
  --md-surface-2: #24262a;
  --md-surface-3: #2c2c2c;
  --md-on-surface: #e0e0e0;
  --md-on-surface-variant: #a0a0a0;
  --md-outline: #6b6b6b;
  --md-outline-variant: #414141;
  --md-error: #ff6b5e;
  --md-error-container: #630606;
  --md-on-error-container: #ffd9d4;
  --team-T: #ead18a;
  --team-CT: #b5d4ee;
  --team-SPEC: #b0b0b0;
  --font: Stratum2, Roboto, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--md-surface); color: var(--md-on-surface);
  font: 400 16px/1.5 var(--font); letter-spacing: .01em; }
.hidden { display: none !important; }
.muted { color: var(--md-on-surface-variant); }
.center { text-align: center; padding: 32px 0; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.gap { gap: 12px; flex-wrap: wrap; }

#app { max-width: 1000px; margin: 0 auto; padding: 16px; }

/* Top app bar */
.top { display: flex; justify-content: space-between; align-items: center; height: 64px; padding: 0 8px 0 4px; margin-bottom: 8px; }
.logo { font-size: 22px; font-weight: 500; letter-spacing: 0; }
.logo span { color: var(--md-primary); margin-left: 6px; }
.status { font-size: 14px; font-weight: 500; padding: 4px 12px 4px 10px; border-radius: 8px;
  background: var(--md-surface-2); color: var(--md-on-surface-variant); display: flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--md-outline); }
.status.ok::before { background: #8fdc8f; }
.status.bad { background: var(--md-error-container); color: var(--md-on-error-container); }
.status.bad::before { background: var(--md-error); }

/* Cards - filled, surface container */
.card { background: var(--md-surface-1); border-radius: 28px; padding: 24px; }
.card.narrow { max-width: 400px; margin: 48px auto; display: flex; flex-direction: column; gap: 16px; }
h2 { margin: 0 0 16px; font: 400 24px/32px var(--font); }
h3 { margin: 0 0 8px; font: 500 16px/24px var(--font); }
.card.narrow h2 { margin: 0; }

/* Зима (client/js/menuwinter.js, флаг WINTER в shared/winter.js): снег за меню, гирлянда, шапка на логотипе, снег на карточках */
#menu-snow { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
body.winter #app { position: relative; z-index: 1; }
#menu-snow[hidden] { display: none; }
.garland { position: relative; height: 26px; margin: -16px -16px 0; pointer-events: none; }
.garland::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px; border-bottom: 2px solid #2d3a2a;
  border-radius: 0 0 50% 50% / 0 0 100% 100%; opacity: .9; }
.garland i { position: absolute; width: 9px; height: 13px; margin-left: -4px; border-radius: 50% 50% 45% 45%; background: var(--c);
  box-shadow: 0 0 10px 2px var(--c); animation: garland 1.5s ease-in-out var(--d) infinite; }
.garland i::before { content: ""; position: absolute; left: 2px; top: -4px; width: 5px; height: 5px; border-radius: 1px; background: #4a4a40; }
@keyframes garland { 50% { opacity: .35; box-shadow: 0 0 3px 0 var(--c); } }
body.winter .logo { position: relative; }
body.winter .logo .hat { position: absolute; left: -12px; top: -13px; width: 28px; height: 22px; transform: rotate(-18deg); }
body.winter .card { position: relative; }
/* сугроб на карточке: неровный край (svg-узор 160 px повторяется), снизу ровно по краю карточки */
/* к краям сугроб сходит на нет (маска), а не обрывается ровной кромкой */
body.winter .card::before, body.winter #maploading .ml-card::before { content: ""; position: absolute; left: 10px; right: 10px; top: -9px; height: 16px; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='16'%3E%3Cpath d='M0 16V9c8-6 18-8 27-4 6-5 16-6 22 0 9-7 22-6 30 1 5-3 12-4 18 0 8-6 21-7 30-1 6-4 15-5 21 1 5-2 9-3 12 3v7z' fill='%23f2f6fc'/%3E%3C/svg%3E") 0 0 / 160px 16px repeat-x;
  filter: drop-shadow(0 2px 2px #0006); }
@media (prefers-reduced-motion: reduce) { .garland i { animation: none; } }

/* Text fields (outlined) */
input, select {
  font: inherit; color: var(--md-on-surface); background: transparent;
  border: 1px solid var(--md-outline); border-radius: 4px; padding: 14px 16px; min-height: 56px;
}
input::placeholder { color: var(--md-on-surface-variant); }
input:hover, select:hover:not(:disabled) { border-color: var(--md-on-surface); }
input:focus, select:focus { outline: none; border: 2px solid var(--md-primary); padding: 13px 15px; }
select { padding-right: 12px; }
select option { background: var(--md-surface-3); }
select:disabled { opacity: .5; border-color: var(--md-outline-variant); }

/* Buttons: tonal по умолчанию, .primary = filled */
button {
  position: relative; overflow: hidden;
  font: 500 14px/20px var(--font); letter-spacing: .1px;
  height: 40px; padding: 0 24px; border: 0; border-radius: 20px; cursor: pointer;
  background: var(--md-secondary-container); color: var(--md-on-secondary-container);
  transition: box-shadow .15s;
}
button::after { content: ""; position: absolute; inset: 0; background: currentColor; opacity: 0; transition: opacity .15s; }
button:hover:not(:disabled)::after { opacity: .08; }
button:focus-visible { outline: 2px solid var(--md-primary); outline-offset: 2px; }
button:active:not(:disabled)::after { opacity: .12; }
button:disabled { background: color-mix(in srgb, var(--md-on-surface) 12%, transparent);
  color: color-mix(in srgb, var(--md-on-surface) 38%, transparent); cursor: not-allowed; }
button.primary { background: var(--md-primary); color: var(--md-on-primary); }
button.primary:hover:not(:disabled) { box-shadow: 0 1px 3px 1px #0006; }

/* Lobby list */
.lobby-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.lobby-table th { text-align: left; color: var(--md-on-surface-variant); font: 500 14px/20px var(--font); padding: 12px 12px; }
.lobby-table td { padding: 10px 12px; border-top: 1px solid var(--md-outline-variant); }
.lobby-table td:last-child { text-align: right; }

/* Room */
.settings { margin: 0 0 20px; align-items: center; }
.settings label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--md-on-surface-variant); }
.settings select { min-width: 200px; font-size: 16px; color: var(--md-on-surface); }

.teams { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.team { background: var(--md-surface-3); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; min-height: 240px; }
.team h3 { color: var(--tc); }
.team ul { list-style: none; margin: 0 0 12px; padding: 0; flex: 1; }
.team li { padding: 6px 12px; margin-bottom: 4px; border-radius: 8px; background: var(--md-surface-2); }
.team li.me { background: var(--md-primary-container); color: var(--md-on-primary-container); font-weight: 500; }
.team li .crown { color: var(--md-primary); margin-left: 6px; }
.team button { align-self: flex-start; background: transparent; color: var(--tc); box-shadow: inset 0 0 0 1px var(--md-outline); }
.team-T { --tc: var(--team-T); }
.team-CT { --tc: var(--team-CT); }
.team-SPEC { --tc: var(--team-SPEC); }

/* Snackbar */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); min-width: 240px; max-width: 90vw;
  background: #ede0d4; color: #372f26; padding: 14px 16px; border-radius: 4px; font-size: 14px; box-shadow: 0 3px 8px 3px #0006; }

@media (max-width: 720px) {
  .teams { grid-template-columns: 1fr; }
  .team { min-height: 0; }
}

/* ---- Игровой экран ---- */
#game-root { position: fixed; inset: 0; background: #000; }
#view { display: block; width: 100%; height: 100%; }
#hud { position: absolute; inset: 0; pointer-events: none; }
/* в бою и в закупке - шрифт CS2 (Stratum2), меню вне матча - как было */
#hud, #buy { --font: Stratum2, Roboto, "Segoe UI", system-ui, sans-serif; font-family: var(--font); }
.chip { position: absolute; top: 12px; padding: 4px 12px; border-radius: 8px; font-size: 13px; font-weight: 500;
  background: color-mix(in srgb, var(--md-surface) 70%, transparent); color: var(--md-on-surface); }
#hud-stats { left: 12px; font-variant-numeric: tabular-nums; }
/* Скорость при банихопе (юниты CS в секунду), над строкой FPS: зелёная - разогнался с прошлого прыжка, красная - потерял */
#hud-speed { position: absolute; bottom: 104px; left: 50%; transform: translateX(-50%); font: 600 26px/1 var(--font);
  font-variant-numeric: tabular-nums; color: var(--md-on-surface); text-shadow: 0 1px 3px #000c; }
#hud-speed.up { color: #8fd18a; }
#hud-speed.down { color: #f08a7e; }
#hud-spec { left: 50%; transform: translateX(-50%); background: var(--md-primary-container); color: var(--md-on-primary-container); }
#hud-follow { left: 50%; top: 148px; transform: translateX(-50%); background: var(--md-secondary-container); color: var(--md-on-secondary-container); }
#game-root.follow #slots { display: none; }   /* при наблюдении слоты чужого оружия неизвестны - только название и патроны */
#crosshair { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
#crosshair i, #crosshair b, .ch-preview i, .ch-preview b { position: absolute; }   /* размеры и цвет ставит crosshair.js */
/* настройка прицела в паузе: превью на фоне «стены», цвета, свой цвет */
.ch-preview { position: relative; height: 96px; margin-bottom: 12px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, #8a7a5c, #c9b48a 50%, #6f8fa8 50%, #a9c6e3); }
.ch-preview .ch-center { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.ch-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ch-colors { display: flex; gap: 8px; flex-wrap: wrap; }
.ch-swatch { width: 28px; height: 28px; min-height: 0; padding: 0; border-radius: 50%; border: 2px solid var(--md-outline); }
.ch-swatch.on { border-color: var(--md-on-surface); box-shadow: 0 0 0 2px var(--md-primary); }
#ch-color { width: 36px; height: 28px; padding: 0; border: 0; background: none; }
#game-root.spec:not(.follow) #crosshair { display: none; }

.scrim { position: fixed; inset: 0; background: #000a; display: flex; align-items: center; justify-content: center; padding: 16px; overflow: auto; }
.dialog { width: 100%; max-width: 480px; background: var(--md-surface-3); border-radius: 28px; padding: 24px; }
.dialog h2 { margin-bottom: 8px; }
.section-label { margin: 16px 0 8px; font: 500 14px/20px var(--font); color: var(--md-primary); }
.seg { display: flex; }
.seg button { flex: 1; border-radius: 0; background: transparent; color: var(--md-on-surface);
  box-shadow: inset 0 0 0 1px var(--md-outline); padding: 0 12px; }
.seg button:first-child { border-radius: 20px 0 0 20px; }
.seg button:last-child { border-radius: 0 20px 20px 0; }
.seg button.on { background: var(--md-secondary-container); color: var(--md-on-secondary-container); }
.slider { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; margin-bottom: 10px;
  font-size: 14px; color: var(--md-on-surface-variant); }
.slider output { color: var(--md-on-surface); font-variant-numeric: tabular-nums; }
.slider input { grid-column: 1 / -1; min-height: 0; padding: 0; border: 0; accent-color: var(--md-primary); background: none; }
.slider input:focus { border: 0; padding: 0; outline: 2px solid var(--md-primary); outline-offset: 4px; }
.hint { margin-top: 12px; font-size: 12px; color: var(--md-on-surface-variant); }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 20px; }

/* ---- HUD боя ---- */
#hud-spec { top: 148px; }
/* лента убийств как в CS2 (panorama huddeathnotice): тёмная подложка с размытием, радиус 3 px, ники 16 px жирные с тенью,
   своё убийство - чёрная подложка и красная рамка 2 px, убили тебя - бордовая подложка */
#killfeed { position: absolute; top: 72px; right: 10px; display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }
#killfeed div { display: flex; align-items: center; padding: 6px 10px 3px; border-radius: 3px; font: 700 16px/22px var(--font); text-shadow: 1px 1px 1px #000;
  background: rgba(20,22,26,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 2px solid transparent; }
#killfeed div.mine { background: #000000e7; border-color: #e10000; letter-spacing: .5px; }
#killfeed div.died { background: #630606d2; }
#killfeed div > span { margin: 0 2px 2px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#killfeed .kfi { display: inline-flex; width: 18px; height: 18px; margin: 0 2px; color: var(--md-on-surface); }
/* значки CS2: белые силуэты, высота как у строки; оружие шире (по пропорциям картинки) */
#killfeed img.kfi { width: auto; height: 24px; margin: -2px 2px 0; }
#killfeed img.kfw { width: auto; height: 24px; margin: -2px 6px 0; }
#killfeed .kfi svg { width: 100%; height: 100%; }
#killfeed .T { color: #eabe54; } #killfeed .CT { color: #6f9ce6; } #killfeed .w { color: #ddd; margin: 0 8px; }
#killfeed .as { color: var(--md-on-surface-variant); margin: 0 5px; }
#hitmarker { position: absolute; left: 50%; top: 50%; width: 0; height: 0; opacity: 0; transition: opacity .25s; }
#hitmarker.on { opacity: 1; transition: none; }
#hitmarker i { position: absolute; width: 8px; height: 2px; background: #fff; left: 5px; top: -1px; transform-origin: -5px 1px; box-shadow: 0 0 0 1px #0008; }
#hitmarker i:nth-child(1) { transform: rotate(45deg); } #hitmarker i:nth-child(2) { transform: rotate(135deg); }
#hitmarker i:nth-child(3) { transform: rotate(225deg); } #hitmarker i:nth-child(4) { transform: rotate(315deg); }
#hitmarker.kill i, #hitmarker.hs i { background: #ff5a4d; }
#hurt { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; box-shadow: inset 0 0 120px 30px #d32f2f; }
#hurt.on { opacity: .85; transition: none; }
/* снежок попал: снег на экране (client/js/hud.js snowHit), как в CS:GO: вырастает за 0.14 с, сползает и тает последние 3/4 жизни */
#snowhit { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#snowhit i { position: absolute; display: block; background-size: 100% 100%; transform: translate(-50%, -50%); animation: snowsplat var(--life, 5.5s) linear forwards; }
#snowhit i.veil { background: radial-gradient(circle, #f4f7fcf2 55%, #eef3faD9 100%); animation-name: snowveil;
  -webkit-mask-image: linear-gradient(transparent, #000 12%); mask-image: linear-gradient(transparent, #000 12%); }
@keyframes snowveil { 0% { opacity: 0; } 3% { opacity: 1; } 30% { opacity: .97; } 100% { opacity: 0; transform: translate(-50%, calc(-50% + var(--fall))); } }
@keyframes snowsplat {
  0% { opacity: .9; transform: translate(-50%, -50%) scale(.2); }
  2.5% { opacity: .95; transform: translate(-50%, -50%) scale(1.5); }
  25% { opacity: .95; transform: translate(-50%, calc(-50% + var(--fall) * .15)) scale(1.5); }
  100% { opacity: 0; transform: translate(-50%, calc(-50% + var(--fall))) scale(1.5); }
}
#scope { position: absolute; inset: 0; background: radial-gradient(circle at center, transparent 0, transparent 34vh, #000 34.3vh); }
#scope i { position: absolute; background: #000; } #scope i:nth-child(1) { left: 0; right: 0; top: calc(50% - 1px); height: 2px; } #scope i:nth-child(2) { top: 0; bottom: 0; left: calc(50% - 1px); width: 2px; }
#deathmsg { position: absolute; left: 50%; top: 30%; transform: translateX(-50%); text-align: center; padding: 16px 28px; border-radius: 20px; background: color-mix(in srgb, var(--md-error-container) 85%, transparent); color: var(--md-on-error-container); font-size: 18px; }
#deathmsg b { display: block; font-size: 32px; }
#scoreboard, #results { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, 92vw); padding: 20px; border-radius: 28px; background: color-mix(in srgb, var(--md-surface-3) 94%, transparent); }
#results h2 { text-align: center; margin-bottom: 4px; } #results .sub { text-align: center; color: var(--md-on-surface-variant); margin-bottom: 12px; }
.sb-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sb-table th { text-align: left; font: 500 13px/20px var(--font); color: var(--md-on-surface-variant); padding: 4px 8px; }
.sb-table td { padding: 6px 8px; border-top: 1px solid var(--md-outline-variant); }
.sb-table th:nth-child(n+2), .sb-table td:nth-child(n+2) { text-align: right; width: 64px; }
.sb-table tr.me td { background: var(--md-primary-container); color: var(--md-on-primary-container); }
.sb-table .T { color: var(--team-T); } .sb-table .CT { color: var(--team-CT); }
#game-root.spec:not(.follow) #vitals, #game-root.spec:not(.follow) #weapon-box { display: none; }
#game-root.follow #hud-spec { display: none; }

.check { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 14px; color: var(--md-on-surface-variant); cursor: pointer; }
.check input { min-height: 0; width: 18px; height: 18px; padding: 0; accent-color: var(--md-primary); }

/* ---- Мини-карта, баннеры, закупка ---- */
/* радар как в CS2: квадрат (в CS2 290 px, у нас поменьше - просьба игроков), тёмная подложка с размытием (client/js/minimap.js) */
#minimap { position: absolute; left: 10px; top: 10px; width: 220px; height: 220px; background: rgba(12,14,18,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (max-width: 1100px) { #minimap { width: 180px; height: 180px; } }
@media (max-width: 760px) { #minimap { width: 140px; height: 140px; } }
#hud-stats { left: auto; right: auto; top: auto; bottom: 1px; left: 50%; transform: translateX(-50%); font-size: 11px; padding: 0 8px; opacity: .6; }
#banner { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); padding: 12px 28px; border-radius: 20px; font: 500 22px/28px var(--font); text-align: center;
  background: color-mix(in srgb, var(--md-surface-3) 90%, transparent); color: var(--md-on-surface); }
#banner.T { color: var(--team-T); } #banner.CT { color: var(--team-CT); } #banner.bad { background: var(--md-error-container); color: var(--md-on-error-container); }
#use-hint { position: absolute; left: 50%; bottom: 140px; transform: translateX(-50%); padding: 6px 18px; border-radius: 12px; background: var(--md-primary-container); color: var(--md-on-primary-container); font-weight: 500; }
#progress { position: absolute; left: 50%; bottom: 190px; transform: translateX(-50%); width: min(320px, 70vw); text-align: center; }
#progress-label { margin-bottom: 6px; font-weight: 500; text-shadow: 0 1px 3px #000; }
#progress .bar { height: 10px; border-radius: 5px; background: #0009; overflow: hidden; }
#progress .bar i { display: block; height: 100%; width: 0; background: var(--md-primary); }
.dialog.wide { max-width: 640px; }
.money-chip { padding: 4px 14px; border-radius: 12px; background: var(--md-primary-container); color: var(--md-on-primary-container); font-size: 20px; }
.buy-group { margin: 12px 0 6px; font: 500 14px/20px var(--font); color: var(--md-primary); }
.buy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.buy-grid button { height: auto; min-height: 52px; padding: 8px 12px; border-radius: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 0; text-align: left; }
.buy-grid button small { color: var(--md-on-surface-variant); font-size: 12px; }
.buy-grid button.own { box-shadow: inset 0 0 0 2px var(--md-primary); }
/* отладка карт (Ё) */
#dbg { position: absolute; left: 12px; top: 240px; max-width: min(640px, calc(100vw - 24px)); padding: 8px 12px; border-radius: 8px; white-space: pre-wrap;
  font: 500 12px/1.45 ui-monospace, Consolas, monospace; background: color-mix(in srgb, var(--md-surface) 82%, transparent); color: var(--md-on-surface); }

.sb-hp { margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--md-on-surface-variant); font-variant-numeric: tabular-nums; }
.sb-hp.low { color: var(--md-error); }
.sb-table tr.dead td { opacity: .55; }
.sb-dead { margin-left: 8px; padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 600; background: var(--md-error); color: var(--md-on-error, #690005); }
.sb-head { display: flex; justify-content: space-between; margin: 10px 0 4px; font: 500 16px/24px var(--font); }
.sb-head.T { color: var(--team-T); } .sb-head.CT { color: var(--team-CT); }

#smokeveil, #flashveil { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
#smokeveil { background: #b4b8bd; }
#flashveil { background: #fff; }

#netlost { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 50; padding: 10px 22px; border-radius: 14px;
  background: var(--md-error-container); color: var(--md-on-error-container); font-weight: 500; box-shadow: 0 3px 12px #000a; }

/* длинные диалоги прокручиваются, а не обрезаются сверху */
.scrim { align-items: flex-start; }
.dialog { margin: auto; }

/* ---- Телефоны ---- */
input, select, textarea { font-size: 16px; }   /* без автоприближения в iOS при фокусе */
html, body { overscroll-behavior: none; }
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; }
body.touch-ui { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
body.touch-ui input, body.touch-ui select { -webkit-user-select: auto; user-select: auto; }   /* иначе iOS не даёт выбрать/ввести */
#view { touch-action: none; }
#game-root .scrim { touch-action: pan-y; }
#touch { position: absolute; inset: 0; touch-action: none; }
#t-base { position: absolute; width: 128px; height: 128px; margin: -64px 0 0 -64px; border-radius: 50%;
  background: color-mix(in srgb, var(--md-surface) 45%, transparent); box-shadow: inset 0 0 0 2px #fff3; pointer-events: none; }
#t-knob { position: absolute; left: 36px; top: 36px; width: 56px; height: 56px; border-radius: 50%; background: #ffffff55; box-shadow: 0 0 0 2px #fff6; }
.tb { position: absolute; width: 60px; height: 60px; padding: 0; border-radius: 50%; font-size: 22px; font-weight: 600; line-height: 1; touch-action: none;
  background: color-mix(in srgb, var(--md-surface-3) 70%, transparent); color: var(--md-on-surface); box-shadow: inset 0 0 0 2px #fff3; }
.tb.sm { width: 46px; height: 46px; font-size: 15px; }
.tb.down, .tb.on { background: var(--md-primary-container); color: var(--md-on-primary-container); box-shadow: inset 0 0 0 2px var(--md-primary); }
.tb.fire { width: 92px; height: 92px; right: max(24px, env(safe-area-inset-right)); bottom: 36px; font-size: 34px; background: color-mix(in srgb, var(--md-primary) 55%, transparent); color: var(--md-on-primary); }
.tb.fire2 { width: 72px; height: 72px; left: max(24px, env(safe-area-inset-left)); bottom: 150px; font-size: 26px; background: color-mix(in srgb, var(--md-primary) 40%, transparent); color: var(--md-on-primary); }
#t-jump { right: 134px; bottom: 56px; }
#t-crouch { right: 146px; bottom: 126px; }
#t-use { right: 40px; bottom: 140px; width: 70px; height: 70px; }
#t-reload { right: 42px; bottom: 244px; }
#t-alt { right: 98px; bottom: 206px; }
#t-pause { right: max(10px, env(safe-area-inset-right)); top: 10px; }
#t-buy { right: 64px; top: 10px; }
#t-tab { right: 118px; top: 10px; }
body.touch-ui #killfeed { right: 176px; top: 10px; }
body.touch-ui #minimap { width: 130px; height: 130px; left: max(10px, env(safe-area-inset-left)); top: 10px; }
body.touch-ui #hud-stats { bottom: auto; top: 134px; left: 12px; transform: none; }
body.touch-ui #vitals { bottom: 4px; transform: translateX(-50%) scale(.62); transform-origin: center bottom; }
body.touch-ui #v-money-box { left: max(10px, env(safe-area-inset-left)); bottom: 52px; transform: scale(.7); transform-origin: left bottom; }
/* на телефоне оружие выбирают касанием по строке: список не гаснет */
body.touch-ui #weapon-box { right: max(8px, env(safe-area-inset-right)); bottom: 150px; transform: scale(.7); transform-origin: right bottom; }
body.touch-ui #weapon-box.fade #slots { opacity: 1; }
body.touch-ui #slots, body.touch-ui #nades { pointer-events: auto; }
body.touch-ui #scoreboard { font-size: 12px; }
body.touch-ui .dialog { padding: 16px; border-radius: 24px; }
body.touch-ui button { min-height: 40px; }
body.touch-ui .kbd-hint, body.touch-ui .kbd-only { display: none; }
body.touch-ui #pause .dialog-actions { position: sticky; bottom: -16px; margin: 12px -16px -16px; padding: 12px 16px; background: var(--md-surface-3); border-radius: 0 0 24px 24px; }
body.touch-ui .scrim { padding: 8px max(8px, env(safe-area-inset-right)) 8px max(8px, env(safe-area-inset-left)); }
#ios-hint { margin: 0 16px 12px; padding: 12px 16px; border-radius: 16px; background: var(--md-secondary-container); color: var(--md-on-secondary-container); font-size: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
#ios-hint button { margin-left: auto; }
#local-near { max-width: 720px; margin: 0 auto 12px; padding: 12px 16px; border-radius: 16px; background: var(--md-primary-container); color: var(--md-on-primary-container); font-size: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
#local-near button { margin-left: auto; }
#rotate { position: fixed; inset: 0; z-index: 50; background: var(--md-surface); display: flex; align-items: center; justify-content: center; text-align: center; padding: 32px; font-size: 20px; }
@media (orientation: portrait) { body.touch-ui #game-root:not(.hidden) ~ #rotate { display: flex !important; } }
@media (max-height: 460px) { .tb.fire { bottom: 20px; } .scrim { align-items: flex-start; } }

/* ---- Killcam: стоп-кадр на убийце ---- */
#view { transition: filter .35s; }
#game-root.kc-freeze #view { filter: grayscale(.8) sepia(.25) contrast(1.15) brightness(.9); }
#game-root.kc #vitals, #game-root.kc #weapon-box, #game-root.kc #crosshair, #game-root.kc #deathmsg, #game-root.kc #scope, #game-root.kc #use-hint, #game-root.kc #progress { display: none !important; }
#kc-veil { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(ellipse at center, transparent 45%, #000c 100%); }
#game-root.kc-freeze #kc-veil { opacity: 1; animation: kc-flash .5s ease-out; }
@keyframes kc-flash { 0% { background-color: #fff6; } 100% { background-color: transparent; } }
#killcam { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(560px, calc(100% - 32px));
  padding: 16px 20px; border-radius: 24px; background: color-mix(in srgb, var(--md-surface-3) 92%, transparent);
  box-shadow: 0 4px 16px #0008; animation: kc-in .3s cubic-bezier(.2, 0, 0, 1); }
@keyframes kc-in { from { opacity: 0; translate: 0 24px; } }
.kc-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.kc-top span { font-size: 13px; color: var(--md-on-surface-variant); }
.kc-top b { font-size: 24px; } .kc-top b.T { color: var(--team-T); } .kc-top b.CT { color: var(--team-CT); }
.kc-hp { margin-left: auto; font-style: normal; font-weight: 600; padding: 2px 12px; border-radius: 12px; background: var(--md-error-container); color: var(--md-on-error-container); }
.kc-hp.dead { background: var(--md-secondary-container); color: var(--md-on-secondary-container); }
.kc-how { margin: 4px 0 12px; color: var(--md-primary); font-weight: 500; }
.kc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kc-grid div { background: var(--md-surface-1); border-radius: 16px; padding: 8px 12px; display: flex; flex-direction: column; }
.kc-grid span { font-size: 12px; color: var(--md-on-surface-variant); }
.kc-grid b { font-size: 26px; line-height: 32px; font-variant-numeric: tabular-nums; }
.kc-grid small { font-size: 12px; color: var(--md-on-surface-variant); }
body.touch-ui #killcam { bottom: 8px; padding: 10px 14px; transform: translateX(-50%) scale(.85); transform-origin: center bottom; }
#game-root.kc #touch .tb:not(#t-pause):not(#t-tab) { opacity: 0; pointer-events: none; }

/* ---- Дрон-камикадзе: картинка как на планшете ---- */
#drone-ui { position: absolute; inset: 0; pointer-events: none; display: none; color: #d6ffe0; font-variant-numeric: tabular-nums; }
#game-root.drone #drone-ui { display: block; }
#drone-ui::before { content: ''; position: absolute; inset: 14px; border-radius: 26px; z-index: 0;
  box-shadow: 0 0 0 100vmax #0a0b0d, inset 0 0 0 2px #3b3d44, inset 0 0 70px #000c;
  background: repeating-linear-gradient(0deg, #0000 0 2px, #0000001f 2px 3px); }
#drone-ui::after { content: ''; position: absolute; left: 4px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #1d2026; box-shadow: 0 0 0 1px #2c2f36; }
#game-root.drone #view { filter: saturate(.7) contrast(1.15) brightness(1.05) hue-rotate(-6deg); }
#game-root.drone #vitals, #game-root.drone #weapon-box, #game-root.drone #crosshair, #game-root.drone #scope, #game-root.drone #minimap,
#game-root.drone #hud-speed, #game-root.drone #hud-stats, #game-root.drone #use-hint, #game-root.drone #progress, #game-root.drone #deathmsg { display: none !important; }
#game-root.drone #touch { display: none !important; }
.du-top { position: absolute; left: 44px; right: 44px; top: 30px; display: flex; gap: 20px; align-items: center; font-size: 18px; text-shadow: 0 0 6px #000; }
.du-rec { color: #ff5a4d; animation: du-blink 1s steps(2) infinite; }
@keyframes du-blink { 50% { opacity: .25; } }
.du-hp { margin-left: auto; } .du-hp b { color: #fff; }
.du-bar { position: absolute; left: 44px; right: 44px; top: 62px; height: 6px; border-radius: 3px; background: #ffffff22; overflow: hidden; }
.du-bar i { display: block; height: 100%; background: #5dff7a; transition: width .1s linear; }
.du-bar i.low { background: #ff5a4d; }
.du-ret { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.du-ret i { position: absolute; background: #d6ffe0; box-shadow: 0 0 0 1px #0007; }
.du-ret i:nth-child(1) { width: 2px; height: 14px; left: -1px; top: -26px; } .du-ret i:nth-child(2) { width: 2px; height: 14px; left: -1px; top: 12px; }
.du-ret i:nth-child(3) { width: 14px; height: 2px; left: -26px; top: -1px; } .du-ret i:nth-child(4) { width: 14px; height: 2px; left: 12px; top: -1px; }
.du-info { position: absolute; left: 44px; right: 44px; bottom: 56px; display: flex; gap: 28px; font-size: 15px; text-shadow: 0 0 6px #000; }
.du-info b { color: #fff; margin-left: 4px; }
.du-hint { position: absolute; left: 0; right: 0; bottom: 28px; text-align: center; font-size: 13px; color: #d6ffe0b0; text-shadow: 0 0 6px #000; }

/* Меню оружия: много стволов - сетка чипов вместо сегментов */
.lo-seg { flex-wrap: wrap; gap: 6px; }
.lo-seg button { flex: 1 0 22%; border-radius: 20px !important; min-height: 36px; }
.lo-sub { margin: 10px 0 6px; font: 500 12px/16px var(--font); color: var(--md-on-surface-variant); }
#hitmarker.prot i { background: #9aa0a6; }   /* попал в игрока под защитой после появления */
/* Загрузка карты: во всё окно поверх игры и меню паузы, пока модель не загрузилась */
/* Загрузки (preload.js): слева сверху в меню, в игре - под мини-картой */
#preload { position: fixed; left: 12px; top: 76px; z-index: 59; width: 260px; padding: 10px 12px; border-radius: 16px;
  background: var(--md-surface-3); color: var(--md-on-surface); font-size: 12px; box-shadow: 0 2px 8px #0008; pointer-events: none; }
#preload .pl-head { font-weight: 500; font-size: 13px; margin-bottom: 4px; }
#preload .pl-row { margin-top: 6px; }
#preload .pl-row.done { opacity: .6; }
#preload .pl-name { display: flex; justify-content: space-between; gap: 8px; color: var(--md-on-surface-variant); font-variant-numeric: tabular-nums; }
#preload .pl-bar { height: 3px; margin-top: 3px; border-radius: 2px; background: var(--md-surface-variant, #4f4539); overflow: hidden; }
#preload .pl-bar i { display: block; height: 100%; background: var(--md-primary); }
body:has(#game-root:not(.hidden)) #preload { top: 240px; }

#maploading { position: fixed; inset: 0; z-index: 58; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: var(--md-surface); color: var(--md-on-surface); }
#maploading.hidden { display: none; }
#maploading .ml-card { width: min(420px, 100%); padding: 28px 32px; border-radius: 28px; background: var(--md-surface-3); text-align: center; }
#maploading .ml-name { font-size: 28px; font-weight: 500; margin-bottom: 4px; }
#maploading .ml-sub { color: var(--md-on-surface-variant); margin-bottom: 20px; }
#maploading .ml-bar { height: 4px; border-radius: 2px; background: var(--md-surface-variant); overflow: hidden; }
#maploading .ml-bar i { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--md-primary); transition: width .2s; }
#maploading .ml-pct { margin-top: 10px; font-variant-numeric: tabular-nums; color: var(--md-on-surface-variant); }
/* зимой (WINTER): падает снег (слои точек, двигается только фон - дёшево), гирлянда и сугроб на карточке,
   полоска загрузки - как леденец, поздравление внизу карточки */
body.winter #maploading { overflow: hidden; }
body.winter #maploading::before { content: ""; position: absolute; inset: -200px 0 0; pointer-events: none; opacity: .85;
  background-image: radial-gradient(circle at 20% 30%, #f0f6ff 1.6px, transparent 2.4px), radial-gradient(circle at 70% 60%, #f0f6ff 1.2px, transparent 2px),
    radial-gradient(circle at 45% 80%, #f0f6ffcc 2.2px, transparent 3px), radial-gradient(circle at 85% 15%, #f0f6ff99 1px, transparent 1.8px),
    radial-gradient(circle at 10% 55%, #f0f6ffbb 1.4px, transparent 2.2px), radial-gradient(circle at 60% 10%, #f0f6ff 1.8px, transparent 2.6px);
  background-size: 180px 200px, 130px 150px, 260px 280px, 90px 110px, 217px 173px, 151px 233px; animation: mlsnow 9s linear infinite; }
@keyframes mlsnow { to { background-position: 40px 200px, -30px 150px, 60px 280px, 20px 110px, -50px 173px, 30px 233px; } }
body.winter #maploading .ml-card { position: relative; padding-top: 40px; }
body.winter #maploading .garland { position: absolute; left: 24px; right: 24px; top: 0; margin: 0; }
body.winter #maploading .ml-bar { height: 8px; border-radius: 4px; }
body.winter #maploading .ml-bar i { border-radius: 4px; background: repeating-linear-gradient(-45deg, #d62828 0 8px, #f4f7fb 8px 16px) 0 0 / 22.6px 100%;
  animation: mlcane 1s linear infinite; }
@keyframes mlcane { to { background-position: 22.6px 0; } }
@media (prefers-reduced-motion: reduce) { body.winter #maploading::before, body.winter #maploading .ml-bar i { animation: none; } }

/* Объявление из Telegram: огромный текст по центру, как /title в Minecraft */
#title { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px;
  text-align: center; overflow-wrap: anywhere; pointer-events: none; color: #fff; font: 700 clamp(40px, 9vw, 128px)/1.1 var(--font);
  text-shadow: .06em .06em 0 #0009, 0 0 24px #000a; opacity: 0; transition: opacity .5s; }
#title.show { opacity: 1; }

/* Кнопка «СКИНЫ»: нарочно как рекламный баннер из 2008 года (радужный текст, мигание, рамка), справа в лобби и в закупке */
.skins-ad { position: fixed; right: 24px; top: 50%; transform: translateY(-50%); z-index: 5; width: 220px; height: auto; min-height: 0; padding: 16px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 4px; border-radius: 0; text-align: center; cursor: pointer;
  border: 4px dashed #ff00d4; background: #000; animation: ad-border .3s steps(2) infinite; }
.skins-ad:hover { transform: translateY(-50%) scale(1.04); }
.skins-ad .t { font: 900 36px/1 "Comic Sans MS", Impact, sans-serif; color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); background-size: 300% 100%; animation: ad-rainbow 1.2s linear infinite; }
.skins-ad .w { font: 700 13px/1.3 "Comic Sans MS", Arial, sans-serif; color: #ffef00; animation: ad-blink .4s steps(2) infinite; }
.skins-ad .x { position: absolute; top: -12px; left: -12px; background: #ffef00; color: #d00; font: 900 14px/1 Arial, sans-serif; padding: 5px 7px; transform: rotate(-12deg); }
.skins-ad .gift { font-size: 22px; }
#buy .skins-ad, #loadout .skins-ad { position: absolute; }
@keyframes ad-rainbow { to { background-position: 300% 0; } }
@keyframes ad-border { 50% { border-color: #00f0ff; } }
@keyframes ad-blink { 50% { opacity: .2; } }
@media (max-width: 1480px) { #buy .skins-ad, #loadout .skins-ad { position: relative; right: auto; top: auto; transform: none; margin: 16px auto 0; } }

/* Окно скинов */
#skins { z-index: 30; }
.skins-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.skins-tabs button { min-height: 32px; padding: 0 12px; border-radius: 8px; background: transparent; color: var(--md-on-surface); border: 1px solid var(--md-outline); }
.skins-tabs button.on { background: var(--md-secondary-container); color: var(--md-on-secondary-container); border-color: transparent; }
.skins-tabs button.has::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: var(--md-primary); vertical-align: middle; }
.skins-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-height: 60vh; overflow: auto; padding: 2px; }
.skin-card { display: flex; flex-direction: column; align-items: stretch; gap: 6px; height: auto; min-height: 0; padding: 8px; border-radius: 12px;
  background: var(--md-surface-2); color: var(--md-on-surface); border: 2px solid transparent; border-bottom: 4px solid var(--rar); }
.skin-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.skin-card .skin-none { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; color: var(--md-on-surface-variant); }
.skin-card span { font-size: 13px; text-align: center; }
.skin-card.on { border-color: var(--md-primary); background: var(--md-secondary-container); }

/* Колесо эмоций (V), как в Fortnite: кольцо секторов по центру экрана */
/* «Продолжить» в паузе: большая кнопка в правом нижнем углу, сразу видно, как зайти в игру */
.resume-big { position: fixed; right: 40px; bottom: 40px; height: auto; min-height: 0; padding: 44px 96px;
  border-radius: 48px; font-size: 48px; font-weight: 700; box-shadow: 0 8px 28px #000c; animation: resume-pulse 1.6s ease-in-out infinite; }
.resume-big:hover { transform: scale(1.05); }
@keyframes resume-pulse { 50% { box-shadow: 0 8px 28px #000c, 0 0 0 10px color-mix(in srgb, var(--md-primary) 30%, transparent); } }
@media (max-width: 1100px) { .resume-big { right: 16px; bottom: 16px; padding: 28px 56px; font-size: 32px; } }

#emote-wheel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: 6; }
#emote-wheel .sec { fill: rgba(23, 19, 14, .72); stroke: var(--md-outline); stroke-width: 1.5; }
#emote-wheel .sec.on { fill: var(--md-primary); fill-opacity: .9; }
#emote-wheel .sec.empty { fill-opacity: .35; }
#emote-wheel text { fill: var(--md-on-surface); font: 600 13px/1 var(--font); }
#emote-wheel .mid { font-size: 16px; }
#emote-wheel .hint { font-size: 11px; fill: var(--md-on-surface-variant); }
#emote-wheel .cur { fill: #fff; stroke: #000; stroke-width: 2; }
#game-root.emoting #crosshair { display: none; }

/* ---- креатив из Майнкрафта: хотбар как в игре (пиксельные иконки, выбранный слот в белой рамке) ---- */
#game-root.mc #weapon-box { display: none; }
#mc-hotbar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
#mc-name { font: 600 20px/1 monospace; color: #fff; text-shadow: 3px 3px 0 #3f3f3f; opacity: 0; transition: opacity 0.4s; }
#mc-name.on { opacity: 1; transition: none; }
/* хотбар из widgets.png Майнкрафта в масштабе интерфейса 3: полоса 182x22, рамка выбора 24x24, иконки 16x16 */
#mc-slots { position: relative; width: 546px; height: 66px; background: url(/models/mc/hotbar.png) 0 0 / 100% 100%; image-rendering: pixelated; }
#mc-slots img { position: absolute; top: 9px; width: 48px; height: 48px; image-rendering: pixelated; }
#mc-slots .sel { position: absolute; top: -3px; width: 72px; height: 72px; background: url(/models/mc/hotbar_sel.png) 0 0 / 100% 100%; image-rendering: pixelated; }
@media (max-width: 700px) { #mc-slots { transform: scale(0.66); transform-origin: bottom center; } }
/* прицел Майнкрафта: белый крестик, инвертирует то, что под ним */
#mc-cross { display: none; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; transform: translate(-50%, -50%); mix-blend-mode: difference; pointer-events: none;
  background: linear-gradient(#fff, #fff) center / 2px 20px no-repeat, linear-gradient(#fff, #fff) center / 20px 2px no-repeat; }
#game-root.mc #mc-cross { display: block; }
#game-root.mc #crosshair { display: none; }

/* ---- режим Фортнайта: справа клавиши стройки и дерево ---- */
#fn-panel { position: absolute; right: 16px; top: 34%; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
#fn-panel .fn-wood { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 12px; background: color-mix(in srgb, var(--md-surface) 75%, transparent); font-variant-numeric: tabular-nums; }
#fn-panel .fn-wood i { width: 18px; height: 18px; border-radius: 4px; background: linear-gradient(135deg, #c48a4a, #8a5a2b); box-shadow: inset 0 0 0 2px #5e3a17; }
#fn-panel .fn-wood b { font-size: 20px; }
#fn-panel .fn-key { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 6px; border-radius: 12px; background: color-mix(in srgb, var(--md-surface) 65%, transparent); color: var(--md-on-surface-variant); font-size: 13px; }
#fn-panel .fn-key kbd { min-width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--md-surface-container-high, #333); color: var(--md-on-surface); font: 600 13px/1 inherit; }
#fn-panel .fn-key.on { background: var(--md-primary-container); color: var(--md-on-primary-container); }
#fn-panel .fn-key.on kbd { background: var(--md-primary); color: var(--md-on-primary); }
/* прочность постройки под прицелом */
#fn-hp { position: absolute; left: 50%; top: calc(50% + 28px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 3px; pointer-events: none; font: 600 12px/1 inherit; color: #fff; text-shadow: 0 1px 2px #000; }
#fn-hp i { width: 90px; height: 6px; border-radius: 3px; background: #0008; overflow: hidden; }
#fn-hp b { display: block; height: 100%; background: #e8b45a; }

/* ---- модификаторы раунда: голосование слева (как в CS2), барабан-казино по центру ---- */
#mod-vote { position: absolute; left: 12px; top: 220px; width: 250px; padding: 12px 14px; border-radius: 16px; pointer-events: none;
  background: color-mix(in srgb, var(--md-surface) 82%, transparent); color: var(--md-on-surface); box-shadow: 0 3px 12px #0008;
  border-left: 4px solid var(--md-primary); }
#mod-vote .mv-title { font: 500 12px/16px var(--font); letter-spacing: .5px; text-transform: uppercase; color: var(--md-primary); }
#mod-vote .mv-q { margin: 4px 0 10px; font: 500 15px/20px var(--font); }
#mod-vote .mv-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 4px 8px; border-radius: 10px; font: 500 14px/20px var(--font); }
#mod-vote .mv-row kbd { min-width: 22px; text-align: center; padding: 1px 6px; border-radius: 6px; background: var(--md-secondary-container); color: var(--md-on-secondary-container); font: 600 13px/18px var(--font); }
#mod-vote .mv-row b { margin-left: auto; font-variant-numeric: tabular-nums; }
#mod-vote .mv-row.me { background: color-mix(in srgb, var(--md-primary) 22%, transparent); }
#mod-vote .mv-row.yes b { color: #8fd18a; } #mod-vote .mv-row.no b { color: #f08a7e; }
#mod-vote .mv-bar { height: 4px; margin-top: 10px; border-radius: 2px; background: var(--md-outline-variant); overflow: hidden; }
#mod-vote .mv-bar i { display: block; height: 100%; background: var(--md-primary); transition: width .9s linear; }
#mod-vote .mv-foot { margin-top: 6px; font-size: 12px; color: var(--md-on-surface-variant); }
#mod-vote.done.ok { border-left-color: #8fd18a; } #mod-vote.done.no { border-left-color: #f08a7e; }

#mod-chip { left: 50%; top: 114px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px;
  background: var(--md-primary-container); color: var(--md-on-primary-container); }
#game-root.follow #mod-chip { top: 178px; }   /* под плашкой наблюдения */
#mod-chip i, .mr-item i { display: inline-block; width: 18px; height: 18px; image-rendering: pixelated; background-size: cover; border-radius: 3px; }

#mod-alert { position: absolute; left: 50%; top: 26%; transform: translateX(-50%); padding: 10px 24px; border-radius: 16px; pointer-events: none;
  background: var(--md-error-container); color: var(--md-on-error-container); font: 500 22px/28px var(--font); box-shadow: 0 3px 12px #0008; }

/* что выдали (лаки блок, жемчуг): под прицелом, где смотрят; клавиша - второй строкой */
#mod-gift { position: absolute; left: 50%; top: calc(50% + 56px); transform: translateX(-50%); padding: 8px 20px; border-radius: 16px; pointer-events: none;
  text-align: center; white-space: nowrap; background: var(--md-primary-container); color: var(--md-on-primary-container);
  font: 500 18px/24px var(--font); box-shadow: 0 3px 12px #0008; }
#mod-gift small { display: block; font: 500 14px/20px var(--font); opacity: .85; }
#mod-gift.pop { animation: gift-pop .25s ease-out; }
@keyframes gift-pop { from { transform: translateX(-50%) scale(.7); } to { transform: translateX(-50%) scale(1); } }
#game-root.kc #mod-gift, #game-root.drone #mod-gift { display: none !important; }

#mod-reel { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); width: 440px; max-width: calc(100vw - 32px); pointer-events: none;
  padding: 18px 18px 16px; border-radius: 24px; text-align: center; color: #fff4d6;
  background: radial-gradient(circle at 50% 0%, #7a1020, #3a060f 70%); border: 4px solid #e7b64a;
  box-shadow: 0 0 0 3px #6b4a0e, 0 0 40px #e7b64a66, inset 0 0 30px #0009; transition: opacity .4s, transform .4s; }
#mod-reel.out { opacity: 0; transform: translateX(-50%) scale(.92); }
#mod-reel .mr-title { font: 700 15px/20px var(--font); letter-spacing: 3px; color: #ffd36a; text-shadow: 0 0 10px #ffb300aa; }
#mod-reel .mr-lights { display: flex; justify-content: space-between; margin: 8px 6px; }
#mod-reel .mr-lights i { width: 10px; height: 10px; border-radius: 50%; background: #ffd36a; box-shadow: 0 0 8px #ffcf4d; animation: mr-blink .5s steps(1) infinite; }
#mod-reel .mr-lights i:nth-child(2n) { animation-delay: .25s; }
#mod-reel.win .mr-lights i { animation-duration: .16s; }
@keyframes mr-blink { 50% { background: #6b4a0e; box-shadow: none; } }
#mod-reel .mr-win { position: relative; height: 216px; overflow: hidden; border-radius: 14px; background: linear-gradient(#120205, #2a0610 50%, #120205);
  box-shadow: inset 0 0 0 2px #e7b64a88; }
#mod-reel .mr-win::before, #mod-reel .mr-win::after { content: ''; position: absolute; left: 0; right: 0; height: 72px; z-index: 2; }
#mod-reel .mr-win::before { top: 0; background: linear-gradient(#120205, #12020500); }
#mod-reel .mr-win::after { bottom: 0; background: linear-gradient(#12020500, #120205); }
#mod-reel .mr-band { position: absolute; left: 6px; right: 6px; top: 72px; height: 72px; border-radius: 10px; z-index: 1;
  border: 2px solid #ffd36a; box-shadow: 0 0 16px #ffd36a88, inset 0 0 16px #ffd36a44; }
#mod-reel .mr-band::before, #mod-reel .mr-band::after { content: ''; position: absolute; top: 50%; margin-top: -9px; border: 9px solid transparent; }
#mod-reel .mr-band::before { left: -14px; border-left-color: #ffd36a; } #mod-reel .mr-band::after { right: -14px; border-right-color: #ffd36a; }
#mod-reel .mr-strip { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
#mod-reel .mr-item { height: 72px; display: flex; align-items: center; gap: 14px; padding: 0 22px; text-align: left; }
#mod-reel .mr-item i { width: 44px; height: 44px; flex: none; border-radius: 6px; box-shadow: 0 2px 6px #0009; }
#mod-reel .mr-item b { display: block; font: 700 20px/24px var(--font); color: #fff; }
#mod-reel .mr-item span { display: block; font-size: 12px; line-height: 16px; color: #f3d9a4; }
#mod-reel .mr-foot { margin-top: 10px; font: 500 13px/18px var(--font); color: #f3d9a4; min-height: 18px; }
#mod-reel.win .mr-band { animation: mr-pulse .35s ease-in-out 4; }
@keyframes mr-pulse { 50% { box-shadow: 0 0 34px #ffd36a, inset 0 0 26px #ffd36a88; } }

#mod-blind { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: radial-gradient(circle, #000c 0%, #000 60%); }
#mod-poison { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .3s; background: radial-gradient(ellipse at center, #2fbf3a00 45%, #2fbf3a66 100%); }
body.touch-ui #mod-vote { top: 160px; width: 210px; transform: scale(.9); transform-origin: left top; }
/* «Ночь»: карты без освещения (запечённые цвета), поэтому темнеет сам кадр - под HUD, светлее в центре взгляда */
#mod-night { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.5s;
  background: radial-gradient(ellipse 50% 60% at 50% 52%, #050a1840 0%, #050a1890 60%, #050a18d0 100%); }
#mod-night.on { opacity: 1; }

/* ---- плеер записей (админка «Смотреть»): панель снизу ---- */
#replay { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 40; width: min(760px, calc(100vw - 32px));
  padding: 10px 14px; border-radius: 20px; background: color-mix(in srgb, var(--md-surface) 88%, transparent); color: var(--md-on-surface);
  box-shadow: 0 4px 16px #000a; font: 400 13px/18px var(--font); }
#replay .rp-title { margin-bottom: 6px; color: var(--md-on-surface-variant); }
#replay .rp-title b { color: var(--md-primary); font-weight: 500; }
#replay .rp-row { display: flex; align-items: center; gap: 8px; }
#replay button { border: 0; border-radius: 10px; padding: 4px 10px; cursor: pointer; font: 500 13px/18px var(--font);
  background: var(--md-secondary-container); color: var(--md-on-secondary-container); }
#replay button.on { background: var(--md-primary); color: var(--md-on-primary); }
#replay .rp-play { min-width: 40px; background: var(--md-primary); color: var(--md-on-primary); }
#replay .rp-seek { flex: 1; accent-color: var(--md-primary); }
#replay .rp-time { font-variant-numeric: tabular-nums; min-width: 92px; text-align: center; }
#replay .rp-hint { margin-top: 4px; font-size: 12px; color: var(--md-on-surface-variant); }

/* граффити (T): превью своей картинки в меню паузы */
.spray-row { display: flex; gap: 16px; align-items: center; margin-top: 8px; }
.spray-preview { width: 96px; height: 96px; flex: none; border-radius: 12px; background-color: color-mix(in srgb, var(--md-on-surface) 6%, var(--md-surface)); background-size: contain; background-repeat: no-repeat; background-position: center;
  background-image: none; border: 1px solid var(--md-outline-variant); }
.spray-preview.empty::after { content: 'нет'; display: grid; place-items: center; height: 100%; font-size: 13px; color: var(--md-on-surface-variant); }
.spray-btns { display: flex; flex-direction: column; gap: 8px; }

/* «Мультимод»: несколько барабанов рядом, у каждого своя лента (крутятся и встают по очереди) */
#mod-reel .mr-cols { position: absolute; inset: 0; display: flex; }
#mod-reel .mr-col { position: relative; flex: 1; overflow: hidden; }
#mod-reel.multi { width: calc(var(--reels) * 170px); }
#mod-reel.multi .mr-col + .mr-col { border-left: 1px solid #ffd36a33; }
#mod-reel.multi .mr-item { flex-direction: column; justify-content: center; gap: 4px; padding: 0 6px; text-align: center; }
#mod-reel.multi .mr-item i { width: 28px; height: 28px; }
#mod-reel.multi .mr-item b { font-size: 14px; line-height: 17px; }

/* галерея граффити: окно поверх меню паузы, сетка картинок */
#spray-gallery { width: min(720px, calc(100vw - 32px)); max-height: min(640px, calc(100vh - 32px)); padding: 24px; border: 0; border-radius: 28px;
  background: var(--md-surface-1); color: var(--md-on-surface); display: none; flex-direction: column; gap: 8px; }
#spray-gallery[open] { display: flex; pointer-events: auto; }   /* окно внутри #hud, а там клики выключены */
#spray-gallery::backdrop { background: #000a; }
#spray-gallery .sg-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#spray-gallery h2 { margin: 0; font: 500 22px/28px var(--font); }
#spray-gallery .sg-close { min-width: 40px; padding: 8px; border-radius: 20px; }
#spray-gallery .sg-hint { margin: 0; font-size: 14px; color: var(--md-on-surface-variant); }
#spray-gallery .sg-grid { overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; padding: 4px; }
/* плитка - квадрат: высота 0 плюс padding-bottom 100% (процент от ширины колонки). Не aspect-ratio и не отступ у ::before:
   с ними Chrome считал высоту строки сетки только по рамке, растягивал строки на высоту окна, и плитки налезали друг на друга.
   Картинка внутри - абсолютом, на высоту не влияет */
#spray-gallery .sg-item { display: block; align-self: start; width: 100%; height: 0; min-width: 0; min-height: 0; padding: 0 0 100%; border-radius: 12px;
  border: 1px solid var(--md-outline-variant); cursor: pointer; background: color-mix(in srgb, var(--md-on-surface) 6%, var(--md-surface)); }
#spray-gallery .sg-item:hover, #spray-gallery .sg-item:focus-visible { border-color: var(--md-primary); background: color-mix(in srgb, var(--md-primary) 14%, var(--md-surface)); }
#spray-gallery .sg-item.on { border: 2px solid var(--md-primary); }
#spray-gallery .sg-item img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; }
/* анимированное граффити (GIF): кадры рисуются в canvas, вписан в превью и плитку галереи */
.spray-preview, #spray-gallery .sg-item { position: relative; }
canvas.spray-anim { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; pointer-events: none; }
#spray-gallery .sg-empty { grid-column: 1 / -1; padding: 24px; text-align: center; color: var(--md-on-surface-variant); }

/* ---- HUD как в CS2 (client/js/hud.js). Размеры, цвета и анимации - из интерфейса CS2 (panorama: hudteamcounter,
   hudhealthammocenter, hudmoney, hudweaponselection, buymenu, scoreboard), цвета команд - как в верхней панели CS2.
   Значки - SVG из CS2 (tools/mapkit/cs2hud.mjs -> icons/hud, портреты агентов -> icons/agents) ---- */
:root { --cs-ct: #b5d4ee; --cs-t: #ead18a; --cs-ct-hi: #7ed9ff; --cs-t-hi: #ffd46d; --cs-red: #dd0000; }
.mask { display: inline-block; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ic-ct-logo { --m: url(icons/hud/ct_logo.svg); } .ic-t-logo { --m: url(icons/hud/t_logo.svg); }
.ic-bomb { --m: url(icons/hud/bomb_planted.svg); } .ic-buyzone { --m: url(icons/hud/buyzone.svg); }
.ic-skull { --m: url(icons/hud/skull.svg); } .ic-c4 { --m: url(icons/hud/c4.svg); } .ic-kit { --m: url(icons/hud/defuser.svg); }
.ic-star { --m: url(icons/hud/star.svg); } .ic-armor { --m: url(icons/hud/armor.svg); } .ic-helmet { --m: url(icons/hud/armor_helmet.svg); }
.ic-reserve { --m: url(icons/hud/ammo_reserve.svg); }
.cs-num { font-weight: 700; font-variant-numeric: tabular-nums; font-stretch: condensed; color: #fff; text-shadow: 1px 1px 2px #0009; }

/* затемнение внизу экрана: на нём белые цифры читаются на любом фоне */
#hud-grad { position: absolute; left: 0; right: 0; bottom: 0; height: 180px; max-height: 30vh; background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0)); }   /* в CS2 темнее (0.8 на 300 px) - игрокам было «как будто темно» */

/* верх: аватарки команд, время, счёт */
#tc { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); display: flex; align-items: flex-start; }
.tc-side { display: flex; gap: 1px; }
.tc-side.CT { flex-direction: row-reverse; }   /* растут от часов наружу: первый игрок CT - у часов */
.tc-mid { position: relative; width: 84px; height: 106px; display: flex; flex-direction: column; align-items: center; flex: none; }
.tc-bg { position: absolute; left: 1%; right: 1%; top: 0; height: 106px; border-radius: 0 0 10px 10px;
  background: linear-gradient(#000000c0 0, #000000c0 62%, transparent); }
#hud-timer { position: relative; height: 32px; width: 82px; text-align: center; font-size: 28px; line-height: 34px; }
#hud-timer.red { color: #ff3030; }
#tc-bomb { position: absolute; top: 3px; left: 21px; width: 42px; height: 28px; color: #b80000; animation: bombdet .8s ease-in-out infinite; }
#tc-bomb.m { animation-duration: .5s; } #tc-bomb.f { animation-duration: .3s; }
@keyframes bombdet { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.tc-score { position: relative; display: flex; margin-top: 1px; }
.tc-score b { width: 42px; height: 30px; text-align: center; font-size: 28px; line-height: 30px; }
.tc-score b.CT, .tc-alive .CT { color: var(--cs-ct); } .tc-score b.T, .tc-alive .T { color: var(--cs-t); }
.tc-alive { position: relative; display: flex; justify-content: space-between; width: 100%; padding: 2px 8px 0; font-size: 16px; line-height: 18px; }
/* живых - человечек и число, как в CS2: слева значок перед числом, справа после */
.tc-alive span { display: flex; align-items: center; gap: 3px; }
.tc-alive span::before { content: ''; width: 9px; height: 14px; background: currentColor; filter: drop-shadow(0 0 2px #00000080);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Ccircle cx='5' cy='3' r='2.7'/%3E%3Cpath d='M1 16V8.6C1 7 2 6 3.6 6h2.8C8 6 9 7 9 8.6V16z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Ccircle cx='5' cy='3' r='2.7'/%3E%3Cpath d='M1 16V8.6C1 7 2 6 3.6 6h2.8C8 6 9 7 9 8.6V16z'/%3E%3C/svg%3E") center / contain no-repeat; }
.tc-alive span.T { flex-direction: row-reverse; }
.tc-av { position: relative; width: 54px; display: flex; flex-direction: column; align-items: center; }
.tc-av .im { width: 54px; height: 54px; background: #7f7f7f center / cover no-repeat; background-size: cover, cover; box-sizing: border-box; border: 2px solid var(--tc-col); }
.tc-side.CT .tc-av { --tc-col: var(--cs-ct); } .tc-side.T .tc-av { --tc-col: var(--cs-t); }
.tc-av.me .im { border-color: #fff; }
.tc-av .hp { width: 52px; height: 4px; margin: 2px; background: linear-gradient(to left, transparent, #f00 50%, #f00); }
.tc-av .hp u { display: block; height: 100%; background: #fff; box-shadow: 1px 1px 1px #00000080; transition: width .5s; }
.tc-av .hp.no { visibility: hidden; }
.tc-av .nm { width: 54px; height: 0; overflow: hidden; font-size: 12px; line-height: 14px; letter-spacing: .5px; text-align: center; white-space: nowrap; text-overflow: ellipsis;
  background: #000000cc; color: var(--tc-col); transition: height .5s; }
#tc.names .tc-av .nm { height: 14px; }
.tc-av.dead .im { opacity: .2; filter: grayscale(1) contrast(.9); border-color: #000; }
.tc-av.dead .hp { visibility: hidden; }
.tc-av .sk { position: absolute; left: 7px; top: 7px; width: 40px; height: 40px; color: #fff; opacity: .5; display: none; }
.tc-av.dead .sk { display: block; }
.tc-av .c4 { position: absolute; right: 3px; top: 37px; width: 16px; height: 16px; color: rgb(255,255,95); filter: drop-shadow(1px 1px 1px #000); }
.tc-av .kit { position: absolute; right: 2px; top: 34px; width: 20px; height: 20px; color: rgb(119,221,255); filter: drop-shadow(1px 1px 1px #000); }
#tc-note { position: absolute; top: 148px; left: 50%; transform: translateX(-50%); font: 600 14px/20px var(--font); color: #fff; text-shadow: 1px 1px 2px #000; white-space: nowrap; }
@media (max-width: 1100px) { #tc { transform: translateX(-50%) scale(.8); transform-origin: center top; }
  #vitals { transform: translateX(-50%) scale(.8); transform-origin: center bottom; } #v-money-box, #weapon-box { zoom: .85; } }
@media (max-width: 900px) { #vitals { transform: translateX(-50%) scale(.62); } #v-money-box, #weapon-box { zoom: .7; } }
@media (max-width: 760px) { #tc { transform: translateX(-50%) scale(.62); } }

/* низ по центру: здоровье и броня | значок команды | патроны */
#vitals { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 800px; height: 72px; display: flex; align-items: center; }
.ha-half { position: relative; flex: 1; height: 100%; display: flex; align-items: center; }
.ha-l { justify-content: flex-end; } .ha-r { justify-content: flex-start; }
.ha-stroke { position: absolute; top: 50%; width: 50%; height: 1px; }
.ha-l .ha-stroke { right: 0; background: linear-gradient(to left, #fff, rgba(255,0,0,0)); }
.ha-r .ha-stroke { left: 0; background: linear-gradient(to right, #fff, rgba(255,0,0,0)); }
.ha-main { position: relative; display: flex; align-items: center; gap: 8px; }
.ha-l .ha-main { margin-right: 200px; } .ha-r .ha-main { margin-left: 200px; }
.ha-c { flex: none; width: 64px; height: 64px; border-radius: 50%; box-sizing: border-box; border: 3px solid #fff; display: grid; place-items: center;
  background: rgba(20,22,26,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#ha-logo { width: 44px; height: 44px; color: var(--cs-t); }
#ha-logo.ic-ct-logo { color: var(--cs-ct); }
.ha-armor { display: flex; align-items: center; gap: 2px; opacity: 0; transform: translateY(5px); transition: opacity .2s, transform .2s; }
.ha-armor.on { opacity: 1; transform: none; }
.ha-armor .mask { width: 30px; height: 30px; color: #fff; }
.ha-armor b { font-size: 18px; transform: translateY(3px); }
.ha-health, .ha-clip { position: relative; width: 70px; display: flex; flex-direction: column; align-items: center; }
#v-hp, #a-mag { font-size: 42px; line-height: 44px; }
.ha-bar { display: block; width: 65px; height: 8px; box-sizing: border-box; border: 1px solid #000; background: linear-gradient(to left, rgba(255,0,0,.1), #f00 50%, #f00); }
.ha-bar.thin { height: 4px; background: rgba(255,255,255,.1); }
.ha-bar u { display: block; height: 100%; background: #fff; transition: width .15s; }
#vitals.low #v-hp { text-shadow: 0 0 9px var(--cs-red), 0 0 4px var(--cs-red); }
#vitals .hit { animation: hpjit .15s; }
@keyframes hpjit { 0% { transform: translate(-3px,-4px) scale(1.15); filter: brightness(3); } 33% { transform: translate(0,-2px) scale(1.15); filter: brightness(5); } 66% { transform: translate(3px,5px) scale(1.1); filter: brightness(3); } 100% { transform: none; } }
#a-mag.empty { color: #fff; text-shadow: 0 0 9px var(--cs-red), 0 0 4px var(--cs-red); }
#ammo.low .ha-bar u { background: #f33; box-shadow: 0 0 5px var(--cs-red); }
#a-res { width: 40px; text-align: right; font-size: 32px; line-height: 44px; }
#a-res-ic { height: 18px; transform: translateY(-1px); }
#a-name { display: none; }
#ammo.none { visibility: hidden; }
#ammo.chg { animation: wchg .1s; }
@keyframes wchg { from { transform: scale(.75); } }

/* деньги внизу слева, тележка - в зоне закупки; прибавка зелёным, трата красным */
#v-money-box { position: absolute; left: 16px; bottom: 22px; display: flex; align-items: flex-end; gap: 6px; }
#v-money { font-size: 38px; line-height: 40px; }
#v-buyzone { width: 30px; height: 30px; margin: 0 6px 5px; color: lightgreen; opacity: 0; transition: opacity .3s; filter: drop-shadow(1px 1px 2px #0005); }
#v-buyzone.on { opacity: 1; }
.mdelta { position: absolute; left: 2px; bottom: 44px; font-size: 24px; animation: mdelta 2.9s ease-out forwards; }
.mdelta.add { color: #8fff6f; } .mdelta.sub { color: #fd3535; }
@keyframes mdelta { 0% { opacity: 0; transform: translateY(8px); } 8% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }

/* оружие справа: строки по слотам снизу вверх, текущее - крупнее и ярче с названием; через 3 с без смены - гаснет */
#weapon-box { position: absolute; right: 16px; bottom: 100px; display: flex; flex-direction: column; align-items: flex-end; }
#slots { display: flex; flex-direction: column; align-items: flex-end; transition: opacity .5s linear; }
#weapon-box.fade #slots { opacity: 0; transition: opacity .6s; }
.ws-row { position: relative; width: 300px; height: 60px; display: flex; align-items: center; justify-content: flex-end; }
.ws-n { position: absolute; right: 2px; top: 2px; font: 700 16px/1 ui-monospace, Consolas, monospace; color: #fff; text-shadow: 1px 1px #00000088; }
.ws-ic { height: 32px; margin-right: 24px; transform: scaleX(-1); opacity: .8; filter: brightness(.9); transition: height .2s, filter .2s, opacity .2s; }   /* стволом влево, как в CS2 */
.ws-txt { margin-right: 24px; font: 700 18px/1 var(--font); color: #fff; opacity: .8; }
.ws-row.on .ws-ic { height: 42px; opacity: 1; filter: brightness(1.5) drop-shadow(0 0 3px #ffffff80); }
.ws-row.on .ws-txt { opacity: 1; font-size: 22px; }
.ws-name { position: absolute; right: 26px; bottom: -4px; font: 500 16px/1 var(--font); color: #fff; text-shadow: 1px 1px #00000088; white-space: nowrap; opacity: 0; }
.ws-row.on .ws-name { opacity: 1; }
.ws-row.new { animation: wsin .2s linear; }
@keyframes wsin { from { transform: translateX(125%); } }
/* гранаты, снежки и бомба - строкой снизу, не гаснут; пустые места до четырёх - чёрные точки */
#nades { display: flex; flex-direction: row-reverse; align-items: flex-end; gap: 4px; height: 50px; margin-right: 22px; }
.nd { position: relative; height: 44px; display: flex; align-items: flex-end; }
.nd img { height: 34px; opacity: .8; filter: brightness(.9); transform-origin: 50% 100%; transition: transform .2s, filter .2s; }
.nd.on img { transform: scale(1.25); opacity: 1; filter: brightness(1.5) drop-shadow(0 0 3px #ffffff80); }
.nd b { position: absolute; right: -4px; bottom: -2px; font-size: 14px; color: #a0a0a0; }
.nd.on b { color: #fff; }
.nd .t { font: 700 14px/1 var(--font); color: #fff; opacity: .85; }
.nd.c4 img { filter: brightness(0) invert(88%) sepia(40%) saturate(600%) hue-rotate(5deg); animation: c4p 2s linear infinite; }
@keyframes c4p { 0%, 100% { opacity: .7; } 10% { opacity: 1; } }
.nd.pip { width: 14px; height: 14px; margin-bottom: 10px; border-radius: 50%; background: #000; opacity: .7; }

/* таблица (Tab) как в CS2: строка режима и карты, CT сверху, T снизу; слева у команды счёт крупно, справа строки по 24 px */
#scoreboard { top: 50%; transform: translate(-50%, -50%); width: min(980px, 96vw); max-height: calc(100vh - 60px); overflow-y: auto; padding: 14px 20px 10px; border-radius: 5px;
  background: rgba(0,0,0,.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#results { width: min(980px, 96vw); border-radius: 5px; background: rgba(0,0,0,.88); }
.sb-meta { display: flex; justify-content: space-between; padding: 4px 0 6px; margin-bottom: 6px; border-bottom: 1px solid #80808030; font: 600 18px/24px var(--font); font-stretch: condensed; color: #9a9a9a; }
.sb-team { display: flex; gap: 10px; margin: 4px 0 12px; }
.sb-info { width: 80px; flex: none; display: flex; flex-direction: column; align-items: center; padding-top: 20px; }
.sb-info b { font-size: 70px; line-height: 72px; text-shadow: 2px 2px 3px #00000080; }
.sb-info.CT b { color: var(--cs-ct); } .sb-info.T b { color: var(--cs-t); }
.sb-info span { font-size: 17px; color: #ddd; text-shadow: 1px 1px 1px #000; white-space: nowrap; }
.sb-info small { font-size: 15px; color: #fff; opacity: .35; }
.sb-data { flex: 1; min-width: 0; }
.sb-row { display: flex; align-items: center; gap: 1px; height: 32px; margin: 1px 0; font: 18px/32px var(--font); font-variant-numeric: tabular-nums; }
.sb-row > * { flex: none; width: 50px; height: 32px; box-sizing: border-box; text-align: center; background: #ffffff08; transition: background .25s; }
.sb-row > .pi { width: 44px; font-size: 15px; color: #888; background: #ffffff05; }
/* аватарка вплотную к нику; мёртв - череп поверх неё, бомба у своего - значок в углу */
.sb-row > .av { position: relative; width: 32px; margin-right: -1px; background: #555 center / cover no-repeat; background-size: cover, cover; }
.sb-row > .av .mask { position: absolute; }
.sb-row > .av .ic-skull { inset: 5px; color: #fff; }
.sb-row > .av .ic-c4 { right: 1px; bottom: 1px; width: 13px; height: 13px; color: rgb(255,255,95); filter: drop-shadow(1px 1px 1px #000); }
.sb-row.dead > .av { filter: grayscale(1) brightness(.45); }
.sb-row > .nm { flex: 1; min-width: 80px; padding: 0 10px; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; background: #ffffff05; }
.sb-row > .mo { width: 72px; padding-right: 6px; text-align: right; }
.sb-row > .hs { width: 60px; } .sb-row > .dm { width: 58px; }
.sb-row.CT { color: var(--cs-ct); } .sb-row.T { color: var(--cs-t); }
.sb-row.me.CT > :not(.av) { background: rgba(0,166,255,.16); } .sb-row.me.T > :not(.av) { background: rgba(255,238,0,.13); }
.sb-row.dead { color: #999; } .sb-row.dead > :not(.av) { background: transparent; }
.sb-row .ic-star { width: 14px; height: 14px; margin-right: 3px; vertical-align: -1px; }
.sb-labels { height: 22px; font-size: 14px; line-height: 22px; color: #bbb; } .sb-labels > * { height: 22px; background: transparent !important; }
@media (max-width: 760px) { .sb-info { width: 54px; } .sb-info b { font-size: 44px; line-height: 48px; } .sb-row { font-size: 13px; } .sb-row > .pi, .sb-row > .dm, .sb-row > .hs { display: none; } .sb-row > * { width: 34px; } .sb-row > .mo { width: 56px; } }

/* закупка как в CS2: полоса с деньгами и временем, пять столбцов (снаряжение 18%, пистолеты 18%, средний класс, винтовки,
   гранаты), карточки 76 px: номер слева сверху, название справа, силуэт по центру, цена справа снизу */
#buy.scrim { background: rgba(0,0,0,.8); display: block; padding: 0; }
.bm { position: absolute; left: 50%; top: 110px; transform: translateX(calc(-50% - 60px)); width: min(1080px, 92vw); display: flex; flex-direction: column; gap: 4px; color: #fff; }
.bm-info { display: flex; align-items: center; gap: 28px; padding: 6px 12px; background: rgba(0,0,0,.75); font: 700 20px/30px var(--font); font-variant-numeric: tabular-nums; }
#buy-time { font-weight: 500; color: rgba(255,255,255,.55); }
#buy-note { margin-left: auto; font: 500 14px/20px var(--font); color: #f0c870; }
.bm-body { display: flex; padding: 14px 8px 18px; background: rgba(0,0,0,.75); }
.bm-col { flex: 18 1 0; min-width: 0; padding: 0 8px; transition: filter .1s, opacity .1s; }
.bm-col.two { flex: 32 1 0; } .bm-col:nth-child(4) { flex: 22 1 0; }
.bm-col.dim { filter: brightness(.35); } .bm-col.sel { filter: brightness(1.2); }
.bm-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; cursor: pointer; }
.bm-head .k { font: 18px/1 ui-monospace, Consolas, monospace; opacity: .5; }
.bm-head span:last-child { flex: 1; text-align: center; font: 500 22px/1 var(--font); font-stretch: condensed; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-col.dim .bm-head .k { opacity: 0; }
.bm-cards { display: flex; flex-direction: column; gap: 8px; }
.bm-col.two .bm-cards { display: grid; grid-template-columns: 1fr 1fr; }
button.bm-card { display: block; width: 100%; height: 76px; padding: 0; border-radius: 5px; border: 1px solid transparent; color: #fff; text-align: left;
  background: radial-gradient(circle at 50% 50%, rgba(141,141,141,.2), rgba(85,85,85,.2)); transition: filter .2s; }
button.bm-card::after { display: none; }
button.bm-card:hover:not(:disabled) { filter: brightness(2.2); transition: none; }
.bm-card .k { position: absolute; left: 6px; top: 3px; font: 16px/1 ui-monospace, Consolas, monospace; opacity: .4; }
.bm-col.sel .bm-card .k { opacity: 1; filter: brightness(2); }
.bm-card .n { position: absolute; right: 7px; top: 4px; max-width: 75%; font: 500 13px/16px var(--font); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-card img { position: absolute; left: 50%; top: 50%; height: 40%; max-width: 80%; transform: translate(-50%, -42%); object-fit: contain; }
.bm-card em { position: absolute; left: 0; right: 0; top: 30px; text-align: center; font: 700 13px/16px var(--font); font-style: normal; opacity: .9; }
.bm-card .p { position: absolute; right: 7px; bottom: 4px; font-size: 14px; line-height: 16px; }
.bm-card.own { border-color: #fff; }
.bm-card.poor .p { color: #808080; }
button.bm-card.off, button.bm-card:disabled { background: rgba(43,43,43,.9); color: #808080; }
.bm-card.off img, .bm-card:disabled img { opacity: .3; }
.bm-card.own:disabled { color: #fff; background: radial-gradient(circle at 50% 50%, rgba(141,141,141,.2), rgba(85,85,85,.2)); }
.bm-card.own:disabled img { opacity: 1; }
.bm-card.bought { animation: bought .5s ease-in-out; }
@keyframes bought { from { filter: brightness(2); } }
.bm-nav { display: flex; align-items: center; gap: 16px; padding: 10px 4px; border-top: 1px solid rgba(255,255,255,.05); }
.bm-keys { flex: 1; font: 500 13px/18px var(--font); color: rgba(255,255,255,.45); }
button.bm-btn { height: 40px; padding: 0 20px; border-radius: 4px; background: rgba(255,255,255,.12); color: #fff; font: 700 20px/1 var(--font); font-stretch: condensed; text-transform: uppercase; }
@media (max-width: 900px) { .bm { top: 60px; } .bm-body { flex-wrap: wrap; row-gap: 14px; } .bm-col, .bm-col.two, .bm-col:nth-child(4) { flex: 1 1 45%; } button.bm-card { height: 62px; } }
#buy .skins-ad { top: auto; bottom: 24px; transform: none; } #buy .skins-ad:hover { transform: scale(1.04); }
@media (max-width: 1300px) { .bm { transform: translateX(-50%); } }

/* ---- Меню как в CS2 (client/js/menu.js). По интерфейсу CS2 (panorama: csgostyles, mainmenu, mainmenu_play, popups_shared):
   фон пустой тёмный, панели - матовое «стекло» с топографической сеткой, единственный акцент - голубой
   #82D8FF (активный раздел), кнопки без заливки с подписью Stratum2 заглавными, зелёная «GO» - тёмное стекло с неоном.
   Картинки - tools/mapkit/cs2menu.mjs -> icons/maps ---- */
#menu-bg { position: fixed; inset: 0; z-index: 0; background: linear-gradient(to top left, #14202b, #0f141a 60%, #0c0f13); }   /* пустой тёмный фон (без карты - просьба игроков) */
#menu-bg.hidden { display: none; }
#app { --font: Stratum2, Roboto, "Segoe UI", system-ui, sans-serif; position: relative; z-index: 1; max-width: none; margin: 0; padding: 0; min-height: 100vh;
  font-family: var(--font); color: #ccc; }
#app .garland { margin: 0; position: absolute; left: 0; right: 0; top: 0; z-index: 6; }
/* полоса разделов сверху: 64 px, матовая, логотип слева, вкладки по центру, ник справа */
#app > .top { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; margin: 0; padding: 0 20px;
  background: rgba(255,255,255,.03); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255,255,255,.05); }
#app > .top::before { content: ""; position: absolute; inset: 0; background: url(icons/maps/tex_linemap.webp) center / auto; opacity: .05; pointer-events: none; }
#app .logo { font: 700 26px/1 var(--font); letter-spacing: 1px; text-transform: uppercase; color: #fff; }
#app .logo span { color: #82d8ff; }
.nav-center { display: flex; align-items: center; height: 64px; }
.nav-tab { padding: 0 18px; font: 400 26px/64px var(--font); font-stretch: condensed; letter-spacing: 1px; text-transform: uppercase; color: #ccc; transform: translateY(2px); transition: color .15s; user-select: none; }
.nav-tab.play { width: 128px; padding: 0; text-align: center; font-size: 34px; }
.nav-tab.on { color: #82d8ff; }
.nav-sep { width: 1px; height: 40%; background: rgba(255,255,255,.3); }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 14px; }
#nav-nick { font: 500 18px/1 var(--font); color: #fff; }
#app .status { background: transparent; color: #aaa; font: 500 14px/1 var(--font); text-transform: uppercase; letter-spacing: .5px; padding: 4px 0; }
#app .status.bad { color: #db4437; }
#app .screen { padding: 28px 32px 40px; }
#app h2, #app h3 { font-family: var(--font); }
#app .muted { color: #999; }
/* кнопки как PopupButton CS2: без заливки, заглавные, радиус 3; главная - зелёная (#0F9D58), при наведении ярче */
#app button { height: 40px; padding: 0 16px; border-radius: 3px; background: transparent; color: #fff; font: 500 19px/1 var(--font); font-stretch: condensed;
  text-transform: uppercase; letter-spacing: .5px; box-shadow: none; }
#app button::after { background: #fff; }
#app button:hover:not(:disabled)::after { opacity: .05; }
#app button.primary { background: #0f9d58; color: #fff; }
#app button.primary:hover:not(:disabled) { filter: brightness(1.4); box-shadow: none; }
#app button:disabled { background: transparent; color: #828282; }
#app button.primary:disabled { background: #2a3a30; color: #8a9a90; }
#app input:not([type=checkbox]) { min-height: 0; height: 40px; padding: 6px 12px; border-radius: 2px; border: 1px solid #4b4b4b; background: rgba(0,0,0,.25); color: #ddd; font: 400 18px/1 var(--font); }
#app input:not([type=checkbox]):focus { border: 1px solid #fff; padding: 6px 12px; }
#app input::placeholder { color: #6b6b6b; }
#app .check { margin: 0; color: #ccc; font: 400 16px/1 var(--font); }
#app .check input { accent-color: #3281ac; }
/* панели-страницы: тёмное стекло с сеткой, без радиусов */
#app .card { position: relative; background: rgba(0,0,0,.72); border-radius: 0; padding: 0; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
#app .card::after { content: ""; position: absolute; inset: 0; background: url(icons/maps/tex_linemap.webp) center / auto; opacity: .04; pointer-events: none; }
#app .card > * { position: relative; z-index: 1; }
.cs-page { max-width: 1500px; margin: 0 auto; }
.cs-tabs { position: relative; display: flex; align-items: center; justify-content: center; height: 48px; padding: 0 16px; background: rgba(0,0,0,.25); }
.cs-tabs-center { display: flex; align-items: center; }
#app .cs-tab, .cs-tab { height: auto; margin: 0 6px; padding: 5px 8px 4px; border-radius: 3px; border: 1px solid transparent; font: 500 16px/1 var(--font); font-stretch: normal;
  text-transform: uppercase; color: #fff; background: transparent; }
#app .cs-tab.on, .cs-tab.on { background: #82d7ff1a; color: #82d8ff; }
#app .cs-tab:disabled { color: #fff; opacity: .3; }
.cs-title { position: absolute; left: 20px; max-width: 30%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 700 20px/1 var(--font);
  text-transform: uppercase; color: #979797; }
/* вход - окно как всплывающее окно CS2 */
#app .cs-popup { max-width: 512px; margin: 12vh auto 0; gap: 0; background: #2c2c2c; border: 1px solid #414141; box-shadow: 1px 1px 6px rgba(0,0,0,.31); }
#app .cs-popup::after { display: none; }
#app .cs-popup-title { margin: 0; padding: 16px 28px; background: #00000040; font: 700 28px/1.2 var(--font); text-transform: uppercase; color: #979797; }
.cs-popup-body { display: flex; flex-direction: column; gap: 16px; padding: 22px 28px 26px; }
.cs-popup-body button { align-self: flex-end; min-width: 140px; }
/* список лобби */
.cs-create { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.cs-create input { flex: 1; max-width: 360px; }
#app .lobby-table { margin: 0; }
#app .lobby-table th { padding: 12px 20px 8px; font: 500 15px/1 var(--font); text-transform: uppercase; color: #8a8a8a; }
#app .lobby-table td { padding: 8px 20px; border-top: 1px solid rgba(255,255,255,.06); font: 400 18px/1.3 var(--font); color: #ccc; }
#app .lobby-table tbody tr:hover td { background: rgba(255,255,255,.04); }
#app .lobby-table td:first-child { color: #fff; }
#app .lobby-table td button { background: linear-gradient(to left, #3281ac, #1b6085); box-shadow: 1px 1px 6px rgba(0,0,0,.31); }
#app .lobby-table td button:hover:not(:disabled) { filter: brightness(1.2); }
#lobby-empty { padding: 28px; font: 400 18px/1 var(--font); }
/* комната - меню «Играть»: слева лидер лобби, в центре карты, справа команды, снизу полоса со стартом */
.cs-play-body { display: grid; grid-template-columns: 240px 1fr 320px; min-height: 60vh; border-top: 1px solid rgba(255,255,255,.11); }
.cs-side { padding: 24px 16px; }
.cs-side-title { margin-bottom: 8px; font: 300 18px/1 var(--font); color: rgba(212,212,212,.671); }
.cs-leader { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.cs-leader .av { flex: none; width: 48px; height: 48px; border-radius: 3px; background: #555 center / cover no-repeat; background-size: cover, cover; }
.cs-leader span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 400 20px/1.2 var(--font); font-stretch: condensed; letter-spacing: 1px; color: #fff; }
#host-note { font: 400 15px/1.35 var(--font); }
.cs-maps { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 16px; padding: 20px; background: rgba(0,0,0,.15); }
#app button.cs-map { position: relative; width: 196px; height: auto; aspect-ratio: 1 / 1.17; padding: 0; border: 0; border-radius: 0; overflow: hidden; background: #111;
  box-shadow: rgba(0,0,0,.15) 0 0 6px; transition: box-shadow .25s, filter .25s, opacity .25s; }
#app button.cs-map::after { display: none; }
.cs-map .shot { position: absolute; inset: 0; background: center / cover no-repeat; transition: transform .25s; }
.cs-map:hover .shot { transform: scale(1.02); }
.cs-map.on .shot { transform: scale(1.2); }
.cs-map .dim { position: absolute; inset: 0; background: linear-gradient(#00000059, #000000b2); }
.cs-map .emb { position: absolute; left: 50%; top: 40%; width: 56%; transform: translate(-50%, -50%); filter: drop-shadow(0 0 10px #000); }
.cs-map .tick { position: absolute; right: 8px; top: 8px; width: 22px; height: 22px; border: 2px solid rgba(255,255,255,.3); border-radius: 2px; }
.cs-map.on .tick { border-color: #fff; background: url(icons/maps/ui_checkbox.svg) center / 80% no-repeat; }
.cs-map .nm { position: absolute; left: 5%; right: 5%; bottom: 10px; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font: 400 24px/1.1 var(--font); font-stretch: condensed; text-transform: none; letter-spacing: 0; color: #ccc; }
.cs-map.on .nm { color: #fff; }
.cs-map.on::before { content: ""; position: absolute; inset: 0; z-index: 2; box-shadow: inset 0 0 0 4px rgba(255,255,255,.85); pointer-events: none; }
.cs-maps.locked .cs-map { cursor: default; }
.cs-maps.locked .cs-map:not(.on) { opacity: .5; filter: brightness(.45); }
/* команды - как список друзей CS2 справа: тёмное стекло, заголовки секций, строки с портретами */
#app .teams { display: flex; flex-direction: column; gap: 0; margin: 0; background: rgba(0,0,0,.45); border-left: 1px solid rgba(255,255,255,.06); }
#app .team { min-height: 0; padding: 0; border-radius: 0; background: transparent; border-bottom: 1px solid rgba(255,255,255,.05); }
#app .team h3 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 16px; height: 52px; font: 700 19px/1 var(--font); font-stretch: condensed;
  letter-spacing: 2px; text-transform: uppercase; color: var(--tc); }
#app .team-CT { --tc: #b5d4ee; } #app .team-T { --tc: #ead18a; } #app .team-SPEC { --tc: #ccc; }
#app .team h3 span { font-weight: 400; letter-spacing: 0; color: #888; }
#app .team ul { margin: 0; padding: 0 0 4px; }
#app .team li { display: flex; align-items: center; gap: 10px; height: 46px; margin: 0; padding: 0 16px; border-radius: 0; background: transparent; color: #ddd; font: 400 18px/1 var(--font); }
#app .team li > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#app .team li .av { flex: none; width: 34px; height: 34px; border-radius: 3px; background: #555 center / cover no-repeat; background-size: cover, cover; }
#app .team-SPEC li .av { filter: grayscale(1); }
#app .team li.me { background: rgba(130,216,255,.1); color: #fff; }
#app .team li .crown { margin-left: 4px; color: #ffd700; }
#app .team button { align-self: stretch; margin: 0 12px 12px; height: 34px; font-size: 16px; color: var(--tc); border: 1px solid rgba(255,255,255,.15); box-shadow: none; }
/* полоса снизу 96 px, справа «GO»: тёмно-зелёное стекло, рамка и неоновая подпись, по краям зелёное свечение */
.cs-actions { display: flex; align-items: center; gap: 16px; height: 96px; padding: 0 20px 0 24px; background: rgba(20,20,20,.4); border-top: 1px solid rgba(255,255,255,.1); }
#room-hint { flex: 1; font: 400 18px/1.3 var(--font); }
#app button.cs-go { position: relative; min-width: 300px; height: 72px; padding: 0 24px; border-radius: 0; overflow: visible; border: 1px solid rgba(9,219,9,.336);
  background: rgba(9,49,9,.651) url(icons/maps/tex_linemap.webp) 20% 60% / auto; color: rgb(85,228,20); font: 700 30px/1 var(--font); letter-spacing: 4px;
  box-shadow: 0 0 16px 0 #00000041; transition: box-shadow .25s, filter .25s; }
#app button.cs-go::before, #app button.cs-go::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; opacity: 1; background: rgba(255,255,255,.075);
  box-shadow: 0 0 64px 5px rgba(6,141,6,.767); transition: box-shadow .25s; }
#app button.cs-go::before { left: -1px; }
#app button.cs-go::after { inset: 0 -1px 0 auto; }
#app button.cs-go:hover:not(:disabled) { filter: brightness(1.15); }
#app button.cs-go:hover:not(:disabled)::before, #app button.cs-go:hover:not(:disabled)::after { box-shadow: 0 0 124px 5px rgba(4,179,4,.637); }
#app button.cs-go:disabled { filter: grayscale(1); opacity: .5; }
#app button.cs-go:disabled::before, #app button.cs-go:disabled::after { box-shadow: none; }
@media (max-width: 1100px) {
  .cs-play-body { grid-template-columns: 1fr; }
  .cs-side { padding: 16px; }
  #app button.cs-map { width: calc(50% - 8px); }
  .nav-tab { font-size: 20px; padding: 0 10px; } .nav-tab.play { width: 90px; font-size: 26px; }
  #app .screen { padding: 16px 12px 28px; }
}
@media (max-width: 640px) { .nav-center { display: none; } #app > .top { grid-template-columns: 1fr auto; } .cs-create { flex-wrap: wrap; } #app button.cs-go { min-width: 0; flex: 1; } }
#app .settings[hidden] { display: none; }   /* списки режима и карты остаются для логики (menu.js), видны вкладки и плитки */
/* подписи «Выбор режима» и «Выбор карты» (просьба игроков: тем, кто помнит старое меню, сразу понятно) */
.cs-label { margin-right: 10px; font: 400 16px/1 var(--font); text-transform: uppercase; color: #8a8a8a; }
.cs-label.big { margin: 0; padding: 16px 20px 0; font-size: 18px; color: #979797; }
.cs-maps-wrap { background: rgba(0,0,0,.15); }
.cs-maps-wrap .cs-maps { background: transparent; }

/* снег за меню (menuwinter.js): над пустым фоном #menu-bg, под самим меню */
#menu-snow { z-index: 1; }
#app { z-index: 2; }

/* полоса со стартом прилипает к низу экрана: «Начать матч» видно сразу, даже если карты и команды не влезли */
#app .card > .cs-actions { position: sticky; bottom: 0; z-index: 3; background: rgba(14,16,19,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
/* кнопка «СКИНЫ» в полосе справа, рядом со стартом: тот же баннер из 2008 года, только по высоте полосы */
#app .cs-actions .skins-ad { position: relative; inset: auto; transform: none; flex: none; width: 210px; height: 72px; padding: 4px 8px; gap: 2px; justify-content: center;
  border: 3px dashed #ff00d4; border-radius: 0; background: #000; overflow: visible; letter-spacing: 0; text-transform: none; font-stretch: normal; }
#app .cs-actions .skins-ad::after { display: none; }
#app .cs-actions .skins-ad:hover { transform: scale(1.04); }
#app .cs-actions .skins-ad .gift { display: none; }
#app .cs-actions .skins-ad .t { font-size: 30px; }
#app .cs-actions .skins-ad .w { font-size: 11px; }
#app .cs-actions .skins-ad .x { top: -10px; left: -10px; font-size: 12px; }
@media (max-width: 760px) { .cs-actions { flex-wrap: wrap; height: auto; padding: 10px 12px; gap: 10px; } #room-hint { flex-basis: 100%; order: -1; font-size: 15px; }
  #app .cs-actions .skins-ad { width: 150px; height: 56px; } #app .cs-actions .skins-ad .t { font-size: 22px; } #app .cs-actions .skins-ad .w { display: none; } }

/* ---- Окна в игре как в CS2: пауза (Esc) с настройками, скины, оружие в бою насмерть, галерея граффити.
   По всплывающим окнам и настройкам CS2 (panorama: popups_shared, settings): серое окно #2c2c2c с рамкой, полоса
   заголовка, строки настроек «подпись слева - ползунок справа», кнопки без заливки, заглавные, Stratum2 ---- */
.cs2win, #spray-gallery { --cs-acc: #82d8ff; font-family: var(--font); color: #ccc; }
.cs2win.scrim { background: rgba(0,0,0,.62); }
.cs2win .dialog { max-width: 620px; padding: 0 28px 24px; border-radius: 0; background: #2c2c2c; border: 1px solid #414141; box-shadow: 1px 1px 6px rgba(0,0,0,.31), 0 12px 40px #000a; }
.cs2win .dialog.wide { max-width: 760px; }
.cs2win .dialog > h2, #skins .dialog > .row:first-child { margin: 0 -28px 8px; padding: 16px 28px; background: #00000040; font: 700 28px/1.2 var(--font); text-transform: uppercase; color: #979797; }
#skins .dialog > .row:first-child h2 { margin: 0; font: inherit; color: inherit; }
.cs2win button, #spray-gallery button { height: 40px; min-height: 0; padding: 0 16px; border-radius: 3px; background: transparent; color: #fff; font: 500 18px/1 var(--font); font-stretch: condensed;
  text-transform: uppercase; letter-spacing: .5px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.cs2win button::after, #spray-gallery button::after { background: #fff; }
.cs2win button:hover:not(:disabled)::after, #spray-gallery button:hover:not(:disabled)::after { opacity: .06; }
.cs2win button.primary { background: #0f9d58; color: #fff; box-shadow: none; }
.cs2win button.primary:hover:not(:disabled) { filter: brightness(1.3); box-shadow: none; }
/* заголовки групп как в настройках CS2: заглавные, серые, линия снизу */
.cs2win .section-label { margin: 22px 0 6px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.12); font: 700 18px/1 var(--font); letter-spacing: 1px; text-transform: uppercase; color: #979797; }
.cs2win .lo-sub { margin: 10px 0 6px; font: 400 15px/1 var(--font); text-transform: uppercase; color: #8a8a8a; }
/* выбор из нескольких - как вкладки CS2: выбранное голубое на прозрачно-голубом */
.cs2win .seg { gap: 4px; }
.cs2win .seg button, .cs2win .seg button:first-child, .cs2win .seg button:last-child { border-radius: 3px; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.cs2win .seg button.on { background: #82d7ff1a; color: var(--cs-acc); box-shadow: inset 0 0 0 1px #82d8ff66; }
.cs2win .lo-seg button { border-radius: 3px !important; min-height: 34px; height: 34px; font-size: 16px; }
/* строки настроек: подпись слева, ползунок или список справа, значение в конце */
.cs2win .slider { grid-template-columns: 1fr minmax(150px, 250px) 52px; gap: 0 14px; min-height: 44px; margin: 0; padding: 4px 10px;
  border-bottom: 1px solid rgba(255,255,255,.05); font: 400 17px/1.2 var(--font); color: #ccc; }
.cs2win .slider:nth-of-type(odd) { background: rgba(255,255,255,.025); }
.cs2win .slider input[type=range] { grid-column: 2; grid-row: 1; accent-color: var(--cs-acc); }
.cs2win .slider output { grid-column: 3; grid-row: 1; text-align: right; color: #fff; }
.cs2win .slider select { grid-column: 2 / 4; grid-row: 1; }
.cs2win select { min-height: 0; height: 34px; padding: 4px 10px; border-radius: 2px; border: 1px solid #4b4b4b; background: #1c1c1c; color: #ddd; font: 400 16px/1 var(--font); }
.cs2win select:focus { border: 1px solid #fff; padding: 4px 10px; }
.cs2win select option { background: #1c1c1c; }
.cs2win .check { min-height: 38px; margin: 0; padding: 4px 10px; border-bottom: 1px solid rgba(255,255,255,.05); font: 400 17px/1.2 var(--font); color: #ccc; }
.cs2win .check input { accent-color: var(--cs-acc); }
.cs2win .hint { font: 400 14px/1.4 var(--font); color: #8a8a8a; }
.cs2win .dialog-actions { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.cs2win .ch-preview, .cs2win .spray-preview { border-radius: 2px; }
.cs2win .spray-preview { background-color: #1c1c1c; border-color: #4b4b4b; }
.cs2win #ch-reset { margin-top: 10px; }
body.touch-ui .cs2win .dialog { padding: 0 16px 16px; border-radius: 0; }
body.touch-ui .cs2win .dialog > h2, body.touch-ui #skins .dialog > .row:first-child { margin: 0 -16px 8px; padding: 12px 16px; font-size: 22px; }
body.touch-ui #pause.cs2win .dialog-actions { background: #2c2c2c; border-radius: 0; }
/* «Продолжить» справа снизу - как зелёная «GO» в меню: тёмно-зелёное стекло, неоновая подпись, свечение по краям */
.cs2win .resume-big, .cs2win .resume-big.primary { height: 88px; padding: 0 56px; border-radius: 0; overflow: visible; border: 1px solid rgba(9,219,9,.336);
  background: rgba(9,49,9,.85) url(icons/maps/tex_linemap.webp) 20% 60% / auto; color: rgb(85,228,20); font: 700 36px/1 var(--font); letter-spacing: 4px;
  box-shadow: 0 0 16px 0 #00000041, 0 0 64px 4px rgba(6,141,6,.55); animation: none; }
.cs2win .resume-big::after { display: none; }
.cs2win .resume-big:hover, .cs2win .resume-big.primary:hover:not(:disabled) { transform: none; filter: brightness(1.15); box-shadow: 0 0 16px 0 #00000041, 0 0 110px 6px rgba(4,179,4,.6); }
@media (max-width: 1100px) { .cs2win .resume-big, .cs2win .resume-big.primary { height: 64px; padding: 0 32px; font-size: 26px; } }
/* скины: вкладки оружия как вкладки CS2, карточки как предметы инвентаря CS2 (тёмная плитка, полоса редкости снизу) */
/* вкладки - плитки как карточки закупки (.bm-card): серый градиент, белый силуэт оружия, название сверху справа;
   выбран скин - полоса его редкости снизу, открытая вкладка - белая рамка, как своё оружие в закупке */
.cs2win .skins-tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; margin: 10px 0; }
.cs2win .skins-tabs.sub { margin-top: -4px; padding-top: 8px; border-top: 1px solid #ffffff1a; }
.cs2win .skins-tabs.hidden { display: none; }
.cs2win button.sk-tab { position: relative; display: block; width: 100%; height: 56px; min-height: 0; padding: 0; border-radius: 5px; border: 1px solid transparent;
  background: radial-gradient(circle at 50% 50%, rgba(141,141,141,.2), rgba(85,85,85,.2)); color: #fff; box-shadow: none; text-transform: none; letter-spacing: 0; transition: filter .2s; }
.cs2win button.sk-tab::after { display: none; }
.cs2win button.sk-tab:hover { filter: brightness(2.2); transition: none; }
.cs2win button.sk-tab.on { border-color: #fff; background: radial-gradient(circle at 50% 50%, rgba(170,170,170,.3), rgba(100,100,100,.3)); }
.cs2win button.sk-tab.has { box-shadow: inset 0 -3px 0 var(--rar); }
.sk-tab .n { position: absolute; right: 6px; top: 3px; max-width: 92%; font: 500 12px/15px var(--font); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-tab img { position: absolute; left: 50%; top: 50%; height: 42%; max-width: 82%; transform: translate(-50%, -30%); object-fit: contain; }
body.touch-ui .cs2win .skins-tabs { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 4px; }
body.touch-ui .cs2win button.sk-tab { height: 46px; }
.cs2win .skins-grid { gap: 8px; }
.cs2win .skin-card { height: auto; padding: 6px 6px 8px; border-radius: 0; box-shadow: none; text-transform: none; letter-spacing: 0; font-stretch: normal;
  background: linear-gradient(to bottom, #3a3d42, #25272b 70%, color-mix(in srgb, var(--rar) 22%, #25272b)); border: 1px solid #ffffff14; border-bottom: 3px solid var(--rar); }
.cs2win .skin-card::after { display: none; }
.cs2win .skin-card:hover { filter: brightness(1.15); }
.cs2win .skin-card.on { background: linear-gradient(to bottom, #3e4a52, #26313a 70%, color-mix(in srgb, var(--rar) 26%, #26313a)); border-color: var(--cs-acc); box-shadow: inset 0 0 0 1px var(--cs-acc); }
.cs2win .skin-card span { font: 400 14px/1.2 var(--font); color: #ddd; }
.cs2win .skin-card .skin-none { color: #8a8a8a; font: 400 14px/1 var(--font); }
/* галерея граффити - такое же серое окно CS2 */
#spray-gallery { border-radius: 0; background: #2c2c2c; border: 1px solid #414141; color: #ccc; }
#spray-gallery h2 { font: 700 26px/1.2 var(--font); text-transform: uppercase; color: #979797; }
#spray-gallery .sg-close { min-width: 40px; border-radius: 3px; }
#spray-gallery .sg-item { border-radius: 2px; background: #1c1c1c; border-color: #4b4b4b; }
#spray-gallery .sg-item:hover, #spray-gallery .sg-item:focus-visible, #spray-gallery .sg-item.on { border-color: var(--cs-acc); background: #82d7ff14; }
/* настройка управления (controls.js): строки «действие - клавиша - запасная», как «Клавиатура и мышь» в настройках CS2;
   жёлтое - браузер может перехватить, красное - одна клавиша на два действия или сочетание, которое закроет вкладку */
#binds-dlg { width: min(780px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0 28px 20px; border-radius: 0; background: #2c2c2c;
  border: 1px solid #414141; box-shadow: 1px 1px 6px rgba(0,0,0,.31), 0 12px 40px #000a; flex-direction: column; overflow: hidden; }
#binds-dlg[open] { display: flex; pointer-events: auto; outline: none; }   /* окно внутри #hud, а там клики выключены */
#binds-dlg::backdrop { background: rgba(0,0,0,.62); }
#binds-dlg > h2 { margin: 0 -28px 8px; padding: 16px 28px; background: #00000040; font: 700 28px/1.2 var(--font); text-transform: uppercase; color: #979797; }
#binds-dlg .bd-warn { flex: none; max-height: 140px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; margin: 4px 0 8px; }
#binds-dlg .bd-warn.hidden { display: none; }
#binds-dlg .bd-line, #binds-dlg .bd-msg { padding: 6px 10px; border-left: 3px solid #5a5a5a; background: rgba(255,255,255,.04); font: 400 15px/1.35 var(--font); color: #bbb; }
#binds-dlg .bd-line.warn, #binds-dlg .bd-msg.warn { border-color: #e6b422; color: #f0d58a; }
#binds-dlg .bd-line.danger, #binds-dlg .bd-line.clash, #binds-dlg .bd-msg.danger { border-color: #e0463c; color: #ff9d96; }
#binds-dlg .bd-head, #binds-dlg .bd-row { display: grid; grid-template-columns: 1fr 170px 170px; gap: 8px; align-items: center; }
#binds-dlg .bd-head { flex: none; padding: 4px 16px 4px 10px; font: 400 14px/1 var(--font); text-transform: uppercase; color: #8a8a8a; }
#binds-dlg .bd-list { flex: 1; min-height: 0; overflow-y: auto; padding-right: 6px; scrollbar-color: #555 transparent; }
#binds-dlg .bd-list .section-label:first-child { margin-top: 4px; }
#binds-dlg .bd-row { min-height: 40px; padding: 2px 10px; border-bottom: 1px solid rgba(255,255,255,.05); font: 400 17px/1.2 var(--font); color: #ccc; }
#binds-dlg .bd-row:nth-child(even) { background: rgba(255,255,255,.025); }
#binds-dlg .bd-key { width: 100%; height: 32px; padding: 0 8px; background: #1c1c1c; box-shadow: inset 0 0 0 1px #4b4b4b; color: #fff;
  font: 400 16px/1 var(--font); text-transform: none; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#binds-dlg .bd-key.empty { color: #666; }
#binds-dlg .bd-key.warn { box-shadow: inset 0 0 0 1px #e6b422; color: #f0d58a; }
#binds-dlg .bd-key.danger, #binds-dlg .bd-key.clash { box-shadow: inset 0 0 0 1px #e0463c; color: #ff9d96; }
#binds-dlg .bd-key.cap { box-shadow: inset 0 0 0 1px var(--cs-acc); background: #82d7ff14; color: var(--cs-acc); }
#binds-dlg .bd-bar { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; min-height: 40px; }
#binds-dlg .bd-bar .bd-msg { flex: 1 1 320px; }
#binds-dlg .bd-btns { display: flex; flex-wrap: wrap; gap: 6px; }
#binds-dlg .dialog-actions { flex: none; margin-top: 12px; }
#pause #btn-controls { grid-column: 2 / 4; grid-row: 1; }
#fn-panel .fn-key kbd { padding: 0 5px; white-space: nowrap; }

/* ---- Остальные плашки игры как в CS2: тёмное стекло с размытием, углы 3 px, Stratum2, без «пилюль» Material 3 ---- */
button { border-radius: 3px; }
.card, .dialog, .team, #maploading .ml-card { border-radius: 0; }
#banner, #deathmsg, #use-hint, #netlost, #preload, #killcam, #mod-vote, #mod-alert, #mod-gift, #replay, #ios-hint, #local-near,
#scoreboard, #results, .chip { border-radius: 3px; }
#banner { background: rgba(20,22,26,.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font: 700 24px/30px var(--font); text-transform: uppercase; letter-spacing: 1px;
  text-shadow: 1px 1px 2px #000; box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
#banner.bad { background: #630606d2; color: #fff; }
#deathmsg { background: #630606d2; color: #fff; font: 400 18px/1.3 var(--font); text-shadow: 1px 1px 1px #000; }
#deathmsg b { font: 700 32px/1.2 var(--font); text-transform: uppercase; }
#use-hint { background: rgba(20,22,26,.78); color: #fff; font: 500 18px/1.3 var(--font); box-shadow: inset 0 0 0 1px #82d8ff55; }
#progress-label { font: 500 18px/1.2 var(--font); text-transform: uppercase; }
#progress .bar { height: 8px; border-radius: 0; } #progress .bar i { background: #82d8ff; }
#netlost { background: #630606e6; color: #fff; font: 500 18px/1.2 var(--font); }
#killcam { background: rgba(20,22,26,.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 4px 16px #0008; }
.kc-top b { font: 700 26px/1.2 var(--font); } .kc-top b.T { color: var(--cs-t); } .kc-top b.CT { color: var(--cs-ct); }
.kc-hp { border-radius: 2px; } .kc-grid div { border-radius: 0; background: rgba(255,255,255,.04); }
.kc-how { color: #82d8ff; text-transform: uppercase; letter-spacing: .5px; }
#preload { background: rgba(20,22,26,.85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font: 400 13px/1.3 var(--font); }
#preload .pl-head { text-transform: uppercase; letter-spacing: .5px; color: #979797; }
#preload .pl-bar, #maploading .ml-bar, #maploading .ml-bar i { border-radius: 0; }
#maploading { background: linear-gradient(to top left, #14202b, #0f141a 60%, #0c0f13); }
#maploading .ml-card { background: rgba(0,0,0,.6); border: 1px solid #414141; }
#maploading .ml-name { font: 700 34px/1.2 var(--font); text-transform: uppercase; color: #fff; letter-spacing: 1px; }
#maploading .ml-sub, #maploading .ml-pct { color: #979797; }
#mod-vote { background: rgba(20,22,26,.85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#mod-vote .mv-row, #mod-vote .mv-row kbd, #mod-vote .mv-bar { border-radius: 2px; }
#mod-alert { background: #630606d2; color: #fff; font: 700 22px/28px var(--font); text-transform: uppercase; }
#mod-gift { background: rgba(20,22,26,.85); color: #fff; box-shadow: inset 0 0 0 1px #82d8ff55, 0 3px 12px #0008; }
#mod-chip { background: rgba(20,22,26,.8); color: #82d8ff; }
#replay { background: rgba(20,22,26,.9); }
#replay button { border-radius: 3px; }
#ios-hint, #local-near { background: rgba(20,22,26,.85); color: #ddd; box-shadow: 0 0 0 1px #414141; }
#rotate { background: #0f141a; font: 500 22px/1.3 var(--font); text-transform: uppercase; color: #ccc; }
#title { font-family: var(--font); }
.money-chip { border-radius: 2px; }
.seg button, .seg button:first-child, .seg button:last-child { border-radius: 3px; }
.lo-seg button { border-radius: 3px !important; }
body.touch-ui .dialog { border-radius: 0; }

/* ---- Чат как в CS2 (panorama hudchat): слева снизу, ширина 553 px, Stratum2 жирный 18 px с тенью. Открыт (Y/U) -
   чёрная история высотой 327 px, под ней строка ввода 48 px: кому пишешь, поле и «Отправить». Закрыт - последние
   строки без подложки, гаснут сами (client/js/hud.js chat) ---- */
#chat, #chat-hist, #chat-box { position: absolute; left: 18px; width: min(553px, calc(100vw - 36px)); font-family: var(--font); }
#chat { bottom: 144px; display: flex; flex-direction: column; gap: 2px; padding: 0 10px; pointer-events: none; }
#chat div, #chat-hist div { font: 700 18px/1.3 var(--font); color: #fff; overflow-wrap: anywhere; text-shadow: 1px 1px 2px #000, 0 0 4px #000; }
#chat div { animation: chat-fade 8s linear forwards; }
@keyframes chat-fade { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }
#chat .T, #chat-hist .T { color: var(--cs-t); } #chat .CT, #chat-hist .CT { color: var(--cs-ct); } #chat .SPEC, #chat-hist .SPEC { color: #b0b0b0; }
#chat .tm, #chat-hist .tm { color: #fff; }   /* метка [ВСЕМ] / [СП] / [Т] - как остальная строка */
#chat-hist { bottom: 144px; height: min(327px, 40vh); overflow-y: auto; display: flex; flex-direction: column; justify-content: flex-start; gap: 2px; padding: 10px;
  background: rgba(0,0,0,.75); pointer-events: auto; scrollbar-width: thin; scrollbar-color: #555 transparent; }
#chat-hist > div:first-child { margin-top: auto; }   /* строки прижаты к низу, как в CS2 */
#chat-box { bottom: 88px; height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 0 0 15px; background: rgba(0,0,0,.75); pointer-events: auto; }
#chat-label { flex: none; font: 700 18px/1 var(--font); text-transform: uppercase; color: #a0a0a0; }
#chat-box input { flex: 1; min-width: 0; height: 36px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #fff; font: 300 20px/1 var(--font); }
#chat-box input:focus { border: 0; padding: 0; outline: none; }
#chat-box input::placeholder { color: darkgrey; }
#chat-send { flex: none; width: auto; height: 48px; min-height: 0; padding: 0 14px; border-radius: 0; background: transparent; box-shadow: none;
  font: 700 20px/1 var(--font); text-transform: uppercase; color: #a0a0a0; transition: color .2s; }
#chat-send::after { display: none; }
#chat-send:hover { color: #fff; }
body.touch-ui #chat, body.touch-ui #chat-hist { bottom: 120px; } body.touch-ui #chat-box { bottom: 64px; }

/* ---- Модификаторы раунда как в CS2. Барабан - как лента открытия кейса: серое окно с полосой заголовка, тёмная
   лента, жёлтая черта по центру; голосование - такое же окно. Размеры строк (72 px, ROW в modifiers.js) не менять ---- */
#mod-reel { width: 460px; padding: 0 0 12px; border-radius: 0; text-align: center; color: #ccc; font-family: var(--font);
  background: #2c2c2c; border: 1px solid #414141; box-shadow: 1px 1px 6px rgba(0,0,0,.31), 0 12px 40px #000a; }
#mod-reel .mr-title { margin: 0 0 12px; padding: 12px 18px; background: #00000040; font: 700 20px/1.2 var(--font);
  letter-spacing: 1px; text-transform: uppercase; color: #979797; text-shadow: none; }
#mod-reel .mr-lights { display: none; }
#mod-reel .mr-win { margin: 0 12px; border-radius: 0; background: #1b1b1b; box-shadow: inset 0 0 0 1px #414141; }
#mod-reel .mr-win::before { background: linear-gradient(#1b1b1b, #1b1b1b00); }
#mod-reel .mr-win::after { background: linear-gradient(#1b1b1b00, #1b1b1b); }
/* выбранная строка: подсветка и жёлтая черта с уголками по краям, как маркер в ленте кейса */
#mod-reel .mr-band { left: 0; right: 0; border: 0; border-radius: 0; background: #ffffff0a;
  box-shadow: inset 0 2px 0 #e4ae39, inset 0 -2px 0 #e4ae39; }
#mod-reel .mr-band::before { left: 0; border-left-color: #e4ae39; }
#mod-reel .mr-band::after { right: 0; border-right-color: #e4ae39; }
#mod-reel .mr-item { gap: 14px; padding: 0 28px; }
#mod-reel .mr-item i { border-radius: 2px; box-shadow: 0 0 0 1px #0008; }
#mod-reel .mr-item b { font: 700 20px/24px var(--font); text-transform: uppercase; letter-spacing: .5px; color: #fff; }
#mod-reel .mr-foot { margin: 10px 12px 0; font: 500 16px/20px var(--font); color: #82d8ff; text-transform: uppercase; letter-spacing: .5px; }
#mod-reel.win .mr-band { animation: cs-pulse .35s ease-in-out 4; }
@keyframes cs-pulse { 50% { background: #e4ae3926; } }
#mod-reel.multi { width: calc(var(--reels) * 170px + 24px); }
#mod-reel.multi .mr-col + .mr-col { border-left: 1px solid #414141; }
#mod-reel.multi .mr-item b { font-size: 14px; line-height: 17px; }

#mod-vote { padding: 0 0 12px; border-radius: 0; background: rgba(44,44,44,.92); border: 1px solid #414141; border-left: 3px solid #414141;
  box-shadow: 1px 1px 6px rgba(0,0,0,.31); color: #ccc; font-family: var(--font); }
#mod-vote .mv-title { margin: 0 0 8px; padding: 8px 14px; background: #00000040; font: 700 14px/1.2 var(--font); letter-spacing: 1px; color: #979797; }
#mod-vote .mv-q { margin: 0 14px 8px; font: 500 16px/20px var(--font); color: #fff; }
#mod-vote .mv-row { margin: 4px 10px 0; padding: 4px 8px; border-radius: 0; font: 500 16px/20px var(--font); text-transform: uppercase; background: rgba(255,255,255,.03); }
#mod-vote .mv-row kbd { border-radius: 2px; background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); font: 700 14px/18px var(--font); }
#mod-vote .mv-row.me { background: #82d7ff1a; box-shadow: inset 0 0 0 1px #82d8ff66; color: #82d8ff; }
#mod-vote .mv-bar { margin: 10px 10px 0; height: 3px; border-radius: 0; background: #1b1b1b; }
#mod-vote .mv-bar i { background: #82d8ff; }
#mod-vote .mv-foot { margin: 6px 14px 0; font-size: 13px; color: #979797; }
#mod-vote.done.ok { border-left-color: #8fd18a; } #mod-vote.done.no { border-left-color: #f08a7e; }

/* плеер записей: за кем смотрим (ник в цвете команды) */
#replay .rp-watch { margin-bottom: 6px; font: 700 18px/1.2 var(--font); text-transform: uppercase; letter-spacing: .5px; color: #fff; }
#replay .rp-watch b.T { color: var(--team-T); } #replay .rp-watch b.CT { color: var(--team-CT); }
#replay .rp-watch small { font: 400 13px/1 var(--font); text-transform: none; letter-spacing: 0; color: #979797; }

/* сообщение под прицелом (hud.js crossMsg): как подсказки CS2 - тёмное стекло, Stratum2 */
#cross-msg { position: absolute; left: 50%; top: calc(50% + 34px); transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 6px 16px;
  border-radius: 3px; background: rgba(20,22,26,.82); color: #fff; font: 500 18px/1.3 var(--font); text-align: center; pointer-events: none;
  box-shadow: inset 0 0 0 1px #82d8ff55; text-shadow: 1px 1px 1px #000; }
#game-root.kc #cross-msg, #game-root.drone #cross-msg { display: none !important; }

/* номер версии игры под «онлайн» (menu.js bindNet) */
.status-col { display: flex; flex-direction: column; align-items: flex-end; }
#game-ver { font: 400 11px/1.2 var(--font); color: #7a7a7a; letter-spacing: .3px; white-space: nowrap; }

/* прятки (client/js/hns.js): плашка сверху и чёрный экран ведущего */
#hns-bar { position: absolute; left: 50%; top: 86px; transform: translateX(-50%); padding: 6px 18px; border-radius: 3px; pointer-events: none;
  background: rgba(20,22,26,.85); color: #fff; font: 700 18px/1.3 var(--font); text-transform: uppercase; letter-spacing: .5px; white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); text-shadow: 1px 1px 1px #000; }
#hns-bar.seeker { box-shadow: inset 0 -3px 0 var(--team-CT); }
#hns-bar.hider { box-shadow: inset 0 -3px 0 var(--team-T); }
#hns-bar.ph-end { background: #630606d2; }
#hns-blind { position: absolute; inset: 0; background: #000; color: #ccc; display: grid; place-items: center; pointer-events: none;
  font: 700 28px/1.3 var(--font); text-transform: uppercase; letter-spacing: 1px; }
#game-root.kc #hns-bar { display: none !important; }

/* прятки: в комнате лобби нет выбора стороны (client/js/menu.js renderRoom) */
#screen-room .teams.hns .team-CT { display: none; }

/* Конец матча закладки бомбы как в CS2 (client/js/eom.js; Panorama endofmatch*.vcss, player_stats_card.vcss). Размеры - в пикселях
   CS2 при высоте экрана 1080: .eom-ref масштабируется под окно. Цвета полосы: победа #0F9D58, поражение - серая, ничья - чёрная */
#hud.eom-on > :not(#eom):not(#scoreboard):not(#chat) { visibility: hidden !important; }
#hud.eom-on #scoreboard { z-index: 4; }
#eom { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; --pos: #0F9D58; }
#eom .eom-ref { position: absolute; left: 0; top: 0; height: 1080px; transform-origin: 0 0; opacity: 0;
  background: linear-gradient(to top, #000000a0, #00000000 50%); }
#eom.reveal .eom-ref { opacity: 1; }
#eom .eom-fade { position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity .5s; }
#eom .eom-fade.on { opacity: 1; }
#eom .eom-layout { position: absolute; left: 0; right: 0; top: 48px; height: 300px; background: linear-gradient(#000000e0, #00000000); }
/* эмблема команды за игроками: огромная, еле видна (в CS2 opacity .05, сложение) */
#eom .eom-logo { position: absolute; left: 50%; top: 100px; width: 540px; height: 540px; margin-left: -270px; color: #fff; opacity: .05; mix-blend-mode: screen; }
/* полоса вкладок: «РЕЗУЛЬТАТ МАТЧА» слева, время до нового матча справа, под ней голубая полоска времени */
#eom .eom-nav { position: absolute; left: 0; right: 0; top: 0; height: 48px; background: #000000e1; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
#eom .eom-tab { position: absolute; left: 100px; bottom: 0; height: 48px; padding: 0 2px; font: 500 20px/48px var(--font); color: #fff; letter-spacing: .5px;
  box-shadow: inset 0 -1px 0 #fff; animation: eom-in 1s ease-in-out both; }
#eom .eom-time { position: absolute; right: 10%; bottom: 0; height: 48px; display: flex; align-items: center; gap: 20px; }
#eom .eom-time span { font: 400 18px/1 var(--font); color: #bdbdbd; }
#eom .eom-time b { font: 700 32px/1 var(--font); color: #fff; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
#eom .eom-prog { position: absolute; left: 0; right: 0; top: 48px; height: 2px; }
#eom .eom-prog i { display: block; height: 2px; width: 0; background: rgb(0, 225, 255); }
@keyframes eom-in { from { opacity: 0; } }

/* полоса результата: сверху счёт (40 px), под ней «ПОБЕДА» (90 px), 1340 px по центру, края растворяются */
#eom .eom-win { position: absolute; left: 0; right: 0; top: 96px; display: flex; justify-content: center; opacity: 0; }
#eom .eom-win.show { opacity: 1; }
#eom .ew-data { width: 1340px; display: flex; flex-direction: column; gap: 10px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent); mask: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent); }
#eom .eom-win.show .ew-data { animation: ew-main .25s ease-out both; }
#eom .ew-score, #eom .ew-result { position: relative; background: #000; overflow: hidden; }
#eom .ew-score { height: 40px; display: flex; align-items: center; justify-content: center; }
#eom .ew-sc { display: flex; gap: 10px; font: 400 32px/1 var(--font); color: #fff; font-variant-numeric: tabular-nums; transform: translateY(-2px); }
#eom .ew-sc b { font-weight: 700; }
#eom .ew-result { height: 90px; display: flex; align-items: center; justify-content: center; }
#eom .ew-line { position: absolute; left: 0; right: 0; top: 0; height: 1.25px; background: var(--ew-c, #fff); z-index: 3; }
#eom .ew-line.b { top: auto; bottom: 0; }
#eom .ew-mid { position: relative; display: flex; align-items: center; z-index: 2; }
#eom .ew-text { position: relative; padding: 0 100px; font: 700 64px/90px var(--font); letter-spacing: 8px; color: var(--ew-t, #fff); text-shadow: 0 0 8px #dddddd; opacity: 0; }
#eom .eom-win.show .ew-text { animation: ew-text 1s ease-out both; }
#eom .ew-br { position: absolute; height: 8px; width: 8px; opacity: 0; filter: var(--ew-f, none); transform: var(--s, none); }
#eom .ew-br.tr { right: 0; top: 14px; }
#eom .ew-br.br { right: 0; bottom: 14px; --s: scaleY(-1); }
#eom .ew-br.tl { left: 0; top: 14px; --s: scaleX(-1); }
#eom .ew-br.bl { left: 0; bottom: 14px; --s: scaleY(-1) scaleX(-1); }
#eom .eom-win.show .ew-br { animation: ew-br .5s ease-out .5s both; }
#eom .ew-ar { height: 16px; width: 15px; opacity: 0; filter: var(--ew-f, none); }
#eom .eom-win.show .ew-ar { animation: ew-ar .5s ease-out 1s both; }
#eom .eom-win.show .ew-ar.r { animation-name: ew-ar-r; }
#eom .ew-white { position: absolute; inset: 0; background: #fff; z-index: 4; }
#eom .eom-win.show .ew-white { animation: ew-fade .5s ease-out both; }
/* «точки» за надписью (в CS2 - видео linemap): точечная сетка цвета полосы, проявляется из размытия */
#eom .ew-dots { position: absolute; inset: 0; opacity: 0; background: radial-gradient(circle, var(--ew-c, #fff) 1px, transparent 1.6px) 0 0 / 9px 9px;
  -webkit-mask: radial-gradient(ellipse 60% 120% at 50% 50%, #0008, transparent); mask: radial-gradient(ellipse 60% 120% at 50% 50%, #0008, transparent); }
#eom .eom-win.show .ew-dots { animation: ew-bg .75s ease-in-out both; }
#eom.res-won { --ew-c: #6fe3a6; --ew-t: #c4ffe0; --ew-f: brightness(0) invert(78%) sepia(40%) saturate(500%) hue-rotate(90deg); }
#eom.res-won .ew-score, #eom.res-won .ew-result { background: var(--pos); }
#eom.res-lost { --ew-c: #ff9d93; --ew-t: #ffc8c2; --ew-f: brightness(0) invert(70%) sepia(60%) saturate(700%) hue-rotate(320deg); }
#eom.res-lost .ew-score, #eom.res-lost .ew-result { background: grey; }
@keyframes ew-main { from { transform: scaleX(1.8); } }
@keyframes ew-fade { from { opacity: 1; } to { opacity: 0; } }
@keyframes ew-text { from { opacity: 0; transform: scale(1.2); filter: brightness(10); } to { opacity: 1; transform: none; filter: brightness(1.3); } }
@keyframes ew-br { from { opacity: 0; transform: translateX(100px) var(--s, scale(1)); } to { opacity: 1; transform: var(--s, none); } }
@keyframes ew-ar { from { opacity: 0; transform: scaleX(-1); } to { opacity: 1; transform: translateX(-80px) scaleX(-1); } }
@keyframes ew-ar-r { from { opacity: 0; transform: none; } to { opacity: 1; transform: translateX(80px); } }
@keyframes ew-bg { from { opacity: 0; transform: scale(2); filter: blur(4px); } 75% { filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* карточки игроков: 230 px по ширине, внизу в 20 px от края, «влетают» по одной (slam 0.3 с) */
#eom .eom-cards { position: absolute; left: 0; right: 0; bottom: 20px; height: 460px; perspective: 1000px; }
#eom .eom-card { position: absolute; bottom: 0; width: 230px; height: 460px; margin-left: -115px; padding: 7px; box-sizing: border-box; visibility: hidden; opacity: 0;
  --tc: var(--cs-t); transform-origin: 100% 100%; }
#eom .eom-card.CT { --tc: var(--cs-ct); }
#eom .eom-card.reveal { visibility: visible; opacity: 1; animation: ec-slam .3s ease-in both; }
@keyframes ec-slam { 0% { transform: rotateX(-40deg) rotateY(10deg) rotateZ(-7deg) translate3d(0, 40px, 400px); } 98% { transform: none; filter: brightness(2); } 100% { transform: none; } }
#eom .ec-inset { position: absolute; left: 7px; right: 7px; bottom: 7px; height: 68%; border-radius: 10px; overflow: hidden; box-shadow: 2px 2px 15px #00000088;
  background: url(icons/hud/eom_camo.webp) center / 800px auto; }
#eom .ec-inset::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--tc); border-radius: 10px; pointer-events: none; }
#eom .eom-card.me .ec-inset::after { border-color: #fff; }
/* лента со статистикой: слева сверху, торчит над карточкой; серая топография, окрашенная в цвет команды */
#eom .ec-band { position: absolute; left: 4%; top: 95px; width: 28%; height: 50%; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 18px; box-sizing: border-box;
  background: url(icons/hud/eom_band.webp) center / 100% 100%, var(--tc); background-blend-mode: multiply;
  -webkit-mask: url(icons/hud/eom_banner.svg) center / 100% 100% no-repeat; mask: url(icons/hud/eom_banner.svg) center / 100% 100% no-repeat; }
#eom .ec-st { display: flex; flex-direction: column; align-items: center; overflow: hidden; }
#eom .ec-st b { font: 700 20px/1.1 var(--font); font-stretch: condensed; color: #fff; text-shadow: 0 1px 2px #0008; white-space: nowrap; }
#eom .ec-st b.big { font-size: 30px; }
#eom .ec-st b.mid { font-size: 14px; letter-spacing: -.5px; }
#eom .ec-st i { font: 400 11px/12px var(--font); font-style: normal; color: #fff; opacity: .85; text-align: center; white-space: nowrap; }
#eom .ec-av { position: absolute; left: 50%; top: 20px; width: 110px; height: 110px; margin-left: -30px; border-radius: 50%; border: 1px solid #505050;
  background-size: cover, cover; background-position: center; }
#eom .ec-low { position: absolute; left: 10px; right: 10px; bottom: 0; height: 35%; display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff; overflow: hidden; }
#eom .ec-name { max-width: 100%; font: 700 26px/1.2 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#eom .ec-div { display: block; width: 100%; height: 1px; background: #ffffff10; }
#eom .ec-acc { display: flex; flex-direction: column; align-items: center; max-width: 100%; }
#eom .ec-acc b { margin-top: 14px; font: italic 500 16px/1.1 var(--font); }
#eom .ec-acc span { margin-top: 5px; font: 400 15px/1.1 var(--font); font-stretch: condensed; color: #ddd; }
/* текст карточки выезжает справа со вспышкой (sliding-panel), лучшие СУ/Р и % в голову - жёлтым */
#eom .sl { opacity: 0; transform: translateX(100%); }
#eom .eom-card.slide .sl { animation: ec-slide .5s ease-in-out forwards; }
#eom .eom-card.slide .sl.best { animation-name: ec-best; }
@keyframes ec-slide { 0% { opacity: 0; transform: translateX(100%); filter: brightness(0); } 50% { opacity: 1; transform: none; filter: brightness(4); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes ec-best { 0% { opacity: 0; transform: translateX(100%); filter: brightness(0); } 50% { opacity: 1; transform: none; filter: brightness(4); color: #fff; }
  51% { color: yellow; text-shadow: 0 0 10px #fdffb3; } 100% { opacity: 1; transform: none; filter: none; color: yellow; text-shadow: 0 0 6px yellow; } }
#eom .eom-hint { position: absolute; left: 0; right: 0; bottom: 2px; text-align: center; font: 400 16px/1 var(--font); color: gray; }

/* Конец раунда как в CS2 (hud.js roundWin; Panorama hudwinpanel.vcss): полоса 400x80 с краями 4 px цвета команды на полупрозрачном
   фоне команды, раскрывается по ширине за 0.25 с из белой вспышки; проиграла твоя команда - красная. Ниже MVP раунда 640x90 */
#winpanel { position: absolute; left: 50%; top: 17vh; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 16px; pointer-events: none;
  --wc: var(--cs-ct); --wbg: rgba(9, 40, 61, .85); }
#winpanel.T { --wc: var(--cs-t); --wbg: rgba(66, 46, 8, .85); }
#winpanel.lost { --wt: #DB4437; --wbg2: rgba(32, 2, 2, .88); }
#winpanel .wp-res { position: relative; width: 400px; height: 80px; box-sizing: border-box; border-left: 4px solid var(--wt, var(--wc)); border-right: 4px solid var(--wt, var(--wc));
  border-radius: 3px; background: var(--wbg2, var(--wbg)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; transform: scaleX(0); opacity: 0; transition: transform .25s ease-in, opacity .25s ease-in; }
#winpanel.show .wp-res { transform: none; opacity: 1; }
#winpanel .wp-res b { max-width: 340px; font: 700 32px/40px var(--font); letter-spacing: 3px; text-transform: uppercase; white-space: nowrap; color: var(--wt, var(--wc));
  text-shadow: 0 0 8px #353535bb; transform: scale(1.5); transition: transform .25s ease-in; }
#winpanel.show .wp-res b { transform: scale(1); }
#winpanel .wp-res small { font: 400 13px/16px var(--font); color: #fff; text-shadow: 0 0 8px #141414c7; opacity: 0; transition: opacity .2s ease-in .15s; }
#winpanel.show .wp-res small { opacity: 1; }
/* двойные стрелки по краям: прилетают на место и гаснут из яркой вспышки */
#winpanel .wp-ar { position: absolute; top: 50%; height: 16px; margin-top: -8px; transition: transform .25s ease-in .25s, filter .25s ease-in .25s;
  filter: brightness(0) invert(1) brightness(10); }
#winpanel .wp-ar.l { left: 12px; transform: translateX(25px) scaleX(-1); }
#winpanel .wp-ar.r { right: 12px; transform: translateX(-25px); }
#winpanel.show .wp-ar.l { transform: scaleX(-1); }
#winpanel.show .wp-ar.r { transform: none; }
#winpanel.show .wp-ar { filter: var(--wf, brightness(0) invert(85%) sepia(25%) saturate(500%) hue-rotate(170deg)); }
#winpanel.T.show .wp-ar { --wf: brightness(0) invert(85%) sepia(45%) saturate(500%) hue-rotate(5deg); }
#winpanel.lost.show .wp-ar { --wf: brightness(0) invert(40%) sepia(80%) saturate(2000%) hue-rotate(345deg); }
#winpanel .wp-white { position: absolute; inset: 0; background: #fff; opacity: 1; transition: opacity .15s ease-in .1s; }
#winpanel.show .wp-white { opacity: 0; }
/* MVP раунда: портрет 72 px, за что - чёрным на полоске цвета команды, ник крупно цветом команды; края растворяются */
#winpanel .wp-mvp { position: relative; width: 640px; height: 90px; border-radius: 3px; background: var(--wbg); display: flex; align-items: center; justify-content: center; gap: 8px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  transform: scaleX(0); transition: transform .25s ease-in-out .2s; }
#winpanel.show .wp-mvp { transform: none; }
#winpanel .wp-mvp .wp-white { transition-delay: .4s; }
#winpanel .wp-av { width: 72px; height: 72px; flex: none; background-size: cover, cover; background-position: center; background-color: #565656; }
#winpanel .wp-who { display: flex; flex-direction: column; align-items: flex-start; max-width: 460px; }
#winpanel .wp-who span { padding: 0 6px; font: 500 16px/21px var(--font); color: #000; background: var(--wc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; box-sizing: border-box; }
#winpanel .wp-who em { margin-left: 10px; font: 700 20px/1 var(--font); font-style: normal; color: #fff; }
#winpanel .wp-who em .mask { width: 18px; height: 18px; margin-right: 4px; vertical-align: -2px; }
#winpanel .wp-who b { max-width: 330px; font: 700 28px/38px var(--font); color: var(--wc); text-shadow: 0 2px 4px #141414dc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; filter: brightness(1.5); }
body.touch-ui #winpanel { top: 12vh; transform: translateX(-50%) scale(.7); transform-origin: 50% 0; }

/* ---- Лента обновлений как новости CS2 (client/js/news.js): вкладка «Обновления» справа от «Играть», окно со списком
   версий, новые сверху; у свежей версии голубая полоса слева и плашка «Новое», точка на вкладке - есть непрочитанное ---- */
.nav-tab.news { position: relative; cursor: pointer; }
.nav-tab.news:hover, .nav-tab.news:focus-visible { color: #fff; outline: none; }
.nav-tab.news.fresh::after { content: ""; position: absolute; top: 18px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: #82d8ff; box-shadow: 0 0 6px #82d8ff; }
#news-dlg { width: min(720px, calc(100vw - 32px)); max-height: min(760px, calc(100vh - 32px)); padding: 0; border-radius: 0; background: #2c2c2c; border: 1px solid #414141;
  box-shadow: 1px 1px 6px rgba(0,0,0,.31), 0 12px 40px #000a; color: #ccc; flex-direction: column; }
#news-dlg[open] { display: flex; }
#news-dlg::backdrop { background: rgba(0,0,0,.62); }
#news-dlg .nw-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 28px; background: #00000040; }
#news-dlg .nw-head h2 { margin: 0; padding: 16px 0; font: 700 28px/1.2 var(--font); text-transform: uppercase; color: #979797; }
#news-dlg .nw-close { width: 40px; padding: 0; font-size: 20px; color: #979797; }
#news-dlg .nw-close:hover { color: #fff; }
#news-dlg .nw-list { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 28px 24px; scrollbar-color: #555 transparent; }
#news-dlg .nw-item { margin-bottom: 12px; padding: 14px 18px 12px; background: rgba(255,255,255,.035); border-left: 3px solid #4b4b4b; }
#news-dlg .nw-item.latest { border-left-color: #82d8ff; background: #82d7ff0d; }
#news-dlg .nw-item header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
#news-dlg .nw-ver { font: 700 24px/1 var(--font); color: #fff; letter-spacing: .5px; }
#news-dlg .nw-item.latest .nw-ver { color: #82d8ff; }
#news-dlg .nw-date { font: 400 15px/1 var(--font); color: #8a8a8a; text-transform: uppercase; }
#news-dlg .nw-tag { margin-left: auto; padding: 3px 8px; font: 700 13px/1 var(--font); text-transform: uppercase; letter-spacing: .5px; color: #000; background: #82d8ff; }
#news-dlg ul { margin: 0; padding-left: 20px; }
#news-dlg li { margin: 4px 0; font: 400 17px/1.35 var(--font); color: #ccc; }
#news-dlg li::marker { color: #82d8ff; }
@media (max-width: 640px) { #news-dlg .nw-list { padding: 12px 14px 18px; } #news-dlg .nw-head { padding-left: 16px; } }
