.tally-object {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 6 / 5;
  isolation: isolate;
}
.tally-object .object-poster, .tally-object .object-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.tally-object .object-canvas { visibility: hidden; pointer-events: none; }
.tally-object[data-live] .object-canvas { visibility: visible; }
.tally-object[tabindex] { cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y pinch-zoom; }
.tally-object[data-grabbing] { cursor: grabbing; }
.tally-object[tabindex]:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; border-radius: 6px; }
.tally-object[data-live] .object-poster,
.tally-object[data-loading] .object-poster { visibility: hidden; }
/* Keep the finished poster for no-JS, reduced motion and failed WebGL. When
   scripting is available the first animated paint starts with the original build. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .tally-object:not([data-live]):not([data-loading]):not([data-poster]) .object-poster {
    animation: team-wait 2s steps(1, end);
  }
  @keyframes team-wait { from { visibility: hidden; } to { visibility: visible; } }
}
.tally-object [hidden] { display: none !important; }
