/* Live status liquid glass (Ian #18 step 16, approved Nov 12). The live colors glow through
   frosted glass; the card, rows and the avatar word become tinted glass. Colors cut instantly
   on each beat by default; Home Customization > "Smooth live color glide" turns on the
   gradual glide (html[data-live-fade="on"]). */
@property --stage-color { syntax: "<color>"; inherits: true; initial-value: #8acd00; }
@property --live-bg-color { syntax: "<color>"; inherits: true; initial-value: #8acd00; }
html[data-live-fade="on"] { transition: --live-bg-color .9s ease; }
body:has(.card.live-mode) .stage,
html[data-home-bg="admin"] body:has(.card.live-mode) .stage {
  background:
    radial-gradient(60vmax 60vmax at 18% 22%, color-mix(in srgb, var(--stage-color) 90%, transparent), transparent 62%),
    radial-gradient(55vmax 55vmax at 85% 78%, color-mix(in srgb, var(--stage-color) 75%, #ffffff 10%), transparent 60%),
    radial-gradient(40vmax 40vmax at 60% 10%, color-mix(in srgb, var(--stage-color) 55%, transparent), transparent 65%),
    color-mix(in srgb, var(--stage-color) 30%, #07070a);
  animation: live-glass-drift 18s ease-in-out infinite alternate;
  background-size: 140% 140%;
}
html[data-live-fade="on"] body:has(.card.live-mode) .stage { transition: --stage-color .9s ease; }
@keyframes live-glass-drift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
body:has(.card.live-mode) .glass-blobs { opacity: 0.55; mix-blend-mode: screen; }

/* The card: tinted liquid glass with a specular edge. */
.card.live-mode::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04) 45%, rgba(255, 255, 255, 0.10)),
    color-mix(in srgb, var(--live-bg-color) 22%, rgba(255, 255, 255, 0.06));
  -webkit-backdrop-filter: blur(34px) saturate(185%); backdrop-filter: blur(34px) saturate(185%);
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(255, 255, 255, 0.12), inset 0 0 40px rgba(255, 255, 255, 0.06);
}
.card.live-mode { box-shadow: 0 30px 80px color-mix(in srgb, var(--live-bg-color) 35%, rgba(0, 0, 0, 0.35)); }

/* Rows and round buttons: clear glass with the live color as a soft tint. */
.card.live-mode .link,
.card.live-mode .waitlist-button, .card.live-mode .business-btn, .card.live-mode .share-button, .card.live-mode .map-button {
  background: color-mix(in srgb, var(--live-bg-color) 28%, rgba(255, 255, 255, 0.12));
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 6px 18px rgba(0, 0, 0, 0.18);
  color: #fff;
}
html[data-live-fade="on"] .card.live-mode .link,
html[data-live-fade="on"] .card.live-mode .avatar-word { transition: background-color .9s ease; }
.card.live-mode .donations-sublist { background: rgba(255, 255, 255, 0.08); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }

/* The flashing word in the avatar: a glass disc instead of a flat color fill. */
.card.live-mode .avatar-word {
  background: color-mix(in srgb, var(--live-bg-color) 55%, rgba(255, 255, 255, 0.18)) !important;
  color: #fff !important;
  border-radius: 50%;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), inset 0 -10px 24px rgba(0, 0, 0, 0.12);
}
/* All live text is white (Ian, step 16 note). */
.card.live-mode, .card.live-mode .link .label, .card.live-mode .link .dots, .card.live-mode .handle,
.card.live-mode .location-item, .card.live-mode .location-sep, .card.live-mode .dots { color: #fff; }
/* Social badges keep their own flat brand colors while live; they don't follow the live palette. */
.card.live-mode .socials .social[aria-label="TikTok"] { color: #ffffff; }
.card.live-mode .socials .social[aria-label="Twitch"] { color: #b48aff; }
.card.live-mode .socials .social[aria-label="YouTube"] { color: #ff2b2b; }
.card.live-mode .socials .social[aria-label="Discord"] { color: #8c95ff; }
.card.live-mode .avatar-ring { box-shadow: 0 0 28px color-mix(in srgb, var(--live-bg-color) 70%, transparent); }

@media (prefers-reduced-motion: reduce) {
  body:has(.card.live-mode) .stage { animation: none; transition: none; }
  html[data-live-fade="on"], html[data-live-fade="on"] body:has(.card.live-mode) .stage { transition: none; }
}
