@font-face { font-family: 'Kanit'; font-weight: 300; src: url('../assets/fonts/Kanit-Light.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Kanit'; font-weight: 400; src: url('../assets/fonts/Kanit-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Kanit'; font-weight: 500; src: url('../assets/fonts/Kanit-Medium.ttf') format('truetype'); font-display: swap; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: 'Kanit', 'Segoe UI', sans-serif;
}

body.hide-cursor, body.hide-cursor * { cursor: none; }

#dome {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  /* Touch drag and pinch are handled by the page (preview), not by the browser's own scroll/zoom. */
  touch-action: none;
}

.loading {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: rgba(255, 220, 170, 0.8);
  transition: opacity 1s;
}
.loading.is-done { opacity: 0; pointer-events: none; }
.loading.is-error { color: #ff9c8a; letter-spacing: 0; font-size: 20px; white-space: pre-line; text-align: center; }

.hud {
  position: fixed;
  left: 12px;
  top: 12px;
  display: grid;
  gap: 4px;
  padding: 10px 14px;
  max-width: 420px;
  font: 14px/1.4 'Segoe UI', sans-serif;
  background: rgba(0, 0, 0, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}
/* `display: grid` above would beat the hidden attribute: the panel is part of the dome picture, so it must really hide. */
.hud[hidden], [hidden] { display: none !important; }
.hud__keys { opacity: 0.7; font-size: 12px; }
.is-off { color: #ff8a7a; }
.is-on { color: #8cf0a8; }
