*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #000;
  font-family: 'DM Sans', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 44px;
}

/* ── Container ── */
.container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  transition: background 0.5s ease;
}

/* Radial glow from center instead of top-to-bottom gradient */
.container.good {
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgb(0, 36, 14) 0%, #000 70%);
}

.container.bad {
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgb(36, 0, 0) 0%, #000 70%);
}

.container.degraded {
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgb(36, 22, 0) 0%, #000 70%);
}

.container.loading {
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgb(22, 22, 22) 0%, #000 70%);
}

/* ── Logo ── */
.logo {
  width: 140px;
  margin-bottom: 1.6rem;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.6));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px);  }
  50%       { transform: translateY(-8px); }
}

/* ── Title ── */
h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.6rem;
}

/* ── Message ── */
p {
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  max-width: 480px;
  padding: 0 24px;
  font-size: 0.95rem;
  line-height: 1.7;
}

a.good { color: #12d981; text-decoration: underline; text-underline-offset: 3px; }
a.bad  { color: #d93a12; text-decoration: underline; text-underline-offset: 3px; }
a.degraded { color: #f59e0b; text-decoration: underline; text-underline-offset: 3px; }

/* ── Details box ── */
.details {
  margin-top: 1.25rem;
  padding: 0.9rem 1.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  max-width: 480px;
  width: calc(100% - 48px);
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.875rem;
  line-height: 1.6;
  text-align: center;
}

.details.hidden { display: none; }

/* ── Status pill ── */
.status-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  padding: 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.02em;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.container.good  .pill-dot { background: #12d981; box-shadow: 0 0 6px #12d981; animation: blink 2s ease-in-out infinite; }
.container.bad   .pill-dot { background: #d93a12; box-shadow: 0 0 6px #d93a12; animation: blink 1s ease-in-out infinite; }
.container.degraded .pill-dot { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; animation: blink 2.5s ease-in-out infinite; }
.container.loading .pill-dot { background: #555; }

@keyframes blink {
  0%, 100% { opacity: 1;   }
  50%       { opacity: 0.3; }
}

/* ── Footer ── */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #0d0d0d;
  border-top: 1px solid #1e1e1e;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
  font-family: 'DM Sans', sans-serif;
}

footer a {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover { color: rgba(255, 255, 255, 0.6); }

.sep { opacity: 0.3; }