@font-face {
  font-family: 'Press Start 2P';
  src: url('assets/pressstart2p.ttf') format('truetype');
}

html, body {
  overflow: hidden;
  width: 100%;
  height: 100dvh;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #262626;
}

canvas {
  image-rendering: pixelated;
  display: block;
}

#gameCanvas {
  background-color: #000000;
  border-radius: 4px;
  max-width: 100vw;
  max-height: 100dvh;
  width: auto;
  height: auto;
}

.game-container {
  position: relative;
  display: inline-block;
}

.game-over-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, 30px);
  pointer-events: none;
  color: #cccccc;
  text-align: center;
  font-family: 'Press Start 2P', monospace;
  white-space: nowrap;
  font-size: calc(var(--scale, 1) * 10px);
  z-index: 500;
}

.info-btn {
  position: fixed;
  top: 16px;
  right: 64px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.fullscreen-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Only show fullscreen button on desktop (mouse/hover support) */
@media (hover: hover) {
  .fullscreen-btn {
    display: flex;
  }
}

/* On mobile/tablet (no hover), move info button to right edge since fullscreen is hidden */
@media (hover: none) {
  .info-btn {
    right: 16px;
  }
}
