/* ============================================================
   БУНКЕР — стили в духе Monopoly Plus
   Глянцевые объёмные карты, градиенты, 3D-переворот, анимации
   ============================================================ */

:root {
  --bg-0: #0a0e1a;
  --bg-1: #121829;
  --bg-2: #1a2138;
  --panel: rgba(26, 33, 56, 0.72);
  --panel-solid: #1a2138;
  --gold: #f5c542;
  --gold-2: #e0a020;
  --danger: #ff4757;
  --danger-2: #c0392b;
  --safe: #2ed573;
  --safe-2: #14a058;
  --accent: #4f8cff;
  --accent-2: #2d5fd0;
  --text: #eef2ff;
  --text-dim: #9aa6c4;
  --card-radius: 18px;
  --shadow-lg: 0 22px 50px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.4);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  font-family: 'Roboto Condensed', system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 50% -20%, #1e2947 0%, var(--bg-1) 45%, var(--bg-0) 100%);
  overflow-x: hidden;
}

body { position: relative; min-height: 100vh; }

/* Заголовочный шрифт */
h1, h2, h3, .btn, .logo__title, .counter__value {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.02em;
}

/* --- Фоновое свечение и частицы --- */
.bg-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(600px circle at 15% 20%, rgba(79, 140, 255, 0.10), transparent 60%),
    radial-gradient(500px circle at 85% 80%, rgba(245, 197, 66, 0.08), transparent 60%);
  animation: glowShift 14s ease-in-out infinite alternate;
}
@keyframes glowShift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, 20px) scale(1.08); }
}

.bg-particles {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.bg-particles span {
  position: absolute; bottom: -20px;
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(245, 197, 66, 0.35);
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-105vh) scale(0.4); opacity: 0; }
}

/* --- Экраны и переходы --- */
.screen {
  position: relative; z-index: 1;
  display: none;
  min-height: 100vh;
  padding: 32px 20px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.screen--active { display: flex; animation: screenIn 0.55s var(--ease-smooth); }
@keyframes screenIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.screen--leaving { animation: screenOut 0.35s var(--ease-smooth) forwards; }
@keyframes screenOut {
  to { opacity: 0; transform: translateY(-20px) scale(0.98); }
}

/* --- Кнопки --- */
.btn {
  position: relative;
  border: none;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  padding: 14px 28px;
  border-radius: 14px;
  transition: transform 0.18s var(--ease-back), box-shadow 0.18s ease, filter 0.18s ease;
  overflow: hidden;
  user-select: none;
}
.btn > span { position: relative; z-index: 2; }
.btn::after { /* глянцевый блик сверху */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0) 55%);
}
.btn:hover { transform: translateY(-3px); filter: brightness(1.08); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; filter: grayscale(0.5); transform: none; }

.btn--primary {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #2a1e00;
  box-shadow: 0 8px 20px rgba(245, 197, 66, 0.35), inset 0 -3px 0 rgba(0,0,0,0.2);
}
.btn--danger {
  background: linear-gradient(180deg, var(--danger) 0%, var(--danger-2) 100%);
  box-shadow: 0 8px 20px rgba(255, 71, 87, 0.35), inset 0 -3px 0 rgba(0,0,0,0.25);
}
.btn--ghost {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: none;
}
.btn--ghost::after { display: none; }
.btn--large { padding: 18px 44px; font-size: 20px; width: 100%; max-width: 420px; }
.btn--small { padding: 9px 16px; font-size: 14px; }

