html, body {
  margin: 0;
  height: 100%;
  background: #000;
  overflow: hidden;
  cursor: none;
}
#stage {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: 50% 50%;
  /* JS sets transform: centre, rotate (R key / ?rotate=) and scale the 1080x1920 portrait stage to fit (contain). */
}
#cam {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
/* v08 settings panel: same size / rotation as the stage, so it reads upright on the TV */
#panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1080px;
  height: 1920px;
  transform-origin: 50% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  cursor: default;
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang HK", sans-serif;
}
#panel[hidden] { display: none; }
#panel .card {
  width: 900px;
  background: #FFF8EC;
  color: #245830;
  border-radius: 48px;
  padding: 48px 48px 40px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}
#panel h1 { margin: 0 0 28px; font-size: 56px; }
#panel .row { display: flex; align-items: center; gap: 16px; margin: 0 0 22px; }
#panel .row > span { width: 170px; font-size: 38px; font-weight: 700; line-height: 1.1; }
#panel small { font-size: 0.6em; font-weight: 500; opacity: 0.8; }
#panel button {
  flex: 1;
  min-height: 110px;
  font-family: inherit;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  color: #245830;
  background: #fff;
  border: 4px solid #A797BE;
  border-radius: 28px;
}
#panel button.on { background: #245830; color: #FFF8EC; border-color: #245830; }
#panel #offline { font-size: 30px; margin: 28px 0; }
#panel #panel-done { width: 100%; background: #A797BE; color: #fff; border-color: #A797BE; font-size: 44px; }

#debug {
  position: absolute;
  left: 8px;
  top: 8px;
  margin: 0;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #7CFC9A;
  font: 12px/1.4 Menlo, monospace;
  z-index: 10;
  white-space: pre;
}
