body {
    margin: 0;
    width: 100vw;
    height: 100vh;
}

.background-loader {
    background: #000000 !important;
    background-color: #000000 !important;
}

#platform-preloader {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 2;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: min(376px, 80vw);
    max-width: 100vw;
}

#progress-bar {
    --progress: 0%;
    position: relative;
    width: 54%;
    height: 7px;
    border-radius: 12px;
    border: 1px solid #9F9CA3;
    box-sizing: border-box;
    overflow: hidden;
    /* Clip children to the pill shape */
    -webkit-mask-image: linear-gradient(#000 0 0);
    mask-image: linear-gradient(#000 0 0);
}

.progress-bar-bg {
    position: absolute;
    inset: 0;
    background: #000;
}

/*
  Soft edge extends past the solid fill and is clipped by #progress-bar:
  - 0%: width stays 0 → fully black
  - mid: solid white + soft fade into the track
  - 100%: fade sits past the bar edge → fully white
*/
.progress-bar-fill {
    --fade: 28px;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: calc(var(--progress) + var(--fade) * min(1, var(--progress) / 1%));
    background: linear-gradient(
        90deg,
        #FFF 0%,
        #FFF calc(100% - var(--fade)),
        rgba(255, 255, 255, 0) 100%
    );
}

#progress-bar-percent {
    color: #9F9CA3;
    font-size: 12px;
    font-family: sans-serif;
}
