:root { color-scheme: dark; background: #030b07; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-height: 100%; }
body { background: radial-gradient(ellipse at 50% 51%, #0b2114 0%, #06110b 35%, #030b07 70%); }
body::after { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .13; background: repeating-linear-gradient(0deg, #000 0px, #000 1px, transparent 1px, transparent 4px); }
main { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; min-height: 100svh; padding: 24px; overflow: hidden; }
.modem { position: relative; width: min(720px, 100%); min-width: 0; aspect-ratio: 2; }
#dial { display: block; appearance: none; border: 0; margin: 0; padding: 0; width: 100%; height: 100%; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
#dial:focus-visible { outline: 1px dashed #76ad6c; outline-offset: -26px; }
.screw { position: absolute; left: 87.5%; top: 64.4%; width: 2.8%; height: 5.6%; }
.screw:focus-visible { outline: 1px solid #b3e99d; outline-offset: 3px; }
.skyline { position: absolute; top: calc(50% + min(100px, 14vw)); width: min(960px, calc(100% - 48px)); height: auto; aspect-ratio: 4 / 1; mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 92%, transparent); }
[hidden] { display: none !important; }
body.connected #dial { cursor: default; }

@media (max-width: 480px) { main { padding: 12px; } }


