/* Компоненты дизайн-системы (src/ui). */

/* ---- Header ---- */
.hdr {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
  min-height: 44px;
}
.hdr .grow {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hdr.nav {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.hdr.nav .navrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.back {
  width: var(--tap);
  height: var(--tap);
  min-width: var(--tap);
  margin: -4px 0 -4px -4px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 20px;
  display: grid;
  place-items: center;
  transition: background var(--dur);
}
.back:active {
  background: var(--surface-2);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap-l);
  padding: 14px 18px;
  border-radius: var(--r-s);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  color: var(--text);
  background: var(--surface-2);
  width: 100%;
  user-select: none;
  -webkit-user-select: none;
  transition:
    transform var(--dur) var(--ease),
    background var(--dur),
    opacity var(--dur);
  text-align: center;
}
.btn:active:not(:disabled) {
  transform: scale(0.98);
}
.btn:disabled {
  cursor: default;
}
/* Недоступная кнопка — нейтрально-серая в любом варианте: полупрозрачное золото на чёрном
   читалось как «грязная» активная кнопка. Загрузка (aria-busy) сохраняет цвет варианта. */
.btn:disabled:not([aria-busy='true']) {
  background: var(--surface-2);
  color: var(--dim-text);
  border-color: transparent;
  box-shadow: none;
  filter: none;
}
.btn.ghost:disabled:not([aria-busy='true']),
.btn.quiet:disabled:not([aria-busy='true']) {
  background: transparent;
  border-color: var(--line);
}
.btn[aria-busy='true'] {
  opacity: 0.85;
}
.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}
.btn.ghost.light {
  color: var(--text);
}
.btn.danger {
  background: var(--danger);
  color: #fff;
}
.btn.soft-danger {
  background: var(--danger-soft);
  color: var(--danger-text);
}
.btn.ok {
  background: var(--ok);
  color: #06140b;
}
/* Тихое действие: редкое/опасное, не должно спорить с главной кнопкой («Завершить партию…») */
.btn.quiet {
  background: transparent;
  color: var(--dim-text);
  font-weight: 600;
  font-size: var(--fs-s);
  min-height: var(--tap);
  padding-block: 8px;
}
.btn.sm {
  min-height: var(--tap);
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 12px;
}
.btn.xl {
  min-height: 64px;
  font-size: 17px;
  border-radius: 18px;
}
.btn.auto {
  width: auto;
  white-space: nowrap;
}
.btn.icon {
  width: var(--tap);
  min-width: var(--tap);
  padding: 0;
  font-size: 20px;
}
.spin {
  display: inline-block;
  flex: none;
}
.spin.gold {
  color: var(--accent);
}
.spin,
.btn .spin {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.bar {
  display: flex;
  gap: 8px;
}
.bar > .btn {
  flex: 1;
  min-width: 0;
  padding-inline: 10px;
  white-space: nowrap;
}
/* три и больше кнопок в ряд — компактнее, чтобы «К голосованию» не переносилось */
.bar:has(> .btn:nth-child(3)) > .btn {
  font-size: 14px;
  padding-inline: 8px;
}
.bar > .btn.narrow {
  flex: 0 0 96px;
}
/* три кнопки в ряд на 360px: узкая третья («Итог») уступает место «К голосованию» */
.bar:has(> .btn:nth-child(3)) > .btn.narrow {
  flex-basis: 64px;
}
.bar > .field {
  flex: 1;
  min-width: 0;
}

/* ---- Sticky actions (главная кнопка всегда под большим пальцем) ----
   Подложка непрозрачна под кнопками и растворяется только в верхних 24px: прокручиваемые строки
   не просвечивают сквозь подписи. Низ панели — край экрана (+ safe-area) или верх вкладок. */
.sticky {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  margin-inline: calc(-1 * var(--gutter));
  padding: 24px var(--gutter) calc(16px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  background: linear-gradient(to top, var(--bg) calc(100% - 24px), transparent);
  z-index: 5;
}
.sticky > .pill {
  align-self: center;
}
.sticky > .sub.center {
  padding-inline: 8px;
}
.view.with-tabs .sticky {
  bottom: calc(var(--tabs-h) + var(--safe-bottom));
  padding-bottom: 12px;
}

/* ---- Card ---- */
.card {
  background: var(--surface);
  border-radius: var(--r);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  min-width: 0;
}
.card.tight {
  padding: 14px 16px;
  gap: 6px;
}
.card.tap {
  cursor: pointer;
  transition:
    transform var(--dur) var(--ease),
    background var(--dur);
}
.card.tap:active {
  transform: scale(0.985);
  background: var(--surface-2);
}
.card.accent {
  box-shadow: inset 0 0 0 1px var(--accent);
}
.card.danger {
  box-shadow: inset 0 0 0 1px var(--danger);
}
.card.flat {
  background: var(--ground);
  border: 1px solid var(--line);
}
.card.center {
  align-items: center;
  text-align: center;
}

/* шеврон «открыть» у кликабельной карточки — вместо пилюли-кнопки */
.chev {
  color: var(--dim-text);
  font-size: 22px;
  line-height: 1;
  flex: none;
}

/* ---- Pill ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  letter-spacing: 0.3px;
  white-space: nowrap;
  line-height: 1.2;
}
.pill.gold {
  background: var(--accent-soft);
  color: var(--accent-text);
}
.pill.red {
  background: var(--danger-soft);
  color: var(--danger-text);
}
.pill.ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.pill.solid {
  background: var(--text);
  color: var(--bg);
}
.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ---- List ---- */
.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  min-height: var(--tap);
  background: var(--surface);
  border-radius: var(--r-s);
  width: 100%;
  text-align: left;
}
.li.tap {
  cursor: pointer;
}
.li.tap:active {
  background: var(--surface-2);
}
.li .n {
  width: 32px;
  height: 32px;
  /* .n.empty (инициал без места) не должен наследовать отступы EmptyState (.empty) — иначе круг становится овалом */
  padding: 0;
  border-radius: 9px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  flex: none;
}
.li .n.gold {
  background: var(--accent);
  color: var(--accent-ink);
}
.li .nm {
  font-size: 14px;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.li .nm small {
  display: block;
  font-size: var(--fs-xs);
  color: var(--muted);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* без номера места — инициал в круге, а не «·» в квадрате номера */
.li .n.empty {
  border-radius: 50%;
  font-family: var(--font);
  font-size: var(--fs-s);
}
.li.dead {
  opacity: 0.45;
}
.li.dead .nm {
  text-decoration: line-through;
}
.li.me {
  box-shadow: inset 0 0 0 1px var(--accent);
}

/* ---- Avatars ---- */
.avs {
  display: flex;
}
.av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--surface);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-left: -8px;
  flex: none;
}
.av:first-child {
  margin-left: 0;
}
.av.gold {
  background: var(--accent);
  color: var(--accent-ink);
}
.av.lg {
  width: 44px;
  height: 44px;
  font-size: 15px;
}

/* ---- Meter ---- */
.meter {
  height: 4px;
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
}
.meter i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 1s linear;
}
.meter.warn i {
  background: var(--danger);
}

