/* Início — o carrossel das ferramentas, os atalhos com capa e os cards largos (wire-wide do wireframe, em
   overrides.css). Cada ferramenta tem uma cor (--cor e --rgb, para as transparências) e uma segunda (--rgb2),
   usadas na arte, no título, na borda do hover e na chamada. rgba(var(--rgb)) no lugar de color-mix(): funciona
   em navegador antigo. */
.home-cor-hunt { --cor: #f4af25; --rgb: 244, 175, 37; --rgb2: 255, 107, 61; --cor-escura: #2c1f08; }
.home-cor-vale { --cor: #8b94ff; --rgb: 139, 148, 255; --rgb2: 214, 120, 255; --cor-escura: #1a1c44; }
.home-cor-mercado { --cor: #3be36f; --rgb: 59, 227, 111; --rgb2: 244, 175, 37; --cor-escura: #0c2a16; }
.home-cor-ideias { --cor: #4cc3ff; --rgb: 76, 195, 255; --rgb2: 48, 217, 211; --cor-escura: #0b2236; }
.home-cor-iniciante { --cor: #3fd6e6; --rgb: 63, 214, 230; --cor-escura: #0d2b31; }
.home-cor-wishlist { --cor: #ffcc4d; --rgb: 255, 204, 77; --cor-escura: #33240a; }
.home-cor-xp { --cor: #4be38a; --rgb: 75, 227, 138; --cor-escura: #0e2a1c; }
.home-cor-pokedex { --cor: #ff5d5d; --rgb: 255, 93, 93; --cor-escura: #3a1015; }
.home-wire .xpc-sprite-caixa { background: transparent; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
.home-botao { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.home-wire a:focus-visible, .home-wire button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* ---------- Carrossel com abas ---------- */
.home-carrossel { position: relative; overflow: hidden; padding: 0; border-color: #343a46; }
/* Os slides dividem a mesma célula e trocam por esmaecimento: só opacity e transform, que não deslocam o layout. */
.home-slides { position: relative; display: grid; touch-action: pan-y; }
.home-slide { position: relative; grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); min-height: 380px; overflow: hidden;
  background: #0f1116; opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility 0s linear .55s; }
.home-slide.ativo { opacity: 1; visibility: visible; transition: opacity .55s ease, visibility 0s; }

/* O fundo: duas luzes na cor da ferramenta, andando devagar, e uma grade de pixels do lado da arte. */
.home-slide-fundo { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(115deg, #0f1116 32%, var(--cor-escura)); }
.home-slide-fundo i { position: absolute; border-radius: 50%; filter: blur(64px); }
.home-slide-fundo i:nth-child(1) { top: -200px; right: -80px; width: 560px; height: 560px; background: rgba(var(--rgb), .5); animation: home-aurora 16s ease-in-out infinite alternate; }
.home-slide-fundo i:nth-child(2) { right: 26%; bottom: -260px; width: 420px; height: 420px; background: rgba(var(--rgb2), .32); animation: home-aurora 12s ease-in-out infinite alternate-reverse; }
.home-slide-fundo::after { position: absolute; inset: 0; content: '';
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 28px 28px; -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 80%); mask-image: linear-gradient(90deg, transparent 35%, #000 80%); }
@keyframes home-aurora { from { transform: translate(0, 0) scale(1); } to { transform: translate(-70px, 50px) scale(1.18); } }

.home-slide-texto { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 44px 0 44px 44px; }
.home-slide-texto .eyebrow { align-self: flex-start; border-radius: 999px; padding: 4px 11px; background: rgba(var(--rgb), .16); color: var(--cor); }
.home-slide-texto h2 { color: #fff; font-size: clamp(28px, 3.1vw, 40px); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; }
.home-slide-texto h2 em { font-style: normal; background: linear-gradient(90deg, var(--cor), rgb(var(--rgb2))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-slide-desc { max-width: 470px; color: #d0d3d9; font-size: 14px; line-height: 1.6; }
.home-destaques { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.home-destaques li { border: 1px solid rgba(var(--rgb), .45); border-radius: 999px; padding: 4px 11px; background: rgba(var(--rgb), .1); color: #f1f2f4; font-size: 11px; font-weight: 700; }
.home-cta { align-self: flex-start; gap: 6px; margin-top: 8px; padding: 13px 22px; background: var(--cor); color: #11130f; font-size: 12px;
  box-shadow: 0 10px 26px -8px rgba(var(--rgb), .85); transition: transform .18s ease, box-shadow .18s ease; }
.home-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(var(--rgb), 1); }
.home-cta span { display: inline-block; transition: transform .18s ease; }
.home-cta:hover span { transform: translateX(3px); }

/* A arte: os pokémon flutuando num palco com brilho, cada um no seu tempo. */
.home-slide-arte { position: relative; z-index: 1; display: grid; place-items: center; align-content: center; gap: 6px; padding: 30px; color: var(--cor); }
.home-palco { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 14px; padding-bottom: 20px; }
.home-palco::before { position: absolute; z-index: -1; inset: -40% -14% 0; content: ''; background: radial-gradient(closest-side, rgba(var(--rgb), .34), transparent 72%); }
.home-palco::after { position: absolute; z-index: -1; right: -8%; bottom: 0; left: -8%; height: 34px; content: ''; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--rgb), .6), transparent); filter: blur(3px); }
.home-slide-arte .xpc-sprite-caixa { filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .5)) drop-shadow(0 0 18px rgba(var(--rgb), .35)); }
.home-flutua { display: inline-block; animation: home-flutuar 3.2s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.7s); }
@keyframes home-flutuar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.home-duelo { align-items: center; gap: 22px; }
.home-duelo-seta { color: var(--cor); font-size: 40px; font-weight: 800; text-shadow: 0 0 18px rgba(var(--rgb), .8); }
.home-nota { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; color: #fff; line-height: 1.05;
  background: radial-gradient(circle, #14161d 62%, transparent 63%), conic-gradient(from 210deg, var(--cor), rgb(var(--rgb2)), var(--cor));
  box-shadow: 0 0 28px rgba(var(--rgb), .5); }
.home-nota small { color: var(--cor); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.home-nota b { font-size: 20px; }
.home-grafico { position: absolute; right: 0; bottom: 0; left: 0; width: 100%; height: 72%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%); mask-image: linear-gradient(90deg, transparent, #000 22%); }
.home-grafico-linha { stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px rgba(var(--rgb), .8)); }
.home-slide.ativo .home-grafico-linha { animation: home-desenhar 1.6s .25s ease-out forwards; }
.home-slide.ativo .home-grafico-area { animation: home-aparecer 1s .9s both; }
@keyframes home-desenhar { to { stroke-dashoffset: 0; } }
@keyframes home-aparecer { from { opacity: 0; } }
/* Mercado: a vitrine gira entre os quatro itens, um grande por vez, num giro de cartão (2 s cada, 8 s a volta). */
.home-vitrine { display: grid; place-items: center; width: 240px; height: 210px; margin-bottom: 26px; perspective: 700px; }
.home-vitrine-item { grid-area: 1 / 1; display: grid; justify-items: center; gap: 10px; margin: 0; opacity: 0; }
.home-vitrine-item > img { width: auto; height: 150px; max-width: 200px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .55)) drop-shadow(0 0 22px rgba(var(--rgb), .35)); }
.home-vitrine-item figcaption { border: 1px solid rgba(var(--rgb), .55); border-radius: 999px; padding: 3px 12px; background: rgba(14, 16, 21, .7); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.home-slide.ativo .home-vitrine-item { animation: home-vitrine 8s cubic-bezier(.3, .7, .3, 1) infinite backwards; animation-delay: calc(var(--i) * 2s); }
@keyframes home-vitrine {
  0% { opacity: 0; transform: rotateY(-75deg) scale(.7); }
  5%, 21% { opacity: 1; transform: none; }
  26%, 100% { opacity: 0; transform: rotateY(75deg) scale(.7); }
}
/* Ideias: o selo da pauta, em azul, em cima de uma amostra da aba. */
.home-selo { position: relative; display: inline-flex; align-items: center; gap: 8px; overflow: hidden; border: 2px solid var(--cor); border-radius: 999px; padding: 8px 22px 8px 14px;
  background: rgba(10, 26, 42, .82); color: #e6f6ff; font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 0 30px rgba(var(--rgb), .55); }
.home-selo b { color: var(--cor); font-size: 24px; letter-spacing: 0; }
.home-previa { display: grid; gap: 6px; width: 360px; margin-top: 16px; border: 1px solid rgba(var(--rgb), .45); border-radius: 12px; padding: 10px; background: #15181e; color: #c7cad0; font-size: 11px;
  box-shadow: 0 22px 50px -12px rgba(0, 0, 0, .7), 0 0 40px rgba(var(--rgb), .22); transform: perspective(900px) rotateY(-9deg) rotateX(4deg); }
.home-previa-abas { display: flex; gap: 14px; margin: 0 2px 4px; border-bottom: 1px solid #262b35; padding-bottom: 6px; color: #858b95; font-weight: 700; }
.home-previa-abas b { position: relative; color: #fff; }
.home-previa-abas b::after { position: absolute; right: 0; bottom: -7px; left: 0; height: 2px; content: ''; background: var(--yellow); }
.home-previa-ideia { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 8px; border: 1px solid #2a2f3a; border-left: 3px solid #6b717c; border-radius: 8px; padding: 6px 8px; background: #1a1d23; }
.home-previa-pauta { border-left-color: var(--yellow); }
.home-previa-jogo { border-left-color: var(--yellow); background: linear-gradient(180deg, rgba(244, 175, 37, .08), #1a1d23); }
.home-previa-voto { display: grid; justify-items: center; color: #6b717c; font-size: 9px; line-height: 1.2; }
.home-previa-voto b { color: var(--green); font-size: 13px; }
.home-previa-corpo { display: grid; gap: 3px; min-width: 0; color: #fff; font-size: 12px; font-weight: 700; }
.home-previa-corpo > span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.home-previa-selos { display: flex; gap: 4px; }
.home-previa-selos i { border-radius: 3px; padding: 1px 5px; background: rgba(48, 217, 211, .14); color: var(--cyan); font-size: 8px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.home-previa-selos .home-previa-status { background: #2a2f3a; color: #aab0ba; }
.home-previa-pauta .home-previa-status { background: rgba(244, 175, 37, .18); color: var(--yellow); }
.home-previa-jogo .home-previa-status { background: var(--yellow); color: #262008; }
.home-selo::after { position: absolute; inset: 0; content: ''; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%); transform: translateX(-120%); animation: home-reflexo 3.4s 1s ease-in-out infinite; }
@keyframes home-reflexo { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(120%); } }

/* Entrada em cascata a cada troca: o texto sobe item por item, a arte chega da direita. */
.home-slide.ativo .home-entra { animation: home-entrar .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
.home-slide.ativo .home-slide-arte { animation: home-chegar .8s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes home-entrar { from { opacity: 0; transform: translateY(16px); } }
@keyframes home-chegar { from { opacity: 0; transform: translateX(34px) scale(.96); } }

/* O botão de rotação vem antes do conteúdo na ordem do Tab (APG), num canto do slide. */
.home-rotacao { position: absolute; top: 14px; right: 14px; z-index: 3; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%; background: rgba(14, 16, 21, .62); color: #fff; font-size: 11px; cursor: pointer; backdrop-filter: blur(4px); }
.home-rotacao:hover { background: rgba(14, 16, 21, .9); }

/* A barra embaixo: as abas com o nome de cada ferramenta (o "sumário" da Baymard) e a barra de tempo. */
.home-barra { display: flex; align-items: stretch; border-top: 1px solid #262b35; background: #111318; }
.home-abas { display: grid; flex: 1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-aba { position: relative; display: grid; gap: 2px; border: 0; border-right: 1px solid #1f232b; padding: 16px 18px 14px; background: transparent; color: #a5a9b2; text-align: left; cursor: pointer; transition: background .2s ease; }
.home-aba b { color: #e3e5e8; font-size: 13px; font-weight: 800; }
.home-aba small { font-size: 11px; }
.home-aba:hover { background: rgba(255, 255, 255, .035); }
.home-aba.ativa { background: linear-gradient(180deg, rgba(var(--rgb), .17), transparent); }
.home-aba.ativa b { color: var(--cor); }
.home-aba-tempo { position: absolute; top: 0; right: 0; left: 0; height: 3px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.home-aba-tempo i { display: block; height: 100%; background: var(--cor); transform: scaleX(0); transform-origin: left; }
.home-aba.ativa .home-aba-tempo i { animation: home-tempo var(--rotacao) linear forwards; }
.home-segurando .home-aba.ativa .home-aba-tempo i { animation-play-state: paused; }
/* Parado (ou sem rotação), a barra cheia vira só a marca da aba escolhida. */
.home-desligado .home-aba.ativa .home-aba-tempo i, .home-sem-rotacao .home-aba.ativa .home-aba-tempo i { animation: none; transform: scaleX(1); }
.home-sem-rotacao .home-rotacao { display: none; }
@keyframes home-tempo { to { transform: scaleX(1); } }
.home-barra-fim { display: flex; align-items: center; gap: 8px; padding: 0 16px; }
.home-contador { margin-right: 6px; color: #737984; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.home-contador b { color: #fff; }
.home-nav { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #343a46; border-radius: 10px; background: #1a1d23; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.home-nav:hover { border-color: #4a5160; background: #20242c; }

/* ---------- Atalhos com capa ---------- */
.home-atalhos { margin-top: 12px; }
.home-atalho { display: flex; flex-direction: column; overflow: hidden; color: inherit; text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.home-atalho:hover, .home-atalho:focus-visible { transform: translateY(-4px); border-color: var(--cor); box-shadow: 0 14px 34px -12px rgba(var(--rgb), .7); }
.home-capa { position: relative; display: grid; place-items: center; height: 172px; overflow: hidden;
  background: radial-gradient(circle at 50% 62%, rgba(var(--rgb), .5), transparent 64%), linear-gradient(160deg, var(--cor-escura), #121419); }
.home-capa > * { transition: transform .3s ease; }
.home-atalho:hover .home-capa > :not(.home-brilho), .home-atalho:focus-visible .home-capa > :not(.home-brilho) { transform: scale(1.07); }
.home-atalho-corpo { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 14px 16px 16px; border-top: 1px solid rgba(var(--rgb), .3); }
.home-atalho-corpo h2 { color: #fff; font-size: 16px; }
.home-atalho-corpo p { color: var(--muted); font-size: 12px; line-height: 1.45; }
.home-atalho-acao { margin-top: auto; padding-top: 10px; color: var(--cor); font-size: 12px; font-weight: 800; }
.home-atalho-acao::after { content: '→'; display: inline-block; margin-left: 5px; transition: transform .18s; }
.home-atalho:hover .home-atalho-acao::after { transform: translateX(4px); }

/* Iniciante: a ilustração com cor de verdade. */
.home-capa-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.35) contrast(1.06) brightness(1.04); }
/* WishList: três cards de Shiny em leque, com brilhos. */
/* As cartas giram em torno do pé: os cantos das de fora descem uns 15 px, então o pé fica 22 px acima da base do
   leque, e o leque inteiro fica no centro da capa (mesmo com o zoom do hover). */
.home-leque { position: relative; width: 220px; height: 158px; }
.home-leque img { position: absolute; bottom: 22px; left: 50%; width: 90px; margin-left: -45px; image-rendering: pixelated; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .55)); transform-origin: 50% 100%; }
.home-leque img:nth-child(1) { transform: rotate(-17deg) translateX(-44px); }
.home-leque img:nth-child(2) { z-index: 1; transform: translateY(-10px); }
.home-leque img:nth-child(3) { transform: rotate(17deg) translateX(44px); }
.home-brilho { position: absolute; width: 10px; height: 10px; background: #fff6cf; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: home-brilhar 2.4s ease-in-out infinite; }
.home-brilho:nth-of-type(1) { top: 18%; left: 12%; }
.home-brilho:nth-of-type(2) { top: 12%; right: 14%; width: 14px; height: 14px; animation-delay: .8s; }
.home-brilho:nth-of-type(3) { bottom: 18%; right: 10%; animation-delay: 1.5s; }
@keyframes home-brilhar { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.15); } }
/* Calculadora: a Blissey e uma barra de XP que enche no hover. */
.home-cor-xp .home-capa { grid-template-rows: 1fr auto; padding: 14px 0 16px; }
.home-xp { display: flex; align-items: center; gap: 8px; color: #e3e5e8; font-size: 11px; font-weight: 800; }
.home-xp i { width: 120px; height: 8px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .14); }
.home-xp b { display: block; width: 62%; height: 100%; border-radius: inherit; background: var(--cor); transition: width .8s ease; }
.home-atalho:hover .home-xp b, .home-atalho:focus-visible .home-xp b { width: 96%; }
/* Pokédex: uma grade de espécies, como as fichas da Pokédex. */
.home-dex { display: grid; grid-template-columns: repeat(3, 56px); gap: 8px; }
.home-dex-celula { display: grid; place-items: center; height: 56px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; background: rgba(255, 255, 255, .07); }

/* ---------- Cards largos ---------- */
.home-wire .wire-wide > div:first-child { max-width: 62%; }
.wire-wide .home-arte-larga { display: flex; align-items: flex-end; justify-content: flex-end; gap: 10px; padding: 0 22px 16px 0; }
.home-em-breve { border-style: dashed; }
.home-badge-breve { background: #2a2f3a; color: #c7cad0; }
.home-comunidade { transition: border-color .18s; }
.home-comunidade:hover { border-color: #5865f2; }

@media (max-width: 900px) {
  /* Celular e tablet: a arte em cima, o texto embaixo; as abas rolam de lado e os controles ficam abaixo do slide. */
  .home-slide { grid-template-columns: 1fr; min-height: 0; }
  .home-slide-arte { order: -1; min-height: 210px; padding: 26px 16px 6px; }
  .home-slide-texto { padding: 6px 20px 26px; }
  .home-palco { gap: 8px; }
  .home-palco .xpc-sprite-caixa { --px: 68px !important; }
  .home-duelo .xpc-sprite-caixa { --px: 84px !important; }
  .home-vitrine .xpc-sprite-caixa { --px: 130px !important; }
  .home-vitrine-item > img { height: 130px; }
  .home-barra { flex-direction: column; }
  .home-abas { display: flex; overflow-x: auto; scrollbar-width: none; }
  .home-abas::-webkit-scrollbar { display: none; }
  .home-aba { flex: 0 0 auto; min-width: 148px; }
  .home-barra-fim { justify-content: flex-end; border-top: 1px solid #1f232b; padding: 10px 14px; }
}
@media (max-width: 760px) {
  .home-wire .wire-wide > div:first-child { max-width: 100%; }
}
@media (max-width: 460px) {
  .home-palco .xpc-sprite-caixa { --px: 54px !important; }
  .home-duelo .xpc-sprite-caixa { --px: 70px !important; }
  .home-duelo { gap: 10px; }
  .home-nota { width: 78px; height: 78px; }
  .home-vitrine { width: 200px; height: 176px; }
  .home-vitrine-item > img { height: 118px; }
  .home-vitrine .xpc-sprite-caixa { --px: 118px !important; }
  .home-previa { width: 100%; max-width: 310px; transform: none; }
  .wire-wide .home-arte-larga { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .home-slide, .home-atalho, .home-capa > *, .home-xp b, .home-cta, .home-cta span { transition: none; }
  .home-slide-fundo i, .home-flutua, .home-selo::after, .home-brilho { animation: none; }
  .home-slide.ativo .home-entra, .home-slide.ativo .home-slide-arte, .home-slide.ativo .home-grafico-area { animation: none; }
  .home-slide.ativo .home-grafico-linha { animation: none; stroke-dashoffset: 0; }
  .home-atalho:hover, .home-atalho:focus-visible, .home-cta:hover { transform: none; }
  .home-brilho { opacity: .8; }
  /* Sem giro, a vitrine mostra os quatro itens parados, lado a lado. */
  .home-vitrine { display: flex; flex-wrap: wrap; justify-content: center; width: auto; height: auto; gap: 14px; }
  .home-vitrine-item, .home-slide.ativo .home-vitrine-item { grid-area: auto; opacity: 1; animation: none; }
  .home-vitrine-item > img { height: 72px; }
  .home-vitrine .xpc-sprite-caixa { --px: 72px !important; }
}
