/* r65: session open. Only the EduzOS logo, in the exact centre of the viewport, on the plain field.
   A thin line under it fills 0 to 100 percent over the boot time (ease-out), starting only after the logo
   is visible (data-ready). Then the whole screen fades into the page. Transform and opacity only.
   Light is the default; dark only when the person chose it (data-theme on <html>) or chose Match system (r106: no data-theme attribute, then the OS decides). */
.so {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  background: #f6f8ff;
  opacity: 1;
  transition: opacity 0.45s cubic-bezier(0.645, 0.045, 0.355, 1);
  --so-track: rgba(10, 26, 74, 0.14);
  --so-fill: linear-gradient(90deg, #0072fd, #333dfd 55%, #8a2cf0);
}
[data-theme='dark'] .so,
[data-theme='amoled'] .so {
  background: #050a26;
  --so-track: rgba(238, 242, 255, 0.2);
  --so-fill: linear-gradient(90deg, #01ccfe, #4d8dff 55%, #c77bff);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .so {
    background: #050a26;
    --so-track: rgba(238, 242, 255, 0.2);
    --so-fill: linear-gradient(90deg, #01ccfe, #4d8dff 55%, #c77bff);
  }
}
.so[data-state='out'] {
  opacity: 0;
  pointer-events: none;
}
.so__logo {
  grid-area: 1 / 1;
  line-height: 0;
  opacity: 0;
  transform: scale(0.97);
}
.so[data-ready] .so__logo {
  animation: so-in 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) both;
}
/* the line is placed below the centre point (logo half height 40px + 40px gap), so the logo stays in the exact centre */
.so__bar {
  position: absolute;
  inset-block-start: calc(50% + 80px);
  inset-inline: 0;
  margin-inline: auto;
  inline-size: min(60vw, 240px);
  block-size: 3px;
  border-radius: 999px;
  background: var(--so-track);
  overflow: hidden;
  opacity: 0;
}
.so[data-ready] .so__bar {
  animation: so-in 0.3s linear 0.2s both;
}
.so__fill {
  display: block;
  block-size: 100%;
  border-radius: inherit;
  background: var(--so-fill);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
[dir='rtl'] .so__fill {
  transform-origin: 100% 50%;
}
.so[data-ready] .so__fill {
  animation: so-fill 1.25s cubic-bezier(0.165, 0.84, 0.44, 1) 0.35s both;
}
@keyframes so-in {
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes so-fill {
  to {
    transform: scaleX(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .so__logo,
  .so[data-ready] .so__logo {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .so__bar {
    display: none;
  }
  .so {
    transition-duration: 0.2s;
  }
}
