html,
body {
  margin: 0;
  height: 100%;
  background: #000;
  color: #f2f2f2;
}

#hollow-existence {
  min-height: 100%;
}

.hx-stage {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #000;
  touch-action: pan-y;
}

.hx-canvas,
.hx-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hx-canvas {
  touch-action: pan-y;
}

.hx-fallback {
  object-fit: contain;
  object-position: center;
  background: #000;
}

#hollow-existence.is-live .hx-fallback {
  visibility: hidden;
}

#hollow-existence.is-static .hx-canvas {
  display: none;
}

.hx-studio {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: min(340px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 14px;
  background: rgba(0, 0, 0, 0.86);
  color: #f4f4f4;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font: 11px/1.4 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  letter-spacing: 0.04em;
  touch-action: auto;
}

.hx-studio[hidden] {
  display: none !important;
}

.hx-studio__head,
.hx-row span,
.hx-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.hx-studio__head p,
.hx-export p,
.hx-status,
.hx-note,
.hx-toast {
  margin: 0 0 10px;
}

.hx-actions {
  flex-wrap: wrap;
  margin: 8px 0 12px;
}

.hx-studio button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: 0.06em;
  padding: 6px 8px;
  cursor: pointer;
}

.hx-studio button.is-on {
  background: #f2f2f2;
  color: #000;
}

.hx-row {
  display: block;
  margin: 0 0 8px;
}

.hx-studio input[type='range'] {
  width: 100%;
  accent-color: #fff;
}

.hx-check {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 8px;
}

.hx-note,
.hx-toast,
.hx-status {
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 720px) {
  .hx-studio {
    top: auto;
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    max-height: 46dvh;
  }
}
