/* The Dufus cam page: the white void (the same colour as VOID_BACKGROUND in cam.js), a caption bubble above Dufus,
   the song line and the Hear Dufus toggle. The text is dark so it shows on the white. */
:root {
  --bg: #f2f2f2;
  --text: #1c1c20;
  --dim: #4a4a52;
  --bubble: #ffffff;
  --bubble-text: #1c1a17;
  --bubble-edge: #d6d6dc;
  --on: #2b7d45;
  --off: #5a5f68;
}
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif;
}
#stage, #stage canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.caption {
  position: fixed;
  left: 50%;
  top: 7%;
  transform: translateX(-50%);
  max-width: min(80vw, 520px);
  padding: 10px 16px;
  border-radius: 16px;
  background: var(--bubble);
  color: var(--bubble-text);
  font-size: 17px;
  text-align: center;
  border: 1px solid var(--bubble-edge);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: opacity 0.6s;
}
.caption::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  margin-left: -9px;
  border: 9px solid transparent;
  border-bottom: 0;
  border-top-color: var(--bubble);
}
.hidden { opacity: 0; }
.song {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 52px;
  text-align: center;
  color: var(--dim);
  padding: 0 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--dim);
}
#hear {
  border: 0;
  border-radius: 14px;
  padding: 6px 14px;
  background: var(--off);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
#hear[aria-pressed="true"] { background: var(--on); }
#hear:disabled { opacity: 0.5; cursor: default; }
