/*
 * Campaign rounds overview.
 *
 * One row per round: name and state on the left, the action on the right.
 * Below 480 px the action drops under the label and goes full width, like
 * the other primary buttons.
 */

.rounds__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.round {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.round__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.round__name { font-weight: 650; }

.round__status {
  font-size: var(--size-small);
  color: var(--color-muted);
}

.round--open,
.round--in-progress {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.round--done .round__status { color: var(--correct); }
.round--done .round__status::before { content: "✓ "; }

.round--closed,
.round--ended,
.round--unknown { background: var(--color-surface-sunken); }

.rounds__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  font-size: var(--size-small);
  color: var(--color-muted);
}

.rounds__who { overflow-wrap: anywhere; min-width: 0; }

@media (max-width: 480px) {
  .round { flex-direction: column; align-items: stretch; }
  .round .button { width: 100%; }
}
