/* ============================================================
   🇧🇷 COPA DO MUNDO 2026 — OVERLAY TEMÁTICO (v2)
   Para remover o tema, basta apagar este arquivo e o wc2026-overlay.js
   ============================================================ */

:root {
  --br-green:  #009C3B;
  --br-green-2:#00B347;
  --br-yellow: #FFDF00;
  --br-yellow-2:#FFC400;
  --br-blue:   #002776;
  --br-blue-2: #0033A0;
  --br-white:  #FFFFFF;
}

/* === Faixa flutuante no topo (abaixo do header) === */
.wc2026-banner {
  position: fixed;
  top: calc(70px + env(safe-area-inset-top, 20px));
  left: 0;
  right: 0;
  z-index: 1000;
  background:
    linear-gradient(90deg,
      var(--br-green) 0%, var(--br-green) 33%,
      var(--br-yellow) 33%, var(--br-yellow) 66%,
      var(--br-blue) 66%, var(--br-blue) 100%);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 39, 118, .35);
  border-bottom: 2px solid rgba(255, 223, 0, .85);
  animation: wc2026-banner-in .8s cubic-bezier(.2,.9,.2,1.2) both;
}

/* Estrelas brilhando sobre a faixa */
.wc2026-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 12% 30%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 28% 70%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 25%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 78% 65%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 92% 35%, #fff 50%, transparent 51%);
  opacity: .65;
  animation: wc2026-twinkle 2.4s ease-in-out infinite alternate;
}
@keyframes wc2026-twinkle {
  from { opacity: .25; }
  to   { opacity: .85; }
}

@keyframes wc2026-banner-in {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.wc2026-banner__track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  padding: 10px 0;
  animation: wc2026-marquee 28s linear infinite;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: .04em;
  font-size: .95rem;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.wc2026-banner__track span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

@keyframes wc2026-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.wc2026-banner__close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.3);
  color: #fff;
  border: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  z-index: 2;
}
.wc2026-banner__close:hover { background: rgba(0,0,0,.55); }

body.wc2026-banner-active { padding-top: 40px; }

/* === Camada de bandeirinhas caindo na tela inicial === */
.wc2026-balls {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}

@keyframes wc2026-fall {
  0%   { transform: translate3d(0, -10vh, 0) rotate(0deg) scale(var(--scale)); }
  100% { transform: translate3d(var(--drift), 110vh, 0) rotate(720deg) scale(var(--scale)); }
}

/* === Bandeirinhas caindo junto com as bolas === */
.wc2026-flag {
  --scale: 1;
  --drift: -30px;
  position: absolute;
  top: -80px;
  width: 36px;
  height: 26px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 100'><rect width='140' height='100' fill='%23009C3B'/><polygon points='70,12 128,50 70,88 12,50' fill='%23FFDF00'/><circle cx='70' cy='50' r='22' fill='%23002776'/><path d='M50 46 Q70 36 90 46' stroke='%23ffffff' stroke-width='4' fill='none'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.3));
  animation:
    wc2026-fall linear infinite,
    wc2026-wave 1.4s ease-in-out infinite;
  opacity: .95;
  transform: scale(var(--scale));
}
@keyframes wc2026-wave {
  0%,100% { filter: drop-shadow(0 3px 5px rgba(0,0,0,.3)) brightness(1); }
  50%     { filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)) brightness(1.1); }
}

/* === Selo "Copa 2026" no canto === */
.wc2026-badge {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--br-green), var(--br-green-2));
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  box-shadow: 0 12px 35px rgba(0,156,59,.45), inset 0 0 0 2px var(--br-yellow);
  animation: wc2026-pulse 2.4s ease-in-out infinite;
  cursor: pointer;
  user-select: none;
}

.wc2026-badge__flag {
  width: 24px; height: 17px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 100'><rect width='140' height='100' fill='%23009C3B'/><polygon points='70,12 128,50 70,88 12,50' fill='%23FFDF00'/><circle cx='70' cy='50' r='22' fill='%23002776'/><path d='M50 46 Q70 36 90 46' stroke='%23ffffff' stroke-width='5' fill='none'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.3);
}

