/* ArenaResultModal — табы, матрица, бары разметки, номинации, скролл */
.arena-result-modal-overlay {
  position: fixed; inset: 0; z-index: 10060;
  display: none; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.arena-result-modal-overlay.open { display: flex; }
.arena-result-modal-box {
  width: 100%; max-width: 520px; max-height: 92vh; overflow: hidden;
  display: flex; flex-direction: column;
  background: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
}
.arena-result-modal-head {
  flex-shrink: 0;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #27272a;
}
.arena-result-modal-title {
  margin: 0 0 4px;
  font-size: 1.05rem; font-weight: 800; color: #fafafa; line-height: 1.25;
}
.arena-result-modal-sub {
  font-size: .72rem; color: #71717a; font-weight: 500;
}
.arena-result-modal-toprow {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.arena-result-modal-close {
  flex-shrink: 0; background: none; border: none; color: #71717a;
  font-size: 1.2rem; cursor: pointer; padding: 4px 8px; border-radius: 8px;
  line-height: 1; transition: color .15s, background .15s;
}
.arena-result-modal-close:hover { color: #e4e4e7; background: #27272a; }

.arena-result-tabs {
  display: flex; gap: 4px; padding: 8px 12px 0;
  border-bottom: 1px solid #27272a; flex-shrink: 0;
}
.arena-result-tab {
  flex: 1; text-align: center; padding: 8px 6px; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: #71717a;
  background: none; border: none; border-radius: 8px 8px 0 0; cursor: pointer;
  transition: color .15s, background .15s;
}
.arena-result-tab:hover { color: #a1a1aa; }
.arena-result-tab.active {
  color: #fde68a; background: rgba(212,175,55,.1);
  box-shadow: inset 0 -2px 0 #d4af37;
}
.arena-result-tab.arena-result-tab--hidden {
  display: none !important;
}

.arena-result-modal-body {
  padding: 12px 14px 16px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.arena-result-modal-body::-webkit-scrollbar { width: 6px; }
.arena-result-modal-body::-webkit-scrollbar-thumb {
  background: #52525b; border-radius: 99px;
}
.arena-result-modal-body::-webkit-scrollbar-track { background: #27272a; }

.arena-result-pane { display: none; }
.arena-result-pane.active { display: block; }

.arena-result-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.arena-result-badge {
  font-size: .65rem; font-weight: 700; padding: 4px 8px; border-radius: 8px;
  border: 1px solid #3f3f46; color: #d4d4d8; background: #27272a;
}
.arena-result-badge-winner { border-color: rgba(212,175,55,.4); color: #fde68a; background: rgba(212,175,55,.1); }

.arena-result-row-part {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 6px;
  border-radius: 10px; border: 1px solid #27272a; background: rgba(39,39,42,.5);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.arena-result-row-part:hover { border-color: #3f3f46; background: rgba(63,63,70,.4); }
.arena-result-row-part.is-winner {
  border-color: rgba(212,175,55,.45);
  background: linear-gradient(90deg, rgba(212,175,55,.12), rgba(39,39,42,.4));
  box-shadow: 0 0 0 1px rgba(212,175,55,.15);
}
.arena-result-row-part .arena-result-pname { flex: 1; min-width: 0; font-weight: 700; font-size: .84rem; color: #e4e4e7; }
.arena-result-row-part .arena-result-pscore { font-size: .78rem; font-weight: 800; color: #a1a1aa; flex-shrink: 0; }
.arena-result-bar-wrap { height: 6px; background: #27272a; border-radius: 99px; overflow: hidden; margin-top: 6px; }
.arena-result-bar-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #7c6bcf, #a78bfa);
  transition: width .35s ease;
}
.arena-result-row-part.is-winner .arena-result-bar-fill {
  background: linear-gradient(90deg, #b8860b, #ffd700);
}

.arena-result-expand {
  display: none; margin: 0 0 10px 8px; padding: 10px 12px;
  border-left: 2px solid rgba(212,175,55,.35); background: rgba(0,0,0,.2);
  border-radius: 0 8px 8px 0; font-size: .75rem; color: #a1a1aa;
}
.arena-result-expand.open { display: block; }

/* Горизонтальные бары разметки по ролям (вкладка аналитики) */
.arm-role-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.arm-role-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.arm-role-left {
  flex: 0 0 6rem;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.arm-role-svg { flex-shrink: 0; display: block; }
.arm-role-name {
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.arm-role-name--mafia { color: #D46A6A; }
.arm-role-name--sheriff { color: #E1C184; }
.arm-role-name--civil { color: #459bb4; }
.arm-role-track {
  flex: 1;
  min-width: 0;
  height: 8px;
  border-radius: 99px;
  background: #27272a;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.35);
}
.arm-role-fill {
  height: 100%;
  border-radius: 99px;
  min-width: 0;
  transition: width .35s ease;
  box-shadow: 0 0 10px rgba(0,0,0,.2);
}
.arm-role-fill--mafia { background: linear-gradient(90deg, #b85555, #D46A6A); }
.arm-role-fill--sheriff { background: linear-gradient(90deg, #c4a86a, #E1C184); }
.arm-role-fill--civil { background: linear-gradient(90deg, #3a8a9e, #459bb4); }
.arm-role-right {
  flex: 0 0 auto;
  text-align: right;
  min-width: 3.2rem;
}
.arm-role-pct {
  font-size: .78rem;
  font-weight: 800;
  color: #e4e4e7;
  display: block;
  line-height: 1.2;
}
.arm-role-sub {
  display: block;
  font-size: .58rem;
  font-weight: 600;
  color: #71717a;
  margin-top: 1px;
}
.arm-seat-summary {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #27272a;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.arm-seat-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: .72rem;
}
.arm-seat-label { color: #71717a; font-weight: 600; }
.arm-seat-val { color: #d4d4d8; font-weight: 700; }

.arena-result-matrix-wrap { overflow-x: auto; margin-top: 8px; }
.arena-result-matrix { border-collapse: collapse; font-size: .7rem; min-width: 100%; }
.arena-result-matrix th, .arena-result-matrix td {
  padding: 6px 8px; border: 1px solid #27272a; text-align: center; white-space: nowrap;
}
.arena-result-matrix th { background: #27272a; color: #a1a1aa; font-weight: 700; }
.arena-result-matrix th.sticky-col, .arena-result-matrix td.sticky-col {
  position: sticky; left: 0; background: #18181b; z-index: 1; text-align: left; font-weight: 600;
}
.arena-result-matrix td.pos { color: #4ade80; font-weight: 700; }
.arena-result-matrix td.neg { color: #f87171; font-weight: 700; }
.arena-result-matrix td.zero { color: #52525b; }

.arena-result-nom-block {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid #27272a;
  font-size: .72rem; color: #a1a1aa; line-height: 1.6;
}
.arena-result-nom-block strong { color: #e4e4e7; }

.arena-result-loading, .arena-result-err { text-align: center; padding: 20px; color: #71717a; font-size: .85rem; }
.arena-result-err { color: #f87171; }

/* VIP: вкладки «Ход гонки» / «Аналитика» */
.arm-vip-paywall {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 16px 8px 24px;
}
.arm-vip-paywall-inner {
  text-align: center;
  max-width: 280px;
}
.arm-vip-paywall-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.4));
}
.arm-vip-paywall-title {
  font-size: .9rem;
  font-weight: 800;
  color: #c9c9c9;
  margin-bottom: 10px;
  line-height: 1.35;
}
.arm-vip-paywall-desc {
  font-size: .72rem;
  color: #71717a;
  line-height: 1.5;
  margin: 0 0 18px;
}
.arm-vip-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ae971c;
  color: #0a0a0b;
  border: none;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s, transform .15s;
  box-shadow: 0 6px 20px rgba(174,151,28,.25);
}
.arm-vip-cta:hover {
  background: #c9a82a;
  transform: translateY(-1px);
}
.arm-vip-cta:active { transform: translateY(0); }

/* ── Вкладка: номинации (сетка карточек) ───────────────────── */
.arm-nom-section-title,
.arm-analytics-section-title {
  font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  color: #71717a; margin-bottom: 10px; margin-top: 4px;
}
.arm-analytics-section-title { margin-top: 20px; padding-top: 16px; border-top: 1px solid #27272a; }

.arm-nom-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 768px) {
  .arm-nom-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 420px) {
  .arm-nom-grid { grid-template-columns: 1fr; }
}

.arm-nom-card {
  position: relative;
  border-radius: 14px;
  padding: 14px 12px 12px;
  overflow: hidden;
  border: 1px solid #3f3f46;
  background: linear-gradient(165deg, rgba(39,39,42,.95), rgba(24,24,27,.98));
  box-shadow: 0 8px 28px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04);
  transition: transform .18s ease, border-color .18s, box-shadow .18s;
}
.arm-nom-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
}

.arm-nom-card--mafia {
  border-color: rgba(198,40,40,.35);
  background: linear-gradient(165deg, rgba(198,40,40,.12), rgba(24,24,27,.98));
}
.arm-nom-card--sheriff {
  border-color: rgba(100,181,246,.35);
  background: linear-gradient(165deg, rgba(100,181,246,.1), rgba(24,24,27,.98));
}
.arm-nom-card--cursed {
  border-color: rgba(148,163,184,.3);
  background: linear-gradient(165deg, rgba(71,85,105,.2), rgba(24,24,27,.98));
}
.arm-nom-card--gold {
  border-color: rgba(212,175,55,.4);
  background: linear-gradient(165deg, rgba(212,175,55,.14), rgba(24,24,27,.98));
}
.arm-nom-card--sniper {
  border-color: rgba(69,155,180,.35);
  background: linear-gradient(165deg, rgba(69,155,180,.12), rgba(24,24,27,.98));
}
.arm-nom-card--comeback {
  border-color: rgba(167,139,250,.35);
  background: linear-gradient(165deg, rgba(124,92,232,.12), rgba(24,24,27,.98));
}
.arm-nom-card--quickdraw {
  border-color: rgba(250,204,21,.3);
  background: linear-gradient(165deg, rgba(250,204,21,.1), rgba(24,24,27,.98));
}
.arm-nom-card--tilt {
  border-color: rgba(244,114,182,.35);
  background: linear-gradient(165deg, rgba(244,114,182,.1), rgba(24,24,27,.98));
}
.arm-nom-card--tilt-empty .arm-nom-fail {
  color: #71717a;
  font-weight: 600;
}

/* Обёртка тизера: контент под оверлеем (как VIP_TEASE на карточках профиля) */
.arm-pane-tease-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  min-height: 180px;
  max-height: min(52vh, 420px);
}
.arm-pane-tease-content {
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  max-height: inherit;
  filter: blur(8px) grayscale(40%);
  opacity: .5;
}

/* VIP tease overlay (как на профиле зрителя) */
.arena-result-pane .vip-lock-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; z-index: 10; border-radius: inherit;
  padding: 20px; text-align: center;
}
.arena-result-pane .vip-lock-overlay .vip-lock-icon { font-size: 2rem; line-height: 1; }
.arena-result-pane .vip-lock-overlay .vip-lock-text { color: #e2e8f0; font-weight: 600; font-size: .9rem; }
.arena-result-pane .vip-lock-overlay .vip-lock-btn {
  padding: 7px 20px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff; border: none; border-radius: 20px;
  font-weight: 700; cursor: pointer; font-size: .85rem;
  transition: opacity .15s;
}
.arena-result-pane .vip-lock-overlay .vip-lock-btn:hover { opacity: .88; }
.arm-nom-card--empty {
  opacity: .55;
  border-color: #3f3f46;
  background: rgba(24,24,27,.85);
  box-shadow: none;
}
.arm-nom-card--empty:hover {
  transform: none;
  box-shadow: none;
}
.arm-nom-fail {
  font-size: .78rem !important;
  font-weight: 600 !important;
  color: #52525b !important;
}

.arm-nom-card-emoji {
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}
.arm-nom-card-label {
  font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: #a1a1aa; margin-bottom: 6px;
}
.arm-nom-card-value {
  font-size: .92rem; font-weight: 800; color: #f4f4f5; line-height: 1.35;
  word-break: break-word;
}
.arm-nom-card-value--slot { font-size: .82rem; font-weight: 700; color: #e4e4e7; }
.arm-nom-hint {
  display: block; margin-top: 4px;
  font-size: .65rem; font-weight: 600; color: #71717a; text-transform: none; letter-spacing: 0;
}
.arm-nom-empty { color: #52525b; font-weight: 600; }
.arm-nom-card-meta {
  margin-top: 6px; font-size: .62rem; font-weight: 600; color: #71717a;
}
