/* Black Friday weekend hero (assets/js/promo-bf.js), shared by the home page and
   the Deals TV. Everything is sized from the hero's own width (cqi), so it is one
   picture at any size: side by side from 640px wide, stacked below that. Fonts
   are named outright because the site and the boards name their variables
   differently. */
.bf-c { container-type: inline-size; width: 100%; }
.bf {
  --bf-green: #39ff6e;
  --bf-green-t: #8bf5a8;
  --bf-ink: #f4f7fb;
  --bf-dim: #b9c3d1;
  --bf-line: rgba(57, 255, 110, 0.3);
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); align-items: center; gap: 4cqi;
  padding: 3.4cqi 4cqi;
  border: 1px solid var(--bf-line); border-radius: 2.2cqi;
  background:
    radial-gradient(55% 90% at 18% 50%, rgba(57, 255, 110, 0.14), transparent 70%),
    radial-gradient(40% 70% at 100% 0%, rgba(6, 214, 214, 0.08), transparent 70%),
    linear-gradient(180deg, #050505, #000 60%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 30px 80px -30px rgba(57, 255, 110, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--bf-ink);
  font-family: "Sora", system-ui, sans-serif;
  text-align: left;
}
/* a hairline of neon across the top, and one slow sweep of light */
.bf::before { content: ""; position: absolute; left: 6%; right: 6%; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--bf-green), transparent); opacity: 0.8; z-index: -1; }
.bf::after { content: ""; position: absolute; top: -50%; bottom: -50%; left: -40%; width: 22%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent); transform: rotate(18deg); animation: bf-sweep 7s ease-in-out infinite; z-index: -1; pointer-events: none; }
@keyframes bf-sweep { 0%, 55% { left: -40%; } 100% { left: 130%; } }

