/*
 * SS-XMASSKIN (2026-12-01): the December look, Ruff 11/30.
 * Loaded by skin.php only while the look is on. Every selector here is an ssx- class or a theme
 * element the look holds (.nav__logo-link, .ss-hero.ssx-on, the hidden .ss-hub2banner on the holiday page).
 */

/* ---- header logo snowflakes (ruling 2) ---- */
.nav__logo-link.ssx-logo {
  position: relative;
}
.nav__logo-link.ssx-logo > .nav__logo {
  position: relative;
  z-index: 2;
}
.ssx-flake-logo {
  display: block;
  pointer-events: none;
  position: absolute;
}
.ssx-flake-logo img,
.ssx-flake-logo svg {
  display: block;
  height: 100%;
  width: 100%;
}
.ssx-flake-logo.a {
  height: 70px;
  left: -30px;
  opacity: 0.85;
  top: -24px;
  transform: rotate(-12deg);
  width: 70px;
  z-index: 1;
}
.ssx-flake-logo.b {
  bottom: -12px;
  filter: drop-shadow(0 2px 4px rgb(0 0 0 / 60%));
  height: 34px;
  right: -14px;
  transform: rotate(18deg);
  width: 34px;
  z-index: 3;
}

/* ---- homepage hero overlay (ruling 4) ---- */
.ss-hero.ssx-on {
  aspect-ratio: auto;
  height: 300px;
  margin-top: 20px;
  max-height: none;
  overflow: clip visible; /* nothing pokes out sideways (no sideways scroll), the cards still pop out above and below */
}
.ss-hero.ssx-on .ssed-editbtn {
  z-index: 7;
}
.ssx-hero {
  background: linear-gradient(100deg, #0d2b22 0%, #10203a 55%, #2a0f2e 100%);
  color: #fff;
  font-family: Nunito, Roboto, system-ui, sans-serif;
  inset: 0;
  position: absolute;
  z-index: 5;
}
.ssx-snow {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
}
.ssx-snow i {
  animation: ssx-fall 12s linear infinite;
  background: var(--ssx-snow) center / contain no-repeat;
  position: absolute;
  top: -24px;
}
.ssx-snow .far {
  filter: blur(0.6px);
}
.ssx-snow.ssx-dots i {
  background: #fff;
  border-radius: 50%;
}

@keyframes ssx-fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(calc(var(--dx, 20px) * -0.6), calc(var(--fall, 340px) * 0.5), 0) rotate(calc(var(--rot, 360deg) * 0.5));
  }
  100% {
    transform: translate3d(var(--dx, 20px), var(--fall, 340px), 0) rotate(var(--rot, 360deg));
  }
}
.ssx-stage {
  inset: 0;
  pointer-events: none;
  position: absolute;
}
.ssx-slide {
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 1.1s ease;
}
.ssx-slide.is-on {
  opacity: 1;
}
.ssx-card {
  border-radius: 14px;
  display: block;
  position: absolute;
  width: auto;
}
.ssx-front {
  filter: drop-shadow(0 14px 26px rgb(0 0 0 / 55%));
  height: 328px;
  right: 150px;
  top: -14px;
  z-index: 3;
}
.ssx-l {
  height: 240px;
  mask-image: linear-gradient(to right, #000 62%, transparent 100%);
  opacity: 0.6;
  right: 430px;
  top: 32px;
  transform: rotate(-6deg);
  z-index: 1;
}
.ssx-r {
  height: 230px;
  mask-image: linear-gradient(to left, #000 62%, transparent 100%);
  opacity: 0.6;
  right: 10px;
  top: 36px;
  transform: rotate(6deg);
  z-index: 2;
}
.ssx-copy {
  left: 44px;
  max-width: 520px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
}
.ssx-eyebrow {
  color: #f2c14e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin: 0 0 8px;
}
.ssx-headline {
  color: #fff;
  font-family: var(--font-secondary, "ObelixPro"), Roboto, system-ui, sans-serif;
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
  text-shadow: 0 3px 12px rgb(0 0 0 / 45%);
}
.ssx-body {
  color: #d9e3ea;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  margin: 10px 0 0;
}
.ssx-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.ssx-btn {
  background: #c8102e;
  border: 2px solid #c8102e;
  border-radius: 999px;
  color: #fff;
  font-family: Nunito, Roboto, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  padding: 9px 18px;
  text-decoration: none;
}
.ssx-btn:hover {
  color: #fff;
  filter: brightness(1.1);
}
.ssx-btn.ssx-ghost {
  background: transparent;
  border-color: rgb(255 255 255 / 55%);
}
.ssx-preview {
  background: #ffb000;
  border-radius: 999px;
  color: #2a1206;
  font-size: 9px;
  font-weight: 700;
  left: 44px;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  position: absolute;
  text-transform: uppercase;
  top: 12px;
  z-index: 4;
}

/* ---- holiday page: its own band (skin.js), the engine banner hidden ---- */
.ssx-holiday .ss-hub2banner {
  display: none;
}
.ssx-pagehero {
  height: 300px;
  margin: 20px auto 24px;
  max-width: 1388px;
  position: relative;
  width: calc(100% - 40px);
}
.ssx-pagehero .ssx-hero {
  border-radius: 14px;
}

/* ---- banner background picture (Studio > December look > Banner background) ---- */
.ssx-bgwrap {
  border-radius: inherit;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
}
.ssx-bg {
  background: center / cover no-repeat;
  filter: blur(2px); /* Ruff 12/1: was 4 px, too much */
  inset: -6px;
  position: absolute;
}
.ssx-bgwrap::after {
  background:
    linear-gradient(to top, rgb(6 18 14 / 75%) 0%, rgb(6 18 14 / 0%) 45%),
    linear-gradient(90deg, rgb(6 18 14 / 86%) 0%, rgb(6 18 14 / 60%) 38%, rgb(6 18 14 / 22%) 70%, rgb(6 18 14 / 30%) 100%);
  content: "";
  inset: 0;
  position: absolute;
}

/* ---- homepage: today's present with Badge Pulls, in place of the strip (Ruff 12/1) ---- */
.ssx-pulls {
  align-items: center;
  background: #8a3cff;
  border-color: #8a3cff;
  display: inline-flex;
  gap: 8px;
  padding-left: 10px;
  position: relative;
}
.ssx-present {
  background: center / contain no-repeat;
  display: block;
  height: 28px;
  margin: -6px 0;
  width: 28px;
}
.ssx-chip {
  background: #e53935;
  border-radius: 10px;
  box-shadow: 0 0 0 2px #10203a;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  height: 19px;
  line-height: 19px;
  min-width: 19px;
  padding: 0 5px;
  position: absolute;
  right: -8px;
  text-align: center;
  top: -8px;
}

/* ---- holiday page: one banner, the day strip is its bottom row (Ruff 12/1) ---- */
.ss-hero.ssx-on.ssx-merged {
  height: auto;
}
.ssx-hero.ssx-withstrip {
  inset: auto;
  padding-top: 300px;
  position: relative;
}
.ssx-withstrip .ssx-stage {
  bottom: auto;
  height: 300px;
}
.ssx-withstrip .ssx-copy {
  top: 150px;
}
.ssx-withstrip .ss-season-strip {
  font-family: Nunito, Roboto, system-ui, sans-serif;
  margin: 16px 44px 0;
  padding: 0 0 16px;
  position: relative;
  z-index: 4;
}
.ssx-pagehero.ssx-merged {
  height: auto;
}
.ssx-pagehero .ssx-withstrip .ss-season-strip {
  margin: 8px 24px 0;
}

/* ---- narrow desktops: the front card only ---- */

@media (width <= 1240px) {
  .ssx-l,
  .ssx-r {
    display: none;
  }
  .ssx-front {
    right: 30px;
  }
  .ssx-copy {
    max-width: calc(100% - 340px);
  }
}

/* ---- phones (ruling 4): copy first, then the front card full width, 300 px tall ---- */

@media (width <= 782px) {
  .ss-hero.ssx-on {
    height: auto;
  }
  .ssx-hero {
    display: flex;
    flex-direction: column;
    position: relative;
  }
  .ssx-copy {
    left: auto;
    max-width: none;
    order: 1;
    padding: 34px 16px 16px;
    position: relative;
    top: auto;
    transform: none;
  }
  .ssx-stage {
    height: 300px;
    inset: auto;
    order: 2;
    position: relative;
  }
  .ssx-front {
    height: 300px;
    left: 16px;
    object-fit: contain;
    right: 16px;
    top: 0;
    width: calc(100% - 32px);
  }
  .ssx-btn.ssx-ghost {
    display: none;
  }
  .ssx-hero.ssx-withstrip {
    padding-top: 0;
  }
  .ssx-withstrip .ssx-copy {
    top: auto;
  }
  .ssx-withstrip .ss-season-strip {
    margin: 12px 16px 0;
    order: 3;
  }
  .ssx-preview {
    left: 16px;
  }
  .ssx-pagehero {
    height: auto;
    width: calc(100% - 32px);
  }
  .ssx-pagehero .ssx-stage {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ssx-snow {
    display: none;
  }
  .ssx-slide {
    transition: none;
  }
}
@media (width <= 782px) {
  .ssx-nocards .ssx-stage {
    display: none;
  }
}
