:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f7f5;
  color: #071a2b;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: #f4f7f5; }
.is-booting { overflow: hidden; }
#root { min-height: 100vh; }
.startup-overlay { position: fixed; z-index: 2147483647; inset: 0; display: grid; place-items: center; overflow: auto; padding: 90px 24px 40px; background: #071a2b; opacity: 1; visibility: visible; transition: opacity 260ms ease, visibility 260ms ease; }
.startup-overlay::before { position: absolute; width: 680px; height: 680px; left: -300px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(13,148,136,.25), transparent 67%); content: ""; }
.startup-overlay::after { position: absolute; width: 700px; height: 700px; right: -330px; bottom: -400px; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,.23), transparent 67%); content: ""; }
.startup-overlay.is-complete { opacity: 0; visibility: hidden; pointer-events: none; }
.startup-overlay[hidden] { display: none; }
.startup-home { position: absolute; z-index: 2; left: clamp(22px, 4vw, 58px); top: 28px; display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.startup-logo { position: relative; display: grid; width: 38px; height: 38px; place-items: center; overflow: hidden; border-radius: 11px; background: #2dd4bf; color: #071a2b; font-weight: 900; }
.startup-logo i { position: absolute; width: 10px; height: 2px; right: 6px; background: #071a2b; box-shadow: 0 -5px 0 #071a2b, 0 5px 0 #071a2b; }
.startup-home b { font-size: 1.05rem; letter-spacing: -.03em; }
.startup-home b span { color: #2dd4bf; }
.boot-card { position: relative; z-index: 2; width: min(500px, 100%); padding: clamp(30px, 6vw, 48px); border: 1px solid rgba(255,255,255,.13); border-radius: 22px; background: rgba(11,38,61,.84); box-shadow: 0 35px 100px rgba(0,0,0,.34); color: #fff; text-align: center; backdrop-filter: blur(18px); }
.boot-symbol { display: flex; width: 58px; height: 58px; margin: 0 auto 24px; align-items: end; justify-content: center; gap: 4px; padding: 14px; border-radius: 16px; background: #2dd4bf; }
.boot-symbol span { width: 6px; border-radius: 3px; background: #071a2b; animation: bars 1.1s ease-in-out infinite; }
.boot-symbol span:nth-child(1) { height: 16px; animation-delay: -.2s; }
.boot-symbol span:nth-child(2) { height: 27px; }
.boot-symbol span:nth-child(3) { height: 21px; animation-delay: -.35s; }
.boot-kicker { margin: 0 0 9px; color: #5eead4; font-size: .7rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.boot-card h1 { margin: 0; font-size: clamp(1.9rem, 6vw, 2.65rem); letter-spacing: -.055em; line-height: 1.05; }
.boot-tool { margin: 13px 0 28px; color: #adc0cb; font-size: .9rem; }
.progress-track { position: relative; width: 100%; height: 5px; overflow: hidden; border-radius: 999px; background: #173c55; }
.progress-track > span { position: absolute; inset: 0 auto 0 0; width: 38%; border-radius: inherit; background: #2dd4bf; animation: progress 1.35s ease-in-out infinite; }
.boot-status { min-height: 23px; margin: 11px 0 22px; color: #8fa7b5; font-size: .78rem; }
.privacy-note { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #1d5260; border-radius: 12px; background: #0a323f; text-align: left; }
.privacy-note > span { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 8px; background: #164c4d; color: #5eead4; font-size: .75rem; font-weight: 900; }
.privacy-note p { display: grid; gap: 2px; margin: 0; color: #94afb7; font-size: .7rem; }
.privacy-note strong { color: #d7eeec; font-size: .75rem; }
.boot-card button { display: block; margin: 20px auto 0; border: 0; border-radius: 10px; padding: 11px 18px; background: #2dd4bf; color: #071a2b; cursor: pointer; font: inherit; font-weight: 850; }
.boot-card button[hidden] { display: none; }
.cancel-link { display: inline-block; margin-top: 18px; color: #8fa7b5; font-size: .7rem; text-underline-offset: 3px; }
.error-card .boot-symbol { background: #ef4444; }
.error-card .boot-symbol span { display: none; }
.error-card .boot-symbol::after { content: "!"; color: #fff; font-size: 1.5rem; font-weight: 900; }
.error-card .progress-track { display: none; }
.error-card .boot-status { color: #fecaca; }
@keyframes progress { 0% { transform: translateX(-120%); } 50% { transform: translateX(100%); } 100% { transform: translateX(270%); } }
@keyframes bars { 0%,100% { transform: scaleY(.65); } 50% { transform: scaleY(1); } }
@media (max-width: 520px) { .startup-overlay { padding: 86px 14px 24px; } .boot-card { border-radius: 18px; } }
@media (prefers-reduced-motion: reduce) { .startup-overlay { transition: none; } .progress-track > span, .boot-symbol span { animation-duration: 3s; } }
