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

* {
  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 20% 16%, rgba(255, 255, 255, 0.86), transparent 26%),
    linear-gradient(180deg, #fff8ed, #e8dbc8);
  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(95, 68, 45, 0.18);
  border-radius: 8px;
  background: #fff8ed;
  box-shadow: 0 1.2rem 2.8rem rgba(95, 68, 45, 0.16);
  touch-action: none;
}

.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;
  }
}
