/* LOWiSPIKE Community energy hits: the glass joystick (right corner of the galaxy), the energy layer and the "+energy" sparkle.
   Same blue Liquid Glass as the weather pill (world-home.css --wh-glass-*), black space, no gold or beige. */
#cmPaneChat[data-spirit-chat] .ce-fx{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:4;display:block}
#cmPaneChat[data-spirit-chat] .ce-joy{position:absolute;right:max(12px,env(safe-area-inset-right,0px));bottom:12px;z-index:6;width:72px;height:72px;border-radius:50%;
  box-sizing:border-box;display:grid;place-items:center;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;cursor:grab;-webkit-tap-highlight-color:transparent;
  background:var(--wh-glass-bg,radial-gradient(circle at 32% 24%,rgba(255,255,255,.34),rgba(255,255,255,0) 34%),radial-gradient(closest-side,rgba(80,170,255,.10),rgba(28,74,150,.36)));
  border:1px solid var(--wh-glass-rim,rgba(160,220,255,.55));box-shadow:var(--wh-glass-sh,inset 0 0 18px rgba(140,210,255,.32),0 8px 26px -12px rgba(40,120,255,.5));
  -webkit-backdrop-filter:blur(14px) saturate(1.5);backdrop-filter:blur(14px) saturate(1.5);color:var(--wh-glass-ink,#fff);transition:transform .18s ease,box-shadow .18s ease,opacity .2s ease}
#cmPaneChat[data-spirit-chat] .ce-joy .ce-ring{position:absolute;inset:9px;border-radius:50%;border:1px dashed rgba(190,232,255,.32);pointer-events:none}
#cmPaneChat[data-spirit-chat] .ce-joy .ce-knob{position:relative;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;pointer-events:none;
  background:radial-gradient(circle at 34% 28%,rgba(255,255,255,.75),rgba(255,255,255,0) 46%),radial-gradient(closest-side,rgba(120,205,255,.55),rgba(40,120,255,.55));
  border:1px solid rgba(225,248,255,.7);box-shadow:0 0 14px rgba(110,200,255,.55),inset 0 0 8px rgba(255,255,255,.35);color:#fff;transition:transform .22s cubic-bezier(.3,1.4,.5,1)}
#cmPaneChat[data-spirit-chat] .ce-joy.on{cursor:grabbing;transform:scale(1.06)}
#cmPaneChat[data-spirit-chat] .ce-joy.on .ce-knob{transition:none}
#cmPaneChat[data-spirit-chat] .ce-joy.armed{box-shadow:inset 0 0 22px rgba(140,210,255,.5),0 0 26px rgba(80,180,255,.55)}
#cmPaneChat[data-spirit-chat] .ce-joy:focus-visible{outline:2px solid #8fd3ff;outline-offset:3px}
@media (min-width:700px) and (min-height:700px){#cmPaneChat[data-spirit-chat] .ce-joy{width:84px;height:84px;right:16px;bottom:16px}#cmPaneChat[data-spirit-chat] .ce-joy .ce-knob{width:44px;height:44px}}
/* out of the way while you type or read the history */
html.cs-chat-map-typing #cmPaneChat[data-spirit-chat] .ce-joy,#cmPaneChat[data-spirit-chat] .cg-room:has(#cgThread[data-open]) .ce-joy{opacity:0;pointer-events:none}
/* your companion while you aim: it melts into the pointed energy form drawn on the energy layer */
#cmPaneChat[data-spirit-chat] .cg-body.me.ce-aim .cg-orb{opacity:.35;filter:brightness(1.6) blur(.6px);transform:scale(.86);transition:opacity .15s ease,transform .15s ease,filter .15s ease}
#cmPaneChat[data-spirit-chat] .cg-body.me.ce-shot .cg-orb{animation:ceShot .42s ease-out}
@keyframes ceShot{0%{transform:scale(.8)}45%{transform:scale(1.12)}100%{transform:scale(1)}}
#cmPaneChat[data-spirit-chat] .ce-plus{position:absolute;z-index:5;transform:translate(-50%,-100%);pointer-events:none;white-space:nowrap;font:700 13px/1 -apple-system,BlinkMacSystemFont,"SF Pro Text",system-ui,sans-serif;
  color:#fff;padding:5px 9px;border-radius:999px;background:radial-gradient(closest-side,rgba(80,170,255,.30),rgba(28,74,150,.55));border:1px solid rgba(160,220,255,.6);
  box-shadow:0 0 16px rgba(110,200,255,.55);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);text-shadow:0 0 8px rgba(140,215,255,.9);animation:cePlus 1.5s ease-out forwards}
#cmPaneChat[data-spirit-chat] .ce-plus b{margin-right:3px;font-weight:700}
@keyframes cePlus{0%{opacity:0;transform:translate(-50%,-60%) scale(.7)}15%{opacity:1;transform:translate(-50%,-100%) scale(1.05)}70%{opacity:1}100%{opacity:0;transform:translate(-50%,-190%) scale(1)}}
@media (prefers-reduced-motion:reduce){#cmPaneChat[data-spirit-chat] .ce-plus{animation:cePlusCalm .9s ease-out forwards}#cmPaneChat[data-spirit-chat] .cg-body.me.ce-shot .cg-orb{animation:none}#cmPaneChat[data-spirit-chat] .ce-joy .ce-knob{transition:none}}
@keyframes cePlusCalm{0%{opacity:0}20%{opacity:1}80%{opacity:1}100%{opacity:0}}
