* { box-sizing: border-box; }
html, body, main { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { background: #171717; color: #fff; font: 14px/1.35 Arial, sans-serif; }
main { position: relative; background: #111; }
canvas { display: block; width: 100%; height: 100%; object-fit: contain; touch-action: none; cursor: default; }
button { min-height: 36px; padding: 7px 12px; border: 1px solid #b6b6b6; border-radius: 5px; background: #f7f7f7; color: #252525; font: inherit; cursor: pointer; box-shadow: 0 1px 5px #0003; }
button:hover { background: #e8e8e8; }
button:disabled { opacity: .6; cursor: default; }
button:focus-visible, canvas:focus-visible { outline: 3px solid #005fcc; outline-offset: -3px; }
#fullscreen { position: fixed; bottom: 12px; right: 12px; z-index: 3; }
#connection { position: fixed; z-index: 3; left: 12px; bottom: 12px; max-width: min(650px, calc(100% - 170px)); padding: 8px 12px; border-radius: 5px; background: #f7f7f7; color: #252525; box-shadow: 0 1px 5px #0003; }
#connect { margin-left: 8px; }
#waiting { position: absolute; inset: 0; display: grid; place-items: center; padding: 32px; text-align: center; background: #171717; }
[hidden] { display: none !important; }
@media (max-width: 600px) { #connection { bottom: 58px; max-width: calc(100% - 24px); } }

#fps-meter {position:fixed;z-index:4;padding:4px 0;text-align:right;background:transparent;color:#292b25;font:600 12px/1.4 ui-monospace,monospace;font-variant-numeric:tabular-nums;pointer-events:none;}
