:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --card: #f7f7f8;
  --raised: #f0f0f0;
  --raised-hover: #e5e5e5;
  --line: #ececec;
  --border: #ececec;
  --fg: #0d0d0d;
  --muted: #5d5d5d;
  --faint: #767676;
  --accent: #52b795;
  --accent-hover: #44a786;
  --accent-ink: #0e7a5c;
  --on-accent: #0d0d0d;
  --accent-soft: rgba(82, 183, 149, 0.14);
  --warn: #b54708;
  --warn-soft: #fff4e5;
  --on-warn: #ffffff;
  --down: #d92d20;
  --down-soft: #feeceb;
  --down-hover: #fddcd9;
  --backdrop: rgba(13, 13, 13, 0.4);
  --shadow: 0 24px 64px rgba(13, 13, 13, 0.16);
  --sans:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui,
    sans-serif;
  --mono:
    ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas,
    monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #111111;
    --surface: #1a1a1a;
    --card: #212121;
    --raised: #2a2a2a;
    --raised-hover: #363636;
    --line: #2a2a2a;
    --border: #222222;
    --fg: #fcfcfc;
    --muted: #a1a1a1;
    --faint: #858585;
    --accent: #52b795;
    --accent-hover: #66c6a5;
    --accent-ink: #5cc29f;
    --on-accent: #0d0d0d;
    --accent-soft: rgba(82, 183, 149, 0.14);
    --warn: #f5a524;
    --warn-soft: rgba(245, 165, 36, 0.14);
    --on-warn: #0d0d0d;
    --down: #f26b6b;
    --down-soft: rgba(242, 107, 107, 0.14);
    --down-hover: rgba(242, 107, 107, 0.22);
    --backdrop: rgba(0, 0, 0, 0.64);
    --shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font: 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

button,
input {
  font: inherit;
  color: inherit;
}

a {
  color: var(--accent-ink);
}

svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.mono {
  font-family: var(--mono);
  font-size: 12.5px;
}

.muted {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--fg);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

body.ok {
  background: var(--accent);
  color: var(--on-accent);
}

body.bad {
  background: var(--down);
  color: #ffffff;
}

.status {
  width: 100%;
  max-width: 960px;
  padding: max(24px, env(safe-area-inset-top)) 24px
    max(32px, env(safe-area-inset-bottom));
  text-align: center;
}

.status h1 {
  font-size: clamp(56px, 15vw, 168px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

body.wait .status h1 {
  color: var(--muted);
}

.status p {
  margin: 20px auto 0;
  max-width: 34em;
  font-size: clamp(16px, 2.4vw, 20px);
  line-height: 1.45;
  opacity: 0.8;
}

.stats {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.stats div {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(13, 13, 13, 0.1);
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 15px;
}

.stats dt {
  opacity: 0.7;
}

.stats dd {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.again {
  margin-top: 32px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 4px;
  opacity: 0.75;
  cursor: pointer;
}

.again:hover {
  opacity: 1;
}


