:root {
    color-scheme: dark;
    font-family: Jost, Futura, "Century Gothic", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body,
#game-shell,
#embed-html {
    width: 100%;
    height: 100%;
}

@supports (height: 100dvh) {
    html,
    body,
    #game-shell,
    #embed-html {
        height: 100dvh;
    }
}

html,
body {
    overflow: hidden;
}

body {
    margin: 0;
    color: #f0ede6;
    background: #171719;
    overscroll-behavior: none;
}

canvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
    cursor: default;
    outline: none;
    touch-action: none;
}

#game-shell,
#embed-html {
    display: flex;
    align-items: center;
    justify-content: center;
}

#game-shell {
    padding: env(safe-area-inset-top) env(safe-area-inset-right)
        env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.skip-link {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    left: max(12px, env(safe-area-inset-left));
    z-index: 10001;
    padding: 10px 14px;
    color: #171719;
    background: #facc00;
    font-weight: 800;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: translateY(0);
}

#loading-status {
    position: fixed;
    inset: 0;
    display: grid;
    z-index: 10;
    place-content: center;
    justify-items: center;
    gap: 18px;
    color: #f0ede6;
    background: #171719;
    letter-spacing: .08em;
    text-transform: uppercase;
}

#loading-status[hidden] {
    display: none;
}

#loading-status span {
    width: 48px;
    height: 48px;
    background: conic-gradient(#db141c 0 33%, #facc00 0 66%, #0052a1 0);
    border-radius: 50%;
    animation: loading-turn 1.1s linear infinite;
}

@keyframes loading-turn {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    #loading-status span {
        animation: none;
    }
}

p {
    text-align: center;
    color: #eeeeee;
}

a {
    text-align: center;
    color: #bbbbff;
}

.superdev {
    color: rgb(37,37,37);
    text-shadow: 0px 1px 1px rgba(250,250,250,0.1);
    font-size: 50pt;
    display: block;
    position: relative;
    text-decoration: none;
    background-color: rgb(83,87,93);
    box-shadow: 0px 3px 0px 0px rgb(34,34,34),
                0px 7px 10px 0px rgb(17,17,17),
                inset 0px 1px 1px 0px rgba(250, 250, 250, .2),
                inset 0px -12px 35px 0px rgba(0, 0, 0, .5);
    width: 70px;
    height: 70px;
    border: 0;
    border-radius: 35px;
    text-align: center;
    line-height: 68px;
}

.superdev:active {
    box-shadow: 0px 0px 0px 0px rgb(34,34,34),
                0px 3px 7px 0px rgb(17,17,17),
                inset 0px 1px 1px 0px rgba(250, 250, 250, .2),
                inset 0px -10px 35px 5px rgba(0, 0, 0, .5);
    background-color: rgb(83,87,93);
    top: 3px;
    color: #fff;
    text-shadow: 0px 0px 3px rgb(250,250,250);
}

.superdev:hover {
    background-color: rgb(100,100,100);
}
