comet-stage {
  --stage-ink: #211f1c;
  display: block;
  position: relative;
  width: 100%;
  height: var(--stage-height, clamp(260px, 52svh, 570px));
  overflow-x: clip;
  overflow-y: visible;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
}
comet-stage .stage-drawing {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
comet-stage > .poster {
  position: absolute;
  left: 50%;
  bottom: 3.5%;
  height: min(69%, 85vw);
  width: auto;
  transform: translateX(-50%);
}
comet-stage[data-stage-ready] > .poster {display: none;}
comet-stage .comet-stage-hit {
  display: block;
  appearance: none;
  position: absolute;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 42%;
  pointer-events: auto;
  cursor: pointer;
  color: var(--stage-ink);
  touch-action: pan-y pinch-zoom;
}
comet-stage[data-phase="scroll"] .comet-stage-hit,
comet-stage .comet-stage-hit:disabled { pointer-events:none; }
comet-stage button:focus-visible {outline: 2px dashed var(--stage-ink); outline-offset: 4px;}
comet-stage .comet-replay {
  position: absolute;
  right: var(--stage-replay-inset, clamp(18px, 4vw, 72px));
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 5px;
  min-width: 44px;
  min-height: 44px;
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--stage-ink);
  font: inherit;
  font-size: .875rem;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}
comet-stage .comet-replay svg {width: 17px;height:17px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round;}
comet-stage .comet-replay:hover span {text-decoration: underline;text-underline-offset:.2em;}
comet-stage .comet-replay[hidden] {display:none;}
@media (prefers-reduced-motion: reduce) {comet-stage .comet-replay {display:none;}}

comet-stage .comet-stage-hit { cursor: grab; -webkit-user-select: none; user-select: none; }
comet-stage:is([data-phase="seated"], [data-phase="glance"], [data-available], [data-play]) .comet-stage-hit { touch-action: pinch-zoom; }
comet-stage .comet-stage-hit[aria-pressed="true"] { cursor: grabbing; }

comet-stage .comet-stage-hit[data-pointer-focus]:focus-visible { outline: none; }
