/* The Rainbow Bridge header: painting + motion accents (portal/_rainbow_bridge_fx.html). Pause button; still for reduced motion. */
.rb-stage { position: relative; overflow: hidden; border-radius: 28px; border: 1px solid var(--stroke); box-shadow: 0 24px 60px rgba(0,0,0,.45); isolation: isolate; }
.rb-pan { position: relative; animation: rb-pan 40s ease-in-out infinite alternate; transform-origin: 62% 45%; }
.rb-stage .rb-art { border: 0; border-radius: 0; box-shadow: none; }
.rb-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.rb-fx * { transform-box: fill-box; transform-origin: center; }
.fx-tw { animation: fx-tw 3s ease-in-out infinite; opacity: 0; }
.fx-sheen { animation: fx-sheen 10s ease-in-out infinite; transform-box: view-box; transform-origin: 0 0; }
.fx-heart { animation: fx-heart 3.4s ease-in-out infinite; }
.fx-sunglow { animation: fx-sun 6s ease-in-out infinite; }
.fx-rays { animation: fx-spin 90s linear infinite; transform-box: view-box; transform-origin: 0 0; }
.fx-fall { animation: fx-fall .9s linear infinite; opacity: .5; }
.fx-mist { animation: fx-mist 3.2s ease-in-out infinite; opacity: .3; }
.fx-glint { animation: fx-glint 2.6s ease-in-out infinite; opacity: 0; }
.fx-fly { animation: fx-fly 9s ease-in-out infinite; opacity: 0; }
@keyframes rb-pan { from { transform: scale(1); } to { transform: scale(1.06) translate(-1%, 0.6%); } }
@keyframes fx-tw { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
@keyframes fx-sheen { 0% { transform: translateX(0); } 65%, 100% { transform: translateX(1980px); } }
@keyframes fx-heart { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: .95; transform: scale(1.12); } }
@keyframes fx-sun { 0%, 100% { opacity: .55; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes fx-spin { to { transform: rotate(360deg); } }
@keyframes fx-fall { to { stroke-dashoffset: -48; } }
@keyframes fx-mist { 0%, 100% { opacity: .15; transform: scale(.9); } 50% { opacity: .45; transform: scale(1.2); } }
@keyframes fx-glint { 0%, 100% { opacity: 0; transform: scaleX(.4); } 50% { opacity: .9; transform: scaleX(1); } }
@keyframes fx-fly { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: .6; } 50% { opacity: .3; transform: translate(var(--dx), var(--dy)); } 80% { opacity: .55; } 100% { opacity: 0; transform: translate(calc(var(--dx) * -.5), calc(var(--dy) * 1.6)); } }
.rb-motion { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.55); background: rgba(20,12,40,.72); color: #fff; font: 600 13px/1 var(--font, inherit); cursor: pointer; backdrop-filter: blur(6px); }
.rb-motion:hover { background: rgba(20,12,40,.9); }
.rb-motion:focus-visible { outline: 3px solid #5fd4ff; outline-offset: 2px; }
.rb-stage.is-paused .rb-pan, .rb-stage.is-paused .rb-fx * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .rb-pan, .rb-fx * { animation: none !important; } .rb-fx { display: none; } .rb-motion { display: none; } }
