/* MinerCore — Holiday theme overlays (lightweight, pointer-events: none)
   Sits above sticky nav (z-index 600) so ribbons are visible, below modals/FAB. */
.mc-holiday{
  position:fixed;
  inset:0;
  z-index:620;
  pointer-events:none;
  overflow:hidden;
  contain:layout style;
}
.mc-holiday-snow{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  opacity:.92;
}
.mc-holiday-aurora,
.mc-holiday-ribbon,
.mc-holiday-ribbon-l,
.mc-holiday-ribbon-r,
.mc-holiday-lights,
.mc-holiday-vignette{
  position:absolute;
  pointer-events:none;
}

/* Soft: only snow */
.mc-holiday--soft .mc-holiday-aurora,
.mc-holiday--soft .mc-holiday-ribbon,
.mc-holiday--soft .mc-holiday-ribbon-l,
.mc-holiday--soft .mc-holiday-ribbon-r,
.mc-holiday--soft .mc-holiday-lights,
.mc-holiday--soft .mc-holiday-vignette{display:none}
.mc-holiday--soft .mc-holiday-snow{opacity:.7}

/* Classic: thin icy top line + light snow */
.mc-holiday--classic .mc-holiday-ribbon{
  left:0; right:0; top:0; height:4px;
  background:linear-gradient(90deg,
    transparent 0%,
    rgba(186,230,253,.55) 18%,
    rgba(255,255,255,.85) 50%,
    rgba(186,230,253,.55) 82%,
    transparent 100%);
  box-shadow:0 0 14px rgba(186,230,253,.35);
}
.mc-holiday--classic .mc-holiday-aurora,
.mc-holiday--classic .mc-holiday-ribbon-l,
.mc-holiday--classic .mc-holiday-ribbon-r,
.mc-holiday--classic .mc-holiday-lights,
.mc-holiday--classic .mc-holiday-vignette{display:none}

