/* R56 (RU only): generated loops in place of the video placeholders. Illustrations, never footage (caption on each).
   The portrait is never animated or overlapped: while any loop container is on screen (or the video modal is open) the fixed
   background portrait is hidden (ru56.js → body.r56-vin / body.modal-open). Red/blue theme → its own file. Reduced motion → poster only. */
.vbg{position:relative;isolation:isolate;overflow:hidden}
.vbg-v{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;pointer-events:none;background:#060608}
.vbg-o{position:absolute;inset:0;z-index:0;pointer-events:none;background:rgba(6,6,8,.45)}
html:not([data-theme="blue"]) .vbg-v[data-th="blue"],html[data-theme="blue"] .vbg-v[data-th="red"]{display:none}
.r56-note{font-size:11.5px;letter-spacing:.04em;color:var(--mu);margin:10px 0 0;position:relative;z-index:1}
/* hide the fixed background portrait(s) while a loop is on screen or the modal is open */
body.r56-vin .ronin-bg,body.modal-open .ronin-bg{opacity:0!important;transition:opacity .35s ease}
body.modal-open .r41-bg{visibility:hidden}
/* 1 · modal */
.vbg-modal{background:#060608}
.vbg-modal>.ph-tag{z-index:1}
.vbg-modal>.serif{position:relative;z-index:1}
.vbg-modal>.serif{text-shadow:0 2px 24px rgba(0,0,0,.85)}
.vbg-modal .r56-note-m{position:absolute;right:14px;bottom:10px;margin:0;font-size:10.5px}
/* 2 · /ronin/ card: play, glow and quote above the loop; click still opens the modal */
.r56-card>.video-glow,.r56-card>.play,.r56-card>.video-open,.r56-card>.video-meta{z-index:1}
.r56-card .vbg-o{background:linear-gradient(180deg,rgba(6,6,8,.35),rgba(6,6,8,.6))}
.video-solo .r56-note{text-align:right}
/* 3 · /path/ #program header band (map & road), edges dissolve */
.r56-hband{position:relative}
.r56-hband>*:not(.r56-band){position:relative;z-index:1}
.r56-band{position:absolute;z-index:0;inset:-34px calc(-1 * var(--pad,20px)) -26px;border-radius:0;
  -webkit-mask-image:radial-gradient(closest-side,#000 55%,transparent 100%);mask-image:radial-gradient(closest-side,#000 55%,transparent 100%)}
.r56-band .vbg-o{background:rgba(6,6,8,.55)}
/* 4 · /place/ #online section background */
.r56-online{position:relative}
.r56-online>.wrap{position:relative;z-index:1}
.r56-sbg{position:absolute;inset:0;z-index:0;-webkit-mask-image:linear-gradient(180deg,transparent,#000 22%,#000 78%,transparent);mask-image:linear-gradient(180deg,transparent,#000 22%,#000 78%,transparent)}
.r56-sbg .vbg-o{background:rgba(6,6,8,.5)}
/* reduced motion: no video at all, the poster as background */
@media (prefers-reduced-motion:reduce){
  .vbg-v{display:none!important}
  .vbg{background:var(--vp-r) center/cover no-repeat}
  html[data-theme="blue"] .vbg{background-image:var(--vp-b)}
}
