html {
    box-sizing: border-box;
}

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

html, body {
    height: 100%;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 40%),
        linear-gradient(180deg, #10141e 0%, #0a0d14 100%);
    color: #ffffff;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

canvas {
    display: block;
}

#unity-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

#unity-canvas {
    height: 100vh;
    width: auto;
    max-width: 100%;
    aspect-ratio: 9 / 16;
    background: #231F20;
    border-radius: 16px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

#loading-cover {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background:
        radial-gradient(circle at top, rgba(49, 125, 255, 0.2), transparent 42%),
        linear-gradient(180deg, rgba(16, 20, 30, 0.98) 0%, rgba(10, 13, 20, 0.98) 100%);
}

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

.logo-title {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#unity-progress-bar-empty {
    width: 100%;
    height: 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 2px;
}

#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #4f8cff 0%, #9cc2ff 100%);
    transition: width 0.4s ease;
}

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

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

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

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