html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: #000;
    touch-action: none; overscroll-behavior: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
  canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; }
  #ui { pointer-events: none; }
  #textinput { position: absolute; display: none; background: transparent; border: none; outline: none; color: transparent;
    caret-color: transparent; font-family: monospace; padding: 0 2px; z-index: 5; }
  #err { position: absolute; left: 10%; top: 30%; width: 80%; color: #fff; font: 18px sans-serif; white-space: pre-wrap; display: none; text-align: center; }
  #boot { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; font: 16px "Microsoft YaHei", sans-serif; background: #000; }
  #boot b { font-size: 30px; letter-spacing: 2px; margin-bottom: 18px; }
  #bootbar { width: min(320px, 70vw); height: 10px; border: 2px solid #fff; padding: 2px; box-sizing: content-box; }
  #bootbar i { display: block; height: 100%; width: 0; background: #fff; }
  #boottext { margin-top: 10px; font-size: 14px; }
  #bootnote { position: absolute; bottom: 14px; font-size: 12px; opacity: .85; }
#bootbar i { transition: width 120ms linear; }
#boottext { white-space: pre-line; text-align: center; max-width: 90vw; overflow-wrap: anywhere; }