/* ---- Seat grid ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}
.grid.cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.seatb {
  position: relative;
  min-height: 56px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition:
    background var(--dur),
    color var(--dur),
    transform var(--dur) var(--ease);
  user-select: none;
  -webkit-user-select: none;
  padding: 6px 4px;
}
.seatb:active:not(:disabled) {
  transform: scale(0.96);
}
.seatb:disabled {
  cursor: default;
}
.seatb .lbl {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.1;
}
.seatb.dead {
  color: var(--muted);
  background: var(--ground);
  border: 1px solid var(--line);
}
.seatb.compact {
  min-height: 48px;
  padding: 4px 2px;
  font-size: 16px;
}
.seatb.dead > span:first-child {
  text-decoration: line-through;
}
.seatb.speak {
  background: var(--accent);
  color: var(--accent-ink);
}
.seatb.speak .lbl {
  color: var(--accent-ink);
  opacity: 0.75;
}
.seatb.cand {
  box-shadow: inset 0 0 0 2px var(--danger);
}
.seatb.pick {
  box-shadow: inset 0 0 0 2px var(--accent);
}
.seatb.pick.speak {
  box-shadow: inset 0 0 0 2px var(--text);
}
.seatb.me {
  box-shadow: inset 0 0 0 2px var(--text);
}
.seatb .badge {
  position: absolute;
  top: 3px;
  left: 5px;
  right: 5px;
  font-size: 10px;
  line-height: 1.2;
  font-family: var(--font);
  font-weight: 700;
  color: var(--danger-text);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seatb.speak .badge {
  color: var(--accent-ink);
}
.seatb.lg {
  min-height: 68px;
  font-size: 20px;
}

/* ---- Timer ---- */
.timer {
  font-family: var(--display);
  font-weight: 700;
  color: var(--accent-text);
  text-align: center;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}
