#stage #sheetImage { cursor: zoom-in; }
#artZoom {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0;
  background: #171816;
  color: #faf9f5;
}
#artZoom[open] { display: grid; grid-template-rows: auto minmax(0,1fr); }
#artZoom::backdrop { background: #171816; }
.zoom-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
  border-bottom: 1px solid #454642;
}
.zoom-bar h2 {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 400 clamp(16px, 2vw, 22px)/1.3 Georgia,serif;
}
.zoom-bar button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #666862;
  border-radius: 22px;
  background: transparent;
  color: inherit;
  font: 500 14px/1 Arial,sans-serif;
  white-space: nowrap;
}
#artZoom :focus-visible, #sheetImage:focus-visible { outline: 2px solid #a5c8ff; outline-offset: -3px; }
#zoomView { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.zoom-canvas { width: max-content; min-width: 100%; min-height: 100%; display: grid; place-items: center; }
#zoomScale {
  display: block;
  appearance: none;
  padding: 0;
  margin: 0;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  line-height: 0;
}
#zoomImage { display: block; max-width: none; max-height: none; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
#artZoom.magnified #zoomImage { cursor: grab; }
#artZoom.magnified #zoomImage:active { cursor: grabbing; }
#artZoom[data-slug="perfectloop"] #zoomImage { image-rendering: pixelated; }
