/* /shared/rc-gx.css - the G UI layer (owner 16 Nov 2026), used with /shared/rc-gx.js. Same look as the Play Stockfish G UI
   (bots/gui-sf.css): green dot sea + orbital rings behind the page, frosted glass panels, ripples, pop-ups, reveals. */
:root{--gx-a:#00a86b;--gx-a2:#3ef0a4;--gx-base:#eef6f1;--gx-glass:rgba(255,255,255,.66);--gx-line:rgba(0,120,80,.16);--gx-txt:#0d2a1e}
html[data-theme=dark]{--gx-base:#05100c;--gx-glass:rgba(16,26,22,.6);--gx-line:rgba(62,240,164,.14);--gx-txt:#eafff5}
html.gx-on{background:var(--gx-base)!important}
html.gx-on body{background:transparent!important}
#gx-bg{position:fixed;left:0;top:0;width:100vw;height:100vh;z-index:-1;pointer-events:none;display:block}
#gx-vig{position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(120% 90% at 50% 40%,transparent 55%,rgba(0,0,0,.10) 100%)}
html[data-theme=dark] #gx-vig{background:radial-gradient(120% 90% at 50% 40%,transparent 50%,rgba(0,0,0,.55) 100%)}
.gx-clear{background:transparent!important}
.gx-glass{background:var(--gx-glass)!important;-webkit-backdrop-filter:blur(14px) saturate(1.3);backdrop-filter:blur(14px) saturate(1.3);border:1px solid var(--gx-line)!important;box-shadow:0 18px 50px -24px rgba(0,80,50,.35),inset 0 1px 0 rgba(255,255,255,.35)}
html[data-theme=dark] .gx-glass{box-shadow:0 18px 50px -24px rgba(0,0,0,.7),inset 0 1px 0 rgba(255,255,255,.05)}
/* headline: words rise in, out of a blur */
.gx-hw .gx-w{display:inline-block;overflow:hidden;vertical-align:bottom;padding-bottom:.08em}
.gx-hw .gx-w>i{display:inline-block;font-style:normal;transform:translateY(110%);filter:blur(8px);transition:transform .75s cubic-bezier(.2,.9,.2,1),filter .75s}
.gx-hw.on .gx-w>i{transform:none;filter:none}
/* buttons: press + ripple */
html.gx-on button,html.gx-on .rc-button{transition:transform .18s cubic-bezier(.2,.9,.3,1.4),box-shadow .25s,background-color .2s,filter .2s}
html.gx-on button:active,html.gx-on .rc-button:active{transform:scale(.95)}
@media (hover:hover){html.gx-on .rc-button:hover{filter:brightness(1.07);transform:translateY(-1px)}}
.gx-ripw{position:absolute;inset:0;border-radius:inherit;overflow:hidden;pointer-events:none;z-index:0}
.gx-rip{position:absolute;border-radius:50%;pointer-events:none;background:radial-gradient(circle,rgba(62,240,164,.55) 0,rgba(62,240,164,.18) 45%,transparent 70%);transform:scale(0);opacity:1;animation:gx-rip .65s cubic-bezier(.2,.8,.2,1) forwards}
@keyframes gx-rip{to{transform:scale(1);opacity:0}}
/* pop-ups */
.rc-overlay.gx-pop{animation:gx-ov .28s ease-out both;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
@keyframes gx-ov{from{background-color:transparent;-webkit-backdrop-filter:blur(0);backdrop-filter:blur(0)}}
.rc-overlay.gx-pop .rc-dialog{animation:gx-dlg .45s cubic-bezier(.2,.9,.25,1.15) both;transform-origin:50% 100%;box-shadow:0 0 0 1px rgba(62,240,164,.22),0 30px 80px -20px rgba(0,0,0,.55),0 0 60px -10px rgba(0,168,107,.35)}
@keyframes gx-dlg{from{opacity:0;transform:perspective(900px) translateY(40px) rotateX(18deg) scale(.92)}to{opacity:1;transform:none}}
.rc-overlay.gx-ghost{pointer-events:none!important;animation:gx-ov-out .24s ease-in forwards}
.rc-overlay.gx-ghost .rc-dialog{animation:gx-dlg-out .24s ease-in forwards}
@keyframes gx-ov-out{to{background-color:transparent;opacity:0}}
@keyframes gx-dlg-out{to{opacity:0;transform:translateY(24px) scale(.95)}}
/* cards: rise in one after another, tilt with a light spot */
.gx-rv{opacity:0;transform:translateY(22px) scale(.98);transition:opacity .6s,transform .7s cubic-bezier(.2,.9,.2,1)}
.gx-rv.gx-rv-on{opacity:1;transform:none}
.gx-tilt{transition:transform .12s ease-out!important;background-image:radial-gradient(240px circle at var(--mx,50%) var(--my,50%),rgba(62,240,164,.14),transparent 60%)}
/* scroll progress line */
#gx-prog{position:fixed;left:0;right:0;bottom:0;height:3px;z-index:50;pointer-events:none;transform-origin:0 50%;transform:scaleX(0);background:linear-gradient(90deg,#00a86b,#3ef0a4)}
@media (prefers-reduced-motion:reduce){.gx-rip,.rc-overlay.gx-pop,.rc-overlay.gx-pop *{animation:none!important}.gx-rv{opacity:1!important;transform:none!important}.gx-hw .gx-w>i{transform:none!important;filter:none!important;transition:none!important}}

/* low-end devices: no blur (the heaviest effect), no tilt, simpler shadows */
html.gx-lite .gx-glass,html.gx-lite .g-head,html.gx-lite .chat,html.gx-lite .bubble,html.gx-lite .gx-c,html.gx-lite .gx-st,html.gx-lite .rc-overlay.gx-pop{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html.gx-lite .gx-glass{background:var(--gx-base)!important}
html.gx-lite .gx-hw .gx-w>i,html.gx-lite .gx-h .w>i{filter:none!important}
html.gx-lite .gx-tilt{transform:none!important;background-image:none!important}
html.gx-still .gx-marq-in{animation:none!important}
