:root {
    --scan: rgba(0, 0, 0, 0.24);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    align-items: center;
    background: #090a07;
    color: #d8d1a5;
    display: flex;
    font-family: "Courier New", monospace;
    justify-content: center;
}

#wrap {
    image-rendering: pixelated;
    position: relative;
}

canvas {
    aspect-ratio: 8 / 5;
    background: #252817;
    border: 3px solid #1b1b13;
    box-shadow:
        0 0 0 3px #070804,
        0 0 36px rgba(110, 92, 54, 0.38);
    display: block;
    height: auto;
    image-rendering: pixelated;
    width: min(96vw, 160vh, 1280px);
}

#wrap::after {
    background: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0,
        rgba(0, 0, 0, 0) 2px,
        var(--scan) 3px,
        var(--scan) 4px
    );
    content: "";
    inset: 3px;
    mix-blend-mode: multiply;
    pointer-events: none;
    position: absolute;
}
