@font-face {
  font-family: Geist;
  src: url("./assets/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font-family: Geist, Arial, sans-serif;
  color: #242421;
  background: #f5f5f3;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
}
.player {
  width: 100%;
  max-width: 1920px;
}
.viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 2;
  overflow: hidden;
  isolation: isolate;
  background: #d1d0c6;
}
.stage {
  position: absolute;
  width: 1600px;
  height: 800px;
  transform-origin: top left;
  overflow: hidden;
}
.landscape {
  position: absolute;
  inset: -8px;
  background: url("./landscape.webp") center/cover;
}
.camera {
  position: absolute;
  inset: 0;
  transform-origin: 800px 400px;
  will-change: transform;
}
/* Matches the shared Dialog, Button and theme primitives. */
.dialog {
  position: absolute;
  left: 512px;
  top: 185px;
  width: 576px;
  height: 430px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fbfbf9;
  color: #1d1d16;
  border: 1px solid #e8e8e3;
  border-radius: 24px;
  box-shadow:
    0 10px 15px -3px #0000001a,
    0 4px 6px -4px #0000001a;
  transform-origin: 50% 55%;
  will-change: transform, opacity;
}
header {
  padding: 24px 48px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
h1 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: normal;
  margin: 0;
}
header p {
  font-size: 14px;
  line-height: 24px;
  color: #1d1d16b3;
  margin: 0;
}
.close {
  position: absolute;
  right: 16px;
  top: 16px;
  padding: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #5b5b4b;
}
.close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}
.panels {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 0 24px;
  overflow: hidden;
}
.panel {
  position: absolute;
  inset: 0;
  will-change: transform, opacity;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  background: rgba(244, 244, 240, var(--wash, 0));
}
.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color);
  color: var(--ink);
  font-size: 11px;
  font-weight: 550;
  flex-shrink: 0;
}
.app-logo {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #e8e8e3;
  background: #fbfbf9;
  border-radius: 9px;
}
.app-logo img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.row-name {
  flex: 1;
}
.switch {
  width: 36px;
  height: 20px;
  border-radius: 9999px;
  background: rgb(
    var(--track, 244),
    var(--track, 244),
    calc(var(--track, 244) - 4)
  );
  position: relative;
  flex-shrink: 0;
}
.switch:before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fbfbf9;
  box-shadow: 0 1px 3px #0002;
  transform: translateX(calc(var(--on, 0) * 16px));
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  height: 60px;
  padding: 0 24px 24px;
}
#selection-count {
  font-size: 12px;
  color: #5b5b4b;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.primary,
.secondary {
  height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9999px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
}
.primary {
  width: 112px;
  background: #1d1d16;
  color: #fbfbf9;
  transform-origin: 50% 50%;
}
.secondary {
  background: #f4f4f0;
  color: #1d1d16;
  min-width: 68px;
}
.cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 29px;
  filter: drop-shadow(0 2px 2px #0002);
  pointer-events: none;
}
.click-ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 29px;
  height: 29px;
  border: 1px solid #7c7c67;
  border-radius: 50%;
  pointer-events: none;
}
.controls {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  background: #ffffffeb;
  backdrop-filter: blur(15px);
  border-radius: 12px;
  box-shadow: 0 3px 18px #0002;
  opacity: 0;
  transition: opacity 0.2s;
  max-width: calc(100% - 24px);
}
.viewport:hover .controls,
.controls:focus-within,
.player.paused .controls {
  opacity: 1;
}
.controls button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  padding: 4px;
  white-space: nowrap;
}
.controls input {
  width: 180px;
  min-width: 40px;
  accent-color: #292923;
}
.controls output {
  font-size: 11px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.player:fullscreen {
  max-width: none;
  display: grid;
  place-items: center;
  background: #f5f5f3;
}
.player:fullscreen .viewport {
  width: min(100vw, 200vh);
}
@media (prefers-reduced-motion: reduce) {
  .controls {
    transition: none;
  }
}
