* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #05060d;
  color: #f8f8f0;
  font-family: "Trebuchet MS", Arial, sans-serif;
}

.game-shell {
  position: relative;
  width: min(92vw, 672px);
}

.hud {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 6px;
  color: #ffe66d;
  font-weight: 700;
  letter-spacing: 0.5px;
}

canvas {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid #2037ff;
  background: #000;
  image-rendering: pixelated;
}

.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.overlay h1 {
  margin: 0;
  color: #ffe66d;
  font-size: 2rem;
}

/* Multiplayer HUD */
.mp-status {
  text-align: center;
  font-size: 0.75rem;
  padding: 2px 0;
  color: #888;
}
.mp-status.connected {
  color: #76ff03;
}
.player-hud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 4px 6px;
}
.player-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.8rem;
}
.player-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.player-name {
  font-weight: 700;
  color: #fff;
}
.player-stat {
  color: #ffe66d;
  font-weight: 600;
}
.high-score {
  display: flex;
  align-items: center;
}
.multiplayer-label {
  font-size: 0.7rem;
  color: #aaa;
  text-align: center;
  padding: 2px 0;
}
