:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #c7c7c9;
}

#stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #c7c7c9;
}

.video-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.idle-layer {
  z-index: 1;
}

.action-layer {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease-in-out;
}

.action-layer.active {
  opacity: 1;
}

.status {
  position: absolute;
  z-index: 4;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgb(0 0 0 / 68%);
  font-size: 14px;
  white-space: nowrap;
}

.test-panel {
  position: absolute;
  z-index: 5;
  right: 18px;
  bottom: 18px;
  display: none;
  width: min(340px, calc(100vw - 36px));
  padding: 14px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 14px;
  background: rgb(12 12 14 / 86%);
  box-shadow: 0 12px 36px rgb(0 0 0 / 28%);
  backdrop-filter: blur(8px);
}

.test-panel.visible {
  display: block;
}

.test-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

button {
  padding: 10px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: #28282d;
  cursor: pointer;
  font-weight: 650;
}

button:hover {
  background: #3a3a42;
}

small {
  color: #b8b8c1;
}

code {
  color: #fff;
}
