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

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

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

body {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 52% 22%, rgba(222, 180, 96, 0.18), transparent 38%),
        radial-gradient(circle at 20% 82%, rgba(54, 72, 83, 0.24), transparent 36%),
        linear-gradient(180deg, #111111 0%, #171510 52%, #080807 100%);
    color: #f0e8d2;
    font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

canvas {
    display: block;
    width: min(96vw, 173.33vh, 1280px);
    height: auto;
    aspect-ratio: 16 / 9;
    background: #11100d;
    border: 1px solid rgba(232, 198, 121, 0.28);
    border-radius: 8px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.88),
        0 0 54px rgba(212, 164, 70, 0.18),
        0 22px 70px rgba(0, 0, 0, 0.62);
    image-rendering: auto;
}

#wrap::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 7px;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0,
        rgba(0, 0, 0, 0) 3px,
        var(--scan) 4px,
        var(--scan) 5px
    );
    mix-blend-mode: soft-light;
}
