/* Tetris Cool Edition — HTML remake. Věrná rekonstrukce GM6 projektu. */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  background: #101014;
  color: #ccc;
  font-family: Verdana, Geneva, sans-serif;
  overflow: hidden;
}

#stage {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Herní plátno — vykresluje se interně v 768×560, škáluje se přes width/height.
   Nearest-neighbor kvůli ostrým pixelům původní grafiky. */
#game {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #000;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
  display: block;
}

#loading {
  position: absolute;
  font-size: 18px;
  color: #888;
}

/* Fullscreen režim. */
:fullscreen #game, #stage.fs #game { box-shadow: none; }
