.black-friday-home {
  padding: 24px 0 96px;
  background: #fff;
}

.stack-wrap {
  position: relative;
  max-width: 980px;
  margin: 44px auto 0;
  text-align: left;
}

.excl {
  position: absolute;
  z-index: 2;
  top: -13px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #121332;
  color: #f7d56e;
  font-size: 13px;
  font-weight: 700;
}

.excl span {
  font-size: 14px;
}

.st-ring {
  padding: 3px;
  border-radius: 21px;
  background: linear-gradient(115deg, #f7d56e, #ff8f6b, #7b6ff6, #f7d56e);
  background-size: 300% 300%;
  box-shadow: 0 20px 48px rgba(106, 76, 245, .22);
  animation: st-shift 8s linear infinite;
}

@keyframes st-shift {
  to { background-position: 300% 50%; }
}

.stack {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  border-radius: 18px;
  background: #fff;
}

.deck {
  position: relative;
  flex-shrink: 0;
  width: 276px;
  height: 100px;
}

.deck span {
  position: absolute;
  top: 18px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 1px solid #eceef6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(23, 21, 58, .14);
  transform: translateX(var(--sx)) rotate(0deg);
  animation: deck-in .6s cubic-bezier(.2, .8, .2, 1) var(--d) both, deck-loop 7s cubic-bezier(.65, 0, .35, 1) calc(var(--d) + .6s) infinite;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}

.deck img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.stack:hover .deck span {
  animation: deck-in .6s var(--d) both;
}

@keyframes deck-in {
  from { opacity: 0; translate: 0 24px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes deck-loop {
  0%, 10% { transform: translateX(var(--x)) rotate(var(--r)); }
  22%, 80% { transform: translateX(var(--sx)) rotate(0deg); }
  92%, 100% { transform: translateX(var(--x)) rotate(var(--r)); }
}

.stack-copy {
  display: flex;
  flex: 1 1 280px;
  flex-direction: column;
  min-width: 0;
  gap: 6px;
}

.kicker {
  color: #c8352e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.stack-copy strong {
  color: #121332;
  font-size: 22px;
  letter-spacing: -.01em;
}

.stack-copy span:last-child {
  color: #6b6e87;
  font-size: 14px;
  line-height: 1.5;
}

.stack-buy {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.stack-buy strong {
  color: #121332;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.02em;
}

.btn-ink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  background: #121332;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.btn-ink:hover,
.btn-ink:focus-visible {
  background: #2a2b60;
  color: #fff;
}

.btn-ink:focus-visible {
  outline: 3px solid #f7d56e;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .stack {
    flex-wrap: wrap;
  }

  .deck {
    margin-right: -28px;
    transform: scale(.9);
    transform-origin: left center;
  }

  .stack-buy {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .st-ring,
  .deck span {
    animation: none;
  }
}

/*
 * The stats block uses nested Bootstrap rows inside a flex container.  A row
 * without an explicit flex basis can shrink to its content width, which makes
 * the two outer columns overlap at desktop widths.  Keep every stats row and
 * column inside the available width so the card edges line up cleanly.
 */
.stats-container .inner-stats > .row {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
}

.stats-container .inner-stats .row > [class*="col-"] {
  min-width: 0;
}

.stats-container .inner-stats__card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