.timer.xl {
  font-size: 72px;
}
.timer.lg {
  font-size: 56px;
}
.timer.md {
  font-size: 40px;
}
.timer.sm {
  font-size: 28px;
}
.timer.warn {
  color: var(--danger);
}
.timer.paused {
  color: var(--muted);
}
.timer.idle {
  color: var(--dim-text);
}

/* ---- Sheet / Modal ---- */
.sheet-back {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fade var(--dur) both;
}
.sheet-back.modal {
  align-items: center;
  padding: var(--gutter);
}
.sheet {
  width: 100%;
  max-width: 560px;
  background: var(--surface);
  border-radius: 26px 26px 0 0;
  padding: 12px var(--gutter) calc(20px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 88dvh;
  overflow: auto;
  animation: up 0.24s var(--ease) both;
}
.sheet-back.modal .sheet {
  border-radius: var(--r);
  padding-top: 18px;
  padding-bottom: 20px;
  max-height: 80dvh;
}
.sheet .grip {
  width: 36px;
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  margin: 0 auto 2px;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes up {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
}
@keyframes down {
  from {
    transform: translateY(-16px);
    opacity: 0;
  }
}

/* ---- Toast ---- */
.toasts {
  position: fixed;
  left: 50%;
  top: calc(56px + var(--safe-top) + var(--tg-top));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 50;
  pointer-events: none;
  width: min(92vw, 420px);
  align-items: center;
}
.toast {
  background: var(--text);
  color: var(--bg);
  font-size: var(--fs-s);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  max-width: 100%;
  animation: down var(--dur) var(--ease) both;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.toast.error {
  background: var(--danger);
  color: #fff;
}
.toast.ok {
  background: var(--ok);
  color: #06140b;
}

/* ---- Skeleton / Empty ---- */
.skel {
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);
  background-size: 200% 100%;
  border-radius: var(--r-s);
  animation: shimmer 1.4s linear infinite;
  min-height: 16px;
}
.skel.card {
  min-height: 120px;
  border-radius: var(--r);
}
@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 36px 16px;
  color: var(--muted);
}
.empty .glyph {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 22px;
  color: var(--dim-text);
  margin-bottom: 4px;
}
.empty .glyph svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.empty .sub {
  max-width: 300px;
  text-wrap: balance;
}
.empty .btn {
  margin-top: 8px;
}

/* ---- Tabs ---- */
.tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-around;
  padding: 8px 8px calc(8px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: var(--ground);
  z-index: 30;
}
.tabs button {
  color: var(--dim-text);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 64px;
  min-height: var(--tap);
  justify-content: center;
  border-radius: var(--r-xs);
}
.tabs button svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tabs button[aria-current='true'] {
  color: var(--text);
}

/* ---- Forms ---- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.input {
  width: 100%;
  min-height: var(--tap-l);
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: var(--r-s);
  color: var(--text);
  font-size: 15px;
  outline: none;
}
.input:focus {
  border-color: var(--accent);
}
textarea.input {
  min-height: 90px;
  resize: vertical;
}
.seg {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
  /* 5 вкладок кабинета на 360px: подписи не обрезаются и не слипаются — лента прокручивается */
  overflow-x: auto;
  scrollbar-width: none;
}
.seg::-webkit-scrollbar {
  display: none;
}
.seg button {
  flex: 1 1 0;
  min-width: max-content;
  white-space: nowrap;
  color: var(--muted);
  font-weight: 600;
  font-size: var(--fs-s);
  padding: 8px 6px;
  min-height: var(--tap);
  border-radius: 999px;
  transition: background var(--dur);
}
.seg button[aria-pressed='true'] {
  background: var(--text);
  color: var(--bg);
}
.stepper {
  display: flex;
  align-items: center;
  gap: 6px;
}
.stepper .btn {
  width: var(--tap);
  min-width: var(--tap);
  min-height: var(--tap);
  padding: 0;
  font-size: 20px;
}
.stepper b {
  min-width: 36px;
  text-align: center;
  font-family: var(--display);
  font-size: 18px;
}
.switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--tap);
}
.switch .knob {
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: var(--surface-3);
  position: relative;
  flex: none;
  transition: background var(--dur);
}
.switch .knob::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text);
  transition: transform var(--dur) var(--ease);
}
.switch[aria-checked='true'] .knob {
  background: var(--accent);
}
.switch[aria-checked='true'] .knob::after {
  transform: translateX(18px);
  background: var(--accent-ink);
}

