/* Liquid Glass, shared module (tma-site + tma-cases, 26.10). Same tokens as case-motion: --gl-bg, --gl-edge, --gl-rim,
   --gl-shadow, --gl-hi, --gl-tint, and --gl-lc (light colour as an RGB triple: white on dark grounds, the case accent on light).
   The pointer is a point light (glass.js): ::before is the rim lit from the nearest side plus a soft static top light,
   ::after a specular spot on the surface. Without backdrop-filter the glass falls back to a dense fill. */
.lg{--gl-bg:rgba(18,18,20,.62);--gl-edge:rgba(255,255,255,.22);--gl-rim:rgba(255,255,255,.10);--gl-hi:rgba(255,255,255,.22);
  --gl-tint:transparent;--gl-lc:255,255,255;--gl-shadow:0 18px 40px -18px rgba(0,0,0,.65);
  position:relative;isolation:isolate;
  background:linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,0) 55%),linear-gradient(var(--gl-tint),var(--gl-tint)),var(--gl-bg);
  -webkit-backdrop-filter:blur(22px) saturate(180%);backdrop-filter:blur(22px) saturate(180%);
  box-shadow:inset 0 0 0 1px var(--gl-rim),var(--gl-shadow)}
/* rim: lit from the pointer's side + a soft static light along the top */
.lg::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;padding:1.5px;
  background:radial-gradient(var(--lr,140px) circle at var(--lx,50%) var(--ly,-60%),rgba(var(--gl-lc),calc(var(--la,0) * .95)),transparent 72%),
    linear-gradient(180deg,var(--gl-edge),transparent 40%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
/* specular spot on the surface */
.lg::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:-1;
  background:radial-gradient(var(--lr,140px) circle at var(--lx,50%) var(--ly,-60%),var(--gl-hi),transparent 70%);opacity:calc(var(--la,0) * .55)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.lg{--gl-bg:rgba(18,18,20,.94)}}
@media (prefers-reduced-transparency:reduce){.lg{--gl-bg:rgba(18,18,20,.96);-webkit-backdrop-filter:none;backdrop-filter:none}}
