/* Each scene remains behind the profile content. Sakura intentionally uses its original rules. */
.profile-fx:not(.effect-sakura){isolation:isolate}
.profile-fx:not(.effect-sakura) .fx-atmosphere{position:absolute;inset:0;pointer-events:none}
/* ERROR: short signal failures between long quiet intervals; no full-card flashing. */
.profile-fx.effect-error{background:linear-gradient(155deg,#bce1d127,transparent 45%,#b4bad52e);animation:none}
.profile-fx.effect-error:before{inset:-15%;background:url('/sua/oj/cosmetics/signal-grain.svg') repeat;background-size:180px 180px;opacity:.12;animation:signal-grain-shift 7s steps(1,end) infinite}
.profile-fx.effect-error:after{inset:0;background:repeating-linear-gradient(0deg,transparent 0 3px,#244b3d12 3px 4px);opacity:.5;animation:none}
.effect-error .fx-ribbon{height:3%;top:var(--scan,15%);background:linear-gradient(90deg,transparent,#70b9ae88 12%,#b4d4dd55 46%,transparent 75%);box-shadow:0 5px 0 #ad8dbc24,-25px 9px 0 #84c3b32e;animation:signal-slice 8.5s steps(1,end) infinite;opacity:0}
.effect-error .ribbon-1{--scan:46%;animation-delay:-2.8s}.effect-error .ribbon-2{--scan:76%;animation-delay:-5.7s}
.effect-error .fx-particle{height:1px;width:calc(var(--size)*5);background:#5b9b8d66;animation:signal-packet calc(var(--duration)*1.8) steps(1,end) infinite;opacity:0}
@keyframes signal-grain-shift{0%,80%,100%{transform:translate(0,0)}81%{transform:translate(-4%,3%)}83%{transform:translate(3%,-3%)}85%{transform:translate(-2%,1%)}}
@keyframes signal-slice{0%,78%,88%,100%{opacity:0;transform:translateX(0) scaleX(1)}79%{opacity:.55;transform:translateX(-9%) scaleX(1.15)}81%{opacity:.25;transform:translateX(12%) scaleX(.9)}83%{opacity:.5;transform:translateX(-4%)}86%{opacity:.12;transform:translateX(2%)}}
@keyframes signal-packet{0%,74%,84%,100%{opacity:0}75%,78%{opacity:.5;transform:translateX(5px)}80%{opacity:.2;transform:translateX(-8px)}}
/* AURORA: layered soft curtains, with depth instead of a rotating blob. */
.profile-fx.effect-aurora{background:linear-gradient(165deg,#b5d9d82b,#d8d6ee1b 50%,#adcbb925)}
.profile-fx.effect-aurora .fx-ribbon{display:block!important;left:-30%;top:-12%;width:160%;height:125%;border-radius:0;filter:blur(9px);transform-origin:50% 0;opacity:.65;background:repeating-linear-gradient(103deg,transparent 0 8%,#87ceb230 12%,#7fbfd546 14%,#c2a2d524 17%,transparent 23% 29%);mask-image:linear-gradient(transparent 0%,#000 15% 45%,transparent 82%);animation:curtain-drift 19s ease-in-out infinite alternate}
.profile-fx.effect-aurora .ribbon-1{left:-17%;top:9%;height:110%;opacity:.48;filter:blur(16px);background:repeating-linear-gradient(82deg,transparent 0 13%,#a59ac448 18%,#c7e4bd44 23%,transparent 30%);animation-delay:-9s;animation-duration:27s}
.profile-fx.effect-aurora .ribbon-2{left:-45%;top:18%;opacity:.4;filter:blur(6px);height:100%;background:linear-gradient(100deg,transparent 25%,#8fcbb64a 41%,#b4d8cd50 43%,transparent 49%);animation-delay:-6s;animation-duration:23s}
.effect-aurora .fx-particle{width:2px;height:2px;background:#758b9d;box-shadow:0 0 6px #a7cdc68c;animation:quiet-star var(--duration) ease-in-out infinite}
@keyframes curtain-drift{0%{transform:translate(-3%,-3%) skewX(-9deg) scaleX(.95)}50%{transform:translate(3%,4%) skewX(5deg) scaleX(1.04)}100%{transform:translate(6%,-1%) skewX(-3deg) scaleX(1.1)}}
@keyframes quiet-star{0%,100%{opacity:.1;scale:.65}55%{opacity:.65;scale:1}}
/* CONSTELLATION: drawn star chart, sparse glints and one passing meteor at a time. */
.profile-fx.effect-constellation{background:radial-gradient(ellipse at 80% 0,#ccc7e84d,transparent 60%),linear-gradient(155deg,#e4e9f037,#ccd6e824)}
.effect-constellation .fx-atmosphere{background:url('/sua/oj/cosmetics/constellation-chart.svg') center/cover;opacity:.48;animation:chart-breathe 24s ease-in-out infinite alternate}
.effect-constellation .fx-particle{width:2px;height:2px;background:#7687a7;border-radius:50%;box-shadow:0 0 5px #a7b9dc88;animation:quiet-star calc(var(--duration)*1.7) ease-in-out infinite}
.effect-constellation .fx-particle:nth-of-type(5n){width:7px;height:7px;clip-path:polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%);background:#a78ab6}
.profile-fx.effect-constellation .fx-ribbon{display:block!important;top:12%;left:105%;width:110px;height:1px;rotate:-28deg;background:linear-gradient(90deg,transparent,#809fc188);filter:drop-shadow(0 0 2px #b9c7e0);opacity:0;animation:passing-meteor 17s linear infinite}
.profile-fx.effect-constellation .ribbon-1{top:42%;animation-delay:-7s;animation-duration:23s}.profile-fx.effect-constellation .ribbon-2{top:70%;animation-delay:-13s;animation-duration:31s}
@keyframes chart-breathe{from{opacity:.3;transform:translateY(-2px)}to{opacity:.55;transform:translateY(3px)}}
@keyframes passing-meteor{0%,82%,100%{opacity:0;transform:translateX(0)}84%{opacity:.65}92%{opacity:0;transform:translateX(-430px)}}
/* RAIN: distant streaks, glass droplets and quiet water rings in separate planes. */
.profile-fx.effect-rain{background:linear-gradient(170deg,#c5d9e640,transparent 55%,#a8c4ce37)}
.effect-rain .fx-atmosphere{background:linear-gradient(110deg,#ffffff30,transparent 30% 70%,#c5dce825);backdrop-filter:blur(.25px)}
.effect-rain .fx-particle{width:1px;height:calc(var(--size)*7);top:-20%;background:linear-gradient(transparent,#8aa9bb70,transparent);rotate:8deg;opacity:0;animation:rain-distance calc(var(--duration)*.85) linear infinite}
.effect-rain .fx-particle:nth-of-type(3n){width:2px;filter:blur(.6px);animation-duration:calc(var(--duration)*.5);opacity:.4}
.effect-rain .fx-ripple{display:block!important;left:var(--x);top:auto;bottom:5%;width:60px;height:16px;border:1px solid #709bad66;border-radius:50%;animation:water-ring 7s ease-out infinite;animation-delay:var(--delay);background:none}
.effect-rain .fx-ripple:after{content:'';position:absolute;inset:3px -7px;border:1px solid #91b2c540;border-radius:50%}
.fx-glass-drop{position:absolute;left:var(--x);top:var(--y);width:3px;height:7px;border-radius:50% 50% 60% 60%;background:linear-gradient(110deg,#ffffffa0,#90afbe38);box-shadow:inset 1px 0 #fff8,0 1px 2px #4e798224;animation:glass-drop 19s ease-in infinite;animation-delay:var(--delay)}
@keyframes rain-distance{0%{transform:translate(0,-40px);opacity:0}12%,80%{opacity:.4}100%{transform:translate(-32px,650px);opacity:0}}
@keyframes water-ring{0%,55%{transform:translateX(-50%) scale(.15);opacity:0}60%{opacity:.55}100%{transform:translateX(-50%) scale(1.8);opacity:0}}
@keyframes glass-drop{0%,48%{opacity:0;transform:translateY(0) scale(.8)}55%{opacity:.7;transform:translateY(0) scale(1)}83%{opacity:.5;transform:translateY(16px)}100%{opacity:0;transform:translateY(70px)}}
.shop-item .profile-fx:not(.effect-sakura),.shop-item .profile-fx:not(.effect-sakura):before,.shop-item .profile-fx:not(.effect-sakura):after{animation-play-state:paused}
.shop-item:hover .profile-fx:not(.effect-sakura),.shop-item:focus-within .profile-fx:not(.effect-sakura),.shop-item:hover .profile-fx:not(.effect-sakura):before,.shop-item:focus-within .profile-fx:not(.effect-sakura):before{animation-play-state:running}
.effects-paused .profile-fx *:before,.effects-paused .profile-fx *:after{animation-play-state:paused!important}
@media(max-width:650px){.profile-fx.effect-aurora .fx-ribbon{filter:blur(7px)}.fx-glass-drop:nth-of-type(n+30){display:none}}
@media(prefers-reduced-motion:reduce){.profile-fx:not(.effect-sakura),.profile-fx:not(.effect-sakura) *,.profile-fx:not(.effect-sakura):before,.profile-fx:not(.effect-sakura):after{animation:none!important}.profile-fx.effect-error:before{opacity:.06}.effect-rain .fx-particle{opacity:.12;top:var(--y)}.effect-rain .fx-ripple,.effect-constellation .fx-ribbon,.fx-glass-drop{display:none!important}}
.banner-naru-bookshop .profile-banner img{object-position:75% center}.banner-naru-bookshop .profile-body{background-color:#f7f4e92b}
