html, body { margin: 0; padding: 0; overflow: hidden; height: 100vh; background: #0b1030; }
#game-canvas { position: fixed; inset: 0; }
#crosshair {
  position: fixed; left: 50%; top: 50%; width: 18px; height: 18px;
  transform: translate(-9px, -9px); pointer-events: none;
  border: 2px solid rgba(255,255,255,.85); border-radius: 2px;
}
#hud {
  position: fixed; top: 10px; left: 12px; color: #eef2ff; letter-spacing: .12em;
  font: 700 13px system-ui, sans-serif; text-shadow: 0 1px 3px rgba(0,0,0,.6);
  pointer-events: none;
}
#hotbar {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; gap: 6px; padding: 6px; border-radius: 12px;
  pointer-events: none;
}
#hotbar > div {
  width: 52px; height: 40px; border-radius: 8px;
  background: var(--blk);
  display: flex; align-items: center; justify-content: center;
  color: #131a2e; font: 600 11px system-ui, sans-serif;
}
#hotbar > div.sel { outline: 3px solid #ffffff; outline-offset: 2px; }
.touchctl { position: fixed; opacity: .55; touch-action: none; }
.touch-move {
  left: 18px; bottom: 18px; width: 110px; height: 110px; border-radius: 55px;
  background: radial-gradient(circle, rgba(255,255,255,.25), rgba(255,255,255,.08));
  border: 2px solid rgba(255,255,255,.5);
}
.touch-jump { right: 18px; bottom: 18px; width: 74px; height: 74px; border-radius: 37px;
  background: rgba(120,220,140,.3); border: 2px solid rgba(255,255,255,.5); }
.touch-break { right: 120px; top: 90px; width: 78px; height: 78px; border-radius: 16px;
  background: rgba(240,120,90,.3); border: 2px solid rgba(255,255,255,.5); }
.touch-place { right: 20px; top: 90px; width: 78px; height: 78px; border-radius: 16px;
  background: rgba(90,170,240,.3); border: 2px solid rgba(255,255,255,.5); }
#new-world {
  position: fixed; top: 10px; right: 12px; color: #fff; background: rgba(20,24,50,.7);
  border: 1px solid rgba(255,255,255,.4); border-radius: 8px; font: 600 12px system-ui;
  padding: 6px 10px; cursor: pointer;
}
html:not(.touchmode) .touchctl { visibility: hidden; pointer-events: none; }
