/* ============================================================
   CRAQUE DA COPA 2026 — Landing
   Sistema de design
   ============================================================ */

:root {
  /* Tema padrão = BRASIL (sobrescrito por país via JS) */
  --bg:        #FFC400;
  --bg-deep:   #F2A900;
  --ink:       #142142;     /* texto principal sobre o fundo */
  --ink-soft:  #2c3a63;
  --primary:   #00913F;     /* verde */
  --accent:    #1B2C8F;     /* azul */
  --highlight: #1B2C8F;     /* cor das palavras destacadas no título */
  --cta-bg:    #16205c;
  --cta-bg-2:  #243a9e;
  --cta-text:  #ffffff;
  --jersey-a:  #FFD400;     /* camisa estilo seleção */
  --jersey-b:  #00913F;
  --card-frame:#0aa64a;
  --card-deep: #017a36;
  --flag-1:    #00913F;
  --flag-2:    #FFD400;
  --flag-3:    #1B2C8F;

  --r-lg: 26px;
  --r-md: 18px;
  --shadow-card: 0 24px 48px -16px rgba(10, 20, 45, .45), 0 8px 16px -8px rgba(10,20,45,.3);
  --maxw: 460px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }

body {
  font-family: 'Fredoka', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- Palco / fundo ---------- */
.stage {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  position: relative;
  background:
    radial-gradient(120% 75% at 50% -8%, color-mix(in srgb, var(--bg) 78%, #fff) 0%, var(--bg) 44%, var(--bg-deep) 100%);
  transition: background .5s ease, color .5s ease;
  overflow: hidden;
}

/* textura sutil de torcida: confete + raios suaves */
.stage::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.5) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.4) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 8%,  rgba(0,0,0,.05) 0 2px, transparent 3px),
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.35) 0 1.5px, transparent 3px),
    radial-gradient(circle at 90% 60%, rgba(0,0,0,.04) 0 2px, transparent 3px),
    radial-gradient(circle at 8% 70%,  rgba(255,255,255,.3) 0 1.5px, transparent 3px);
  background-size: 280px 280px, 320px 320px, 240px 240px, 200px 200px, 360px 360px, 300px 300px;
  opacity: .7;
  pointer-events: none;
}

.col {
  width: 100%;
  max-width: var(--maxw);
  padding: 22px 22px 40px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Topo / wordmark ---------- */
.topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.wordmark {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 15px; letter-spacing: .02em;
  color: var(--ink);
}
.wordmark .ball {
  width: 26px; height: 26px; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff 0 30%, transparent 31%),
    conic-gradient(var(--ink) 0 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0);
  background-color: #fff;
  border: 2.5px solid var(--ink);
  position: relative;
  flex: none;
}
.wordmark b { color: var(--accent); }
.year-chip {
  font-family: 'Anton', sans-serif;
  font-size: 13px; letter-spacing: .06em;
  background: var(--ink); color: var(--bg);
  padding: 5px 10px 4px; border-radius: 999px;
}

/* ---------- Headline ---------- */
.headline {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: .94;
  letter-spacing: .004em;
  text-align: center;
  font-size: clamp(24px, 6.7vw, 32px);
  color: var(--ink);
  margin-top: 2px;
  max-width: 420px;
  text-shadow: 0 2px 0 rgba(255,255,255,.25);
}
.headline .hl {
  color: var(--highlight);
  position: relative;
  -webkit-text-stroke: 0;
}
.headline .hl::after {
  content: "";
  position: absolute; left: -2%; right: -2%; bottom: 6%;
  height: 30%;
  background: color-mix(in srgb, var(--highlight) 18%, transparent);
  border-radius: 4px;
  z-index: -1;
}

