html {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    background: #000;
}

*, *::before, *::after {
    box-sizing: inherit;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body, canvas, #canvas {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -webkit-text-size-adjust: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    background: #000;
}

canvas {
    display: block;
}

#unity-container {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

#unity-canvas {
    flex: none;
    aspect-ratio: 16 / 9;
    background: #000;
}

#loading-cover {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

#unity-loading-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#unity-progress-bar-empty {
    width: min(50vw, 360px);
    height: 16px;
    margin: 16px;
    padding: 2px;
    overflow: hidden;
    border: 1px solid #ff4fa3;
    border-radius: 999px;
    background: #1a1016;
}

#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: #ff4fa3;
    box-shadow: 0 0 12px rgba(255, 79, 163, 0.65);
    transition: width 0.15s ease-out;
}

.spinner,
.spinner::after {
    width: 5em;
    height: 5em;
    border-radius: 50%;
}

.spinner {
    position: relative;
    margin: 10px;
    font-size: 10px;
    text-indent: -9999em;
    border: 1.1em solid rgba(255, 79, 163, 0.18);
    border-left-color: #ff4fa3;
    transform: translateZ(0);
    animation: spinner-spin 1.1s infinite linear;
}

@keyframes spinner-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