/* --- Экран настройки --- */
.setup-wrap {
  width: 100%; max-width: 520px;
  display: flex; flex-direction: column; align-items: center; gap: 26px;
}
.logo { text-align: center; }
.logo__icon {
  font-size: 64px; line-height: 1;
  filter: drop-shadow(0 0 22px rgba(245, 197, 66, 0.6));
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 18px rgba(245,197,66,0.5)); }
  50%      { transform: scale(1.08); filter: drop-shadow(0 0 34px rgba(245,197,66,0.85)); }
}
.logo__title {
  font-size: 68px; font-weight: 700; letter-spacing: 0.12em;
  background: linear-gradient(180deg, #fff 0%, var(--gold) 60%, var(--gold-2) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-top: 4px;
}
.logo__subtitle { color: var(--text-dim); font-size: 18px; letter-spacing: 0.35em; text-transform: uppercase; }

.setup-card {
  width: 100%;
  background: var(--panel);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--card-radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 22px;
}
.setup-card__title { font-size: 24px; text-align: center; color: var(--gold); text-transform: uppercase; }

.field { display: flex; flex-direction: column; gap: 12px; }
.field__label { color: var(--text-dim); font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; }

.counter { display: flex; align-items: center; justify-content: center; gap: 22px; }
.counter__btn {
  width: 52px; height: 52px; border-radius: 14px; border: none; cursor: pointer;
  font-size: 28px; color: #fff; background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 16px rgba(79,140,255,0.35), inset 0 -3px 0 rgba(0,0,0,0.2);
  transition: transform 0.15s var(--ease-back), filter 0.15s;
}
.counter__btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.counter__btn:active { transform: scale(0.92); }
.counter__value { font-size: 44px; font-weight: 700; min-width: 60px; text-align: center; color: var(--gold); }

.names-list { display: flex; flex-direction: column; gap: 10px; }
.name-input {
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--text);
  font-size: 16px;
  font-family: 'Roboto Condensed', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.name-input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,197,66,0.18);
}
.name-input::placeholder { color: var(--text-dim); }

.hint { color: var(--text-dim); font-size: 15px; text-align: center; max-width: 440px; line-height: 1.5; }

