/* Black Friday 2026 · peças compartilhadas por /quiz, /oferta e o site (só carregam com BLACK_FRIDAY em src/lib/promo.ts).
   Faixa do topo, faixa entre seções, painel "Seu kit vem com" e confete. Amarelo na frente, escuro só de acento. */
:root { --bf-ink: #2A1A00; --bf-green: #1E9E50; --bf-green-dark: #0F5C2E; }

.bf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[data-bf-clock][hidden] { display: none !important; }
@keyframes bf-marquee { to { transform: translateX(-50%); } }

/* Faixa do topo: amarela, grossa, correndo. Com data de fim, o contador entra como pílula escura à esquerda. */
.bf-bar { display: flex; align-items: center; background: var(--mx-yellow); color: var(--bf-ink); border-bottom: 3px solid var(--bf-ink); overflow: hidden; }
.bf-bar__clock {
  position: relative; z-index: 1; flex: 0 0 auto; margin-left: 10px; padding: 6px 12px 5px; border-radius: 999px;
  background: var(--bf-ink); color: var(--mx-yellow); box-shadow: 8px 0 10px 2px var(--mx-yellow);
  font-family: var(--font-condensed); font-weight: 900; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
}
.bf-bar__clock b { margin-left: 3px; font-family: var(--font-sans); font-size: 14px; letter-spacing: 0; color: #fff; font-variant-numeric: tabular-nums; }
.bf-bar__marquee { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.bf-bar__track { display: flex; width: max-content; animation: bf-marquee 32s linear infinite; }
.bf-bar__group { display: flex; }
.bf-bar__item {
  display: flex; align-items: center; gap: 18px; padding: 12px 0 11px 18px;
  font-family: var(--font-condensed); font-weight: 900; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
}
.bf-bar__item::after { content: "✦"; font-size: 12px; }

/* Faixa entre seções */
.bf-strip { overflow: hidden; background: var(--mx-yellow); color: var(--bf-ink); border-block: 3px solid var(--bf-ink); }
.bf-strip__track { display: flex; width: max-content; animation: bf-marquee 40s linear infinite; }
.bf-strip__track span { padding: 11px 0 9px; font-family: var(--font-condensed); font-weight: 900; font-size: 19px; letter-spacing: 0.12em; text-transform: uppercase; white-space: pre; }

/* "+ 1 pote grátis" no nome do kit de 3 */
.bf-plus { display: block; font-family: var(--font-sans); font-style: normal; font-weight: 800; font-size: 15px; line-height: 1.15; color: #C8361F; white-space: nowrap; }

/* Painel "Seu kit vem com": recompensas que destravam conforme o kit */
.bf-perks { margin: 0 0 14px; padding: 12px 10px; border-radius: 16px; background: #FFF1A8; border: 1.5px solid rgba(42, 26, 0, 0.12); }
.bf-perks__title { margin: 0 0 16px; font-family: var(--font-sans); font-weight: 800; font-size: 15px; line-height: 1.2; color: var(--bf-ink); text-align: center; }
.bf-perks__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bf-perk {
  position: relative; display: grid; justify-items: center; align-content: start; gap: 3px;
  padding: 18px 8px 10px; border: 2px solid var(--bf-ink); border-radius: 14px;
  background: var(--mx-yellow); color: var(--bf-ink); box-shadow: 3px 3px 0 var(--bf-ink);
  font-family: var(--font-sans); text-align: center; cursor: default;
  transition: background 220ms, border-color 220ms, box-shadow 220ms;
}
.bf-perk.is-locked { cursor: pointer; border-style: dashed; border-color: rgba(42, 26, 0, 0.4); background: #F6EDC4; box-shadow: none; }
.bf-perk__tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  padding: 4px 10px 3px; border-radius: 999px; background: var(--bf-green); color: #fff;
  font-family: var(--font-condensed); font-weight: 900; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  transition: opacity 140ms;
}
.bf-perk.is-locked .bf-perk__tag { opacity: 0; }
.bf-perk__art { display: grid; place-items: center; height: 66px; transition: filter 420ms, opacity 420ms; }
.bf-perk__art svg { width: 96px; height: auto; }
.bf-perk__art img { height: 66px; width: auto; max-width: none; }
.bf-perk.is-locked .bf-perk__art { filter: grayscale(1); opacity: 0.38; }
.bf-perk__name { font-weight: 900; font-size: 15px; line-height: 1.15; }
.bf-perk__hint { font-size: 12px; font-weight: 800; color: var(--bf-green-dark); }
.bf-perk.is-locked .bf-perk__hint { color: #A06E0E; }
.bf-perk__lock {
  position: absolute; top: 30px; left: 50%; width: 42px; height: 42px; margin-left: -21px;
  display: grid; place-items: center; border-radius: 50%; background: var(--bf-ink); color: var(--mx-yellow);
  box-shadow: 0 6px 14px rgba(42, 26, 0, 0.3);
  transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bf-perk.is-unlocked .bf-perk__lock { opacity: 0; transform: scale(1.9) rotate(30deg); pointer-events: none; }
.bf-perk.is-locked:hover .bf-perk__lock { transform: scale(1.1); }
.bf-perk:focus-visible { outline: 3px solid var(--bf-ink); outline-offset: 3px; }
.bf-perk.is-pop { animation: bf-perk-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.bf-perk.is-pop .bf-perk__tag { animation: bf-tag-in 0.5s 0.12s both cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes bf-perk-pop { 0% { transform: scale(0.9); } 50% { transform: scale(1.08) rotate(-2deg); } 100% { transform: none; } }
@keyframes bf-tag-in { from { opacity: 0; transform: translate(-50%, -12px) scale(0.5); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
.bf-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1200; }

@media (min-width: 900px) {
  .bf-bar__item { font-size: 17px; padding-block: 13px 12px; }
  .bf-bar__clock { font-size: 13px; padding: 7px 14px 6px; margin-left: max(16px, calc((100vw - 1120px) / 2 + 16px)); }
  .bf-bar__clock b { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .bf-bar__track, .bf-strip__track { animation: none; }
  .bf-perk.is-pop, .bf-perk.is-pop .bf-perk__tag { animation: none; }
}
