@layer theme {
  [data-theme="dark"] :is(.catalog-card, .ai-card) .catalog-action:not(:disabled) {
    background: var(--glass-sheen), var(--glass-fill) !important;
    color: #f0f2f5 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.15), inset 0 0 0 1px rgba(220,233,255,.11), 0 3px 9px rgba(0,0,0,.14) !important;
  }
  [data-theme="dark"] :is(.catalog-card, .ai-card) .catalog-action:not(:disabled) :is(span,svg) {
    color: #f0f2f5 !important;
  }
  @media (hover:hover) {
    [data-theme="dark"] :is(.catalog-card, .ai-card) .catalog-action:not(:disabled):hover {
      background: var(--glass-sheen), rgba(51,56,65,.72) !important;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 0 0 1px rgba(220,233,255,.17), 0 4px 12px rgba(0,0,0,.18) !important;
    }
  }
}

/* One flight every 20 seconds, with a long quiet interval between flights. */
.site-comet {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  contain: strict;
}
.site-comet-flight {
  position: absolute;
  left: -210px;
  top: -12px;
  width: 210px;
  height: 24px;
  opacity: 0;
  animation: site-comet-pass 20s linear 2s infinite;
}
.site-comet-shape {
  position: absolute;
  inset: 0;
  transform: rotate(var(--comet-angle,20deg));
  transform-origin: right center;
}
.site-comet-shape::before {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 200px;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 100% 35% 35% 100%;
  background: linear-gradient(90deg, transparent, rgba(255,218,89,.10) 15%, rgba(255,217,86,.50) 55%, #ffe99e 92%, #fff6ce);
  box-shadow: 0 0 8px rgba(255,203,52,.28), 0 0 17px rgba(255,209,63,.14);
}
.site-comet-shape::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 9px;
  height: 9px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 60% 45%, #fffff2 0 22%, #fff4b0 42%, #ffce45 75%, rgba(255,198,40,.2));
  box-shadow: 0 0 6px 2px rgba(255,240,173,.88), 0 0 17px 5px rgba(255,210,56,.46), 0 0 35px 10px rgba(255,199,32,.14);
}
@keyframes site-comet-pass {
  0% { opacity: 0; transform: translate3d(var(--comet-start-x,-260px),var(--comet-start-y,12vh),0); }
  1.5% { opacity: .9; }
  12% { opacity: .9; }
  15% { opacity: 0; transform: translate3d(var(--comet-end-x,calc(100vw + 260px)),var(--comet-end-y,78vh),0); }
  100% { opacity: 0; transform: translate3d(var(--comet-end-x,calc(100vw + 260px)),var(--comet-end-y,78vh),0); }
}
@media (max-width:639px) {
  .site-comet-flight { width: 155px; left: -155px; }
  .site-comet-shape::before { width: 145px; height: 4px; }
  .site-comet-shape::after { width: 7px; height: 7px; }
}
@media (prefers-reduced-motion:reduce) {
  .site-comet { display: none; }
  .site-comet-flight { animation: none; }
}
