:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6fbf8;
  color: #172033;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  display: grid;
  min-height: 100svh;
  place-items: center;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 211, 120, 0.34), transparent 20%),
    radial-gradient(circle at 82% 70%, rgba(55, 179, 163, 0.24), transparent 25%),
    linear-gradient(135deg, #fff8f0 0%, #f6fbf8 42%, #edf7ff 100%);
  padding: 0;
}

.game-shell {
  display: grid;
  width: 100vw;
  height: 100svh;
  place-items: center;
}

canvas {
  display: block;
  width: min(100vw, calc(100svh * 16 / 9));
  max-height: 100svh;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(23, 32, 51, 0.16);
  border-radius: 8px;
  background: #f6fbf8;
  box-shadow: 0 1.4rem 3.2rem rgba(23, 32, 51, 0.16);
  touch-action: none;
  outline: none;
}

canvas:focus-visible {
  box-shadow:
    0 0 0 4px rgba(255, 107, 87, 0.32),
    0 1.4rem 3.2rem rgba(23, 32, 51, 0.16);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 760px) {
  body {
    align-content: start;
  }

  .game-shell {
    height: auto;
    place-items: start center;
  }

  canvas {
    width: 100vw;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
}
