/* Academy home: translucent animated glass behind the existing content. */
body[data-ambient-background] .lux-site-page{position:relative;isolation:isolate;min-height:100dvh}
body[data-ambient-background] .amb-atmosphere{position:fixed;z-index:-1;inset:0;overflow:hidden;pointer-events:none;background:#f7f8f3;opacity:.26;contain:strict}
body[data-ambient-background] .amb-drift{position:absolute;inset:-14%;transform:translate(var(--amb-x,0px),var(--amb-y,0px));transition:transform 2.5s ease-out}
body[data-ambient-background] .amb-glow{position:absolute;display:block;width:min(1000px,83vw);height:min(1000px,105vh);border-radius:50%;will-change:transform;opacity:.86}
body[data-ambient-background] .amb-green{left:-17%;top:-22%;background:radial-gradient(ellipse,rgba(77,126,100,.32),rgba(144,171,145,.16) 31%,rgba(175,194,168,.055) 53%,transparent 70%);animation:amb-green 22s ease-in-out infinite alternate}
body[data-ambient-background] .amb-gold{right:-19%;top:3%;background:radial-gradient(ellipse,rgba(197,166,88,.30),rgba(221,203,143,.16) 33%,rgba(231,216,170,.05) 53%,transparent 71%);animation:amb-gold 26s ease-in-out -8s infinite alternate}
body[data-ambient-background] .amb-pearl{left:16%;bottom:-53%;width:100vw;height:100vh;background:radial-gradient(ellipse,rgba(119,161,143,.18),rgba(204,220,195,.07) 40%,transparent 69%);animation:amb-pearl 30s ease-in-out -12s infinite alternate}
body[data-ambient-background] .amb-atmosphere:after{content:'';position:absolute;inset:0;background:linear-gradient(105deg,rgba(255,255,249,.19),rgba(255,255,255,.04) 46%,rgba(255,253,241,.18));pointer-events:none}
body[data-ambient-background] .amb-fracture{position:absolute;inset:-15px;pointer-events:none;opacity:1}
body[data-ambient-background] .amb-fracture-svg{display:block;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 7px 10px #38513c12)}
body[data-ambient-background] .amb-shard{transform-box:fill-box;transform-origin:center;animation:amb-shard-float 8.4s ease-in-out var(--shard-delay,0s) infinite alternate;will-change:transform}
body[data-ambient-background] .amb-crack-glint{animation:amb-crack-glint 6s linear infinite;opacity:1}
body[data-ambient-background] .amb-wide-reflection{animation:amb-wide-reflection 6.8s ease-in-out -2s infinite;pointer-events:none}
body[data-ambient-background] :is(.home-refresh,.rf-course-selector,.rf-restored-flex,.home-refresh .hf-hero,.home-refresh .hf-section){background:transparent!important}
body[data-ambient-background] .rf-reminder-wrap{background:rgba(249,249,242,.45)!important}
body[data-ambient-background][data-ambient-paused=true] :is(.amb-glow,.amb-shard,.amb-crack-glint,.amb-wide-reflection),body[data-ambient-background][data-ambient-hidden=true] :is(.amb-glow,.amb-shard,.amb-crack-glint,.amb-wide-reflection),html.lux-welcome-active body[data-ambient-background] :is(.amb-glow,.amb-shard,.amb-crack-glint,.amb-wide-reflection){animation-play-state:paused}
html[data-theme=dark] body[data-ambient-background] .amb-atmosphere{background:#14271f}
html[data-theme=dark] body[data-ambient-background] .amb-glow{opacity:.65}
html[data-theme=dark] body[data-ambient-background] .amb-atmosphere:after{background:linear-gradient(105deg,#14271f20,#14271f60)}
html[data-theme=dark] body[data-ambient-background] .rf-reminder-wrap{background:#152b204d!important}
@keyframes amb-green{0%{transform:translate(-5%,-3%) scale(.92)}50%{transform:translate(18%,13%) scale(1.15)}100%{transform:translate(38%,27%) scale(1.08)}}
@keyframes amb-gold{0%{transform:translate(9%,-4%) scale(.9)}50%{transform:translate(-22%,13%) scale(1.12)}100%{transform:translate(-37%,-6%) scale(1.18)}}
@keyframes amb-pearl{from{transform:translate(-12%,4%) scale(.85)}to{transform:translate(24%,-18%) scale(1.12)}}
@keyframes amb-shard-float{from{transform:translate(0,0) rotate(0deg)}to{transform:translate(var(--shard-x),var(--shard-y)) rotate(var(--shard-r))}}
@keyframes amb-crack-glint{from{stroke-dashoffset:0}to{stroke-dashoffset:-100}}
@keyframes amb-wide-reflection{0%{transform:translateX(-250px);opacity:0}12%{opacity:.7}65%{transform:translateX(1050px);opacity:.8}85%,100%{transform:translateX(1570px);opacity:0}}
@media(max-width:760px){body[data-ambient-background] .amb-glow{width:150vw;height:80vh;opacity:.86}body[data-ambient-background] .amb-green{left:-85%;top:-10%}body[data-ambient-background] .amb-gold{right:-75%;top:27%;animation-duration:28s}body[data-ambient-background] .amb-pearl{display:none}body[data-ambient-background] .amb-drift{inset:-8%;transform:none!important}body[data-ambient-background] .amb-shard{animation-duration:8.8s}}
@media(prefers-reduced-motion:reduce){body[data-ambient-background] :is(.amb-glow,.amb-shard,.amb-crack-glint,.amb-wide-reflection){animation:none!important;will-change:auto}body[data-ambient-background] .amb-wide-reflection{display:none}body[data-ambient-background] .amb-drift{transform:none!important;transition:none}}
