/* UX Anima startup. Progress and phase states are supplied by the loader. */
.boot-screen {
  --boot-cyan: #82e7f4;
  --boot-violet: #b9a1ff;
  --boot-muted: #89a7ba;
  position: fixed;
  box-sizing: border-box;
  inset: 0;
  z-index: 100000;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  height: 100%;
  height: 100dvh;
  overflow: auto;
  overscroll-behavior: contain;
  padding: max(28px, env(safe-area-inset-top)) max(30px, env(safe-area-inset-right)) max(25px, env(safe-area-inset-bottom)) max(30px, env(safe-area-inset-left));
  color: #edf6fc;
  background: radial-gradient(ellipse at 50% 36%, #102638 0, #091523 34%, #040c16 72%);
  font-family: Anima, 'Segoe UI', sans-serif;
  opacity: 1;
  transform: scale(1);
  transform-origin: 50% 42%;
  transition: opacity 450ms ease, transform 450ms cubic-bezier(.2,.65,.2,1), filter 450ms ease;
}
.boot-screen *, .boot-screen *::before, .boot-screen *::after { box-sizing: border-box; }
.boot-screen::before {
  content: '';
  position: absolute;
  inset: 13% 8% 18%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, #729fe511 0, transparent 54%);
  border-inline: 1px solid #82c8e008;
}
.boot-grid {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  opacity: .45;
  background: linear-gradient(90deg, transparent calc(100% - 1px), #77cde508 1px), linear-gradient(transparent calc(100% - 1px), #77cde508 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(ellipse at center, #000 15%, transparent 78%);
}
.boot-grid::after {
  content: '';
  position: absolute;
  top: 64%;
  left: -25%;
  width: 150%;
  height: 70%;
  background: linear-gradient(90deg, transparent calc(100% - 1px), #83cfeb24 1px), linear-gradient(transparent calc(100% - 1px), #83cfeb24 1px);
  background-size: 66px 66px;
  transform: perspective(420px) rotateX(62deg);
  transform-origin: center top;
  mask-image: linear-gradient(transparent, #000 24%, transparent 90%);
}
.boot-top, .boot-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  font: 9px/1.6 Consolas, 'Courier New', monospace;
  letter-spacing: .18em;
  color: #7fa2b7;
}
.boot-top { padding-bottom: 18px; border-bottom: 1px solid #8bc5dd13; }
.boot-top > :first-child { color: #c4e0ed; letter-spacing: .23em; }
.boot-top > :last-child { display: flex; align-items: center; gap: 9px; }
.boot-top > :last-child::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--boot-cyan); box-shadow: 0 0 9px #82e7f44d; }
.boot-core {
  --boot-size: clamp(230px, 35vh, 340px);
  position: relative;
  display: grid;
  place-items: center;
  width: var(--boot-size);
  height: var(--boot-size);
  flex: 0 0 var(--boot-size);
  margin: auto 0 25px;
  perspective: 800px;
}
.boot-core::before {
  content: '';
  position: absolute;
  inset: 23%;
  border-radius: 50%;
  background: radial-gradient(circle, #9a98ef18 0, #6de6f50a 40%, transparent 70%);
  box-shadow: 0 0 72px #548cef0c;
}
.boot-logo {
  display: block;
  width: 128px;
  height: 128px;
  max-width: 43%;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 0 22px #9291ff26);
  transform: translateZ(14px);
}
.boot-orbit { position: absolute; border-radius: 50%; pointer-events: none; }
.boot-orbit-outer {
  inset: 6%;
  border: 1px solid #82d4e821;
  border-top-color: #9cdff07a;
  border-bottom-color: #b7a1ff52;
  transform: rotate(-28deg);
  animation: boot-outer-turn 26s linear infinite;
}
.boot-orbit-outer::before {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  border: 1px dashed #9fd1e220;
}
.boot-orbit-outer::after {
  content: '';
  position: absolute;
  top: 14%;
  left: 14%;
  width: 5px;
  height: 5px;
  background: #c5eefa;
  box-shadow: 0 0 12px #94e8fc66;
}
.boot-orbit-inner {
  inset: 17%;
  border: 1px solid #95c8e112;
  border-left-color: #bba9fa74;
  border-right-color: #85dff468;
  transform: rotateX(24deg) rotateZ(32deg);
  animation: boot-inner-turn 19s linear infinite reverse;
}
.boot-orbit-inner::before { content: ''; position: absolute; inset: -5px; border-radius: inherit; border-bottom: 2px solid #9cdeee2b; border-top: 2px solid transparent; }
.boot-reticle {
  position: absolute;
  inset: 0;
  opacity: .62;
  background: linear-gradient(#a3dbe7,#a3dbe7) 50% 0/1px 10px, linear-gradient(#a3dbe7,#a3dbe7) 50% 100%/1px 10px, linear-gradient(#a3dbe7,#a3dbe7) 0 50%/10px 1px, linear-gradient(#a3dbe7,#a3dbe7) 100% 50%/10px 1px;
  background-repeat: no-repeat;
  pointer-events: none;
}
.boot-reticle::before, .boot-reticle::after { content: ''; position: absolute; width: 20px; height: 20px; border-color: #82d4e84d; border-style: solid; }
.boot-reticle::before { top: 12%; left: 12%; border-width: 1px 0 0 1px; }
.boot-reticle::after { right: 12%; bottom: 12%; border-width: 0 1px 1px 0; }
.boot-copy { width: min(540px, 100%); text-align: center; flex-shrink: 0; }
.boot-eyebrow { margin: 0 0 12px; color: var(--boot-cyan); font: 9px/1.6 Consolas, 'Courier New', monospace; letter-spacing: .24em; }
.boot-copy h1 { margin: 0; color: #e2f2fb; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.16; font-weight: 350; letter-spacing: -.035em; overflow-wrap: anywhere; }
#boot-detail { margin: 13px 0 0; min-height: 2.9em; color: var(--boot-muted); font-size: 12px; line-height: 1.65; text-wrap: balance; }
.boot-progress { width: min(390px, 100%); margin-top: 20px; flex-shrink: 0; }
.boot-progress-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 11px; color: #8fafc1; font: 9px/1.5 Consolas, 'Courier New', monospace; letter-spacing: .09em; }
#boot-percent { color: #d1f1f7; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.boot-meter { position: relative; height: 3px; background: #8dbdce1c; overflow: hidden; }
#boot-fill { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left center; background: linear-gradient(90deg, #719be1, #a19ce9 44%, #93edf5); box-shadow: 0 0 14px #7ee0f033; transition: transform 220ms ease-out; }
.boot-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: min(410px, 100%); padding: 0; margin: 25px 0 0; list-style: none; flex-shrink: 0; }
.boot-steps li { display: flex; flex-direction: column; align-items: center; gap: 9px; min-width: 0; color: #637f91; text-align: center; font: 9px/1.5 Consolas, 'Courier New', monospace; letter-spacing: .04em; overflow-wrap: anywhere; transition: color 180ms ease; }
.boot-step-dot { display: block; width: 5px; height: 5px; border: 1px solid #678a9d; border-radius: 50%; flex-shrink: 0; transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.boot-steps [data-state='active'] { color: #c0eaf4; }
.boot-steps [data-state='active'] .boot-step-dot { border-color: var(--boot-cyan); background: var(--boot-cyan); box-shadow: 0 0 10px #82e7f463; }
.boot-steps [data-state='done'] { color: #96b6c7; }
.boot-steps [data-state='done'] .boot-step-dot { border-color: #90c9d9; background: #90c9d9; }
.boot-skip { margin-top: 20px; padding: 11px 16px; min-height: 42px; border: 1px solid #8bc8dd45; background: #8bd5e908; color: #c8e9f5; font: 11px/1.5 Anima, 'Segoe UI', sans-serif; cursor: pointer; }
.boot-skip:hover { border-color: #98e5f2a3; background: #8bd5e914; }
.boot-skip:focus-visible { outline: 2px solid var(--boot-cyan); outline-offset: 4px; }
.boot-skip[hidden] { display: none !important; }
#boot-fallback-links { display: flex; justify-content: center; flex-shrink: 0; margin-top: 10px; }
#boot-fallback-links .boot-skip { display: inline-flex; align-items: center; margin-top: 0; }
.boot-footer { margin-top: auto; padding-top: 35px; color: #68899e; font-size: 8px; letter-spacing: .14em; }
.boot-footer > :last-child { color: #8ca4bc; text-align: right; }
.boot-screen[data-state='revealing'] { opacity: 0; transform: scale(1.045); filter: blur(8px); pointer-events: none; }
.boot-screen[data-state='failed'] #boot-stage { color: #f3d0ad; }
.boot-screen[data-state='failed'] .boot-progress-meta { color: #dbb698; }
.boot-screen[data-state='failed'] .boot-orbit { animation-play-state: paused; }
@keyframes boot-outer-turn { from { transform: rotate(-28deg); } to { transform: rotate(332deg); } }
@keyframes boot-inner-turn { from { transform: rotateX(24deg) rotateZ(32deg); } to { transform: rotateX(24deg) rotateZ(392deg); } }
@media (max-width: 600px) {
  .boot-screen { padding: max(22px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left)); }
  .boot-top { font-size: 8px; letter-spacing: .12em; padding-bottom: 16px; }
  .boot-core { --boot-size: min(270px, 69vw, 33vh); margin-bottom: 24px; }
  .boot-logo { width: 116px; height: 116px; }
  .boot-eyebrow { font-size: 8px; letter-spacing: .17em; }
  .boot-copy h1 { font-size: 30px; }
  #boot-detail { font-size: 11px; margin-top: 12px; }
  .boot-steps { gap: 9px; margin-top: 24px; }
  .boot-steps li { font-size: 8px; }
  .boot-footer { font-size: 6px; letter-spacing: .12em; gap: 12px; padding-top: 30px; }
}
@media (max-height: 650px) {
  .boot-screen { padding-top: max(15px, env(safe-area-inset-top)); padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .boot-top { padding-bottom: 11px; }
  .boot-core { --boot-size: min(190px, 30vh); margin-top: 15px; margin-bottom: 15px; }
  .boot-logo { width: 90px; height: 90px; }
  .boot-eyebrow { margin-bottom: 8px; }
  .boot-copy h1 { font-size: 27px; }
  #boot-detail { min-height: 0; margin-top: 9px; }
  .boot-progress { margin-top: 20px; }
  .boot-steps { margin-top: 18px; }
  .boot-footer { padding-top: 24px; }
  .boot-skip { margin-top: 14px; }
  .boot-screen[data-state='failed'] .boot-core { --boot-size: min(138px, 25vh); margin-block: 10px; }
}
@media (max-height: 450px) and (min-width: 600px) {
  .boot-screen { padding-inline: 8vw; }
  .boot-top, .boot-footer { font-size: 7px; }
  .boot-core { --boot-size: 112px; margin: 10px 0; }
  .boot-copy h1 { font-size: 23px; }
  .boot-eyebrow { display: none; }
  #boot-detail { font-size: 10px; margin-top: 6px; }
  .boot-progress { margin-top: 13px; }
  .boot-steps { margin-top: 14px; }
  .boot-footer { padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .boot-screen, #boot-fill, .boot-steps li, .boot-step-dot { transition: none; }
  .boot-orbit { animation: none; }
  .boot-screen[data-state='revealing'] { transform: none; filter: none; }
}
