:root { --bg: rgba(0,0,0,.5); --fg: #fff; --accent: #9ef; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; color: var(--fg); font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
#ui { position: fixed; inset: env(safe-area-inset-top) 0 env(safe-area-inset-bottom) 0; pointer-events: none; }
#hud {
  position: absolute; top: 12px; left: 12px; padding: 8px 10px;
  background: var(--bg); border-radius: 8px; backdrop-filter: blur(6px);
  display: inline-block; pointer-events: none;
}
#hud .row { display: flex; gap: 6px; align-items: baseline; font-size: 14px; line-height: 1.2; }
#hud strong { font-size: 18px; color: var(--accent); }

#controls {
  position: absolute; bottom: 12px; left: 12px; right: 12px; display: flex; gap: 8px; justify-content: space-between;
  pointer-events: auto;
}
#controls button {
  flex: 1; padding: 10px 12px; background: var(--bg); color: var(--fg); border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px; font-weight: 600;
}
#controls button:active { transform: translateY(1px); }

#help {
  position: absolute; top: 12px; right: 12px; max-width: 50vw; text-align: right;
  background: var(--bg); padding: 8px 10px; border-radius: 8px; font-size: 12px; line-height: 1.2; backdrop-filter: blur(6px);
}
