﻿/* Rare prism particles background: clean white field with occasional glints and hair-thin light trails. */

:root {
  --ag-bg-ink: 31, 25, 30;
}

html,
body {
  min-height: 100%;
}

body.ag-site {
  --ag-voice: 0;
  --ag-speech: 0;
  --ag-hover: 0;
  --ag-playing: 0;
  --ag-paused: 0;
  --ag-attack: 0;
  --ag-cursor-x: 50vw;
  --ag-cursor-y: 50vh;
  --ag-cursor-heat: 0;
  margin: 0;
  position: relative;
  overflow-x: clip;
  background: #fff;
  color: rgba(var(--ag-bg-ink), .92);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.ag-site::before,
body.ag-site::after,
.ag-site__stage::before,
.ag-site__stage::after {
  content: "";
  position: fixed;
  inset: -8%;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
  will-change: opacity, transform, filter;
}

/* Rare prism dust: small colored particles that quietly appear and vanish. */
body.ag-site::before {
  background:
    radial-gradient(circle at 8% 18%, rgba(70, 255, 224, .30) 0 .9px, rgba(255,255,255,.42) 1px, transparent 3.2px),
    radial-gradient(circle at 92% 17%, rgba(255, 90, 222, .28) 0 .9px, rgba(255,255,255,.40) 1px, transparent 3.1px),
    radial-gradient(circle at 16% 79%, rgba(255, 228, 80, .26) 0 .8px, rgba(255,255,255,.36) 1px, transparent 3px),
    radial-gradient(circle at 84% 74%, rgba(156, 110, 255, .24) 0 .8px, rgba(255,255,255,.34) 1px, transparent 3px),
    radial-gradient(circle at 29% 12%, rgba(255, 142, 224, .18) 0 .7px, transparent 2.6px),
    radial-gradient(circle at 73% 88%, rgba(76, 246, 232, .18) 0 .7px, transparent 2.6px);
  filter:
    blur(.18px)
    saturate(calc(1.28 + var(--ag-speech) * .12))
    brightness(calc(1.06 + var(--ag-voice) * .03));
  opacity: calc(.30 + var(--ag-playing) * .05 + var(--ag-speech) * .06);
  transform: translate3d(0, 0, 0);
  animation: agPrismParticles 18s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(ellipse at 50% 34%, transparent 0%, transparent 24%, rgba(0,0,0,.34) 42%, #000 58%, #000 100%);
  mask-image: radial-gradient(ellipse at 50% 34%, transparent 0%, transparent 24%, rgba(0,0,0,.34) 42%, #000 58%, #000 100%);
}

/* Hair-thin flashes with short light tails. */
body.ag-site::after {
  background:
    linear-gradient(118deg,
      transparent 0%, transparent 18%,
      rgba(255,255,255,0) 19.0%,
      rgba(255,255,255,.52) 19.35%,
      rgba(255, 92, 218, .16) 19.75%,
      rgba(255, 238, 88, .16) 20.1%,
      rgba(68, 255, 218, .14) 20.45%,
      transparent 21.8%, transparent 100%),
    linear-gradient(34deg,
      transparent 0%, transparent 78%,
      rgba(255,255,255,.46) 78.4%,
      rgba(255, 228, 92, .13) 78.75%,
      rgba(92, 250, 224, .12) 79.1%,
      rgba(176, 116, 255, .10) 79.5%,
      transparent 81.3%, transparent 100%),
    linear-gradient(156deg,
      transparent 0%, transparent 5%,
      rgba(255,255,255,.42) 5.45%,
      rgba(255, 126, 226, .12) 5.85%,
      rgba(92, 250, 224, .10) 6.25%,
      transparent 8.2%, transparent 100%);
  filter:
    blur(.65px)
    saturate(calc(1.35 + var(--ag-speech) * .16))
    brightness(calc(1.05 + var(--ag-attack) * .05));
  opacity: calc(.16 + var(--ag-playing) * .045 + var(--ag-speech) * .065 + var(--ag-attack) * .055);
  transform: translate3d(0, 0, 0) rotate(0deg);
  animation: agPrismHairs 26s cubic-bezier(.36, 0, .24, 1) infinite;
  -webkit-mask-image: radial-gradient(ellipse at 50% 34%, transparent 0%, transparent 28%, rgba(0,0,0,.28) 44%, #000 62%, #000 100%);
  mask-image: radial-gradient(ellipse at 50% 34%, transparent 0%, transparent 28%, rgba(0,0,0,.28) 44%, #000 62%, #000 100%);
}

.ag-site__stage {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  place-items: start center;
  background: transparent;
  isolation: isolate;
}

/* Secondary glints: offset timing so the background does not blink all at once. */
.ag-site__stage::before {
  background:
    radial-gradient(circle at 94% 42%, rgba(255,255,255,.58) 0 1px, rgba(255, 126, 226, .18) 1.4px, transparent 5.5px),
    radial-gradient(circle at 7% 58%, rgba(255,255,255,.56) 0 1px, rgba(80, 255, 224, .18) 1.4px, transparent 5.5px),
    linear-gradient(92deg,
      transparent 0%, transparent 88%,
      rgba(255,255,255,.48) 88.3%,
      rgba(255, 238, 92, .11) 88.65%,
      rgba(255, 112, 224, .09) 89.0%,
      transparent 90.8%, transparent 100%);
  filter: blur(.35px) saturate(1.25) brightness(1.06);
  opacity: calc(.18 + var(--ag-playing) * .035 + var(--ag-speech) * .04);
  animation: agPrismSecondary 22s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(ellipse at 50% 34%, transparent 0%, transparent 33%, rgba(0,0,0,.26) 49%, #000 64%, #000 100%);
  mask-image: radial-gradient(ellipse at 50% 34%, transparent 0%, transparent 33%, rgba(0,0,0,.26) 49%, #000 64%, #000 100%);
}

.ag-site__stage::after {
  background: none;
  opacity: 0;
}

.ag-site__stage > .auricle-v11 {
  position: relative;
  z-index: 2;
}

body.ag-site.ag-audio-playing::before {
  opacity: calc(.36 + var(--ag-speech) * .07 + var(--ag-voice) * .025);
}

body.ag-site.ag-audio-playing::after {
  opacity: calc(.20 + var(--ag-speech) * .075 + var(--ag-attack) * .060);
}

@supports not (min-height: 100svh) {
  .ag-site__stage {
    min-height: 100vh;
  }
}

@supports not (overflow-x: clip) {
  body.ag-site {
    overflow-x: hidden;
  }
}

@keyframes agPrismParticles {
  0%, 100% {
    transform: translate3d(-.5%, .5%, 0) scale(1);
    opacity: calc(.16 + var(--ag-playing) * .035);
  }
  18% {
    opacity: calc(.42 + var(--ag-playing) * .050 + var(--ag-speech) * .060);
  }
  46% {
    transform: translate3d(.9%, -.8%, 0) scale(1.006);
    opacity: calc(.22 + var(--ag-playing) * .040);
  }
  73% {
    opacity: calc(.50 + var(--ag-playing) * .050 + var(--ag-speech) * .055);
  }
}

@keyframes agPrismHairs {
  0%, 100% {
    transform: translate3d(-1.5%, 1.1%, 0) rotate(-.4deg) scale(1);
    opacity: calc(.05 + var(--ag-playing) * .020);
  }
  15% {
    opacity: calc(.28 + var(--ag-playing) * .040 + var(--ag-speech) * .060);
  }
  22% {
    opacity: calc(.09 + var(--ag-playing) * .020);
  }
  55% {
    transform: translate3d(1.2%, -1%, 0) rotate(.5deg) scale(1.012);
    opacity: calc(.34 + var(--ag-playing) * .050 + var(--ag-speech) * .070);
  }
  67% {
    opacity: calc(.08 + var(--ag-playing) * .020);
  }
}

@keyframes agPrismSecondary {
  0%, 100% {
    transform: translate3d(1%, -.5%, 0) rotate(.25deg);
    opacity: calc(.07 + var(--ag-playing) * .020);
  }
  34% {
    opacity: calc(.26 + var(--ag-playing) * .035 + var(--ag-speech) * .035);
  }
  64% {
    transform: translate3d(-.8%, .6%, 0) rotate(-.35deg);
    opacity: calc(.12 + var(--ag-playing) * .020);
  }
  82% {
    opacity: calc(.30 + var(--ag-playing) * .035 + var(--ag-speech) * .040);
  }
}

@media (max-width: 900px), (max-height: 760px), (pointer: coarse) {
  body.ag-site::before {
    opacity: calc(.24 + var(--ag-playing) * .035);
  }

  body.ag-site::after {
    opacity: calc(.12 + var(--ag-playing) * .030 + var(--ag-speech) * .030);
    filter: blur(.75px) saturate(1.22) brightness(1.05);
  }

  .ag-site__stage::before {
    opacity: calc(.10 + var(--ag-playing) * .025);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ag-site::before,
  body.ag-site::after,
  .ag-site__stage::before,
  .ag-site__stage::after {
    animation: none;
  }
}
/* ag-theme-toggle: moon-pearl switch and page-level dark theme. */
html {
  color-scheme: light;
}

html[data-ag-theme="dark"] {
  color-scheme: dark;
}

body.ag-site {
  transition:
    background-color 1.1s cubic-bezier(.22, .72, .20, 1),
    color 1.1s cubic-bezier(.22, .72, .20, 1);
}

html[data-ag-theme="dark"] body.ag-site {
  background:
    radial-gradient(ellipse at 50% 28%, rgba(72, 42, 96, .62) 0%, rgba(24, 21, 38, .84) 32%, rgba(8, 10, 18, .98) 76%, #050711 100%),
    #050711;
  color: rgba(246, 242, 255, .90);
}

html[data-ag-theme="dark"] body.ag-site::before {
  opacity: calc(.46 + var(--ag-playing) * .08 + var(--ag-speech) * .09);
  filter:
    blur(.35px)
    saturate(calc(1.42 + var(--ag-speech) * .16))
    brightness(calc(1.16 + var(--ag-voice) * .05));
}

html[data-ag-theme="dark"] body.ag-site::after {
  opacity: calc(.28 + var(--ag-playing) * .075 + var(--ag-speech) * .10 + var(--ag-attack) * .06);
  filter:
    blur(.75px)
    saturate(calc(1.52 + var(--ag-speech) * .18))
    brightness(calc(1.22 + var(--ag-attack) * .08));
}

html[data-ag-theme="dark"] .ag-site__stage::before {
  opacity: calc(.30 + var(--ag-playing) * .060 + var(--ag-speech) * .070);
  filter: blur(.45px) saturate(1.45) brightness(1.18);
}

.ag-theme-toggle {
  position: fixed;
  top: clamp(16px, 2.2vw, 26px);
  right: clamp(16px, 2.5vw, 30px);
  z-index: 20;
  width: 66px;
  height: 38px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 24% 42%, rgba(255,255,255,.92) 0 8%, transparent 18%),
    linear-gradient(135deg, rgba(255,255,255,.58), rgba(240, 252, 250, .28) 42%, rgba(255, 220, 248, .30));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.72),
    inset 0 -10px 22px rgba(112, 236, 224, .10),
    0 12px 32px rgba(31, 25, 30, .10),
    0 0 26px rgba(255, 180, 232, .14);
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 1s cubic-bezier(.22, .72, .20, 1),
    box-shadow 1s cubic-bezier(.22, .72, .20, 1),
    transform .35s cubic-bezier(.18, .82, .16, 1);
}

.ag-theme-toggle:hover {
  transform: translateY(-1px) scale(1.025);
}

.ag-theme-toggle__halo {
  position: absolute;
  inset: -22px;
  border-radius: 999px;
  background:
    conic-gradient(from 20deg,
      rgba(255, 160, 226, .26),
      rgba(255, 238, 132, .20),
      rgba(106, 246, 232, .26),
      rgba(184, 142, 255, .22),
      rgba(255, 160, 226, .26));
  filter: blur(14px) saturate(1.14);
  opacity: .55;
  animation: agThemeHalo 9s linear infinite;
}

.ag-theme-toggle__orb {
  position: absolute;
  left: 6px;
  top: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,1) 0 18%, rgba(255,255,255,.72) 19% 28%, transparent 30%),
    radial-gradient(circle at 72% 72%, rgba(112, 244, 232, .70), transparent 46%),
    conic-gradient(from 40deg, rgba(255, 170, 224, .50), rgba(255, 238, 132, .44), rgba(112, 244, 232, .56), rgba(184, 142, 255, .46), rgba(255, 170, 224, .50)),
    radial-gradient(circle, rgba(255,255,255,.98), rgba(255, 238, 252, .78) 58%, rgba(255,255,255,0) 82%);
  box-shadow:
    inset 2px 2px 6px rgba(255,255,255,.98),
    inset -3px -3px 8px rgba(112, 236, 224, .20),
    0 0 14px rgba(112, 236, 224, .24),
    0 0 20px rgba(255, 160, 224, .20);
  transform: translateX(0);
  transition:
    transform .8s cubic-bezier(.18, .82, .16, 1),
    background .9s cubic-bezier(.22, .72, .20, 1),
    box-shadow .9s cubic-bezier(.22, .72, .20, 1);
}

.ag-theme-toggle__spark {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  box-shadow: 0 0 8px rgba(255,255,255,.78), 0 0 12px rgba(184, 142, 255, .40);
  opacity: .72;
  transition: transform .8s cubic-bezier(.18, .82, .16, 1), opacity .8s ease;
}

.ag-theme-toggle__spark--one { left: 40px; top: 10px; }
.ag-theme-toggle__spark--two { left: 50px; top: 20px; width: 2px; height: 2px; }
.ag-theme-toggle__spark--three { left: 36px; top: 25px; width: 2px; height: 2px; }

html[data-ag-theme="dark"] .ag-theme-toggle {
  background:
    radial-gradient(circle at 74% 43%, rgba(184, 142, 255, .52) 0 8%, transparent 18%),
    linear-gradient(135deg, rgba(24, 18, 42, .94), rgba(55, 38, 82, .78) 48%, rgba(16, 46, 56, .70));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.18),
    inset 0 -10px 24px rgba(112, 236, 224, .13),
    0 12px 34px rgba(0, 0, 0, .32),
    0 0 32px rgba(184, 142, 255, .26),
    0 0 36px rgba(112, 236, 224, .12);
}

html[data-ag-theme="dark"] .ag-theme-toggle__halo {
  opacity: .78;
  filter: blur(13px) saturate(1.32) brightness(1.08);
}

html[data-ag-theme="dark"] .ag-theme-toggle__orb {
  transform: translateX(28px);
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.94) 0 14%, rgba(224, 210, 255, .70) 15% 24%, transparent 28%),
    radial-gradient(circle at 72% 72%, rgba(112, 244, 232, .58), transparent 45%),
    radial-gradient(circle at 44% 52%, rgba(184, 142, 255, .92), rgba(88, 54, 150, .82) 58%, rgba(12, 10, 22, .30) 86%);
  box-shadow:
    inset 2px 2px 7px rgba(255,255,255,.55),
    inset -5px -5px 9px rgba(14, 10, 28, .44),
    0 0 17px rgba(184, 142, 255, .42),
    0 0 24px rgba(112, 236, 224, .18);
}

html[data-ag-theme="dark"] .ag-theme-toggle__spark--one { transform: translate(-32px, 2px); opacity: .96; }
html[data-ag-theme="dark"] .ag-theme-toggle__spark--two { transform: translate(-32px, -7px); opacity: .82; }
html[data-ag-theme="dark"] .ag-theme-toggle__spark--three { transform: translate(-26px, -1px); opacity: .88; }

@keyframes agThemeHalo {
  to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
  .ag-theme-toggle {
    width: 58px;
    height: 34px;
    top: 12px;
    right: 12px;
  }

  .ag-theme-toggle__orb {
    width: 23px;
    height: 23px;
    left: 5px;
    top: 5px;
  }

  html[data-ag-theme="dark"] .ag-theme-toggle__orb {
    transform: translateX(25px);
  }
}
/* /ag-theme-toggle */
/* ag-background-removed: superseded by ag-light-fractures-bg. */
/* ag-subtle-theme-toggle: make the theme switch barely visible, like a quiet corner pearl. */
.ag-theme-toggle {
  width: 46px !important;
  height: 26px !important;
  top: clamp(12px, 1.8vw, 18px) !important;
  right: clamp(12px, 2vw, 18px) !important;
  opacity: .34 !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.28), rgba(240, 252, 250, .12) 46%, rgba(255, 220, 248, .13)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.28),
    0 8px 22px rgba(31, 25, 30, .035),
    0 0 16px rgba(255, 180, 232, .040) !important;
  transition:
    opacity .55s ease,
    transform .35s cubic-bezier(.18, .82, .16, 1),
    background .9s cubic-bezier(.22, .72, .20, 1),
    box-shadow .9s cubic-bezier(.22, .72, .20, 1) !important;
}

