* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #0b0b0f;
  overflow: hidden;
}

.hybrid-viewport {
  position: relative;
  width: min(100vw, 1180px);
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  --host-wheel-scale: 0.97;
  --host-hub-scale: 0.85;
  --host-off-x: 10px;
  --host-off-y: -62px;
  --host-wheel-stretch-x: 1.26;
  --host-wheel-clip: circle(50% at 50% 50%);
}

#video {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

.machine-ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hybrid-viewport .machine-ui,
.hybrid-viewport .kiosk {
  width: 100%;
  height: 100%;
  perspective: 1400px;
}

.hybrid-viewport .status {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  font-size: 10px;
}

.wheel-host {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hybrid-viewport .wheel-host .stage {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) translate(var(--wheel-translate-x, 0px), var(--wheel-translate-y, 0px))
    rotateZ(var(--wheel-rotate-z, 0deg)) rotateX(var(--wheel-tilt-x, 0deg))
    scale(calc(var(--wheel-scale, 1) * var(--host-wheel-scale, 1) * var(--host-wheel-stretch-x, 1)), calc(var(--wheel-scale, 1) * var(--host-wheel-scale, 1))) !important;
}

.hybrid-viewport .stage,
.hybrid-viewport #ring {
  pointer-events: none;
}

.hybrid-viewport #ring {
  clip-path: var(--host-wheel-clip, circle(50% at 50% 50%));
  image-rendering: auto;
}

.hybrid-viewport .ball {
  display: none !important;
}
