:root{--bg:#000;--text:#fff;--sans:system-ui, "Segoe UI", Roboto, sans-serif;--heading:system-ui, "Segoe UI", Roboto, sans-serif;--mono:ui-monospace, Consolas, monospace;font:18px/145% var(--mono);color:var(--text);background:var(--bg);overscroll-behavior:none}body{margin:0;padding:0}main{box-sizing:border-box;justify-content:center;align-items:center;min-height:calc(100dvh - 1lh - .9rem);padding:24px;display:flex}a,a:visited{color:#fff}.screen{flex:1;min-width:0;max-width:calc(133.333dvh - 64px - 1.33333lh - 1.2rem - 1.33333em);margin-top:1em}canvas{width:100%;height:auto;image-rendering:pixelated;margin-inline:auto;display:block}.remote{flex:none;gap:24px;width:200px;display:grid}.keypad,.arrows,.colors{grid-template-columns:repeat(3,1fr);align-self:start;gap:8px;display:grid}.arrows button:first-child{grid-column:2}.arrows button:nth-child(2){grid-column:1}.colors{grid-template-columns:repeat(4,1fr)}.remote button{min-height:44px;font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;background:0 0;border:1px solid #262626;border-radius:0;padding:0}.remote button:active,.remote button[aria-pressed=true]{border-color:#fff}.remote button:focus-visible{outline-offset:3px;outline:2px solid #fff}.colors button{border:0}.colors button:active{opacity:.7}.colors [data-key=Red]{background:red}.colors [data-key=Green]{background:#0f0}.colors [data-key=Yellow]{background:#ff0}.colors [data-key=Blue]{background:#00f}.footer{text-align:center;margin-bottom:1em;font-size:.9rem}@media (orientation:portrait),(height<=600px){main{gap:24px;padding:12px}.screen{max-width:calc(133.333dvh - 32px - 1.33333lh - 1.2rem - 1.33333em)}.remote{grid-template-columns:repeat(2,1fr);gap:12px 8px;width:312px}.colors{grid-column:1/-1}}@media (orientation:portrait){main{flex-direction:column;gap:0;padding:0}.screen{flex:none;width:100%;max-width:max(320px,133.333dvh - 426.667px - 1.33333em);margin-inline:auto}.remote{width:min(340px,100% - 24px);margin:auto}.keypad,.arrows{gap:4px}.colors{grid-row:1}}
