html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background: #10131a;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

canvas {
  display: block;
}

#menuOverlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top, rgba(0, 160, 255, 0.18), transparent 35%),
    linear-gradient(180deg, rgba(8,12,20,0.95), rgba(8,10,16,0.98));
}

.panel {
  width: 360px;
  max-width: calc(100vw - 40px);
  padding: 28px;
  border-radius: 18px;
  background: rgba(20, 26, 36, 0.95);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255,255,255,0.08);
}

.panel h1 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 34px;
}

.panel p {
  margin: 8px 0;
  line-height: 1.4;
}

.panel label {
  display: block;
  margin-top: 14px;
  margin-bottom: 8px;
  font-weight: bold;
}

.panel input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: white;
  outline: none;
}

.panel input[type="color"] {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.panel button {
  width: 100%;
  margin-top: 18px;
  padding: 14px 16px;
  font-size: 17px;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(135deg, #00b7ff, #0077ff);
  color: white;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.panel button:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.help {
  margin-top: 18px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
}

#hud {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  min-width: 220px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  line-height: 1.6;
  font-size: 15px;
  border: 1px solid rgba(255,255,255,0.08);
}

#minimap {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 10;
  width: 220px;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
}

#minimapCanvas {
  width: 100%;
  height: 100%;
  display: block;
}