:root {
  color-scheme: dark;
  --bg: #04070f;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  overscroll-behavior: none;
}

body {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: none;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

#hint {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  color: #f4f8ff;
  text-shadow:
    0 0 18px rgba(120, 170, 255, 0.9),
    0 0 48px rgba(60, 110, 230, 0.7),
    0 2px 6px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  transition: opacity 1.4s ease;
  max-width: 90vw;
}

#hint .hint-main {
  font-size: clamp(26px, 6vw, 44px);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.1;
}

#hint .hint-sub {
  font-size: clamp(12px, 2.4vw, 15px);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.75;
}

#hint.hidden {
  opacity: 0;
}

#debug {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 12px;
  right: 12px;
  margin: 0;
  padding: 8px 10px;
  font:
    11px/1.4 ui-monospace,
    Menlo,
    monospace;
  color: #e8f0ff;
  background: rgba(4, 7, 15, 0.75);
  border-radius: 8px;
  white-space: pre-wrap;
  word-break: break-word;
  pointer-events: none;
  z-index: 2;
}
