/* Black, and the glasses. Nothing else competes with them. */

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: #EDEFF5;
  color-scheme: dark;
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior: none;
}

/* The canvas takes the whole screen; the margin the owner asked for is kept
   inside it, by the scale, so the figure stays centred however tall the
   window is. */
#glasses {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: .2rem;
  padding-bottom: max(.3rem, env(safe-area-inset-bottom));
  pointer-events: none;
}
footer > * { pointer-events: auto; }

#lab-offline-status { margin: 0; font-size: .7rem; color: #6B7280; }
#lab-offline-status:empty { display: none; }

#lab-install-open {
  border: 0;
  background: none;
  color: #2F3238;
  font: inherit;
  font-size: .62rem;
  letter-spacing: .2em;
  padding: .3rem .8rem;
  min-height: 30px;
  cursor: pointer;
}
#lab-install-open:hover, #lab-install-open:focus-visible { color: #6B7280; }

dialog {
  max-width: min(24rem, 88vw);
  border: 1px solid #262A31;
  border-radius: 14px;
  padding: 1.2rem;
  background: #12151A;
  color: #EDEFF5;
  font-size: 15px;
}
dialog::backdrop { background: rgba(0, 0, 0, .7); }
dialog h2 { margin: 0 0 .5rem; font-size: 1rem; }
dialog p { margin: 0 0 1rem; }
dialog button {
  min-height: 44px;
  padding: .6rem 1.1rem;
  margin-right: .5rem;
  border: 1px solid #262A31;
  border-radius: 10px;
  background: #1B1F26;
  color: #EDEFF5;
  font: inherit;
  cursor: pointer;
}
