/* css3.css - motion & polish (all respect reduced-motion + the Motion toggle) */
@keyframes xf-rise{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:none; } }
@keyframes xf-pop{ from{ opacity:0; transform:scale(.96); } to{ opacity:1; transform:none; } }
@keyframes xf-rgb{ 0%{ background-position:0 0 } 100%{ background-position:200% 0 } }
.reveal{ opacity:0; transform:translateY(12px); transition:opacity .45s ease, transform .45s ease; }
.reveal.in{ opacity:1; transform:none; }
.tborder,.message,.navigation{ animation:xf-rise .35s ease both; }
.modal,div.jqi{ animation:xf-pop .2s ease both; }
.node:hover .forum_status:not(.forum_off){ transform:scale(1.08); } .forum_status{ transition:transform .2s; }
@media (prefers-reduced-motion:reduce){ *{ animation:none !important; transition:none !important; scroll-behavior:auto !important; } .reveal{ opacity:1; transform:none; } }

/* RGB edge: animated rainbow strip under the header */
:root[data-rgbedge="1"] #header::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:3px; background:linear-gradient(90deg,#ff0040,#ffae00,#33ff00,#00e5ff,#7a00ff,#ff00c8,#ff0040); background-size:200% 100%; animation:xf-rgb 5s linear infinite; z-index:3; }
/* RGB border glow on avatars + post cards */
@property --xf-angle{ syntax:"<angle>"; initial-value:0deg; inherits:false; }
@keyframes xf-spin{ to{ --xf-angle:360deg; } }
:root[data-rgbborder="1"] .message-user .author_avatar img,:root[data-rgbborder="1"] .message-user img.avatar{ border:3px solid transparent; background:linear-gradient(var(--surface),var(--surface)) padding-box,conic-gradient(from var(--xf-angle),#ff0040,#ffae00,#33ff00,#00e5ff,#7a00ff,#ff00c8,#ff0040) border-box; animation:xf-spin 4s linear infinite; }
:root[data-rgbborder="1"] .message:hover,:root[data-rgbborder="1"] .tborder:hover{ border-color:transparent; background:linear-gradient(var(--surface),var(--surface)) padding-box,conic-gradient(from var(--xf-angle),#ff0040,#ffae00,#33ff00,#00e5ff,#7a00ff,#ff00c8,#ff0040) border-box; animation:xf-spin 5s linear infinite; }
:root[data-rgbtext="1"] .textlogo span:last-child,:root[data-rgbtext="1"] #panel .nav-tabs .selected a{ background:linear-gradient(90deg,#ff0040,#ffae00,#33ff00,#00e5ff,#7a00ff,#ff00c8,#ff0040); background-size:200% 100%; -webkit-background-clip:text; background-clip:text; color:transparent !important; animation:xf-rgb 4s linear infinite; }

		