* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  font-family: 'Courier New', Courier, monospace;
  color: #c9c9c9;
}

#game {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  cursor: none;
}

#view {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  background: #000;
}

#hud {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#flash {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

#vignette {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  box-shadow: inset 0 0 18vw 4vw #000;
}

.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: #050505;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 20;
  cursor: default;
  padding: 2vh 4vw;
}

.overlay.hidden { display: none; }

.overlay h1 {
  font-size: 3.2em;
  letter-spacing: 0.15em;
  color: #b3261a;
  text-shadow: 0 0 18px rgba(179,38,26,0.8), 0 0 4px #500;
  margin-bottom: 0.3em;
}

.overlay .tag {
  color: #888;
  font-style: italic;
  margin-bottom: 1.2em;
}

.overlay .panel {
  max-width: 620px;
  background: rgba(20,20,20,0.7);
  border: 1px solid #333;
  padding: 1.2em 1.6em;
  margin-bottom: 1.6em;
  line-height: 1.6;
  font-size: 0.95em;
}

.overlay .panel .warn {
  color: #d9743a;
  margin-top: 0.8em;
}

.overlay button {
  font-family: inherit;
  font-size: 1.1em;
  letter-spacing: 0.08em;
  background: #1a1a1a;
  color: #d33;
  border: 1px solid #b3261a;
  padding: 0.7em 2em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.overlay button:hover {
  background: #b3261a;
  color: #fff;
}

.winTitle {
  color: #7fc97f !important;
  text-shadow: 0 0 18px rgba(127,201,127,0.8) !important;
}
