/* R24.6.2 candidate; preserve the restored R24.6 layout and art.
   Horizontal book and plaque moves use absolute CSS px, not scale-based offsets. */

/* First row: outside books 5px inward; their full plaque + text 8px inward. */
#studentLibrary .stage-shelf-row-1 > .stage-book:first-child{transform:translateX(5px)}
#studentLibrary .stage-shelf-row-1 > .stage-book:last-child{transform:translateX(-5px)}
#studentLibrary .stage-shelf-row-1 > .stage-book:first-child .stage-book-caption{transform:translate(3px,0px)}
#studentLibrary .stage-shelf-row-1 > .stage-book:last-child .stage-book-caption{transform:translate(-3px,0px)}

/* Second row: outside books 3px inward; their full plaque + text 5px inward. */
#studentLibrary .stage-shelf-row-2 > .stage-book:first-child{transform:translateX(3px)}
#studentLibrary .stage-shelf-row-2 > .stage-book:last-child{transform:translateX(-3px)}
#studentLibrary .stage-shelf-row-2 > .stage-book:first-child .stage-book-caption{transform:translate(2px,0px)}
#studentLibrary .stage-shelf-row-2 > .stage-book:last-child .stage-book-caption{transform:translate(-2px,0px)}

/* All plaques rise 3px from original translateY(3px); center books stay fixed.
   The label text remains a child of each plaque and travels with it. */
#studentLibrary .stage-shelf-row-1 > .stage-book:nth-child(2) .stage-book-caption,
#studentLibrary .stage-shelf-row-2 > .stage-book:nth-child(2) .stage-book-caption{transform:translateY(0px)}

/* Tarot: centre the rail within the wooden pillars; 90% of pillar-to-pillar span.
   Card translation is exactly -5px, not a relative percentage. Focus retains the 85% base. */
#studentLibrary .stage-shelf-row-3{
  left:17%;right:17%;
  top:calc(71% - 5px);
}
#studentLibrary .stage-tarot{transform:scale(.85)}
#studentLibrary .stage-tarot[data-focus=near]{transform:scale(.87125)}
#studentLibrary .stage-tarot[data-focus=center]{transform:scale(.918) translateY(-1px)}
/* Card labels move upward a fixed 8px and one type-size step smaller. */
#studentLibrary .stage-tarot span{
  top:calc(73.8% - 8px);
  font-size:clamp(9px,calc(2.9vw - 1px),12px);
}

/* The Chinese brand and English subtitle move down 5px together; glow is unchanged. */
#studentLibrary .sl-brand.mw-scene-brand>b,
#studentLibrary .sl-brand.mw-scene-brand>small{transform:translateY(5px)}
