/* Guidance shares the existing status row above the book. It is independent
   of the controls' idle timer and never covers a page or button. */
#reader > .book-guidance {
  grid-column:1 / -1;
  grid-row:2;
  min-width:0;
}
#reader .book-guidance > #vr-status {
  position:static;
  margin:.35rem .75rem;
}
#book-gesture-hints {
  width:min(64rem,calc(100% - 1.5rem));
  margin:.4rem auto .7rem;
  padding:.75rem 1.1rem;
  border:1px solid #e7b56f;
  border-radius:12px;
  color:#fff1d5;
  background:linear-gradient(110deg,#342319,#211b25 70%);
  box-shadow:0 0 14px #e9af5d35,inset 0 0 12px #e9af5d0a;
  text-align:center;
  overflow-wrap:break-word;
  animation:book-hint-glow 3s ease-in-out infinite alternate;
}
#book-gesture-hints[hidden],#book-gesture-hints [hidden] {display:none!important}
.book-gesture-hint {margin:0}
.book-gesture-hint strong {
  display:block;
  font:750 clamp(1.2rem,2.3vw,1.5rem)/1.35 system-ui,sans-serif;
  text-shadow:0 0 12px #ffc67966;
}
.book-gesture-hint span {
  display:block;
  margin-top:.25rem;
  color:#f1dec6;
  font:500 1rem/1.5 system-ui,sans-serif;
}
@keyframes book-hint-glow {
  from {box-shadow:0 0 12px #e9af5d30,inset 0 0 10px #e9af5d0a}
  to {box-shadow:0 0 22px #e9af5d65,inset 0 0 14px #e9af5d18}
}
@media(max-width:600px) {
  #book-gesture-hints {width:calc(100% - 1rem);padding:.7rem .8rem;margin:.3rem auto .55rem}
}
@media(prefers-reduced-motion:reduce) {
  #book-gesture-hints {animation:none;box-shadow:0 0 14px #e9af5d40}
}
@media(forced-colors:active) {
  #book-gesture-hints {animation:none;background:Canvas;color:CanvasText;border-color:CanvasText;box-shadow:none}
  .book-gesture-hint strong,.book-gesture-hint span {color:CanvasText;text-shadow:none}
}
