* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  background: #04040a;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior: none;
}

#stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  /* 노치를 비켜 배치한다. 세로 게임이라 위아래 인셋이 특히 중요하다. */
  padding:
    env(safe-area-inset-top, 0px)
    env(safe-area-inset-right, 0px)
    env(safe-area-inset-bottom, 0px)
    env(safe-area-inset-left, 0px);
  box-sizing: border-box;
}

/* 세로 캔버스. 데스크톱에서는 좌우에 여백이 생기는 게 정상이다. */
#game {
  display: block;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 720 / 1280;
  image-rendering: auto;
  cursor: crosshair;
  background: #070711;

  /* touch-action 은 상속되지 않는다 — 캔버스에 직접 걸어야 탭이 스크롤로 해석되지 않는다 */
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
