/* Seasonal accents for the ZABEST design. All decoration is outside the tab order. */
.zabest-vianoce .hero.wrap,
.zabest-vianoce .top .wrap,
.zabest-vianoce .footer-main {
  position: relative;
}

.zabest-vianoce .winter-trim,
.zabest-vianoce .winter-stars {
  pointer-events: none;
  user-select: none;
}

.zabest-vianoce .winter-trim {
  position: absolute;
  inset: 0 0 auto;
  height: 210px;
  z-index: 4;
}

.winter-bauble {
  --thread: 99px;
  --size: 33px;
  --glass: radial-gradient(ellipse at 28% 23%, #fff7db 0%, #d4b270 18%, #b28b4b 42%, #795b2e 78%, #d4b16c);
  position: absolute;
  top: 0;
  width: var(--size);
  height: calc(var(--thread) + var(--size) + 4px);
  background: linear-gradient(#b0996059, #a7884b) center top / 1px var(--thread) no-repeat;
  transform-origin: top center;
}

.winter-bauble::before {
  content: '';
  position: absolute;
  top: calc(var(--thread) - 1px);
  left: 36%;
  width: 28%;
  height: 6px;
  border-radius: 2px 2px 1px 1px;
  background: repeating-linear-gradient(90deg, #947849 0 1px, #d8bd7e 1px 3px);
}

.winter-bauble::after {
  content: '';
  position: absolute;
  top: calc(var(--thread) + 4px);
  left: 0;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: repeating-linear-gradient(94deg, transparent 0 4px, #fff9e61a 5px, transparent 6px), var(--glass);
  box-shadow: inset -1px -2px 4px #261b191a;
}

.winter-bauble.gold { left: 2.2%; --thread: 81px; --size: 29px; }
.winter-bauble.red {
  left: 7.4%;
  --thread: 131px;
  --size: 43px;
  --glass: radial-gradient(ellipse at 31% 23%, #f2c4ac, #ab5e55 17%, #813e39 43%, #572d2b 77%, #914e42);
}
.winter-bauble.pine {
  right: 6.7%;
  --thread: 108px;
  --size: 39px;
  --glass: radial-gradient(ellipse at 31% 23%, #cccfaa, #72836a 19%, #4b6353 45%, #2b4339 77%, #62755d);
}
.winter-bauble.small { right: 2.5%; --thread: 61px; --size: 23px; }

.winter-stars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #e6c483;
}
.winter-stars i {
  width: 5px;
  aspect-ratio: 1;
  background: currentColor;
  clip-path: polygon(50% 0, 62% 36%, 100% 50%, 62% 62%, 50% 100%, 37% 62%, 0 50%, 37% 37%);
}
.winter-stars i:nth-child(2) { width: 11px; }
.zabest-vianoce .top .winter-stars {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.zabest-vianoce .footer-main > .winter-stars {
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  background: var(--deep, #103122);
  padding-inline: 13px;
}
.zabest-vianoce .strip { border-color: #bfa37085; }
.zabest-vianoce .strip b { color: #916e37; }
.zabest-vianoce .hero-photo .hero-sun {
  background: radial-gradient(circle, #f1d9a188 10%, #f2dfb46b 46%, #f2dfb400 72%);
}
@media (prefers-reduced-motion: no-preference) {
  html[data-winter-motion="on"] .winter-bauble { animation: zb-bauble-settle 3.2s ease-out both; }
  .winter-bauble.red, .winter-bauble.small { --swing: 4deg; --return-swing: -1.8deg; --last-swing: .6deg; }
}
@keyframes zb-bauble-settle {
  0% { transform: rotate(var(--swing, -4deg)); }
  40% { transform: rotate(var(--return-swing, 1.8deg)); }
  72% { transform: rotate(var(--last-swing, -.6deg)); }
  100% { transform: rotate(0); }
}
@media (max-width: 900px) {
  .winter-bauble.gold, .winter-bauble.small { display: none; }
  .winter-bauble.red { --thread: 62px; --size: 23px; left: 1%; }
  .winter-bauble.pine { --thread: 45px; --size: 19px; right: 1.2%; }
}
@media (max-width: 600px) {
  .zabest-vianoce .top .winter-stars { inset: 50% 0 auto auto; transform: translateY(-50%); }
  .winter-bauble.red { --thread: 26px; --size: 15px; left: 0; }
  .winter-bauble.pine { --thread: 17px; --size: 12px; right: 0; }
}
@media (forced-colors: active), print {
  .winter-comet, .winter-trim, .winter-stars { display: none !important; }
}

.zabest-vianoce button.winter-bauble,
.zabest-vianoce button.winter-stars {
  appearance: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
  line-height: 1;
  opacity: 1;
}
.zabest-vianoce .top button.winter-stars { background: transparent; }
.zabest-vianoce button.winter-stars { min-width: 44px; height: 26px; }
.zabest-vianoce .footer-main > button.winter-stars { bottom: -13px; }
.zabest-vianoce button.winter-stars:enabled,
.zabest-vianoce button.winter-bauble:enabled {
  pointer-events: auto;
  cursor: pointer;
}
.zabest-vianoce button.winter-stars:disabled,
.zabest-vianoce button.winter-bauble:disabled { pointer-events: none; }
.winter-bauble-hit {
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: max(44px, var(--size));
  height: max(44px, var(--size));
  transform: translateX(-50%);
}
.zabest-vianoce .winter-bauble:focus-visible { outline: none; }
.winter-bauble:focus-visible::after, .winter-stars:focus-visible {
  outline: 2px solid #a37d3f;
  outline-offset: 3px;
}
.winter-stars:enabled:hover i { background: #ffdf9a; }
.winter-comet {
  position: fixed;
  width: 0;
  height: 0;
  z-index: 150;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 1px 3px #c28939a6);
}
.winter-comet::before {
  content: '';
  position: absolute;
  right: 0;
  top: -2px;
  width: clamp(42px, 7vw, 86px);
  height: 5px;
  background: linear-gradient(90deg, transparent, #dfb57299 55%, #ffe3a9 94%);
  clip-path: polygon(0 65%, 100% 0, 100% 86%);
}
.winter-comet::after {
  content: '';
  position: absolute;
  left: -7px;
  top: -7px;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #fffce4 12%, #f5cf7a 47%, #b58039 82%);
  clip-path: polygon(50% 0, 60% 36%, 83% 18%, 66% 41%, 100% 50%, 64% 60%, 82% 83%, 59% 66%, 50% 100%, 40% 65%, 16% 83%, 34% 59%, 0 50%, 36% 40%, 18% 17%, 41% 34%);
}
