/* arigl-web.css — the arigl-web page (arigl-web.html): a full-window canvas under a loading /
   error screen. */
:root { color-scheme: dark; --bg: #10141a; --fg: #cdd6e0; --dim: #8b98a5; --line: #232a33;
        --accent: #5aa9e6; --bad: #f08a7e; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg);
             font: 13px/1.5 system-ui, sans-serif; overflow: hidden; }
canvas#canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block;
                outline: none; background: #000; }
#overlay { position: fixed; inset: 0; display: flex; flex-direction: column;
           align-items: center; justify-content: center; gap: 12px; padding: 16px;
           box-sizing: border-box; background: var(--bg); transition: opacity .4s; }
#overlay.hidden { opacity: 0; pointer-events: none; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line);
           border-top-color: var(--accent); border-radius: 50%;
           animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#status { color: var(--dim); text-align: center; max-width: 60em; overflow-wrap: anywhere; }
#overlay.failed #status { color: var(--bad); font-size: 15px; }
#overlay.ended #status { color: var(--fg); }
#details { display: none; width: min(60em, 100%); max-height: 50vh; margin: 0; padding: 10px;
           overflow: auto; box-sizing: border-box; background: #0b0e12;
           border: 1px solid var(--line); border-radius: 6px; color: var(--dim);
           font: 12px/1.45 ui-monospace, monospace; white-space: pre-wrap; }
#overlay.failed #details { display: block; }
#overlay.failed .spinner, #overlay.ended .spinner { display: none; }
#overlay a { color: var(--accent); }
/* The browser gate (arigl-web.js): a browser without JSPI gets what it needs, not the load. */
#overlay.unsupported .spinner { display: none; }
#overlay.unsupported #status { color: var(--fg); font-size: 17px; font-weight: 600; }
#needs { max-width: 36em; text-align: center; }
#needs p { margin: 0 0 10px; }
#needs .ua { color: var(--dim); font: 11px/1.45 ui-monospace, monospace;
             overflow-wrap: anywhere; }
/* A warning while the document runs: the latest, over the canvas's bottom-left corner. */
#warning { position: fixed; left: 8px; bottom: 8px; max-width: min(60em, calc(100% - 16px));
           padding: 4px 10px; box-sizing: border-box; background: #2b2410; color: #e5c07b;
           border: 1px solid #5c4a1a; border-radius: 4px; font: 12px/1.45 ui-monospace, monospace;
           overflow-wrap: anywhere; cursor: pointer; }
#warning[hidden] { display: none; }
/* fullscreen_button: a small, quiet button in the bottom-right corner, above the UI's show/hide
   button there (cvcGL publishes how far up that reaches as --cvcgl-toggle-clear; 0 with none). */
#fullscreen { position: fixed; right: 8px; bottom: calc(var(--cvcgl-toggle-clear, 0px) + 8px);
              width: 32px; height: 32px; padding: 0;
              background: rgba(16, 20, 26, 0.55); color: var(--fg); border: 1px solid var(--line);
              border-radius: 6px; font: 16px/1 system-ui, sans-serif; cursor: pointer;
              opacity: 0.6; }
#fullscreen:hover, #fullscreen:focus-visible { opacity: 1; }
