
.lg {
  --lg-tint: rgba(255, 255, 255, .46);
  --lg-tint-lens: rgba(255, 255, 255, .26);
  --lg-ink: #111114;
  --lg-blur: 16px;

  --lg-rim: inset 1.2px 1.2px 0 rgba(255,249,236,.95), inset -1px -1px 0 rgba(226,196,150,.42), inset 0 0 16px rgba(255,240,214,.34), inset 0 -10px 18px -12px rgba(70,40,10,.14);
  --lg-edge: linear-gradient(135deg, rgba(255,181,71,.55), rgba(255,45,135,.35) 50%, rgba(138,77,255,.5));
  --lg-edge-o: .22;
  --lg-drop: 0 12px 32px -12px rgba(0,0,0,.30), 0 2px 6px -2px rgba(0,0,0,.12);
  position: relative; isolation: isolate; color: var(--lg-ink);
  background: var(--lg-tint);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(180%) brightness(1.06);
  backdrop-filter: blur(var(--lg-blur)) saturate(180%) brightness(1.06);
  box-shadow: var(--lg-drop);
  transition: background-color .45s ease, color .45s ease, box-shadow .45s ease;
}
.lg.lg-dark {
  --lg-tint: rgba(26, 24, 34, .46);
  --lg-tint-lens: rgba(22, 20, 30, .30);
  --lg-ink: #ffffff;
  --lg-rim: inset 1.2px 1.2px 0 rgba(255,236,206,.5), inset -1px -1px 0 rgba(226,196,150,.14), inset 0 0 16px rgba(255,226,190,.1), inset 0 -10px 18px -12px rgba(0,0,0,.4);
  --lg-edge-o: .4;
  --lg-drop: 0 12px 32px -12px rgba(0,0,0,.55), 0 2px 6px -2px rgba(0,0,0,.25);
}
.lg-pill { border-radius: 999px; }
.lg-round { border-radius: 50%; }


.lg > .lg-layer { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.lg > :not(.lg-layer) { z-index: 3; }
.lg-lens { z-index: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .35s ease; }
.lg-lens.is-on { opacity: 1; }
html.lg-scrolling .lg-lens.is-on { opacity: 0; transition-duration: .12s; }
.lg-tint { z-index: 1; background: var(--lg-tint-lens); display: none; transition: background-color .45s ease; }
.lg.lg-on { background: transparent; }
.lg.lg-on > .lg-tint { display: block; }


.lg-rim { z-index: 2; box-shadow: var(--lg-rim); transition: box-shadow .45s ease; }


.lg-edge { z-index: 2; padding: 1px; opacity: var(--lg-edge-o); background: var(--lg-edge);
  -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, linear-gradient(#000 0 0); mask-composite: exclude; }


.lg-sheen { z-index: 2; overflow: hidden; mix-blend-mode: soft-light; }
.lg-sheen::before { content: ''; position: absolute; left: 0; top: -70%; width: 70%; height: 240%;
  background: radial-gradient(closest-side, rgba(255,255,255,.7), rgba(255,255,255,.22) 45%, rgba(255,255,255,0));
  transform: translateX(var(--lg-lx, 10%)); }
.lg-drift > .lg-sheen::before { animation: lg-drift 9s ease-in-out infinite alternate; }
.lg.lg-ptr > .lg-sheen::before { animation: none; transition: transform .14s linear; }
@keyframes lg-drift { from { transform: translateX(-35%); } to { transform: translateX(115%); } }


.lg-bloom { position: absolute; z-index: 2; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,255,255,.85), rgba(255,255,255,0)); mix-blend-mode: screen; }


.lg-bubble { --lg-tint: rgba(255,255,255,.3); --lg-tint-lens: rgba(255,255,255,.12); --lg-blur: 22px;

  position: absolute; pointer-events: none; border-radius: 46% / 50%; transform-origin: 50% 50%;
  --lg-rim: inset 1.2px 1.2px 0 rgba(255,249,236,.98), inset -1px -1px 0 rgba(226,196,150,.45), inset 0 0 14px rgba(255,240,214,.5), inset 0 -6px 12px -8px rgba(80,40,10,.18);
  --lg-drop: 0 4px 14px -6px rgba(0,0,0,.3); }
.lg-bubble::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1.2px; opacity: .55; pointer-events: none;
  background: linear-gradient(120deg, #ff3fd0, rgba(255,255,255,.25) 38%, rgba(255,255,255,.25) 62%, #3fe0ff);
  -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, linear-gradient(#000 0 0); mask-composite: exclude; }
.lg-dark .lg-bubble, .lg-bubble.lg-dark { --lg-tint: rgba(255,255,255,.14); --lg-tint-lens: rgba(255,255,255,.08); }


.lg.lg-sleep { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: var(--lg-tint); }
.lg.lg-sleep > .lg-tint, .lg.lg-sleep > .lg-lens { display: none; }
.lg.lg-sleep > .lg-sheen::before { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .lg-drift > .lg-sheen::before { animation: none; }
  .lg-lens { display: none; }
}
