:root {
  --ink: #eaf4ff;
  --muted: #7f93b5;
  --accent: #6ad7ff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
  background: #02040a; color: var(--ink);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
#stage { position: fixed; inset: 0; display: block; cursor: crosshair; touch-action: none; }

.hud { position: fixed; top: 20px; left: 24px; pointer-events: none; text-shadow: 0 2px 18px #000; }
.hud h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
.hud .tag { color: var(--muted); font-size: 13px; margin-top: 2px; }
.hud .lvl { color: var(--accent); font-size: 13px; margin-top: 8px; letter-spacing: 1px; }
.hud .lvl b { font-size: 16px; }

.controls {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: var(--muted); font-size: 12.5px; letter-spacing: .5px; text-align: center;
  pointer-events: none; text-shadow: 0 2px 12px #000;
}
.controls b { color: var(--ink); }

.pulsebtn {
  position: fixed; top: 20px; right: 22px;
  background: rgba(12,18,30,.7); border: 1px solid rgba(120,200,255,.3); color: var(--accent);
  padding: 10px 18px; border-radius: 999px; font: inherit; font-size: 14px; letter-spacing: 1px;
  cursor: pointer; backdrop-filter: blur(8px); transition: .15s;
}
.pulsebtn:hover { border-color: var(--accent); box-shadow: 0 0 18px rgba(106,215,255,.3); }

/* touch dpad — hidden on desktop */
.dpad { position: fixed; bottom: 28px; right: 24px; display: none; flex-direction: column; align-items: center; gap: 6px; }
.dpad .mid { display: flex; gap: 44px; }
.dpad button {
  width: 52px; height: 52px; border-radius: 12px; font-size: 18px;
  background: rgba(12,18,30,.7); border: 1px solid rgba(120,200,255,.25); color: var(--ink);
  backdrop-filter: blur(8px);
}
@media (pointer: coarse) { .dpad { display: flex; } .controls { display: none; } }
@media (max-width: 640px) { .hud h1 { font-size: 22px; } }
