body {
    margin: 0;
    padding: 0;
    background-color: #000;
}

/* Container that centers and crops the blurred background */
#background-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    aspect-ratio: 2 / 3;
    width: clamp(0px, 100dvw, 66.667dvh);
    height: auto;
    background: #000;
    overflow: hidden;
}

.background-blur {
    position: absolute;
    inset: 0;
    /* For Richmedia Panel, it transforms "_ASSETS_" to absolute path in index.html. */
    /* For Netlify demo link, icon.png and loading-styles.css are under same folder. */
    background-image: var(--background-icon-url), url("icon.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(15px);
    transform: scale(1.2);
}

#loading-container {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: #fff;
    padding: 16px;
    backdrop-filter: none;
}

.icon {
    margin-top: -40px;
    width: 90px;
    height: 90px;
}

.game-title {
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.progress-outer {
    width: clamp(100px, 25vw, 180px);
    height: 12px;
    margin: 0 auto 16px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 100px;
    background: transparent;
    padding: 3px;
    box-sizing: border-box;
    position: relative;
}

.progress-track {
    position: absolute;
    left: 6px;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    background: rgba(35, 40, 50, 0.2);
    border-radius: 100px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
}

.progress-inner {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 0%;
    background: #ffffff;
    border-radius: inherit;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
    animation: fillTo50 5s linear forwards;
    z-index: 1;
}

@keyframes fillTo50 {
    from {
        width: 0%;
    }
    to {
        width: 50%;
    }
}

.appier-logo {
    width: 70px;
    height: auto;
    margin: 6px auto 0;
}

