:root { color-scheme: dark; --bg: #0f1119; --panel: #171a26; --ink: #e6e9f2; --dim: #9aa3bd; --accent: #4f7cff; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { display: flex; flex-direction: column; overflow: hidden; }
.bar { display: flex; align-items: center; gap: 1.25rem; padding: .6rem 1rem; background: var(--panel); border-bottom: 1px solid #242a3d; }
.bar.foot { border-bottom: 0; border-top: 1px solid #242a3d; }
.bar p { margin: 0; color: var(--dim); font-size: .9rem; }
.lede { flex: 1; }
.brand { color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.brand b { color: var(--accent); }
nav { display: flex; gap: 1rem; white-space: nowrap; }
nav a { color: var(--dim); text-decoration: none; font-size: .9rem; }
nav a:hover { color: var(--ink); }
#stage { position: relative; flex: 1; min-height: 0; }
#canvas { display: block; width: 100%; height: 100%; outline: none; }
#status { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; background: var(--bg); }
#status[hidden], [hidden] { display: none !important; }
#status-progress { width: min(50%, 420px); accent-color: var(--accent); }
#status-text { text-align: center; }
#status-notice { white-space: pre-wrap; max-width: 60ch; padding: 1rem; border-radius: .5rem; background: #3a1f28; border: 1px solid #7a2e3c; color: #f2d7dc; }
@media (max-width: 900px) { .lede, nav a:not(:first-child) { display: none; } }
