* { box-sizing: border-box; }
html, body, #viewport { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #1c1610; }
body { color: white; font-family: monospace; }
#world, #ui, #panorama, #controls { position: absolute; inset: 0; width: 100%; height: 100%; }
#world, #ui { image-rendering: pixelated; }
#world { outline: none; }
#panorama { pointer-events: none; filter: blur(2px); transform: scale(1.014); }
#controls, #ui { pointer-events: none; }
#controls > * { position: absolute; margin: 0; pointer-events: auto; }
#controls button, #controls input[type=range] { opacity: 0; cursor: pointer; }
#controls button:disabled { cursor: default; }
#controls input[type=text] { background: transparent; color: transparent; caret-color: transparent; outline: none; border: none; padding: 0; font: 16px monospace; }
/* The canvas draws the bitmap glyphs, selection and caret in every editing state. */
#controls input[type=text]::selection { color: transparent; background: transparent; }
#controls input[type=text]:focus { outline: 1px solid #ddd; }
noscript { position: fixed; inset: 40% 0 auto; text-align: center; }
#asset-loader { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 24px; background: #211a14; }
#asset-loader[hidden] { display: none; }
.asset-dialog { width: min(560px, 100%); padding: 24px; border: 2px solid #777; background: #151515; line-height: 1.6; }
.asset-dialog h1 { margin: 0 0 16px; font-size: 22px; }
.asset-dialog p { color: #ccc; }
.asset-dialog code { overflow-wrap: anywhere; color: #ffcc80; }