.ag-theme-toggle:hover,
.ag-theme-toggle:focus-visible {
  opacity: .72 !important;
  transform: translateY(-1px) scale(1.025) !important;
}

.ag-theme-toggle__halo {
  inset: -10px !important;
  opacity: .16 !important;
  filter: blur(10px) saturate(1.02) !important;
}

.ag-theme-toggle__orb {
  left: 4px !important;
  top: 4px !important;
  width: 18px !important;
  height: 18px !important;
  box-shadow:
    inset 1px 1px 4px rgba(255,255,255,.78),
    inset -2px -2px 5px rgba(112, 236, 224, .10),
    0 0 8px rgba(112, 236, 224, .10),
    0 0 10px rgba(255, 160, 224, .08) !important;
}

.ag-theme-toggle__spark {
  opacity: .32 !important;
  box-shadow: 0 0 5px rgba(255,255,255,.34), 0 0 8px rgba(184, 142, 255, .18) !important;
}

.ag-theme-toggle__spark--one { left: 29px !important; top: 7px !important; width: 2px !important; height: 2px !important; }
.ag-theme-toggle__spark--two { left: 36px !important; top: 15px !important; width: 1.5px !important; height: 1.5px !important; }
.ag-theme-toggle__spark--three { left: 27px !important; top: 18px !important; width: 1.5px !important; height: 1.5px !important; }

