@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

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

body {
  background: #06070d;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  font-family: 'Orbitron', sans-serif;
  overflow: hidden;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 3px 3px;
  pointer-events: none;
  z-index: 100;
  opacity: 0.35;
}

/* Vignette */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.8) 100%);
  pointer-events: none;
  z-index: 99;
}

#gameArea {
  position: relative;
  width: 1125px;   /* 900 × 1.25 */
  height: 875px;   /* 700 × 1.25 */
  flex-shrink: 0;
}

/* JS tworzy canvas i wstawia go do #gameArea — pozycjonujemy absolutnie */
#gameArea canvas {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  /* Smooth bilinear scaling when the canvas is CSS-scaled — `pixelated`
     forced a nearest-neighbour upscale, blocking up every drawn pixel. */
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
  transform: scale(1.25);       /* 125% display */
  transform-origin: top left;
  border: 2px solid rgba(255, 47, 135, 0.7);
  box-shadow:
    0 0 0 1px rgba(0, 240, 255, 0.3),
    0 0 24px rgba(255, 47, 135, 0.45),
    0 0 70px rgba(0, 240, 255, 0.12),
    inset 0 0 40px rgba(0, 240, 255, 0.05);
  background: #06070d;
}

.kalkulacje {
  display: none;
}
