/* Styles for what directs the audience's eye inside the office: spotlight, autopilot beat, solo switch. */

/* ------------------------------------------------------------ spotlight */
/* A dark sheet with a clear oval in it. office.js moves and sizes the oval with a transform
   and fades the sheet with opacity, so the browser never has to repaint it. */
.dir-vignette {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  border-radius: 50%;
  background: radial-gradient(ellipse closest-side, rgba(3, 6, 16, 0) 56%, rgba(3, 6, 16, 0.5) 100%);
  box-shadow: 0 0 0 300vmax rgba(3, 6, 16, 0.5);
  opacity: 0; will-change: transform, opacity;
}

/* Labels away from the action step back; they are never hidden. */
.nametag, .porttag, .minitag { transition: opacity 0.45s ease, filter 0.45s ease; }
.nametag.dim, .porttag.dim, .minitag.dim { opacity: 0.5; filter: saturate(0.4); }

/* ----------------------------------------------------------------- solo */
.nametag.you { border-color: #fff; background: rgba(8, 13, 28, 0.95); padding: 0.26rem 0.8rem 0.3rem; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16), 0 6px 18px rgba(0, 0, 0, 0.55); }
.nametag.you b { font-size: 1.2em; letter-spacing: 0.02em; }
.nametag.you.waiting { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.28), 0 6px 18px rgba(0, 0, 0, 0.55); }
.nametag.you .count { font-size: 1.05em; }

/* ------------------------------------------------------- autopilot beat */
.ap-banner, .ap-headline, .ap-rewind, .ap-final, .ap-card { position: absolute; opacity: 0; transition: opacity 0.3s ease; }
.ap-banner.on, .ap-headline.on, .ap-rewind.on, .ap-final.on, .ap-card.on { opacity: 1; }

/* Dashed, like everything else on the page that is drawn rather than running. */
.ap-banner { left: 50%; top: 1.1em; transform: translateX(-50%); white-space: nowrap; background: rgba(8, 13, 28, 0.94); color: #fff; border: 2px dashed rgba(255, 255, 255, 0.75); border-radius: 999px; padding: 0.4em 1.3em; font-size: 1.35em; font-weight: 600; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6); }
.ap-banner b { text-transform: uppercase; letter-spacing: 0.14em; font-weight: 800; color: var(--amber); margin-right: 0.7em; }

.ap-card { left: 0; top: 0; will-change: transform; background: #dc2626; color: #fff; border: 2px solid #fff; border-radius: 10px; padding: 0.4em 0.85em 0.5em; white-space: nowrap; text-align: left; box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.35), 0 12px 26px rgba(0, 0, 0, 0.65); transition: opacity 0.2s ease; }
.ap-card small { display: block; font-size: 0.72em; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
.ap-card b { display: block; font-size: 1.3em; font-weight: 800; line-height: 1.15; }
.ap-card i { display: inline-block; margin-top: 0.3em; font-style: normal; font-size: 0.8em; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; background: #fff; color: #b91c1c; border-radius: 4px; padding: 0.05em 0.5em; }
.ap-card.stopped { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.5), 0 12px 26px rgba(0, 0, 0, 0.65); }

.ap-headline, .ap-final { left: 50%; bottom: 6%; transform: translateX(-50%); width: max-content; max-width: 92%; text-align: center; font-weight: 800; line-height: 1.12; border-radius: 16px; padding: 0.35em 0.9em 0.42em; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.7); }
.ap-headline { font-size: 3.3em; background: #b91c1c; color: #fff; border: 3px solid #fff; }
.ap-final { font-size: 2.6em; background: #fff; color: #0b1222; border: 3px solid var(--teal); }

.ap-rewind { left: 50%; top: 27%; transform: translate(-50%, -50%); font-size: 4em; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; text-shadow: 0 4px 22px rgba(0, 0, 0, 0.9); white-space: nowrap; transition: none; }
.ap-rewind.on { animation: ap-blink 0.3s steps(2, jump-none) infinite; }
.ap-rewind span { letter-spacing: -0.12em; margin-right: 0.3em; }
@keyframes ap-blink { from { opacity: 1; } to { opacity: 0.55; } }

/* While it rewinds the picture drains, the way a tape does. */
.stage.ap-rewinding canvas { filter: saturate(0.25) contrast(1.15) brightness(1.1); }
.porttag.alarm { background: #dc2626; border-color: #fff; opacity: 1; filter: none; }