html[data-ag-theme="dark"] .ag-theme-toggle {
  opacity: .38 !important;
  background:
    linear-gradient(135deg, rgba(24, 18, 42, .46), rgba(55, 38, 82, .30) 52%, rgba(16, 46, 56, .26)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.10),
    0 10px 24px rgba(0, 0, 0, .16),
    0 0 16px rgba(184, 142, 255, .10),
    0 0 18px rgba(112, 236, 224, .045) !important;
}

html[data-ag-theme="dark"] .ag-theme-toggle:hover,
html[data-ag-theme="dark"] .ag-theme-toggle:focus-visible {
  opacity: .76 !important;
}

html[data-ag-theme="dark"] .ag-theme-toggle__halo {
  opacity: .22 !important;
  filter: blur(10px) saturate(1.08) brightness(1.02) !important;
}

html[data-ag-theme="dark"] .ag-theme-toggle__orb {
  transform: translateX(20px) !important;
  box-shadow:
    inset 1px 1px 4px rgba(255,255,255,.34),
    inset -3px -3px 5px rgba(14, 10, 28, .28),
    0 0 10px rgba(184, 142, 255, .18),
    0 0 12px rgba(112, 236, 224, .08) !important;
}

html[data-ag-theme="dark"] .ag-theme-toggle__spark--one { transform: translate(-22px, 1px) !important; opacity: .46 !important; }
html[data-ag-theme="dark"] .ag-theme-toggle__spark--two { transform: translate(-22px, -5px) !important; opacity: .40 !important; }
html[data-ag-theme="dark"] .ag-theme-toggle__spark--three { transform: translate(-18px, -1px) !important; opacity: .42 !important; }

