html {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  background: #071426;
}

body {
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.87);
  background:
    radial-gradient(circle at 50% 45%, rgba(28, 101, 153, 0.28), transparent 42%),
    linear-gradient(160deg, #071426 0%, #0b1930 54%, #06101f 100%);
  min-width: 320px;
  min-height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

#app {
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

#game-container {
  /* Keep the fixed 4:3 Phaser canvas inside both viewport dimensions. */
  width: min(100vw, 1024px, calc(100svh * 4 / 3));
  height: auto;
  max-width: 100vw;
  max-height: 100svh;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(155, 232, 255, 0.38);
  border-radius: clamp(0px, 1.2vw, 14px);
  background: #071b32;
  box-shadow:
    0 0 0 1px rgba(6, 16, 31, 0.9),
    0 20px 60px rgba(0, 0, 0, 0.42),
    0 0 34px rgba(77, 197, 255, 0.12);
}

#game-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  image-rendering: pixelated;
  touch-action: manipulation;
}
