* {
  box-sizing: border-box;
}

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

body {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #24282c;
  font-family: Arial, Helvetica, sans-serif;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.game-shell {
  width: min(100vw, 1400px, calc(100vh * 1.75));
  aspect-ratio: 7 / 4;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #87ceeb;
  cursor: crosshair;
  touch-action: none;
}

.rotate-hint {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  left: 50%;
  z-index: 2;
  display: none;
  transform: translateX(-50%);
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(20, 24, 28, 0.82);
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
}

@media (orientation: portrait) and (max-width: 900px) {
  .rotate-hint {
    display: block;
  }
}
