:root {
    --scan: rgba(3, 14, 28, 0.22);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    background: #05070f;
    color: #bfe9ff;
    font-family: "Courier New", monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#wrap {
    position: relative;
    image-rendering: pixelated;
}

canvas {
    display: block;
    width: min(96vw, 138vh, 1280px);
    height: auto;
    aspect-ratio: 3 / 2;
    background: #070b1a;
    border: 3px solid #1c3b5a;
    box-shadow:
        0 0 0 3px #060a16,
        0 0 40px rgba(0, 240, 255, 0.28);
    image-rendering: pixelated;
    cursor: crosshair;
}

#wrap::after {
    content: "";
    position: absolute;
    inset: 3px;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0,
        rgba(0, 0, 0, 0) 2px,
        var(--scan) 3px,
        var(--scan) 4px
    );
    mix-blend-mode: multiply;
}