/* The public status page.
   Colours copied from app.css so the two pages are recognisably one site.
   Deliberately its own file: app.css is 22 KB of editor layout and none of
   it applies here. */

:root {
  --bg: #0e0e13;
  --panel: #16161e;
  --line: #2a2a38;
  --text: #e9e5f5;
  --muted: #8f89a3;
  --accent: #8b5cf6;
  --danger: #ff5c3c;
  --ok: #4ade68;
  --warn: #f5a524;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}

main {
  max-width: 46em;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

h1 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
}

.block { margin-bottom: 14px; }

/* The state banner: a dot and two lines of text. */
#stateCard {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--muted);
  flex: 0 0 auto;
}
.dot.up      { background: var(--ok); }
.dot.restart { background: var(--warn); }
.dot.down    { background: var(--danger); }
.dot.unknown { background: var(--muted); }

.state { font-size: 17px; font-weight: 600; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
/* One column on a phone. Most people opening a "is the server up" page
   are on one. */
@media (max-width: 34em) {
  .grid { grid-template-columns: 1fr; }
}

.label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
}

.big {
  font-size: 26px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.sub { font-size: 13px; color: var(--muted); }

/* An unknown value is drawn differently from a real one, so "—" cannot be
   mistaken for a measurement. */
.big.unknown { color: var(--muted); font-weight: 400; font-size: 20px; }
.sub.problem { color: var(--danger); }

.count { color: var(--muted); font-weight: 400; }

.players {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.player {
  background: #0d0d14;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 13px;
}

.players.empty, .players.unknown {
  color: var(--muted);
  font-size: 14px;
  display: block;
}

.foot {
  color: var(--muted);
  font-size: 12px;
  margin-top: 22px;
}
.foot a { color: var(--accent); }
