:root { --scan: rgba(0,0,0,0.25); }

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
    background: #05060a;
    color: #c8f7ff;
    font-family: "Courier New", monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#wrap {
    position: relative;
    image-rendering: pixelated;
}

canvas {
    display: block;
    image-rendering: pixelated;
    background: #0a0e1a;
    border: 3px solid #2a3352;
    box-shadow: 0 0 0 3px #05060a, 0 0 40px rgba(80,180,255,0.35);
    width: min(96vw, 173.33vh, 1280px);
    height: auto;
    aspect-ratio: 16 / 9;
}

#wrap::after {
    content: "";
    position: absolute;
    inset: 3px;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0px,
        rgba(0,0,0,0) 2px,
        var(--scan) 3px,
        var(--scan) 4px
    );
    mix-blend-mode: multiply;
}

#hint {
    position: absolute;
    bottom: 8px;
    left: 0; right: 0;
    text-align: center;
    font-size: 11px;
    letter-spacing: 1px;
    color: #5b7bb8;
    pointer-events: none;
    text-shadow: 0 0 6px rgba(80,180,255,0.4);
}

