/* Gold Halo R2 — 21 Oct 2026. Decoration lives outside the exact print artwork.
   The solid progress arc and its tip use media time; orbiting arcs are decoration. */
:root{--welcome-time:1.5s;--halo-gold:#f2c474;--halo-light:#fff0cd}
#welcome .welcome-logo{position:relative;isolation:isolate}
#welcome .welcome-logo::before,#welcome .welcome-logo::after{
 content:"";position:absolute;pointer-events:none;left:21%;top:0;width:58%;aspect-ratio:1;
 border-radius:50%;z-index:-1;background:conic-gradient(from -90deg,transparent 32%,#f2c47418 65%,#f2c474 98%,transparent);
 mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 calc(100% - 1px));
 animation:halo-welcome 1.35s cubic-bezier(.2,.7,.3,1) both;
}
#welcome .welcome-logo::after{inset:7% auto auto 25%;width:50%;opacity:.45;animation-direction:reverse}
.bani-halo{overflow:clip;overflow-clip-margin:14px;display:block;position:relative;width:100%;aspect-ratio:1;isolation:isolate;transition:transform .36s cubic-bezier(.2,.8,.2,1),filter .36s ease}
.bani-halo::before,.bani-halo::after{
 content:"";position:absolute;inset:-7px;pointer-events:none;border-radius:50%;opacity:0;
 background:conic-gradient(from -90deg,transparent 0deg 35deg,#f2c47425 90deg,#fff0cd 115deg,transparent 120deg 210deg,#f2c47440 270deg,#f2c474 300deg,transparent 307deg);
 mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 calc(100% - 1px));
 transition:opacity .25s ease;
}
.bani-halo::after{inset:-13px;transform:rotate(58deg);background:conic-gradient(transparent 25%,#8cc6da70 52%,#fff0cd 62%,transparent 64%)}
.halo-sparks{position:absolute;inset:-7px;pointer-events:none;opacity:0;transition:opacity .3s ease;animation:halo-orbit 5s linear infinite;animation-play-state:paused}
.halo-sparks::before,.halo-sparks::after{content:"";position:absolute;width:5px;height:5px;top:-1px;left:50%;border-radius:50%;background:var(--halo-light);box-shadow:0 0 7px 2px #f2c474b3,0 0 17px #f2c47480}
.halo-sparks::after{top:auto;bottom:-1px;left:35%;width:3px;height:3px;background:var(--halo-gold)}
.bani-disc--illustrated .bani-disc-button{gap:18px}
.bani-disc--illustrated .bani-disc-button:hover .bani-disc-art,.bani-disc--illustrated .bani-disc-button:active .bani-disc-art{transform:none;filter:none}
.bani-disc--illustrated .bani-disc-button:focus-visible .bani-halo::before,
.bani-disc--illustrated .bani-disc-button:focus-visible .bani-halo::after,
.bani-disc--illustrated .bani-disc-button:focus-visible .halo-sparks{opacity:1}
.bani-disc--illustrated .bani-disc-button:active .bani-halo{transform:scale(.975)}
@media(hover:hover) and (pointer:fine){
 .bani-disc--illustrated .bani-disc-button:hover .bani-halo{transform:translateY(-5px) scale(1.025);filter:drop-shadow(0 0 14px #f2c47470)}
 .bani-disc--illustrated .bani-disc-button:hover .bani-halo::before,
 .bani-disc--illustrated .bani-disc-button:hover .bani-halo::after,
 .bani-disc--illustrated .bani-disc-button:hover .halo-sparks{opacity:1;animation-play-state:running}
}
.bani-disc--illustrated .bani-disc-button:focus-visible .bani-halo{filter:drop-shadow(0 0 12px #f2c47460)}
/* The chosen quiet blue light on the home page uses the existing Still scenery preference. */
.halo-wallpaper{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:-1;opacity:.6}
.halo-wallpaper::before{content:"";position:absolute;inset:-20%;background:radial-gradient(ellipse at 28% 55%,#1c689935,transparent 45%),radial-gradient(ellipse at 80% 85%,#71629b22,transparent 43%)}
.halo-wallpaper::after{content:"";position:absolute;left:5%;top:25%;width:90%;aspect-ratio:1;border:1px solid #f2c47414;border-radius:50%;transform:scaleY(.55) rotate(-18deg)}
body{isolation:isolate}
body:not([data-home=true])>.halo-wallpaper{display:none}
:root[data-theme=ivory] .halo-wallpaper,:root[data-theme=contrast] .halo-wallpaper{opacity:.25}
@media(prefers-reduced-motion:no-preference){
 .bani-halo::before{animation:halo-orbit 3.6s linear infinite;animation-play-state:paused}
 .bani-halo::after{animation:halo-orbit 6s linear infinite reverse;animation-play-state:paused}
 .bani-disc-button:focus-visible .bani-halo::before,.bani-disc-button:focus-visible .bani-halo::after,.bani-disc-button:focus-visible .halo-sparks{animation-play-state:running}
 .halo-wallpaper::before{animation:halo-wallpaper 24s ease-in-out infinite alternate}
}
/* Decorative movement freezes on pause, Still scenery, hidden tabs and reduced motion. */
:root[data-still-scenery=true] .halo-wallpaper::before,
:root[data-scene-hidden=true] .halo-wallpaper::before,
:root[data-scene-hidden=true] .bani-halo::before,:root[data-scene-hidden=true] .bani-halo::after,:root[data-scene-hidden=true] .halo-sparks{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){
 .bani-halo,.bani-halo::before,.bani-halo::after,.halo-sparks,.halo-wallpaper::before{animation:none!important;transition:none!important}
 .bani-disc--illustrated .bani-disc-button:hover .bani-halo,.bani-disc--illustrated .bani-disc-button:active .bani-halo{transform:none}
}
@keyframes halo-orbit{to{transform:rotate(360deg)}}
@keyframes halo-glint{0%,100%{opacity:.72;scale:.85}50%{opacity:1;scale:1.15}}
@keyframes halo-wallpaper{to{transform:translate(4%,3%) scale(1.04)}}
@keyframes halo-welcome{from{transform:rotate(-190deg) scale(.85);opacity:0}to{transform:rotate(80deg) scale(1.2);opacity:.8}}
