html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  color: #e8e8e8;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

#stage {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#game {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  outline: none;
  cursor: none;
  touch-action: none;
}

#overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.92);
  z-index: 10;
}

#overlay[hidden] {
  display: none;
}

#overlay.dragging .panel {
  border-color: #fbd400;
}

.panel {
  max-width: 34rem;
  margin: 1rem;
  padding: 1.5rem 2rem;
  border: 2px solid #555;
  background: #141414;
  text-align: center;
  box-shadow: 0 0 0 4px #000;
}

.panel h1 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  letter-spacing: 0.2em;
  color: #fbd400;
}

#message {
  margin: 0 0 1rem;
  line-height: 1.5;
}

#overlay[data-kind="error"] #message {
  color: #ff6b5e;
}

.button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border: 2px solid #fbd400;
  color: #fbd400;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.button:hover {
  background: #fbd400;
  color: #000;
}

.hint {
  color: #888;
  font-size: 0.85rem;
}

.error {
  color: #ff6b5e;
  min-height: 1.2em;
}
