/* «Залп» — оформление: лобби (мелкие поправки к каркасу дурака), кампания, гараж, партия, листы.
   Партия яркая (небо, земля, машины рисует canvas из картинок img/залп/, лист штаб/игры/залп/графика.md),
   лобби тёмное по каркасу. Из js сюда приходят только классы, data-атрибуты и числа в переменных
   (--подсказка-*, --метка-y, --метка-хп, --топливо). Цвета холста canvas читает залп-экран.js отсюда
   (--цвет-прицел, --цвет-кромка, --цвет-небо, --цвет-земля). */

/* ---------- палитра партии ---------- */

.партия-залпа {
  --залп-пульт: #0a1a33;
  --залп-плашка: rgba(6, 28, 66, 0.84);
  --залп-плашка-край: rgba(140, 190, 255, 0.3);
  --залп-синий: #2f8dff;
  --залп-красный: #ff4a3d;
  --залп-золото: #F4C54A;
  --залп-строка: 32px;
  --залп-зазор: 8px;   /* залп-005: между кнопками не меньше 8 px */
  --залп-огонь: 104px;
  --залп-ручка: 44px;
  --залп-лента: 66px;
  --залп-езда: 44px;
  font-family: Onest, system-ui, sans-serif;
}

/* ---------- лобби ---------- */

.лобби__весть {
  margin: 8px 0 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.35;
  color: var(--вт-текст, #fff);
}

.карточка-входа--кампания[data-пульс] { animation: залп-пульс 1.8s ease-in-out infinite; }

@keyframes залп-пульс {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--сб-акцент) 0%, transparent); }
  50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--сб-акцент) 28%, transparent); }
}

@media (max-height: 640px) {
  #экран-лобби { gap: 8px; }   /* между карточкой входа и ссылкой «Общий рейтинг» не меньше 8 px */
  #экран-лобби .лобби__картинка { max-height: 84px; }
  #экран-лобби .лобби__подпись { bottom: 6%; font-size: 16px; }
  #экран-лобби .карточка-профиля { min-height: 52px; padding-top: 4px; padding-bottom: 4px; }
  #экран-лобби .карточка-профиля > .аватар { --аватар: 36px; }
  #экран-лобби .лобби__входы { gap: 8px; }   /* зазор между карточками не меньше 8 px */
  #экран-лобби .карточка-входа { min-height: 48px; padding-top: 4px; padding-bottom: 4px; }
  #экран-лобби .карточка-входа__название { font-size: 17px; }
  #экран-лобби .карточка-входа__подпись { font-size: 13px; }
}

/* ---------- общие мелочи залпа ---------- */

