:root {
  --phi: 1.6180339887;
  --bg-pure: #ffffff;
  --ink-black: #111111;
  --ink-dark: #2b2b2b;
  --ink-mid: #767676;
  --ink-light: #bcbcbc;
  --ink-faint: #e6e6e6;
  --ink-whisper: #f4f4f4;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-pure);
  touch-action: none;
  overscroll-behavior: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

#stage-wrapper {
  position: relative;
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  aspect-ratio: 16 / 9;
  background-color: var(--bg-pure);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#game-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background-color: var(--bg-pure);
  cursor: pointer;
  touch-action: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
