/* r39 Scripture rain. Existing host controllers own visibility and playback.
   These are complete, ordered KJV leaves, not randomized glyphs. All selectors
   are decorative-layer scoped; content, theme palettes and saves are untouched. */
:is(#ar-cyber-rain,#ar-cyber-search-atmosphere,#games-appearance) .ar-scripture-track{
 position:absolute;inset:0 auto auto 1.8%;width:clamp(150px,15.5vw,238px);
 color:var(--cyber-bright,#e6c7cd);opacity:.36;
 font:500 11px/1.75 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;
 letter-spacing:.025em;text-align:left;white-space:normal;
 text-shadow:0 0 7px var(--cyber-glow,rgba(197,20,47,.25));
 animation:ar-scripture-book-flow var(--scripture-duration,196s) linear var(--scripture-delay,0s) infinite;
 animation-play-state:paused;pointer-events:none;user-select:none;
}
:is(#ar-cyber-rain,#ar-cyber-search-atmosphere,#games-appearance) .ar-scripture-track[data-side=right]{left:auto;right:1.8%}
:is(#ar-cyber-rain,#ar-cyber-search-atmosphere,#games-appearance) .ar-scripture-sequence{
 box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-around;
 gap:52px;min-height:max(110vh,1280px);padding:26px 0;
}
:is(#ar-cyber-rain,#ar-cyber-search-atmosphere,#games-appearance) .ar-scripture-page{
 position:relative;flex:none;display:block;margin:0;padding:0 0 0 10px;border:0;
 border-left:1px solid var(--cyber-line,rgba(197,20,47,.36));background:none;
}
:is(#ar-cyber-rain,#ar-cyber-search-atmosphere,#games-appearance) .ar-scripture-ref{
 appearance:none;display:block;position:static;box-sizing:border-box;width:100%;min-height:44px;
 margin:0 0 6px;padding:0 0 7px;border:0;border-bottom:1px solid var(--cyber-faint,rgba(197,20,47,.17));
 border-radius:0;background:none;color:var(--cyber-accent,#c5142f);font:700 10px/1.65 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;
 letter-spacing:.075em;text-transform:uppercase;text-align:left;white-space:normal;text-decoration:none;
 box-shadow:none;animation:none;opacity:1;
}
:is(#ar-cyber-rain,#ar-cyber-search-atmosphere,#games-appearance) .ar-scripture-verse{
 position:static;display:block;margin:0 0 10px;padding:0;border:0;background:none;
 color:inherit;font:inherit;letter-spacing:inherit;text-align:left;text-transform:none;white-space:normal;
}
:is(#ar-cyber-rain,#ar-cyber-search-atmosphere,#games-appearance) .ar-scripture-verse-number{font-size:.72em;color:var(--cyber-accent,#c5142f);font-weight:700;vertical-align:.15em}
:is(#ar-cyber-rain,#ar-cyber-search-atmosphere,#games-appearance) .ar-scripture-folio{display:block;margin:15px 0 0;color:var(--cyber-accent,#c5142f);font-size:9px;letter-spacing:.28em;opacity:.7}
@keyframes ar-scripture-book-flow{from{transform:translate3d(0,-50%,0)}to{transform:translate3d(0,0,0)}}
#ar-cyber-rain[data-rain-active=true] .ar-scripture-track,
#ar-cyber-search-atmosphere[data-rain-active=true] .ar-scripture-track,
#games-appearance[data-moving=true] .ar-scripture-track{animation-play-state:running}
/* Pause the parent moving leaf while its compact reference is being used. */
:is(#ar-cyber-rain,#ar-cyber-search-atmosphere) .ar-scripture-track:has(:focus),
:is(#ar-cyber-rain,#ar-cyber-search-atmosphere) .ar-scripture-track:has(.ar-truth-rain-trigger:hover:not(:disabled)),
:is(#ar-cyber-rain,#ar-cyber-search-atmosphere) .ar-scripture-track:has(.ar-tanakh-rain-link:hover[aria-disabled=false]){animation-play-state:paused!important}
:is(#ar-cyber-rain,#ar-cyber-search-atmosphere) .ar-scripture-ref:is(button,a){position:static;border-left:0;min-height:44px;padding:0 0 7px;background:none;color:var(--cyber-accent);font:700 10px/1.65 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;letter-spacing:.075em}
#ar-cyber-search-atmosphere[data-rain-active=false] .ar-scripture-track{visibility:hidden;animation-play-state:paused}
/* The search field is a second viewport, never a second stacked stream. */
#ar-cyber-search-atmosphere[data-scripture-flow=shared-main]{visibility:hidden}
#ar-cyber-search-atmosphere .ar-scripture-track{left:10px;width:max(100px,calc(var(--ar-search-safe-gutter) - 28px));max-width:238px;font-size:10px;opacity:.46}
#ar-cyber-search-atmosphere .ar-scripture-track[data-side=right]{right:10px;left:auto}
#ar-cyber-search-atmosphere .ar-scripture-sequence{min-height:1500px}
#ar-cyber-search-atmosphere .ar-csa-label{display:none}
#games-appearance .games-truth-streams[data-scripture-flow]{opacity:1;mask-image:linear-gradient(90deg,#000 0 15%,transparent 26% 74%,#000 85% 100%)}
#games-appearance[data-strength=balanced] .games-truth-streams[data-scripture-flow]{opacity:1}
#games-appearance[data-strength=balanced] .ar-scripture-track{opacity:.43}
#games-appearance .games-truth-telemetry{opacity:.17}
#games-appearance[data-low=true] .ar-scripture-track[data-side=right]{display:none}
@media(max-width:900px){
 :is(#ar-cyber-rain,#games-appearance) .ar-scripture-track{width:clamp(115px,22vw,170px);font-size:10px;opacity:.28}
}
@media(max-width:700px){
 #games-appearance .ar-scripture-track[data-side=right]{display:none}
 #games-appearance .ar-scripture-track{left:14px;width:150px;opacity:.22}
 body.ar-ambient-active #ar-cyber-rain .ar-scripture-track{width:42%;font-size:10px}
}
/* Defense in depth: never bypass existing effects-off or accessibility gates. */
body[data-reading-sprites=off] .ar-scripture-track,html[data-reading-sprites=off] .ar-scripture-track,
#games-appearance[data-quiet=true] .ar-scripture-track,#games-appearance[data-particles=false] .ar-scripture-track,
body:has(#hub-world[data-youth-ambience=off]) #games-appearance .ar-scripture-track{display:none!important;animation:none!important}
@media(prefers-reduced-motion:reduce),(prefers-contrast:more),(forced-colors:active){.ar-scripture-track{display:none!important;animation:none!important}}
@media print{.ar-scripture-track{display:none!important}}
