/* A readable page instead of a blank one: a page that doesn't exist, Life out of reach, a screen that failed to open.
   Used by the static pages (scripts/build.mjs), the boot check (src/boot.ts) and the app's error screen. Standalone:
   it must work when the app's own styles didn't load. The device's appearance decides, or Life's when it set one. */
@font-face { font-family: 'DM Sans'; src: url('/fonts/dmsans.ttf') format('truetype'); font-style: normal; font-weight: 100 1000; font-display: swap; }
.problem-page { margin: 0; --p-ink: #1d2230; --p-muted: #1d2230a8; --p-bg: #eef0f6; --p-accent: #3b4fd8; --p-wash: radial-gradient(ellipse at 0% 0%, #fff, transparent 60%), linear-gradient(170deg, #f4f5fa, #dfe3ee); color-scheme: light; background: var(--p-wash); background-attachment: fixed; color: var(--p-ink); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .problem-page { --p-ink: #f5f5f7; --p-muted: #f5f5f799; --p-bg: #0b0b0d; --p-accent: #a9b4ff; --p-wash: radial-gradient(ellipse at 50% 120%, #2a2a33, transparent 60%), #0b0b0d; color-scheme: dark; }
}
html[data-theme="dark"] .problem-page { --p-ink: #f5f5f7; --p-muted: #f5f5f799; --p-bg: #0b0b0d; --p-accent: #a9b4ff; --p-wash: radial-gradient(ellipse at 50% 120%, #2a2a33, transparent 60%), #0b0b0d; color-scheme: dark; }
.problem { box-sizing: border-box; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: calc(env(safe-area-inset-top) + 24px) 24px calc(env(safe-area-inset-bottom) + 24px); text-align: center; font: 15px/1.5 'DM Sans', ui-sans-serif, system-ui, sans-serif; color: var(--p-ink); }
.problem[hidden] { display: none; }
.problem img { border-radius: 18px; box-shadow: 0 8px 24px #0000001f; }
.problem h1 { margin: 8px 0 0; font-size: 26px; line-height: 1.2; }
.problem p { max-width: 340px; margin: 0; color: var(--p-muted); }
.problem-action { display: inline-flex; align-items: center; min-height: 48px; margin-top: 12px; padding: 0 22px; border: 0; border-radius: 24px; background: var(--p-ink); color: var(--p-bg); font: 700 15px 'DM Sans', ui-sans-serif, system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.problem-action:focus-visible { outline: 3px solid var(--p-accent); outline-offset: 3px; }
