/* Keep seasonal details attached to the existing brand mark, never the whole page. */
.seasonal-logo-anchor {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  line-height: 0;
}

/* Horizontal wordmarks keep their original silhouette; shaped frames belong to square marks. */
.seasonal-logo-anchor--wordmark .seasonal-logo-frame {
  display: none;
}

.seasonal-logo-host {
  position: relative;
}

.seasonal-logo-frame--overlay {
  inset: auto !important;
  transform: scale(1.28);
  transform-origin: center;
}

html[data-season="winter"] .seasonal-logo-frame--overlay {
  transform: scale(1.16);
}

.seasonal-ground,
.seasonal-orb,
.seasonal-ribbon {
  display: none !important;
}

.seasonal-atmosphere {
  z-index: 2147482000;
}

html[data-season] :is(header, nav, .card, .panel, .feature-card, .stat-card) {
  border-color: var(--seasonal-original-border);
}

.seasonal-atmosphere::before {
  display: block;
  opacity: .28;
}

.seasonal-scene::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  display: block !important;
  height: 2px !important;
  background: linear-gradient(90deg, transparent 2%, var(--season-accent) 26%, transparent 52%, var(--season-accent) 78%, transparent 98%) !important;
  opacity: .52;
}

.seasonal-corner-art {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(132px, 13vw, 198px);
  height: auto;
  overflow: visible;
  fill: none;
  stroke: color-mix(in srgb, var(--season-accent) 64%, #39424d);
  stroke-width: 1.05;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .3;
}

.seasonal-corner-art .seasonal-detail {
  stroke: color-mix(in srgb, var(--season-accent) 82%, #7f5433);
  stroke-width: 1.65;
}

html[data-season-mode="accent"] .seasonal-corner-art {
  width: clamp(122px, 12vw, 184px);
  opacity: .18;
}

html[data-season-mode="accent"] .seasonal-atmosphere::before {
  opacity: .08;
}

html[data-season-mode="accent"] .seasonal-scene::after {
  opacity: .3;
}

/* Motion stays lightweight and tied to the holiday rather than the site chrome. */
html[data-season="winter"] .seasonal-scene::after {
  height: 9px !important;
  background:
    radial-gradient(circle at 10px 2px, #f2d26d 0 2px, transparent 3px) 0 0 / 48px 9px,
    radial-gradient(circle at 34px 2px, #bf3b48 0 2px, transparent 3px) 0 0 / 48px 9px !important;
  filter: drop-shadow(0 1px 3px rgba(224, 190, 86, .45));
  animation: seasonal-light-twinkle 4.8s ease-in-out infinite alternate;
}

html[data-season="halloween"] .seasonal-corner-art .seasonal-detail,
html[data-season="newyear"] .seasonal-corner-art .seasonal-detail,
html[data-season="independence"] .seasonal-corner-art .seasonal-detail {
  animation: seasonal-detail-glow 4.6s ease-in-out infinite alternate;
}

html[data-season="spring"] .seasonal-corner-art {
  transform-origin: 100% 0;
  animation: seasonal-branch-sway 8s ease-in-out infinite alternate;
}

@keyframes seasonal-light-twinkle {
  0%, 30% { opacity: .38; filter: drop-shadow(0 1px 2px rgba(224, 190, 86, .28)); }
  70%, 100% { opacity: .72; filter: drop-shadow(0 1px 5px rgba(224, 190, 86, .62)); }
}

@keyframes seasonal-detail-glow {
  from { opacity: .56; }
  to { opacity: 1; }
}

@keyframes seasonal-branch-sway {
  from { transform: rotate(-.35deg); }
  to { transform: rotate(.55deg); }
}

.seasonal-snow {
  position: absolute;
  inset: 0;
  color: color-mix(in srgb, var(--season-accent) 72%, #718b95);
}

.seasonal-snow i {
  position: absolute;
  top: -12px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 5px currentColor;
  animation: seasonal-snowfall 9s linear infinite;
}

.seasonal-snow i:nth-child(1) { left: 8%; animation-delay: -2s; }
.seasonal-snow i:nth-child(2) { left: 21%; width: 3px; height: 3px; animation-delay: -7s; }
.seasonal-snow i:nth-child(3) { left: 35%; animation-delay: -4s; }
.seasonal-snow i:nth-child(4) { left: 49%; width: 2px; height: 2px; animation-delay: -8s; }
.seasonal-snow i:nth-child(5) { left: 63%; animation-delay: -1s; }
.seasonal-snow i:nth-child(6) { left: 76%; width: 3px; height: 3px; animation-delay: -6s; }
.seasonal-snow i:nth-child(7) { left: 88%; animation-delay: -3s; }
.seasonal-snow i:nth-child(8) { left: 96%; width: 2px; height: 2px; animation-delay: -5s; }

@keyframes seasonal-snowfall {
  to { transform: translate3d(-14px, 105vh, 0); opacity: .12; }
}

/* The frame follows the small square nav icon without recoloring the navbar. */
.seasonal-logo-frame {
  inset: -4px;
  border: 1.5px solid color-mix(in srgb, var(--season-accent) 70%, transparent);
  border-radius: 8px;
  filter: none;
  opacity: .92;
}

.seasonal-logo-frame::before,
.seasonal-logo-frame::after {
  box-sizing: border-box;
  background: none;
  box-shadow: none;
}

/* A lightly irregular pumpkin contour and stem, sized to the existing icon. */
html[data-season="halloween"] .seasonal-logo-frame {
  inset: -8px;
  border: 0;
  border-radius: 0;
}

html[data-season="halloween"] .seasonal-logo-frame::before,
html[data-season="halloween"] .seasonal-logo-frame::after {
  display: none;
}

.seasonal-logo-art {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.seasonal-pumpkin-outline {
  stroke: rgba(231, 125, 39, .92);
  stroke-width: 2.2;
}

.seasonal-pumpkin-rib {
  stroke: rgba(231, 125, 39, .5);
  stroke-width: 1.2;
}

.seasonal-pumpkin-stem {
  stroke: rgba(105, 132, 70, .95);
  stroke-width: 3;
}

html[data-season="winter"] .seasonal-logo-frame {
  border-color: rgba(197, 232, 235, .72);
  border-radius: 50%;
}

html[data-season="winter"] .seasonal-logo-frame::before {
  left: 50%;
  right: auto;
  top: -6px;
  width: 8px;
  height: 5px;
  border: 1px solid rgba(218, 192, 104, .75);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  transform: translateX(-50%);
}

html[data-season="valentines"] .seasonal-logo-frame {
  inset: -8px;
  border: 0;
  border-radius: 0;
}

html[data-season="valentines"] .seasonal-logo-frame::before,
html[data-season="valentines"] .seasonal-logo-frame::after {
  display: none;
}

.seasonal-heart-outline {
  stroke: rgba(207, 89, 124, .86);
  stroke-width: 2;
}

html[data-season]:is([data-season="spring"],[data-season="lunar"],[data-season="stpatrick"],[data-season="harvest"],[data-season="newyear"],[data-season="independence"]) .seasonal-logo-frame {
  inset: -8px;
  border: 0;
  border-radius: 0;
}

html[data-season]:is([data-season="spring"],[data-season="lunar"],[data-season="stpatrick"],[data-season="harvest"],[data-season="newyear"],[data-season="independence"]) .seasonal-logo-frame::before,
html[data-season]:is([data-season="spring"],[data-season="lunar"],[data-season="stpatrick"],[data-season="harvest"],[data-season="newyear"],[data-season="independence"]) .seasonal-logo-frame::after {
  display: none;
}

.seasonal-egg-outline,
.seasonal-egg-band {
  stroke: rgba(122, 169, 103, .84);
}

.seasonal-egg-outline { stroke-width: 1.9; }
.seasonal-egg-band { stroke: rgba(215, 143, 169, .76); stroke-width: 1.25; }

.seasonal-lantern-outline {
  stroke: rgba(198, 50, 48, .88);
  stroke-width: 1.9;
}

.seasonal-lantern-rib {
  stroke: rgba(223, 176, 60, .72);
  stroke-width: 1.15;
}

.seasonal-clover-outline {
  stroke: rgba(69, 144, 75, .88);
  stroke-width: 1.9;
}

.seasonal-leaf-outline {
  stroke: rgba(188, 103, 46, .88);
  stroke-width: 1.9;
}

.seasonal-leaf-vein {
  stroke: rgba(132, 81, 42, .68);
  stroke-width: 1.1;
}

.seasonal-burst-outline {
  stroke: color-mix(in srgb, var(--season-accent) 88%, #c89639);
  stroke-width: 1.8;
}

.seasonal-burst-detail {
  stroke: color-mix(in srgb, var(--season-accent) 66%, #7c6fb1);
  stroke-width: 1.15;
}

@media (max-width: 620px) {
  .seasonal-logo-frame { inset: -3px; }
  html[data-season="halloween"] .seasonal-logo-frame { inset: -6px; }
  html[data-season="valentines"] .seasonal-logo-frame { inset: -6px; }
  html[data-season]:is([data-season="spring"],[data-season="lunar"],[data-season="stpatrick"],[data-season="harvest"],[data-season="newyear"],[data-season="independence"]) .seasonal-logo-frame { inset: -6px; }
}

@media (prefers-reduced-motion: reduce) {
  .seasonal-scene::after,
  .seasonal-corner-art,
  .seasonal-corner-art .seasonal-detail,
  .seasonal-snow i {
    animation: none !important;
  }
}
