html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: #03050e; color: #9aa3b8;
  font: 12px/1.4 ui-monospace, Menlo, Consolas, monospace;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
#view {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh;
  display: block; touch-action: manipulation; cursor: pointer;
}
#hint, #paused {
  position: fixed; left: 50%; transform: translateX(-50%);
  padding: 6px 12px; border-radius: 999px;
  background: rgba(10, 14, 28, 0.6); border: 1px solid rgba(150, 165, 200, 0.18);
  white-space: nowrap; pointer-events: none; letter-spacing: 0.02em;
}
#hint { bottom: max(16px, env(safe-area-inset-bottom)); transition: opacity 1.2s ease; }
#hint.gone { opacity: 0; }
#paused { top: max(16px, env(safe-area-inset-top)); }
#paused[hidden] { display: none; }
.touch { display: none; }
@media (hover: none) and (pointer: coarse) { .touch { display: inline; } .keys { display: none; } }
body.still #hint, body.still #paused { display: none; }
.msg { position: fixed; inset: 0; display: grid; place-items: center; margin: 0; padding: 24px; text-align: center; }
