/* The status page: same znep token system as the landing page, deliberately smaller. */

:root {
  --color-bg: #09090b;
  --color-panel: #111118;
  --color-panel-elevated: #18181f;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-primary: #8b5cf6;
  --color-accent: #06b6d4;
  --color-success: #22c55e;
  --color-danger: #ef4444;
  --color-text: #f0e6f5;
  --color-text-dim: #a599b2;
  --color-muted: #7a6e8a;
  --radius-2xl: 1rem;
  --radius-lg: 0.5rem;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
}

/* Ambient light, the same recipe as the landing page. */
.aurora {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora__blob {
  position: absolute;
  width: 40rem;
  height: 40rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.aurora__blob--a {
  top: -18rem;
  left: -10rem;
  background: var(--color-primary);
  animation: drift-a 26s ease-in-out infinite;
}

.aurora__blob--b {
  right: -12rem;
  bottom: -16rem;
  background: var(--color-accent);
  animation: drift-b 32s ease-in-out infinite;
}

.aurora__blob--c {
  top: 30%;
  left: 45%;
  background: var(--color-primary);
  animation: drift-c 38s ease-in-out infinite;
}

@keyframes drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6rem, 4rem, 0) scale(1.15); }
}

@keyframes drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.1); }
  50% { transform: translate3d(-5rem, -3rem, 0) scale(1); }
}

@keyframes drift-c {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-7rem, 5rem, 0) scale(1.2); }
}

.shell {
  position: relative;
  max-width: 34rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 8vh, 5rem) 1.5rem 3rem;
}

.head {
  margin-bottom: 1.75rem;
}

.back {
  display: inline-block;
  color: var(--color-text-dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.back:hover,
.back:focus-visible {
  color: var(--color-text);
}

.title {
  margin: 0.75rem 0 0.25rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sub {
  margin: 0;
  color: var(--color-text-dim);
}

/* One card, glass, with a gradient ring masked to its 1px border. */
.card {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius-2xl);
  background: color-mix(in srgb, var(--color-panel) 82%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  isolation: isolate;
}

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.card__ring {
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), transparent 0deg, var(--color-accent) 90deg, transparent 200deg);
  animation: ring-spin 7s linear infinite;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
}

@keyframes ring-spin {
  to { --angle: 360deg; }
}

.rows {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-lg);
}

.row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.02);
}

.row__label {
  color: var(--color-text-dim);
}

.row__value {
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
}

.pill {
  padding: 0.1875rem 0.5rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pill--up {
  background: rgba(34, 197, 94, 0.14);
  color: var(--color-success);
}

.pill--down {
  background: rgba(239, 68, 68, 0.14);
  color: var(--color-danger);
}

.note {
  margin: 1.25rem 0 0;
  color: var(--color-muted);
}

.note a {
  color: var(--color-text-dim);
}

@media (prefers-reduced-motion: reduce) {
  .aurora__blob,
  .card__ring {
    animation: none;
  }
}
