@font-face { font-family: Roboto; src: url('fonts/Roboto-Regular.ttf'); font-weight: 100 500; font-display: block; }
@font-face { font-family: Roboto; src: url('fonts/Roboto-Bold.ttf'); font-weight: 600 800; font-display: block; }
@font-face { font-family: Roboto; src: url('fonts/Roboto-Black.ttf'); font-weight: 900; font-display: block; }
/* Continuación HTML del splash Flutter mientras se descarga el motor. */
:root { --splash-surface: #fff; --splash-scaffold: #f7f8fc; --splash-text: #1a1b21; --splash-muted: #45464f; --splash-primary: #2563eb; --splash-rgb: 37, 99, 235; color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --splash-surface: #1d212b; --splash-scaffold: #101218; --splash-text: #e3e2e9; --splash-muted: #c5c6d0; --splash-primary: #adc6ff; --splash-rgb: 173, 198, 255; color-scheme: dark; }
}
:root[data-theme="dark"] { --splash-surface: #1d212b; --splash-scaffold: #101218; --splash-text: #e3e2e9; --splash-muted: #c5c6d0; --splash-primary: #adc6ff; --splash-rgb: 173, 198, 255; color-scheme: dark; }
html, body { margin: 0; background: var(--splash-scaffold); }
#web-loading { position: fixed; z-index: 2147483646; inset: 0; overflow: hidden; color: var(--splash-text); background: linear-gradient(rgba(var(--splash-rgb), .12), var(--splash-surface) 50%, rgba(var(--splash-rgb), .10)), var(--splash-scaffold); font: 14px/20px Roboto, sans-serif; }
.splash-content { position: relative; box-sizing: border-box; height: 100%; display: flex; flex-direction: column; padding: calc(20px + env(safe-area-inset-top)) 24px calc(20px + env(safe-area-inset-bottom)); text-align: center; }
.splash-main { margin: auto 0; display: flex; flex-direction: column; align-items: center; }
.splash-main img { object-fit: contain; }
.splash-name { display: flex; flex-direction: column; margin-top: 22px; }
.splash-name strong { font-size: 28px; line-height: 36px; font-weight: 900; letter-spacing: .5px; }
.splash-name span { font-size: 22px; line-height: 28px; font-weight: 800; letter-spacing: .8px; color: var(--splash-primary); }
.splash-spinner { box-sizing: border-box; width: 38px; height: 38px; margin-top: 32px; border: 5px solid rgba(var(--splash-rgb), .15); border-top-color: var(--splash-primary); border-right-color: var(--splash-primary); border-radius: 50%; animation: splash-turn 1s linear infinite; }
#splash-message { letter-spacing: .25px; color: var(--splash-muted); margin: 20px 0 0; }
.splash-footer { display: flex; flex-direction: column; gap: 3px; font-size: 12px; line-height: 16px; letter-spacing: .4px; font-weight: 600; }
.splash-footer small { color: var(--splash-muted); font-size: 11px; line-height: 16px; letter-spacing: .5px; font-weight: 500; }
.splash-blob { position: absolute; background: rgba(var(--splash-rgb), .08); border-radius: 45%; transform: rotate(.45rad); transform-origin: top left; }
.splash-blob-top { width: 320px; height: 320px; top: -120px; left: -80px; }
.splash-blob-bottom { width: 360px; height: 360px; bottom: 50px; right: -120px; background: rgba(var(--splash-rgb), .10); }
@keyframes splash-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .splash-spinner { animation: none; } }
#pwa-notices { position: fixed; z-index: 2147483647; top: max(8px, env(safe-area-inset-top)); right: 8px; width: min(360px, calc(100vw - 16px)); font: 14px/1.45 system-ui, sans-serif; color: #172554; }
.pwa-notice { padding: 14px; margin-bottom: 8px; background: #fff; border: 1px solid #93b4f4; border-radius: 12px; box-shadow: 0 4px 20px #0002; }
.pwa-notice p { margin: 0 0 10px; }
.pwa-notice button { padding: 8px 12px; margin: 3px 6px 0 0; border: 1px solid #2563eb; border-radius: 8px; background: #fff; color: #1d4ed8; font: inherit; cursor: pointer; }
.pwa-notice button:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
