/*
 * Набор игр Link — вид сетевого экрана (LinkKit.lobby): блок режимов в меню, имя игрока, комната с кодом,
 * ожидание соперника, таблички игроков с часами хода, реакции, потеря связи.
 *
 * Источник правды — games/_kit/lobby.css. В папку игры файл копирует _kit/sync.sh; там его не править.
 * Подключается после kit/kit.css и до своего styles.css. Все классы начинаются с «lob-»,
 * анимации — с «lob-»; цвета и тени берутся из переменных темы kit.css, поэтому оттенок игры подхватывается сам.
 */

/* ---------- Меню: блок режимов ---------- */

.lob-modes {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.lob-main {
  width: 100%;
  min-width: 0;
  padding: 0 14px;
  font-size: 22px;
}

.lob-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 10px;
  padding-bottom: 5px;
}

/* Плитка режима: вторая по важности кнопка — голубая, со значком и подписью в две строки. */
.lob-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  height: 72px;
  padding: 4px 8px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(180deg, #5cd0ff 0%, #1f9ef6 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 5px 0 #0c62b8, 0 10px 16px rgba(var(--shade-rgb), 0.36);
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 15px;
  text-align: center;
  text-shadow: 0 1px 0 rgba(8, 60, 130, 0.6);
  text-wrap: balance;
  transition: transform 0.06s ease-out, box-shadow 0.06s ease-out;
}

.lob-tile:active {
  transform: translateY(4px);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 1px 0 #0c62b8, 0 3px 6px rgba(var(--shade-rgb), 0.36);
}

.lob-tile .ico {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 1.5px 0 rgba(8, 60, 130, 0.55));
}

.lob-tile.wide {
  grid-column: span 2;
  flex-direction: row;
  gap: 8px;
  height: 54px;
  font-size: 16px;
}

/* Кнопка с именем игрока — в левом верхнем углу меню, напротив кнопки языка. */
.lob-me {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  left: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 104px);
  height: 38px;
  padding: 0 13px 0 9px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.3), 0 3px 0 rgba(var(--deep-rgb), 0.45);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.lob-me:active {
  transform: translateY(3px);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.3);
}

.lob-me .ico {
  width: 20px;
  height: 20px;
}

.lob-me span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-height: 620px) {
  /* На низком экране значок игры поднимается под самые кнопки: кнопка с именем короче, чтобы его не задеть. */
  .lob-me {
    max-width: min(calc(100% - 104px), 31vw);
  }

  .lob-modes {
    gap: 13px;
  }

  .lob-grid {
    gap: 12px 10px;
  }

  .lob-main {
    height: 58px;
    font-size: 20px;
  }

  .lob-tile {
    height: 64px;
  }
}

/* ---------- Экраны лобби: слой поверх игрового экрана ---------- */

.lob {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(12px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}

/* Пока открыт экран лобби, игрового экрана под ним не видно, а фон яркий, как в меню. */
.in-lobby .app {
  visibility: hidden;
}

body.in-lobby .sky {
  opacity: 1;
}

.lob-top {
  flex: none;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 460px;
  height: 44px;
}

.lob-body {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 320px;
  min-height: 0;
  /* шапка сверху занимает 44px — на столько же поднимаем середину */
  padding-bottom: 44px;
  text-align: center;
  animation: lob-in 0.3s cubic-bezier(0.3, 1.3, 0.5, 1) both;
}

@keyframes lob-in {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
}

/* Экран с полем ввода прижат к верху: нижнюю половину закроет клавиатура. */
.lob-body.lob-form {
  justify-content: flex-start;
  padding-top: min(9vh, 64px);
  padding-bottom: 0;
}

.lob-body .btn {
  flex: none;
}

.lob-body .btn-gold,
.lob-body .btn-blue {
  width: 100%;
  min-width: 0;
  margin-bottom: 5px;
}

.lob-h {
  margin: 0;
  font-size: min(34px, 9.2vw);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow:
    0 1.5px 0 var(--title-hi),
    0 4.5px 0 var(--frame-lip),
    0 10px 18px rgba(var(--shade-rgb), 0.5);
  text-wrap: balance;
}

.lob-h-small {
  font-size: min(27px, 7.4vw);
}

.lob-p {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 21px;
  color: var(--ink-2);
  text-wrap: balance;
}

.lob-label {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* Код комнаты: пять золотых плиток. */
.lob-code {
  display: flex;
  gap: 7px;
  margin-bottom: 6px;
  cursor: pointer;
}

.lob-code i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(54px, 14.4vw);
  height: min(62px, 16.6vw);
  border-radius: 15px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.65),
    inset 0 -4px 0 rgba(0, 0, 0, 0.14),
    0 5px 0 #b97700,
    0 12px 16px rgba(var(--shade-rgb), 0.45);
  color: #5a3100;
  font-size: min(36px, 9.6vw);
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  animation: lob-tile-in 0.45s cubic-bezier(0.3, 1.7, 0.5, 1) both;
  animation-delay: calc(var(--i) * 60ms);
}

