:root {
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #081a17;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    display: grid;
    place-items: center;
}

#game {
    position: relative;
    width: min(100vw, calc(100vh * 4 / 3), 800px);
    aspect-ratio: 4 / 3;
    max-height: 100vh;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    background: #123d32;
}

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

.powered {
    position: absolute;
    left: 18px;
    bottom: 10px;
    z-index: 3;
    pointer-events: auto;
    font-size: 10px;
    line-height: 1;
}

.powered a {
    color: rgba(255, 255, 255, 0.42);
    text-decoration: none;
    transition: color 140ms ease;
}

.powered a:hover,
.powered a:focus-visible {
    color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 560px) {
    #game {
        border-radius: 0;
    }
}
