* {
  box-sizing: border-box;
}
html,
body,
main {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0d101b;
}
canvas {
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  touch-action: none;
}
canvas.mouse-look {
  cursor: none;
}
.gaze-dot {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgb(255 255 255 / 36%);
  box-shadow: 0 0 1px rgb(0 0 0 / 32%);
  pointer-events: none;
}
canvas.mouse-look + .gaze-dot {
  display: block;
}
nav {
  position: fixed;
  bottom: max(10px, env(safe-area-inset-bottom));
  right: max(14px, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  gap: 1px;
  opacity: 0.46;
  transition: opacity 0.35s;
}
body.quiet nav {
  opacity: 0.16;
}
nav:hover,
nav:focus-within,
body.quiet nav:hover,
body.quiet nav:focus-within {
  opacity: 0.98;
}
button {
  background: transparent;
  color: #fff;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 12px;
  cursor: pointer;
  border-radius: 50%;
  filter: drop-shadow(0 1px 3px #000);
}
button:hover,
button:focus-visible {
  background: #11182299;
}
button:focus-visible {
  outline: 1px solid white;
}
button svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
button[aria-pressed="true"] svg {
  fill: #ffffff66;
}
#record[aria-pressed="true"] {
  color: #ff6864;
}
#record[aria-pressed="true"] svg {
  fill: currentColor;
}
button:disabled {
  opacity: 0.22;
  cursor: default;
}
#loading {
  position: fixed;
  inset: 0;
  background: #0d101b;
  display: grid;
  place-items: center;
  transition: opacity 0.5s;
  pointer-events: none;
}
#loading i {
  height: 2px;
  width: min(130px, 22vw);
  background: #8994a330;
  overflow: hidden;
}
#loading i:after {
  content: "";
  display: block;
  height: 2px;
  background: #c3d1df;
  transform-origin: left;
  transform: scaleX(var(--progress, 0.02));
  transition: transform 0.3s;
}
#loading.done {
  opacity: 0;
}
#pad {
  display: none;
  pointer-events: none;
  position: fixed;
  width: 76px;
  height: 76px;
  margin: -38px;
  border: 1px solid #fff6;
  background: #14161c35;
  border-radius: 50%;
}
#pad b {
  position: absolute;
  left: 26px;
  top: 26px;
  width: 24px;
  height: 24px;
  background: #fff6;
  border-radius: 50%;
}
#notice {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  font: 14px/1.45 system-ui;
  color: white;
  background: #171920db;
  border-radius: 8px;
  padding: 8px 14px;
  text-align: center;
}
#notice:empty {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
