/* Mestres Play · migração dos vitalícios com upgrade (13/11/2026; migracao.js).
   As janelas do upgrade, os grupos na Comunidade e o seletor da prévia. Classes com prefixo mig-. Sem os campos novos no
   content_tree, nenhum destes elementos existe na página.
   Não há faixa no início (tirada em 14/11/2026): dentro da plataforma o upgrade aparece só nas janelas.
   O desenho das janelas (14/11/2026) é o do pop-up UPGRADE+ aprovado pelo Tiago
   (mestres-play-black/implantacao/previas-migracao/popup-upgrade/popup-upgrade.html):
     - cartão quase preto com um halo lima no alto à direita e um menta embaixo à esquerda; a borda é uma luz que gira
       (conic-gradient com @property --mig-ang; onde o navegador não anima a variável, a borda fica parada) e faíscas sobem
       atrás do conteúdo;
     - "Opcional para vitalícios" e o X; a palavra UPGRADE com um brilho que passa e o "+" que respira, com dois anéis que se
       abrem; o título e o texto (o começo em negrito);
     - os mini pôsteres caem um depois do outro, flutuam e um reflexo passa por cima; o Booster acende os 12 meses;
     - a caixa do tempo: o relógio, a frase e a barra que enche (com uma luz que corre por ela);
     - o botão com o anel que pulsa e o brilho que varre; o cartão entra com uma mola.
   Não tem nada do desenho da janela de oferta (ofertas.css): só os nomes com-oferta-cta, com-oferta-recusar e
   com-oferta-fechar (ganchos dos testes), aqui sobrescritos, e o fundo escurecido das ofertas (com-gatilho-fundo) atrás da
   janela do centro. Cores: lima #c5f76b (e #b4e05c no botão), menta #36edb3, texto #f5f7f2, cinza #a9b0a4.
   Com prefers-reduced-motion nada se mexe e tudo aparece no estado final (meses acesos, barra cheia até onde vai).
   A janela grande do primeiro acesso (14/11/2026) usa as artes e o verde-menta (#36edb3) do Booster da página do upgrade e a
   mesma língua do cartão (UPGRADE+, caixa do tempo, borda de luz, faíscas e o botão que pulsa). */

