/* ----------------------------------------------------------------
	Black Friday 2026
	Black as an accent on the normal bright site: the ribbon, the headline
	panel and the free socks strip are black with the brand colours on
	top, like the bottom of the How Am I Weird box. The page stays light.
	Type and palette come from css/brand.css (--wg-display, --wg-ink …).
	Everything is scoped to html.bf-on, which js/blackfriday.js only adds
	while the sale is running, so this file is inert the rest of the year.
	Black is #0c0c16, a darker step of the brand ink #1a1a2e.
-----------------------------------------------------------------*/

.bf-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ---------- 1. Ribbon (top of every page) ---------- */

html.bf-on #banner {
  position: relative;
  background: #0c0c16;
  color: #fff;
}

/* Hide the year-round message until the script has swapped it */
html.bf-on #banner:not(.bf-ribbon) > * {
  visibility: hidden;
}

/* Four-colour stripe along the bottom edge */
html.bf-on #banner::after,
.bf-billboard::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  background: linear-gradient(
    90deg,
    #0b6ef8 0 25%,
    #ffbf00 0 50%,
    #ff5087 0 75%,
    #4ecdc4 0
  );
}

html.bf-on #banner::after {
  bottom: 0;
  height: 3px;
}

.bf-ribbon__link,
.bf-ribbon__link:hover,
.bf-ribbon__link:focus {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.3rem 0.9rem;
  padding-bottom: 2px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.bf-ribbon__tag {
  padding: 0.3em 0.75em;
  border-radius: 999px;
  background: #ffbf00;
  color: #0c0c16;
  font-family: var(--wg-display, inherit);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bf-ribbon__plus {
  margin: 0 0.15em;
  color: #ff5087;
  font-weight: 800;
}

/* The countdowns stay hidden until html.bf-countdown (the final two days) */
.bf-ribbon__timer,
.bf-clock {
  display: none;
}

html.bf-countdown .bf-ribbon__timer {
  display: inline;
}

html.bf-countdown .bf-clock {
  display: flex;
}

.bf-ribbon__timer {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bf-ribbon__timer b {
  color: #fff;
  font-weight: 700;
}

/* ---------- 2. Homepage games section ---------- */

html.bf-on #games {
  padding-top: 1.5rem;
}

/* Black headline panel, lined up with the card grid below it */
.bf-billboard {
  position: relative;
  overflow: hidden;
  margin: 0 1.5rem 2.5rem;
  padding: clamp(2.5rem, 5vw, 3.25rem) 1.5rem clamp(2.25rem, 4.5vw, 3rem);
  border-radius: 1.75rem;
  background: radial-gradient(
        40rem 22rem at 10% -10%,
        rgba(11, 110, 248, 0.3),
        transparent 62%
      )
      no-repeat,
    radial-gradient(
        36rem 20rem at 95% 0%,
        rgba(255, 80, 135, 0.24),
        transparent 62%
      )
      no-repeat,
    #0c0c16;
  text-align: center;
}

.bf-billboard::before {
  top: 0;
  height: 6px;
}

/* No flash of the year-round heading before the script runs */
html.bf-on #games:not(.bf-dressed) h2 {
  visibility: hidden;
}

.bf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bf-eyebrow__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #ff5087;
}

html.bf-on #games h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.4rem, 6.4vw, 4.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.bf-weird {
  display: inline-block;
  background: linear-gradient(90deg, #ff5087, #ffbf00);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: rotate(-2.5deg);
}

.bf-sub {
  max-width: 34rem;
  margin: 0.75rem auto 0;
  padding: 0 1.5rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.1rem;
  line-height: 1.5;
}

.bf-clock {
  justify-content: center;
  gap: 0.6rem;
  margin: 1.75rem 0 0;
}

.bf-clock__cell {
  min-width: 4.4rem;
  padding: 0.75rem 0.5rem 0.6rem;
  border-top: 3px solid #0b6ef8;
  border-radius: 0.9rem;
  background: #1a1a2e;
}

.bf-clock__cell:nth-child(2) {
  border-top-color: #ffbf00;
}

.bf-clock__cell:nth-child(3) {
  border-top-color: #ff5087;
}

.bf-clock__cell:nth-child(4) {
  border-top-color: #4ecdc4;
}