/* --- Экран сценария --- */
.scenario-wrap {
  width: 100%; max-width: 640px;
  display: flex; flex-direction: column; gap: 22px; align-items: center;
}
.scenario-block {
  width: 100%;
  border-radius: var(--card-radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  animation: cardDrop 0.6s var(--ease-back) both;
}
.scenario-block:nth-child(2) { animation-delay: 0.15s; }
@keyframes cardDrop {
  from { opacity: 0; transform: translateY(-40px) rotateX(-25deg); }
  to   { opacity: 1; transform: translateY(0) rotateX(0); }
}
.scenario-block--danger {
  background: linear-gradient(145deg, #3a1420, #2a0e16);
  border: 1px solid rgba(255,71,87,0.4);
}
.scenario-block--safe {
  background: linear-gradient(145deg, #12332a, #0d2820);
  border: 1px solid rgba(46,213,115,0.35);
}
.scenario-block__tag {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: 0.2em;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 14px;
}
.scenario-block--danger .scenario-block__tag { background: var(--danger); color: #fff; }
.scenario-block--safe .scenario-block__tag { background: var(--safe); color: #04160e; }
.scenario-block__title { font-size: 30px; margin-bottom: 12px; }
.scenario-block--danger .scenario-block__title { color: #ff8a95; }
.scenario-block--safe .scenario-block__title { color: #7beda8; }
.scenario-block__text { font-size: 17px; line-height: 1.55; color: #d5ddf0; }
.scenario-block__meta {
  display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px;
  font-size: 15px; color: var(--text-dim);
}
.scenario-block__meta span {
  background: rgba(0,0,0,0.3); padding: 6px 14px; border-radius: 10px;
}
.scenario-block__condition {
  margin-top: 14px; font-size: 15px; font-style: italic; color: #a8f0c8;
  padding-left: 12px; border-left: 3px solid var(--safe);
}
.scenario-block__seats {
  margin-top: 16px; font-size: 18px; color: var(--gold);
}

/* --- Игровой экран --- */
#screen-game { justify-content: flex-start; padding-top: 20px; }
.game-header {
  width: 100%; max-width: 1100px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 22px;
  background: var(--panel); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 14px 22px;
  box-shadow: var(--shadow-md);
}
.game-header__round { font-family: 'Oswald'; font-size: 22px; color: var(--gold); font-weight: 600; }
.game-header__info { font-size: 17px; color: var(--text); flex: 1; text-align: center; }

.active-player {
  width: 100%; max-width: 1100px;
  background: var(--panel); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--card-radius);
  padding: 24px; margin-bottom: 22px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  animation: screenIn 0.5s var(--ease-smooth);
}
.active-player__header { display: flex; align-items: center; gap: 16px; }
.active-player__avatar {
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Oswald'; font-size: 26px; font-weight: 700; color: #04160e;
  background: linear-gradient(145deg, var(--gold), var(--gold-2));
  box-shadow: 0 6px 16px rgba(245,197,66,0.4);
}
.active-player__name { font-family: 'Oswald'; font-size: 30px; font-weight: 600; }
.active-player__prompt { color: var(--text-dim); font-size: 16px; text-align: center; }

/* --- Сетка карт --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px; width: 100%;
  perspective: 1200px;
}

/* --- Карта с 3D-переворотом --- */
/* Внешний элемент отвечает только за раздачу (появление), */
/* внутренний .card__inner — за сам переворот по оси Y. */
.card {
  position: relative;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  perspective: 1000px;
  animation: cardDeal 0.5s var(--ease-back) both;
}
@keyframes cardDeal {
  from { opacity: 0; transform: translateY(30px) scale(0.8); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.card__inner {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-smooth);
  transform: rotateY(180deg);            /* по умолчанию видна рубашка */
}
.card.is-flipped .card__inner { transform: rotateY(0deg); }
.card:not(.is-flipped):hover .card__inner { transform: rotateY(180deg) translateY(-6px); }
.card:not(.is-flipped):hover { transform: translateY(-6px); }
.card.is-flipped.is-locked { cursor: default; }

.card__face {
  position: absolute; inset: 0;
  border-radius: var(--card-radius);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
/* Рубашка (видна пока не перевёрнута) */
.card__back {
  transform: rotateY(180deg);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 10px, transparent 10px 20px),
    linear-gradient(145deg, #24304f, #161d33);
  border: 1px solid rgba(255,255,255,0.1);
  align-items: center; justify-content: center;
}
.card__back-icon { font-size: 46px; filter: drop-shadow(0 0 12px rgba(245,197,66,0.5)); }
.card__back-label {
  margin-top: 10px; font-family: 'Oswald'; font-size: 13px; letter-spacing: 0.1em;
  color: var(--text-dim); text-transform: uppercase; text-align: center; padding: 0 8px;
}
.card__back-hint { margin-top: 6px; font-size: 11px; color: rgba(154,166,196,0.6); }

/* Лицо карты */
.card__front {
  padding: 14px;
  align-items: center; justify-content: center; text-align: center;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(160deg, #2a3455, #1b2340);
}
.card__front::before { /* верхний глянец */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), transparent);
  pointer-events: none;
}
.card__cat {
  font-family: 'Oswald'; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.card__icon { font-size: 34px; margin-bottom: 10px; }
.card__val { font-size: 16px; font-weight: 700; line-height: 1.25; color: #fff; }

/* Цветовые акценты категорий (лицо) */
.card[data-cat="health"]    .card__front { background: linear-gradient(160deg, #3a2030, #241423); }
.card[data-cat="phobia"]    .card__front { background: linear-gradient(160deg, #3a2a15, #241a0e); }
.card[data-cat="baggage"]   .card__front { background: linear-gradient(160deg, #1f3540, #142329); }
.card[data-cat="hobby"]     .card__front { background: linear-gradient(160deg, #203a2c, #14241b); }
.card[data-cat="special"]   .card__front { background: linear-gradient(160deg, #3a3418, #24200e); border-color: var(--gold); }

/* --- Мини-панель игроков --- */
.players-bar {
  width: 100%; max-width: 1100px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.player-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 10px 16px; box-shadow: var(--shadow-md);
  transition: transform 0.2s, opacity 0.4s, filter 0.4s;
}
.player-chip.is-active { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(245,197,66,0.3), var(--shadow-md); }
.player-chip.is-exiled { opacity: 0.4; filter: grayscale(0.8); }
.player-chip__avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Oswald'; font-weight: 700; font-size: 15px; color: #04160e;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
}
.player-chip__name { font-size: 15px; }
.player-chip__revealed { font-size: 12px; color: var(--text-dim); }

/* --- Экран голосования --- */
.vote-wrap { width: 100%; max-width: 720px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.vote-title { font-size: 42px; color: var(--danger); text-shadow: 0 0 24px rgba(255,71,87,0.4); }
.vote-subtitle { color: var(--text-dim); font-size: 18px; margin-bottom: 6px; }
.vote-list { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.vote-card {
  background: var(--panel); border: 2px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 18px; cursor: pointer;
  transition: transform 0.18s var(--ease-back), border-color 0.2s, box-shadow 0.2s;
  text-align: left;
}
.vote-card:hover { transform: translateY(-4px); border-color: rgba(255,71,87,0.5); }
.vote-card.is-selected { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255,71,87,0.25); background: rgba(255,71,87,0.08); }
.vote-card__top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.vote-card__avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Oswald'; font-weight: 700; color: #04160e;
  background: linear-gradient(145deg, var(--gold), var(--gold-2));
}
.vote-card__name { font-family: 'Oswald'; font-size: 20px; }
.vote-card__traits { font-size: 13px; color: var(--text-dim); line-height: 1.5; }

/* --- Финальный экран --- */
.final-wrap { width: 100%; max-width: 860px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.final-title {
  font-size: 46px; text-align: center;
  background: linear-gradient(180deg, #fff, var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: pulse 3s ease-in-out infinite;
}
.final-subtitle { color: var(--text-dim); font-size: 18px; text-align: center; max-width: 600px; line-height: 1.5; }
.final-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; width: 100%; }
.final-col {
  background: var(--panel); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--card-radius); padding: 20px; box-shadow: var(--shadow-md);
}
.final-col__title { font-size: 22px; margin-bottom: 14px; text-align: center; }
.final-col__title--safe { color: var(--safe); }
.final-col__title--danger { color: var(--danger); }
.final-col__list { display: flex; flex-direction: column; gap: 10px; }
.final-person {
  background: rgba(0,0,0,0.25); border-radius: 12px; padding: 12px 14px;
  animation: cardDrop 0.5s var(--ease-back) both;
}
.final-person__name { font-family: 'Oswald'; font-size: 18px; margin-bottom: 4px; }
.final-person--safe .final-person__name { color: #7beda8; }
.final-person--danger .final-person__name { color: #ff8a95; }
.final-person__detail { font-size: 13px; color: var(--text-dim); line-height: 1.4; }

/* --- Модалка вскрытия карты --- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal.is-open { display: flex; }
.modal__backdrop {
  position: absolute; inset: 0; background: rgba(4,7,16,0.78);
  backdrop-filter: blur(6px); animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal__card {
  position: relative; z-index: 2;
  width: 100%; max-width: 340px; aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #2a3455, #1b2340);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 24px; padding: 30px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px;
  box-shadow: var(--shadow-lg);
  animation: modalPop 0.55s var(--ease-back);
}
@keyframes modalPop {
  0%   { opacity: 0; transform: scale(0.5) rotateY(180deg); }
  100% { opacity: 1; transform: scale(1) rotateY(0); }
}
.modal__icon { font-size: 64px; filter: drop-shadow(0 0 16px rgba(245,197,66,0.5)); }
.modal__category { font-family: 'Oswald'; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.modal__value { font-size: 26px; font-weight: 700; line-height: 1.3; }

/* --- Адаптив --- */
@media (max-width: 640px) {
  .logo__title { font-size: 52px; }
  .scenario-block__title { font-size: 24px; }
  .final-columns { grid-template-columns: 1fr; }
  .game-header { flex-wrap: wrap; }
  .game-header__info { order: 3; flex-basis: 100%; }
  .cards-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
  .vote-title { font-size: 32px; }
  .btn--large { font-size: 17px; padding: 16px 28px; }
}

/* Анимация исключения игрока */
@keyframes exileOut {
  0%   { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(120%) rotate(8deg); opacity: 0; }
}
.player-chip.is-exiling { animation: exileOut 0.6s var(--ease-smooth) forwards; }

/* ============================================================
   ОНЛАЙН-ЭЛЕМЕНТЫ (лобби, присутствие, голосование, изгнание)
   ============================================================ */

/* --- Лобби --- */
.lobby-divider {
  display: flex; align-items: center; text-align: center;
  color: var(--text-dim); margin: 22px 0 18px; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.lobby-divider::before, .lobby-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(154,166,196,0.35), transparent);
}
.lobby-divider span { padding: 0 14px; }

.lobby-code-input {
  text-align: center; font-family: 'Oswald', sans-serif;
  font-size: 28px; letter-spacing: 0.35em; text-transform: uppercase;
}

.lobby-error {
  color: var(--danger); text-align: center; margin-top: 14px;
  min-height: 20px; font-weight: 700;
}

.room-code {
  font-family: 'Oswald', sans-serif; font-weight: 700;
  font-size: 54px; letter-spacing: 0.28em; text-align: center;
  color: var(--gold);
  text-shadow: 0 4px 18px rgba(245,197,66,0.35);
  padding: 8px 0 4px; user-select: all;
}

.lobby-players { display: flex; flex-direction: column; gap: 8px; }
.lobby-player {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 10px 14px;
  transition: opacity 0.3s;
}
.lobby-player.is-offline { opacity: 0.45; }
.lobby-player__name { font-weight: 700; flex: 1; }
.lobby-player__you {
  font-size: 12px; color: var(--accent);
  background: rgba(79,140,255,0.15); padding: 2px 8px; border-radius: 8px;
}
.host-crown { font-size: 15px; }

/* --- Индикатор соединения (точки присутствия) --- */
.conn-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  flex-shrink: 0;
}
.conn-dot.is-on  { background: var(--safe);   box-shadow: 0 0 8px rgba(46,213,115,0.7); }
.conn-dot.is-off { background: var(--text-dim); box-shadow: none; }

.player-chip__avatar { position: relative; }
.player-chip__avatar .conn-dot {
  position: absolute; right: -2px; bottom: -2px;
  border: 2px solid var(--panel-solid);
  width: 12px; height: 12px;
}
.player-chip.is-offline { opacity: 0.5; }

/* --- Доска "только для чтения" (не мой ход) --- */
.active-player.is-readonly .card { cursor: default; }
.active-player.is-readonly #endTurnBtn { display: none; }
.active-player.is-readonly .active-player__prompt { color: var(--accent); }

/* --- Прогресс голосования --- */
.vote-progress { max-width: 420px; margin: 0 auto 22px; }
.vote-progress__bar {
  height: 10px; border-radius: 6px; overflow: hidden;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
}
.vote-progress__bar span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: width 0.4s var(--ease-smooth);
}
.vote-progress__text {
  text-align: center; margin-top: 8px; color: var(--text-dim);
  font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em;
}

.vote-card.is-self { opacity: 0.6; cursor: default; }
.vote-card.is-self::after {
  content: 'вы'; position: absolute; top: 8px; right: 10px;
  font-size: 11px; color: var(--text-dim);
}

/* --- Баннер изгнания --- */
.exile-card { text-align: center; border-top: 4px solid var(--danger); }
.exile-card__mark {
  font-size: 56px; color: var(--danger);
  text-shadow: 0 4px 20px rgba(255,71,87,0.5); line-height: 1;
}
.exile-card__label {
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--danger); font-weight: 700; margin: 10px 0 4px;
}
.exile-card__name {
  font-family: 'Oswald', sans-serif; font-size: 30px; font-weight: 700;
  margin-bottom: 12px;
}
.exile-card__traits { color: var(--text-dim); font-size: 15px; line-height: 1.5; }
.exile-card__tie { color: var(--gold); font-size: 13px; margin-top: 10px; font-style: italic; }

/* --- Индикатор потери связи --- */
.conn-status {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--danger-2); color: #fff; text-align: center;
  padding: 8px; font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.06em;
  animation: connPulse 1.4s ease-in-out infinite;
}
@keyframes connPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }


