/* Holiday themes (see holiday.js). --hol1..3 are the holiday's colours. */
html[data-holiday] body::before {
  content: ''; position: fixed; inset: 0 0 auto 0; height: 340px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 100% at 15% 0%, color-mix(in srgb, var(--hol1) 22%, transparent), transparent 70%),
              radial-gradient(50% 90% at 85% 0%, color-mix(in srgb, var(--hol2) 16%, transparent), transparent 70%);
}
html[data-holiday] body::after {
  content: ''; position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none;
  background: linear-gradient(90deg, var(--hol1), var(--hol2), var(--hol3), var(--hol1)); background-size: 200% 100%; animation: hol-slide 8s linear infinite;
}
@keyframes hol-slide { to { background-position: 200% 0; } }
.hol-fx { position: fixed; inset: 0; z-index: 55; pointer-events: none; }
.hol-ribbon {
  position: fixed; left: 50%; bottom: 18px; z-index: 70; transform: translate(-50%, 140%); opacity: 0;
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
  padding: 8px 8px 8px 14px; border-radius: 999px; font: 600 13.5px/1.3 Archivo, system-ui, sans-serif; color: #F4F4F6;
  background: color-mix(in srgb, #121214 86%, var(--hol1)); border: 1px solid color-mix(in srgb, var(--hol1) 45%, #2A2A2F);
  box-shadow: 0 12px 36px -10px color-mix(in srgb, var(--hol1) 55%, transparent); backdrop-filter: blur(10px);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s;
}
.hol-ribbon.in { transform: translate(-50%, 0); opacity: 1; }
.hol-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: conic-gradient(var(--hol1), var(--hol2), var(--hol3), var(--hol1)); box-shadow: 0 0 12px var(--hol1); }
.hol-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hol-from { color: #A6A6AE; font-weight: 500; }
.hol-btn { border: 0; background: rgb(255 255 255 / .08); color: #D9D9DE; font: 600 12px/1 Archivo, system-ui, sans-serif; padding: 7px 10px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.hol-btn:hover { background: rgb(255 255 255 / .15); color: #fff; }
.hol-x { padding: 7px 9px; }
@media (max-width: 560px) { .hol-from { display: none; } .hol-ribbon { bottom: 12px; } }
@media (prefers-reduced-motion: reduce) { html[data-holiday] body::after { animation: none; } .hol-ribbon { transition: none; } }
/* Keep clear of the dashboards' save bars. */
body:has(#savebar:not(.hidden)) .hol-ribbon, body:has(.hs-save:not(.hidden)) .hol-ribbon { bottom: 96px; }
/* Out of the way while a settings drawer is open. */
body.cc-lock .hol-ribbon { opacity: 0; pointer-events: none; }
