/* Casca do app: ocupa a tela inteira no celular e vira uma coluna de 420px no computador. */
html,body{margin:0;width:100%;height:100dvh;overflow:hidden;background:#101211}
body{display:flex;justify-content:center;font-family:system-ui,-apple-system,'Segoe UI',Roboto,sans-serif}
#app-root{width:100%;max-width:420px;height:calc(100dvh - env(safe-area-inset-bottom,0px));overflow:hidden;background:#101211}
@media(min-width:520px){#app-root{box-shadow:0 0 0 1px #262a25,0 30px 90px #000a}}
/* Tela de abertura: fica por cima até o Compose desenhar o primeiro quadro. */
#splash{position:fixed;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:24px;background:#101211;color:#f1f0e9;text-align:center;transition:opacity .35s}
#splash.done{opacity:0;pointer-events:none}
.splash-icon{display:grid;place-items:center;width:88px;height:88px;margin-bottom:14px;border-radius:22px;background:#c5f16a;color:#101211;font:700 42px/1 Arial,sans-serif;letter-spacing:-1px}
#splash h1{margin:0;font-size:22px;font-weight:600;letter-spacing:-.4px}
#splash p{margin:0;font-size:13px;color:#a6aaa2}
.splash-bar{position:relative;width:132px;height:3px;margin:22px 0 6px;border-radius:3px;background:#262a25;overflow:hidden}
.splash-bar::after{content:'';position:absolute;inset:0 60% 0 0;border-radius:3px;background:#c5f16a;animation:splash-slide 1.1s ease-in-out infinite alternate}
#splash a{margin-top:14px;padding:12px 20px;border-radius:24px;background:#c5f16a;color:#101211;font-size:14px;font-weight:600;text-decoration:none}
#splash.failed .splash-bar{display:none}
@keyframes splash-slide{to{inset:0 0 0 60%}}
@media(prefers-reduced-motion:reduce){.splash-bar::after{animation:none;inset:0}#splash{transition:none}}
