/* Carousel-only visual correction. Preserve the user-tuned books, plaques, shelf and nav. */
/* Keep equal unscaled card slots: the scroll rail—not a card's transform—sets positions. */
#studentLibrary[data-view=shelf] .stage-tarot-rail{
  align-items:flex-end;
  scroll-snap-type:x proximity;
}
#studentLibrary[data-view=shelf] .stage-tarot{
  flex:0 0 20%;width:20%;height:92%;max-height:92%;
  transform-origin:center bottom;
  transform:scale(.96);
  transition:transform .16s ease,filter .16s ease;
  filter:none;
  z-index:0;
}
#studentLibrary[data-view=shelf] .stage-tarot[data-focus=near]{
  transform:scale(1);
  z-index:1;
}
#studentLibrary[data-view=shelf] .stage-tarot[data-focus=center]{
  transform:scale(1.09) translateY(-1px);
  z-index:5;
  filter:drop-shadow(0 0 7px #ffd17b99);
}
/* A clicked category may stay selected, but it must not look like a second focus. */
#studentLibrary[data-view=shelf] .stage-tarot[aria-pressed=true]:not([data-focus=center]){
  filter:none;
}
@media(prefers-reduced-motion:reduce){
  #studentLibrary[data-view=shelf] .stage-tarot{transition:none;}
}