@media (max-width: 720px) {
  .ag-theme-toggle {
    width: 42px !important;
    height: 24px !important;
    top: 10px !important;
    right: 10px !important;
  }

  .ag-theme-toggle__orb {
    width: 16px !important;
    height: 16px !important;
  }

  html[data-ag-theme="dark"] .ag-theme-toggle__orb {
    transform: translateX(18px) !important;
  }
}
/* /ag-subtle-theme-toggle */
/* ag-no-dark-aura: dark theme keeps the aura in its original pearly light palette. */
html[data-ag-theme="dark"] .ag-site .auricle-v11::before {
  opacity: calc(.38 + var(--av11-voice) * .045) !important;
  filter: blur(46px) saturate(1.045) brightness(1.045) !important;
  background:
    radial-gradient(circle at 50% 30%,
      rgba(255,255,255,.70) 0%,
      hsla(var(--av11-h2), 92%, 88%, .105) 28%,
      hsla(var(--av11-h4), 92%, 80%, .060) 48%,
      hsla(var(--av11-h6), 92%, 84%, .038) 62%,
      rgba(255,255,255,0) 78%) !important;
}

html[data-ag-theme="dark"] .ag-site .auricle-v11::after {
  opacity: .18 !important;
  filter: blur(34px) saturate(1.02) brightness(1.045) !important;
  background:
    radial-gradient(ellipse at 50% 26%,
      rgba(255,255,255,.62) 0%,
      rgba(255,255,255,.18) 44%,
      rgba(255, 220, 246, .028) 60%,
      rgba(255,255,255,0) 82%) !important;
}

