* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%; height: 100%;
  background: #0e0818;
  overflow: hidden;
  overscroll-behavior: none;   /* блокирует pull-to-refresh на Android Chrome */
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
canvas {
  -webkit-touch-callout: none; /* блокирует callout (копировать/сохранить) на iOS */
  user-select: none;
  -webkit-user-select: none;
}

/* Blur background — stretched game frame, blurred, fills viewport.
   Visible on desktop landscape (beside the centred canvas). On mobile
   portrait the game canvas fills the full screen so this sits behind. */
#bg-blur {
  position: fixed;
  inset: 0;
  z-index: 0;
  transform: scale(1.08);
  transform-origin: center;
  filter: blur(28px) brightness(0.55);
}

#stage {
  position: fixed; inset: 0;
  z-index: 1;
  /* stage is a passthrough layer — game canvas is positioned by display.js */
  pointer-events: none;
}
#game {
  /* width / height / transform set dynamically by display.js */
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  box-shadow: 0 12px 48px rgba(0,0,0,.7);
  border-radius: 4px;
  cursor: none;
  pointer-events: auto;
}
