:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
}

body {
  margin: 0;
  background: #080808;
  color: #fafafa;
}

#screen {
  position: relative;
  display: grid;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  place-items: center;
  overflow: hidden;
}

#stage {
  width: min(100%, calc(100vh * 16 / 9));
  width: min(100%, calc(100dvh * 16 / 9));
}

#stage .roster {
  pointer-events: none;
}

#speaker {
  position: absolute;
  background: transparent;
  border: 0;
  border-radius: .25rem;
  cursor: pointer;
}

#speaker.speaker-12 {
  inset: 76.62% 4.66% 4.01% 84.44%;
}

#speaker.speaker-35 {
  inset: 75.38% 5.81% 2.56% 81.88%;
}

#controls {
  position: absolute;
  z-index: 1;
  bottom: 1rem;
  left: 50%;
  display: flex;
  align-items: center;
  gap: .35rem;
  max-width: calc(100% - 2rem);
  padding: .35rem;
  transform: translateX(-50%);
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: .75rem;
  background: rgb(16 18 24 / 94%);
  color: white;
  white-space: nowrap;
}

#screen.controls-hidden #controls:not(:focus-within) {
  pointer-events: none;
  opacity: 0;
}

#screen.controls-hidden:fullscreen {
  cursor: none;
}

#screen-message {
  position: absolute;
  z-index: 2;
  bottom: 4.65rem;
  padding: .45rem .75rem;
  border-radius: .35rem;
  background: rgb(16 18 24 / 94%);
  font-size: .875rem;
}

#controls button,
#page-number {
  display: grid;
  height: 2.2rem;
  min-width: 2.2rem;
  padding: 0 .45rem;
  place-items: center;
  border: 0;
  border-radius: .35rem;
  background: transparent;
  color: inherit;
  font: inherit;
}

#controls button[hidden],
#connection[hidden] {
  display: none;
}

#controls button:hover,
#page-number:hover {
  background: rgb(255 255 255 / 15%);
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid #b4d8ff;
  outline-offset: 2px;
}

#controls button:disabled {
  cursor: default;
  opacity: .4;
}

#controls button {
  cursor: pointer;
}

#controls svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#jump {
  display: flex;
  align-items: center;
  color: #d1d5dd;
  font-size: .875rem;
}

#page-number {
  width: 2.4rem;
  box-sizing: border-box;
  appearance: textfield;
  text-align: right;
  color: white;
  font-variant-numeric: tabular-nums;
}

#page-number::-webkit-inner-spin-button {
  appearance: none;
}

#connection {
  margin-inline: .2rem .35rem;
  color: #ffd798;
  font-size: .78rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