/* a fine grid behind it all, fading out to the right */
.bf-bg { position: absolute; inset: 0; z-index: -2; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px); background-size: 3.2cqi 3.2cqi; -webkit-mask-image: linear-gradient(90deg, #000, transparent 75%); mask-image: linear-gradient(90deg, #000, transparent 75%); }
.bf-bg span { display: none; }

.bf-offer { min-width: 0; }
.bf-kicker { display: inline-flex; align-items: center; gap: 1.1cqi; margin: 0 0 1.6cqi; padding: 0.75cqi 1.5cqi; border: 1px solid var(--bf-line); border-radius: 999px; background: rgba(57, 255, 110, 0.06); font: 700 max(11px, 1.35cqi)/1 "Sora", system-ui, sans-serif; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bf-green-t); }
.bf-dot { width: 0.9cqi; height: 0.9cqi; min-width: 7px; min-height: 7px; border-radius: 50%; background: var(--bf-green); box-shadow: 0 0 10px var(--bf-green); animation: bf-pulse 1.6s ease-in-out infinite; }
@keyframes bf-pulse { 50% { opacity: 0.35; } }
.bf-title { margin: 0; font: 400 13.2cqi/0.84 "Anton", Impact, "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: 0.005em; }
.bf-line, .bf-what { display: block; white-space: nowrap; }
.bf-pct { color: var(--bf-green); text-shadow: 0 0 2cqi rgba(57, 255, 110, 0.55), 0 0 6cqi rgba(57, 255, 110, 0.3); }
.bf-off { color: var(--bf-ink); }
.bf-what { margin-top: 1.6cqi; color: transparent; -webkit-text-stroke: max(1.5px, 0.2cqi) var(--bf-ink); text-shadow: none; letter-spacing: 0.03em; }

.bf-info { min-width: 0; padding-left: 4cqi; border-left: 1px solid rgba(255, 255, 255, 0.12); }
.bf-dates { margin: 0; font: 400 4.4cqi/1 "Anton", Impact, sans-serif; text-transform: uppercase; letter-spacing: 0.02em; color: var(--bf-ink); }
.bf-note { margin: 1.2cqi 0 0; font: 500 max(14px, 1.55cqi)/1.45 "Sora", system-ui, sans-serif; color: var(--bf-dim); }
.bf-count { display: flex; flex-wrap: wrap; align-items: stretch; gap: 1cqi; margin-top: 2.2cqi; }
.bf-ends { flex-basis: 100%; margin-bottom: 0.2cqi; font: 700 max(10px, 1.1cqi)/1.2 "Sora", system-ui, sans-serif; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bf-green-t); }
.bf-u { flex: 1; max-width: 9.5cqi; display: grid; justify-items: center; align-content: center; min-width: 7.2cqi; padding: 0.9cqi 0.8cqi 0.8cqi; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 1.1cqi; background: rgba(255, 255, 255, 0.035); }
.bf-u b { font: 400 4cqi/1 "Anton", Impact, sans-serif; font-variant-numeric: tabular-nums; color: var(--bf-ink); }
.bf-u small { margin-top: 0.5cqi; font: 600 max(9px, 0.95cqi)/1 "Sora", system-ui, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bf-dim); }
.bf-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.6cqi; }
.bf-at { margin: 1.8cqi 0 0; font: 700 1.9cqi/1.2 "Sora", system-ui, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bf-green-t); }
.bf .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Stacked, for phones */
@container (max-width: 639px) {
  .bf { grid-template-columns: minmax(0, 1fr); gap: 6cqi; padding: 7cqi 6cqi 6.5cqi; border-radius: 5cqi; text-align: left; }
  .bf-bg { background-size: 7cqi 7cqi; -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%); mask-image: linear-gradient(180deg, #000, transparent 60%); }
  .bf-kicker { margin-bottom: 4cqi; padding: 2cqi 3.6cqi; gap: 2.4cqi; font-size: max(11px, 3cqi); }
  .bf-dot { width: 2cqi; height: 2cqi; }
  .bf-title { font-size: 23.5cqi; }
  .bf-what { margin-top: 3cqi; -webkit-text-stroke-width: max(1.5px, 0.45cqi); }
  .bf-info { padding: 5.5cqi 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .bf-dates { font-size: 9.5cqi; }
  .bf-note { margin-top: 2.4cqi; font-size: max(14px, 3.9cqi); }
  .bf-count { gap: 2.2cqi; margin-top: 4.5cqi; flex-wrap: wrap; }
  .bf-ends { margin: 0 0 0.5cqi; font-size: max(11px, 2.8cqi); }
  .bf-u { max-width: none; min-width: 0; padding: 2.4cqi 1cqi 2cqi; border-radius: 3cqi; }
  .bf-u b { font-size: 9cqi; }
  .bf-u small { margin-top: 1.2cqi; font-size: max(10px, 2.5cqi); }
  .bf-cta { margin-top: 5cqi; }
  .bf-cta .btn { flex: 1 1 100%; justify-content: center; }
}

/* The TV (the Deals screen, about 935px wide): kept to one short band so the
   six deal cards still fit under it; read from across the room. */
.bf[data-variant="tv"] { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3.4cqi; padding: 2.4cqi 3.6cqi; border-width: 2px; border-radius: 3cqi; }
.bf[data-variant="tv"] .bf-kicker { font-size: 1.85cqi; margin-bottom: 1.4cqi; padding: 0.9cqi 1.8cqi; }
.bf[data-variant="tv"] .bf-title { font-size: 9.6cqi; }
.bf[data-variant="tv"] .bf-what { margin-top: 1.2cqi; -webkit-text-stroke-width: 2px; }
.bf[data-variant="tv"] .bf-info { padding-left: 3.4cqi; }
.bf[data-variant="tv"] .bf-dates { font-size: 4.1cqi; white-space: nowrap; }
.bf[data-variant="tv"] .bf-count { margin-top: 2cqi; gap: 1.2cqi; }
.bf[data-variant="tv"] .bf-ends { font-size: 1.6cqi; }
.bf[data-variant="tv"] .bf-u { max-width: none; padding: 1cqi 1cqi 0.9cqi; }
.bf[data-variant="tv"] .bf-u b { font-size: 4.6cqi; }
.bf[data-variant="tv"] .bf-u small { font-size: 1.35cqi; }

@media (prefers-reduced-motion: reduce) { .bf::after, .bf-dot { animation: none; } }
html[data-motion-paused] .bf::after, html[data-motion-paused] .bf-dot { animation-play-state: paused; }

/* ---------- Home page only, while html[data-promo="bf"] is set ---------- */
.promo-only, .promo-only-i { display: none; }
html[data-promo="bf"] .promo-only { display: block; }
html[data-promo="bf"] span.promo-only, html[data-promo="bf"] .promo-only-i { display: inline; }
html[data-promo="bf"] .promo-hide { display: none; }
.bf-sec { padding: clamp(20px, 4vw, 56px) var(--gutter, 16px) clamp(8px, 2vw, 24px); background: radial-gradient(70% 120% at 50% 0%, rgba(57, 255, 110, 0.07), transparent 70%), #000; }
.bf-sec .bf-c { max-width: 1240px; margin: 0 auto; }
/* The order while it runs: Black Friday, the deals, then the cat hero and the rest. */
html[data-promo="bf"] main { display: flex; flex-direction: column; }
html[data-promo="bf"] main > * { min-width: 0; }
html[data-promo="bf"] .bf-sec { order: -3; }
html[data-promo="bf"] .deals-sec { order: -2; padding-top: clamp(40px, 6vw, 72px); }
html[data-promo="bf"] .deals-sec h2 em { font-style: normal; color: var(--green, #39ff6e); }
