:root {
  --bg: #050505;
  --fg: #f5f5f5;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: var(--bg);
}

body {
  color: var(--fg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  overflow: hidden;
  user-select: none;
}

.app {
  width: 100vw;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#gameCanvas {
  border: 1px solid #f5f5f5;
  background: #000;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  touch-action: none;
}

#fullscreenBtn {
  position: fixed;
  bottom: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(245, 245, 245, 0.35);
  color: #f5f5f5;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.45;
  transition: opacity 0.2s;
  z-index: 10;
  font-family: monospace;
  user-select: none;
}

#fullscreenBtn:hover {
  opacity: 1;
}

:fullscreen .app,
:-webkit-full-screen .app {
  width: 100%;
  height: 100%;
  background: #050505;
}

:fullscreen #fullscreenBtn,
:-webkit-full-screen #fullscreenBtn {
  position: fixed;
}