@keyframes lob-tile-in {
  from { transform: scale(0) rotate(-14deg); }
}

/* Поле ввода — «лунка» в рамке, как игровое поле. */
.lob-input {
  width: 100%;
  height: 58px;
  margin: 5px 0 9px;
  padding: 0 16px;
  border: 0;
  border-radius: 20px;
  outline: none;
  background: var(--pit);
  box-shadow:
    inset 0 3px 8px rgba(var(--shade-rgb), 0.6),
    0 0 0 4px var(--frame),
    0 -1px 0 5px rgba(255, 255, 255, 0.22),
    0 7px 0 4px var(--frame-lip);
  color: #fff;
  caret-color: var(--c4);
  font-size: 23px;
  font-weight: 800;
  text-align: center;
}

.lob-input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.lob-input:focus,
.lob-input:focus-visible {
  outline: none;
  box-shadow:
    inset 0 3px 8px rgba(var(--shade-rgb), 0.6),
    0 0 0 4px #ffd24a,
    0 -1px 0 5px rgba(255, 255, 255, 0.3),
    0 7px 0 4px var(--frame-lip);
}

.lob-code-input {
  height: 66px;
  padding: 0 0 0 0.3em;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.lob-err {
  min-height: 22px;
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 22px;
  color: #ffd6a8;
  text-wrap: balance;
}

.lob-err:empty {
  display: none;
}

/* Ожидание: три прыгающие плитки. */
.lob-loader {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 52px;
}

.lob-loader i {
  width: 24px;
  height: 24px;
  border-radius: 30%;
  animation: lob-hop 0.95s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.14s);
}

@keyframes lob-hop {
  0%, 55%, 100% { transform: translateY(0) scale(1, 1); }
  28% { transform: translateY(-22px) scale(0.94, 1.06); }
  48% { transform: translateY(0) scale(1.12, 0.86); }
}

/* Маленькое ожидание — в комнате, над строкой «Ждём соперника…». */
.lob-loader-small {
  gap: 7px;
  height: 30px;
  margin-top: 6px;
}

.lob-loader-small i {
  width: 15px;
  height: 15px;
  animation-name: lob-hop-small;
}

@keyframes lob-hop-small {
  0%, 55%, 100% { transform: translateY(0) scale(1, 1); }
  28% { transform: translateY(-12px) scale(0.94, 1.06); }
  48% { transform: translateY(0) scale(1.12, 0.86); }
}

.lob-wait {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 22px;
  color: #fff;
}

.lob-extra {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.lob-extra:empty {
  display: none;
}

/* Значок «нет связи». */
.lob-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 26px;
  background: linear-gradient(180deg, #ff9a3d, #ff4d5e);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), 0 5px 0 #b3202f, 0 14px 20px rgba(var(--shade-rgb), 0.45);
  transform: rotate(-6deg);
}

.lob-badge .ico {
  width: 42px;
  height: 42px;
}

/* Места в комнате (когда игроков больше двух). */
.lob-seats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  width: 100%;
}

.lob-seat {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 40px;
  padding: 0 10px 0 8px;
  border-radius: 15px;
  background: var(--deep);
  font-size: 14.5px;
  font-weight: 800;
  text-align: left;
}

