/* NOVA Reading Lens stays in the viewport, outside Reveal's scaled slide canvas. */
.reading-lens-launcher {
    position: fixed;
    right: 24px;
    bottom: 150px;
    z-index: 15000;
    display: none;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(95, 238, 225, .76);
    border-radius: 14px;
    background: rgba(3, 25, 53, .9);
    box-shadow: 0 0 18px rgba(69, 230, 255, .26), inset 0 0 12px rgba(80, 232, 224, .08);
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.reading-lens-launcher.is-visible { display: inline-flex; }
.reading-lens-launcher:hover { border-color: #abfff7; background: rgba(5, 48, 75, .96); transform: scale(1.05); }
.reading-lens-launcher.is-active { border-color: #a8fff7; background: rgba(8, 70, 91, .96); box-shadow: 0 0 24px rgba(91, 244, 232, .62), inset 0 0 14px rgba(88, 226, 216, .2); }
.reading-lens-launcher:focus-visible { outline: 2px solid #abfff7; outline-offset: 3px; }
.reading-lens-launcher::after {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    width: max-content;
    padding: 7px 9px;
    border: 1px solid rgba(95, 238, 225, .35);
    border-radius: 5px;
    color: #d9ffff;
    background: rgba(3, 25, 53, .96);
    content: attr(data-tooltip);
    font: 700 11px/1.2 Arial, sans-serif;
    letter-spacing: .06em;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity .18s ease, transform .18s ease;
}
.reading-lens-launcher:hover::after,
.reading-lens-launcher:focus-visible::after { opacity: 1; transform: translateY(0); }
.reading-lens-icon { position: relative; width: 17px; height: 17px; border: 2px solid #78f1e5; border-radius: 50%; box-sizing: border-box; }
.reading-lens-icon::after { position: absolute; right: -7px; bottom: -5px; width: 8px; height: 2px; border-radius: 2px; background: #78f1e5; content: ""; transform: rotate(46deg); transform-origin: left center; }
body:has(.page-jump-panel.is-open) .reading-lens-launcher { right: 156px; }

.reading-lens {
    position: fixed;
    z-index: 14000;
    display: none;
    width: 300px;
    height: 300px;
    overflow: hidden;
    border: 2px solid rgba(98, 241, 223, .9);
    border-radius: 50%;
    background: rgba(2, 17, 38, .28);
    box-shadow: 0 0 12px rgba(98, 241, 223, .65), 0 0 32px rgba(98, 241, 223, .28), inset 0 0 24px rgba(2, 17, 38, .28);
    pointer-events: none;
}
.reading-lens.is-active { display: block; }
.reading-lens-viewport { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.reading-lens-mirror { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.reading-lens-mirror .slides { position: relative; width: 100%; height: 100%; transform: none !important; }
.reading-lens-mirror .slides > section { position: absolute; display: block !important; width: 100%; height: 100%; transform: none !important; }
.reading-lens-mirror video,
.reading-lens-mirror iframe,
.reading-lens-mirror canvas { visibility: hidden !important; }
.reading-lens-zoom {
    position: absolute;
    right: 21px;
    bottom: 21px;
    min-width: 46px;
    padding: 4px 6px;
    border: 1px solid rgba(157, 255, 246, .48);
    border-radius: 10px;
    color: #e8ffff;
    background: rgba(3, 29, 55, .78);
    font: 800 11px/1 Arial, sans-serif;
    letter-spacing: .04em;
    text-align: center;
}
.reading-lens::before,
.reading-lens::after { position: absolute; z-index: 2; left: 50%; width: 14px; height: 1px; background: rgba(149, 255, 244, .7); content: ""; transform: translateX(-50%); }
.reading-lens::before { top: 5px; }
.reading-lens::after { bottom: 5px; }
.reading-lens-toast { position: fixed; z-index: 16000; right: 88px; bottom: 162px; display: none; padding: 9px 11px; border: 1px solid rgba(95, 238, 225, .38); border-radius: 6px; color: #dbffff; background: rgba(3, 25, 53, .94); box-shadow: 0 0 18px rgba(69, 230, 255, .18); font: 700 11px/1.35 Arial, sans-serif; letter-spacing: .05em; pointer-events: none; }
.reading-lens-toast.is-visible { display: block; animation: readingLensToast 1.8s ease forwards; }
body.reading-lens-active .reveal { cursor: crosshair; }

@keyframes readingLensToast { 0%, 78% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(5px); } }

@media (max-width: 900px) {
    .reading-lens-launcher { right: 18px; bottom: 140px; width: 48px; height: 48px; }
    body:has(.page-jump-panel.is-open) .reading-lens-launcher { right: 140px; }
    .reading-lens-toast { right: 76px; bottom: 152px; }
}
