* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: #234f35;
  touch-action: none;
}
body {
  position: fixed;
  inset: 0;
  font-family: "Trebuchet MS", Arial, sans-serif;
}
#game {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}
canvas {
  display: block;
  touch-action: none;
  outline: none;
}
#loading {
  position: fixed;
  inset: 0;
  background: #254d35;
  color: #fff6d4;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 18px;
  z-index: 5;
  padding: 20px;
}
.sr-only {
  position: fixed;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Portrait is the single supported composition; desktop gets the same playfield. */
#game {
  inset: 0 auto 0 50%;
  transform: translateX(-50%);
  width: min(100vw, 62dvh, 520px);
}
