/* Deep water, and the rings. Nothing else competes with them. */

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

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #0A1623;
  color: #DDE3EA;
  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 asked for is kept inside it,
   by the scale, so the figure stays centred however tall the window is. */
#rings {
  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: #4A6076; }
#lab-offline-status:empty { display: none; }

#lab-install-open {
  border: 0;
  background: none;
  color: #29435C;
  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: #6E8CA6; }

dialog {
  max-width: min(24rem, 88vw);
  border: 1px solid #1D3044;
  border-radius: 14px;
  padding: 1.2rem;
  background: #0E1E30;
  color: #DDE3EA;
  font-size: 15px;
}
dialog::backdrop { background: rgba(4, 10, 17, .72); }
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 #1D3044;
  border-radius: 10px;
  background: #15283C;
  color: #DDE3EA;
  font: inherit;
  cursor: pointer;
}
