/* The live download badge (cf-live.js): a liquid glass card over the Discord button, bottom left. */
.cfl {
  --l-pane: rgba(30, 30, 34, .62); --l-text: #f5f5f7; --l-dim: #a1a1a6; --l-btn: rgba(255, 255, 255, .1);
  --l-rim: inset 0 1px 0 rgba(255, 255, 255, .24), inset 0 -1px 0 rgba(255, 255, 255, .05), inset 0 0 0 1px rgba(255, 255, 255, .08);
  --l-sheen: linear-gradient(180deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, .02) 45%, rgba(255, 255, 255, 0) 70%);
  --l-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 4px 14px rgba(0, 0, 0, .25);
  position: fixed; left: 20px; bottom: 86px; z-index: 1999; width: max-content; max-width: min(390px, calc(100vw - 40px));
  display: flex; align-items: center; border-radius: 22px;
  background: var(--l-sheen), var(--l-pane);
  -webkit-backdrop-filter: saturate(190%) blur(28px) brightness(1.05); backdrop-filter: saturate(190%) blur(28px) brightness(1.05);
  box-shadow: var(--l-rim), var(--l-shadow);
  font: 400 14px/1.35 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--l-text); letter-spacing: normal; text-align: left;
  opacity: 0; transform: translateX(-16px) scale(.97); transform-origin: left bottom;
  transition: opacity .3s ease, transform .45s cubic-bezier(.2, .9, .25, 1);
}
@media (prefers-color-scheme: light) {
  .cfl {
    --l-pane: rgba(255, 255, 255, .66); --l-text: #1d1d1f; --l-dim: #6e6e73; --l-btn: rgba(0, 0, 0, .06);
    --l-rim: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0, 0, 0, .04), inset 0 0 0 1px rgba(255, 255, 255, .6);
    --l-sheen: linear-gradient(180deg, rgba(255, 255, 255, .6) 0%, rgba(255, 255, 255, .12) 45%, rgba(255, 255, 255, 0) 70%);
    --l-shadow: 0 18px 50px rgba(30, 40, 90, .2), 0 4px 14px rgba(30, 40, 90, .08);
  }
}
/* over the home page's black stage (html.bar-on-dark), the dark glass in either scheme: white glass went grey there */
html.bar-on-dark .cfl {
  --l-pane: rgba(30, 30, 34, .62); --l-text: #f5f5f7; --l-dim: #a1a1a6; --l-btn: rgba(255, 255, 255, .1);
  --l-rim: inset 0 1px 0 rgba(255, 255, 255, .24), inset 0 -1px 0 rgba(255, 255, 255, .05), inset 0 0 0 1px rgba(255, 255, 255, .08);
  --l-sheen: linear-gradient(180deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, .02) 45%, rgba(255, 255, 255, 0) 70%);
  --l-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 4px 14px rgba(0, 0, 0, .25);
}
html.bar-on-dark .cfl-dot { box-shadow: 0 0 0 2.5px rgba(30, 30, 34, .9); }
html.bar-on-dark .cfl.is-fresh .cfl-sub { color: #30d158; }
.cfl[hidden] { display: none; }
.cfl.is-in { opacity: 1; transform: none; }
/* the lit edge, as on the site's other glass */
.cfl::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, .08) 40%, rgba(255, 255, 255, .03) 60%, rgba(255, 255, 255, .4));
  -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);
}
.cfl *, .cfl *::before, .cfl *::after { box-sizing: border-box; }

.cfl-card { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 6px 10px 10px; color: inherit !important; text-decoration: none !important; border-radius: 22px 0 0 22px; }
.cfl-card:focus-visible { outline: 2px solid #0a84ff; outline-offset: 2px; }
.cfl-icon { position: relative; flex: none; width: 40px; height: 40px; }
.cfl-icon img { display: block; width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 4px 12px rgba(0, 0, 0, .3); }
.cfl-dot {
  position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border-radius: 50%;
  background: #30d158; box-shadow: 0 0 0 2.5px rgba(30, 30, 34, .9);
}
@media (prefers-color-scheme: light) { .cfl-dot { box-shadow: 0 0 0 2.5px #fff; } }
.cfl-text { display: flex; flex-direction: column; min-width: 0; }
.cfl-title { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--l-text); }
.cfl-sub { margin-top: 1px; font-size: 12.5px; color: var(--l-dim); }
.cfl.is-fresh .cfl-sub { color: #30d158; font-weight: 500; }
@media (prefers-color-scheme: light) { .cfl.is-fresh .cfl-sub { color: #248a3d; } }
.cfl-card:hover .cfl-title { text-decoration: underline; text-underline-offset: 2px; }

.cfl-x {
  flex: none; align-self: flex-start; width: 24px; height: 24px; margin: 8px 8px 0 2px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: var(--l-dim); background: var(--l-btn);
}
.cfl-x:hover { color: var(--l-text); }
.cfl-x:focus-visible { outline: 2px solid #0a84ff; outline-offset: 2px; }
.cfl-x svg { width: 9px; height: 9px; }

/* the live dot rings once as a new download arrives (once, not on a loop) */
@media (prefers-reduced-motion: no-preference) {
  .cfl.is-in.is-fresh .cfl-dot::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%; background: #30d158;
    animation: cfl-ping 1.1s cubic-bezier(.2, .8, .2, 1) .35s 2 both !important;
  }
  @keyframes cfl-ping { from { transform: scale(1); opacity: .7; } to { transform: scale(2.8); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { .cfl { transition: opacity .2s ease; transform: none; } }
@media (prefers-reduced-transparency: reduce) {
  .cfl { -webkit-backdrop-filter: none; backdrop-filter: none; background: #1c1c1e; }
  @media (prefers-color-scheme: light) { .cfl { background: #fff; } }
}

/* phones: across the bottom, above the round buttons */
@media (max-width: 600px) {
  .cfl { left: 12px; right: 12px; bottom: 74px; width: auto; max-width: none; }
}
@media print { .cfl { display: none !important; } }
