.book-rotation-control {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  pointer-events: auto;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}
.book-viewer[data-ready="true"] .book-rotation-control { display: block; }
.book-rotation-control[data-over-book] { cursor: grab; }
.book-rotation-control[data-dragging] { cursor: grabbing; }

.book-rotation-hint {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 5px;
  color: #595959;
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1.4;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
}
.book-rotation-hint::before {
  content: "";
  display: inline-block;
  box-sizing: border-box;
  width: .55em;
  height: .68em;
  margin-right: .5em;
  border-inline: 2px solid;
}
.book-rotation-control[aria-pressed="true"] .book-rotation-hint::before {
  width: .55em;
  height: 0;
  border: 0;
  border-block: .36em solid transparent;
  border-left: .55em solid currentColor;
}
.book-rotation-hint:hover, .book-rotation-control:focus-visible .book-rotation-hint { color: var(--ink); }
.book-rotation-hint .touch-cue, .book-rotation-hint .key-cue { display: none; }
@media (pointer: coarse) {
  .book-rotation-hint .mouse-cue { display: none; }
  .book-rotation-hint .touch-cue { display: inline; }
}
.book-rotation-control:focus-visible :is(.mouse-cue, .touch-cue) { display: none; }
.book-rotation-control:focus-visible .key-cue { display: inline; }
