* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%; height: 100%;
  background: #0a0e1a;
  color: #f5b800;
  font-family: 'Courier New', monospace;
  overflow: hidden;
  user-select: none;
}
#wrap {
  width: 100vw; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
}
#game {
  background: #000;
  border: 4px solid #f5b800;
  box-shadow: 0 0 40px rgba(245, 184, 0, 0.4);
  cursor: crosshair;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 16px);
  width: auto;
  height: auto;
}
#overlay, #endScreen, #pauseScreen, #levelScreen {
  position: fixed; inset: 0;
  background: linear-gradient(180deg, #0a0e1a 0%, #1a1f3a 100%);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  z-index: 100;
  text-align: center;
  padding: 20px;
}
#endScreen {
  background: linear-gradient(180deg, #0a0e1a 0%, #1a3a1f 100%);
}
#pauseScreen {
  background: rgba(10, 14, 26, 0.85);
}
#pauseTitle, #levelTitle {
  font-size: 56px;
  color: #f5b800;
  text-shadow: 4px 4px 0 #000, 0 0 20px rgba(245,184,0,0.6);
  letter-spacing: 6px;
  margin-bottom: 20px;
  font-weight: 900;
}
#overlay.hidden { display: none; }
#title, #endTitle {
  font-size: 64px;
  color: #f5b800;
  text-shadow: 4px 4px 0 #000, 0 0 20px rgba(245,184,0,0.6);
  letter-spacing: 6px;
  margin-bottom: 8px;
  font-weight: 900;
}
#endTitle { font-size: 48px; }
#subtitle, #endSubtitle {
  color: #fff;
  font-size: 18px;
  margin-bottom: 32px;
  letter-spacing: 2px;
}
.yellow { color: #f5b800; }
.panel {
  background: rgba(0,0,0,0.5);
  border: 2px solid #f5b800;
  padding: 24px 32px;
  margin-bottom: 20px;
  max-width: 560px;
  text-align: left;
  color: #ddd;
  font-size: 14px;
  line-height: 1.7;
}
.panel h3 {
  color: #f5b800;
  margin-bottom: 10px;
  letter-spacing: 2px;
}
.key {
  display: inline-block;
  background: #f5b800;
  color: #000;
  padding: 1px 8px;
  border-radius: 3px;
  font-weight: bold;
  margin: 0 2px;
}
button {
  background: #f5b800;
  color: #000;
  border: none;
  padding: 14px 36px;
  font-family: inherit;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 3px;
  cursor: pointer;
  transition: all 0.15s;
}
button:hover {
  background: #fff;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(245,184,0,0.8);
}
.stat {
  color: #fff;
  font-size: 16px;
  margin: 6px 0;
}
.stat span { color: #f5b800; font-weight: bold; }
#quote {
  font-style: italic;
  color: #aaa;
  margin: 20px 0;
  font-size: 16px;
}
#quote::before { content: '"'; }
#quote::after { content: '"'; }
#attribution {
  color: #f5b800;
  font-size: 13px;
  letter-spacing: 2px;
}
#pauseBtn {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 50;
  background: rgba(10, 14, 26, 0.7);
  color: #f5b800;
  border: 2px solid #f5b800;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 2px;
  cursor: pointer;
  display: none;
}
#pauseBtn.visible { display: block; }