/* Aurora */
.mc-holiday--aurora .mc-holiday-aurora{
  left:0; right:0; top:0;
  height:min(180px,28vh);
  background:
    radial-gradient(ellipse 70% 90% at 18% 0%, rgba(34,197,94,.20), transparent 62%),
    radial-gradient(ellipse 60% 80% at 52% 0%, rgba(56,189,248,.18), transparent 58%),
    radial-gradient(ellipse 50% 70% at 86% 0%, rgba(168,85,247,.14), transparent 58%);
  animation:mcHolidayAurora 10s ease-in-out infinite alternate;
  will-change:opacity,transform;
}
.mc-holiday--aurora .mc-holiday-ribbon{
  left:0; right:0; top:0; height:3px;
  background:linear-gradient(90deg,transparent,#67e8f9 35%,#a78bfa 65%,transparent);
  opacity:.85;
}
.mc-holiday--aurora .mc-holiday-ribbon-l,
.mc-holiday--aurora .mc-holiday-ribbon-r,
.mc-holiday--aurora .mc-holiday-lights{display:none}
.mc-holiday--aurora .mc-holiday-vignette{
  inset:0;
  background:radial-gradient(ellipse at center, transparent 60%, rgba(0,20,40,.14) 100%);
}

/* Festive: candy-cane top bar + hanging side ribbons */
.mc-holiday--festive .mc-holiday-ribbon{
  left:0; right:0; top:0; height:10px;
  background:repeating-linear-gradient(
    110deg,
    #b91c1c 0 14px,
    #f8fafc 14px 28px,
    #166534 28px 42px,
    #f8fafc 42px 56px
  );
  background-size:112px 100%;
  box-shadow:
    0 2px 0 rgba(251,191,36,.55),
    0 6px 18px rgba(185,28,28,.28),
    0 0 22px rgba(251,191,36,.22);
  animation:mcHolidayRibbon 14s linear infinite;
  will-change:background-position;
}
.mc-holiday--festive .mc-holiday-ribbon::after{
  content:"";
  position:absolute;
  left:0; right:0; top:100%;
  height:6px;
  background:linear-gradient(180deg, rgba(251,191,36,.35), transparent);
}

.mc-holiday--festive .mc-holiday-ribbon-l,
.mc-holiday--festive .mc-holiday-ribbon-r{
  display:none !important;
}

/* Twinkling Christmas lights (pisca-pisca) under the top candy bar */
.mc-holiday--festive .mc-holiday-lights{
  top: 10px;
  left: calc(var(--mc-dashboard-sidebar-width, 76px) + 8px);
  right: 12px;
  height: 28px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 0;
  padding: 0 6px;
  z-index: 2;
}
.mc-holiday--festive .mc-holiday-lights::before{
  content:"";
  position:absolute;
  left:4px;
  right:4px;
  top:7px;
  height:2px;
  background:linear-gradient(90deg,
    transparent 0%,
    rgba(148,163,184,.55) 8%,
    rgba(226,232,240,.75) 50%,
    rgba(148,163,184,.55) 92%,
    transparent 100%);
  box-shadow:0 1px 0 rgba(0,0,0,.25);
}
.mc-holiday--festive .mc-holiday-lights span{
  position:relative;
  flex:0 0 auto;
  width:9px;
  height:13px;
  margin-top:2px;
  border-radius:40% 40% 55% 55%;
  background:var(--bulb, #ef4444);
  box-shadow:
    0 0 6px color-mix(in srgb, var(--bulb, #ef4444) 70%, transparent),
    0 0 14px color-mix(in srgb, var(--bulb, #ef4444) 45%, transparent),
    inset 0 -2px 3px rgba(0,0,0,.25);
  animation:mcHolidayBlink 1.6s ease-in-out infinite;
  opacity:.95;
}
.mc-holiday--festive .mc-holiday-lights span::before{
  content:"";
  position:absolute;
  left:50%;
  top:-4px;
  width:5px;
  height:5px;
  transform:translateX(-50%);
  border-radius:1px;
  background:#94a3b8;
  box-shadow:0 0 0 1px rgba(15,23,42,.35);
}
.mc-holiday--festive .mc-holiday-lights span:nth-child(5n+1){ --bulb:#ef4444; animation-delay:0s; }
.mc-holiday--festive .mc-holiday-lights span:nth-child(5n+2){ --bulb:#22c55e; animation-delay:.22s; }
.mc-holiday--festive .mc-holiday-lights span:nth-child(5n+3){ --bulb:#fbbf24; animation-delay:.44s; }
.mc-holiday--festive .mc-holiday-lights span:nth-child(5n+4){ --bulb:#38bdf8; animation-delay:.66s; }
.mc-holiday--festive .mc-holiday-lights span:nth-child(5n+5){ --bulb:#e879f9; animation-delay:.88s; }
.mc-holiday--festive .mc-holiday-lights span:nth-child(odd){ animation-duration:1.35s; }
.mc-holiday--festive .mc-holiday-lights span:nth-child(3n){ animation-duration:2.05s; }

.mc-holiday--festive .mc-holiday-vignette{
  inset:0;
  background:
    radial-gradient(ellipse 42% 32% at 0% 0%, rgba(185,28,28,.14), transparent 70%),
    radial-gradient(ellipse 42% 32% at 100% 0%, rgba(22,101,52,.12), transparent 70%);
}
.mc-holiday--festive .mc-holiday-aurora{display:none}
.mc-holiday--festive .mc-holiday-snow{opacity:.95}

@keyframes mcHolidayAurora{
  from{opacity:.7; transform:translate3d(-1.5%,0,0)}
  to{opacity:1; transform:translate3d(1.5%,0,0)}
}
@keyframes mcHolidayRibbon{
  from{background-position:0 0}
  to{background-position:112px 0}
}
@keyframes mcHolidayBlink{
  0%, 100%{ opacity:.35; filter:brightness(.7); transform:scale(.92); }
  40%{ opacity:1; filter:brightness(1.35); transform:scale(1.08); }
  70%{ opacity:.75; filter:brightness(1.05); transform:scale(1); }
}

@media (prefers-reduced-motion: reduce){
  .mc-holiday-aurora,
  .mc-holiday-ribbon,
  .mc-holiday--festive .mc-holiday-lights span{animation:none !important}
  .mc-holiday-snow{display:none !important}
  .mc-holiday--festive .mc-holiday-lights span{opacity:.9; filter:none; transform:none}
}

@media (max-width:900px){
  .mc-holiday--festive .mc-holiday-ribbon{height:8px}
  .mc-holiday--festive .mc-holiday-lights{
    top:8px;
    height:24px;
  }
  .mc-holiday--festive .mc-holiday-lights span{
    width:8px;
    height:11px;
  }
}

@media (max-width:640px){
  .mc-holiday--aurora .mc-holiday-aurora{height:min(120px,20vh)}
  .mc-holiday--festive .mc-holiday-lights{
    left:8px;
    right:8px;
  }
  /* Keep a shorter string of lights on mobile */
  .mc-holiday--festive .mc-holiday-lights span:nth-child(n+13){display:none}
}
