:root {
  --bg: #0b0d14;
  --bg-2: #10131c;
  --card: #141824;
  --card-2: #191e2c;
  --line: #262c3d;
  --line-2: #323a50;
  --text: #eef1f8;
  --muted: #8b93a7;
  --brand: #7c5cff;
  --brand-2: #22d3ee;
  --gold: #f6c453;
  --gold-2: #ffe29a;
  --orange: #ff8a3d;
  --pink: #ff4d8d;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background-color: var(--bg);
  background-image:
    linear-gradient(90deg, rgba(7, 10, 19, .46), rgba(7, 10, 19, .78) 35%, rgba(7, 10, 19, .78) 65%, rgba(7, 10, 19, .46)),
    url("assets/fundo-colmeia-azul.png");
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.45 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg .fi { stroke: none; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

.section-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; }
.section-label span { color: var(--muted); font-weight: 700; }
.section-label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }

/* ---------- topo ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(11, 13, 20, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: "Russo One", Inter, sans-serif; font-size: 21px; letter-spacing: .3px; white-space: nowrap; }
.logo__mark { display: block; flex: none; width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 6px 20px rgba(45, 129, 255, .32); }
.logo__text b { background: linear-gradient(90deg, #76dfff, #739dff); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 400; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: 14px; }
.nav a:hover, .nav a.is-active { color: var(--text); background: var(--card); }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; height: 38px; color: var(--muted); }
.search input { background: none; border: 0; outline: 0; color: var(--text); width: 180px; font: inherit; font-size: 14px; }
.search:focus-within { border-color: var(--brand); }
.search--topbar { flex: none; min-width: max-content; font-size: 14px; }
.search--topbar:hover { border-color: var(--line-2); color: var(--text); }
.busca-jogos {
  --busca-topo: clamp(16px, 12dvh, 112px);
  --busca-altura: calc(100dvh - var(--busca-topo) - 12px);
  --busca-recuo: clamp(14px, 4vw, 22px);
  width: min(560px, calc(100% - 24px));
  max-width: none;
  max-height: var(--busca-altura);
  margin: var(--busca-topo) auto 12px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 24px 72px rgba(0, 0, 0, .55);
}
.busca-jogos::backdrop { background: rgba(7, 9, 16, .75); backdrop-filter: blur(5px); }
body:has(.busca-jogos[open]) { overflow: hidden; }
.busca-jogos__painel { display: grid; grid-template-rows: auto minmax(0, 1fr); max-height: calc(var(--busca-altura) - 2px); }
.busca-jogos__topo { display: grid; gap: 12px; padding: 14px var(--busca-recuo) 16px; background: linear-gradient(145deg, #1a2438, var(--card) 75%); }
.busca-jogos__cabecalho { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.busca-jogos__cabecalho h2 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.busca-jogos__fechar { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); color: #b7c0d4; }
.busca-jogos__fechar:hover { background: var(--card-2); border-color: #607294; color: var(--text); }
.busca-jogos__campo { min-height: 48px; gap: 10px; border-color: var(--line-2); border-radius: 12px; background: var(--bg-2); }
.busca-jogos__campo svg { width: 18px; height: 18px; color: #95a9cd; }
.busca-jogos__campo:focus-within { border-color: #739dff; box-shadow: 0 0 0 3px rgba(115, 157, 255, .13); }
.busca-jogos__campo input { width: 100%; min-width: 0; font-size: 16px; }
.busca-jogos__campo input::placeholder { color: #98a4bd; }
.busca-jogos__corpo { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 9px; padding: 12px var(--busca-recuo) 16px; border-top: 1px solid var(--line); }
.busca-jogos__status { margin: 0; color: #aab5cc; font-size: 13px; font-weight: 600; }
.busca-jogos__status:empty, .busca-jogos__resultados:has(ul:empty):has(button[hidden]) { display: none; }
.busca-jogos__resultados { max-height: 420px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.busca-jogos__resultados ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.busca-jogos__resultados a {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
}
.busca-jogos__resultados a:hover, .busca-jogos__resultados a:focus-visible { border-color: var(--brand); background: var(--card-2); outline-offset: -2px; }
.busca-jogos__capa { display: grid; place-items: center; height: 40px; border-radius: 6px; overflow: hidden; background: var(--card-2); color: var(--muted); font-weight: 800; }
.busca-jogos__capa img { width: 100%; height: 100%; object-fit: cover; }
.busca-jogos__nome { display: grid; gap: 2px; overflow-wrap: anywhere; }
.busca-jogos__nome small { color: var(--muted); }
.busca-jogos__resultados button { margin-top: 8px; min-height: 44px; }
.btn { height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2); background: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.btn--ghost:hover { background: var(--card); }
.btn--primary { border: 0; color: #fff; background: linear-gradient(135deg, var(--brand), #5b3fe0); box-shadow: 0 6px 18px rgba(124, 92, 255, .3); }

.loja-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.loja-link {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 13px;
  border: 1px solid var(--loja-borda); border-radius: 999px; background: var(--loja-fundo);
  color: #fff; font-size: 13px; font-weight: 750;
}
.loja-link__marca { display: block; flex: none; width: 26px; height: 26px; }
.loja-link__seta { display: grid; place-items: center; margin-left: auto; color: var(--loja-cor); }
.loja-link__seta svg { width: 13px; height: 13px; }
.loja-link--steam { --loja-cor: #b0dcff; --loja-borda: #3b6592; --loja-fundo: linear-gradient(100deg, #193651, #162337); }
.loja-link--googleplay { --loja-cor: #96e5bc; --loja-borda: #326e58; --loja-fundo: linear-gradient(100deg, #193b34, #132720); }
.loja-link--appstore { --loja-cor: #b9cbff; --loja-borda: #525fa4; --loja-fundo: linear-gradient(100deg, #2b3972, #1e2749); }
a.loja-link:hover { border-color: var(--loja-cor); filter: brightness(1.12); }
a.loja-link:focus-visible { outline: 2px solid var(--loja-cor); outline-offset: 2px; }

/* ---------- banner gerado (base comum) ---------- */
.banner { position: relative; display: block; overflow: hidden; background: #000; isolation: isolate; container-type: inline-size; }
.banner__art { position: absolute; inset: 0; width: 100%; height: 100%; stroke: none; }
.banner__art * { transform-box: view-box; }
.banner__title { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-62%); text-align: center; padding: 0 6%; font-family: "Russo One", Inter, sans-serif; font-size: clamp(11px, 8cqi, 84px); line-height: 1.05; color: #fff; text-shadow: 0 .06em 0 rgba(0, 0, 0, .4), 0 0 .7em var(--c); letter-spacing: .02em; animation: titleFloat 5s ease-in-out infinite alternate; }
.banner__sub { position: absolute; left: 0; right: 0; bottom: 7.5%; text-align: center; font-size: clamp(6px, 2.5cqi, 14px); font-weight: 700; letter-spacing: .18em; color: rgba(255, 255, 255, .82); }

/* animações dos banners (equivalente aos GIFs) */
.anim-up { animation: mUp 14s linear infinite; }
.anim-down { animation: mDown 18s linear infinite; }
.anim-left { animation: mLeft 50s linear infinite; }
.anim-float { animation: mFloat 4s ease-in-out infinite alternate; }
.anim-pulse .hx { animation: hx 5s ease-in-out infinite; }
.anim-pulse .gl { animation: gl 2.4s linear infinite; }
.tw { animation: tw 3.5s ease-in-out infinite; }
.glow { animation: glow 4s ease-in-out infinite alternate; }
.shine { animation: shine 7s ease-in-out infinite; }
@keyframes mUp { to { transform: translateY(-160px); } }
@keyframes mDown { to { transform: translateY(160px); } }
@keyframes mLeft { to { transform: translateX(-400px); } }
@keyframes mFloat { to { transform: translateY(-8px); } }
@keyframes hx { 0%, 100% { opacity: .08; } 50% { opacity: .5; } }
@keyframes gl { 0% { opacity: .05; } 50% { opacity: .55; } 100% { opacity: .05; } }
@keyframes tw { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
@keyframes glow { from { opacity: .55; } to { opacity: 1; } }
@keyframes shine { 0%, 55% { transform: skewX(-20deg) translateX(0); } 100% { transform: skewX(-20deg) translateX(760px); } }
@keyframes titleFloat { to { transform: translateY(-68%); } }

/* ---------- banner principal (largura total, informações sobre a capa) ---------- */
.feat { padding: 24px 0 4px; }
.feat__stage { position: relative; height: 430px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: #000; box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .7); }
.feat__slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .6s, visibility .6s; }
.slide.is-on { opacity: 1; visibility: visible; pointer-events: auto; }
.slide:not(.is-on) * { animation-play-state: paused !important; }
.slide__art { position: absolute; inset: 0; pointer-events: none; }
.slide__art .banner__title { top: 38%; font-size: clamp(30px, 7cqi, 96px); }
.slide__art .banner__sub { display: none; }
.slide__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); } /* amplia 4% para esconder a moldura do vídeo e encaixar nos cantos arredondados */
.slide__tag { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 7px; background: rgba(8, 10, 16, .75); border: 1px solid rgba(255, 255, 255, .15); color: #cbd5e1; }
.slide__timer { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 3px; background: linear-gradient(90deg, var(--brand), var(--brand-2)) no-repeat 0 0 / 0 100%, rgba(255, 255, 255, .08); }
.slide.is-on .slide__timer { animation: timer 10s linear forwards; }
@keyframes timer { to { background-size: 100% 100%, auto; } }
.slide__info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 70px 28px 24px; background: linear-gradient(180deg, transparent, rgba(6, 8, 14, .75) 45%, rgba(6, 8, 14, .95)); }
.slide__chips { display: flex; gap: 8px; margin-bottom: 8px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 7px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.slide__chips > .plan, .slide__chips > .chip { height: 26px; min-width: 88px; justify-content: center; padding: 0 9px; border-radius: 7px; font-size: 11px; line-height: 1; }
.slide__chips > .plan svg, .slide__chips > .chip svg { width: 13px; height: 13px; }
.slide h2 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.01em; }
.slide p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin: 0 0 8px; max-width: 640px; height: 2.9em; overflow: hidden; color: #c3c9d9; font-size: 14px; line-height: 1.45; }
.slide__meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #c3c9d9; }
.slide__meta b { color: var(--text); }
.slide__cta { display: grid; gap: 8px; min-width: 200px; }
.btn-open { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 11px; font-weight: 800; color: #1a0e00; background: linear-gradient(135deg, #ffb347, var(--orange)); box-shadow: 0 8px 24px -6px rgba(255, 138, 61, .6); }
.btn-open, .btn-vote { transition: box-shadow .2s ease, filter .2s ease, border-color .2s ease, background .2s ease; }
.btn-open { border: 1px solid rgba(255, 255, 255, .2); }
.btn-open:hover { filter: brightness(1.1); box-shadow: 0 12px 28px -5px rgba(255, 138, 61, .75); }
.btn-open:not(.slide__cta *):hover { transform: translateY(-2px); }
.btn-open:not(.slide__cta *) { transition-property: transform, box-shadow, filter, border-color, background; }
.btn-vote { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 11px; border: 1px solid rgba(124, 92, 255, .6); background: rgba(124, 92, 255, .12); color: #f4f1ff; font-weight: 700; }
.btn-vote:hover { border-color: var(--brand-2); background: rgba(124, 92, 255, .3); box-shadow: 0 7px 22px -8px rgba(124, 92, 255, .75); }
.btn-open:focus-visible, .btn-vote:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; }
.feat__arrow { position: absolute; top: 40%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(10, 12, 20, .55); font-size: 24px; line-height: 1; display: grid; place-items: center; backdrop-filter: blur(6px); z-index: 3; }
.feat__arrow:hover { background: rgba(10, 12, 20, .85); }
.feat__arrow--prev { left: 16px; }
.feat__arrow--next { right: 16px; }
.feat__dots { display: flex; justify-content: center; gap: 6px; margin: 12px 0 0; }
.dot { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: var(--line-2); transition: width .3s, background .3s; }
.dot.is-on { width: 26px; background: var(--brand); }


/* ---------- top ranking do mês ---------- */
.topstrip { padding: 22px 0 4px; }
.section-link { order: 2; margin-left: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--brand-2); }
.section-label::after { order: 1; }
.section-link:hover { text-decoration: underline; }
.topstrip__row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.tops { position: relative; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: var(--card); transition: transform .2s, border-color .2s; }
.tops:hover { transform: translateY(-2px); border-color: #4b5675; }
.tops__art { aspect-ratio: 16 / 7; }
.tops:not(:hover) .tops__art * { animation-play-state: paused; }
.tops__pos { position: absolute; top: 8px; left: 8px; z-index: 2; min-width: 34px; height: 26px; padding: 0 7px; display: grid; place-items: center; border-radius: 8px; font-weight: 900; font-size: 14px; background: rgba(8, 10, 16, .8); border: 1px solid var(--line-2); }
.tops--gold { border: 1.5px solid #f6c453; box-shadow: 0 0 18px -6px rgba(246, 196, 83, .55); }
.tops--silver { border: 1.5px solid #c9d3e6; box-shadow: 0 0 16px -8px rgba(201, 211, 230, .5); }
.tops--bronze { border: 1.5px solid #e0955a; box-shadow: 0 0 16px -8px rgba(224, 149, 90, .5); }
.tops--gold .tops__pos { color: #fff3c4; border-color: var(--gold); text-shadow: 0 0 8px rgba(255, 212, 95, .9); }
.tops--silver .tops__pos { border-color: #c9d3e6; }
.tops--bronze .tops__pos { color: #ffe0c2; border-color: #e0955a; }
.tops__name { padding: 8px 10px 2px; font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tops__meta { display: flex; align-items: center; gap: 6px; padding: 0 10px; font-size: 11.5px; }
.tops__votes { padding: 6px 10px 10px; font-size: 12px; color: var(--muted); }
.tops__votes b { color: var(--text); }
.card.flash { animation: flash 1.4s ease-out; }
@keyframes flash { 0%, 30% { box-shadow: 0 0 0 3px var(--brand-2), 0 0 40px rgba(34, 211, 238, .4); } 100% { box-shadow: none; } }

/* ---------- comunidade (título + números) ---------- */
.community { padding: 30px 0 26px; }
.community__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 14px; }
.community h1 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.12; margin: 0 0 8px; letter-spacing: -.02em; }
.grad { background: linear-gradient(90deg, #38bdf8, #6366f1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.community p { margin: 0; color: var(--muted); max-width: 720px; font-size: 14px; }
.stats-link { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); font-weight: 700; font-size: 14px; color: #cfe8ff; transition: border-color .2s, background .2s; }
.stats-link svg { width: 18px; height: 18px; color: var(--brand-2); }
.stats-link .stats-link__ext { width: 14px; height: 14px; color: var(--muted); }
.stats-link:hover { border-color: var(--brand-2); background: rgba(34, 211, 238, .08); }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--card-2), var(--card)); overflow: hidden; }
.stats div { padding: 16px 20px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats dt { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.stats dd { margin: 2px 0 0; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }


/* ---------- categorias ---------- */
.cats-wrap { padding-bottom: 8px; }
.cats { display: grid; grid-template-columns: 84px repeat(7, minmax(0, 1fr)) 132px; gap: 10px; }
.cat-top { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 14px; border: 1.5px solid rgba(246, 196, 83, .55); background: var(--card); padding: 10px 4px; }
.cat-top .crown { width: 24px; height: 24px; }
.cat-top__lbl { font-size: 11px; font-weight: 900; letter-spacing: .14em; color: var(--gold); }
.cat-top__n { font-size: 28px; font-weight: 900; line-height: 1; color: #fff8e1; text-shadow: 0 0 12px rgba(246, 196, 83, .6); }
.cat-top.is-active { border-color: var(--gold); box-shadow: 0 0 22px -6px rgba(246, 196, 83, .6); }
.cat { display: flex; flex-direction: column; text-align: left; padding: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: var(--card); transition: border-color .2s, transform .2s, box-shadow .2s; min-width: 0; }
.cat:hover { transform: translateY(-2px); border-color: #48526d; }
.cat__art { aspect-ratio: 16 / 6.6; filter: saturate(.46) brightness(.76); transition: filter .3s; }
.cat-midia { pointer-events: none; background: var(--bg-2); }
.cat-midia__capa, .cat-midia__video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.cat-midia__video { visibility: hidden; }
.cat-midia__video.is-playing { visibility: visible; }
.cat__art .banner__sub { display: none; }
.cat:not(:hover):not(.is-active) .cat__art * { animation-play-state: paused; }
.cat:is(:hover, :focus-visible) .cat__art { filter: none; }
.cat__body { display: flex; flex-direction: column; min-width: 0; }
.cat__name { display: flex; align-items: center; gap: 7px; padding: 7px 10px; font-weight: 800; font-size: 15px; background: rgba(255, 255, 255, .035); border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.caticon { width: 17px; height: 17px; }
.cat__votes { padding: 7px 10px 0; font-size: 12px; font-weight: 700; }
.cat__first { padding: 0 10px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat__link { padding: 5px 10px 9px; font-size: 12px; font-weight: 700; color: var(--orange); }
.cat--tool .cat__link { color: var(--brand-2); }
.cat--tool { border-color: rgba(34, 211, 238, .35); }
.cat.is-active { border: 1.5px solid var(--gold); box-shadow: 0 0 24px -8px rgba(246, 196, 83, .6); }
.cat.is-active .cat__art { filter: none; }
.cat.is-active .cat__name { color: var(--gold-2); background: linear-gradient(180deg, rgba(246, 196, 83, .2), rgba(246, 196, 83, .06)); }
.cat-more { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 12px; border-radius: 12px; border: 1.5px dashed var(--line-2); background: rgba(124, 92, 255, .05); text-align: left; position: relative; }
.cat-more:hover, .cat-more.is-active { border-color: var(--brand); border-style: solid; background: rgba(124, 92, 255, .12); }
.cat-more__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(124, 92, 255, .2); color: #c4b5ff; font-size: 18px; }
.cat-more__arte { width: 74px; height: 31px; border-radius: 6px; }
.cat-more__name { font-weight: 800; font-size: 14px; line-height: 1.15; }
.cat-more__sub { font-size: 11.5px; color: var(--muted); }
.cat-more__chev { position: absolute; top: 12px; right: 10px; color: var(--muted); transition: transform .2s; }
.cat-more[aria-expanded="true"] .cat-more__chev { transform: rotate(180deg); }

/* subcategorias (Clássicos → Ragnarok, Tibia, MU...) */
.subcats { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding: 12px; border-radius: 14px; border: 1px solid rgba(245, 159, 0, .35); background: linear-gradient(90deg, rgba(245, 159, 0, .08), rgba(245, 159, 0, .02)); }
.subcats[hidden] { display: none; }
.subcats__lbl { display: flex; align-items: center; gap: 7px; font-weight: 800; margin-right: 6px; }
.subcats__lbl small { font-weight: 500; color: var(--muted); font-size: 12px; }
.sub { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--card); font-size: 13px; font-weight: 700; }
.sub--video { padding-left: 5px; }
.sub__arte { flex: none; width: 43px; height: 23px; border-radius: 6px; }
.sub b { font-size: 11px; padding: 1px 6px; border-radius: 99px; background: var(--line); }
.sub small { color: var(--muted); font-weight: 500; font-size: 11px; }
.sub:hover { border-color: var(--cc, var(--gold)); }
.sub.is-active { border-color: var(--gold); background: rgba(246, 196, 83, .14); color: var(--gold-2); }

/* painel "Mais categorias / buscar" */
.catpanel { max-width: 560px; margin-top: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); }
.catpanel[hidden] { display: none; }
.search--panel { height: 44px; margin-bottom: 8px; background: var(--bg-2); }
.search--panel input { width: 100%; }
.catpanel__lista, .catpanel__filhos { margin: 0; padding: 0; list-style: none; }
.catpanel__lista { max-height: min(360px, 50dvh); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.catpanel__lista > li + li { border-top: 1px solid var(--line); }
.catpanel__filhos { margin-left: 18px; padding-left: 9px; border-left: 1px solid var(--line-2); }
.catpanel__item { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 7px; text-align: left; background: transparent; }
.catpanel__arte { flex: none; width: 64px; height: 27px; border-radius: 5px; }
.catpanel__item:hover, .catpanel__item[aria-pressed="true"] { background: var(--card-2); }
.catpanel__item:focus-visible { outline-offset: -2px; }
.catpanel__item span { font-size: 14px; font-weight: 650; }
.catpanel__item small { margin-left: auto; color: var(--muted); }

/* ---------- cabeçalho do ranking ---------- */
.ranking { padding-top: 16px; scroll-margin-top: 76px; }
.ranking__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 8px 0 14px; }
.ranking__head > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.ranking__head h2 { display: inline; font-size: 24px; margin: 0 10px 0 0; letter-spacing: -.01em; }
.ranking__head .muted { font-size: 13px; }
.tabs { display: flex; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 4px; overflow-x: auto; }
.tab { border: 0; background: none; padding: 7px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap; }
.tab.is-active { background: var(--line); color: var(--text); }

/* ---------- lista ---------- */
.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: 1fr;
  gap: 12px;
}
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

.card {
  --accent: #b9c4e6;
  --tint: rgba(154, 166, 196, .06);
  --card-border-width: 1px;
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(190px, 30%) minmax(0, 1fr) clamp(160px, 22%, 300px);
  min-height: 172px;
  background: var(--card);
  border: var(--card-border-width) solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s, border-color .15s;
}
.card:hover { border-color: var(--line-2); } /* sem mover o cartão: o movimento fazia a capa "piscar" sobre a borda */
.plan--master { --tint: rgba(120, 140, 210, .09); }
.plan--elite  { --tint: rgba(255, 77, 141, .10); border-color: rgba(255, 107, 154, .4); }
.plan--pro    { --tint: rgba(34, 211, 238, .07); }
.plan--light  { --tint: rgba(61, 220, 151, .06); }

/* pódio: borda em degradê para os 3 primeiros */
.card.rank-1, .card.rank-2, .card.rank-3 { --card-border-width: 2px; }
.card.rank-1 { border-color: #f6c453; --tint: rgba(246, 196, 83, .10); box-shadow: 0 14px 44px -14px rgba(246, 196, 83, .45), 0 0 34px -12px rgba(143, 123, 255, .5); }
.card.rank-2 { border-color: #c9d3e6; --tint: rgba(200, 212, 235, .07); box-shadow: 0 12px 36px -16px rgba(200, 212, 235, .35); }
.card.rank-3 { border-color: #e0955a; --tint: rgba(224, 149, 90, .08); box-shadow: 0 12px 36px -16px rgba(224, 149, 90, .35); }

/* coluna posição */
.card__rank { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px; border-right: 1px solid var(--line); background: var(--bg-2); }
.rank__mid { display: flex; flex-direction: column; align-items: center; gap: 2px; }

/* selos dos planos: centralizados, contorno de 1px inteiro e texto nítido (sem transform, sem enfeite sobre a borda) */
.plan { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 19px; padding: 0 7px; border-radius: 6px; border: 1px solid var(--pc-line); background: var(--pc-bg); color: var(--pc); font-size: 9.5px; font-weight: 800; letter-spacing: .07em; line-height: 1; white-space: nowrap; -webkit-font-smoothing: antialiased; }
.plan svg { width: 10px; height: 10px; stroke-width: 2; }
.plan--inline { vertical-align: middle; }
.plan-c--gratis  { --pc: #aab3c5; --pc-line: rgba(170, 179, 197, .45); --pc-bg: rgba(170, 179, 197, .08); }
.plan-c--light   { --pc: #4ade9a; --pc-line: rgba(74, 222, 154, .5);  --pc-bg: rgba(74, 222, 154, .08); }
.plan-c--pro     { --pc: #03141c; --pc-line: transparent; --pc-bg: linear-gradient(135deg, #b9f6ff, #4fd6ec 45%, #5b8cff); box-shadow: 0 0 12px -2px rgba(79, 214, 236, .55); }
.plan-c--elite   { --pc: #23060f; --pc-line: transparent; --pc-bg: linear-gradient(135deg, #ffd0e0, #ff7aa5 45%, #c084fc); box-shadow: 0 0 12px -2px rgba(255, 122, 165, .55); }
.plan-c--master  { --pc: #0d1222; --pc-line: transparent; --pc-bg: linear-gradient(135deg, #ffffff, #d4dcf5 45%, #a5a8ff); box-shadow: 0 0 12px -2px rgba(212, 220, 245, .5); }
.plan-c--premium { --pc: #1c1404; --pc-line: transparent; --pc-bg: linear-gradient(135deg, #ffe08a, #f6c453 45%, #c4a1ff); box-shadow: 0 0 12px -2px rgba(246, 196, 83, .55); }

.pos { font-size: 36px; font-weight: 900; line-height: 1; }
.plan--elite:not(.rank-1):not(.rank-2):not(.rank-3) .pos { color: #ff8db0; }
.streak { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--gold); border: 1px solid rgba(246, 196, 83, .45); padding: 2px 7px; border-radius: 999px; background: transparent; }
.streak svg { width: 11px; height: 11px; }
.streak--lider { background: #f6c45314; }
.streak:hover, .streak:focus-visible { border-color: var(--gold); }
button[data-dica] { cursor: help; }
.dica-flutuante {
  --dica-fundo: #232a34;
  --dica-contorno: #495463;
  position: fixed;
  z-index: 35;
  width: max-content;
  max-width: min(300px, calc(100vw - 16px));
  padding: 8px 11px;
  border: 1px solid var(--dica-contorno);
  border-radius: 9px;
  background: var(--dica-fundo);
  color: var(--text);
  box-shadow: 0 6px 18px #0005;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  pointer-events: none;
  animation: dica-aparecer .12s ease-out;
}
.dica-flutuante::after {
  content: "";
  position: absolute;
  left: var(--dica-seta);
  bottom: -5px;
  width: 8px;
  height: 8px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--dica-fundo);
  border-right: 1px solid var(--dica-contorno);
  border-bottom: 1px solid var(--dica-contorno);
}
.dica-flutuante--abaixo::after { top: -5px; bottom: auto; transform: translateX(-50%) rotate(225deg); }
@keyframes dica-aparecer { from { opacity: 0; } to { opacity: 1; } }

/* coroa e número com contorno + iluminação */
.crown { width: 26px; height: 26px; }
.crown--gold { filter: drop-shadow(0 0 6px rgba(255, 210, 90, .75)) drop-shadow(0 0 14px rgba(160, 130, 255, .45)); animation: crownGlow 2.6s ease-in-out infinite alternate; }
.crown--silver { filter: drop-shadow(0 0 6px rgba(210, 222, 245, .6)); }
.crown--bronze { filter: drop-shadow(0 0 6px rgba(230, 150, 90, .6)); }
@keyframes crownGlow { to { filter: drop-shadow(0 0 10px rgba(255, 215, 100, 1)) drop-shadow(0 0 22px rgba(160, 130, 255, .7)); } }
.rank-1 .pos { font-size: 46px; color: #fff3c4; -webkit-text-stroke: 1.2px rgba(84, 48, 6, .95); text-shadow: 0 2px 2px rgba(40, 20, 0, .9), 0 0 10px rgba(255, 212, 95, .9), 0 0 26px rgba(160, 130, 255, .6); }
.rank-2 .pos { font-size: 42px; color: #f4f7ff; -webkit-text-stroke: 1.2px rgba(35, 45, 68, .95); text-shadow: 0 2px 2px rgba(10, 14, 24, .9), 0 0 10px rgba(205, 218, 245, .8), 0 0 22px rgba(120, 150, 220, .5); }
.rank-3 .pos { font-size: 40px; color: #ffe6cf; -webkit-text-stroke: 1.2px rgba(74, 36, 10, .95); text-shadow: 0 2px 2px rgba(30, 12, 0, .9), 0 0 10px rgba(240, 160, 100, .8), 0 0 22px rgba(200, 100, 60, .45); }

/* banner do cartão */
.card__banner .banner__art { transition: filter .3s; }
.card:hover .card__banner .banner__art { filter: brightness(1.12); }

/* informações */
.card__info { display: flex; flex-direction: column; gap: 8px; padding: 16px 22px; min-width: 0; overflow-wrap: anywhere; }
.card__info h3 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; }
.card__info h3 a:hover { text-decoration: underline; }
.card__info h3 .sep { color: var(--muted); margin: 0 6px; font-weight: 400; }
.card__info h3 .tag { color: #d6dbea; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 7px; border: 1px solid var(--line-2); color: #c9d0e2; }
.badge svg { width: 13px; height: 13px; }
.badge--verified { color: #8ab4ff; border-color: rgba(138, 180, 255, .45); background: rgba(138, 180, 255, .07); }
.badge--reward { border-color: rgba(246, 196, 83, .4); }
.badge--reward b { color: var(--gold-2); }
.badge--cat .caticon { width: 13px; height: 13px; }
.desc { margin: 0; color: var(--muted); font-size: 14px; }
.meta { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.status { font-weight: 700; color: var(--gold); }
.status--beta, .status--agendado { color: var(--brand-2); }
.launch { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; }
.jg-redes__lista { display: flex; flex-wrap: wrap; gap: 7px; }
.jg-rede { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--bg-2); color: var(--rede-cor); transition: border-color .2s, transform .2s, background .2s; }
.jg-rede svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.jg-rede img { border-radius: 4px; }
.jg-rede[href]:hover { border-color: var(--rede-cor); background: var(--card-2); transform: translateY(-2px); }
.jg-rede[href]:focus-visible { outline: 2px solid var(--rede-cor); outline-offset: 3px; }
.jg-rede.is-disabled { opacity: .45; cursor: default; }
.score { display: inline-flex; align-items: center; gap: 5px; }
.rate { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(135deg, #2563eb, #1e3a8a); border: 1px solid rgba(147, 197, 253, .35); box-shadow: 0 0 10px rgba(37, 99, 235, .35); }
.rate svg { width: 14px; height: 14px; fill: #e0f2fe; stroke: #e0f2fe; }
.rate--sm { width: 20px; height: 20px; border-radius: 6px; }
.rate--sm svg { width: 12px; height: 12px; }
.loyal { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--gold); border: 1px solid rgba(246, 196, 83, .55); padding: 4px 10px; border-radius: 7px; }

/* votos */
.card__votes { position: relative; display: grid; grid-template-rows: 1fr; border-left: 1px solid var(--line); background: var(--tint); }
.votes__main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 16px 10px; text-align: center; }
.votes__num { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.rank-1 .votes__num { background: linear-gradient(180deg, #fff1b8, var(--gold) 60%, #e0a12a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 10px rgba(246, 196, 83, .35)); }
.rank-2 .votes__num { background: linear-gradient(180deg, #fff, #c9d3e6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rank-3 .votes__num { background: linear-gradient(180deg, #ffe0c2, #e0955a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.votes__lbl { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.votes__12h { font-size: 12px; color: #c3c9d9; margin: 2px 0 10px; }
.vote { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 4px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); font-size: 13px; font-weight: 700; transition: background .15s, border-color .15s; }
.vote:has(.x2) { padding-right: 5px; }
.vote__ico { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); }
.vote__ico svg { width: 14px; height: 14px; }
.vote:hover { border-color: #8f7bff; background: rgba(124, 92, 255, .12); }
.vote .x2 { font-style: normal; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: linear-gradient(135deg, #8f7bff, var(--brand)); color: #fff; }
.vote.is-done { color: var(--muted); }
.vote.is-done .x2 { background: var(--line-2); }
.reacoes { display: inline-flex; flex: none; align-items: stretch; overflow: hidden; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(10, 14, 20, .45); }
.reacoes__botao { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 58px; min-height: 34px; padding: 6px 12px; border: 0; background: transparent; color: #aab3c4; font-size: 13px; }
.reacoes__botao + .reacoes__botao { border-left: 1px solid var(--line-2); }
.reacoes__botao svg { width: 17px; height: 17px; stroke-width: 1.5; }
.reacoes__botao b { color: var(--text); font-size: 13px; }
.reacoes__botao:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.reacoes__botao.is-on { color: #5bddb2; background: rgba(64, 210, 155, .1); }
.reacoes__botao[data-reacao="descurtir"].is-on { color: #ff909c; background: rgba(255, 90, 110, .1); }
.reacoes__botao:focus-visible { outline: 2px solid var(--brand-2); outline-offset: -3px; }
.reacoes__botao:disabled { opacity: .55; cursor: wait; }
@media (pointer: coarse) { .reacoes__botao { min-height: 44px; } }

.footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 24px 0; color: var(--muted); font-size: 13px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- responsivo ---------- */
@media (max-width: 1280px) {
  .cats { display: flex; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .cat { flex: 0 0 158px; }
  .cat-top { flex: 0 0 84px; }
  .cat-more { flex: 0 0 140px; }
}

@media (max-width: 1180px) {
  .topbar__inner { gap: 16px; }
  .nav { flex: none; }
  .card__info h3 { font-size: 16px; }
}

@media (max-width: 900px) {
  .wrap { padding: 0 16px; }
  .topbar { position: relative; background: var(--bg); }
  .topbar__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "logo acoes" "nav nav";
    gap: 8px 12px;
    height: auto;
    padding-block: 10px;
  }
  .topbar__inner > .logo { grid-area: logo; justify-self: start; }
  .topbar__actions { grid-area: acoes; gap: 8px; }
  .topbar__actions :is(.btn, .tg-conta__botao) { min-height: 44px; }
  .topbar__actions .tg-conta__botao { width: 44px; }
  .topbar .nav { grid-area: nav; display: grid; grid-template-columns: repeat(4, auto); gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
  .topbar .nav a { display: grid; place-items: center; min-height: 44px; padding: 4px; text-align: center; line-height: 1.2; }
  .search--topbar { min-height: 44px; }
  .search input { font-size: 16px; }
  .ranking { scroll-margin-top: 12px; }
  .card { grid-template-columns: 80px minmax(0, 1fr); grid-template-areas: "rank banner" "info info" "votes votes"; }
  .list > .card { grid-template-rows: auto minmax(auto, 1fr) auto; }
  .card__rank { grid-area: rank; }
  .card__banner { grid-area: banner; aspect-ratio: 5 / 2; }
  .card__info { grid-area: info; padding: 14px 16px; }
  .card__votes { grid-area: votes; border-left: 0; border-top: 1px solid var(--line); }
  .votes__main { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "num lbl vote" "num h12 vote"; column-gap: 12px; align-items: center; justify-items: start; text-align: left; padding: 12px 16px; }
  .votes__num { grid-area: num; font-size: 26px; }
  .votes__lbl { grid-area: lbl; margin: 0; white-space: nowrap; align-self: end; }
  .votes__12h { grid-area: h12; margin: 0; white-space: nowrap; font-size: 11.5px; align-self: start; }
  .vote { grid-area: vote; }
  .loyal { margin-left: 0; }
}

@media (max-width: 700px) {
  .feat { padding-top: 16px; }
  .feat__stage { height: auto; }
  .feat__slides { position: relative; }
  .slide { position: relative; display: none; }
  .slide.is-on { display: block; }
  .slide__art { position: relative; height: clamp(140px, 45vw, 220px); }
  .slide__art .banner__title { top: 50%; padding-inline: 42px; font-size: clamp(24px, 7.5cqi, 38px); }
  .slide__video { object-fit: contain; transform: none; }
  .slide__timer { position: static; display: block; }
  .slide__info { position: static; background: var(--card); }
  .slide__info { flex-direction: column; align-items: stretch; gap: 14px; padding: 14px 16px 16px; }
  .slide h2 { font-size: 21px; }
  .slide p { font-size: 13.5px; }
  .slide__chips { flex-wrap: wrap; }
  .slide__meta { flex-wrap: wrap; }
  .slide__cta { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; }
  .slide__cta > * { min-height: 44px; }
  .slide__tag { font-size: 9.5px; top: 8px; left: 8px; }
  .feat__arrow { top: calc(clamp(140px, 45vw, 220px) / 2); width: 44px; height: 44px; }
  .feat__arrow--prev { left: 6px; }
  .feat__arrow--next { right: 6px; }
  .feat__dots { gap: 0; flex-wrap: wrap; margin-top: 2px; }
  .dot, .dot.is-on { display: grid; place-items: center; width: 36px; height: 36px; background: none; }
  .dot::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--line-2); }
  .dot.is-on::before { width: 22px; background: var(--brand); }
  .topstrip__row { grid-template-columns: repeat(6, 170px); overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .community { padding: 20px 0; }
  .community__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .stats-link { height: 44px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(even) { border-right: 0; }
  .stats div:not(:last-child) { border-bottom: 1px solid var(--line); }
  .stats div:last-child { grid-column: 1 / -1; }
  .cat-top { order: -2; }
  .cat-more { order: -1; flex-basis: 130px; }
  .sub { min-height: 44px; height: auto; padding-block: 6px; text-align: left; overflow-wrap: anywhere; }
  .subcats__lbl { flex-basis: 100%; }
  .pitem { min-height: 44px; overflow-wrap: anywhere; }
  .tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .tab { min-height: 44px; padding-inline: 6px; white-space: normal; }
  .card__rank { padding-inline: 3px; }
  .card__banner { align-self: stretch; aspect-ratio: auto; min-height: clamp(105px, 34vw, 205px); }
  .card__plano { min-height: 32px; }
  .streak { position: relative; }
  .streak::after { content: ""; position: absolute; inset: -6px -4px; }
  .vote { height: 44px; }
}


@media (max-width: 520px) {
  .busca-jogos { --busca-topo: 12px; border-radius: 16px; }
  .wrap { padding-inline: 12px; }
  .topbar__inner { column-gap: 6px; }
  .topbar__inner:has(.topbar__actions .btn--ghost.btn--link) { grid-template-areas: "logo logo" "nav nav" "acoes acoes"; }
  .topbar__inner:has(.topbar__actions .btn--ghost.btn--link) .topbar__actions { margin-left: 0; }
  .topbar__actions { gap: 5px; }
  .topbar__actions .btn { padding-inline: 9px; font-size: 12px; }
  .search--topbar { gap: 6px; padding-inline: 9px; font-size: 12px; }
  .topbar .nav a { font-size: 12px; }
  .logo { gap: 6px; }
  .logo__mark { width: 32px; height: 32px; }
  .logo__text { font-size: clamp(14px, 4.1vw, 18px); }
  .btn--primary { padding: 0 12px; font-size: 13px; }
  .section-label { gap: 5px; letter-spacing: .07em; }
  .stats dt { font-size: 19px; }
  .ranking__head { gap: 10px; }
  .ranking__head h2, .ranking__head .muted { display: block; }
  .ranking__head h2 { font-size: 22px; }
  .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { grid-template-columns: 66px minmax(0, 1fr); }
  .pos { font-size: 30px; }
  .rank-1 .pos { font-size: 36px; }
  .rank-2 .pos, .rank-3 .pos { font-size: 33px; }
  .crown { width: 22px; height: 22px; }
  .card__info h3 { font-size: 15px; }
  .votes__main { grid-template-columns: auto 1fr; grid-template-areas: "num lbl" "num h12" "vote vote"; }
  .vote { margin-top: 10px; width: 100%; justify-content: center; }
  .cat { flex-basis: 150px; }
  .subcats__lbl small { display: none; }
}

@media (min-width: 901px) and (max-width: 1040px), (min-width: 376px) and (max-width: 430px) {
  .topbar__actions:has([data-tg-conta]) .search--topbar { width: 44px; padding: 0; justify-content: center; }
  .topbar__actions:has([data-tg-conta]) .search--topbar span { display: none; }
}

@media (max-width: 375px) {
  .topbar__inner:has(.search--topbar) { grid-template-areas: "logo logo" "acoes acoes" "nav nav"; }
  .topbar__inner:has(.search--topbar) .topbar__actions { margin-left: 0; }
}

/* ---------- desempenho: na lista longa, banners só animam no hover (e no pódio) ---------- */
.card:not(:hover):not(.rank-1):not(.rank-2):not(.rank-3) .card__banner * { animation-play-state: paused; }

/* ---------- link do título "Top ranking do mês" ---------- */
.section-title-link { color: inherit; }
.section-title-link:hover { color: var(--brand-2); }

/* ---------- paginação do ranking (50 por página, até 200) ---------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.pager:empty { display: none; }
.pager__info { font-size: 13px; color: var(--muted); }
.pager__info b { color: var(--text); }
.pager__nav { display: flex; align-items: center; gap: 6px; }
.pager__btn { min-width: 38px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); font-weight: 700; font-size: 13.5px; }
.pager__btn:hover:not(:disabled) { border-color: var(--brand-2); }
.pager__btn.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager__btn:disabled { opacity: .4; cursor: default; }
.pager__btn small { display: block; font-size: 10px; font-weight: 600; color: var(--muted); line-height: 1; }
.pager__btn.is-on small { color: rgba(255, 255, 255, .8); }
.pager--more { justify-content: center; }
.pager__more { height: 44px; padding: 0 22px; border-radius: 11px; border: 1px solid var(--brand); background: rgba(124, 92, 255, .12); font-weight: 800; font-size: 14px; }
.pager__more:hover { background: rgba(124, 92, 255, .22); }
@media (max-width: 520px) {
  .pager { justify-content: center; }
  .pager__nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .pager__btn { min-width: 0; min-height: 44px; padding: 0 7px; }
  .pager__btn:first-child { grid-area: 2 / 1 / auto / span 2; }
  .pager__btn:last-child { grid-area: 2 / 3 / auto / span 2; }
  .pager__btn small { display: none; }
}

/* ---------- v5: card TOP RANKING ---------- */
.cat-top__n--txt { font-size: 12.5px; letter-spacing: .08em; margin-top: 2px; }

/* ---------- pódio: brilho percorrendo o risco da borda ----------
   Linha SVG com o mesmo contorno da borda (pathLength=100). O traço anda com stroke-dashoffset,
   então a velocidade é constante em todo o trajeto (sem "avançadas" nas pontas).
   overflow: clip + margem deixa o brilho aparecer em cima da borda, e não para dentro. */
.card.rank-1, .card.rank-2, .card.rank-3 { overflow: clip; overflow-clip-margin: 4px; }
.card.rank-1 { --ring-hot: #ffd76a; --ring-base: #f6c453; --ring-soft: rgba(246, 196, 83, .45); }
.card.rank-2 { --ring-hot: #eef3fb; --ring-base: #c9d3e6; --ring-soft: rgba(201, 211, 230, .4); }
.card.rank-3 { --ring-hot: #f5ad74; --ring-base: #e0955a; --ring-soft: rgba(224, 149, 90, .4); }
.card .ring { position: absolute; inset: -2px; width: calc(100% + 4px); height: calc(100% + 4px); z-index: 4; pointer-events: none; overflow: visible; fill: none; }
.card .ring rect { x: 1px; y: 1px; width: calc(100% - 2px); height: calc(100% - 2px); rx: calc(var(--radius) - 1px); ry: calc(var(--radius) - 1px); fill: none; stroke-linecap: round; animation: ringRun 7s linear infinite; }
.card .ring__base { stroke: var(--ring-base); stroke-width: 2; animation: none; } /* borda fixa desenhada por cima do conteúdo: cantos sem buracos */
.card .ring__line { stroke: var(--ring-hot); stroke-width: 2; stroke-dasharray: 42 58; filter: drop-shadow(0 0 3px var(--ring-soft)); } /* uma linha só, uma cor, ~42% da volta (≈ a borda de baixo inteira) */
.card .ring rect.ring__alvo { stroke: transparent; stroke-width: 9; animation: none; pointer-events: stroke; cursor: help; }
/* offset crescente = sentido anti-horário (o mesmo sentido aprovado); os 3 rodam juntos, mesma duração, sem atraso */
@keyframes ringRun { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 100; } }

/* ---------- hover no cartão do ranking: borda mais forte para mostrar a seleção ---------- */
.card { transition: border-color .2s, box-shadow .2s; }
.card:not(.rank-1):not(.rank-2):not(.rank-3):hover { border-color: #7c8db8; box-shadow: 0 0 0 1px rgba(124, 141, 184, .35), 0 10px 32px -14px rgba(124, 92, 255, .55); }
.card.plan--elite:not(.rank-1):not(.rank-2):not(.rank-3):hover { border-color: #ff7aa5; box-shadow: 0 0 0 1px rgba(255, 122, 165, .35), 0 10px 32px -14px rgba(255, 77, 141, .5); }
.card .ring__base { transition: stroke .2s, stroke-width .2s; }
.card.rank-1:hover .ring__base, .card.rank-2:hover .ring__base, .card.rank-3:hover .ring__base { stroke: var(--ring-hot); stroke-width: 2.6; filter: drop-shadow(0 0 5px var(--ring-soft)); }
.card.rank-1:hover { box-shadow: 0 14px 44px -12px rgba(246, 196, 83, .6), 0 0 34px -10px rgba(143, 123, 255, .55); }
.card.rank-2:hover { box-shadow: 0 12px 40px -12px rgba(200, 212, 235, .5); }
.card.rank-3:hover { box-shadow: 0 12px 40px -12px rgba(224, 149, 90, .5); }

/* ---------- selo do plano no cartão ---------- */
.plan--premium { --tint: rgba(246, 196, 83, .08); }
.card.plan--premium:not(.rank-1):not(.rank-2):not(.rank-3) { border-color: var(--gold); box-shadow: 0 0 24px -12px var(--gold); }
.card__plano {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  height: 24px;
  padding-inline: 10px 12px;
  border-top: 0;
  border-right: 0;
  border-radius: 0 calc(var(--radius) - var(--card-border-width)) 0 9px;
  box-shadow: none;
}
.card__plano svg { order: 1; width: 13px; height: 13px; }
.card__plano:is(.plan-c--gratis, .plan-c--light) { background: color-mix(in srgb, var(--pc) 12%, var(--bg-2)); }
@media (min-width: 901px) { .card .votes__main { padding-top: 26px; } }

/* ---------- seção de planos ---------- */
.plans { padding: 44px 0 10px; }
.plans__head { margin-bottom: 16px; }
.plans__head h2 { margin: 0 0 4px; font-size: clamp(22px, 2.3vw, 30px); letter-spacing: -.02em; }
.plans__head p { margin: 0; font-size: 14px; }
.plans__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.pcard { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); transition: border-color .2s, box-shadow .2s; }
.pcard:hover { border-color: var(--pc-line, var(--line-2)); box-shadow: 0 10px 30px -16px rgba(0, 0, 0, .8); }
.pcard--gratis { --pc-line: rgba(170, 179, 197, .6); }
.pcard--light { --pc-line: rgba(74, 222, 154, .6); }
.pcard--pro { --pc-line: rgba(79, 214, 236, .6); }
.pcard--elite { --pc-line: rgba(255, 122, 165, .6); }
.pcard--master { --pc-line: rgba(212, 220, 245, .6); }
.pcard--premium { border: 1.5px solid #f6c453; background: linear-gradient(180deg, rgba(246, 196, 83, .10), var(--card) 45%); box-shadow: 0 0 30px -12px rgba(246, 196, 83, .6); }
.pcard header { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 20px; }
.pcard__top { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.pcard h3 { margin: 6px 0 0; font-size: 20px; }
.pcard__tag { margin: 0; color: var(--muted); font-size: 13px; min-height: 18px; }
.pcard__vote { font-size: 12.5px; color: #c3c9d9; padding: 7px 9px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); }
.pcard__vote b { color: var(--text); }
.x2txt { color: #b9a6ff !important; }
.pcard ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 7px; flex: 1; }
.pcard li { display: flex; gap: 7px; font-size: 13px; line-height: 1.35; }
.pcard li svg { width: 15px; height: 15px; flex: none; margin-top: 1px; color: #4ade80; }
.pcard li.so-dono { align-items: center; flex-wrap: wrap; }
.pcard li.so-dono small { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #93c5fd; border: 1px solid rgba(147,197,253,.4); border-radius: 999px; padding: 1px 7px; }
.pcard--premium li svg { color: var(--gold); }
.pcard__foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11.5px; }
.pcard__price { font-weight: 800; font-size: 12.5px; white-space: nowrap; }
@media (max-width: 1180px) { .plans__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .plans__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .plans__grid { grid-template-columns: 1fr; } }

.plans__head h1 { margin: 0 0 6px; font-size: clamp(27px, 4vw, 43px); }
.plans__seletor { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 22px 0 16px; }
.plans__opcao { padding: 10px 4px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); }
.plans__opcao:hover, .plans__opcao[aria-pressed="true"] { border-color: var(--brand-2); background: var(--card-2); }
.plans__opcao.plan--premium[aria-pressed="true"] { border-color: var(--gold); }
.plans__opcao .plan { height: 25px; font-size: 11px; }
.plans__demonstracao { display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, 29%); gap: 16px; align-items: start; }
.plans__cenario { padding: clamp(12px, 2vw, 22px); border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-2); }
.plans__cenario h2, .plans__demonstracao .pcard h2 { margin: 0; font-size: 19px; }
.plans__amostra.card { grid-template-columns: 68px minmax(90px, 22%) minmax(0, 1fr) 138px; margin-top: 14px; }
.plans__amostra .card__banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #080d10; }
.plans__amostra .card__info { padding: 14px 12px; }
.plans__amostra .votes__num { font-size: 24px; }
.plans__amostra .vote { height: 32px; margin-top: 10px; padding-inline: 8px; font-size: 11.5px; white-space: nowrap; pointer-events: none; }
.plans__demonstracao .pcard { gap: 12px; }
.plans__demonstracao .pcard .btn { justify-content: center; margin-top: 8px; }
.plans__check { color: var(--brand-2); font-weight: 800; }
.plans__previas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.plans__dialogo {
  width: min(1240px, calc(100% - 24px));
  height: min(900px, calc(100dvh - 24px));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 24px 72px #0009;
}
.plans__dialogo[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.plans__dialogo::backdrop { background: #070910c4; backdrop-filter: blur(5px); }
body:has(.plans__dialogo[open]) { overflow: hidden; }
.plans__dialogo-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px clamp(12px, 2vw, 24px); border-bottom: 1px solid var(--line-2); background: var(--card); }
.plans__dialogo-topo > div { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.plans__dialogo-topo h2 { margin: 0; font-size: 18px; }
.plans__dialogo-fechar { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); color: var(--text); font-size: 24px; line-height: 1; }
.plans__dialogo-fechar:hover { background: var(--card-2); border-color: var(--brand-2); }
.plans__dialogo iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 1100px) { .plans__demonstracao { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .plans__amostra.card { grid-template-columns: 62px minmax(0, 1fr); }
  .plans__amostra .votes__main { display: flex; flex-direction: row; justify-content: flex-start; }
}
@media (max-width: 740px) {
  .plans__seletor { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plans__opcao { min-height: 44px; }
  .plans__opcao .plan { padding-inline: 4px; letter-spacing: .04em; }
  .plans { padding-top: 24px; }
  .plans .btn { min-height: 44px; }
  .plans__dialogo { width: calc(100% - 12px); height: calc(100dvh - 12px); border-radius: 14px; }
  .plans__previas .btn { justify-content: center; }
  .plans__amostra .votes__main { flex-wrap: wrap; }
}

.megafone { width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid #eeb768; border-radius: 20px; background: #1b1411; color: #fff4e9; box-shadow: 0 22px 88px #000b; }
.megafone::backdrop { background: #090807c9; backdrop-filter: blur(7px); }
.megafone__topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px 11px 18px; border-bottom: 1px solid #aa794455; background: linear-gradient(100deg, #372219, #1b1411 72%); }
.megafone__topo > div { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 12px; }
.megafone__marca { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.megafone__marca svg { width: 20px; height: 20px; color: #ffc178; }
.megafone__jogo { font-size: 12px; color: #e1c8b5; overflow-wrap: anywhere; }
.megafone__fechar { flex: none; width: 44px; height: 44px; border: 1px solid #c79567; border-radius: 50%; color: #fff4e9; background: #2e211c; font-size: 25px; line-height: 1; }
.megafone__fechar:hover { background: #593b2c; }
.megafone__fechar:focus-visible, .megafone__acao:focus-visible { outline: 2px solid #ffce80; outline-offset: 2px; }
.megafone__imagem { display: block; width: 100%; aspect-ratio: 1260 / 500; object-fit: contain; background: #100d0b; }
.megafone__conteudo { padding: 15px 20px 18px; overflow-wrap: anywhere; }
.megafone__conteudo h2 { margin: 0 0 8px; font-size: clamp(20px, 4vw, 25px); line-height: 1.2; }
.megafone__conteudo p { margin: 0; color: #e1c8b5; }
.megafone__acao { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; padding: 12px; min-height: 46px; border: 1px solid #ebc08c; border-radius: 12px; color: #21130d; background: linear-gradient(110deg, #eaa374, #eac48d); font-weight: 800; }
.megafone__acao:hover { filter: brightness(1.1); }
.megafone__rodape { padding: 9px 18px; border-top: 1px solid #aa79443b; color: #cbb3a4; font-size: 11px; }

.btn--link { display: inline-flex; align-items: center; }

/* ---------- capa por imagem (link do dono) ---------- */
.banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- conta no topo ---------- */
.tg-conta { position: relative; flex: none; }
.tg-conta__botao { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--card-2); color: #cfe8ff; cursor: pointer; list-style: none; }
.tg-conta__botao::-webkit-details-marker { display: none; }
.tg-conta__botao svg { width: 18px; height: 18px; }
.tg-conta[open] .tg-conta__botao, .tg-conta__botao:hover { border-color: var(--brand); }
.tg-conta__menu { position: absolute; top: calc(100% + 8px); right: 0; display: grid; min-width: 152px; gap: 2px; padding: 5px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
.tg-conta__menu a, .tg-conta__menu button { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--text); text-align: left; font: inherit; font-size: 14px; font-weight: 600; }
.tg-conta__menu :is(a, button):hover { background: var(--card-2); }
.tg-conta :is(summary, a, button):focus-visible { outline: 2px solid var(--brand-2); outline-offset: 1px; }
.topbar__actions [data-tg-entrar] { display: inline-flex; align-items: center; }
.topbar__actions [hidden], [data-tg-publicar][hidden] { display: none; }
.tg-google-acesso { display: grid; align-items: center; min-height: 44px; }
.tg-google-botao, .tg-google-estado { grid-area: 1 / 1; }
.tg-google-botao { width: min(100%, 304px); margin-inline: auto; border-radius: 999px; overflow: hidden; }
.tg-google-botao:focus-within { outline: 2px solid var(--brand); outline-offset: 3px; }
.tg-google-estado { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; text-align: center; }
/* ---------- janela de login Google ---------- */
.tg-modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; }
dialog.tg-modal { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; background: transparent; color: var(--text); }
dialog.tg-modal::backdrop { background: transparent; }
.tg-modal[hidden] { display: none; }
.tg-modal__fundo { position: absolute; inset: 0; background: rgba(4, 6, 12, .72); backdrop-filter: blur(3px); }
.tg-modal__caixa { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); width: min(420px, 100%); max-height: calc(100dvh - 32px); overflow: hidden; border-radius: 20px; border: 1px solid var(--line-2); background: #171b27; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.tg-modal__cabecalho { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; align-items: center; padding: 20px 22px 0 26px; }
.tg-modal__conteudo { min-width: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 18px 18px 22px 26px; }
.tg-modal__x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 26px; line-height: 1; }
.tg-modal__x:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.tg-modal h2 { margin: 0 0 6px; font-size: 22px; }
.tg-login__motivo { margin: 0 0 12px; color: #c3c9d9; font-size: 14px; }
.tg-abas { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); margin: 10px 0 14px; }
.tg-abas button { height: 34px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-weight: 700; }
.tg-abas button.is-on { background: var(--line); color: var(--text); }
.tg-campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 14px; font-weight: 700; }
.tg-campo input { width: 100%; min-width: 0; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; font-weight: 400; outline: none; }
.tg-campo input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124, 92, 255, .2); }
.tg-campo small { color: #b6bed1; font-size: 12px; font-weight: 400; }
.tg-campo input[aria-invalid="true"] { border-color: #f87171; }
.tg-campo input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(248, 113, 113, .2); }
.tg-campo .tg-campo__erro { color: #fca5a5; font-weight: 600; }
.tg-campo__erro:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tg-erro { margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .4); color: #fecaca; font-size: 13px; }
.tg-btn { width: 100%; height: 46px; border: 0; border-radius: 10px; font-weight: 800; font-size: 15px; color: #fff; background: linear-gradient(135deg, var(--brand), #5b3fe0); }
.tg-btn:disabled { opacity: .6; }
.tg-login__form, .tg-login__credenciais { display: grid; gap: 12px; }
.tg-login__subtitulo { margin: 0 0 14px; font-size: 17px; }
.tg-login__aviso { margin: 0 0 12px; color: #b8f0d3; font-size: 14px; }
.tg-login__aviso:empty { display: none; }
.tg-login__titulo-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tg-login__seletor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-2); }
.tg-login__seletor button { min-height: 44px; padding: 4px 6px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: #b6bed1; font-size: 14px; font-weight: 700; }
.tg-login__seletor button:hover { color: var(--text); }
.tg-login__seletor button[aria-pressed="true"] { border-color: rgba(124, 92, 255, .55); background: rgba(124, 92, 255, .22); color: #f2edff; }
.tg-login__seletor button:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.tg-login__link { justify-self: end; min-height: 44px; margin-block: -8px; padding: 5px 0; border: 0; background: none; color: #c2b5ff; font-size: 14px; font-weight: 700; }
.tg-login__link:hover { text-decoration: underline; }
.tg-login__divisor { display: flex; align-items: center; gap: 12px; margin: 16px 0 14px; color: var(--muted); font-size: 12px; }
.tg-login__divisor::before, .tg-login__divisor::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.tg-senha { position: relative; }
.tg-senha input { padding-right: 52px; }
.tg-senha__olho { position: absolute; inset: 0 0 0 auto; display: grid; place-items: center; width: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #b5bed3; }
.tg-senha__olho svg { width: 19px; height: 19px; }
.tg-senha__olho[aria-pressed="false"] .tg-senha__risco { display: none; }
.tg-codigo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.tg-login__codigo { min-height: 44px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--card-2); font-size: 13px; font-weight: 700; }
.tg-login__codigo[data-tg-enviar-codigo] { min-width: 112px; font-variant-numeric: tabular-nums; }
.tg-login__codigo:disabled { opacity: .6; cursor: default; }
.tg-captcha__estado, .tg-codigo__estado { margin: 0; color: #c3c9d9; font-size: 13px; }
.tg-codigo__estado[data-confirmado] { color: #b8f0d3; font-weight: 700; }
.tg-captcha__widget:empty, .tg-captcha__estado:empty, .tg-codigo__estado:empty, .tg-google-estado:empty, .tg-erro:empty { display: none; }

@media (min-width: 701px) {
  .tg-modal { place-items: safe center; overflow-y: auto; }
  .tg-modal__fundo { position: fixed; }
  .tg-modal__caixa { grid-template-rows: auto 1fr; width: min(410px, 100%); max-height: none; }
  .tg-modal[data-tela="cadastro"] .tg-modal__caixa { width: min(540px, 100%); }
  .tg-modal__cabecalho { padding: 16px 18px 0 22px; }
  .tg-modal__conteudo { overflow: visible; scrollbar-gutter: auto; padding: 16px 22px 20px; }
  .tg-login__credenciais { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- carregando / erro da lista ---------- */
.list.is-carregando { opacity: .55; pointer-events: none; transition: opacity .2s; }
.aviso-erro { padding: 18px; border-radius: 12px; border: 1px solid rgba(248, 113, 113, .4); background: rgba(248, 113, 113, .08); color: #fecaca; text-align: center; }
.aviso-erro button { margin-left: 8px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card); font-weight: 700; }

@media (max-width: 520px) {
  .tg-modal__cabecalho { padding: 16px 12px 0 16px; }
  .tg-modal__conteudo { padding: 16px 10px 18px 16px; }
  .tg-campo input { font-size: 16px; }
}