/* ---------- Hero: leque de cards ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 384px;
  margin: 20px 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-fan { position: relative; width: 230px; height: 360px; }

/* ---------- Card de figurinha (autoral) ---------- */
.fig {
  position: absolute;
  width: 230px; height: 340px;
  border-radius: 20px;
  padding: 7px;
  background: linear-gradient(160deg, var(--card-frame), var(--card-deep));
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transform-origin: center bottom;
  /* órbita (ADR-0010): desliza suave entre os slots center/left/right ao trocar de posição */
  transition: transform .85s cubic-bezier(.34,.08,.2,1), box-shadow .85s ease, filter .85s ease;
}
@media (prefers-reduced-motion: reduce) { .fig { transition: none; } }
.fig.center {
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  animation: floatC 6s ease-in-out infinite;
}
.fig.left {
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) translateX(-86px) translateY(8px) rotate(-11deg) scale(.9);
  z-index: 1;
  filter: brightness(.96);
}
.fig.right {
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) translateX(86px) translateY(8px) rotate(11deg) scale(.9);
  z-index: 1;
  filter: brightness(.96);
}
@keyframes floatC {
  0%,100% { transform: translate(-50%,-50%) translateY(0) rotate(0deg); }
  50%     { transform: translate(-50%,-50%) translateY(-10px) rotate(-.5deg); }
}

.fig-inner {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--primary) 82%, #000) 0%, var(--primary) 55%, color-mix(in srgb, var(--primary) 70%, #000) 100%);
}

/* número gigante de marca d'água (ano 26) */
.fig-inner .watermark {
  position: absolute; right: -8px; top: 64px;
  font-family: 'Anton', sans-serif;
  font-size: 190px; line-height: .8;
  color: rgba(255,255,255,.12);
  letter-spacing: -.04em;
  pointer-events: none;
  z-index: 0;
}

