/* ===== Квиз-Дуэль: стили экранов UI-BASE ===== */

/* --- Onboarding --- */
.onb-logo { text-align: center; padding: 36px 0 8px; animation: popIn .35s ease; }
.onb-logo .logo-title { font-size: 38px; font-weight: 800; letter-spacing: .06em; }
.onb-logo .logo-dot { color: var(--yellow-deep); }
.onb-logo .logo-sub { color: var(--ink-soft); font-size: 15px; margin-top: 4px; font-weight: 700; }
.onb-emoji-pick { font-size: 26px; text-align: center; margin-top: 6px; }

/* --- Меню --- */
.menu-team { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.menu-team .team-name { font-size: 20px; font-weight: 800; line-height: 1.25; word-break: break-word; }
.menu-stats { display: flex; gap: 10px; margin-top: 14px; }
.stat-box {
  flex: 1;
  background: var(--bg);
  border-radius: var(--radius-s);
  padding: 10px 8px;
  text-align: center;
}
.stat-box .stat-val { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-box .stat-cap { font-size: 11px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.menu-cta { margin-top: 16px; }
.in-duel-note { text-align: center; font-size: 13px; color: var(--ink-soft); margin-top: 10px; font-weight: 700; }
.menu-row { display: flex; gap: 10px; margin-top: 10px; }
.menu-row .btn { flex: 1; }

/* --- Приглашение (invite) --- */
.invite-link-card { text-align: center; padding: 24px 20px; }
.invite-url {
  background: var(--bg);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  word-break: break-all;
  color: var(--ink-soft);
  margin: 14px 0;
}
.waiting { text-align: center; padding: 10px 0 4px; font-weight: 800; font-size: 16px; }
.dots::after { content: ''; animation: dots 1.5s steps(4, end) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
.invite-ttl { text-align: center; color: var(--ink-soft); font-size: 13px; font-weight: 700; margin-top: 6px; font-variant-numeric: tabular-nums; }

/* --- Принятие вызова (accept) --- */
.accept-hero { text-align: center; padding: 8px 0 4px; }
.accept-hero .hero-emoji { font-size: 36px; }
.accept-hero .hero-text { font-size: 17px; font-weight: 800; margin-top: 8px; line-height: 1.35; }
.accept-hero .hero-text .hl { background: var(--yellow); border-radius: 8px; padding: 0 6px; }

/* --- Финал --- */
.final-trophy { text-align: center; font-size: 52px; animation: popIn .4s ease; margin-top: 6px; }
.final-verdict { text-align: center; font-size: 22px; font-weight: 800; margin-top: 4px; }
.final-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 14px 0 4px;
  font-size: 40px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.final-score .colon { color: var(--ink-faint); font-size: 30px; }
.final-players { display: flex; gap: 10px; margin-top: 8px; }
.final-player {
  flex: 1;
  background: var(--bg);
  border-radius: var(--radius-s);
  padding: 10px;
  text-align: center;
}
.final-player .p-name { font-weight: 800; font-size: 14px; word-break: break-word; }
.final-player .p-team { color: var(--ink-soft); font-size: 12px; font-weight: 700; margin-top: 2px; word-break: break-word; }
.final-player.is-winner { background: var(--yellow); }
.final-player.is-winner .p-team { color: var(--ink); }
.round-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.round-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--bg);
  border-radius: var(--radius-s);
  font-size: 13px;
  font-weight: 700;
}
.round-row .r-idx { flex: 0 0 22px; color: var(--ink-faint); font-weight: 800; text-align: center; }
.round-row .r-who { flex: 1; color: var(--ink-soft); word-break: break-word; }
.round-row .r-mark { flex: 0 0 auto; font-weight: 800; }
.round-row .r-mark.ok { color: var(--ok); }
.round-row .r-mark.fail { color: var(--danger); }
.round-row .r-pts { flex: 0 0 auto; font-variant-numeric: tabular-nums; font-weight: 800; }

/* --- Заголовки списков --- */
.list-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 20px 0 10px 4px;
}
.empty-note { text-align: center; color: var(--ink-faint); font-weight: 700; padding: 24px 0; font-size: 14px; }
