:root {
  --bg: #0b0d10;
  --fg: #e8e6e1;
  --muted: #8a8f98;
  --accent: #e6b877;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  overflow: hidden;
}

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

.ui {
  position: fixed;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.hint {
  pointer-events: auto;
  align-self: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  background: rgba(20, 22, 26, 0.6);
  border: 1px solid rgba(230, 184, 119, 0.35);
  border-radius: 999px;
  padding: 12px 20px;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: opacity 0.4s, border-color 0.2s, transform 0.2s;
  animation: pulse 2.4s ease-in-out infinite;
}

.hint:hover { border-color: var(--accent); transform: translateY(-1px); }
.hint:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hint.done { animation: none; color: var(--muted); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 184, 119, 0.0); }
  50% { box-shadow: 0 0 0 8px rgba(230, 184, 119, 0.08); }
}

.loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.8s;
}

.loader span {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.loader.hidden { opacity: 0; pointer-events: none; }

@keyframes spin { to { transform: rotate(360deg); } }

.fallback {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  background: var(--bg);
}

@media (max-width: 600px) {
  .ui { padding: 16px; }
}