.wc2026-badge__ball {
  display: inline-block;
  width: 20px; height: 20px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><circle cx='32' cy='32' r='30' fill='%23fff' stroke='%23111' stroke-width='2'/><polygon points='32,16 39,21 36,29 28,29 25,21' fill='%23111'/><polygon points='16,30 22,26 28,30 26,38 19,38' fill='%23111'/><polygon points='48,30 42,26 36,30 38,38 45,38' fill='%23111'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  animation: wc2026-ball-rotate 2.5s linear infinite;
}
@keyframes wc2026-ball-rotate {
  to { transform: rotate(360deg); }
}

@keyframes wc2026-pulse {
  0%,100% { transform: scale(1);    box-shadow: 0 12px 30px rgba(0,156,59,.45), inset 0 0 0 2px var(--br-yellow); }
  50%     { transform: scale(1.06); box-shadow: 0 16px 40px rgba(255,223,0,.55), inset 0 0 0 2px var(--br-yellow); }
}

/* === Faixa promo no hero === */
.wc2026-hero-stripe {
  position: relative;
  margin: 24px auto 0;
  max-width: 1100px;
  padding: 20px 28px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(0,156,59,.95), rgba(0,39,118,.95)),
    repeating-linear-gradient(45deg, rgba(255,223,0,.22) 0 12px, transparent 12px 24px);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 18px 50px rgba(0,39,118,.35), inset 0 0 0 2px rgba(255,223,0,.5);
  overflow: hidden;
  animation: wc2026-banner-in 1s .2s cubic-bezier(.2,.9,.2,1.2) both;
}

.wc2026-hero-stripe::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% -20%, rgba(255,223,0,.5), transparent 50%),
    radial-gradient(circle at 10% 120%, rgba(255,255,255,.18), transparent 50%);
  pointer-events: none;
}

/* Bandeirão decorativo no fundo da faixa */
.wc2026-hero-stripe::after {
  content: '';
  position: absolute;
  right: -40px; top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  width: 180px; height: 130px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 100'><rect width='140' height='100' fill='%23009C3B'/><polygon points='70,12 128,50 70,88 12,50' fill='%23FFDF00'/><circle cx='70' cy='50' r='22' fill='%23002776'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: .14;
  pointer-events: none;
}

.wc2026-hero-stripe__flag {
  width: 56px; height: 40px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 100'><rect width='140' height='100' fill='%23009C3B'/><polygon points='70,12 128,50 70,88 12,50' fill='%23FFDF00'/><circle cx='70' cy='50' r='22' fill='%23002776'/><path d='M50 46 Q70 36 90 46' stroke='%23ffffff' stroke-width='4' fill='none'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  animation: wc2026-flag-wave 2.2s ease-in-out infinite;
  position: relative; z-index: 1;
}
@keyframes wc2026-flag-wave {
  0%,100% { transform: rotate(-4deg) skewX(-3deg); }
  50%     { transform: rotate(4deg)  skewX(3deg); }
}

.wc2026-hero-stripe__title {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: .02em;
  line-height: 1.2;
  margin: 0;
  position: relative; z-index: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,.3);
}

.wc2026-hero-stripe__title .wc-star {
  color: var(--br-yellow);
  display: inline-block;
  animation: wc2026-spin-2 4s linear infinite;
}
@keyframes wc2026-spin-2 { to { transform: rotate(360deg); } }

.wc2026-hero-stripe__sub {
  margin: 4px 0 0;
  font-weight: 500;
  opacity: .95;
  font-size: .95rem;
  position: relative; z-index: 1;
}

