:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --left: #e11d48;
  --left-soft: #ffe4e6;
  --right: #2563eb;
  --right-soft: #dbeafe;
  --shadow-card: 0 18px 42px rgba(15, 23, 42, 0.11), 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --radius-xl: 24px;
  --radius-lg: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 14%, rgba(225, 29, 72, 0.08), transparent 36%),
    radial-gradient(circle at 88% 18%, rgba(37, 99, 235, 0.09), transparent 38%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

.app-shell {
  width: 100%;
  max-width: 460px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* --- HOME SCREEN --- */
#screen-home {
  justify-content: flex-start;
  gap: 18px;
  padding-top: 20px;
}

.home-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 24px 26px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.brand-split {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.pill {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 11px;
  border-radius: 999px;
}

.pill--left {
  background: var(--left-soft);
  color: var(--left);
}

.pill--right {
  background: var(--right-soft);
  color: var(--right);
}

.pill-vs {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.home-title {
  margin: 0 0 12px;
  font-size: clamp(2.5rem, 9vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(110deg, var(--left) 0%, #7c3aed 50%, var(--right) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-subtitle {
  margin: 0 0 28px;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.home-footer {
  margin-top: 24px;
  padding: 0 8px;
  text-align: center;
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* --- BUTTONS --- */
.btn {
  appearance: none;
  border: none;
  border-radius: var(--radius-lg);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, opacity 0.15s ease, background-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn--large {
  width: 100%;
  padding: 16px 24px;
  font-size: 1.06rem;
}

.btn--primary {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.2);
}

.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn--left {
  flex: 1;
  background: var(--left-soft);
  color: var(--left);
  border: 1.5px solid rgba(225, 29, 72, 0.25);
  padding: 15px 14px;
  font-size: 0.98rem;
}

.btn--left:hover:not(:disabled) {
  background: #fecdd3;
}

.btn--right {
  flex: 1;
  background: var(--right-soft);
  color: var(--right);
  border: 1.5px solid rgba(37, 99, 235, 0.25);
  padding: 15px 14px;
  font-size: 0.98rem;
}

.btn--right:hover:not(:disabled) {
  background: #bfdbfe;
}

.btn--next {
  width: 100%;
  margin-top: 12px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 16px;
  font-size: 0.94rem;
}

.btn-icon {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.error-banner {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

/* --- GAME SCREEN --- */
#screen-game {
  gap: 14px;
}

.game-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-wrap {
  flex: 1;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.progress-brand {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.progress-count {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 8.33%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--left), var(--right));
  transition: width 0.25s ease;
}

.card-stage {
  position: relative;
  flex: 0 0 380px;
  height: 380px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto 0;
  user-select: none;
}

@media (max-height: 680px) {
  .card-stage {
    flex: 0 0 330px;
    height: 330px;
  }
}

.card-underlay,
.swipe-card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1.5px solid var(--border);
  padding: 24px 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.card-underlay {
  transform: scale(0.95) translateY(10px);
  opacity: 0.65;
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}

.swipe-card {
  z-index: 2;
  box-shadow: var(--shadow-card);
  cursor: grab;
  touch-action: none;
  will-change: transform;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.swipe-card--animating {
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.swipe-card:active {
  cursor: grabbing;
}

.swipe-card.is-showing-feedback {
  cursor: pointer;
}

.swipe-card--voted-left {
  border-color: rgba(225, 29, 72, 0.45);
  box-shadow: 0 18px 42px rgba(225, 29, 72, 0.14), 0 4px 12px rgba(15, 23, 42, 0.05);
}

.swipe-card--voted-right {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.14), 0 4px 12px rgba(15, 23, 42, 0.05);
}

.swipe-stamp {
  position: absolute;
  top: 18px;
  padding: 5px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  border: 2.5px solid currentColor;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease;
}

.swipe-stamp--left {
  right: 18px;
  color: var(--left);
  background: rgba(255, 228, 230, 0.94);
  transform: rotate(9deg);
}

.swipe-stamp--right {
  left: 18px;
  color: var(--right);
  background: rgba(219, 234, 254, 0.94);
  transform: rotate(-9deg);
}

.card-main {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 14px;
  overflow: hidden;
}

.card-category {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.card-word {
  margin: 0;
  font-size: clamp(1.5rem, 5.4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
}

.card-bottom-slot {
  width: 100%;
  flex: 0 0 104px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  animation: feedbackFadeIn 0.16s ease-out;
}

/* --- IN-CARD FEEDBACK --- */
.card-feedback {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  animation: feedbackFadeIn 0.18s ease-out;
}

@keyframes feedbackFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feedback-headline {
  margin: 0 0 9px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  color: var(--text);
}

.split-bar {
  display: flex;
  height: 11px;
  border-radius: 999px;
  overflow: hidden;
  background: #e2e8f0;
}

.split-bar__left {
  background: var(--left);
  transition: width 0.3s ease;
}

.split-bar__right {
  background: var(--right);
  transition: width 0.3s ease;
}

.feedback-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 700;
}

.stat-left {
  color: var(--left);
  white-space: nowrap;
}

.stat-total {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.74rem;
  text-align: center;
}

.stat-right {
  color: var(--right);
  white-space: nowrap;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 0;
  padding-top: 4px;
}

/* --- SUMMARY SCREEN --- */
#screen-summary {
  gap: 14px;
  padding-top: 8px;
}

.summary-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.summary-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.summary-title {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.summary-subtitle {
  margin: 0 0 18px;
  font-size: 0.94rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.conformity-box {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
}

.conformity-main {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 800;
}

.conformity-ratio {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.summary-actions {
  display: flex;
  gap: 10px;
}

.summary-actions .btn {
  flex: 1;
  padding: 13px 14px;
  font-size: 0.92rem;
}

.summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 13px 14px;
  box-shadow: var(--shadow-sm);
}

.summary-item__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.summary-item__label {
  font-weight: 700;
  font-size: 0.96rem;
}

.summary-item__cat {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
}

.choice-badge {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
}

.choice-badge--left {
  background: var(--left-soft);
  color: var(--left);
}

.choice-badge--right {
  background: var(--right-soft);
  color: var(--right);
}

.summary-item__bar {
  display: flex;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: #e2e8f0;
  margin-bottom: 6px;
}

.summary-item__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

@media (max-width: 380px) {
  .summary-actions {
    flex-direction: column;
  }
}


/* === V2: Modes, Duel, Dilemme, Carte résultat & Modale === */

[hidden] {
  display: none !important;
}

.home-modes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}

.home-modes .btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 20px;
}

.btn-title {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.btn-sub {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.92;
}

.home-modes .btn--daily {
  background: linear-gradient(115deg, #e11d48 0%, #7c3aed 52%, #2563eb 100%);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 14px 30px -8px rgba(124, 58, 237, 0.55),
    0 4px 12px rgba(225, 29, 72, 0.25);
  padding: 18px 22px;
  font-size: 1.1rem;
}

.home-modes .btn--daily:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow:
    0 18px 34px -8px rgba(124, 58, 237, 0.65),
    0 6px 16px rgba(37, 99, 235, 0.3);
}

.home-modes .btn--random-secondary {
  background: #f8fafc;
  color: #334155;
  border: 1.5px solid #e2e8f0;
  box-shadow: none;
  padding: 12px 18px;
  font-size: 0.96rem;
}

.home-modes .btn--random-secondary .btn-sub {
  color: #64748b;
  font-size: 0.76rem;
  opacity: 1;
}

.home-modes .btn--random-secondary:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.btn--duel {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 10px 22px -8px rgba(79, 70, 229, 0.55);
}

.btn--duel:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-link {
  background: transparent;
  border: none;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-link:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

.home-footer-actions {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.duel-banner {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(37, 99, 235, 0.1));
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.duel-banner-text {
  margin: 0;
  font-weight: 700;
  color: #4c1d95;
  font-size: 0.95rem;
}

.duel-result-box {
  margin: 16px 0 0;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.09), rgba(79, 70, 229, 0.08));
  border: 1px solid rgba(124, 58, 237, 0.25);
  text-align: left;
}

.duel-score {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #4c1d95;
  text-align: center;
}

.duel-caption {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: #5b21b6;
  text-align: center;
}

.duel-opposed-wrap {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(124, 58, 237, 0.16);
}

.duel-opposed-title {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5b21b6;
}

.duel-opposed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.duel-opposed-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 10px;
  padding: 7px 10px;
  color: #1e293b;
}

.duel-opposed-label {
  font-weight: 600;
  flex: 1;
}

.duel-opposed-picks {
  font-size: 0.78rem;
  white-space: nowrap;
  color: #475569;
}

.summary-grid-preview {
  margin: 10px 0 0;
  font-size: 1.15rem;
  letter-spacing: 2px;
  word-break: break-word;
}

.dilemma-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  text-align: left;
}

.dilemma-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #b45309;
  margin-bottom: 6px;
}

.dilemma-text {
  margin: 0 0 10px;
  font-size: 0.94rem;
  line-height: 1.45;
  color: #1e293b;
  font-weight: 600;
}

.dilemma-bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #e2e8f0;
}

.dilemma-bar-left {
  background: var(--left, #e11d48);
  height: 100%;
}

.dilemma-bar-right {
  background: var(--right, #2563eb);
  height: 100%;
}

.summary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 480px) {
  .summary-actions {
    grid-template-columns: 1fr;
  }
}

.summary-action-feedback {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f766e;
  background: #ccfbf1;
  border-radius: 10px;
  padding: 8px 12px;
}

.summary-propose-row {
  display: flex;
  justify-content: center;
  margin: 10px 0 4px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.modal-desc {
  margin: 8px 0 16px;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.45;
}

.propose-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  margin-top: 4px;
}

.char-count {
  font-weight: 500;
  color: #64748b;
  font-size: 0.78rem;
}

.form-input,
.form-select {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0f172a;
  background: #f8fafc;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #2563eb;
  background: #ffffff;
}

.propose-status {
  margin: 4px 0 0;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
}

.propose-status--ok {
  background: #dcfce7;
  color: #166534;
}

.propose-status--error {
  background: #fee2e2;
  color: #991b1b;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}


/* --- V2.1 RETENTION: STREAK, COLLECTION & HIGHLIGHTS --- */
.streak-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 auto 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fed7aa;
  color: #c2410c;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.12);
}

.collection-tracker {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  text-align: left;
}

.collection-tracker--summary {
  margin: 14px 0 0;
}

.collection-header {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
}

.collection-bar-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.collection-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--left) 0%, #7c3aed 50%, var(--right) 100%);
  transition: width 0.35s ease;
}

.highlights-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px 18px;
  box-shadow: var(--shadow-card);
}

.highlights-header {
  margin-bottom: 14px;
  text-align: left;
}

.highlights-title {
  margin: 0 0 4px;
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.highlights-subtitle {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.highlights-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.highlight-card {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  text-align: left;
}

.highlight-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.highlight-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.highlight-tag--tight {
  background: #f3e8ff;
  color: #6d28d9;
}

.highlight-tag--left {
  background: var(--left-soft);
  color: var(--left);
}

.highlight-tag--right {
  background: var(--right-soft);
  color: var(--right);
}

.highlight-cat {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--text-muted);
}

.highlight-label {
  margin: 0 0 8px;
  font-size: 0.96rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.highlight-stats {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.highlight-pct--left {
  color: var(--left);
}

.highlight-pct--right {
  color: var(--right);
}

.highlight-total {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--text-muted);
}

.highlight-bar {
  display: flex;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: #e2e8f0;
}

.highlight-bar-left {
  background: var(--left);
  height: 100%;
}

.highlight-bar-right {
  background: var(--right);
  height: 100%;
}
