/* ═══════════════════════════════════════════════════════════════════
   Суд и викторина.

   Каждый класс здесь начинается с ct- или qz-. Правило появилось не из
   любви к порядку: раньше .card означал в одном файле панель, а в другом
   игральную карту, и весь интерфейс складывался в белые прямоугольники
   размером 38 пикселей. Приставка делает такое столкновение невозможным.

   Ни одно правило не задаёт фиксированную ширину текстовым блокам:
   всё тянется по месту, длинные слова переносятся.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Суд ── */

.ct-case { margin-bottom: 12px; }

.ct-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 10px; flex-wrap: wrap;
}

.ct-status {
  font-size: 11px; font-weight: 750; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  white-space: nowrap;
}
.ct-status.ct-open { color: var(--gold); box-shadow: inset 0 0 0 1px rgba(232, 182, 76, .4); }
.ct-status.ct-guilty { color: var(--red); box-shadow: inset 0 0 0 1px rgba(255, 90, 78, .4); }
.ct-status.ct-free { color: var(--green); box-shadow: inset 0 0 0 1px rgba(60, 210, 140, .35); }

.ct-left {
  font-size: 12.5px; color: var(--text-dim);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

.ct-parties { font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.ct-parties b { color: var(--text); }

.ct-reason {
  margin: 8px 0 12px; font-size: 14px; line-height: 1.5;
  color: var(--text-dim); overflow-wrap: anywhere;
}

.ct-bar {
  height: 8px; border-radius: 999px; background: var(--bg-deep);
  box-shadow: inset 0 2px 6px var(--shadow-dark);
  overflow: hidden; margin: 12px 0 8px;
}
.ct-bar-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--red), #ff8a5a);
  transition: width .4s var(--ease-out);
}

.ct-tally {
  display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text-dim);
}
.ct-tally b { color: var(--text); font-variant-numeric: tabular-nums; }

.ct-actions { display: flex; gap: 10px; margin-top: 14px; }
.ct-actions .btn { flex: 1 1 0; min-width: 0; }
.ct-guilty-btn { color: var(--red); }

.ct-debt {
  margin-top: 14px; padding-top: 14px;
  box-shadow: inset 0 1px 0 var(--edge);
}

.ct-area { resize: vertical; min-height: 76px; font: inherit; line-height: 1.45; }

/* ── Викторина ── */

.qz-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.qz-topic {
  border: 0; font: inherit; font-size: 13px; font-weight: 620;
  color: var(--text-dim); cursor: pointer;
  padding: 8px 13px; border-radius: 999px;
  background: var(--bg-deep);
  box-shadow: inset 0 0 0 1px var(--edge);
  transition: color .2s, box-shadow .2s;
}
.qz-topic.on {
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(232, 182, 76, .55);
}

.qz-meta {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 12.5px; color: var(--text-dim); margin-bottom: 10px;
}
.qz-timer { font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 700; }

.qz-progress {
  height: 6px; border-radius: 999px; background: var(--bg-deep);
  overflow: hidden; margin-bottom: 14px;
  box-shadow: inset 0 2px 6px var(--shadow-dark);
}
.qz-progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold-lit));
  transition: width 1s linear;
}

.qz-text {
  margin: 0; font-size: clamp(16px, 4.6vw, 19px); line-height: 1.45;
  font-weight: 640; letter-spacing: -.015em; overflow-wrap: anywhere;
}

.qz-answer {
  margin: 6px 0 0; font-size: clamp(18px, 5.4vw, 22px); font-weight: 750;
  color: var(--gold); letter-spacing: -.02em; overflow-wrap: anywhere;
}

.qz-ok { color: var(--green); }
.qz-no { color: var(--red); }

.qz-players { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.qz-chip {
  font-size: 12.5px; padding: 5px 11px; border-radius: 999px;
  color: var(--text-dim); background: var(--bg-deep);
  box-shadow: inset 0 0 0 1px var(--edge);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.qz-chip.on { color: var(--gold); }

.kv.qz-me b, .qz-result.qz-me b { color: var(--gold); }
.qz-result .place { color: var(--text-mute); font-weight: 750; min-width: 22px; }

/* Пометка сложности вопроса. Игрок должен видеть, за что даются лишние
   очки, иначе надбавка выглядит как случайность. */
.qz-diff {
  font-size: 11.5px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 10px; overflow-wrap: anywhere;
}

/* Обложка вопроса. Рисунки векторные и лёгкие, поэтому грузятся мгновенно
   и не мигают белым на медленной связи. Высота фиксированная: иначе карточка
   прыгает при смене вопроса и сбивает чтение. */
.qz-art {
  height: 96px; margin: -4px -4px 12px;
  display: grid; place-items: center;
  border-radius: var(--r-md); overflow: hidden;
  background: var(--bg-deep);
  box-shadow: inset 0 0 0 1px var(--edge);
}
.qz-art img {
  height: 100%; width: auto; max-width: 100%;
  object-fit: contain; display: block;
}
.qz-art-sm { height: 68px; }
