/* boot.css — Fullscreen Boot Loader (fixe Dauer, statusunabhängig) */

.mw-boot {
  position: fixed;
  inset: 0;
  z-index: 2147483647; /* über allem (auch scrim/queue/etc.) */
  display: grid;
  place-items: center;
  background: var(--bg, #0b0f14);
  color: var(--text, #e8edf2);
  opacity: 1;
  pointer-events: auto;
  transition: opacity 220ms ease;
  padding: calc(env(safe-area-inset-top) + 16px) 16px calc(env(safe-area-inset-bottom) + 22px);
}

.mw-boot.mw-boot--off {
  opacity: 0;
  pointer-events: none;
}

.mw-boot__inner {
  width: min(420px, 92vw);
  display: grid;
  justify-items: center;
  gap: 18px;
}

.mw-boot__logoWrap {
  width: 132px;   /* vorher 96px */
  height: 132px;  /* vorher 96px */
  display: grid;
  place-items: center;
}

.mw-boot__logo {
  width: 132px;   /* vorher 96px */
  height: 132px;  /* vorher 96px */
  display: block;
  transform-origin: 50% 50%;
  animation: mwBootSpin 1.15s linear infinite;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.35));
}

@keyframes mwBootSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.mw-boot__step {
  font-size: 14px;
  line-height: 1.25;
  opacity: 0.82;
  min-height: 18px;
  text-align: center;
  margin-top: -20px;
}

.mw-boot__hint {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(env(safe-area-inset-bottom) + 16px);
  display: grid;
  place-items: center;
  pointer-events: none;
}

.mw-boot__hintText {
  width: min(520px, 92vw);
  text-align: center;
  font-size: 12px;
  opacity: 0.55;
  line-height: 1.35;
}

/* Reduced motion: kein Drehen */
@media (prefers-reduced-motion: reduce) {
  .mw-boot__logo { animation: none; }
  .mw-boot { transition: none; }
}

/* Während Boot aktiv ist: Footer & Scrim sicher "weg", falls sie sonst drüber liegen */
.mw-booting .playerfoot,
.mw-booting .brandfoot,
.mw-booting #scrim {
  visibility: hidden !important;
}

/* Simulierter Loading-Balken (Shimmer von links nach rechts) */
.mw-boot__bar {
  width: min(320px, 78vw);
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.mw-boot__barFill {
  position: absolute;
  inset: 0;
  /* Basis: leicht grünlich */
  background: linear-gradient(90deg,
    rgba(45, 255, 140, 0.10) 0%,
    rgba(45, 255, 140, 0.10) 100%
  );
}

/* Das “grüne Licht”, das rüberwandert */
.mw-boot__barFill::before {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  width: 35%;
  left: -40%;
  border-radius: 999px;
  background: linear-gradient(90deg,
    rgba(0,0,0,0) 0%,
    rgba(170,255,90,0.00) 25%,
    rgba(170,255,90,0.85) 50%,
    rgba(170,255,90,0.00) 75%,
    rgba(0,0,0,0) 100%
  );
  filter: blur(1px);
  animation: mwBootSweep 1.25s ease-in-out infinite; /* vorher 1.1s */
}

@keyframes mwBootSweep {
  0%   { transform: translateX(0); }
  100% { transform: translateX(360%); } /* vorher 220% -> läuft jetzt bis ganz rechts */
}

/* Reduced motion: keine Animation */
@media (prefers-reduced-motion: reduce) {
  .mw-boot__barFill::before {
    animation: none;
    opacity: 0.35;
    left: 35%;
  }
}
