.hero { position: relative; }

.bauble {
  --ball: clamp(112px, 10vw, 132px); --string: clamp(26px, 4vw, 54px);
  position: absolute; top: 0; left: calc((100% - clamp(16px, 3vw, 48px)) * 5 / 12 + 4px); z-index: 5;
  display: flex; flex-direction: column; align-items: center; width: var(--ball);
  text-decoration: none; color: #fff; transform-origin: 50% 0; animation: bauble-swing 6s ease-in-out infinite;
}
.bauble[hidden] { display: none; }
.bauble:hover, .bauble:focus-visible { animation-play-state: paused; }
.bauble:focus-visible { outline: none; }
.bauble:focus-visible .bauble-ball { outline: 3px solid var(--focus); outline-offset: 5px; }
.bauble-string { width: 2px; height: var(--string); background: linear-gradient(#c9a24a, #f1d58b); }
.bauble-cap {
  position: relative; width: 30px; height: 15px; margin-bottom: -4px; z-index: 1; border-radius: 4px 4px 2px 2px;
  background: repeating-linear-gradient(90deg, #f6dd93 0 3px, #b98b2c 3px 6px);
}
.bauble-cap::before {
  content: ""; position: absolute; left: 50%; bottom: 100%; width: 10px; height: 9px; margin-left: -7px;
  border: 2px solid #d7b260; border-bottom: 0; border-radius: 8px 8px 0 0;
}
.bauble-ball {
  position: relative; display: block; width: var(--ball); height: var(--ball); border-radius: 50%; overflow: hidden;
  container-type: inline-size;
  background: radial-gradient(circle at 34% 28%, #f0636d 0%, #c01f36 34%, #8c1228 68%, #560a1c 100%);
  box-shadow: 0 14px 28px rgba(40, 6, 14, 0.35);
  transition: filter 0.2s var(--ease);
}
.bauble:hover .bauble-ball { filter: brightness(1.12); }
.bauble-ball::after {
  content: ""; position: absolute; left: 17%; top: 10%; width: 26%; height: 15%; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 70%); transform: rotate(-32deg);
}
.bauble-ball svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bauble-text {
  position: absolute; inset: 17% 0 auto; display: grid; justify-items: center; text-align: center;
  font-weight: 700; font-size: 14cqw; line-height: 1.08; hyphens: manual;
}
.bauble-text small { font-size: 11cqw; font-weight: 600; line-height: 1.3; color: #ffe6a8; }

@keyframes bauble-swing { 0%, 100% { transform: rotate(2.6deg); } 50% { transform: rotate(-2.6deg); } }

.bauble.bauble--frei { animation: none; }
.bauble-motion {
  position: absolute; z-index: 6; min-height: 40px; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--hair); background: var(--surface); color: var(--ink); font: inherit; font-size: 0.85rem;
  top: calc(clamp(26px, 4vw, 54px) + clamp(112px, 10vw, 132px) + 28px);
  left: calc((100% - clamp(16px, 3vw, 48px)) * 5 / 12 + 4px);
}
.bauble-motion[hidden] { display: none; }

@media (max-width: 960px) {
  .advent-season .hero { padding-top: calc(var(--string, 26px) + 156px); }
  .bauble { --ball: 118px; --string: 18px; left: auto; right: 8px; }
  .bauble.bauble--beweglich { right: 44px; }
  .bauble-motion { top: 72px; left: auto; right: 176px; }
}

#snow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 45; pointer-events: none; }
.tools .tool.tool--snow { display: grid; }
.tool--snow[aria-pressed="true"] svg { opacity: 0.45; }

html.advent-paused .bauble { animation: none; }
html[data-motion="reduced"] .bauble { animation: none; }
@media (prefers-reduced-motion: reduce) { html:not([data-motion="normal"]) .bauble { animation: none; } }
@media print { #snow, .bauble, .bauble-motion { display: none; } }
