/* Arcade Nightmare on the web: the game fills the window (or the screen, installed), black behind */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
}
#game {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: block;
  background: #000;
  outline: none;
}
#loading {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: #000;
}
#loading-icon {
  width: 160px;
  height: 160px;
  border-radius: 34px;
  box-shadow: 0 8px 40px rgba(255, 200, 60, 0.25);
}
#loading-bar {
  width: min(320px, 70vw);
  height: 10px;
  border-radius: 5px;
  background: #222;
  overflow: hidden;
}
#loading-text {
  font: 600 14px -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd75a;
  margin-top: -14px;
}
#loading-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #ffb020, #ffd75a);
  transition: width 0.2s;
}
#banner {
  position: fixed;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  display: none;
  max-width: 90vw;
  font: 14px -apple-system, Helvetica, Arial, sans-serif;
  color: #fff;
}
#banner div { padding: 10px 14px; border-radius: 8px; background: #333; margin-bottom: 6px; }
#banner .warning { background: #8a6d00; }
#banner .error { background: #a02020; }
#debug-log {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45vh;
  margin: 0;
  padding: 6px;
  overflow: auto;
  z-index: 10;
  font: 10px/1.3 Menlo, monospace;
  color: #9f9;
  background: rgba(0, 0, 0, 0.75);
  white-space: pre-wrap;
  pointer-events: none;
}
