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

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

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

body {
    position: fixed;
    inset: 0;
    overscroll-behavior: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: none;
}

canvas {
    display: block;
}

#unity-container {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: #000000;
    touch-action: none;
}

#unity-stage {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    will-change: transform, width, height, left, top;
}

#unity-shell {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000000;
}

#unity-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #CCCCCC;
}

#unity-hit-layer {
    position: fixed;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    touch-action: none;
    background: transparent;
}

#unity-container.is-rotated #unity-hit-layer {
    pointer-events: auto;
}

#unity-container.is-rotated #unity-canvas {
    pointer-events: none;
}

#loading-cover {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.84);
}

#unity-loading-bar {
    width: min(420px, 80vw);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
}

#unity-logo {
    text-align: center;
}

#unity-logo img {
    width: min(260px, 70vw);
    max-width: 100%;
    height: auto;
}

#unity-progress-bar-empty {
    width: 100%;
    height: 20px;
    border: 1px solid #ffffff;
    padding: 2px;
}

#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: #ffffff;
}

.light #unity-progress-bar-empty {
    border-color: #000000;
}

.light #unity-progress-bar-full {
    background: #000000;
}

#unity-fullscreen-button {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 12;
    width: 42px;
    height: 42px;
    background: url("fullscreen-button.png") no-repeat center;
    background-size: contain;
    cursor: pointer;
}

.unity-mobile #unity-fullscreen-button {
    display: none !important;
}

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

.spinner {
    font-size: 10px;
    position: relative;
    text-indent: -9999em;
    border-top: 1.1em solid rgba(255, 255, 255, 0.2);
    border-right: 1.1em solid rgba(255, 255, 255, 0.2);
    border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);
    border-left: 1.1em solid #ffffff;
    transform: translateZ(0);
    animation: spinner-spin 1.1s infinite linear;
}

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

    100% {
        transform: rotate(360deg);
    }
}
