:root {
  --bg: #fafafa;
  --fg: #1a1a1a;
  --muted: #8a8a8a;
  --faint: #d9d9d9;
  --accent: #e4002b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --fg: #ececec;
    --muted: #8f8f8f;
    --faint: #2c2c2c;
    --accent: #ff3b5c;
  }
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

main {
  width: 100%;
  max-width: 680px;
  text-align: center;
}

h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
}

h1 .dash { color: var(--accent); font-weight: 400; }
h1 .soon { font-weight: 400; color: var(--muted); }

.sub {
  margin: 0 0 2rem;
  color: var(--muted);
}

.game {
  width: 100%;
  border-bottom: 1px solid var(--faint);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 170;
  cursor: pointer;
}

canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.hint {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

kbd {
  font-family: inherit;
  font-size: 0.8em;
  border: 1px solid var(--faint);
  border-radius: 4px;
  padding: 0.05em 0.4em;
}
