:root {
  --bg: #ffffff;
  --fg: #111111;
  --sub: #888888;
  --pu-font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --pu-weight: 700;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --fg: #f5f5f5;
    --sub: #999999;
  }
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

button {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font-family: var(--pu-font);
  font-size: 70vmin;
  font-weight: var(--pu-weight);
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.98);
  user-select: none;
  touch-action: manipulation;
  transition: opacity 0.14s ease-out, transform 0.08s ease-out;
}

.font-ready button {
  opacity: 1;
  transform: scale(1);
}

button:active,
button.pressed,
.font-ready button:active,
.font-ready button.pressed {
  transform: scale(0.92);
}

button:focus-visible {
  outline: 2px solid var(--sub);
  outline-offset: 8px;
  border-radius: 8px;
}

#count {
  margin: 2vmin 0 0;
  font-size: 7vmin;
  font-variant-numeric: tabular-nums;
  color: var(--sub);
  user-select: none;
}

#online {
  margin: 1vmin 0 0;
  font-size: 3vmin;
  color: var(--sub);
  opacity: 0.7;
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  button {
    transition: none;
  }
}
