* { margin: 0; padding: 0; box-sizing: border-box; }
body { overflow: hidden; font-family: 'Segoe UI', system-ui, sans-serif; background: #000; }
canvas { display: block; }

#overlay {
  position: fixed; inset: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, rgba(20,30,48,0.92), rgba(5,8,15,0.97));
  color: #fff; cursor: pointer; text-align: center;
}
#overlay h1 { font-size: 3rem; font-weight: 300; letter-spacing: 0.3rem; margin-bottom: 0.5rem; }
#overlay h1 b { font-weight: 700; color: #7fb8e8; }
#overlay p.sub { color: #9fb3c8; margin-bottom: 2rem; }
#overlay .controls {
  display: grid; grid-template-columns: auto auto; gap: 0.6rem 1.2rem;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; padding: 1.4rem 2rem; margin-bottom: 2rem; text-align: left;
}
#overlay .controls .key {
  font-family: monospace; background: rgba(255,255,255,0.12); border-radius: 6px;
  padding: 0.15rem 0.6rem; text-align: center; font-weight: 600;
}
#overlay .start {
  font-size: 1.1rem; padding: 0.8rem 2.4rem; border-radius: 999px;
  background: #7fb8e8; color: #0b1624; font-weight: 700;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }

#hud { position: fixed; inset: 0; z-index: 5; pointer-events: none; display: none; }
#crosshair {
  position: absolute; left: 50%; top: 50%; width: 6px; height: 6px;
  margin: -3px 0 0 -3px; border-radius: 50%;
  background: rgba(255,255,255,0.85); box-shadow: 0 0 4px rgba(0,0,0,0.6);
}
#roomLabel {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: #fff; background: rgba(10,16,28,0.55); backdrop-filter: blur(4px);
  padding: 0.45rem 1.4rem; border-radius: 999px; font-size: 1.05rem;
  letter-spacing: 0.12rem; border: 1px solid rgba(255,255,255,0.15);
}
#hint {
  position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%);
  color: #ffe9a8; background: rgba(10,16,28,0.55); padding: 0.3rem 1rem;
  border-radius: 8px; font-size: 0.9rem; display: none;
}
#minimap {
  position: absolute; top: 16px; right: 16px;
  background: rgba(10,16,28,0.55); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px; backdrop-filter: blur(4px);
}
