/* core.css — design tokens + the veil (start gate). HUD lives in hud.css. */

:root {
  --ink: #cfc8c4;
  --ink-dim: #7d7470;
  --blood: #6a1414;
  --blood-bright: #a11e1e;
  --silver: #c9cdd2;
  --bone: #d8d2c4;

  --serif: 'CatacombSerif', Georgia, 'Times New Roman', serif;
  --greek: 'HellenicSerif', 'CatacombSerif', Georgia, serif;
  --mono: 'SystemMono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

@font-face { font-family: 'CatacombSerif'; src: local('Georgia'); font-display: swap; }
@font-face { font-family: 'HellenicSerif'; src: local('Georgia'); font-display: swap; }
@font-face { font-family: 'SystemMono'; src: local('Menlo'), local('Consolas'); font-display: swap; }

#gl {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 1;
}

/* ── The veil (title / first-gesture gate) ── */
.veil {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 45%, #170808 0%, #000 70%);
  cursor: pointer;
  transition: opacity 0.9s ease;
}
.veil.lifting { opacity: 0; }
.veil[hidden] { display: none; }
.veil__inner { text-align: center; user-select: none; padding: 1rem; }
.veil__latin {
  font-family: var(--serif); font-style: italic; color: var(--blood);
  letter-spacing: 0.3em; font-size: 0.9rem; margin-bottom: 1.5rem;
}
.veil__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(4rem, 22vw, 14rem);
  color: #2a1010; text-shadow: 0 0 40px #400, 0 0 4px #700;
  letter-spacing: 0.05em; animation: veilPulse 3.2s ease-in-out infinite;
}
.veil__prompt {
  margin-top: 2rem; font-family: var(--mono); font-size: 0.8rem;
  letter-spacing: 0.35em; color: var(--ink-dim); text-transform: lowercase;
}
.veil__controls {
  margin-top: 1.2rem; font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.12em; color: #4a4340;
}
@keyframes veilPulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; text-shadow: 0 0 60px #600, 0 0 6px #900; }
}
@media (prefers-reduced-motion: reduce) { .veil__title { animation: none; } }
