:root {
  color-scheme: dark;
  --page: #14110f;
  --panel: #1c1815;
  --line: #2d251f;
  --ink: #f2ebe3;
  --muted: #b9ab98;
  --gold: #e8c98a;
  --up: #6fbf73;
  --degraded: #e0a13d;
  --down: #e5604f;
  --none: #3a322b;
  --radius: 6px;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); line-height: 1.5; }
a { color: var(--gold); }
.bar { display: flex; gap: 0.75rem; align-items: baseline; padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); }
.brand { font-family: Georgia, "Iowan Old Style", serif; font-size: 1.2rem; color: var(--ink); text-decoration: none; font-weight: 600; }
.bar-sub { color: var(--muted); }
main { max-width: 56rem; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
h1, h2 { font-family: Georgia, "Iowan Old Style", serif; font-weight: 600; margin: 0; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.overall { display: flex; gap: 1rem; align-items: center; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin-bottom: 1.5rem; min-height: 6.25rem; }
.overall p { margin: 0.15rem 0 0; color: var(--muted); }
.dot { width: 1rem; height: 1rem; border-radius: 50%; flex: none; background: var(--none); }
[data-status="up"] > .dot, .pill[data-status="up"] { background: var(--up); }
[data-status="degraded"] > .dot, .pill[data-status="degraded"] { background: var(--degraded); }
[data-status="down"] > .dot, .pill[data-status="down"] { background: var(--down); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.row { display: grid; grid-template-columns: minmax(10rem, 1.3fr) auto minmax(9rem, 1fr) 4.5rem; gap: 0.5rem 1rem; align-items: center; padding: 0.6rem 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: 0; }
.row-name a { color: var(--ink); text-decoration: none; }
.row-name a:hover { text-decoration: underline; }
.row-detail { grid-column: 1 / -1; margin: -0.25rem 0 0; font-size: 0.85rem; color: var(--muted); }
.pill { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: #14110f; background: var(--none); }
.pill[data-status="unknown"] { color: var(--ink); }
.bars { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; height: 1.4rem; }
.bars span { border-radius: 2px; background: var(--none); }
.bars [data-code="1"] { background: var(--up); }
.bars [data-code="2"] { background: var(--degraded); }
.bars [data-code="0"] { background: var(--down); }
.uptime { text-align: right; font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.uptime small { display: block; color: var(--muted); font-size: 0.75rem; }
.game { padding: 0.5rem 0; border-top: 1px solid var(--line); }
.game:first-child { border-top: 0; }
.game summary { cursor: pointer; }
.game ul { margin: 0.4rem 0 0; padding-left: 1.2rem; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding: 1.25rem 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.foot nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.foot p { margin: 0; }
@media (max-width: 40rem) {
  .row { grid-template-columns: 1fr auto; }
  .bars { grid-column: 1 / -1; }
  .uptime { grid-column: 1 / -1; text-align: left; }
  .uptime small { display: inline; margin-left: 0.4rem; }
}
