/* =========================================================
   Tournament Site — Ban Status Stylesheet
   Loaded on every player-facing page AFTER styles.css and
   home.css so it inherits shared tokens and sits right below
   the sticky header. Driven entirely by ban-status.js, which
   reads the ban state written by the Admin Players section.
   ========================================================= */

.ban-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(232, 40, 63, 0.12);
  border-bottom: 1px solid var(--crimson-dim);
  color: var(--text-primary);
  padding: 12px 28px;
  font-size: 13px;
}

.ban-banner svg {
  width: 18px;
  height: 18px;
  stroke: var(--crimson);
  fill: none;
  flex: none;
}

/* ---------- Locked join actions ---------- */

[data-join-action].is-ban-locked {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.4);
}

/* ---------- Ban popup ---------- */

.ban-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 6, 9, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ban-modal {
  width: 100%;
  max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--crimson-dim);
  border-radius: var(--radius-clip);
  padding: 28px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ban-modal__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(232, 40, 63, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.ban-modal__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--crimson);
  fill: none;
}

.ban-modal__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin: 0;
}

.ban-modal__body {
  font-size: 14px;
  color: var(--text-primary);
  margin: 0;
}

.ban-modal__note {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.ban-modal__close {
  width: 100%;
}

/* ---------- Responsive ---------- */

@media (max-width: 480px) {
  .ban-banner {
    padding: 10px 16px;
    font-size: 12px;
  }

  .ban-modal {
    padding: 24px 20px;
  }
}