.lob-seat.free {
  background: none;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
  color: var(--ink-2);
  font-weight: 700;
}

.lob-seat.free .lob-dot {
  opacity: 0.3;
}

.lob-seat.off {
  opacity: 0.55;
}

.lob-dot {
  flex: none;
  width: 22px;
  height: 22px;
}

.lob-seat-name {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lob-seat small {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* Место без связи: имя гаснет, подпись «не в сети · 0:42» остаётся яркой. */
.lob-seat.off {
  opacity: 1;
}

.lob-seat.off .lob-dot,
.lob-seat.off .lob-seat-name {
  opacity: 0.5;
}

.lob-seat.off small {
  color: #ffd6a8;
}

@media (max-height: 620px) {
  .lob-body {
    gap: 10px;
  }

  .lob-body.lob-form {
    padding-top: 18px;
  }

  .lob-loader {
    height: 44px;
  }

  /* Комната на несколько мест на низком экране: без подсказки и малого ожидания — их место занимают места. */
  .lob-body.lob-many-room .lob-p,
  .lob-body.lob-many-room .lob-loader-small {
    display: none;
  }

  .lob-body.lob-many-room .lob-invite {
    height: 54px;
    font-size: 20px;
  }
}

/* ---------- Игровой экран: таблички игроков ---------- */

.lob-plates {
  flex: none;
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: var(--col, 460px);
  min-height: 50px;
  /* место под ярлык часов, который выступает над табличкой */
  margin-top: 9px;
}

.lob-plate {
  position: relative;
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 50px;
  padding: 0 9px 0 8px;
  border-radius: 18px;
  background: var(--deep);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.1), 0 3px 0 rgba(var(--shade-rgb), 0.4);
  transition: transform 0.16s cubic-bezier(0.3, 1.6, 0.5, 1), background-color 0.16s ease-out, box-shadow 0.16s ease-out;
}

/*
 * Чей ход — табличка приподнимается, получает золотой ободок и свечение. Заливка остаётся тёмной:
 * на светлой белое имя и подпись «вы» читались хуже, чем на табличке соперника.
 */
.lob-plate.turn {
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.22),
    inset 0 0 0 1px rgba(255, 210, 74, 0.35),
    0 0 0 3px #ffd24a,
    0 5px 0 3px rgba(var(--shade-rgb), 0.45),
    0 0 18px 3px rgba(255, 210, 74, 0.42);
  transform: translateY(-2px);
}

.lob-plate.away .lob-mark,
.lob-plate.away .lob-name {
  opacity: 0.5;
}

/* Значок места: цвет и фигуру задаёт игра (seats / seat в LinkKit.lobby.mount). */
.lob-mark {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
}

.lob-who {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  text-align: left;
}

