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

body {
  background: #1a1a2e;
  overflow: hidden;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

#game {
  display: block;
  margin: 0 auto;
  background: #2d5a27;
  image-rendering: pixelated;
  position: relative;
  z-index: 1;
}

/* HUD */
#hud {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  pointer-events: none;
  z-index: 10;
}
#hud-left, #hud-right { display: flex; gap: 16px; }
.hud-item {
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: bold;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.15);
}
.level-name {
  font-size: 12px;
  font-weight: normal;
  opacity: 0.8;
  margin-left: 2px;
}

/* Overlays */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 30, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(6px);
  pointer-events: auto;
  cursor: pointer;
}
.overlay-content {
  text-align: center;
  color: #fff;
  animation: popIn 0.4s ease-out;
}
@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.overlay-content h1 {
  font-size: 48px;
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(255,215,0,0.5);
}
.overlay-content .subtitle {
  font-size: 20px;
  color: #ccc;
  margin-bottom: 24px;
}
.controls-info {
  background: rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px 28px;
  margin-bottom: 28px;
  display: inline-block;
}
.controls-info p {
  font-size: 16px;
  margin: 6px 0;
  color: #ddd;
}
.btn-glow {
  font-size: 22px;
  padding: 14px 40px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(135deg, #e63946, #ff6b35);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 0 24px rgba(230,57,70,0.5);
}
.btn-glow:hover {
  transform: scale(1.06);
  box-shadow: 0 0 36px rgba(230,57,70,0.8);
}
.btn-glow:active { transform: scale(0.97); }

/* Pause */
#pause-btn {
  position: fixed;
  top: 12px; right: 20px;
  font-size: 28px;
  cursor: pointer;
  z-index: 20;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile */
@media (max-width: 600px) {
  .hud-item { font-size: 13px; padding: 4px 10px; }
  #hud { padding: 6px 10px; }
  .overlay-content h1 { font-size: 32px; }
  .btn-glow { font-size: 18px; padding: 12px 30px; }
}
