:root {
    color-scheme: dark;
    background: #07090b;
}

@font-face {
    font-family: "Pixel Noir";
    src: url("assets/fonts/Pixel-Noir.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: block;
}

@font-face {
    font-family: "Pixel Noir Caps";
    src: url("assets/fonts/Pixel-Noir Caps.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: block;
}

@font-face {
    font-family: "Pixel Noir Skinny";
    src: url("assets/fonts/Pixel-Noir Skinny.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: block;
}

@font-face {
    font-family: "Pixel Noir Skinny Caps";
    src: url("assets/fonts/Pixel-Noir Skinny Caps.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: block;
}

@font-face {
    font-family: "Pixel Noir Skinny Short";
    src: url("assets/fonts/Pixel-Noir Skinny Short.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: block;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 40%, #18232d 0, #0b1015 42%, #050607 100%);
    font-family: "Pixel Noir", "Courier New", monospace;
}

#stage {
    position: relative;
    width: min(99vw, 176vh, 1600px);
    aspect-ratio: 16 / 9;
    background: #07090b;
    box-shadow:
        0 0 0 2px #33434d,
        0 0 0 5px #10151b,
        0 16px 60px #000;
}

#stage::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.035) 0,
        rgba(0, 0, 0, 0.035) 1px,
        transparent 1px,
        transparent 3px
    );
    mix-blend-mode: multiply;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
    background: #07090b;
    image-rendering: auto;
    cursor: crosshair;
    outline: none;
    touch-action: none;
}

canvas:focus-visible {
    box-shadow: inset 0 0 0 2px #90a98b;
}