.lob-name {
  overflow: hidden;
  font-size: 15px;
  font-weight: 800;
  line-height: 19px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lob-sub {
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  line-height: 14px;
  color: rgba(255, 255, 255, 0.86);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lob-plate.away .lob-sub {
  color: #ffd6a8;
}

/*
 * Часы хода — ярлык на верхнем крае таблички того, кто ходит: имя при этом не сжимается.
 * Ярлык почти целиком над табличкой (внутрь заходит на 6px) и строку имени не задевает.
 * Последние 10 секунд — красные и пульсируют.
 */
.lob-clock {
  position: absolute;
  top: -16px;
  right: 9px;
  z-index: 2;
  min-width: 46px;
  height: 22px;
  padding: 0 8px;
  border-radius: 11px;
  background: linear-gradient(180deg, #ffffff, #dfe6ff);
  box-shadow: inset 0 -2px 0 rgba(var(--shade-rgb), 0.16), 0 2px 0 rgba(var(--shade-rgb), 0.5);
  color: rgb(var(--shade-rgb));
  font-size: 14px;
  font-weight: 900;
  line-height: 22px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.lob-clock.urgent {
  background: linear-gradient(180deg, #ff7a5c, #ff3b4e);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.45), 0 2px 0 #b3202f;
  color: #fff;
  text-shadow: 0 1px 0 rgba(140, 20, 30, 0.6);
  animation: lob-urgent 0.5s ease-in-out infinite alternate;
}

@keyframes lob-urgent {
  to { transform: scale(1.16); }
}

/* Больше двух игроков: таблички в два столбца, пониже. */
.lob-plates.lob-many {
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.lob-many .lob-plate {
  flex: 0 0 calc(50% - 3px);
  height: 40px;
  border-radius: 15px;
}

.lob-many .lob-mark {
  width: 26px;
  height: 26px;
}

/* Подпись места («вы», «не в сети · 19 с», «вышел», «играет компьютер») видна и здесь — мельче. */
.lob-many .lob-name {
  font-size: 14px;
  line-height: 16px;
}

.lob-many .lob-sub {
  font-size: 10.5px;
  line-height: 12px;
}

/* Часы — внутри таблички справа: над ней места нет, там соседний ряд. */
.lob-many .lob-clock {
  position: static;
  flex: none;
  min-width: 40px;
  height: 22px;
  padding: 0 6px;
  font-size: 12.5px;
  line-height: 22px;
}

.lob-many .lob-bubble {
  left: 21px;
  font-size: 36px;
}

/* Реакция вылетает у таблички отправителя — над значком его места, имя остаётся видно. */
.lob-bubble {
  position: absolute;
  left: 25px;
  top: 50%;
  z-index: 6;
  font-size: 44px;
  line-height: 1;
  pointer-events: none;
  filter: drop-shadow(0 4px 5px rgba(var(--shade-rgb), 0.55));
  transform: translate(-50%, -50%);
  animation: lob-emote 1.7s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

@keyframes lob-emote {
  0% { opacity: 0; transform: translate(-50%, -20%) scale(0.2) rotate(-18deg); }
  13% { opacity: 1; transform: translate(-50%, -50%) scale(1.35) rotate(8deg); }
  24% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  78% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translate(-50%, -120%) scale(1.05) rotate(0deg); }
}

/* ---------- Игровой экран: чей ход, реакции, связь ---------- */

.lob-turn {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 30px;
  padding: 3px 14px;
  border-radius: 15px;
  background: var(--deep);
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 800;
  line-height: 18px;
}

.lob-turn.mine {
  background: linear-gradient(180deg, #ffe066, #ffbf1f);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.6), 0 2px 0 #c97b00;
  color: #5a3100;
  animation: k-nudge 0.36s cubic-bezier(0.3, 1.8, 0.5, 1);
}

.lob-turn.warn {
  background: linear-gradient(180deg, #ff9a3d, #ff4d5e);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.45), 0 2px 0 #b3202f;
  color: #fff;
  font-size: 13.5px;
  text-shadow: 0 1px 0 rgba(140, 20, 30, 0.6);
}

/* Длинная строка (имя и отсчёт, туркменский текст) — мельче и строго в одну строку: полоса низа одна. */
.lob-turn.long {
  padding: 3px 10px;
  font-size: 12.5px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

@media (max-width: 380px) {
  .lob-turn.long {
    font-size: 12px;
  }
}

.lob-emotes {
  flex: none;
  display: flex;
  justify-content: center;
  gap: 6px;
  width: 100%;
  max-width: var(--col, 460px);
  height: 44px;
}

.lob-emotes button {
  flex: 1 1 0;
  max-width: 56px;
  height: 41px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.26), 0 3px 0 rgba(var(--deep-rgb), 0.5);
  font-size: 22px;
  line-height: 1;
  transition: transform 0.06s ease-out, box-shadow 0.06s ease-out;
}

.lob-emotes button:active {
  transform: translateY(3px);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.26), 0 0 0 rgba(var(--deep-rgb), 0.5);
}

/*
 * Связь потеряна: поле не отвечает на касания, строка хода (data-lobby="status") пишет об этом.
 * Плашка сверху — запасной вариант для игры, у которой такой строки нет.
 */
.lob-banner {
  position: fixed;
  left: 50%;
  top: max(8px, env(safe-area-inset-top));
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 9px 16px 9px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ff9a3d, #ff4d5e);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.45), 0 3px 0 #b3202f, 0 12px 22px rgba(var(--shade-rgb), 0.5);
  color: #fff;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 18px;
  text-shadow: 0 1px 0 rgba(140, 20, 30, 0.6);
  transform: translateX(-50%);
  animation: lob-banner 0.3s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}

@keyframes lob-banner {
  from { opacity: 0; transform: translate(-50%, -16px) scale(0.9); }
}

.lob-spin {
  flex: none;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lob-spin 0.8s linear infinite;
}

@keyframes lob-spin {
  to { transform: rotate(360deg); }
}

/*
 * Поле гаснет и не отвечает на касания. Окно поверх поля (вопрос «Выйти из партии?», итог) остаётся
 * ярким и нажимается: без связи из партии всё равно можно выйти.
 */
.app.lob-off .stage {
  pointer-events: none;
}

.app.lob-off .stage .over {
  pointer-events: auto;
}

.app.lob-off .stage > :not(.well),
.app.lob-off .well > :not(.over) {
  filter: saturate(0.55) brightness(0.85);
}

/* ---------- Окно итога ---------- */

.lob-result.lob-win .over-title.solo {
  color: var(--c4);
  font-size: 34px;
  line-height: 38px;
  text-shadow:
    0 2px 0 #fff3b8,
    0 5px 0 #a35a00,
    0 10px 18px rgba(var(--shade-rgb), 0.6);
}

.lob-result .over-title.solo {
  font-size: 30px;
  line-height: 34px;
}

.lob-result .card .over-note {
  margin-top: 10px;
}

/* Соперник просит «ещё партию» — кнопка зовёт. */
.lob-pulse {
  animation: lob-pulse 0.7s ease-in-out infinite alternate;
}

@keyframes lob-pulse {
  to { transform: scale(1.05); }
}

/* Меньше движения: реакция просто показывается на полторы секунды. */
@media (prefers-reduced-motion: reduce) {
  .lob-bubble {
    animation: k-hold 1.6s linear both !important;
  }
}

/* ---------- Игрок из Link: аватар, имя, ник ---------- */

/* В меню: кто вы в Link. Не кнопка — имя меняется только в профиле Link. */
.lob-me.lob-me-static {
  gap: 8px;
  padding: 0 13px 0 4px;
  cursor: default;
}

.lob-me.lob-me-static:active {
  transform: none;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.3), 0 3px 0 rgba(var(--deep-rgb), 0.45);
}

.lob-me-ava {
  --ava: 30px;
}

.lob-me-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.1;
  text-align: left;
}

.lob-me-text b,
.lob-me-text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lob-me-text small {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
}

/* Табличка игрока: аватар рядом со значком места. */
.lob-ava-slot {
  flex: none;
  display: flex;
  margin-left: -2px;
}

.lob-plate-ava {
  --ava: 30px;
}

.lob-many .lob-plate-ava {
  --ava: 22px;
  font-size: 9px;
}

.lob-many .lob-ava-slot {
  margin-left: -4px;
}

.lob-plate.away .lob-ava-slot {
  opacity: 0.5;
}

.lob-seat-ava {
  --ava: 24px;
  font-size: 10px;
}

/* Комната на двоих: кто уже сел, кого ждём. */
.lob-people {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.lob-person {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 190px;
  height: 46px;
  padding: 0 10px 0 7px;
  border-radius: 16px;
  background: var(--deep);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.1), 0 3px 0 rgba(var(--shade-rgb), 0.35);
  color: #fff;
  text-align: left;
}

.lob-person.free {
  background: none;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22);
  color: var(--ink-2);
}

.lob-person.off .lob-person-ava,
.lob-person.off b {
  opacity: 0.5;
}

.lob-person-ava {
  --ava: 32px;
}

.lob-person-empty {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.35);
  font-size: 15px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.55);
}

.lob-person-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.lob-person-text b {
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lob-person-text small {
  overflow: hidden;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lob-person-text small:empty {
  display: none;
}

@media (max-height: 620px) {
  .lob-person {
    height: 40px;
  }

  .lob-person-ava {
    --ava: 26px;
  }

  .lob-person-empty {
    width: 26px;
    height: 26px;
  }
}
