* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: #1a1a2e;
  font-family: 'Courier New', monospace;
  overflow: hidden;
  position: fixed;
  inset: 0;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
#app {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  image-rendering: pixelated;
}
#ui {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: #e94560;
  font-size: clamp(14px, 3.2vw, 24px);
  font-weight: bold;
  text-shadow: 0 0 10px rgba(233,69,96,0.5);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
}
#splash {
  position: fixed;
  inset: 0;
  background: #1a1a2e;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
#splash img {
  max-width: min(80vw, 800px);
  max-height: min(80vh, 400px);
  image-rendering: pixelated;
}