/* ---- Stat grid ---- */
.stat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.stat .card {
  padding: 14px;
  gap: 2px;
}
.stat .v {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
}
.stat .k {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

/* ---- Script (ночь) ---- */
.script {
  background: var(--surface);
  border-radius: var(--r);
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.script p {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}
.script small {
  color: var(--muted);
  font-size: 13px;
}

/* ---- Timeline ---- */
.timeline {
  display: flex;
  flex-direction: column;
}
.tl {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
}
.tl .d {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tl .d i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  flex: none;
}
.tl .d s {
  flex: 1;
  width: 1px;
  background: var(--line);
  display: block;
}
.tl .t {
  padding-bottom: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.tl .t b {
  color: var(--text);
  display: block;
}

/* ---- Seed (честная раздача) — моноширинные строки, хэш не рвёт соседний текст ---- */
.seed-note {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: var(--fs-xs);
  color: var(--muted);
  min-width: 0;
}
.seed-note code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  color: var(--dim-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- Nomination ---- */
.nom {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--tap);
}
.nom .ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 18px;
  flex: none;
}

/* ---- Connection dot ---- */
.conn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.conn i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dim);
}
.conn.on i {
  background: var(--ok);
}
.conn.off i {
  background: var(--danger);
}

/* ---- Info banner ---- */
.banner {
  background: var(--info-soft);
  border-radius: var(--r-s);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.banner.gold {
  background: var(--accent-soft);
  color: var(--accent-text);
}
.banner.red {
  background: var(--danger-soft);
  color: var(--danger-text);
}

/* низкие экраны (360×640): таймер и липкая панель компактнее, чтобы сетка и кнопки были на одном экране */
@media (max-height: 700px) {
  .sticky {
    padding-top: 16px;
    gap: 6px;
  }
  .sticky .btn.xl {
    min-height: var(--tap-l);
  }
  .timer.lg {
    font-size: 44px;
  }
  .timer.xl {
    font-size: 56px;
  }
  .card.center .stack {
    gap: 6px;
  }
}

/* ---- Игровые ники ---- */
/* Шторка выбора: две колонки на 360px, длинный ник переносится по словам. */
.nick-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--sp-2);
}
.nick-opt {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: var(--tap);
  padding: 10px 12px;
  border-radius: var(--r-s);
  background: var(--surface-2);
  border: 1px solid transparent;
  color: var(--text);
  font-size: var(--fs-s);
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  transition: background var(--dur);
}
.nick-opt:active:not(:disabled) {
  background: var(--surface-3);
}
.nick-opt small {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--dim-text);
}
.nick-opt.mine {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-text);
}
.nick-opt.mine small {
  color: var(--accent-text);
}
.nick-opt.taken {
  background: transparent;
  border-color: var(--line);
  color: var(--dim-text);
}
.nick-opt:disabled {
  cursor: default;
}
.nick-opt .spin {
  position: absolute;
  top: 8px;
  right: 8px;
}
/* Ник крупно: карточка «Ваш ник на игру», лобби и карта роли */
.nick-big {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-xl);
  line-height: 1.25;
  color: var(--text);
  overflow-wrap: normal;
  word-break: keep-all;
  text-wrap: balance;
}
.nick-big.gold {
  color: var(--accent-text);
}
.nick-big.none {
  font-family: var(--font);
  font-size: var(--fs-m);
  font-weight: 600;
  color: var(--muted);
}
/* «7 · Кот-Батон» над картой роли */
.seat-nick {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  max-width: 100%;
}
.seat-nick .n {
  flex: none;
  min-width: 44px;
  height: 44px;
  padding: 0 8px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-xl);
}
.seat-nick .nick-big {
  min-width: 0;
}
.lobby-nick {
  font-size: var(--fs-2xl);
  margin-top: var(--sp-1);
}
textarea.nick-text {
  min-height: 260px;
  line-height: 1.6;
  font-size: var(--fs-m);
}

