/* Loading screen. Kept outside the bundle so it is on screen before the app code and styles load. */
html, body { margin: 0; background: #000; }
#boot { position: fixed; inset: 0; z-index: 100; background: #000; color: #fff; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: Inter, "Segoe UI", system-ui, sans-serif; user-select: none; transition: opacity .8s ease, filter .8s ease; }
#boot.splash { backdrop-filter: none; }
#boot.leave { opacity: 0; filter: blur(6px); pointer-events: none; }
#boot .bg { position: absolute; inset: -50%; pointer-events: none; }
#boot .stars1 { background-image: radial-gradient(1px 1px at 20px 30px, #fff9, transparent), radial-gradient(1px 1px at 130px 80px, #fff6, transparent),
    radial-gradient(1px 1px at 70px 160px, #fff8, transparent), radial-gradient(1px 1px at 190px 140px, #fff5, transparent);
  background-size: 220px 220px; opacity: .45; animation: bootDrift 90s linear infinite; }
#boot .stars2 { background-image: radial-gradient(1.5px 1.5px at 60px 90px, #fff, transparent), radial-gradient(1.5px 1.5px at 300px 240px, #fffa, transparent);
  background-size: 380px 380px; opacity: .35; animation: bootDrift 55s linear infinite reverse, bootTwinkle 4s ease-in-out infinite; }
#boot .vignette { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 45%, rgba(255,255,255,.07), transparent 70%), radial-gradient(ellipse at center, transparent 45%, #000 100%); }
#boot .stage { position: relative; width: min(340px, 62vw); aspect-ratio: 534 / 439; }
#boot .stage img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; -webkit-user-drag: none; }
#boot .dim { opacity: .13; }
#boot .fill { clip-path: inset(0 calc((1 - var(--p, 0)) * 100%) 0 0); transition: clip-path .25s linear; }
#boot .glow { position: absolute; inset: 0; filter: drop-shadow(0 0 10px rgba(255,255,255,.5)); }
#boot .orbit { position: absolute; left: 50%; top: 56%; width: 560px; height: 210px; margin: -105px 0 0 -280px; transform: rotate(-17deg); pointer-events: none; }
#boot .orbit::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.07); }
#boot .comet { position: absolute; left: 0; top: 0; width: 6px; height: 6px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 10px 3px rgba(255,255,255,.8), 0 0 30px 8px rgba(255,255,255,.25);
  offset-path: path("M 0 105 A 280 105 0 1 0 560 105 A 280 105 0 1 0 0 105"); animation: bootOrbit 3.6s linear infinite; }
#boot .comet.b { width: 3px; height: 3px; opacity: .6; animation-duration: 5.4s; animation-direction: reverse; }
#boot .flare { position: absolute; left: 83.3%; top: 21.6%; width: 0; height: 0; pointer-events: none; }
#boot .flare::before, #boot .flare::after { content: ""; position: absolute; left: -60px; top: -1px; width: 120px; height: 2px;
  background: linear-gradient(90deg, transparent, #fff, transparent); opacity: 0; animation: bootFlare 2.6s ease-in-out infinite; }
#boot .flare::after { transform: rotate(90deg); }
#boot .flare i { position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.75), rgba(255,255,255,0) 65%); opacity: 0; animation: bootGlow 2.6s ease-in-out infinite; }
#boot .word { margin-top: 34px; font-size: 15px; font-weight: 600; letter-spacing: .62em; padding-left: .62em; opacity: 0; animation: bootIn 1.2s .3s ease forwards; }
#boot .foot { margin-top: 26px; min-height: 150px; display: grid; justify-items: center; align-items: start; }
#boot .load, #boot .go { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; }
#boot .bar { width: min(260px, 60vw); height: 2px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; transition: opacity .5s; }
#boot .bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, rgba(255,255,255,.4), #fff);
  box-shadow: 0 0 12px rgba(255,255,255,.8); transition: width .25s linear; }
#boot .status { margin-top: 12px; height: 16px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.45); font-variant-numeric: tabular-nums; transition: opacity .5s; }
#boot .go { gap: 14px; opacity: 0; transform: translateY(10px);
  transition: opacity .7s .15s ease, transform .7s .15s ease; pointer-events: none; }
#boot .go p { margin: 0; font-size: 14px; color: rgba(255,255,255,.7); text-align: center; max-width: 440px; padding: 0 16px; }
#boot .go p.hint { font-size: 12px; color: rgba(255,255,255,.38); }
#boot .go .btn { all: unset; cursor: pointer; padding: 12px 34px; border-radius: 999px; background: #fff; color: #000; font-weight: 700; font-size: 15px; letter-spacing: .04em;
  box-shadow: 0 0 0 0 rgba(255,255,255,.5); transition: box-shadow .25s, transform .25s; animation: bootPulse 2.4s ease-in-out 1s infinite; }
#boot .go .btn:hover { transform: scale(1.04); box-shadow: 0 0 34px 4px rgba(255,255,255,.35); }
#boot .go .btn:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
#boot.ready .go { opacity: 1; transform: none; pointer-events: auto; }
#boot.ready .bar, #boot.ready .status { opacity: 0; }
#boot.ready .dim { opacity: 0; transition: opacity .6s; }
#boot.ready .stage { animation: bootPop .9s cubic-bezier(.2,.9,.3,1.2); }
#boot.ready .glow { animation: bootBreathe 3.2s ease-in-out .4s infinite; }
@keyframes bootDrift { to { transform: translate(220px, 110px); } }
@keyframes bootTwinkle { 50% { opacity: .15; } }
@keyframes bootOrbit { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes bootFlare { 0%, 100% { opacity: 0; transform: scaleX(.2); } 45% { opacity: .9; transform: scaleX(1); } 70% { opacity: 0; } }
@keyframes bootGlow { 0%, 100% { opacity: 0; transform: scale(.4); } 45% { opacity: .9; transform: scale(1); } 75% { opacity: 0; } }
@keyframes bootIn { to { opacity: .92; } }
@keyframes bootPop { 0% { transform: scale(1); } 35% { transform: scale(1.07); } 100% { transform: scale(1); } }
@keyframes bootBreathe { 50% { filter: drop-shadow(0 0 26px rgba(255,255,255,.85)); } }
@keyframes bootPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.35); } 50% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } }
@media (max-width: 640px) { #boot .orbit { transform: rotate(-17deg) scale(.6); } }
@media (prefers-reduced-motion: reduce) { #boot *, #boot *::before, #boot *::after { animation: none !important; } }
