:root {
    color-scheme: dark;
    background: #000;
}

* {
    box-sizing: border-box;
}

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

html {
    background: #000;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    height: 100vh;
    min-height: 100vh;
    background: transparent;
    overscroll-behavior: none;
}

@supports (height: 100dvh) {
    body {
        height: 100dvh;
        min-height: 100dvh;
    }
}

@supports not (height: 100dvh) {
    body {
        height: 100%;
        min-height: -webkit-fill-available;
    }
}

body > div:not(.initial-loader) {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    overflow: hidden;
}

@supports (height: 100dvh) {
    body > div:not(.initial-loader) {
        height: 100dvh;
        max-height: 100dvh;
    }
}

canvas {
    display: block;
    position: relative !important;
    z-index: 1 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw;
    max-height: 100vh;
    background: transparent !important;
    outline: none;
}

@supports (height: 100dvh) {
    canvas {
        height: 100dvh !important;
        max-height: 100dvh;
    }
}

.initial-loader {
    position: fixed;
    inset: 0;
    z-index: 1;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: 100dvh;
    padding:
        max(24px, env(safe-area-inset-top))
        max(24px, env(safe-area-inset-right))
        max(24px, env(safe-area-inset-bottom))
        max(24px, env(safe-area-inset-left));
    background: #000;
    color: #f8f8f8;
    font-family: Arial, Helvetica, sans-serif;
}

.initial-loader__brand {
    color: #e50914;
    font-size: 32px;
    font-weight: 800;
}

.initial-loader__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(248, 248, 248, 0.22);
    border-top-color: #e50914;
    border-radius: 50%;
    animation: initial-loader-spin 0.8s linear infinite;
}

@keyframes initial-loader-spin {
    to {
        transform: rotate(360deg);
    }
}