@property --mig-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* ---------------------------------------------------------------- peças divididas pelas janelas */
/* a borda de luz que gira (cartão do canto, do centro e a caixa da janela grande) */
.mig-up::before, .mig-g-caixa::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; box-sizing: border-box; padding: 1.5px;
  border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--mig-ang), rgba(197, 247, 107, .08) 0deg, rgba(197, 247, 107, .08) 200deg, #c5f76b 280deg, #36edb3 320deg, rgba(197, 247, 107, .08) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  -webkit-animation: mig-gira 4.5s linear infinite; animation: mig-gira 4.5s linear infinite;
}
/* as faíscas que sobem atrás do conteúdo */
.mig-faiscas { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none; }
.mig-faiscas i {
  position: absolute; bottom: -6px; left: 50%; width: 3px; height: 3px; border-radius: 50%; background: #c5f76b; box-shadow: 0 0 8px #c5f76b; opacity: 0;
  -webkit-animation: mig-sobe 6s linear infinite; animation: mig-sobe 6s linear infinite;
}
.mig-faiscas i:nth-child(1) { left: 12%; }
.mig-faiscas i:nth-child(2) { left: 28%; -webkit-animation-delay: 1.6s; animation-delay: 1.6s; background: #36edb3; box-shadow: 0 0 8px #36edb3; }
.mig-faiscas i:nth-child(3) { left: 47%; -webkit-animation-delay: 3.1s; animation-delay: 3.1s; }
.mig-faiscas i:nth-child(4) { left: 66%; -webkit-animation-delay: .8s; animation-delay: .8s; background: #fff; box-shadow: 0 0 8px #fff; }
.mig-faiscas i:nth-child(5) { left: 83%; -webkit-animation-delay: 2.4s; animation-delay: 2.4s; }
.mig-faiscas i:nth-child(6) { left: 92%; -webkit-animation-delay: 4.2s; animation-delay: 4.2s; background: #36edb3; box-shadow: 0 0 8px #36edb3; }
.mig-faiscas i:nth-child(7) { left: 38%; -webkit-animation-delay: 5s; animation-delay: 5s; }
.mig-faiscas i:nth-child(8) { left: 75%; -webkit-animation-delay: 3.7s; animation-delay: 3.7s; background: #fff; box-shadow: 0 0 8px #fff; }

/* UPGRADE e o "+": tudo em em, a partir do tamanho da palavra (58 px no cartão, maior na janela grande) */
.mig-marca { display: flex; align-items: flex-start; gap: .207em; margin: 10px 0 0; padding: 0; font-size: 58px; line-height: .9; }
.mig-marca-palavra {
  font-weight: 800; letter-spacing: -.05em; color: transparent; -webkit-text-fill-color: transparent;
  background: linear-gradient(100deg, #fff 0%, #fff 30%, #eaffc2 42%, #fff 50%, #fff 62%, #d7ff8f 80%, #c5f76b 100%);
  background-size: 250% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text;
  -webkit-filter: drop-shadow(0 4px 24px rgba(197, 247, 107, .25)); filter: drop-shadow(0 4px 24px rgba(197, 247, 107, .25));
  -webkit-animation: mig-marca-brilho 4s ease-in-out infinite; animation: mig-marca-brilho 4s ease-in-out infinite;
}
.mig-marca-mais {
  position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: 1.2em; height: 1.2em; margin-top: .067em;
  border-radius: .367em; font-size: .517em; font-weight: 900; line-height: 1; color: #0f1608;
  background: linear-gradient(160deg, #e4ff9e, #b4e05c); box-shadow: 0 0 22px rgba(197, 247, 107, .7), inset 0 1px 0 rgba(255, 255, 255, .6);
  -webkit-animation: mig-respira 1.8s ease-in-out infinite; animation: mig-respira 1.8s ease-in-out infinite;
}
.mig-marca-mais b { display: block; margin-top: -.1em; font-weight: 900; }
.mig-marca-anel {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; box-sizing: border-box; border-radius: inherit; border: 2px solid #c5f76b; opacity: 0;
  -webkit-animation: mig-anel 1.8s ease-out infinite; animation: mig-anel 1.8s ease-out infinite;
}
.mig-marca-anel + .mig-marca-anel { -webkit-animation-delay: .9s; animation-delay: .9s; }

/* a caixa do tempo: o relógio, a frase e a barra (o tempo que falta sobre os 7 dias) */
.mig-tempo { box-sizing: border-box; margin: 16px 0 0; padding: 10px 12px 11px; border-radius: 13px; background: rgba(197, 247, 107, .07); border: 1px solid rgba(197, 247, 107, .22); }
.mig-tempo:empty { display: none; } /* sem prazo_em: nada de caixa vazia */
.mig-prazo { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; font-size: 13px; font-weight: 600; line-height: 1.35; color: #e3f5c2; font-variant-numeric: tabular-nums; }
.mig-prazo svg { flex: none; width: 15px; height: 15px; display: block; color: #c5f76b; }
.mig-prazo b { color: #fff; font-weight: 800; }
.mig-prazo em { font-style: normal; font-weight: 800; color: #c5f76b; font-variant-numeric: tabular-nums; }
.mig-prazo-fim { white-space: nowrap; } /* "acaba em 13:59:59" fica junto */
.mig-barra { position: relative; height: 6px; margin-top: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.mig-barra b {
  position: absolute; top: 0; bottom: 0; left: 0; overflow: hidden; border-radius: inherit;
  background: linear-gradient(90deg, #36edb3, #c5f76b); box-shadow: 0 0 12px rgba(197, 247, 107, .6);
  -webkit-transform-origin: left center; transform-origin: left center;
  -webkit-animation: mig-enche 1.2s .9s cubic-bezier(.2, .9, .3, 1) both; animation: mig-enche 1.2s .9s cubic-bezier(.2, .9, .3, 1) both;
}
.mig-barra b::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
  -webkit-transform: translateX(-100%); transform: translateX(-100%);
  -webkit-animation: mig-corre 2.2s 2s ease-in-out infinite; animation: mig-corre 2.2s 2s ease-in-out infinite;
}

/* o brilho que varre o botão (cartão e janela grande) */
.mig-up .com-oferta-cta::after, .mig-g-cta::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -50%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent); -webkit-transform: skewX(-20deg); transform: skewX(-20deg);
  -webkit-animation: mig-varre 3s 1.4s ease-in-out infinite; animation: mig-varre 3s 1.4s ease-in-out infinite;
}

/* ---------------------------------------------------------------- o cartão UPGRADE+ (#mig-janela)
   Canto: embaixo à direita no computador; no celular na largura, acima da barra de baixo. Centro: no meio, com o fundo. */
.mig-up {
  position: fixed; right: 24px; bottom: 24px; z-index: 150; width: 412px; max-width: calc(100vw - 24px);
  max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  box-sizing: border-box; padding: 20px 22px; border-radius: 26px; isolation: isolate; text-align: left;
  color: #f5f7f2; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(197, 247, 107, .2), transparent 55%),
    radial-gradient(90% 60% at 0% 100%, rgba(54, 237, 179, .1), transparent 60%),
    linear-gradient(180deg, #0f150f, #090c09);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 60px rgba(197, 247, 107, .12), inset 0 1px 0 rgba(255, 255, 255, .07);
  -webkit-animation: mig-up-entra .8s cubic-bezier(.2, 1.3, .35, 1) both; animation: mig-up-entra .8s cubic-bezier(.2, 1.3, .35, 1) both;
}
.mig-up::-webkit-scrollbar { display: none; }
.mig-up * { box-sizing: border-box; }
.mig-up.mig-up-centro {
  right: auto; bottom: auto; left: 50%; top: 50%; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%);
  -webkit-animation-name: mig-up-entra-centro; animation-name: mig-up-entra-centro;
}
.mig-up-fundo { z-index: 149; }

/* janela_imagem: uma faixa no alto do cartão */
.mig-up-banner { margin: 0 0 14px; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid rgba(255, 255, 255, .08); }
.mig-up-banner img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }

.mig-up-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mig-up-tag {
  display: inline-flex; align-items: center; gap: 7px; min-width: 0; margin: 0; padding: 0;
  font-size: 11px; font-weight: 700; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; color: #c5f76b;
}
.mig-up-tag::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #c5f76b; box-shadow: 0 0 10px #c5f76b; }
.mig-up .com-oferta-fechar {
  position: static; flex: none; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; min-height: 0; padding: 0;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: #cfd3cb; cursor: pointer;
  box-shadow: none; -webkit-transition: background-color .2s ease, color .2s ease; transition: background-color .2s ease, color .2s ease;
}
.mig-up .com-oferta-fechar:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.mig-up .com-oferta-fechar svg { width: 15px; height: 15px; display: block; }

.mig-up h3 {
  margin: 12px 0 0; padding: 0; font-family: inherit; font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em;
  color: #f5f7f2; overflow-wrap: anywhere; background: none;
}
.mig-up-txt { margin: 4px 0 0; padding: 0; font-size: 14.5px; line-height: 1.45; color: #a9b0a4; overflow-wrap: anywhere; }
.mig-up-txt b { color: #f5f7f2; font-weight: 600; }

/* os mini pôsteres: tudo em em, a partir de 10 px (o tamanho do pôster do cartão) */
.mig-po-lista { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 16px 0 0; padding: 0; }
.mig-po {
  position: relative; display: block; min-width: 0; margin: 0; padding: 0; aspect-ratio: 600 / 1075; overflow: hidden;
  border-radius: 1.1em; border: 1px solid rgba(255, 255, 255, .1); background: #0a0c0b; box-shadow: 0 10px 24px rgba(0, 0, 0, .55);
  font-size: 10px; line-height: 1.2;
  -webkit-animation: mig-po-cai .7s cubic-bezier(.2, 1.2, .35, 1) both, mig-po-flutua 5s ease-in-out infinite alternate;
  animation: mig-po-cai .7s cubic-bezier(.2, 1.2, .35, 1) both, mig-po-flutua 5s ease-in-out infinite alternate;
}
.mig-po:nth-child(1) { -webkit-animation-delay: .35s, 0s; animation-delay: .35s, 0s; }
.mig-po:nth-child(2) { -webkit-animation-delay: .45s, -1.2s; animation-delay: .45s, -1.2s; }
.mig-po:nth-child(3) { -webkit-animation-delay: .55s, -2.4s; animation-delay: .55s, -2.4s; }
.mig-po:nth-child(4) { -webkit-animation-delay: .65s, -3.6s; animation-delay: .65s, -3.6s; }
.mig-po-img img { position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.mig-po-reflexo {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%);
  -webkit-transform: translateX(-130%); transform: translateX(-130%);
  -webkit-animation: mig-po-reflexo 4.5s ease-in-out infinite; animation: mig-po-reflexo 4.5s ease-in-out infinite;
}
.mig-po:nth-child(2) .mig-po-reflexo { -webkit-animation-delay: 1.1s; animation-delay: 1.1s; }
.mig-po:nth-child(3) .mig-po-reflexo { -webkit-animation-delay: 2.2s; animation-delay: 2.2s; }
.mig-po:nth-child(4) .mig-po-reflexo { -webkit-animation-delay: 3.3s; animation-delay: 3.3s; }
.mig-po-selo {
  position: absolute; left: 50%; bottom: .706em; z-index: 2; display: inline-flex; align-items: center; gap: .47em; padding: .353em .706em;
  -webkit-transform: translateX(-50%); transform: translateX(-50%); white-space: nowrap;
  border-radius: 999px; background: rgba(8, 10, 8, .82); border: 1px solid rgba(255, 255, 255, .14);
  font-size: .85em; font-weight: 800; line-height: 1.2; letter-spacing: .06em; color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.mig-po-vivo {
  flex: none; display: block; width: .59em; height: .59em; border-radius: 50%; background: #ff3b47;
  -webkit-animation: mig-po-vivo 1.4s infinite; animation: mig-po-vivo 1.4s infinite;
}
.mig-po-nome { position: absolute; top: 9%; left: 0; right: 0; z-index: 1; text-align: center; font-size: 1.05em; font-weight: 800; letter-spacing: -.01em; color: #fff; }
/* Booster em miniatura: o 2027 e os 12 meses acendendo */
.mig-po-boost {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 45%, #0f2a20, #050907 75%); border-color: rgba(54, 237, 179, .35);
}
.mig-po-ano {
  display: block; margin-top: -.24em; font-size: 2.5em; font-weight: 900; letter-spacing: -.06em; color: transparent; -webkit-text-fill-color: transparent;
  background: linear-gradient(180deg, #eafff6, #36edb3 60%, #0fa57a); -webkit-background-clip: text; background-clip: text;
  -webkit-filter: drop-shadow(0 0 10px rgba(54, 237, 179, .7)); filter: drop-shadow(0 0 10px rgba(54, 237, 179, .7));
}
.mig-po-meses { display: grid; grid-template-columns: repeat(4, .6em); gap: .4em; margin-top: .8em; }
/* parado, o mês fica aceso (o estado final): a animação só o apaga por um instante a cada volta */
.mig-po-meses i {
  display: block; width: .6em; height: .6em; border-radius: .2em; background: #36edb3; box-shadow: 0 0 6px #36edb3;
  -webkit-animation: mig-po-mes 3.6s infinite; animation: mig-po-mes 3.6s infinite;
}
.mig-po-meses i:nth-child(2) { -webkit-animation-delay: .1s; animation-delay: .1s; }
.mig-po-meses i:nth-child(3) { -webkit-animation-delay: .2s; animation-delay: .2s; }
.mig-po-meses i:nth-child(4) { -webkit-animation-delay: .3s; animation-delay: .3s; }
.mig-po-meses i:nth-child(5) { -webkit-animation-delay: .4s; animation-delay: .4s; }
.mig-po-meses i:nth-child(6) { -webkit-animation-delay: .5s; animation-delay: .5s; }
.mig-po-meses i:nth-child(7) { -webkit-animation-delay: .6s; animation-delay: .6s; }
.mig-po-meses i:nth-child(8) { -webkit-animation-delay: .7s; animation-delay: .7s; }
.mig-po-meses i:nth-child(9) { -webkit-animation-delay: .8s; animation-delay: .8s; }
.mig-po-meses i:nth-child(10) { -webkit-animation-delay: .9s; animation-delay: .9s; }
.mig-po-meses i:nth-child(11) { -webkit-animation-delay: 1s; animation-delay: 1s; }
.mig-po-meses i:nth-child(12) { -webkit-animation-delay: 1.1s; animation-delay: 1.1s; }
/* Arsenal em miniatura: as artes das bibliotecas em leque */
.mig-po-ars { background: radial-gradient(90% 60% at 50% 60%, rgba(197, 247, 107, .22), transparent 70%), linear-gradient(180deg, #101410, #070908); border-color: rgba(197, 247, 107, .3); }
.mig-po-leque { position: absolute; left: 50%; top: 55%; display: block; width: 78%; aspect-ratio: 640 / 357; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); }
.mig-po-leque img {
  position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100%; object-fit: cover;
  border-radius: .4em; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 4px 10px rgba(0, 0, 0, .6);
}
.mig-po-leque img:nth-child(1) { -webkit-transform: translate(-6%, -78%) rotate(-7deg); transform: translate(-6%, -78%) rotate(-7deg); }
.mig-po-leque img:nth-child(2) { -webkit-transform: translate(6%, -26%) rotate(5deg); transform: translate(6%, -26%) rotate(5deg); }
.mig-po-leque img:nth-child(3) { -webkit-transform: translate(-5%, 26%) rotate(-4deg); transform: translate(-5%, 26%) rotate(-4deg); }
.mig-po-leque img:nth-child(4) { -webkit-transform: translate(6%, 78%) rotate(6deg); transform: translate(6%, 78%) rotate(6deg); }
/* fase "link": só o Booster e o Arsenal, um pouco maiores, no meio */
.mig-po-lista[data-n="2"] { grid-template-columns: repeat(2, 112px); justify-content: center; gap: 14px; }
.mig-po-lista[data-n="2"] .mig-po { font-size: 13px; }

/* os botões */
.mig-up-acoes { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; }
.mig-up .com-oferta-cta {
  position: relative; flex: 1 1 auto; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; min-height: 0; padding: 0 16px; overflow: hidden; border: 0; border-radius: 14px;
  background: linear-gradient(180deg, #dcff8c, #b4e05c); color: #0f1608; font-family: inherit; font-size: 16px; font-weight: 800; letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap; -webkit-filter: none; filter: none; -webkit-transform: none; transform: none;
  box-shadow: 0 10px 30px rgba(197, 247, 107, .35), inset 0 1px 0 rgba(255, 255, 255, .6);
  -webkit-transition: -webkit-transform .15s ease, -webkit-filter .15s ease; transition: transform .15s ease, filter .15s ease;
  -webkit-animation: mig-cta-pulsa 2s ease-out infinite; animation: mig-cta-pulsa 2s ease-out infinite;
}
.mig-up .com-oferta-cta:hover { gap: 9px; color: #0f1608; -webkit-transform: translateY(-1px); transform: translateY(-1px); -webkit-filter: brightness(1.04); filter: brightness(1.04); }
.mig-up .com-oferta-cta > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mig-up .com-oferta-cta svg { flex: none; width: 18px; height: 18px; display: block; }
.mig-up .com-oferta-recusar {
  flex: none; height: 50px; min-height: 0; padding: 0 14px; border: 0; border-radius: 14px; background: transparent; color: #a9b0a4; box-shadow: none;
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer;
  -webkit-transition: background-color .2s ease, color .2s ease; transition: background-color .2s ease, color .2s ease;
}
.mig-up .com-oferta-recusar:hover { color: #f5f7f2; background: rgba(255, 255, 255, .05); }
.mig-up .com-oferta-fechar:focus-visible, .mig-up .com-oferta-recusar:focus-visible, .mig-up .com-oferta-cta:focus-visible { outline: 2px solid #dbefb3; outline-offset: 3px; }

/* celular e tablet: acima da barra de baixo (62 px + o respiro do aparelho, como no novo-visual.css), 12 px da borda */
@media (max-width: 800px) {
  .mig-up.mig-up-canto {
    right: 12px; bottom: calc(71px + max(24px, env(safe-area-inset-bottom)));
    max-height: calc(100vh - 143px - max(24px, env(safe-area-inset-bottom))); max-height: calc(100dvh - 143px - max(24px, env(safe-area-inset-bottom)));
  }
}
@media (max-width: 600px) {
  .mig-up { padding: 18px 18px 16px; border-radius: 24px; }
  .mig-marca { font-size: 50px; }
  .mig-up h3 { font-size: 18px; }
  .mig-up-txt { font-size: 14px; }
  .mig-po-lista { gap: 8px; margin-top: 14px; }
  .mig-tempo { margin-top: 14px; }
  .mig-up-acoes { margin-top: 14px; }
}

/* ---------------------------------------------------------------- o "+" que fica no canto (fase "janela")
   Durante os 7 dias, depois da janela grande: o "+" verde pulsando no canto de baixo à direita, em todas as telas, com a
   etiqueta de quantos dias faltam; no computador, passar o mouse mostra "Upgrade · faltam N dias". Clicar abre a janela do
   canto (migracao.js, sincronizarMais). Fica por baixo dos painéis (sino, avisos: z 94+) e das janelas, e acima da barra de
   baixo do celular, no mesmo lugar onde a janela do canto abre. */
.mig-mais {
  position: fixed; right: 24px; bottom: 24px; z-index: 58; display: flex; align-items: center; gap: 12px;
  margin: 0; padding: 0; border: 0; background: none; cursor: pointer; font-family: inherit; -webkit-tap-highlight-color: transparent;
  -webkit-animation: mig-mais-entra .55s cubic-bezier(.2, 1.3, .35, 1) both; animation: mig-mais-entra .55s cubic-bezier(.2, 1.3, .35, 1) both;
}
.mig-mais-bola {
  position: relative; display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 18px;
  background: linear-gradient(160deg, #e4ff9e, #b4e05c); color: #0f1608;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .55), 0 0 28px rgba(197, 247, 107, .55), inset 0 1px 0 rgba(255, 255, 255, .6);
  -webkit-animation: mig-mais-respira 1.8s ease-in-out infinite; animation: mig-mais-respira 1.8s ease-in-out infinite;
}
.mig-mais-bola b { display: block; margin-top: -3px; font-size: 36px; font-weight: 900; line-height: 1; }
.mig-mais-anel {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 18px; border: 2px solid #c5f76b; opacity: 0; pointer-events: none;
  -webkit-animation: mig-mais-anel 1.8s ease-out infinite; animation: mig-mais-anel 1.8s ease-out infinite;
}
.mig-mais-anel2 { -webkit-animation-delay: .9s; animation-delay: .9s; }
/* quantos dias faltam, numa etiqueta escura presa em cima do "+" */
.mig-mais-dias {
  position: absolute; top: -9px; right: -8px; padding: 3px 7px; border-radius: 999px; white-space: nowrap;
  background: #0c100c; border: 1px solid rgba(197, 247, 107, .45); color: #e3f5c2; font-size: 10.5px; font-weight: 800; line-height: 1.2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .5); font-variant-numeric: tabular-nums;
}
.mig-mais-rotulo {
  padding: 9px 13px; border-radius: 12px; white-space: nowrap; pointer-events: none;
  background: rgba(12, 16, 12, .94); border: 1px solid rgba(197, 247, 107, .3); color: #e3f5c2; font-size: 13px; font-weight: 700;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .5); opacity: 0; -webkit-transform: translateX(8px); transform: translateX(8px);
  -webkit-transition: opacity .2s ease, -webkit-transform .2s ease; transition: opacity .2s ease, transform .2s ease;
}
.mig-mais:hover .mig-mais-rotulo, .mig-mais:focus-visible .mig-mais-rotulo { opacity: 1; -webkit-transform: none; transform: none; }
.mig-mais:focus { outline: none; }
.mig-mais:focus-visible .mig-mais-bola { outline: 2px solid #dbefb3; outline-offset: 4px; }
@media (max-width: 800px) {
  .mig-mais { right: 14px; bottom: calc(71px + max(24px, env(safe-area-inset-bottom))); }
  .mig-mais-bola { width: 54px; height: 54px; border-radius: 17px; }
  .mig-mais-anel { border-radius: 17px; }
  .mig-mais-rotulo { display: none; }
}
@-webkit-keyframes mig-mais-entra { from { opacity: 0; -webkit-transform: scale(.4); } to { opacity: 1; -webkit-transform: none; } }
@keyframes mig-mais-entra { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@-webkit-keyframes mig-mais-respira { 0%, 100% { -webkit-transform: scale(1) rotate(0deg); } 50% { -webkit-transform: scale(1.08) rotate(-6deg); } }
@keyframes mig-mais-respira { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.08) rotate(-6deg); } }
@-webkit-keyframes mig-mais-anel { 0% { opacity: .9; -webkit-transform: scale(1); } 100% { opacity: 0; -webkit-transform: scale(1.9); } }
@keyframes mig-mais-anel { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
@media (prefers-reduced-motion: reduce) {
  .mig-mais, .mig-mais-bola, .mig-mais-anel { -webkit-animation: none; animation: none; }
}

/* ---------------------------------------------------------------- grupos na Comunidade
   Uma caixa só. Com dois grupos ou mais, as linhas dividem a caixa (o fundo da caixa é a linha entre eles). */
.mig-grupos {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; margin: 0 0 16px; overflow: hidden;
  border: 1px solid rgba(180, 224, 92, .22); border-radius: 16px; background: rgba(180, 224, 92, .16);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Inter, sans-serif; -webkit-font-smoothing: antialiased;
}
a.mig-grupo {
  display: flex; align-items: center; gap: 14px; min-width: 0; padding: 14px 16px; color: #f5f5f7; text-decoration: none;
  background: radial-gradient(70% 240% at 0% 50%, rgba(180, 224, 92, .1), rgba(180, 224, 92, 0) 70%), #1b1c1e;
  -webkit-transition: background-color .2s ease; transition: background-color .2s ease;
}
a.mig-grupo:hover { background-color: #232526; color: #f5f5f7; }
a.mig-grupo:focus-visible { outline: 2px solid #b4e05c; outline-offset: -3px; border-radius: 14px; }
.mig-grupo-ico {
  position: relative; flex: none; width: 44px; height: 44px; border-radius: 13px; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2b3a12, #0e1013); color: #c5f76b;
}
.mig-grupo-ico svg { width: 22px; height: 22px; display: block; }
.mig-grupo-ico img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.mig-grupo-txt { flex: 1 1 auto; min-width: 0; }
.mig-grupo-txt b { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; overflow-wrap: anywhere; }
.mig-grupo-txt small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.4; color: #a5a5ad; }
.mig-grupo-ir {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; box-sizing: border-box; padding: 0 14px;
  border: 1px solid rgba(180, 224, 92, .4); border-radius: 11px; color: #dbefb3; font-size: 13px; font-weight: 700; white-space: nowrap;
  -webkit-transition: background-color .2s ease, color .2s ease; transition: background-color .2s ease, color .2s ease;
}
.mig-grupo-ir svg { width: 14px; height: 14px; display: block; }
a.mig-grupo:hover .mig-grupo-ir { background: #b4e05c; border-color: #b4e05c; color: #10160a; }
@media (min-width: 900px) {
  /* dois ou mais: lado a lado, de dois em dois; o que sobra sozinho na última linha ocupa a linha toda */
  .mig-grupos:not([data-n="1"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mig-grupos:not([data-n="1"]) > .mig-grupo:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  a.mig-grupo, .mig-grupo-ir { -webkit-transition: none; transition: none; }
}

/* ---------------------------------------------------------------- seletor da prévia (só fora do ar, com ?previa=migracao) */
.mig-previa {
  position: fixed; left: 12px; bottom: 12px; z-index: 1600; display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px;
  border: 1px dashed rgba(180, 224, 92, .55); border-radius: 12px; background: rgba(18, 18, 20, .95); color: #dbefb3;
  font: 700 12px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif; box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
}
.mig-previa select {
  max-width: 62vw; padding: 6px 8px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 8px; background: #232326; color: #f5f5f7;
  font: 600 13px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
}
@media (max-width: 800px) {
  /* celular: um botão pequeno no meio do cabeçalho, para não cobrir a janela nem a barra de baixo; o seletor de verdade fica
     por cima dele, invisível, e o toque abre a lista do aparelho */
  .mig-previa { top: 14px; bottom: auto; left: calc(50% - 31px); width: 62px; height: 32px; box-sizing: border-box; padding: 0; justify-content: center; border-radius: 999px; font-size: 11px; }
  .mig-previa select { position: absolute; top: 0; left: 0; width: 100%; height: 100%; max-width: none; padding: 0; opacity: 0; }
}
@media (max-width: 680px) {
  /* com a janela grande aberta (tela cheia no celular), ao lado do X, longe do título */
  html.mig-g-aberta .mig-previa { left: auto; right: 62px; }
}

/* ---------------------------------------------------------------- janela grande do primeiro acesso
   No meio da tela, com o fundo escurecido. UPGRADE+ grande, o título, a caixa do tempo, quatro pôsteres animados (Bootcamp,
   Implementações, Booster 2027, Arsenal) e o botão. No celular vira tela cheia: os pôsteres correm de lado e o botão fica
   fixo embaixo. */
html.mig-g-aberta, html.mig-g-aberta body { overflow: hidden; }
.mig-grande {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1500; display: flex; align-items: center; justify-content: center;
  padding: 24px; box-sizing: border-box; color: #f5f7f2;
  background: radial-gradient(60% 50% at 50% 42%, rgba(180, 224, 92, .1), transparent 70%), rgba(5, 6, 6, .8);
  -webkit-backdrop-filter: blur(12px) saturate(120%); backdrop-filter: blur(12px) saturate(120%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Inter, sans-serif; -webkit-font-smoothing: antialiased;
  -webkit-animation: mig-g-fundo .35s ease both; animation: mig-g-fundo .35s ease both;
}
.mig-grande.mig-g-saindo { -webkit-animation: mig-g-some .22s ease both; animation: mig-g-some .22s ease both; }
.mig-g-caixa {
  position: relative; isolation: isolate; width: 100%; max-width: 980px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow: auto;
  box-sizing: border-box; padding: 30px 32px 26px; border-radius: 30px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(70% 55% at 100% 0%, rgba(197, 247, 107, .17), transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgba(54, 237, 179, .09), transparent 60%),
    linear-gradient(180deg, #0f150f, #090c09);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .65), 0 0 80px rgba(197, 247, 107, .1), inset 0 1px 0 rgba(255, 255, 255, .07);
  -webkit-animation: mig-g-entra .7s cubic-bezier(.2, 1.2, .35, 1) both; animation: mig-g-entra .7s cubic-bezier(.2, 1.2, .35, 1) both;
}
.mig-g-caixa::-webkit-scrollbar { display: none; }
.mig-g-caixa .mig-faiscas i { -webkit-animation-duration: 7s; animation-duration: 7s; }
.mig-g-x {
  position: absolute; top: 16px; right: 16px; z-index: 3; width: 40px; height: 40px; padding: 0; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .06); color: #d5d6da;
  -webkit-transition: background-color .2s ease, color .2s ease; transition: background-color .2s ease, color .2s ease;
}
.mig-g-x svg { width: 18px; height: 18px; display: block; }
.mig-g-x:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.mig-g-topo { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 52px 24px 0; }
.mig-g-txt { min-width: 0; }
.mig-g-olho { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #c5f76b; }
.mig-g-olho::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #c5f76b; box-shadow: 0 0 12px #c5f76b; }
.mig-g-txt .mig-marca { margin: 12px 0 14px; font-size: 68px; }
.mig-g-txt h2 { margin: 0; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; font-weight: 700; letter-spacing: -.015em; color: #fff; }
.mig-g-sub { margin: 6px 0 0; max-width: 56ch; font-size: 16.5px; line-height: 1.45; color: #a9b0a4; }
.mig-g-sub b { color: #f5f7f2; font-weight: 600; }
.mig-g-prazo.mig-tempo { flex: none; width: 340px; margin: 0; padding: 12px 14px 13px; border-radius: 15px; }
.mig-g-prazo .mig-prazo { font-size: 14px; }
.mig-g-prazo .mig-prazo svg { width: 17px; height: 17px; }
.mig-g-prazo .mig-barra { height: 7px; margin-top: 10px; }

/* os quatro pôsteres: entram um depois do outro */
.mig-g-itens { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mig-gi { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; -webkit-animation: mig-gi-entra .7s cubic-bezier(.2, 1.2, .35, 1) both; animation: mig-gi-entra .7s cubic-bezier(.2, 1.2, .35, 1) both; }
.mig-gi:nth-child(1) { -webkit-animation-delay: .2s; animation-delay: .2s; }
.mig-gi:nth-child(2) { -webkit-animation-delay: .3s; animation-delay: .3s; }
.mig-gi:nth-child(3) { -webkit-animation-delay: .4s; animation-delay: .4s; }
.mig-gi:nth-child(4) { -webkit-animation-delay: .5s; animation-delay: .5s; }
.mig-gi-arte {
  position: relative; width: 100%; aspect-ratio: 600 / 1075; max-height: 46vh; overflow: hidden; border-radius: 18px;
  background: #0a0c0b; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}
.mig-gi-titulo {
  position: absolute; top: 8%; left: 6%; right: 6%; z-index: 2; text-align: center; font-size: clamp(18px, 2.1vw, 24px); line-height: 1.08;
  font-weight: 800; letter-spacing: -.02em; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .6);
}
/* os selos: o vidro escuro do cartão (AO VIVO com o ponto vermelho; o do Arsenal com o ∞) */
.mig-gi-chip {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 7px; margin-top: -14px; padding: 6px 12px; border-radius: 999px;
  background: rgba(8, 10, 8, .9); border: 1px solid rgba(255, 255, 255, .16); color: #fff; font-size: 11px; font-weight: 800; line-height: 1.2;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 6px 18px rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.mig-gi-ars .mig-gi-chip::before { content: "\221E"; font-size: 1.2em; line-height: 1; letter-spacing: 0; }
.mig-gi-vivo { width: 7px; height: 7px; border-radius: 50%; background: #ff3b47; -webkit-animation: mig-vivo 1.6s infinite; animation: mig-vivo 1.6s infinite; }

/* Bootcamp e Implementações: o pôster respira e um brilho passa de vez em quando */
.mig-gi-img img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transform-origin: 50% 60%;
  -webkit-animation: mig-flutua 7s ease-in-out infinite alternate; animation: mig-flutua 7s ease-in-out infinite alternate;
}
.mig-gi-img:nth-child(2) img { -webkit-animation-delay: -3.5s; animation-delay: -3.5s; }
.mig-gi-brilho {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .16) 50%, transparent 65%); -webkit-transform: translateX(-120%); transform: translateX(-120%);
  -webkit-animation: mig-brilho 5.5s ease-in-out 1.2s infinite; animation: mig-brilho 5.5s ease-in-out 1.2s infinite;
}
.mig-gi-img:nth-child(2) .mig-gi-brilho { -webkit-animation-delay: 2.6s; animation-delay: 2.6s; }

/* Booster 2027 (da página do upgrade): os 12 meses acendem, o ano enche (--bp, 0 a 1) e explode em faíscas */
.mig-gi-boost .mig-gi-arte {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 50%, #0f2a20, #060a08 72%); border-color: rgba(54, 237, 179, .32);
}
.mig-boost-luz {
  position: absolute; left: 50%; top: 48%; width: 92%; aspect-ratio: 1; border-radius: 50%;
  -webkit-transform: translate(-50%, -50%) scale(calc(.6 + var(--bp, 0) * .6)); transform: translate(-50%, -50%) scale(calc(.6 + var(--bp, 0) * .6));
  background: radial-gradient(circle, rgba(54, 237, 179, calc(.12 + var(--bp, 0) * .32)), transparent 65%);
  -webkit-transition: -webkit-transform .5s; transition: transform .5s;
}
.mig-boom .mig-boost-luz { -webkit-animation: mig-pulsa 2.6s ease-in-out 1.4s infinite; animation: mig-pulsa 2.6s ease-in-out 1.4s infinite; }
.mig-boost-ano {
  position: relative; z-index: 1; margin-top: 10%; font-size: clamp(46px, 5.2vw, 62px); line-height: .9; font-weight: 800; letter-spacing: -.06em;
  -webkit-transition: -webkit-transform .5s cubic-bezier(.2, 1.6, .4, 1), -webkit-filter .5s; transition: transform .5s cubic-bezier(.2, 1.6, .4, 1), filter .5s;
}
.mig-boost-base { color: transparent; -webkit-text-stroke: 1.5px rgba(54, 237, 179, .4); }
.mig-boost-cheio {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; color: transparent;
  background: linear-gradient(180deg, #eafff6, #36edb3 55%, #0fa57a); -webkit-background-clip: text; background-clip: text;
  -webkit-clip-path: inset(calc(100% - var(--bp, 0) * 100%) 0 0 0); clip-path: inset(calc(100% - var(--bp, 0) * 100%) 0 0 0);
  -webkit-transition: -webkit-clip-path .35s; transition: clip-path .35s;
}
.mig-boom .mig-boost-ano { -webkit-transform: scale(1.1); transform: scale(1.1); -webkit-filter: drop-shadow(0 0 22px rgba(54, 237, 179, .9)); filter: drop-shadow(0 0 22px rgba(54, 237, 179, .9)); }
.mig-boost-faiscas { position: absolute; left: 50%; top: 46%; z-index: 1; width: 0; height: 0; }
.mig-boost-faiscas i { position: absolute; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: var(--k, #36edb3); box-shadow: 0 0 8px var(--k, #36edb3); opacity: 0; }
.mig-boom .mig-boost-faiscas i { -webkit-animation: mig-faisca 1.4s cubic-bezier(.1, .7, .3, 1) forwards; animation: mig-faisca 1.4s cubic-bezier(.1, .7, .3, 1) forwards; -webkit-animation-delay: var(--d, 0s); animation-delay: var(--d, 0s); }
.mig-boost-meses { list-style: none; position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; width: calc(100% - 22px); margin: 16px 0 0; padding: 0; }
.mig-boost-meses li {
  padding: 6px 0 5px; border-radius: 6px; text-align: center; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; color: rgba(244, 247, 241, .38);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); -webkit-transition: all .3s; transition: all .3s;
}
.mig-boost-meses li.on { color: #062016; background: #36edb3; border-color: #36edb3; box-shadow: 0 0 12px rgba(54, 237, 179, .55); }

/* Arsenal sem prazo: as artes das bibliotecas (apps, skills, squads, prompts) em leque, flutuando. A pilha se mede pela ALTURA
   do pôster (21%; a largura vem da proporção das artes): o leque ocupa ~2,8 alturas de arte e assim cabe entre o título e o selo
   "Para sempre" em qualquer tela, inclusive com o pôster encolhido do computador baixo. */
.mig-gi-ars .mig-gi-arte { background: radial-gradient(90% 60% at 50% 62%, rgba(197, 247, 107, .22), transparent 70%), linear-gradient(180deg, #101410, #070908); border-color: rgba(197, 247, 107, .3); }
.mig-ars-pilha { position: absolute; left: 50%; top: 61%; width: auto; height: 21%; aspect-ratio: 640 / 357; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); }
.mig-ars-pilha img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .6); -webkit-animation: mig-ars 6s ease-in-out infinite; animation: mig-ars 6s ease-in-out infinite;
}
.mig-ars-1 { --x: -7%; --y: -90%; --r: -6deg; -webkit-animation-delay: 0s; animation-delay: 0s; }
.mig-ars-2 { --x: 7%; --y: -30%; --r: 5deg; -webkit-animation-delay: -1.5s; animation-delay: -1.5s; }
.mig-ars-3 { --x: -6%; --y: 30%; --r: -4deg; -webkit-animation-delay: -3s; animation-delay: -3s; }
.mig-ars-4 { --x: 6%; --y: 90%; --r: 6deg; -webkit-animation-delay: -4.5s; animation-delay: -4.5s; }

/* a nota e o botão (margem e respiro inteiros: a regra geral de footer do app.css somava 80 px vazios embaixo) */
.mig-g-pe { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 26px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.mig-g-nota { margin: 0; max-width: 52ch; font-size: 14.5px; line-height: 1.45; color: #a9b0a4; } /* sem preço: o upgrade é um opcional */
.mig-g-acoes { display: flex; align-items: center; gap: 10px; }
.mig-g-nao {
  min-height: 48px; padding: 0 18px; border: 0; border-radius: 14px; background: transparent; color: #a9b0a4; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  -webkit-transition: background-color .2s ease, color .2s ease; transition: background-color .2s ease, color .2s ease;
}
.mig-g-nao:hover { color: #f5f5f7; background: rgba(255, 255, 255, .05); }
.mig-g-cta {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; box-sizing: border-box;
  padding: 0 28px; border-radius: 15px; background: linear-gradient(180deg, #dcff8c, #b4e05c); color: #0f1608; font-size: 17px; font-weight: 800;
  letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(197, 247, 107, .35), inset 0 1px 0 rgba(255, 255, 255, .6);
  -webkit-transition: -webkit-transform .15s ease, -webkit-filter .15s ease; transition: transform .15s ease, filter .15s ease;
  -webkit-animation: mig-cta-pulsa 2s ease-out 1s infinite; animation: mig-cta-pulsa 2s ease-out 1s infinite;
}
.mig-g-cta svg { width: 18px; height: 18px; display: block; flex: none; }
.mig-g-cta:hover { color: #0f1608; -webkit-filter: brightness(1.04); filter: brightness(1.04); -webkit-transform: translateY(-1px); transform: translateY(-1px); }
.mig-g-x:focus-visible, .mig-g-nao:focus-visible, .mig-g-cta:focus-visible { outline: 2px solid #dbefb3; outline-offset: 3px; }
.mig-g-caixa:focus { outline: none; } /* o foco nasce na caixa (para o leitor de tela), sem moldura no botão */

/* computador baixo: a palavra e os pôsteres encolhem para o botão continuar à vista */
@media (min-width: 681px) and (max-height: 760px) {
  .mig-g-caixa { padding-top: 24px; padding-bottom: 20px; }
  .mig-g-topo { margin-bottom: 18px; }
  .mig-g-txt .mig-marca { margin: 10px 0 10px; font-size: 54px; }
  .mig-g-txt h2 { font-size: 26px; }
  .mig-gi-arte { max-height: 38vh; }
  .mig-g-pe { margin-top: 18px; padding-top: 14px; }
}

/* celular: tela cheia, os pôsteres correm de lado e o botão fica fixo embaixo */
@media (max-width: 680px) {
  .mig-grande { padding: 0; align-items: stretch; }
  .mig-g-caixa {
    display: flex; flex-direction: column; max-width: none; max-height: none; height: 100%; border-radius: 0;
    padding: calc(18px + env(safe-area-inset-top)) 18px 0; -webkit-animation-name: mig-g-sobe; animation-name: mig-g-sobe;
  }
  .mig-g-caixa::before { display: none; } /* tela cheia: sem a borda de luz */
  .mig-g-x { top: calc(12px + env(safe-area-inset-top)); right: 12px; }
  .mig-g-topo { flex-direction: column; align-items: stretch; gap: 12px; margin: 0 0 16px; }
  .mig-g-txt { margin-right: 44px; }
  .mig-g-txt .mig-marca { margin: 10px 0 8px; font-size: 44px; }
  .mig-g-txt h2 { font-size: 22px; }
  .mig-g-sub { margin-top: 4px; font-size: 14.5px; }
  .mig-g-prazo.mig-tempo { width: auto; padding: 9px 12px 10px; border-radius: 13px; }
  .mig-g-prazo .mig-prazo { font-size: 13px; }
  .mig-g-prazo .mig-prazo svg { width: 15px; height: 15px; }
  .mig-g-prazo .mig-barra { height: 6px; margin-top: 8px; }
  .mig-g-itens {
    display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: max-content; gap: 12px; flex: none;
    margin: 0 -18px; padding: 0 18px 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .mig-g-itens::-webkit-scrollbar { display: none; }
  .mig-gi { scroll-snap-align: start; }
  /* o pôster ocupa a altura que sobra entre o topo e o botão (sem vão no meio); a largura vem da proporção do pôster */
  .mig-gi-arte {
    width: auto; max-height: none; border-radius: 16px;
    height: 360px;
    height: clamp(200px, calc(100vh - 452px - env(safe-area-inset-top) - env(safe-area-inset-bottom)), 400px);
    height: clamp(200px, calc(100dvh - 452px - env(safe-area-inset-top) - env(safe-area-inset-bottom)), 400px);
  }
  .mig-gi-titulo { font-size: 18px; }
  .mig-boost-ano { font-size: 44px; }
  .mig-gi-chip { font-size: 10.5px; padding: 5px 10px; }
  .mig-g-pe {
    position: -webkit-sticky; position: sticky; bottom: 0; z-index: 2; flex-wrap: wrap; gap: 8px 14px; margin: auto -18px 0; border-top: 0;
    padding: 16px 18px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(9, 12, 9, 0), #090c09 26%);
  }
  .mig-g-acoes { display: contents; }
  .mig-g-cta { -webkit-box-ordinal-group: 2; order: 1; flex: 1 1 100%; min-width: 0; min-height: 52px; padding: 0 18px; font-size: 16px; }
  .mig-g-nao { -webkit-box-ordinal-group: 3; order: 2; width: 100%; min-height: 40px; font-size: 14px; }
  .mig-g-nota { -webkit-box-ordinal-group: 4; order: 3; width: 100%; max-width: none; text-align: center; font-size: 12.5px; color: #8f9196; }
}

/* ---------------------------------------------------------------- animações */
@-webkit-keyframes mig-gira { to { --mig-ang: 360deg; } }
@keyframes mig-gira { to { --mig-ang: 360deg; } }
@-webkit-keyframes mig-sobe { 0% { opacity: 0; -webkit-transform: translateY(0); } 15% { opacity: .9; } 100% { opacity: 0; -webkit-transform: translateY(-420px); } }
@keyframes mig-sobe { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: .9; } 100% { opacity: 0; transform: translateY(-420px); } }
@-webkit-keyframes mig-marca-brilho { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0% 0; } }
@keyframes mig-marca-brilho { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0% 0; } }
@-webkit-keyframes mig-respira { 0%, 100% { -webkit-transform: scale(1) rotate(0deg); } 50% { -webkit-transform: scale(1.1) rotate(-6deg); } }
@keyframes mig-respira { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.1) rotate(-6deg); } }
@-webkit-keyframes mig-anel { 0% { opacity: .9; -webkit-transform: scale(1); } 100% { opacity: 0; -webkit-transform: scale(2.1); } }
@keyframes mig-anel { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.1); } }
@-webkit-keyframes mig-up-entra { from { opacity: 0; -webkit-transform: translateY(40px) scale(.92); } to { opacity: 1; -webkit-transform: none; } }
@keyframes mig-up-entra { from { opacity: 0; transform: translateY(40px) scale(.92); } to { opacity: 1; transform: none; } }
@-webkit-keyframes mig-up-entra-centro { from { opacity: 0; -webkit-transform: translate(-50%, -50%) translateY(40px) scale(.92); } to { opacity: 1; -webkit-transform: translate(-50%, -50%); } }
@keyframes mig-up-entra-centro { from { opacity: 0; transform: translate(-50%, -50%) translateY(40px) scale(.92); } to { opacity: 1; transform: translate(-50%, -50%); } }
@-webkit-keyframes mig-po-cai { from { opacity: 0; -webkit-transform: translateY(18px) rotate(-3deg); } to { opacity: 1; -webkit-transform: none; } }
@keyframes mig-po-cai { from { opacity: 0; transform: translateY(18px) rotate(-3deg); } to { opacity: 1; transform: none; } }
@-webkit-keyframes mig-po-flutua { from { translate: 0 0; } to { translate: 0 -5px; } }
@keyframes mig-po-flutua { from { translate: 0 0; } to { translate: 0 -5px; } }
@-webkit-keyframes mig-po-reflexo { 0%, 60% { -webkit-transform: translateX(-130%); } 100% { -webkit-transform: translateX(130%); } }
@keyframes mig-po-reflexo { 0%, 60% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
@-webkit-keyframes mig-po-vivo { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 71, .8); } 70% { box-shadow: 0 0 0 5px rgba(255, 59, 71, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 71, 0); } }
@keyframes mig-po-vivo { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 71, .8); } 70% { box-shadow: 0 0 0 5px rgba(255, 59, 71, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 71, 0); } }
@-webkit-keyframes mig-po-mes { 0%, 8% { background: rgba(255, 255, 255, .1); box-shadow: none; } 14%, 100% { background: #36edb3; box-shadow: 0 0 6px #36edb3; } }
@keyframes mig-po-mes { 0%, 8% { background: rgba(255, 255, 255, .1); box-shadow: none; } 14%, 100% { background: #36edb3; box-shadow: 0 0 6px #36edb3; } }
@-webkit-keyframes mig-enche { from { -webkit-transform: scaleX(0); } to { -webkit-transform: scaleX(1); } }
@keyframes mig-enche { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@-webkit-keyframes mig-corre { 0% { -webkit-transform: translateX(-100%); } 60%, 100% { -webkit-transform: translateX(160%); } }
@keyframes mig-corre { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(160%); } }
@-webkit-keyframes mig-cta-pulsa {
  0% { box-shadow: 0 10px 30px rgba(197, 247, 107, .35), 0 0 0 0 rgba(197, 247, 107, .55), inset 0 1px 0 rgba(255, 255, 255, .6); }
  70% { box-shadow: 0 10px 30px rgba(197, 247, 107, .35), 0 0 0 12px rgba(197, 247, 107, 0), inset 0 1px 0 rgba(255, 255, 255, .6); }
  100% { box-shadow: 0 10px 30px rgba(197, 247, 107, .35), 0 0 0 0 rgba(197, 247, 107, 0), inset 0 1px 0 rgba(255, 255, 255, .6); }
}
@keyframes mig-cta-pulsa {
  0% { box-shadow: 0 10px 30px rgba(197, 247, 107, .35), 0 0 0 0 rgba(197, 247, 107, .55), inset 0 1px 0 rgba(255, 255, 255, .6); }
  70% { box-shadow: 0 10px 30px rgba(197, 247, 107, .35), 0 0 0 12px rgba(197, 247, 107, 0), inset 0 1px 0 rgba(255, 255, 255, .6); }
  100% { box-shadow: 0 10px 30px rgba(197, 247, 107, .35), 0 0 0 0 rgba(197, 247, 107, 0), inset 0 1px 0 rgba(255, 255, 255, .6); }
}
@-webkit-keyframes mig-varre { 0% { left: -50%; } 55%, 100% { left: 130%; } }
@keyframes mig-varre { 0% { left: -50%; } 55%, 100% { left: 130%; } }

@-webkit-keyframes mig-g-fundo { from { opacity: 0; } to { opacity: 1; } }
@keyframes mig-g-fundo { from { opacity: 0; } to { opacity: 1; } }
@-webkit-keyframes mig-g-some { to { opacity: 0; } }
@keyframes mig-g-some { to { opacity: 0; } }
@-webkit-keyframes mig-g-entra { from { opacity: 0; -webkit-transform: translateY(30px) scale(.95); } to { opacity: 1; -webkit-transform: none; } }
@keyframes mig-g-entra { from { opacity: 0; transform: translateY(30px) scale(.95); } to { opacity: 1; transform: none; } }
@-webkit-keyframes mig-g-sobe { from { opacity: 0; -webkit-transform: translateY(40px); } to { opacity: 1; -webkit-transform: none; } }
@keyframes mig-g-sobe { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
/* só na vertical: girado, o pôster passaria da largura da fileira e o migracao.js a trataria como a do celular (que corre) */
@-webkit-keyframes mig-gi-entra { from { opacity: 0; -webkit-transform: translateY(22px); } to { opacity: 1; -webkit-transform: none; } }
@keyframes mig-gi-entra { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@-webkit-keyframes mig-flutua { from { -webkit-transform: scale(1.02); } to { -webkit-transform: scale(1.08) translateY(-6px); } }
@keyframes mig-flutua { from { transform: scale(1.02); } to { transform: scale(1.08) translateY(-6px); } }
@-webkit-keyframes mig-brilho { 0%, 70% { -webkit-transform: translateX(-120%); } 100% { -webkit-transform: translateX(120%); } }
@keyframes mig-brilho { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@-webkit-keyframes mig-vivo { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 71, .7); } 70% { box-shadow: 0 0 0 7px rgba(255, 59, 71, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 71, 0); } }
@keyframes mig-vivo { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 71, .7); } 70% { box-shadow: 0 0 0 7px rgba(255, 59, 71, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 71, 0); } }
@-webkit-keyframes mig-faisca { 0% { opacity: 1; -webkit-transform: rotate(var(--a)) translateX(0) scale(1); } 80% { opacity: .9; } 100% { opacity: 0; -webkit-transform: rotate(var(--a)) translateX(var(--r)) scale(.3); } }
@keyframes mig-faisca { 0% { opacity: 1; transform: rotate(var(--a)) translateX(0) scale(1); } 80% { opacity: .9; } 100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--r)) scale(.3); } }
@-webkit-keyframes mig-pulsa { 0%, 100% { opacity: 1; } 50% { opacity: .7; } }
@keyframes mig-pulsa { 0%, 100% { opacity: 1; } 50% { opacity: .7; } }
@-webkit-keyframes mig-ars { 0%, 100% { -webkit-transform: translate(var(--x), var(--y)) rotate(var(--r)); } 50% { -webkit-transform: translate(var(--x), calc(var(--y) - 6%)) rotate(calc(var(--r) * -.4)); } }
@keyframes mig-ars { 0%, 100% { transform: translate(var(--x), var(--y)) rotate(var(--r)); } 50% { transform: translate(var(--x), calc(var(--y) - 6%)) rotate(calc(var(--r) * -.4)); } }

/* sem movimento: nada se mexe e tudo aparece no estado final (os meses do Booster acesos, a barra até onde vai) */
@media (prefers-reduced-motion: reduce) {
  .mig-up, .mig-up.mig-up-centro, .mig-up::before, .mig-g-caixa::before, .mig-faiscas i, .mig-marca-palavra, .mig-marca-mais, .mig-marca-anel,
  .mig-po, .mig-po-reflexo, .mig-po-vivo, .mig-po-meses i, .mig-barra b, .mig-barra b::after,
  .mig-up .com-oferta-cta, .mig-up .com-oferta-cta::after, .mig-g-cta, .mig-g-cta::after,
  .mig-grande, .mig-grande.mig-g-saindo, .mig-g-caixa, .mig-gi, .mig-gi-img img, .mig-gi-brilho, .mig-gi-vivo, .mig-boom .mig-boost-luz,
  .mig-boom .mig-boost-faiscas i, .mig-ars-pilha img { -webkit-animation: none; animation: none; }
  .mig-faiscas, .mig-marca-anel, .mig-po-reflexo, .mig-barra b::after, .mig-up .com-oferta-cta::after, .mig-g-cta::after, .mig-gi-brilho { display: none; }
  .mig-po-meses i { background: #36edb3; box-shadow: 0 0 6px #36edb3; }
  .mig-ars-pilha img { -webkit-transform: translate(var(--x), var(--y)) rotate(var(--r)); transform: translate(var(--x), var(--y)) rotate(var(--r)); }
  .mig-boost-luz, .mig-boost-ano, .mig-boost-cheio, .mig-boost-meses li, .mig-up .com-oferta-cta, .mig-up .com-oferta-fechar, .mig-up .com-oferta-recusar,
  .mig-g-cta, .mig-g-nao, .mig-g-x { -webkit-transition: none; transition: none; }
}
