/* A caption on the viewing surface. Input passes through to the scene beneath. */
.gesture-hint {
  --hint-inset: clamp(8px, 1.5vw, 22px);
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: var(--hint-inset);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100% - 2 * var(--hint-inset));
  padding: 4px 8px;
  border-radius: 3px;
  background: rgb(244 243 239 / 94%);
  color: #464640;
  font: 400 clamp(12px, 1.2vw, 14px)/1.35 "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-align: left;
  pointer-events: none;
  user-select: none;
}
.gesture-hint::before {
  content: "";
  flex: 0 0 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: url("gesture-hand.svg") center / contain no-repeat;
  mask: url("gesture-hand.svg") center / contain no-repeat;
}
.gesture-hint[hidden],
canvas[hidden] ~ .gesture-hint,
.rail-scene:not(.has-model) + .gesture-hint,
.toolbar[hidden] + .gesture-hint,
.gesture-hint .touch-copy { display: none; }

.gesture-hint--facade {
  left: var(--hint-inset);
  bottom: clamp(12px, 2.3vw, 32px);
  transform: none;
  color: #fff;
  background: rgb(19 22 26 / 85%);
}
@media (max-width: 620px) {
  .gesture-hint--facade { top: var(--hint-inset); bottom: auto; }
}
@media (hover: none), (pointer: coarse) {
  .gesture-hint .pointer-copy { display: none; }
  .gesture-hint .touch-copy { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .gesture-hint--keyring { display: none; }
}
@media print {
  .gesture-hint { display: none; }
}