.bf-clock__cell span {
  display: block;
  color: #fff;
  font-family: var(--wg-display, inherit);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.bf-clock__cell small {
  display: block;
  margin-top: 0.4rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Round price sticker, stuck on the box slightly wonky. Top left, because
   the "Now in Czech!" badge lives top right. */
.bf-sticker {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: #0c0c16;
  box-shadow: inset 0 0 0 4px #0c0c16, inset 0 0 0 5.5px rgba(255, 191, 0, 0.6),
    0 0.5rem 1.25rem rgba(26, 26, 46, 0.28);
  color: #ffbf00;
  font-family: var(--wg-display, inherit);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  transform: rotate(-9deg);
  pointer-events: none;
}

/* Sale price gets its own row above the buttons, old price beside it */
html.bf-on .game-card__price {
  display: flex;
  flex: 1 0 100%;
  align-items: baseline;
  gap: 0.6rem;
  margin-right: 0;
  font-size: 2.1rem;
  line-height: 1;
}

html.bf-on .game-card__price .bf-was {
  font-family: var(--wg-body, inherit);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  opacity: 0.75;
  text-decoration-thickness: 2px;
}

/* Free socks panel under the cards */
.bf-socks {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0.5rem 1.5rem 2.5rem;
  padding: 1.1rem 1.75rem 1.1rem 1.25rem;
  border-radius: 1.25rem;
  background: #0c0c16;
}

.bf-socks__art {
  flex: 0 0 auto;
  width: 8rem;
}

.bf-socks-svg {
  display: block;
  width: 100%;
  height: auto;
}

.bf-socks__title {
  margin: 0 0 0.3rem;
  color: #fff;
  font-family: var(--wg-display, inherit);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
}

.bf-socks__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.45;
}

.bf-socks__tag {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0.5rem 1rem;
  border: 1.5px solid #ffbf00;
  border-radius: 999px;
  color: #ffbf00;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  /* Ribbon in two rows: tag + countdown, then the offer */
  .bf-ribbon__link,
  .bf-ribbon__link:hover,
  .bf-ribbon__link:focus {
    font-size: 0.875rem;
  }

  .bf-ribbon__text {
    order: 3;
    flex: 0 0 100%;
    text-align: center;
  }

  .bf-billboard {
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 1.5rem;
  }

  .bf-eyebrow {
    padding: 0.4rem 0.8rem;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
  }

  .bf-clock__cell {
    min-width: 3.6rem;
  }

  .bf-socks {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    padding: 1rem 1.1rem;
  }

  .bf-socks__art {
    width: 4.75rem;
  }

  .bf-socks__copy {
    flex: 1 1 10rem;
  }

  .bf-socks__tag {
    margin-left: 0;
  }
}

/* ---------- 3. Product pages ---------- */

/* Anger Smash page: plain inline price */
.h5.bf-price,
.bf-price .h5 {
  font-size: 1.6rem;
}

.bf-price .bf-was {
  margin-left: 0.4rem;
  color: #4a4a5e;
  font-size: 1rem;
  font-weight: 400;
}

.bf-chip {
  display: inline-block;
  margin: 0 0.9rem 0 0.4rem;
  padding: 0.4em 0.8em;
  border-radius: 999px;
  background: #0c0c16;
  color: #ffbf00;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}

.bf-note {
  margin: 0.9rem 0 0;
  color: #1a1a2e;
  font-size: 0.95rem;
  font-weight: 600;
}

/* How Am I Weird page: prices sit in .offer rows (flex) */
.offer .bf-chip {
  margin: 0;
  font-size: 0.8rem;
}

/* The offer rows are tight: the chip keeps just the saving */
.offer .bf-chip__label {
  display: none;
}

.bf-note__sock {
  margin-right: 0.4em;
}

.offer .bf-note {
  flex: 1 0 100%;
  margin: 0;
}

/* ---------- 4. Cart ---------- */

.bf-cart-socks .top-cart-item-image {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 0.4rem;
  background: #0c0c16;
}

.bf-cart-socks .top-cart-item-image .bf-socks-svg {
  width: 86%;
}

.bf-cart-socks .cart-product-thumbnail .bf-socks-svg {
  width: 96px;
  padding: 10px;
  border-radius: 0.6rem;
  background: #0c0c16;
}

.bf-cart-socks .cart-product-name {
  color: #212529;
  font-weight: 700;
}

.bf-cart-socks .bf-chip {
  margin-right: 0;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .bf-eyebrow__dot {
    animation: bf-pulse 1.8s ease-in-out infinite;
  }

  @keyframes bf-pulse {
    0%,
    100% {
      box-shadow: 0 0 0 0 rgba(255, 80, 135, 0.6);
    }
    60% {
      box-shadow: 0 0 0 0.45rem rgba(255, 80, 135, 0);
    }
  }

  .bf-sticker {
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  #games .game-card:hover .bf-sticker {
    transform: rotate(7deg) scale(1.12);
  }

  .bf-socks__art {
    animation: bf-sway 3.2s ease-in-out infinite;
    transform-origin: 50% 0;
  }

  @keyframes bf-sway {
    0%,
    100% {
      transform: rotate(-4deg);
    }
    50% {
      transform: rotate(4deg);
    }
  }
}
