:root{font-family:"Courier New",monospace;color:#fff4d8;background:#09122b;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100svh;display:grid;place-items:center;background-color:#09122b}button,a{-webkit-tap-highlight-color:transparent}button{font:700 12px "Courier New",monospace;cursor:pointer;color:inherit;border-radius:0}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:2px solid #ffc66b;outline-offset:4px}.console{width:min(800px,100%);padding:14px 16px 10px}header{display:flex;justify-content:space-between;align-items:center;gap:12px;max-width:704px;margin:0 auto 12px}.brand{color:#ff8fb6;font-size:30px;font-weight:900;letter-spacing:-2px;text-decoration:none;text-shadow:3px 3px #702947}header>span{font-size:9px;line-height:1.7;letter-spacing:1px;color:#70a9b0}header b{color:#ffc66b}#sound{padding:9px 11px;background:#203b58;border:2px solid #376481;box-shadow:3px 3px #030917;font-size:10px}.screen-shell{width:min(704px,calc(100vw - 32px),calc((100svh - 235px)*1.0666667));margin:auto;border:4px solid #354b69;box-shadow:0 0 0 4px #050b1b;background:#050b1b;padding:8px}.screen-label{display:flex;align-items:center;gap:7px;color:#7190a7;font-size:8px;letter-spacing:1px;height:18px}.screen-label span:last-child{margin-left:auto}.screen-label i{width:5px;height:5px;background:#ff536e;box-shadow:0 0 0 2px #381c37}canvas{width:100%;height:auto;display:block;image-rendering:pixelated;image-rendering:crisp-edges;touch-action:none;outline:none;background:#09122b;aspect-ratio:256/240}.controller{display:flex;align-items:center;justify-content:space-between;gap:14px;max-width:704px;margin:16px auto 0;background:#c7c6bf;border:4px solid #f5e9cb;border-right-color:#827f81;border-bottom-color:#827f81;color:#252737;padding:10px 20px;min-height:119px;box-shadow:4px 4px #020817}.dpad{display:grid;grid-template:repeat(3,29px)/repeat(3,32px)}.dpad button{background:#202b42;border:0;color:#7188a5;font-size:15px;touch-action:none}.dpad button:nth-child(1){grid-area:1/2}.dpad button:nth-child(2){grid-area:2/1}.dpad span{grid-area:2/2;background:#202b42}.dpad button:nth-child(4){grid-area:2/3}.dpad button:nth-child(5){grid-area:3/2}.dpad button:active{background:#516080;color:#fff4d8}.center-controls{text-align:center;align-self:end;padding-bottom:10px}.center-controls>div{display:flex;gap:10px;justify-content:center}.center-controls button{font-size:10px;border:0;background:#5e616b;border-bottom:4px solid #343846;padding:10px;color:#f5e9cb;touch-action:none}.center-controls small{display:block;font-size:8px;margin-top:12px;font-weight:bold;color:#6b6268}.action-buttons{display:flex;gap:14px}.action-buttons label{display:grid;justify-items:center;gap:5px}.action-buttons button{width:48px;height:48px;border-radius:50%;background:#a5224b;border:4px solid #d84e75;border-right-color:#731b3d;border-bottom-color:#731b3d;color:#fff4d8;font-size:20px;touch-action:none}.action-buttons button:active{background:#ec6292}.action-buttons small{font-size:9px;font-weight:bold}footer{max-width:704px;margin:14px auto 0;display:flex;justify-content:space-between;font-size:9px;letter-spacing:1px;color:#638199}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@media(max-width:520px){.console{padding:14px 12px}.brand{font-size:25px}header>span{font-size:7px;letter-spacing:.5px}#sound{font-size:8px;padding:8px}.screen-shell{width:100%;padding:4px}.screen-label{font-size:6px;letter-spacing:.5px}.controller{padding:10px 9px;gap:8px}.dpad{grid-template:repeat(3,31px)/repeat(3,30px)}.center-controls>div{gap:5px}.center-controls button{padding:10px 7px;font-size:8px}.center-controls small{font-size:6px;max-width:100px;line-height:1.5}.action-buttons{gap:8px}.action-buttons button{width:43px;height:43px}footer{font-size:7px;letter-spacing:.5px}}@media(max-height:600px) and (min-width:700px){.console{display:grid;grid-template-columns:1fr 220px;gap:14px;width:auto}header{grid-column:1/3;width:100%;margin:0}.screen-shell{width:calc((100svh - 110px)*1.0666667)}.controller{width:210px;flex-wrap:wrap;justify-content:center;align-content:center;margin:0}.center-controls{order:3;margin-top:15px}footer{grid-column:1/3;width:100%;margin:0}}

.sync-status{display:block;max-width:704px;margin:12px auto 0;padding:6px 10px;background:#172a45;border:1px solid #41617c;font-size:9px;color:#ffc66b}.sync-status:disabled{background:transparent;border-color:transparent;color:#638199;cursor:default}.screen-shell{width:min(704px,calc(100vw - 32px),calc((100svh - 322px)*1.0666667))}@media(max-width:520px){.screen-shell{width:100%}}@media(max-height:600px) and (min-width:700px){.sync-status{grid-column:1/3;margin:0}.screen-shell{width:calc((100svh - 190px)*1.0666667)}}

#reload{margin:9px auto 0;font-size:8px;padding:7px;background:#34485a;color:#fff4d8}#reload[hidden]{display:none}