.залп-верх {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.залп-верх__середина { text-align: center; min-width: 0; }
.залп-верх__название { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.2; }
.залп-верх__подпись { margin: 0; font-size: 13px; opacity: 0.8; }

.залп-круг {
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid var(--залп-плашка-край, rgba(140, 190, 255, 0.3));
  border-radius: 12px;
  background: var(--залп-плашка, rgba(6, 28, 66, 0.84));
  color: #e6efff;
  box-shadow: 0 4px 10px rgba(0, 20, 60, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.залп-круг svg { width: 100%; height: 100%; display: block; }

.залп-строка-выбора {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

.залп-строка-выбора b { color: var(--сб-акцент); }

.залп-качнуть { animation: залп-качнуть 0.3s ease-in-out; }

@keyframes залп-качнуть {
  0%, 100% { translate: 0 0; }
  25% { translate: -5px 0; }
  75% { translate: 5px 0; }
}

/* ---------- листы выбора, итога, правил ---------- */

/* зазоры в листах выбора не меньше 8 px и на низком окне (общий лист-ещё на высоте до 640 ставит 6) */
.лист-выбора .лист-ещё__лист { gap: 8px; }
.лист-выбора__ряд { display: flex; flex-direction: column; gap: 8px; }
.лист-выбора__метка { font-size: 14px; font-weight: 700; }
.лист-выбора__кнопки { display: grid; gap: 8px; }
.залп-уровни { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.лист-выбора__кнопки .кнопка,
.лист-выбора__низ .кнопка { min-height: 48px; min-width: 0; }
.залп-уровни .кнопка { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 8px; }
.залп-уровни .кнопка b { font-size: 16px; }
.залп-уровни .кнопка small { font-size: 11px; font-weight: 400; opacity: 0.8; line-height: 1.2; }
.лист-выбора__пояснение { margin: 0; font-size: 13px; line-height: 1.4; opacity: 0.85; }
.лист-выбора__низ { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.лист-выбора__низ .кнопка--мелкая { align-self: center; }

.итог__цифры {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.итог__цифра {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}

.итог__цифра dt { font-size: 12px; opacity: 0.75; }
.итог__цифра dd { margin: 2px 0 0; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.итог__кнопки { display: flex; gap: 8px; }
.итог__кнопки .кнопка { flex: 1 1 0; min-width: 0; min-height: 48px; padding-left: 10px; padding-right: 10px; }
.итог__ссылки { display: flex; justify-content: center; }
.итог__заголовок { font-size: 24px; }
.итог__подпись { text-align: center; }

.лист-итога[data-исход="победа"] .итог__заголовок { color: var(--сб-акцент); }
.лист-итога[data-исход="поражение"] .итог__заголовок { color: #ff8a7a; }
.лист-итога .лист-ещё__фон { background: rgba(5, 7, 8, 0.2); -webkit-backdrop-filter: none; backdrop-filter: none; }

.залп-правила { position: relative; margin: 0; padding: 0; list-style: none; min-height: 150px; }
.залп-правила__карточка { display: none; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); }
.залп-правила__карточка--видна { display: block; }
.залп-правила__карточка h3 { margin: 0 0 6px; font-size: 17px; }
.залп-правила__карточка p { margin: 0; font-size: 14px; line-height: 1.45; }
.залп-правила__счёт { text-align: center; }

.залп-рекорды { width: 100%; border-collapse: collapse; font-size: 13px; }
.залп-рекорды th, .залп-рекорды td { padding: 6px 4px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.залп-рекорды th[scope="row"] { text-align: left; }
.залп-рекорды thead th { font-size: 11px; font-weight: 400; opacity: 0.7; }

.залп-враг { display: flex; flex-direction: column; gap: 4px; }
.залп-враг__строка { margin: 0; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); font-size: 14px; }

/* ---------- кампания ---------- */

.экран.карта-залпа { gap: 8px; padding-bottom: calc(14px + var(--отступ-снизу)); }   /* воздух под «Играть» не меньше 12 px */

.карта__прокрутка {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  border-radius: 16px;
  -webkit-overflow-scrolling: touch;
  background: #0e141e;
}

.карта__дорожка {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  aspect-ratio: 780 / 1688;
  background: #0e141e url(../../img/залп/карта-фон.jpg?v=26) center / 100% 100% no-repeat;
}

.карта__узел { position: absolute; width: 0; height: 0; }

.карта__кнопка {
  position: absolute;
  left: -22px;
  top: -22px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.карта__значок { display: block; width: 100%; height: 100%; }

.карта__число {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.карта__узел[data-состояние="закрыт"] .карта__кнопка { opacity: 0.75; }
.карта__узел[data-состояние="текущий"] .карта__кнопка { animation: залп-пульс-узла 1.6s ease-in-out infinite; }
.карта__узел[data-босс="да"] .карта__кнопка { left: -26px; top: -26px; width: 52px; height: 52px; }   /* Н3: 52 вместо 60 — босс не наезжает на соседние узлы */

.карта__корона {
  position: absolute;
  left: 50%;
  top: 100%;
  translate: -50% 0;
  padding: 1px 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.65);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

@keyframes залп-пульс-узла {
  0%, 100% { scale: 1; }
  50% { scale: 1.12; }
}

.карта__весть { margin: 0; min-height: 18px; font-size: 13px; text-align: center; color: #FFE08A; }
.карта__низ { display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; }
.карта__играть { width: 100%; }

/* позиции раздвинуты: кружки 44 px (боссы 52) не ближе 8 px друг к другу на ширине окна от 320 */
.карта__узел:nth-child(1) { left: 50.0%; top: 94.0%; }
.карта__узел:nth-child(2) { left: 72.0%; top: 89.4%; }
.карта__узел:nth-child(3) { left: 87.0%; top: 84.7%; }
.карта__узел:nth-child(4) { left: 57.8%; top: 80.1%; }
.карта__узел:nth-child(5) { left: 38.0%; top: 75.8%; }
.карта__узел:nth-child(6) { left: 23.0%; top: 70.8%; }
.карта__узел:nth-child(7) { left: 38.0%; top: 66.2%; }
.карта__узел:nth-child(8) { left: 59.7%; top: 61.6%; }
.карта__узел:nth-child(9) { left: 80.0%; top: 56.9%; }
.карта__узел:nth-child(10) { left: 66.2%; top: 50.6%; }
.карта__узел:nth-child(11) { left: 48.0%; top: 47.7%; }
.карта__узел:nth-child(12) { left: 32.0%; top: 43.1%; }
.карта__узел:nth-child(13) { left: 18.0%; top: 38.4%; }
.карта__узел:nth-child(14) { left: 44.2%; top: 33.8%; }
.карта__узел:nth-child(15) { left: 62.0%; top: 29.6%; }
.карта__узел:nth-child(16) { left: 79.0%; top: 24.0%; }
.карта__узел:nth-child(17) { left: 63.1%; top: 19.9%; }
.карта__узел:nth-child(18) { left: 38.4%; top: 15.3%; }
.карта__узел:nth-child(19) { left: 23.4%; top: 10.6%; }
.карта__узел:nth-child(20) { left: 38.0%; top: 4.6%; }

/* ---------- гараж ---------- */

.экран.гараж-залпа { gap: 8px; padding-bottom: calc(14px + var(--отступ-снизу)); }   /* воздух под «Действие» не меньше 12 px */

.гараж__прокрутка {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.гараж__карточка {
  position: relative;
  flex: 0 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: #141b25;
  aspect-ratio: 3 / 2;
  max-height: 34vh;
  width: 100%;
  align-self: center;
}

.гараж__картинка { display: block; width: 100%; height: 100%; object-fit: cover; }
.гараж__карточка[data-открыта="нет"] .гараж__картинка { filter: grayscale(0.85) brightness(0.55); }

.гараж__стрелка { position: absolute; top: 50%; translate: 0 -50%; }
.гараж__стрелка--назад { left: 8px; }
.гараж__стрелка--вперёд { right: 8px; }

.гараж__замок {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.7);
  font-size: 12px;
  font-weight: 700;
  display: none;
}

.гараж__карточка[data-открыта="нет"] .гараж__замок { display: block; }

.гараж__имя { margin: 0; font-size: 22px; text-align: center; }
.гараж__характер { margin: 0; font-size: 14px; line-height: 1.4; text-align: center; opacity: 0.85; }

.гараж__числа { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; }
.гараж__числа > div { padding: 6px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); text-align: center; }
.гараж__числа dt { font-size: 12px; opacity: 0.75; }
.гараж__числа dd { margin: 2px 0 0; font-size: 18px; font-weight: 800; }

.гараж__оружие { width: 100%; border-collapse: collapse; font-size: 13px; }
.гараж__оружие th, .гараж__оружие td { padding: 5px 4px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.гараж__оружие th:first-child, .гараж__оружие td:first-child { text-align: left; }
.гараж__оружие thead th { font-size: 11px; font-weight: 400; opacity: 0.7; }

.гараж__весть { margin: 0; min-height: 18px; font-size: 13px; text-align: center; color: #FFE08A; }
.гараж__действие { width: 100%; min-height: 48px; flex: 0 0 auto; }
.гараж__действие[data-действие="мало"] { opacity: 0.7; }
.гараж__подсказка { margin: 0; font-size: 12px; text-align: center; opacity: 0.7; }

/* ---------- партия: сцена ---------- */

.экран.партия-залпа {
  padding: 0;
  overflow: hidden;
  background: var(--залп-пульт);
  gap: 0;
}

.залп-сцена {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  --цвет-прицел: #fff3a0;
  --цвет-кромка: #3f8a2c;
  --цвет-небо: #6cc0ff;
  --цвет-земля: #6b4a2a;
  background: var(--цвет-небо);
}

.залп-поле-место { position: absolute; inset: 0; }
.залп-поле { display: block; width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; }

.залп-табло {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: calc(6px + var(--отступ-сверху)) calc(8px + var(--отступ-справа)) 0 calc(8px + var(--отступ-слева));
  pointer-events: none;
}

.залп-табло > * { pointer-events: none; }
.залп-табло button { pointer-events: auto; }

.залп-табло__строка {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 6px;
}

.залп-табло__середина {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-shadow: 0 1px 3px rgba(0, 20, 60, 0.85);
  color: #fff;
  min-width: 0;
}

.залп-табло__середина .залп-верх__название { font-size: 15px; }
.залп-табло__раунд[data-последний="да"] { color: var(--залп-золото); }
.залп-табло__режим { font-size: 12px; opacity: 0.9; }
.залп-часы { font-size: 12px; font-variant-numeric: tabular-nums; }
.залп-часы[data-есть="нет"] { display: none; }

.залп-табло__плашки { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; }
.залп-табло__вс { font-size: 12px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(0, 20, 60, 0.85); }

.залп-игрок {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-areas: "знак имя" "знак прочность";
  align-items: center;
  column-gap: 6px;
  min-height: 44px;
  padding: 3px 8px 3px 5px;
  border: 1px solid var(--залп-плашка-край);
  border-radius: 12px;
  background: var(--залп-плашка);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.залп-игрок[data-машина="1"] { border-color: rgba(255, 130, 110, 0.45); }
.залп-игрок[data-ходит="да"] { box-shadow: 0 0 0 2px var(--залп-золото), 0 4px 10px rgba(0, 20, 60, 0.4); }
.залп-игрок__знак { grid-area: знак; width: 32px; height: 32px; object-fit: contain; }
.залп-игрок__имя { grid-area: имя; font-size: 12px; font-weight: 700; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.залп-игрок__прочность { grid-area: прочность; display: flex; align-items: center; gap: 4px; min-width: 0; }
.залп-игрок__полоса { flex: 1 1 auto; min-width: 0; width: 100%; height: 8px; border: 0; border-radius: 4px; appearance: none; -webkit-appearance: none; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.залп-игрок__полоса::-webkit-progress-bar { background: rgba(255, 255, 255, 0.2); }
.залп-игрок__полоса::-webkit-progress-value { background: #5bdc4a; border-radius: 4px; }
.залп-игрок__полоса::-moz-progress-bar { background: #5bdc4a; border-radius: 4px; }
.залп-игрок[data-слабая="да"] .залп-игрок__полоса::-webkit-progress-value { background: var(--залп-красный); }
.залп-игрок[data-слабая="да"] .залп-игрок__полоса::-moz-progress-bar { background: var(--залп-красный); }
.залп-игрок__число { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }

.залп-камера {
  position: absolute;
  right: calc(8px + var(--отступ-справа));
  bottom: 12px;   /* залп-005: до «?» в строке под сценой — 8 px */
  width: 44px;
  height: 44px;
  border: 1px solid var(--залп-плашка-край);
  border-radius: 12px;
  background: var(--залп-плашка);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.залп-метка-врага {
  position: absolute;
  top: var(--метка-y, 50%);
  translate: 0 -50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 44px;
  padding: 4px 8px;
  border-radius: 10px;
  background: var(--залп-плашка);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}

.залп-метка-врага[data-сторона="право"] { right: 4px; }
.залп-метка-врага[data-сторона="лево"] { left: 4px; }
.залп-метка-врага[data-сторона="право"]::after { content: "▶"; color: var(--залп-красный); font-size: 11px; }
.залп-метка-врага[data-сторона="лево"]::before { content: "◀"; color: var(--залп-красный); font-size: 11px; }
.залп-метка-врага__полоска { display: block; width: 36px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.залп-метка-врага__хп { display: block; height: 100%; width: var(--метка-хп, 100%); background: var(--залп-красный); }

/* Когда сверху висит плашка потери связи (≈ до 160 px от верха сцены), «Бой начинается» уходит ниже неё с зазором ≥ 8 px. */
body:has(#строка-связи.связь--нет:not(.скрыт)) .залп-плашка-хода { top: max(38%, 190px); }
.залп-плашка-хода {
  position: absolute;
  left: 50%;
  top: 38%;
  translate: -50% -50%;
  padding: 8px 18px;
  border-radius: 14px;
  background: rgba(6, 28, 66, 0.88);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  pointer-events: none;
  white-space: nowrap;
}

/* ---------- партия: строка и пульт ---------- */

.залп-строка {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: var(--залп-строка);
  padding: 2px 8px 2px 12px;
  background: linear-gradient(180deg, rgba(22, 42, 67, 0.97), rgba(8, 20, 37, 0.98));
  color: #e6efff;
  font-size: 13px;
  line-height: 1.2;
}

.залп-строка__текст { flex: 1 1 auto; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.залп-строка[data-вид="отказ"] { background: rgba(65, 20, 27, 0.96); color: #ffe0dc; }
.залп-строка[data-вид="весть"] { background: rgba(28, 35, 23, 0.96); color: var(--сб-акцент); }

.залп-справка {
  flex: 0 0 auto;
  position: relative;
  width: 44px;
  height: 44px;
  margin: -6px -4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

/* видимый кружок 28 px внутри зоны нажатия 44 px */
.залп-справка::before {
  content: '?';
  position: absolute;
  inset: 8px;
  display: grid;
  place-items: center;
  border: 1px solid var(--залп-плашка-край);
  border-radius: 50%;
}

.залп-панель {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--залп-огонь);
  grid-template-areas: "угол огонь" "сила огонь" "лента лента" "езда езда";
  gap: var(--залп-зазор);
  padding: 12px calc(8px + var(--отступ-справа)) calc(14px + var(--отступ-снизу)) calc(8px + var(--отступ-слева));   /* сверху 12: от «?» до «Огонь» 8 px; снизу 14 до края окна (нужно не меньше 12) */
  background: linear-gradient(180deg, #0f2d5c, var(--залп-пульт));
}

.залп-панель[data-можно="нет"] .залп-ручка,
.залп-панель[data-можно="нет"] .залп-езда { opacity: 0.55; }

.залп-ручка[data-ручка="угол"] { grid-area: угол; }
.залп-ручка[data-ручка="сила"] { grid-area: сила; }

.залп-ручка {
  display: grid;
  grid-template-columns: auto auto 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 4px;
  min-height: var(--залп-ручка);
  color: #e6efff;
}

.залп-ручка__подпись { display: flex; align-items: center; gap: 4px; min-width: 54px; font-size: 12px; font-weight: 700; }
.залп-ручка__значок { width: 10px; height: 10px; border-radius: 50%; background: var(--залп-золото); }
.залп-ручка[data-ручка="сила"] .залп-ручка__значок { background: var(--залп-красный); }
.залп-ручка__число { min-width: 44px; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }

.залп-кнопка {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--залп-плашка-край);
  border-radius: 12px;
  background: linear-gradient(180deg, #2a5fae, #1a3f80);
  color: #fff;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}

.залп-кнопка:active { filter: brightness(1.25); }

.залп-ползунок {
  width: 100%;
  min-width: 0;
  height: 44px;
  margin: 0;
  background: transparent;
  accent-color: var(--залп-золото);
  touch-action: pan-y;
}

.залп-огонь {
  grid-area: огонь;
  align-self: stretch;
  display: grid;
  place-items: center;
  min-height: 96px;
  padding: 0;
  border: 2px solid #ffb199;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 30%, #ff7a5c, #d92a1f 70%);
  color: #fff;
  font: inherit;
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 14px rgba(120, 10, 0, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.35);
  cursor: pointer;
  touch-action: manipulation;
}

.залп-огонь:active { transform: translateY(2px); filter: brightness(1.1); }
.залп-панель[data-можно="нет"] .залп-огонь { filter: grayscale(0.7) brightness(0.7); }
.залп-огонь--итог { background: linear-gradient(180deg, #e4fb94, var(--сб-акцент) 55%, #b9e04e); border-color: #efffc5; color: var(--сб-акцент-текст); }

.залп-лента { grid-area: лента; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; }
.залп-лента__стрелка { min-width: 44px; width: 44px; min-height: 44px; }
.залп-лента__плитки {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 2px 0;
}
.залп-лента__плитки::-webkit-scrollbar { display: none; }

.залп-плитка {
  position: relative;
  flex: 0 0 62px;
  display: grid;
  grid-template-rows: 28px auto auto;
  justify-items: center;
  min-height: var(--залп-лента);
  padding: 3px 2px 2px;
  border: 1px solid var(--залп-плашка-край);
  border-radius: 12px;
  background: #153a74;
  color: #fff;
  font: inherit;
  cursor: pointer;
  scroll-snap-align: center;
}

.залп-плитка[data-после-разделителя="да"] { margin-left: 8px; }
.залп-плитка[data-после-разделителя="да"]::before { content: ""; position: absolute; left: -7px; top: 8px; bottom: 8px; width: 2px; border-radius: 1px; background: rgba(255, 255, 255, 0.3); }
.залп-плитка[data-выбрано="да"] { border-color: var(--залп-золото); box-shadow: 0 0 0 2px var(--залп-золото); background: #1d4d95; }
.залп-плитка[data-пусто="да"] { opacity: 0.45; }
.залп-плитка[data-особое="да"] { background: #5a2a86; }
.залп-плитка__знак { width: 26px; height: 26px; object-fit: contain; }
.залп-плитка__имя { font-size: 11px; font-weight: 700; line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.залп-плитка__запас { font-size: 12px; line-height: 15px; font-weight: 800; color: var(--залп-золото); }
.залп-плитка__метка { display: none; }

.залп-езда { grid-area: езда; display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; gap: 8px; align-items: center; }
.залп-езда__кнопка { min-width: 56px; min-height: var(--залп-езда); }

.залп-топливо {
  --топливо: 100%;
  position: relative;
  height: 26px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.залп-топливо__полоса { position: absolute; inset: 0 auto 0 0; width: var(--топливо); background: linear-gradient(180deg, #FFE08A, #F4C54A); }
.залп-топливо[data-пусто="да"] .залп-топливо__полоса { width: 0; }
.залп-топливо__число { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }

/* узкое окно (320): огонь рядом с ездой, ручки на всю ширину */
@media (max-width: 359px) {
  .партия-залпа { --залп-строка: 24px; --залп-огонь: 92px; --залп-зазор: 8px; --залп-лента: 48px; }   /* строка и лента ниже на 6 px: воздух под пультом 12 px съел бы сцену (нужно ≥ 55%) */
  .залп-панель { grid-template-columns: minmax(0, 1fr) var(--залп-огонь); grid-template-areas: "угол угол" "сила сила" "лента лента" "езда огонь"; }
  .залп-огонь { min-height: 44px; font-size: 16px; }
  .залп-езда { grid-template-columns: 48px minmax(0, 1fr) 48px; }
  .залп-езда__кнопка { min-width: 48px; }
  .залп-плитка { flex-basis: 56px; grid-template-rows: 20px auto auto; padding: 1px 2px 0; }
  .залп-плитка__знак { width: 20px; height: 20px; }
  .залп-плитка__запас { line-height: 13px; }
  .залп-ручка__подпись { min-width: 34px; }
  /* залп-005 съел высоту сцены (51% вместо 55%): на узком окне ужимаем строку, пояснение и поля пульта, зазоры между кнопками не трогаем */
  .залп-строка { font-size: 12px; line-height: 1; padding-top: 0; padding-bottom: 0; }   /* две строки текста = 24 px, как одна с зоной «?» */
  .залп-панель { padding-top: 10px; padding-bottom: calc(12px + var(--отступ-снизу)); }   /* воздух под кнопками не меньше 12 px */
  /* зона нажатия «?» уходит вверх, на сцену: до «угол +» и до камеры остаётся по 8 px (строка 24 px, зона «?» на 18 px выше строки) */
  .залп-справка { margin: -18px -4px -2px; }
  .залп-камера { bottom: 26px; }
}

/* низкое окно */
@media (max-height: 600px) {
  .залп-табло__режим { display: none; }   /* часы хода по сети остаются: это единственный счёт времени */
}

/* широкое окно: партия остаётся колонкой телефона посередине */
@media (min-width: 700px) {
  .экран.партия-залпа { left: 50%; right: auto; width: min(100vw, 480px); translate: -50% 0; }
}

/* ---------- подсказка (ТЗ §5) ---------- */

.подсказка {
  position: fixed;
  left: var(--подсказка-x, 12px);
  top: var(--подсказка-y, 50%);
  width: var(--подсказка-ширина, 260px);
  z-index: 60;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(12, 18, 28, 0.96);
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.подсказка[data-сторона="верх"] { translate: 0 -100%; }
/* Н7: плашка не ловит касания (под ней может оказаться «ОГОНЬ»); нажимаемой остаётся только «Понятно». */
#подсказка.подсказка { pointer-events: none; }
#подсказка.подсказка .подсказка__понятно { pointer-events: auto; }
.подсказка__текст { display: block; }
.подсказка__понятно {
  align-self: flex-end;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: rgba(12, 18, 28, 0.96);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.подсказка__стрелка {
  position: absolute;
  left: var(--подсказка-стрелка, 50%);
  width: 14px;
  height: 14px;
  margin-left: -7px;
  background: rgba(12, 18, 28, 0.96);
  rotate: 45deg;
}

.подсказка[data-сторона="низ"] .подсказка__стрелка { top: -7px; }
.подсказка[data-сторона="верх"] .подсказка__стрелка { bottom: -7px; }
.подсказка[data-сторона="центр"] .подсказка__стрелка { display: none; }

/* Общий style.css красит #подсказка как строку стола (высота 44, по центру); у «Залпа» это плавающая плашка со стрелкой. */
#подсказка.подсказка {
  flex: none;
  height: auto;
  /* Н1, Н6: низкая плашка — текст и «Понятно» в одну строку (≈ 64 px вместо ≈ 100): закрывает меньше баннера, ручек и ленты */
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 10px 8px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  color: #fff;
  border-radius: 14px;
  overflow: visible;
}

#подсказка.подсказка .подсказка__текст {
  display: block;
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: visible;
  flex: 1 1 auto;
}

#подсказка.подсказка .подсказка__понятно { flex: none; align-self: center; min-height: 44px; }


/* ---------- отделка: геометрия экранов и пульта остаётся прежней ---------- */
body.залп .экран.карта-залпа,
body.залп .экран.гараж-залпа {
  background: linear-gradient(180deg, #0c1117, #070a0e);
  color: #f4f7fc;
}
body.залп .карта__прокрутка,
body.залп .гараж__прокрутка { scrollbar-width: none; -ms-overflow-style: none; }
body.залп .карта__прокрутка::-webkit-scrollbar,
body.залп .гараж__прокрутка::-webkit-scrollbar { display: none; width: 0; }

/* Вторичные действия не наследуют цвет общей кнопки. */
body.залп .кнопка,
body.залп .лист-ещё__закрыть {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 12px rgba(0, 0, 0, 0.24);
}
body.залп .карта__играть,
body.залп .кнопка--главная,
body.залп .подсказка__понятно {
  min-height: 52px;
  border: 1px solid rgba(239, 255, 197, 0.65);
  border-radius: 16px;
  background: linear-gradient(180deg, #e4fb94, var(--сб-акцент) 55%, #b9e04e);
  color: var(--сб-акцент-текст);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -2px 0 rgba(66, 85, 18, 0.2), 0 4px 0 #52672a, 0 8px 18px rgba(0, 0, 0, 0.3);
  text-shadow: none;
}

/* Плотное синее стекло с освещённой сверху кромкой. */
body.залп .залп-круг,
body.залп .залп-кнопка,
body.залп .залп-камера,
body.залп .залп-игрок,
body.залп .залп-справка::before {
  background: linear-gradient(165deg, rgba(92, 145, 209, 0.24), transparent 48%), linear-gradient(180deg, #244b7e, #102847);
  border-color: rgba(168, 207, 255, 0.38);
  box-shadow: inset 0 1px 0 rgba(225, 240, 255, 0.32), inset 0 -3px 5px rgba(0, 9, 26, 0.35), 0 3px 0 #081a30, 0 6px 12px rgba(0, 8, 24, 0.35);
  color: #fff;
}
body.залп .залп-справка::before { border-radius: 12px; }
body.залп .залп-табло { background: linear-gradient(180deg, rgba(5, 22, 45, 0.55), transparent); }
body.залп .залп-игрок[data-ходит="да"] {
  border-color: #FFE08A;
  box-shadow: 0 0 0 2px #F4C54A, inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 5px 14px rgba(0, 12, 35, 0.4);
}
body.залп .залп-панель {
  background: linear-gradient(180deg, #244365 0, #142d4c 18%, #0a192e 100%);
  box-shadow: inset 0 1px 0 rgba(200, 224, 255, 0.5), inset 0 3px 0 rgba(4, 14, 29, 0.6), 0 -7px 22px rgba(0, 10, 25, 0.4);
}
body.залп .залп-строка { box-shadow: inset 0 1px 0 rgba(204, 226, 255, 0.18), inset 0 -1px 0 rgba(0, 0, 0, 0.3); }
body.залп .залп-ручка__значок { box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6), 0 1px 3px rgba(0, 0, 0, 0.5); }

/* Поле ввода сохраняет высоту 44 px; видимая дорожка — 8 px. */
body.залп .залп-ползунок { appearance: none; -webkit-appearance: none; }
body.залп .залп-ползунок::-webkit-slider-runnable-track {
  height: 8px; border-radius: 999px;
  background: linear-gradient(180deg, #091525, #36516b);
  box-shadow: inset 0 1px 3px #030b17, 0 1px 0 rgba(219, 236, 255, 0.25);
}
body.залп .залп-ползунок::-moz-range-track {
  height: 8px; border-radius: 999px;
  background: linear-gradient(180deg, #091525, #36516b);
  box-shadow: inset 0 1px 3px #030b17, 0 1px 0 rgba(219, 236, 255, 0.25);
}
body.залп .залп-ползунок::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 28px; height: 28px; margin-top: -10px;
  border-radius: 50%; border: 1px solid #FFE08A;
  background: radial-gradient(circle at 35% 22%, #fff8d8, #FFE08A 28%, #F4C54A 75%);
  box-shadow: inset 0 1px 1px #fff7dc, 0 3px 5px rgba(0, 0, 0, 0.45);
}
body.залп .залп-ползунок::-moz-range-thumb {
  box-sizing: border-box; width: 28px; height: 28px;
  border-radius: 50%; border: 1px solid #FFE08A;
  background: radial-gradient(circle at 35% 22%, #fff8d8, #FFE08A 28%, #F4C54A 75%);
  box-shadow: inset 0 1px 1px #fff7dc, 0 3px 5px rgba(0, 0, 0, 0.45);
}
body.залп .залп-огонь {
  border-color: #ffc7b1;
  background: linear-gradient(180deg, rgba(255, 244, 228, 0.4), transparent 25%), radial-gradient(ellipse at 45% 18%, #ff8062, #e63529 62%, #c51d22);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55), inset 0 -4px 7px rgba(106, 8, 15, 0.4), 0 4px 0 #821b23, 0 8px 16px rgba(0, 0, 0, 0.45);
  text-shadow: 0 2px 2px rgba(103, 8, 15, 0.4);
}
body.залп .залп-огонь--итог {
  border-color: #efffc5;
  background: linear-gradient(180deg, #e4fb94, var(--сб-акцент) 55%, #b9e04e);
  color: var(--сб-акцент-текст); text-shadow: none;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6), inset 0 -3px 4px rgba(61, 85, 17, 0.25), 0 4px 0 #52672a, 0 8px 16px rgba(0, 0, 0, 0.4);
}
body.залп .залп-панель[data-можно="нет"] .залп-огонь,
body.залп .залп-огонь[data-можно="нет"] { filter: saturate(0.3) brightness(0.8); }
body.залп .залп-плитка {
  background: linear-gradient(160deg, #2a4c72, #132b49 75%);
  box-shadow: inset 0 1px 0 rgba(220, 236, 255, 0.22), inset 0 -2px 3px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.3);
}
body.залп .залп-плитка[data-особое="да"] { background: linear-gradient(160deg, #674789, #30234d); }
body.залп .залп-плитка[data-выбрано="да"] {
  border-color: var(--сб-акцент);
  background: linear-gradient(160deg, #35566b, #182e43);
  box-shadow: 0 0 0 2px var(--сб-акцент), inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 12px color-mix(in srgb, var(--сб-акцент) 28%, transparent);
}
body.залп .залп-плитка[data-пусто="да"] { opacity: 0.5; }
body.залп .залп-топливо__полоса { box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(100, 75, 15, 0.15); }
body.залп .залп-топливо__число { color: #171b23; text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5); }
body.залп .карта__узел[data-состояние="текущий"] .карта__значок {
  filter: hue-rotate(40deg) saturate(0.65) brightness(1.4) drop-shadow(0 0 7px color-mix(in srgb, var(--сб-акцент) 65%, transparent));
}
body.залп .карта__узел[data-состояние="пройден"] .карта__значок { filter: drop-shadow(0 0 3px #F4C54A); }
body.залп .карта__число { text-shadow: 0 1px 2px #000, 1px 0 2px #000, -1px 0 2px #000, 0 0 5px #000; }
body.залп .карта__корона { background: rgba(12, 18, 28, 0.94); box-shadow: inset 0 0 0 1px #F4C54A, 0 2px 6px rgba(0, 0, 0, 0.4); color: #fff; }
body.залп .гараж__карточка { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 6px 18px rgba(0, 0, 0, 0.25); }
body.залп .гараж__числа > div,
body.залп .гараж__оружие,
body.залп .итог__цифра {
  border-radius: 14px; background: #1a2029;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
body.залп .гараж__оружие { border-collapse: separate; border-spacing: 0; overflow: hidden; }
body.залп .гараж__замок { background: rgba(12, 18, 28, 0.94); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
body.залп .подсказка { box-shadow: inset 0 0 0 1px #F4C54A, 0 8px 22px rgba(0, 0, 0, 0.45); }
body.залп .подсказка__стрелка { background: #0c121c; box-shadow: 1px 1px 0 #F4C54A; }
body.залп .подсказка[data-сторона="низ"] .подсказка__стрелка { box-shadow: -1px -1px 0 #F4C54A; }

/* Короткий отклик не меняет область нажатия и раскладку. */
body.залп :is(.кнопка, .лист-ещё__закрыть, .подсказка__понятно, .залп-круг, .залп-кнопка, .залп-камера, .залп-справка, .залп-огонь, .залп-плитка, .залп-игрок, .залп-строка-выбора, .карта__кнопка) {
  transition: transform 100ms ease-out, box-shadow 100ms ease-out, filter 100ms ease-out;
}
body.залп :is(.кнопка, .лист-ещё__закрыть, .подсказка__понятно, .залп-круг, .залп-кнопка, .залп-камера, .залп-справка, .залп-огонь, .залп-плитка, .залп-игрок, .залп-строка-выбора, .карта__кнопка):active {
  transform: translateY(2px); filter: brightness(0.96);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.3);
}
body.залп :is(button, .залп-ползунок):focus-visible { outline: 2px solid var(--сб-акцент); outline-offset: 2px; }
body.залп :is(.кнопка--главная, .карта__играть, .подсказка__понятно):focus-visible { outline-color: #f4ffe0; }
@media (prefers-reduced-motion: reduce) {
  body.залп *, body.залп *::before, body.залп *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Лист «С ботом»: выбор уровня читается в обоих состояниях и держится на aria-pressed (требование Games). */
#лист-бота .залп-уровни .кнопка[aria-pressed="false"] { color: var(--текст); background: var(--подложка); border: 1px solid var(--край); }
#лист-бота .залп-уровни .кнопка[aria-pressed="true"] { color: var(--сб-акцент-текст, #14210a); background: var(--сб-акцент); border-color: var(--сб-акцент); }

/* ---------- игра по сети: выбор машины, часы хода, строка связи ---------- */

/* Выбор машины (20 секунд): те же тёмные фон и цвета, что у гаража. Картинки — гаражные снимки Кодекса. */
.экран.машины-залпа {
  gap: 8px;
  padding-bottom: calc(16px + var(--отступ-снизу));   /* воздух под кнопкой «Готово» — не меньше 12 px */
}
body.залп .экран.машины-залпа {
  background: linear-gradient(180deg, #0c1117, #070a0e);
  color: #f4f7fc;
}
.машины__прокрутка {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.машины__прокрутка::-webkit-scrollbar { display: none; width: 0; }
.машины__список {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.машины__карта { margin: 0; padding: 0; min-width: 0; }
.машины__кнопка {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  min-height: 44px;
  padding: 0 0 8px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: #141b25;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 100ms ease-out, box-shadow 100ms ease-out, border-color 100ms ease-out;
}
.машины__кнопка:active { transform: translateY(2px); }
.машины__картинка {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #0c1117;
}
.машины__имя { padding: 4px 10px 0; font-size: 17px; font-weight: 800; line-height: 1.2; }
.машины__характер { padding: 0 10px; font-size: 12px; line-height: 1.3; opacity: 0.8; }
.машины__числа { padding: 2px 10px 0; font-size: 12px; font-weight: 700; color: #FFE08A; }
.машины__карта[data-выбрана="да"] .машины__кнопка {
  border-color: var(--сб-акцент);
  box-shadow: 0 0 0 2px var(--сб-акцент), 0 0 16px color-mix(in srgb, var(--сб-акцент) 30%, transparent);
}
.машины__карта[data-закрыта="да"] .машины__картинка { filter: grayscale(0.85) brightness(0.5); }
.машины__карта[data-закрыта="да"] .машины__кнопка { opacity: 0.8; }
.машины__весть {
  flex: 0 0 auto;
  margin: 0;
  min-height: 36px;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
  color: #FFE08A;
}
.машины__весть[data-вид="отказ"] { color: #ffb3a6; }
.машины__готово { flex: 0 0 auto; width: 100%; min-height: 52px; }
.машины__готово[data-готово="да"],
.машины__готово[aria-disabled="true"] { filter: saturate(0.4) brightness(0.85); cursor: default; }

/* Часы хода: число секунд по виду сервера; ≤10 с — тревожный цвет, обрыв связи — часы стоят. */
.залп-часы {
  display: inline-block;
  min-width: 44px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(5, 22, 45, 0.7);
  color: #fff;
  font-weight: 800;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(168, 207, 255, 0.4);
}
.залп-часы[data-чей="мой"] { box-shadow: inset 0 0 0 2px var(--сб-акцент); }
.залп-часы[data-мало="да"] { background: #8d1d2a; box-shadow: inset 0 0 0 2px #ff8f9c; }
.залп-часы[data-стоит="да"] { opacity: 0.55; }
.залп-часы { white-space: nowrap; }
.машины-залпа .залп-верх { grid-template-columns: 64px minmax(0, 1fr) 64px; }   /* по краям поровну: кнопка слева, часы справа — заголовок по центру */
.машины-залпа .залп-часы { font-size: 15px; min-width: 0; padding: 2px 8px; justify-self: end; }
/* На экране выбора машины плашка связи — над кнопкой «Готово», а не поверх карточки первой машины. */
body:has(#экран-машины.экран--виден) #строка-связи { top: auto; bottom: calc(var(--отступ-снизу) + 128px); }   /* выше строки вести (36) и кнопки (52) с запасом: тост «Соперник пришёл» не закрывает подсказку и «Готово» */

/* Строка связи: общая плашка «Нет связи, повторяем…» поверх экрана, не двигает раскладку.
   Ширина по тексту (иначе fixed + left:50% сжимает её вдвое и текст режется); в партии стоит ПОД табло с прочностью —
   не закрывает ни кружки сверху, ни часы, ни имена. */
#строка-связи {
  position: fixed;
  top: calc(var(--отступ-сверху) + 122px);
  left: 50%;
  translate: -50% 0;
  z-index: 60;
  width: max-content;
  max-width: calc(100vw - 24px);
  pointer-events: none;
}

/* Значки интерфейса сети — готовые файлы Кодекса из img/залп/ (1x 64 px, 2x 128 px). Тут только их постановка. */
.залп-часы::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 5px;
  vertical-align: -4px;
  background: url("../../img/залп/значок-часы.webp") center / contain no-repeat;
  background-image: image-set(url("../../img/залп/значок-часы.webp") 1x, url("../../img/залп/значок-часы@2x.webp") 2x);
}
.залп-часы[data-мало="да"]::before {
  background-image: url("../../img/залп/значок-часы-мало.webp");
  background-image: image-set(url("../../img/залп/значок-часы-мало.webp") 1x, url("../../img/залп/значок-часы-мало@2x.webp") 2x);
}
.машины-залпа .залп-часы::before { width: 18px; height: 18px; margin-right: 4px; vertical-align: -3px; }

/* Потеря связи: вместо нарисованного треугольника — значок Кодекса. */
#строка-связи.связь--тревога::before,
#строка-связи.связь--нет::before {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92) url("../../img/залп/значок-связь-нет.webp") center / 78% no-repeat;   /* светлая подложка: красный значок на красной плашке иначе тонет */
  background-image: image-set(url("../../img/залп/значок-связь-нет.webp") 1x, url("../../img/залп/значок-связь-нет@2x.webp") 2x);
  animation: none;
}
