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

html, body {
  height: 100%;
  background: #000;
  font-family: 'Courier New', monospace;
  color: #fff;
  overflow: hidden;
  user-select: none;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(ellipse at center, #0a0a2e 0%, #000 70%);
}

#game-container {
  position: relative;
  width: 800px;
  height: 600px;
  border: 2px solid #2a3a8a;
  box-shadow: 0 0 40px rgba(80, 120, 255, 0.4);
  background: #000;
}

#game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

#hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  letter-spacing: 1px;
  color: #aef;
  text-shadow: 0 0 6px #38f;
  pointer-events: none;
  z-index: 5;
}

.hud-left, .hud-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hud-right {
  text-align: right;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 20, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  backdrop-filter: blur(2px);
}

.overlay.hidden {
  display: none;
}

.panel {
  background: linear-gradient(180deg, #0a1545 0%, #050828 100%);
  border: 2px solid #4a6cff;
  border-radius: 8px;
  padding: 30px 40px;
  max-width: 520px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 30px rgba(74, 108, 255, 0.5);
}

.panel h1 {
  font-size: 28px;
  letter-spacing: 3px;
  color: #ffd34d;
  text-shadow: 0 0 10px #ff8800;
  margin-bottom: 8px;
}

.panel .tagline {
  color: #9ab;
  margin-bottom: 18px;
  font-size: 14px;
}

.instructions {
  text-align: left;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #2a3a8a;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.instructions h3 {
  color: #6cf;
  font-size: 14px;
  margin: 8px 0 6px;
  letter-spacing: 1px;
}

.instructions ul {
  list-style: none;
  font-size: 13px;
  line-height: 1.7;
}

.instructions b {
  color: #ffd34d;
}

.pu {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 4px;
}

.pu-leg { background: radial-gradient(#ffaa55, #883300); }
.pu-laser { background: radial-gradient(#88ffaa, #007733); box-shadow: 0 0 8px #0f8; }
.pu-heart { background: radial-gradient(#ff7799, #aa0033); }

.btn {
  background: linear-gradient(180deg, #ffd34d 0%, #ff8800 100%);
  color: #1a0a00;
  border: none;
  padding: 12px 36px;
  font-size: 18px;
  font-weight: bold;
  font-family: inherit;
  letter-spacing: 2px;
  cursor: pointer;
  border-radius: 4px;
  box-shadow: 0 4px 0 #aa5500, 0 0 20px rgba(255, 200, 80, 0.4);
  transition: transform 0.05s;
}

.btn:hover {
  filter: brightness(1.1);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #aa5500;
}

.message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  font-weight: bold;
  letter-spacing: 4px;
  color: #ffd34d;
  text-shadow: 0 0 16px #ff8800, 0 0 4px #fff;
  z-index: 6;
  pointer-events: none;
  text-align: center;
}

.message.hidden {
  display: none;
}

.message .sub {
  display: block;
  font-size: 16px;
  letter-spacing: 2px;
  color: #aef;
  text-shadow: 0 0 8px #38f;
  margin-top: 6px;
}
