/* The qft browser client's page (shell.html, signin.html; docs/web-client.md). A file of its own, like every script of
   the page: the page's Content-Security-Policy allows no inline style or script (docs/web-client.md "Security headers").
   Styles set from script go through element.style, which the policy allows. */
html, body {margin:0; height:100%; overflow:hidden; background:#000;}
#canvas {display:block; width:100vw; height:100vh; outline:none;}
/* The loading screen (page.js "THE LOADING SCREEN"): the sign-in screen's emblem, name and colours. */
@font-face {font-family:"QFT Title"; src:url(page-title.ttf) format("truetype"); font-display:swap;} /* UnifrakturCook, as the game's own title */
#splash {position:fixed; inset:0; z-index:10; display:flex; flex-direction:column; align-items:center; justify-content:center;
         background:radial-gradient(ellipse at 50% 42%, #1a1712 0%, #0b0c10 55%, #050608 100%); color:#d8d4c8;
         font:15px system-ui, sans-serif; text-align:center; transition:opacity .45s ease; pointer-events:none; user-select:none;}
#splash.gone {opacity:0;}
#splash .mark {width:64px; height:96px; opacity:.92;}
#splash .title {margin:18px 0 34px; font:46px/1.1 "QFT Title", "UnifrakturCook", "Cormorant Garamond", Georgia, serif; color:#ece6d6;
                letter-spacing:.5px; padding:0 16px;}
#splash .bar {width:min(360px, 76vw); height:4px; border-radius:2px; background:#262a33; overflow:hidden;}
#splash .fill {height:100%; width:0; background:linear-gradient(90deg, #8f7238, #c6a054 70%, #e3c27a); border-radius:2px;}
#status {margin-top:16px; min-height:20px; color:#c6a054; font:600 12px/1.6 system-ui, sans-serif; letter-spacing:2px; text-transform:uppercase;}
#splash .stats {margin-top:6px; min-height:18px; color:#8a867a; font:13px/1.4 system-ui, sans-serif; font-variant-numeric:tabular-nums;}
.noscript {position:fixed; left:0; right:0; top:40%; padding:0 24px; text-align:center; color:#c6a054; font:17px system-ui, sans-serif;}
[hidden] {display:none !important;}

/* The page's own message: a browser that cannot run the game, a fatal error, a message from the engine (page.js). */
#notice {position:fixed; inset:0; z-index:20; display:flex; align-items:center; justify-content:center; padding:24px;
         box-sizing:border-box; background:rgba(5,6,9,.86); overflow:auto; font:16px/1.5 system-ui, sans-serif; color:#d8d4c8;}
#notice .card {max-width:640px; width:100%; background:#0b0d12; border:1px solid #c6a054; border-radius:6px; padding:28px 32px;
               box-sizing:border-box; box-shadow:0 12px 48px rgba(0,0,0,.6);}
#notice h1 {margin:0 0 12px; font:600 22px/1.3 system-ui, sans-serif; color:#c6a054;}
#notice p {margin:0 0 12px;}
#notice ul {margin:0 0 12px; padding-left:22px;}
#notice li {margin:0 0 8px;}
#notice code {font:13px/1.4 ui-monospace, Menlo, Consolas, monospace; background:#161a22; border-radius:3px; padding:1px 5px;
              color:#e6dcc0; overflow-wrap:anywhere;}
#notice .detail {margin:14px 0 0; padding:10px 12px; background:#161a22; border-radius:4px; color:#9a968a; white-space:pre-wrap;
                 font:12px/1.45 ui-monospace, Menlo, Consolas, monospace; max-height:140px; overflow:auto; overflow-wrap:anywhere;}
#notice .buttons {margin-top:20px; display:flex; flex-wrap:wrap; gap:10px; align-items:center;}
#notice button {padding:9px 20px; font:600 15px system-ui, sans-serif; border-radius:4px; cursor:pointer; background:none;
                color:#c6a054; border:1px solid #c6a054;}
#notice button.primary {background:#c6a054; color:#0b0d12; border-color:#c6a054;}
#notice button:focus-visible {outline:2px solid #fff; outline-offset:2px;}
#notice .report {margin-top:18px; padding-top:14px; border-top:1px solid #2a2f3a; font-size:14px; color:#9a968a;}
#notice .report button {padding:6px 14px; font-size:14px; margin-right:8px;}

/* signin.html: the sign-in window's redirect page */
body.signin {overflow:auto; height:auto; font-family:system-ui, sans-serif; background:#0b0d12; color:#c6a054; text-align:center; padding:64px 16px;}
