html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    overscroll-behavior: none;
    /* kill iOS Safari rubber-band bounce */
    background: #{{{ BACKGROUND_COLOR }
}
}

;
}

#unity-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    /* dvw/dvh account for mobile browser chrome (address bar) showing/hiding,
     so the page never leaves a gap or scrolls when the URL bar collapses */
    width: 100dvw;
    height: 100dvh;
    background: #{{{ BACKGROUND_COLOR }
}
}

;
touch-action: none;
}

#unity-canvas {
    width: 100%;
    height: 100%;
    display: block;
    background: #{{{ BACKGROUND_COLOR }
}
}

;
touch-action: none;
}

/* Loading bar, centered over the canvas */
#unity-loading-bar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

#unity-logo {
    width: 80px;
    height: 80px;
    border: 3px solid #fff;
    border-radius: 50%;
    opacity: 0.85;
}

#unity-progress-bar-empty {
    width: 200px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: #fff;
    transition: width 0.2s ease-out;
}

#unity-warning {
    position: absolute;
    top: max(12px, env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    z-index: 10;
    font: 14px sans-serif;
}

#unity-fullscreen-button {
    position: absolute;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
}
