@font-face {
  font-family: "Press Start";
  src: local("Press Start 2P"), local("Courier New");
}

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

html, body {
  width: 100%;
  height: 100%;
  background: #0b1220;
  overflow: hidden;
  font-family: "Press Start", "Courier New", monospace;
  image-rendering: pixelated;
}

#wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at top, #1a2a4a 0%, #0b1220 70%);
}

#game {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #5c94fc;
  display: block;
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 12, 24, 0.72);
}

.hidden {
  display: none;
}

.pixel-panel {
  width: min(520px, 92vw);
  background: #1b1b32;
  border: 4px solid #f4d03f;
  box-shadow: 0 0 0 4px #3d2b1f, 8px 8px 0 #000;
  color: #fff8e7;
  padding: 22px 24px 20px;
  text-align: center;
}

h1, h2 {
  color: #ff6b6b;
  letter-spacing: 2px;
  font-size: 22px;
  text-shadow: 3px 3px 0 #3d1020;
  margin-bottom: 8px;
}

.sub {
  color: #f4d03f;
  font-size: 12px;
  margin-bottom: 12px;
}

.blurb {
  font-size: 11px;
  line-height: 1.6;
  color: #d7e3ff;
  margin-bottom: 14px;
}

.controls {
  list-style: none;
  text-align: left;
  font-size: 11px;
  line-height: 1.7;
  margin: 0 auto 16px;
  width: fit-content;
  color: #b8c7e8;
}

.controls b {
  color: #7dffb3;
}

button {
  font-family: inherit;
  font-size: 12px;
  padding: 10px 16px;
  background: #e74c3c;
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 4px 4px 0 #000;
  cursor: pointer;
}

button:hover {
  background: #ff6b5a;
}

button:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}
