:root {
  color-scheme: light;
  --page: #dedede;
  --ink: #111;
  --line: rgba(16, 16, 16, 0.1);
  --glass: rgba(255, 255, 255, 0.72);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--page);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body.menu-hidden {
  cursor: none;
}

.stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--page);
}

#coverCanvas {
  width: 100vw;
  height: 100vh;
  display: block;
}

#sourceVideo {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

#imagePicker {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.menu {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.menu.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px);
}

.segments,
.exports {
  display: flex;
  align-items: center;
  gap: 2px;
}

.exports {
  padding-left: 8px;
  border-left: 1px solid var(--line);
}

button {
  height: 28px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: transparent;
  color: rgba(17, 17, 17, 0.62);
  font: 500 11px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    color 140ms ease,
    background 140ms ease;
}

button:hover {
  color: var(--ink);
}

button.is-active {
  background: #111;
  color: #fff;
}

@media (max-width: 680px) {
  .menu {
    top: 12px;
    max-width: calc(100vw - 24px);
    overflow-x: auto;
  }

  button {
    flex: 0 0 auto;
    padding: 0 10px;
  }
}
