* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: #000;
  color: #d9e3e8;
  font: 13px/1.4 system-ui, -apple-system, 'Segoe UI', sans-serif;
}
#stage { position: relative; width: 100%; min-height: 100vh; }
#win { position: absolute; }
#cv { display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
#note { position: fixed; top: 10px; left: 12px; margin: 0; color: #7d8a90; font-size: 12px; }
#view { position: fixed; top: 10px; right: 10px; display: flex; gap: 4px; }
#view button { background: #111; color: #9aa7ad; border: 1px solid #333; border-radius: 3px; padding: 3px 9px;
  font: inherit; cursor: pointer; }
#view button:hover { color: #fff; border-color: #555; }
#view button.on { color: #fff; border-color: #6794a7; background: #1a2a32; }
#view button:focus-visible, #toolbtn:focus-visible { outline: 2px solid #ffcf30; outline-offset: 1px; }
#toolbtn { display: none; position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: none; border: 0; padding: 6px; cursor: pointer; }
#toolbtn img { display: block; height: 102px; width: auto; image-rendering: pixelated; }
body.closed #toolbtn { display: block; }
#errors:not(:empty) { position: fixed; left: 12px; top: 12px; background: #a52400; color: #fff; padding: 8px 12px;
  border-radius: 4px; }
