/* Only the loading and error surfaces are HTML; the game itself is FerroUI on a canvas. */
:root { color-scheme: dark; font-family: system-ui, sans-serif; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #116336; }
#out { position: relative; width: 100%; height: 100%; height: 100dvh; }
.ferroui-splash, .boot-error { box-sizing: border-box; position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; background: #116336; color: #f3ead2; text-align: center; }
.ferroui-splash { pointer-events: none; }
.ferroui-splash h1 { font-size: 34px; font-weight: 700; margin: 16px 0 4px; }
.ferroui-splash p { color: #cfe3d2; margin: 8px 0 28px; }
.loading-line { width: 96px; height: 3px; border-radius: 3px; background: #0b4a28; overflow: hidden; }
.loading-line::after { content: ""; display: block; width: 50%; height: 100%; border-radius: inherit; background: #e3b23c; animation: loading 1.2s ease-in-out infinite alternate; }
.ferroui-splash.splash-close { display: none; }
.boot-error h1 { font-size: 24px; }
.boot-error p { max-width: 500px; line-height: 1.6; overflow-wrap: anywhere; }
.boot-error button { border: 0; background: #e3b23c; color: #1b1b1b; padding: 12px 24px; min-height: 48px; border-radius: 8px; font: inherit; cursor: pointer; }
@keyframes loading { from { transform: translateX(-60%); } to { transform: translateX(160%); } }
@media (prefers-reduced-motion: reduce) { .loading-line::after { animation: none; width: 100%; } }
