:root {
  --bg: #0b0d10; --card: #15191f; --line: #242a33;
  --text: #eef1f5; --muted: #8b95a3;
  --go: #3ddc84; --hurry: #ffb020; --missed: #5b6470; --error: #ff6b6b;
}
* { box-sizing: border-box; margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "PingFang TC", "Noto Sans TC", sans-serif;
  padding: max(16px, env(safe-area-inset-top)) 16px 32px;
  -webkit-font-smoothing: antialiased;
}
header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
#clock { font-size: clamp(40px, 12vw, 72px); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
#status { color: var(--muted); font-size: 14px; text-align: right; }
#status.stale { color: var(--hurry); }
main { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.card { background: var(--card); border-radius: 16px; padding: 16px 16px 8px; }
.card h2 { font-size: 22px; display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.card h2 small { color: var(--muted); font-size: 14px; font-weight: 400; }
.card h2 .icon { font-size: 20px; margin-right: -2px; }
.card .error { color: var(--error); padding: 8px 0 12px; font-size: 16px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.row .l { min-width: 0; }
.row .t { font-size: 24px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .s { color: var(--muted); font-size: 15px; margin-top: 2px; }
.row .r { text-align: right; flex-shrink: 0; }
.row .p { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.row .q { color: var(--muted); font-size: 14px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.badge { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 99px; margin-left: 6px; vertical-align: middle; background: #2a3039; color: var(--muted); }
.badge.delay { background: #4a3200; color: var(--hurry); }
.row.go .p { color: var(--go); }
.row.hurry .p { color: var(--hurry); }
.row.missed { opacity: .4; }
.row.missed .p { color: var(--missed); }
.empty { color: var(--muted); padding: 12px 0; }
.mock { color: var(--hurry); }
footer { color: var(--muted); font-size: 13px; margin-top: 16px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-left: 6px; }
.dot.go { background: var(--go); }
.dot.hurry { background: var(--hurry); }
.dot.missed { background: var(--missed); }
