/* What stands over the picture when the player needs an answer: the
 * camera sheet, the big Play button, the end panel, the error panel, and
 * the shortcuts popover.  All sit inside #player, under the chrome (whose
 * bars sit clear of them) and over the picture. */

.scrim-center {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: var(--vignette), rgba(6, 8, 20, 0.72);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
}
.actions .icon { width: 18px; height: 18px; }

/* -- the big Play: a lamp disc, the one live thing on screen ----------- */

#bigplay { background: var(--scrim); }
/* With nothing loaded behind it (a deep link before its click) the room
   is dark, not a hole. */
#bigplay.ready { background: var(--vignette), var(--dome-deep); }
.bigplay {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--lamp);
  color: var(--dome-deep);
  transition: background var(--t-base) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.bigplay .icon { width: 34px; height: 34px; transform: translateX(2px); }
.bigplay:hover { background: var(--lamp-deep); }
.bigplay:active { transform: translateY(1px); }
.bigplay:focus-visible { outline-offset: 4px; border-radius: 50%; }

/* -- error: one line of what happened, then the way on ----------------- */

.errbox {
  display: grid;
  justify-items: center;
  gap: var(--s-4);
  max-width: 52ch;
  text-align: center;
}
#errtext {
  font: var(--t-body);
  color: var(--star);
  text-wrap: balance;
}

/* -- the camera sheet: small, over a player that is already playing ---- */

.sheet {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 120px;
  transform: translateX(-50%);
  width: min(440px, calc(100vw - 2 * var(--gutter)));
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-4) var(--s-3);
  padding: var(--s-6);
  border: 1px solid var(--rail);
  border-radius: var(--r-md);
  background: var(--seat);
  color: var(--star);
}
@starting-style {
  .sheet:not([hidden]) { opacity: 0; transform: translateX(-50%) translateY(6px); }
}
.sheet { transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }
.sheet-icon { width: 24px; height: 24px; color: var(--star-dim); margin-top: 1px; }
.sheet p { font: var(--t-body); }
.sheet .actions { grid-column: 1 / -1; justify-content: flex-start; }

/* -- shortcuts: a small popover, centred ------------------------------- */

#shortcuts {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(400px, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100vh - 2 * var(--gutter));
  overflow-y: auto;
  padding: var(--s-6);
  border: 1px solid var(--rail);
  border-radius: var(--r-md);
  background: var(--seat);
  user-select: text;
}
#shortcutlist {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-2) var(--s-4);
  margin: 0;
  font: var(--t-title);
}
#shortcutlist dt { color: var(--brass); white-space: nowrap; }
#shortcutlist dd { margin: 0; color: var(--star); }
