/* shared.css — tokens + base layers. Single committed dark look (the void has no light mode). */
:root {
  color-scheme: dark;
  --void: #020203;
  --bone: #e8dcc0;        /* text on darkness */
  --bone-dim: #8f8672;
  --ember: #ffb25a;       /* warm firelight accent */
  --ink: #2a1a0e;         /* ink on parchment */
  --parchment: #d9c49a;
  --bronze: #3a3226;      /* nameplates */
  --font-display: "IM Fell English SC", Georgia, serif;
  --font-body: "IM Fell English", Georgia, serif;
  --font-sanskrit: "Tiro Devanagari Sanskrit", "Noto Serif Devanagari", serif;
}
html { -webkit-text-size-adjust: 100%; }
@media (pointer: coarse) { #gl, button { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; } }   /* no long-press selection on touch controls; text stays selectable */
html, body { height: 100%; height: 100dvh; margin: 0; background: var(--void); color: var(--bone); overflow: hidden; }
body { overscroll-behavior: none; font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; touch-action: none; -webkit-tap-highlight-color: transparent; display: block; }

/* Chambers put their HTML (hints, cards, nameplates) in here. Only children that set
   pointer-events:auto receive clicks; the rest falls through to the canvas. */
#chamber-ui { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
#chamber-ui * { box-sizing: border-box; }

#toast {
  position: fixed; left: 50%; bottom: calc(7vh + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 40;
  padding: 10px 18px; background: rgba(10, 8, 6, 0.82); border: 1px solid rgba(255, 178, 90, 0.25);
  color: var(--bone); font: italic 16px var(--font-body); letter-spacing: 0.02em; pointer-events: none;
}
:focus-visible { outline: 1px solid var(--ember); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
[hidden] { display: none !important; }

/* Intro sweep (core.js): a short phrase under each relic while it is lit. Positioned per frame by transform. */
#beckon-labels { position: fixed; inset: 0; z-index: 6; pointer-events: none; }
.beckon-label {
  position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; translate: 0 10px; filter: blur(4px);
  transition: opacity 0.6s ease, translate 0.6s ease, filter 0.6s ease;
  font: 15px var(--font-display); letter-spacing: 0.3em; text-indent: 0.3em; text-transform: uppercase;
  color: var(--ember); text-shadow: 0 0 14px rgba(255, 150, 60, 0.55), 0 1px 3px #000;
}
.beckon-label.is-lit { opacity: 0.92; translate: 0 0; filter: none; transition-duration: 1.8s; transition-timing-function: cubic-bezier(.2,.7,.2,1); }
@media (prefers-reduced-motion: reduce) { .beckon-label { translate: none; filter: none; } }
