:root { --scan: rgba(0,0,0,0.22); }

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
    background: #060608;
    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: #0a0c14;
    border: 3px solid #1a2035;
    box-shadow: 0 0 0 3px #060608, 0 0 40px rgba(40,80,180,0.25);
    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;
}

#musicToggle {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 24px;
    height: 20px;
    border: 1px solid #52627e;
    background: rgba(6, 8, 16, 0.82);
    color: #c8f7ff;
    font: 700 11px/1 "Courier New", monospace;
    text-align: center;
    cursor: pointer;
    image-rendering: pixelated;
}

#musicToggle:hover,
#musicToggle:focus-visible {
    border-color: #c8f7ff;
    outline: none;
}

#musicToggle[aria-pressed="true"] {
    color: #667088;
    border-color: #2a3550;
}

#musicToggle[aria-pressed="true"]::after {
    content: "/";
    position: absolute;
    left: 6px;
    top: 2px;
    color: #ff5a6a;
    font-size: 18px;
}

#hint {
    position: absolute;
    bottom: 8px;
    left: 0; right: 0;
    text-align: center;
    font-size: 10px;
    letter-spacing: 1px;
    color: #2a3550;
    pointer-events: none;
    text-transform: uppercase;
}
