// entry-fullscreen.jsx — mounts ONE variant artboard fullscreen, no canvas.
// Each entry HTML (terminal/editorial/operators/contributors) sets
// window.__NARRIO_VARIANT before this script runs.

(function () {
  const ACCENT = '#E8E0D0';
  const V = window.__NARRIO_VARIANT || 'editorial';
  const Comp = ({
    terminal:    window.VariantTerminal,
    editorial:   window.VariantEditorial,
    calculator:  window.VariantCalculator,
    contributor: window.VariantContributor,
  })[V];

  if (!Comp) {
    document.getElementById('root').innerHTML =
      '<p style="color:#F87171; font-family: monospace; padding: 24px;">Variant ' + V + ' not loaded.</p>';
    return;
  }

  function Fullscreen() {
    return (
      <div style={{ width: '100vw', height: '100vh', overflow: 'hidden' }}>
        <Comp accent={ACCENT} theme="dark" />
      </div>
    );
  }
  ReactDOM.createRoot(document.getElementById('root')).render(<Fullscreen />);
})();
