* {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background: #020611;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    overscroll-behavior: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.game-shell {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #020611;
}

#game {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
    background: #020611;
}

#game-error {
    position: absolute;
    inset: 18px;
    z-index: 10;
    display: grid;
    place-items: center;
    padding: 22px;
    text-align: center;
    color: #8a1111;
    background: rgba(255,255,255,.96);
    border-radius: 20px;
    font-weight: 800;
}

#game-error[hidden] {
    display: none;
}

@media (min-width: 950px) {
    body {
        display: grid;
        place-items: center;
        padding: 14px;
    }

    .game-shell {
        width: min(1100px, calc(100vw - 28px));
        height: min(680px, calc(100vh - 28px));
        height: min(680px, calc(100dvh - 28px));
        border: 3px solid rgba(255,255,255,.9);
        border-radius: 26px;
        box-shadow: 0 20px 55px rgba(0,0,0,.55);
    }
}
