:root {
  --bg: #000;
  --text: #fff;
  --hint: #6b6b6b;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  overflow: hidden;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none; /* swipes control rotation speed, not page scroll */
}

.ui {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
  z-index: 2;
  max-width: calc(100% - 32px);
  pointer-events: none;
}


#hint {
  margin: 0 0 0 2px;
  color: var(--hint);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  transition: opacity .25s;
}
#hint.swap { opacity: 0; }