html[data-ag-theme="dark"] .ag-site .auricle-v11__space::after,
html[data-ag-theme="dark"] .ag-site .auricle-v11__meta::before {
  opacity: calc(.14 + var(--av11-voice) * .035 + var(--av11-speech-pop) * .025) !important;
  filter: blur(38px) saturate(1.015) brightness(1.055) !important;
  background:
    radial-gradient(ellipse at 50% 34%,
      rgba(255,255,255,.60) 0%,
      rgba(255,255,255,.18) 38%,
      rgba(255, 238, 248, .030) 56%,
      rgba(255,255,255,0) 78%) !important;
}

html[data-ag-theme="dark"] .ag-site .auricle-v11__canvas,
html[data-ag-theme="dark"] .ag-site .auricle-v11[data-state="playing"] .auricle-v11__canvas,
html[data-ag-theme="dark"] .ag-site .auricle-v11[data-state="paused"] .auricle-v11__canvas {
  filter:
    saturate(1.24)
    contrast(1.035)
    brightness(1.022)
    drop-shadow(0 22px 46px rgba(255, 196, 232, .070))
    drop-shadow(0 10px 24px rgba(112, 236, 224, .048)) !important;
}

html[data-ag-theme="dark"] .ag-site .auricle-v11__backglow,
html[data-ag-theme="dark"] .ag-site .auricle-v11__aurora,
html[data-ag-theme="dark"] .ag-site .auricle-v11__arcs,
html[data-ag-theme="dark"] .ag-site .auricle-v11__orb,
html[data-ag-theme="dark"] .ag-site .auricle-v11__voice-rays {
  filter: none;
}
/* /ag-no-dark-aura */
/* ag-light-fractures-bg: visible white-page background with glassy fractures and rare prism spots. */
body.ag-site {
  background:
    radial-gradient(ellipse at 50% 36%, rgba(255,255,255,.98) 0%, rgba(255,255,255,.96) 38%, rgba(253,255,253,.98) 70%, #fff 100%) !important;
}

body.ag-site::before,
body.ag-site::after,
.ag-site__stage::before,
.ag-site__stage::after {
  content: "" !important;
  display: block !important;
  position: fixed !important;
  inset: -8% !important;
  pointer-events: none !important;
  z-index: 0 !important;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
}

body.ag-site::before {
  background:
    linear-gradient(124deg, transparent 0 13%, rgba(94, 226, 216, .16) 13.18%, rgba(255,255,255,.56) 13.34%, rgba(255, 181, 238, .13) 13.52%, transparent 13.9%),
    linear-gradient(31deg, transparent 0 22%, rgba(255, 214, 116, .15) 22.10%, rgba(255,255,255,.54) 22.24%, rgba(117, 248, 237, .12) 22.46%, transparent 22.85%),
    linear-gradient(151deg, transparent 0 64%, rgba(197, 144, 255, .14) 64.08%, rgba(255,255,255,.48) 64.22%, rgba(98, 231, 255, .10) 64.50%, transparent 64.9%),
    linear-gradient(69deg, transparent 0 76%, rgba(96, 230, 216, .12) 76.08%, rgba(255,255,255,.52) 76.22%, rgba(255, 148, 222, .10) 76.42%, transparent 76.78%);
  opacity: calc(.52 + var(--ag-playing) * .06 + var(--ag-speech) * .04) !important;
  filter: saturate(1.18) brightness(1.02);
  animation: agGlassFracturesDrift 38s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(ellipse at 50% 37%, rgba(0,0,0,.26) 0 23%, rgba(0,0,0,.14) 30%, rgba(0,0,0,.78) 52%, #000 100%);
  mask-image: radial-gradient(ellipse at 50% 37%, rgba(0,0,0,.26) 0 23%, rgba(0,0,0,.14) 30%, rgba(0,0,0,.78) 52%, #000 100%);
}

body.ag-site::after {
  background:
    radial-gradient(ellipse at 10% 24%, rgba(97, 255, 230, .19) 0 6%, rgba(255,255,255,.10) 16%, transparent 30%),
    radial-gradient(ellipse at 88% 18%, rgba(255, 134, 225, .18) 0 5%, rgba(255,255,255,.10) 15%, transparent 29%),
    radial-gradient(ellipse at 76% 77%, rgba(178, 137, 255, .16) 0 5%, rgba(255, 242, 142, .10) 15%, transparent 28%),
    radial-gradient(ellipse at 18% 78%, rgba(255, 230, 112, .15) 0 5%, rgba(112, 252, 226, .09) 16%, transparent 30%);
  opacity: calc(.62 + var(--ag-playing) * .08 + var(--ag-speech) * .05) !important;
  filter: blur(18px) saturate(1.24) brightness(1.05);
  animation: agPrismSpotsBreathe 26s cubic-bezier(.33, 0, .23, 1) infinite;
}

.ag-site__stage::before {
  background:
    radial-gradient(circle at 18% 32%, rgba(255,255,255,.96) 0 .9px, rgba(96, 255, 232, .34) 1.1px, transparent 5px),
    radial-gradient(circle at 84% 58%, rgba(255,255,255,.94) 0 .9px, rgba(255, 139, 229, .28) 1.2px, transparent 5.6px),
    radial-gradient(circle at 65% 18%, rgba(255,255,255,.92) 0 .8px, rgba(255, 228, 108, .26) 1.1px, transparent 4.8px),
    radial-gradient(circle at 29% 82%, rgba(255,255,255,.94) 0 .8px, rgba(180, 138, 255, .27) 1.1px, transparent 5px),
    linear-gradient(115deg, transparent 0 46%, rgba(255,255,255,0) 47%, rgba(255,255,255,.46) 47.18%, rgba(118, 248, 236, .17) 47.32%, transparent 47.72%);
  opacity: calc(.34 + var(--ag-playing) * .045 + var(--ag-attack) * .06) !important;
  filter: blur(.15px) saturate(1.30) brightness(1.08);
  animation: agRareGlints 18s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(ellipse at 50% 38%, transparent 0 18%, rgba(0,0,0,.50) 36%, #000 100%);
  mask-image: radial-gradient(ellipse at 50% 38%, transparent 0 18%, rgba(0,0,0,.50) 36%, #000 100%);
}

.ag-site__stage::after {
  background:
    linear-gradient(107deg, transparent 0 18%, rgba(255, 191, 238, .12) 18.2%, rgba(255,255,255,.28) 18.42%, rgba(118, 249, 236, .11) 18.7%, transparent 19.2%),
    linear-gradient(143deg, transparent 0 73%, rgba(255, 238, 128, .11) 73.05%, rgba(255,255,255,.25) 73.26%, rgba(181, 139, 255, .10) 73.55%, transparent 74%);
  opacity: calc(.28 + var(--ag-playing) * .04 + var(--ag-speech) * .05) !important;
  filter: blur(1.2px) saturate(1.18);
  animation: agGlassFracturesSlow 44s ease-in-out infinite;
}

html[data-ag-theme="dark"] body.ag-site::before {
  opacity: calc(.34 + var(--ag-playing) * .05 + var(--ag-speech) * .04) !important;
  filter: saturate(1.32) brightness(1.18);
  mix-blend-mode: screen;
}

html[data-ag-theme="dark"] body.ag-site::after {
  opacity: calc(.30 + var(--ag-playing) * .05 + var(--ag-speech) * .04) !important;
  filter: blur(18px) saturate(1.34) brightness(1.10);
  mix-blend-mode: screen;
}

html[data-ag-theme="dark"] .ag-site__stage::before,
html[data-ag-theme="dark"] .ag-site__stage::after {
  opacity: calc(.22 + var(--ag-playing) * .04 + var(--ag-speech) * .04) !important;
  mix-blend-mode: screen;
}

@keyframes agGlassFracturesDrift {
  0%, 100% { transform: translate3d(-.8%, .4%, 0) rotate(-.18deg) scale(1); }
  50% { transform: translate3d(.9%, -.7%, 0) rotate(.22deg) scale(1.015); }
}

@keyframes agPrismSpotsBreathe {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: calc(.46 + var(--ag-playing) * .05); }
  46% { transform: translate3d(1.2%, -.8%, 0) scale(1.045); opacity: calc(.72 + var(--ag-playing) * .08 + var(--ag-speech) * .04); }
  72% { transform: translate3d(-.6%, .7%, 0) scale(1.02); }
}

@keyframes agRareGlints {
  0%, 36%, 100% { transform: translate3d(0, 0, 0); opacity: calc(.18 + var(--ag-playing) * .03); }
  43% { transform: translate3d(.3%, -.2%, 0); opacity: calc(.46 + var(--ag-playing) * .04 + var(--ag-attack) * .08); }
  56% { opacity: calc(.22 + var(--ag-playing) * .03); }
}

@keyframes agGlassFracturesSlow {
  0%, 100% { transform: translate3d(.7%, -.4%, 0) rotate(.12deg); }
  50% { transform: translate3d(-.6%, .6%, 0) rotate(-.15deg); }
}

@media (max-width: 760px), (pointer: coarse) {
  body.ag-site::before { opacity: calc(.34 + var(--ag-playing) * .04) !important; }
  body.ag-site::after { opacity: calc(.42 + var(--ag-playing) * .05) !important; filter: blur(15px) saturate(1.16); }
  .ag-site__stage::before { opacity: calc(.22 + var(--ag-playing) * .035) !important; }
  .ag-site__stage::after { opacity: calc(.18 + var(--ag-playing) * .03) !important; }
}

@media (prefers-reduced-motion: reduce) {
  body.ag-site::before,
  body.ag-site::after,
  .ag-site__stage::before,
  .ag-site__stage::after {
    animation: none !important;
  }
}
/* /ag-light-fractures-bg */

