html,
body.status-page {
  min-height: 100%;
  margin: 0;
}

body.status-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--bb-text, #f7f9ff);
  background:
    radial-gradient(circle at 18% 12%, rgba(61, 145, 235, 0.18), transparent 34%),
    radial-gradient(circle at 84% 86%, rgba(106, 67, 189, 0.2), transparent 38%),
    linear-gradient(145deg, var(--bb-bg, #080f1e), var(--bb-bg-deep, #050914));
  font-family: var(--bb-font-body, "Lato", sans-serif);
}

.status-card {
  width: min(100%, 680px);
  padding: clamp(24px, 5vw, 42px);
  border: 3px solid var(--bb-border, #385478);
  border-radius: var(--bb-radius-window, 10px);
  color: var(--bb-text, #f7f9ff);
  background: var(--bb-surface-gradient, linear-gradient(180deg, #111f37, #0b1629));
  box-shadow: var(--bb-frame-shadow);
  text-align: center;
}

.status-logo {
  width: 48px;
  height: 48px;
  display: block;
  margin: 0 auto 20px;
  object-fit: contain;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.45));
}

.status-code,
.status-title {
  margin: 0;
  color: #fff;
  font-family: var(--bb-font-display, "Press Start 2P", monospace);
  line-height: 1.35;
  text-transform: uppercase;
  text-shadow: var(--bb-title-shadow, 3px 4px 0 rgba(2, 5, 12, 0.72));
}

.status-code {
  color: var(--bb-gold, #efc86e);
  font-size: clamp(48px, 12vw, 96px);
}

.status-title {
  font-size: clamp(18px, 4vw, 28px);
}

.status-copy {
  margin: 18px auto 0;
  max-width: 54ch;
  color: var(--bb-text-soft, #c9d6e8);
  font-size: 16px;
  line-height: 1.55;
}

.status-detail {
  margin-top: 20px;
  padding: 14px;
  border: 2px solid var(--bb-border-soft, #263b59);
  border-radius: var(--bb-radius-card, 0);
  color: var(--bb-text-soft, #c9d6e8);
  background: rgba(5, 13, 28, 0.68);
  box-shadow: var(--bb-inset-shadow);
  line-height: 1.5;
  text-align: left;
  white-space: pre-wrap;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.status-action {
  min-width: 150px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  color: #fff;
  background: var(--bb-primary-gradient, linear-gradient(180deg, #438feb, #285fc0));
  text-decoration: none;
}

.status-action.secondary {
  background: linear-gradient(180deg, #43536b, #2d3b50);
}

.status-action.success {
  background: var(--bb-success-gradient, linear-gradient(180deg, #19c890, #079063));
}

body.banned-page {
  background:
    radial-gradient(circle at 20% 16%, rgba(214, 74, 74, 0.2), transparent 38%),
    radial-gradient(circle at 82% 84%, rgba(169, 40, 51, 0.2), transparent 40%),
    linear-gradient(145deg, #120b12, var(--bb-bg-deep, #050914));
}

body.banned-page .status-card {
  border-color: #824552;
}

body.banned-page .status-title {
  color: #ffb1b8;
}

body.banned-page .status-detail {
  border-color: #824552;
  background: rgba(91, 22, 32, 0.34);
}

.status-spinner {
  width: 42px;
  height: 42px;
  margin: 24px auto 0;
  border: 5px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--bb-blue, #3d91eb);
  border-radius: var(--bb-radius-pill, 999px);
  animation: statusSpin 0.9s linear infinite;
}

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

@media (max-width: 480px) {
  body.status-page {
    padding: 16px;
  }

  .status-card {
    padding: 24px 18px;
  }

  .status-actions {
    display: grid;
  }

  .status-action {
    width: 100%;
  }
}