/* área da foto */
.fig-photo {
  position: relative;
  z-index: 1;
  width: 100%; height: 72%; /* estende a foto até encostar na placa do nome (sem vão) — ADR-0010 */
  display: block;
}
.fig-photo image-slot { width: 100%; height: 100%; display: block; }
/* foto de exemplo (ADR-0010 / cards de exemplo da landing) — preenche a área, mostra o rosto */
.fig-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }
.photo-ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  gap: 4px; padding-bottom: 6px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.10) 0 9px, rgba(255,255,255,.04) 9px 18px);
  position: relative;
}
.photo-ph .silo {
  width: 96px; height: 96px;
  background: rgba(255,255,255,.22);
  border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%;
  margin-bottom: 2px;
  -webkit-mask: radial-gradient(circle at 50% 34%, #000 22px, transparent 23px),
                radial-gradient(ellipse 44px 40px at 50% 104%, #000 38px, transparent 39px);
  -webkit-mask-composite: source-over;
  mask: radial-gradient(circle at 50% 34%, #000 22px, transparent 23px),
        radial-gradient(ellipse 44px 40px at 50% 104%, #000 38px, transparent 39px);
}
.photo-ph .ph-label {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
}

/* badge canto + bandeira */
.fig-badge {
  position: absolute; top: 9px; right: 9px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Anton', sans-serif; font-size: 17px;
  color: var(--accent);
  box-shadow: 0 3px 8px rgba(0,0,0,.25);
  border: 2px solid #fff;
  text-align: center; line-height: .85;
}
.fig-flag {
  position: absolute; z-index: 3; right: 10px; bottom: 30%;
  width: 27px; height: 19px; border-radius: 3px;
  overflow: hidden; box-shadow: 0 0 0 1.5px #fff, 0 2px 5px rgba(0,0,0,.3);
  display: grid;
}

/* placa de nome + stats */
.fig-plate {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 60%, #000) 0%, color-mix(in srgb, var(--primary) 78%, #000) 100%);
  padding: 9px 11px 11px;
}
.fig-name {
  font-family: 'Anton', sans-serif;
  font-size: 19px; letter-spacing: .03em;
  color: #fff; text-transform: uppercase;
  text-align: center; line-height: 1;
}
.fig-stats {
  margin-top: 4px;
  font-size: 9.5px; font-weight: 500;
  color: rgba(255,255,255,.85);
  text-align: center; letter-spacing: .01em;
}
.fig-club {
  margin-top: 7px;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Anton', sans-serif;
  font-size: 9.5px; letter-spacing: .06em;
  text-align: center; text-transform: uppercase;
  padding: 4px 6px 3px; border-radius: 5px;
  display: flex; align-items: center; justify-content: space-between;
}
.fig-club .studio {
  font-size: 7px; opacity: .65; letter-spacing: .08em;
}

/* foil holográfico */
.fig-foil {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  border-radius: 14px;
  background: linear-gradient(115deg,
    transparent 28%,
    rgba(255,255,255,.06) 42%,
    rgba(120,220,255,.30) 48%,
    rgba(255,120,220,.26) 52%,
    rgba(255,255,120,.22) 56%,
    rgba(255,255,255,.06) 62%,
    transparent 75%);
  background-size: 280% 280%;
  mix-blend-mode: screen;
  animation: foilSweep 5.5s ease-in-out infinite;
}
@keyframes foilSweep {
  0%,100% { background-position: 0% 0%; opacity: .5; }
  50%     { background-position: 100% 100%; opacity: .95; }
}
.no-foil .fig-foil { display: none; }

/* etiqueta de preço */
.price-tag {
  position: absolute; z-index: 6; top: 24px; right: 6px;
  transform: rotate(8deg);
  background: var(--accent); color: #fff;
  font-family: 'Anton', sans-serif;
  padding: 8px 13px 6px; border-radius: 12px;
  text-align: center; line-height: .9;
  white-space: nowrap;
  box-shadow: 0 8px 16px -6px rgba(0,0,0,.45);
  animation: tagPop 5s ease-in-out infinite;
}
.price-tag .small { display: block; font-size: 8px; letter-spacing: .14em; font-weight: 400; opacity: .85; font-family: 'Fredoka'; }
.price-tag .big { font-size: 22px; letter-spacing: .01em; }
.price-tag .cents { font-size: 11px; vertical-align: super; }
@keyframes tagPop {
  0%,92%,100% { transform: rotate(8deg) scale(1); }
  96%         { transform: rotate(8deg) scale(1.07); }
}

/* ---------- Sub-texto ---------- */
.subtext {
  text-align: center;
  font-size: 17px; line-height: 1.45; font-weight: 500;
  color: var(--ink-soft);
  max-width: 360px;
  margin: 14px auto 0;
  text-wrap: pretty;
}
.subtext b { color: var(--ink); font-weight: 700; }

/* ---------- CTA ---------- */
.cta-wrap { width: 100%; margin-top: 22px; }
.cta {
  position: relative;
  width: 100%;
  border: none;
  cursor: pointer;
  border-radius: 16px;
  padding: 19px 20px;
  font-family: 'Anton', sans-serif;
  font-size: 21px; letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cta-text);
  background: linear-gradient(180deg, var(--cta-bg-2), var(--cta-bg));
  box-shadow: 0 14px 28px -10px color-mix(in srgb, var(--cta-bg) 80%, transparent), inset 0 1px 0 rgba(255,255,255,.18);
  overflow: hidden;
  transition: transform .12s ease, box-shadow .2s ease;
  animation: ctaPulse 2.6s ease-in-out infinite;
}
.cta:hover { transform: translateY(-2px); }
.cta:active { transform: translateY(1px) scale(.99); }
.cta .shine {
  position: absolute; top: 0; bottom: 0; left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-18deg);
  animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine { 0% { left: -60%; } 55%,100% { left: 130%; } }
@keyframes ctaPulse {
  0%,100% { box-shadow: 0 14px 28px -10px color-mix(in srgb, var(--cta-bg) 80%, transparent), inset 0 1px 0 rgba(255,255,255,.18), 0 0 0 0 color-mix(in srgb, var(--cta-bg) 45%, transparent); }
  50%     { box-shadow: 0 14px 28px -10px color-mix(in srgb, var(--cta-bg) 80%, transparent), inset 0 1px 0 rgba(255,255,255,.18), 0 0 0 10px color-mix(in srgb, var(--cta-bg) 0%, transparent); }
}
.cta-sub {
  text-align: center;
  margin-top: 11px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.cta-sub .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }

/* ---------- Prova social ---------- */
.social {
  margin-top: 26px;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
}
.stars { display: flex; gap: 3px; color: var(--accent); font-size: 17px; }
.avatars { display: flex; }
.avatars .av {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2.5px solid var(--bg);
  margin-left: -10px;
  background-size: cover;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; color: #fff;
}
.avatars .av:first-child { margin-left: 0; }
.proof-count {
  font-family: 'Anton', sans-serif;
  font-size: 16px; letter-spacing: .02em;
  color: var(--ink);
}
.proof-count b { color: var(--accent); }

/* ---------- Seletor de país ---------- */
.countries {
  margin-top: 26px;
  display: flex; gap: 11px; align-items: center; justify-content: center;
}
.country {
  width: 46px; height: 46px; border-radius: 50%;
  border: none; cursor: pointer;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Anton', sans-serif; font-size: 13px; letter-spacing: .02em;
  color: #1a1a1a;
  position: relative;
  box-shadow: 0 4px 10px -3px rgba(0,0,0,.25);
  transition: transform .18s ease, box-shadow .18s ease;
  overflow: hidden;
}
.country .stripe { position: absolute; inset: 0; opacity: .9; }
.country .cc { position: relative; z-index: 1; mix-blend-mode: normal; text-shadow: 0 1px 2px rgba(0,0,0,.35); color:#fff; }
.country:hover { transform: translateY(-3px); }
.country.active {
  transform: scale(1.16);
  box-shadow: 0 0 0 3px var(--ink), 0 8px 16px -4px rgba(0,0,0,.4);
}
.countries-label {
  margin-top: 12px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .04em;
  color: var(--ink-soft); text-align: center; opacity: .8;
}

/* ---------- responsivo ---------- */
@media (max-width: 380px) {
  .hero { height: 350px; }
  .headline { font-size: 28px; }
}
@media (min-width: 700px) {
  .stage { align-items: flex-start; }
  .col { padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .fig.center, .cta, .price-tag, .fig-foil, .cta .shine { animation: none; }
}

/* ============================================================
   === VERSÃO B — extras (3D tilt, holo dinâmico, selos) ===
   ============================================================ */

/* hero ganha perspectiva; o leque inclina seguindo o ponteiro */
.hero {
  perspective: 1100px;
  perspective-origin: 50% 40%;
  height: 408px;
  margin-top: 14px;
}
.card-fan {
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .14s ease-out;
  will-change: transform;
}
/* na B o card central não "flutua": ele responde ao tilt */
.fig.center {
  animation: none;
  box-shadow: 0 30px 60px -22px rgba(8,16,40,.6), 0 10px 22px -10px rgba(8,16,40,.4);
}
.fig.center .fig-inner { transform: translateZ(34px); }
.fig.left  { transform: translate(-50%,-50%) translateX(-90px) translateY(10px) rotate(-12deg) scale(.88) translateZ(-30px); }
.fig.right { transform: translate(-50%,-50%) translateX(90px) translateY(10px) rotate(12deg) scale(.88) translateZ(-30px); }

/* "a nossa" — card central = LENDÁRIA (destaque a mais): moldura DOURADA + halo + selo bright.
   Mantém o holográfico no inner; os laterais ("gerados") seguem padrão. ADR-0010. */
.fig.featured {
  background: linear-gradient(160deg, #ffe06a, #e0a200 60%, #b87d00);
}
.fig.center.featured {
  box-shadow: 0 0 26px 3px rgba(255,196,0,.5), 0 30px 60px -22px rgba(8,16,40,.6), 0 10px 22px -10px rgba(8,16,40,.4);
}
.fig.featured .rarity {
  background: linear-gradient(100deg, #fff1ad, #ffce3a 45%, #ffad00);
  box-shadow: 0 2px 9px rgba(255,173,0,.55);
}

/* variante de IMAGEM CHEIA — figurinha de produção (teal/gold) preenche o card, sem a moldura
   verde; o brilho holográfico (.fig-foil/.fig-glare) entra por cima. ADR-0010. */
.fig.imgcard { padding: 0; background: #0b1020; }
.fig.imgcard .fig-inner { border-radius: 18px; background: none; }
.fig-full { width: 100%; height: 100%; object-fit: cover; display: block; }

/* foil holográfico controlado pelo ângulo (vars --gx/--gy do leque) */
.fig-foil {
  background-size: 200% 200%;
  background-position: var(--gx, 50%) var(--gy, 50%);
  animation: none;
  opacity: .85;
  transition: background-position .12s ease-out;
}
/* brilho especular que cruza o card conforme inclina */
.fig-glare {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  border-radius: 14px; mix-blend-mode: overlay;
  background: radial-gradient(120px 120px at var(--gx,50%) var(--gy,50%),
              rgba(255,255,255,.55), rgba(255,255,255,0) 70%);
  transition: background .12s ease-out;
}
.no-foil .fig-glare { display: none; }

/* número do craque sobre a foto */
.fig-num {
  position: absolute; left: 8px; bottom: 6px; z-index: 3;
  font-family: 'Anton', sans-serif;
  font-size: 40px; line-height: .8; color: #fff;
  text-shadow: 0 2px 0 rgba(0,0,0,.35), 0 0 18px rgba(0,0,0,.25);
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--ink) 55%, transparent);
}

/* selo de raridade */
.rarity {
  position: absolute; top: 10px; left: 9px; z-index: 4;
  font-family: 'Anton', sans-serif; font-size: 8px; letter-spacing: .08em;
  color: var(--ink);
  background: linear-gradient(100deg, #ffe27a, #ffc400 45%, #ffb300);
  padding: 4px 7px 3px; border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}

/* pílula de edição limitada acima do título */
.limited-pill {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 2px 0 14px;
  white-space: nowrap;
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  color: var(--bg);
  font-weight: 600; font-size: 12px; letter-spacing: .02em;
  padding: 7px 14px; border-radius: 999px;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,.35);
}
.ld-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #ff5252; box-shadow: 0 0 0 0 rgba(255,82,82,.6);
  animation: ldpulse 1.6s ease-out infinite;
}
@keyframes ldpulse {
  0% { box-shadow: 0 0 0 0 rgba(255,82,82,.6); }
  100% { box-shadow: 0 0 0 7px rgba(255,82,82,0); }
}

/* passo a passo */
.steps {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-top: 16px; flex-wrap: nowrap;
}
.step {
  display: flex; align-items: center; gap: 6px;
  background: color-mix(in srgb, #fff 78%, var(--bg));
  color: var(--ink);
  font-weight: 600; font-size: 12px;
  padding: 8px 11px; border-radius: 999px;
  box-shadow: 0 3px 8px -4px rgba(0,0,0,.25);
  white-space: nowrap;
}
.step .sn {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-family: 'Anton', sans-serif; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.step-arrow { font-family: 'Anton', sans-serif; color: var(--ink); opacity: .5; font-size: 16px; }

/* contador "hoje" na prova social */
.proof-count .live {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--accent);
}

@media (max-width: 380px) {
  .steps { gap: 3px; }
  .step { font-size: 11px; padding: 7px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .card-fan { transition: none; }
  .ld-dot { animation: none; }
}
