:root {
  --background: #f5f5f5;
  --label-color: #4d4d4d;
  --video-content-top-pos: 0px;
  --video-content-height-current: 298px;
  --video-edge-fade-height: 36px;
  --label-left-pos: 0px;
  --label-right-pos: 0px;
  --label-top-pos: 0px;
  --label-size-current: 18px;
  --label-line-height-current: 23px;
  --label-letter-spacing-current: 0em;
  --video-left-pos: 0px;
  --video-top-pos: 0px;
  --video-width-current: 168px;
  --video-height-current: 298px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--background);
}

body {
  overflow: hidden;
  color: var(--label-color);
  font-family: "DM Mono", "SFMono-Regular", Consolas, "Liberation Mono",
    monospace;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: auto;
}

.viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: var(--background);
  overflow: hidden;
}

.artboard {
  position: relative;
  width: 100%;
  height: 100%;
}

.label {
  position: absolute;
  margin: 0;
  color: var(--label-color);
  font-size: var(--label-size-current);
  font-style: normal;
  font-weight: 400;
  line-height: var(--label-line-height-current);
  white-space: nowrap;
  letter-spacing: var(--label-letter-spacing-current);
  pointer-events: none;
  z-index: 4;
}

.glyph {
  display: inline-block;
}

.glyph-scrambled {
  filter: blur(calc(var(--label-size-current) * 0.05));
  opacity: 0.88;
}

.label-left {
  left: var(--label-left-pos);
  top: var(--label-top-pos);
}

.label-right {
  left: var(--label-right-pos);
  top: var(--label-top-pos);
}

.video-shell {
  position: absolute;
  left: var(--video-left-pos);
  top: var(--video-top-pos);
  width: var(--video-width-current);
  height: var(--video-height-current);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
  isolation: isolate;
}

.video-shell::before {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: calc(
    var(--video-content-top-pos) + var(--video-content-height-current) -
      var(--video-edge-fade-height) - 2px
  );
  height: calc(var(--video-edge-fade-height) + 4px);
  background-image:
    linear-gradient(
      180deg,
      rgba(245, 245, 245, 0) 0%,
      rgba(245, 245, 245, 0.14) 24%,
      rgba(245, 245, 245, 0.44) 54%,
      rgba(245, 245, 245, 0.8) 82%,
      rgba(245, 245, 245, 1) 100%
    ),
    linear-gradient(180deg, #f5f5f5 0%, #f5f5f5 100%);
  background-size: 100% calc(100% - 2px), 100% 2px;
  background-position: top left, bottom left;
  background-repeat: no-repeat;
  opacity: 1;
  pointer-events: none;
  z-index: 2;
}

.video-shell canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
  pointer-events: none;
  z-index: 1;
}

.video-shell video {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 64px;
  height: 64px;
  display: block;
  opacity: 0;
  pointer-events: none;
}

.video-shell video.is-hidden {
  opacity: 0;
}

body.use-native-video .video-shell canvas {
  display: none;
}

body.use-native-video .video-shell video {
  position: absolute;
  left: 0;
  top: var(--video-content-top-pos);
  width: 100%;
  height: var(--video-content-height-current);
  opacity: 1;
  background: transparent;
  z-index: 1;
}

body.use-native-video .video-shell video.is-hidden {
  opacity: 0;
  z-index: 0;
}

.video-hotspot {
  position: absolute;
  left: 18%;
  top: 8%;
  width: 64%;
  height: 84%;
  background: transparent;
  cursor: pointer;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  z-index: 3;
}

.video-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px dashed rgba(77, 77, 77, 0.12);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.video-missing .video-shell::after {
  opacity: 1;
}

@media (min-width: 769px) {
  body.use-native-video .label-left {
    transform: translateX(-32px);
  }

  body.use-native-video .label-right {
    transform: translateX(32px);
  }
}
