/* Loader de camuflatge — només actiu si hi ha disfressa */
.stealth-loader {
  position: fixed; inset: 0; z-index: 99998;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--sl-bg, #2c3e50);
  color: var(--sl-fg, #ffffff);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  padding: 24px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.sl-app-name {
  font-size: 1.6rem; font-weight: 700; letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: flex; align-items: center; gap: 12px;
}
.sl-app-icon { width: 48px; height: 48px; border-radius: 10px; }
.sl-version { font-size: 0.78rem; opacity: 0.55; margin-bottom: 48px; }

.sl-status {
  font-size: 0.92rem; opacity: 0.85;
  margin-bottom: 14px;
  text-align: center; min-height: 1.3em;
  letter-spacing: 0.2px;
}

.sl-bar-wrap {
  width: min(360px, 80vw);
  position: relative;
}
.sl-bar-track {
  height: 8px;
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.sl-bar-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--sl-fg, #ffffff);
  border-radius: 999px;
  transition: width 0.18s linear;
}
/* Handle invisible: la circumferència donaria pistes sobre el gest, així que
 * no la pintem. Mantenim la hitbox (width/height) perquè el pointerdown encara
 * funcioni per arrossegar la barra. */
.sl-bar-handle {
  position: absolute; top: 50%;
  width: 36px; height: 36px;
  background: transparent;
  transform: translate(-50%, -50%);
  left: 0%;
  cursor: grab;
  transition: left 0.18s linear;
}
.sl-bar-handle:active,
.sl-bar-handle.is-dragging { cursor: grabbing; }

.sl-meta {
  display: flex; justify-content: space-between;
  width: min(360px, 80vw);
  margin-top: 12px;
  font-size: 0.78rem; opacity: 0.7;
  font-variant-numeric: tabular-nums;
}

.sl-server {
  position: absolute; bottom: 16px; left: 0; right: 0;
  text-align: center;
  font-size: 0.7rem; opacity: 0.4;
  letter-spacing: 0.3px;
}
