.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(23, 32, 13, 0.3);
  border-top-color: #17200d;
  border-radius: 999px;
  animation: spin 0.7s linear infinite;
}

.risk-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.risk-high {
  background: rgba(248, 113, 113, 0.14);
  color: #fca5a5;
}

.risk-medium {
  background: rgba(250, 204, 21, 0.14);
  color: #fde047;
}

.risk-low {
  background: rgba(134, 239, 172, 0.14);
  color: #86efac;
}

.risk-green {
  background: rgba(134, 239, 172, 0.14);
  color: #86efac;
}

.risk-yellow {
  background: rgba(250, 204, 21, 0.14);
  color: #fde047;
}

.risk-red-flag,
.risk-biohazard {
  background: rgba(248, 113, 113, 0.14);
  color: #fca5a5;
}

.clapback-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding-left: 1.4rem;
  color: #ffe5c2;
}

.clapback-list li {
  padding-left: 0.35rem;
  line-height: 1.6;
}

.flag-score {
  display: flex;
  min-width: 126px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #76552f;
  border-radius: 1rem;
  background: #211b12;
  padding: 0.85rem 1rem;
}

.flag-score span {
  color: #f2a96d;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.flag-score small {
  margin-top: 0.35rem;
  color: #a2aaa1;
  font-size: 0.7rem;
  font-weight: 700;
}

.category-chip {
  border-radius: 999px;
  background: rgba(255, 130, 121, 0.1);
  padding: 0.35rem 0.6rem;
  color: #fca5a5;
  font-size: 0.68rem;
  font-weight: 800;
}

.phrase-card {
  border-left: 2px solid #f2a96d;
  border-radius: 0 1rem 1rem 0;
  background: #111612;
  padding: 1rem;
}

.example-chip {
  border: 1px solid #2b342e;
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  color: #a2aaa1;
  font-size: 0.72rem;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.example-chip:hover {
  border-color: #c9f56a;
  background: rgba(201, 245, 106, 0.08);
  color: #c9f56a;
}

.stat-card {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #2b342e;
  border-radius: 1.25rem;
  background: #171c19;
  padding: 1rem 1.25rem;
}

.stat-number {
  color: #c9f56a;
  font-size: 1.35rem;
  font-weight: 900;
}

.stat-label {
  color: #a2aaa1;
  font-size: 0.72rem;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 0.9rem;
  background: #111612;
  padding: 0.75rem 1rem;
  color: #d9ded8;
  font-size: 0.8rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
