/* TG Esports — Comunidade (prefixos, melhor resposta, bolão, equipe, menções, níveis) */

/* ---------- Prefixos ---------- */
.tg-px {
	--c: #5c6b8a; --b: #eef1f7;
	display: inline-flex; align-items: center; gap: 5px;
	padding: 2px 8px; margin-right: 6px; border-radius: 6px;
	background: var(--b); color: var(--c) !important;
	font: 600 11px/1.5 Inter, system-ui, sans-serif; letter-spacing: .02em;
	vertical-align: 2px; white-space: nowrap; text-decoration: none !important;
}
.tg-px-duvida    { --c: #6d28d9; --b: #f1eafe; }
.tg-px-ajuda     { --c: #b45309; --b: #fef3c7; }
.tg-px-guia      { --c: #047857; --b: #d1fae5; }
.tg-px-discussao { --c: #1d4ed8; --b: #dbeafe; }
.tg-px-noticia   { --c: #0f1a33; --b: #e6eaf3; }
.tg-px-rumor     { --c: #be185d; --b: #fce7f3; }
.tg-px-clipe     { --c: #c2410c; --b: #ffedd5; }
.tg-px-spoiler   { --c: #fff;    --b: #0f1a33; }
.tg-px-lg { font-size: 13px; padding: 3px 10px; vertical-align: 4px; }
.tg-px-dot { display: inline-block; width: 8px; height: 8px; padding: 0; margin: 0 6px 0 0; border-radius: 50%; background: var(--c); vertical-align: 0; }

/* seletor no editor */
.tg-px-dl dd { margin-left: 0; }
.tg-px-picker { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0; }
.tg-px-picker label.tg-px { cursor: pointer; padding: 5px 12px; font-size: 12px; border: 1px solid transparent; margin: 0; vertical-align: 0; transition: box-shadow .15s, transform .15s; }
.tg-px-picker label.tg-px:hover { transform: translateY(-1px); }
.tg-px-picker input { position: absolute; opacity: 0; pointer-events: none; }
.tg-px-picker label.tg-px:has(input:checked) { border-color: currentColor; box-shadow: 0 0 0 3px rgba(124, 58, 237, .15); }
.tg-px-picker label.tg-px:has(input:focus-visible) { outline: 2px solid #7c3aed; outline-offset: 2px; }
.tg-px-nenhum { --c: #5c6b8a; --b: #fff; border-color: #e6eaf3 !important; }
.tg-px-picker label.tg-px-nenhum:has(input:checked) { border-color: #7c3aed !important; color: #7c3aed !important; }

/* filtros na lista de tópicos */
.tg-filtros { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.tg-filtro {
	display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px;
	background: #fff; border: 1px solid #e6eaf3; color: #3b4766 !important;
	font: 500 12.5px/1.2 Inter, system-ui, sans-serif; text-decoration: none !important;
}
.tg-filtro:hover { border-color: #a78bfa; }
.tg-filtro.on { background: #7c3aed; border-color: #7c3aed; color: #fff !important; }
.tg-filtro .tg-px-dot { background: var(--c); }
.tg-filtro.on .tg-px-dot { box-shadow: 0 0 0 2px #fff; }

/* ---------- Resolvido / melhor resposta ---------- */
.tg-resolvido {
	display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; margin-right: 6px; border-radius: 6px;
	background: #dcfce7; color: #15803d; font: 600 11px/1.5 Inter, system-ui, sans-serif; vertical-align: 2px;
}
.tg-resolvido .icon { font-size: 10px; }
.tg-resolvido-lg { font-size: 13px; padding: 3px 10px; vertical-align: 4px; }

.tg-melhor-box {
	display: flex; gap: 14px; margin: 0 0 16px; padding: 16px 18px;
	background: #f0fdf4; border: 1px solid #bbf7d0; border-left: 4px solid #22c55e; border-radius: 14px;
}
.tg-melhor-ic { flex: 0 0 34px; height: 34px; border-radius: 50%; background: #22c55e; color: #fff; display: flex; align-items: center; justify-content: center; }
.tg-melhor-b { min-width: 0; font-size: 14px; color: #14532d; }
.tg-melhor-b strong { color: #15803d; }
.tg-melhor-por { color: #3f6b50; }
.tg-melhor-b p { margin: 6px 0; color: #1f3a2a; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tg-melhor-b a { color: #15803d !important; font-weight: 600; }
.tg-melhor-selo {
	display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 4px 10px; border-radius: 999px;
	background: #22c55e; color: #fff; font: 600 12px/1.4 Inter, system-ui, sans-serif;
}
.post:has(.tg-melhor-selo) { box-shadow: 0 0 0 2px #86efac !important; }
.tg-melhor-acao { margin-top: 10px; }
.tg-melhor-acao .tg-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid #bbf7d0; background: #fff; color: #15803d !important; font-size: 12px; font-weight: 600; text-decoration: none !important; }
.tg-melhor-acao .tg-pill:hover { background: #f0fdf4; }

/* ---------- Login alternativo ---------- */
.tg-login-alt { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 6px; }
.tg-login-ou { display: flex; align-items: center; gap: 10px; color: #8a96b0; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.tg-login-ou::before, .tg-login-ou::after { content: ""; flex: 1; height: 1px; background: #e6eaf3; }
.tg-login-btn {
	display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 14px; border-radius: 10px;
	font: 600 14px/1.2 Inter, system-ui, sans-serif; text-decoration: none !important; transition: filter .15s, transform .15s;
}
.tg-login-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.tg-login-tg { background: #0f1a33; color: #fff !important; }
.tg-login-ic { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; background: #7c3aed; font: 800 11px/1 Lexend, Poppins, sans-serif; text-transform: uppercase; }
.tg-login-dc { background: #5865f2; color: #fff !important; }
.tg-login-alt-side { margin-top: 10px; }
.tg-login-alt-side .tg-login-btn { font-size: 13px; padding: 10px 12px; }

/* ---------- Páginas (bolão / equipe) ---------- */
.tg-page-hero {
	position: relative; overflow: hidden; margin: 8px 0 20px; padding: 28px 28px 26px; border-radius: 18px;
	background: radial-gradient(120% 140% at 100% 0, #7c3aed 0, #3b1d8f 45%, #0f1a33 100%); color: #fff;
}
.tg-page-hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .06); }
.tg-page-k { font: 500 11px/1 Inter, sans-serif; letter-spacing: .24em; text-transform: uppercase; color: #c4b5fd; }
.tg-page-hero h1 { margin: 8px 0 6px; color: #fff; font: 700 28px/1.15 Lexend, Poppins, sans-serif; border: 0; }
.tg-page-hero p { margin: 0 0 14px; max-width: 620px; color: #dcd6f5; font-size: 14.5px; }
.tg-page-hero .tg-btn { position: relative; z-index: 1; }
.tg-page-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.tg-page-grid > .tg-box:only-child { grid-column: 1 / -1; }
.tg-vazio-box { margin: 0; padding: 26px 18px; text-align: center; color: #8a96b0; }

.tg-rank-tab { width: 100%; border-collapse: collapse; font-size: 14px; }
.tg-rank-tab th { padding: 10px 14px; text-align: left; font: 600 11px/1 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #8a96b0; border-bottom: 1px solid #eef1f7; }
.tg-rank-tab td { padding: 10px 14px; border-bottom: 1px solid #eef1f7; vertical-align: middle; }
.tg-rank-tab tr:last-child td { border-bottom: 0; }
.tg-rank-tab tr.is-eu td { background: #f6f2ff; }
.tg-rank-user { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.tg-rank-pos { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; background: #eef1f7; color: #3b4766; font-weight: 700; font-size: 12px; }
.tg-rank-p1 { background: #fde68a; color: #854d0e; }
.tg-rank-p2 { background: #e5e7eb; color: #374151; }
.tg-rank-p3 { background: #fed7aa; color: #9a3412; }
.tg-rank-bar { display: inline-block; width: 60px; height: 6px; margin-right: 6px; border-radius: 3px; background: #eef1f7; overflow: hidden; vertical-align: middle; }
.tg-rank-bar i { display: block; height: 100%; background: linear-gradient(90deg, #a78bfa, #7c3aed); border-radius: 3px; }

.tg-meus { list-style: none; margin: 0; padding: 6px 0; }
.tg-meus li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 16px; border-bottom: 1px solid #eef1f7; }
.tg-meus li:last-child { border-bottom: 0; }
.tg-meus-jogo { font-size: 14px; }
.tg-meus-jogo span { color: #8a96b0; margin: 0 3px; }
.tg-meus-jogo small { display: block; color: #8a96b0; font-size: 12px; }
.tg-meus-esc { grid-column: 1; font-size: 12.5px; color: #5c6b8a; }
.tg-meus-st { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: #eef1f7; color: #5c6b8a; }
.tg-meus li.is-acertou .tg-meus-st { background: #dcfce7; color: #15803d; }
.tg-meus li.is-errou .tg-meus-st { background: #fee2e2; color: #b91c1c; }
.tg-meus li.is-pendente .tg-meus-st { background: #f1eafe; color: #6d28d9; }

/* equipe */
.tg-equipe-sec { margin: 0 0 26px; }
.tg-equipe-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; font: 700 18px/1.2 Lexend, Poppins, sans-serif; color: #0f1a33; border: 0; }
.tg-equipe-h i { width: 10px; height: 10px; border-radius: 3px; align-self: center; }
.tg-equipe-h small { font: 400 13px/1.3 Inter, sans-serif; color: #8a96b0; }
.tg-equipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tg-membro { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 16px 16px; background: #fff; border: 1px solid #e6eaf3; border-radius: 16px; transition: box-shadow .2s, transform .2s; }
.tg-membro:hover { box-shadow: 0 10px 30px -12px rgba(15, 26, 51, .18); transform: translateY(-2px); }
.tg-membro-av { --c: #7c3aed; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c); background: var(--c); color: #fff !important; font: 700 28px/1 Lexend, sans-serif; text-decoration: none !important; }
.tg-membro-av img { width: 100%; height: 100%; object-fit: cover; }
.tg-membro h3 { margin: 14px 0 4px; font-size: 16px; }
.tg-membro h3 a { color: #0f1a33; text-decoration: none; }
.tg-membro .tg-rank { margin-bottom: 8px; }
.tg-membro-sobre { margin: 4px 0 8px; font-size: 13px; color: #5c6b8a; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tg-membro-meta { list-style: none; margin: 4px 0 12px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; font-size: 12px; color: #8a96b0; }
.tg-membro-meta b { color: #3b4766; }
.tg-membro-acoes { margin-top: auto; display: flex; gap: 6px; align-items: center; justify-content: center; }

/* ---------- Menções ---------- */
a.tg-mencao { display: inline-block; padding: 0 5px; border-radius: 5px; background: #f1eafe; color: #6d28d9 !important; font-weight: 600; text-decoration: none !important; }
a.tg-mencao:hover { background: #e4d8fd; }
.tg-mencao-menu {
	position: absolute; z-index: 10050; min-width: 220px; max-width: 280px; max-height: 260px; overflow: auto; padding: 4px;
	background: #fff; border: 1px solid #e6eaf3; border-radius: 12px; box-shadow: 0 14px 40px -12px rgba(15, 26, 51, .3);
	font: 13.5px/1.3 Inter, system-ui, sans-serif;
}
.tg-mencao-menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 9px; border: 0; border-radius: 8px; background: none; color: #0f1a33; text-align: left; cursor: pointer; font: inherit; }
.tg-mencao-menu button.on, .tg-mencao-menu button:hover { background: #f1eafe; color: #6d28d9; }
.tg-mencao-menu .tg-av { --s: 24px; }
.tg-mencao-menu small { margin-left: auto; color: #8a96b0; font-size: 11px; }

/* ---------- Níveis e conquistas ---------- */
.tg-nivel {
	--c: #7c3aed;
	display: inline-flex; align-items: center; gap: 5px; margin: 4px 0 0; padding: 2px 8px; border-radius: 999px;
	background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c) !important;
	font: 600 11px/1.5 Inter, system-ui, sans-serif; white-space: nowrap;
}
.tg-nivel b { font-weight: 800; }
.postprofile .tg-nivel { display: flex; width: max-content; margin: 6px auto 0; }
.tg-conq-nivel { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.tg-conq-num { flex: 0 0 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #a78bfa, #7c3aed); color: #fff; font: 800 18px/1 Lexend, sans-serif; }
.tg-conq-nivel strong { display: block; font-size: 14px; color: #0f1a33; }
.tg-conq-nivel small { color: #8a96b0; font-size: 12px; }
.tg-conq-barra { height: 6px; margin-top: 6px; border-radius: 3px; background: #eef1f7; overflow: hidden; }
.tg-conq-barra i { display: block; height: 100%; background: linear-gradient(90deg, #a78bfa, #7c3aed); }
.tg-conq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; }
.tg-conq-item { position: relative; aspect-ratio: 1; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: #f1eafe; cursor: help; }
.tg-conq-item.off { background: #f3f5fa; filter: grayscale(1); opacity: .45; }
.tg-conq-item[data-tip]:hover::after {
	content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 5;
	width: max-content; max-width: 200px; padding: 6px 9px; border-radius: 8px; background: #0f1a33; color: #fff;
	font: 500 11.5px/1.35 Inter, sans-serif; text-align: center; white-space: normal;
}

/* ---------- Palpites no placar ---------- */
.tg-palp { display: flex; gap: 4px; margin-top: 8px; }
.tg-palp button {
	flex: 1; min-width: 0; padding: 5px 4px; border: 1px solid #e6eaf3; border-radius: 8px; background: #fff; cursor: pointer;
	font: 600 11px/1.2 Inter, system-ui, sans-serif; color: #3b4766; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tg-palp button:hover:not(:disabled) { border-color: #a78bfa; color: #6d28d9; }
.tg-palp button.on { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.tg-palp button:disabled { cursor: default; opacity: .7; }
.tg-palp-k { display: block; margin-top: 8px; font: 500 10px/1 Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #8a96b0; }
.tg-palp-k a { color: #7c3aed !important; text-decoration: none; letter-spacing: .06em; }

/* ---------- Agradecer / Media Embed (extensões) ---------- */
.post .thanks, .post .thanks_list, .post #list_thanks, .post [id^="list_thanks"] { font-size: 12.5px; color: #5c6b8a; }
.post [id^="list_thanks"] { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: #f6f2ff; }
.postbody .post-buttons .button[title*="Agradec"], .postbody .post-buttons .button[title*="hank"] { color: #7c3aed; }
.postbody .mediaembed, .postbody iframe[src*="youtube"], .postbody iframe[src*="twitch"] { max-width: 100%; border-radius: 12px; }

@media (max-width: 860px) {
	.tg-page-grid { grid-template-columns: 1fr; }
	.tg-hide-sm { display: none; }
	.tg-page-hero { padding: 22px 18px; }
	.tg-page-hero h1 { font-size: 23px; }
	.tg-rank-tab th, .tg-rank-tab td { padding: 9px 8px; }
}
#tg-conquistas[hidden] { display: none !important; }
/* Agradecer: sem o medidor de estrelas, lista mais limpa */
[id^="div_post_reput"], .postprofile dd:has(> [id^="rating"]) { display: none !important; }
.post [id^="list_thanks"] { padding: 0; background: none; margin-top: 12px; }
.post [id^="list_thanks"] .notice { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; border: 0 !important; border-radius: 10px; background: #f6f2ff; font-size: 12.5px; color: #5c6b8a; }
.post [id^="list_thanks"] .notice dl, .post [id^="list_thanks"] .notice dd, .post [id^="list_thanks"] .notice dt { margin: 0; display: inline; }
.post [id^="list_thanks"] .post-buttons { margin: 0 !important; float: none !important; }
.post [id^="list_thanks"] .post-buttons .button { width: 22px; height: 22px; padding: 0; min-height: 0; }
.post [id^="list_thanks"] a { color: #6d28d9; font-weight: 600; }