/*
 * Phase 8Q.4-F -- BLANKET CHAOS.
 *
 *   .bcx-*      the Blanket Chaos area of ARSENAL -> ADMIN CHAOS
 *               (admin-blanket-chaos.js; its cards reuse the .acx-* card,
 *               picker and confirmation styles of phase8q3-chaos.css)
 *   .bc-host,
 *   .bc-chip    the persistent family-wide status chips on Home, Games and
 *               Prizes (blanket-chaos.js)
 *   .bc-rules   the `blanket_chaos.<key>` rules cards
 *
 * Mobile first (320-375 px): every row wraps, nothing has a fixed width,
 * every control is at least the tap height, inputs are 16 px so iOS does not
 * zoom. Only tokens defined in app.css :root are used. Linked before
 * phase8k.css, which stays LAST.
 */

/* ---------------------------- the console area --------------------------- */

.bcx-panel {
  margin-top: 14px;
}

.bcx-live {
  margin: 0 0 10px;
  min-width: 0;
}

.bcx-live__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bcx-live__item {
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  padding: 10px;
  margin: 0 0 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.bcx-live__line {
  margin: 0;
  font-weight: 700;
}

.bcx-live__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.bcx-live__controls .acx-input {
  font-size: 16px;
}

.bcx-live__controls .btn {
  min-height: var(--tap);
}

.bcx-live__emergency {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: var(--tap);
  color: var(--warn);
  font-size: 0.85rem;
}

.bcx-live__emergency input {
  width: 20px;
  height: 20px;
}

/* ------------------------------ the status chips ------------------------- */

.bc-host {
  margin: 0 0 10px;
  min-width: 0;
}

.bc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bc-chip {
  min-height: var(--tap);
  max-width: 100%;
  padding: 6px 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.bc-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.bc-chip--community_pot,
.bc-chip--mystery_night {
  border-color: var(--warn);
}

/* ------------------------------- the rules cards ------------------------- */

.bc-rules__lead {
  margin: 0 0 10px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.bc-rules__list {
  margin: 0;
}

.bc-rules__label {
  margin: 8px 0 2px;
  color: var(--text-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.bc-rules__text {
  margin: 0;
  overflow-wrap: anywhere;
}

.chaos-reveal__rules {
  margin-top: 10px;
  min-height: var(--tap);
}

@media (prefers-reduced-motion: reduce) {
  .bc-chip {
    transition: none;
  }
}