.wc2026-hero-stripe__cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--br-yellow), var(--br-yellow-2));
  color: var(--br-blue);
  font-weight: 900;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0,0,0,.3), inset 0 0 0 2px rgba(255,255,255,.4);
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative; z-index: 1;
  white-space: nowrap;
}
.wc2026-hero-stripe__cta:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 30px rgba(0,0,0,.35), inset 0 0 0 2px rgba(255,255,255,.6);
}

/* === Cordão de bandeirinhas (varal) no topo do hero === */
.wc2026-bunting {
  position: relative;
  width: 100%;
  height: 36px;
  margin: 12px 0 0;
  overflow: hidden;
  pointer-events: none;
}
.wc2026-bunting svg { width: 100%; height: 100%; display: block; }
.wc2026-bunting .pennant {
  transform-origin: top center;
  animation: wc2026-sway 3s ease-in-out infinite;
}
.wc2026-bunting .pennant:nth-child(odd)  { animation-delay: -.5s; }
.wc2026-bunting .pennant:nth-child(3n)   { animation-delay: -1s; }
@keyframes wc2026-sway {
  0%,100% { transform: rotate(-3deg); }
  50%     { transform: rotate(3deg); }
}

/* === Confete === */
.wc2026-confetti {
  position: fixed;
  top: -10px;
  width: 10px;
  height: 14px;
  z-index: 9999;
  pointer-events: none;
  animation: wc2026-confetti-fall linear forwards;
}
@keyframes wc2026-confetti-fall {
  0%   { transform: translateY(-10px) rotate(0); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* === Responsividade === */
@media (max-width: 720px) {
  .wc2026-banner__track { font-size: .82rem; gap: 36px; }
  .wc2026-badge { padding: 10px 14px; font-size: .78rem; bottom: 16px; right: 16px; }
  .wc2026-hero-stripe { flex-direction: column; text-align: center; padding: 16px; }
  .wc2026-hero-stripe__cta { margin-left: 0; }
  .wc2026-hero-stripe::after { display: none; }
  .wc2026-flag { width: 28px; height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .wc2026-banner__track,
  .wc2026-flag,
  .wc2026-badge, .wc2026-badge__ball,
  .wc2026-hero-stripe__flag,
  .wc2026-bunting .pennant,
  .wc2026-confetti,
  .wc2026-combo, .wc2026-combo__ribbon,
  .wc2026-combo__sparkle { animation: none !important; }
}

/* === Balão promocional "COMBO HEXA" === */
.wc2026-combo {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 998;
  width: min(320px, calc(100vw - 48px));
  border-radius: 22px;
  padding: 0 0 18px;
  background:
    linear-gradient(160deg, #FFFFFF 0%, #FFF8D6 100%);
  color: var(--br-blue);
  font-family: 'Inter', sans-serif;
  box-shadow:
    0 22px 55px rgba(0, 39, 118, .35),
    0 0 0 3px var(--br-yellow),
    0 0 0 6px var(--br-green);
  overflow: hidden;
  animation: wc2026-combo-in .9s cubic-bezier(.2,.9,.2,1.4) both,
             wc2026-combo-float 4s ease-in-out 1.2s infinite;
  transform-origin: bottom left;
}

@keyframes wc2026-combo-in {
  from { transform: translateY(40px) scale(.6) rotate(-6deg); opacity: 0; }
  to   { transform: translateY(0)    scale(1)  rotate(0);     opacity: 1; }
}
@keyframes wc2026-combo-float {
  0%,100% { transform: translateY(0)    rotate(-.5deg); }
  50%     { transform: translateY(-6px) rotate(.5deg); }
}

.wc2026-combo__close {
  position: absolute;
  top: 8px; right: 10px;
  background: rgba(0,0,0,.25);
  color: #fff;
  border: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  z-index: 5;
}
.wc2026-combo__close:hover { background: rgba(0,0,0,.5); }

.wc2026-combo__ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 36px;
  background:
    linear-gradient(90deg, var(--br-green) 0%, var(--br-green-2) 50%, var(--br-green) 100%);
  background-size: 200% 100%;
  color: #fff;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: .12em;
  text-shadow: 0 2px 4px rgba(0,0,0,.35);
  text-transform: uppercase;
  border-bottom: 3px solid var(--br-yellow);
  animation: wc2026-combo-shine 3.5s linear infinite;
}
@keyframes wc2026-combo-shine {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.wc2026-combo__flag {
  width: 28px; height: 20px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 100'><rect width='140' height='100' fill='%23009C3B'/><polygon points='70,12 128,50 70,88 12,50' fill='%23FFDF00'/><circle cx='70' cy='50' r='22' fill='%23002776'/><path d='M50 46 Q70 36 90 46' stroke='%23ffffff' stroke-width='5' fill='none'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.4);
}

.wc2026-combo__trophy {
  font-size: 1.2rem;
  filter: drop-shadow(0 0 6px rgba(255,223,0,.8));
  animation: wc2026-combo-bounce 1.4s ease-in-out infinite;
}
@keyframes wc2026-combo-bounce {
  0%,100% { transform: translateY(0) rotate(-8deg); }
  50%     { transform: translateY(-4px) rotate(8deg); }
}

.wc2026-combo__body {
  padding: 16px 18px 4px;
  text-align: center;
}

.wc2026-combo__line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .92rem;
  font-weight: 800;
  color: var(--br-blue);
  letter-spacing: .02em;
  padding: 6px 10px;
  background: rgba(0, 156, 59, .08);
  border-radius: 10px;
  border-left: 3px solid var(--br-green);
}
.wc2026-combo__line strong { font-weight: 900; }

.wc2026-combo__check { font-size: 1rem; }
.wc2026-combo__ball-mini { font-size: 1.1rem; }

.wc2026-combo__plus,
.wc2026-combo__equals {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--br-yellow-2);
  margin: 4px 0;
  text-shadow:
    -1px -1px 0 var(--br-blue),
     1px -1px 0 var(--br-blue),
    -1px  1px 0 var(--br-blue),
     1px  1px 0 var(--br-blue);
  line-height: 1;
}

.wc2026-combo__punch {
  margin: 8px 0 12px;
  font-size: .95rem;
  font-weight: 700;
  color: var(--br-blue);
  line-height: 1.3;
}
.wc2026-combo__br {
  background: linear-gradient(90deg, var(--br-green), var(--br-yellow-2), var(--br-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
}

.wc2026-combo__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--br-yellow), var(--br-yellow-2));
  color: var(--br-blue);
  font-weight: 900;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow:
    0 8px 22px rgba(255, 196, 0, .55),
    inset 0 0 0 2px rgba(255,255,255,.6);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wc2026-combo__cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 14px 30px rgba(255, 196, 0, .7),
    inset 0 0 0 2px rgba(255,255,255,.8);
}

.wc2026-combo__sparkle {
  position: absolute;
  color: var(--br-yellow);
  font-size: 18px;
  text-shadow: 0 0 8px rgba(255,223,0,.9);
  animation: wc2026-combo-twinkle 1.6s ease-in-out infinite;
  pointer-events: none;
}
.wc2026-combo__sparkle--1 { top: 8px;  left: 14px; animation-delay: 0s; }
.wc2026-combo__sparkle--2 { top: 60px; right: 14px; animation-delay: .4s; font-size: 14px; }
.wc2026-combo__sparkle--3 { bottom: 70px; left: 10px; animation-delay: .8s; font-size: 12px; }
@keyframes wc2026-combo-twinkle {
  0%,100% { opacity: .3; transform: scale(.8) rotate(0); }
  50%     { opacity: 1;  transform: scale(1.2) rotate(180deg); }
}

@media (max-width: 720px) {
  .wc2026-combo {
    left: 12px;
    right: 12px;
    bottom: 80px;
    width: auto;
  }
  .wc2026-combo__ribbon { font-size: 1rem; padding: 10px 36px; }
  .wc2026-combo__punch  { font-size: .88rem; }
}