/* ---- Ведущие клуба (кабинет владельца) ---- */
/* Шторка «Добавить ведущего»: игроки клуба одной колонкой, выбранный — золотой, уже ведущие — приглушены. */
.host-pick {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  /* длинный клуб не уводит поле «Telegram id» и кнопку за экран: список прокручивается сам */
  max-height: min(44dvh, 360px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.host-opt {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  min-height: var(--tap);
  padding: 10px 12px;
  border-radius: var(--r-s);
  background: var(--surface-2);
  border: 1px solid transparent;
  color: var(--text);
  text-align: left;
  transition: background var(--dur);
}
.host-opt:active:not(:disabled) {
  background: var(--surface-3);
}
.host-opt .av {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  color: var(--muted);
  font-size: var(--fs-s);
  font-weight: 700;
}
.host-opt .t {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.host-opt .t b,
.host-opt .t small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.host-opt .t b {
  font-size: var(--fs-s);
  font-weight: 600;
}
.host-opt .t small {
  font-size: var(--fs-xs);
  color: var(--dim-text);
}
.host-opt .tick {
  flex: none;
  color: var(--accent-text);
  font-weight: 700;
}
.host-opt.on {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.host-opt.on .av {
  background: var(--accent);
  color: var(--accent-ink);
}
.host-opt:disabled {
  cursor: default;
  background: transparent;
  border-color: var(--line);
}
.host-opt:disabled .t b {
  color: var(--muted);
}
/* Список ведущих: пометка «владелец/ведущий» — рядом с именем, подпись (кто и когда добавил) переносится */
.li.host-row .who {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
}
.li.host-row .who .name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.li.host-row .who .pill {
  flex: none;
  padding: 3px 8px;
}
.li.host-row .nm small {
  white-space: normal;
  margin-top: 2px;
}

/* ---- Со-ведение: строка на пульте «на пульте: … · последнее действие: Имя · 5 с назад» ---- */
.host-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px var(--sp-3);
  font-size: var(--fs-xs);
  line-height: 1.4;
  margin-top: calc(-1 * var(--sp-1));
}
.host-meta .on {
  color: var(--accent-text);
}
.host-note {
  color: var(--accent-text);
}
