@font-face {
  font-family: "xkcd Script";
  src: url("assets/xkcd-script.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: only light;
  font-family: "xkcd Script", "Comic Sans MS", sans-serif;
  background: #fff;
  color: #111;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #fff;
}

body {
  display: flex;
  justify-content: center;
  overflow-x: clip;
  padding: clamp(6px, 1.2vh, 14px) 0 16px;
}

main {
  width: 100%;
}

canvas {
  display: block;
  width: 100%;
  background: #fff;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.instructions {
  margin: 4px 0 0;
  color: #555;
  font-size: clamp(12px, 1.6vw, 15px);
  letter-spacing: 0.09em;
  text-align: center;
}

.credits {
  margin: 5px 12px 0;
  color: #777;
  font-family: sans-serif;
  font-size: 10px;
  line-height: 1.35;
  text-align: center;
}

.credits a {
  color: inherit;
  text-underline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  canvas {
    scroll-behavior: auto;
  }
}
