/* MyTag.Live — página pública.
   As cores vêm da paleta (--bg, --card, --text, --accent, --accent2, --on-accent, --ring)
   e as letras de --f-nome, --f-bio, --f-botoes, --f-titulos, --f-gamertags (gerados no perfil.php). */
:root {
  --bg: #0B0912; --card: #15111F; --text: #F4F1FA; --accent: #7C4DFF; --accent2: #2EE6D6; --on-accent: #FFFFFF; --ring: #7C4DFF;
  --f-nome: system-ui, sans-serif; --f-bio: system-ui, sans-serif; --f-botoes: system-ui, sans-serif;
  --f-titulos: system-ui, sans-serif; --f-gamertags: system-ui, sans-serif; --f-setup: system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background-color: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.5;
}
a { color: inherit; }
.f-nome { font-family: var(--f-nome); }
.f-bio { font-family: var(--f-bio); }
.f-botoes { font-family: var(--f-botoes); }
.f-titulos { font-family: var(--f-titulos); }
.f-gamertags { font-family: var(--f-gamertags); }
.f-setup { font-family: var(--f-setup); }
/* A letra pixel é muito larga: reduzir nos grupos onde é usada */
.pixel-nome .f-nome { font-size: 17px !important; line-height: 1.6 !important; }
.pixel-bio .f-bio { font-size: 11px; line-height: 1.9; }
.pixel-botoes .f-botoes { font-size: 11px; line-height: 1.8; }
.pixel-titulos .f-titulos { font-size: 11px !important; }
.pixel-gamertags .f-gamertags { font-size: 10px; line-height: 1.9; }
.pixel-setup .f-setup { font-size: 11px; line-height: 1.8; }
.pixel-setup .p-feature .p-title { font-size: 12px; }
.pixel-setup .p-feature .p-sub, .pixel-setup .s-badge { font-size: 9px; line-height: 1.8; }

/* Barra do dono e botão claro/escuro */
.p-ownerbar {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 10px 16px; font-size: 14px; background: var(--card);
  border-bottom: 1px solid color-mix(in srgb, var(--text) 15%, transparent);
}
.p-ownerbar a { color: var(--accent2); font-weight: 700; }
/* Link de demonstração privado: faixa no topo + "Quero esta página" */
.p-demo { position: sticky; top: 0; z-index: 30; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 14px;
  padding: 9px 16px; font-size: 14px; background: color-mix(in srgb, var(--card) 92%, var(--accent)); color: var(--text);
  border-bottom: 2px solid var(--accent); box-shadow: 0 6px 20px rgba(0,0,0,.25); backdrop-filter: blur(8px); }
.p-demo-t { font-weight: 700; text-align: center; }
.p-demo-t small { font-weight: 500; opacity: .75; }
.p-demo-btn { min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 800; cursor: pointer;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); animation: p-demo-pulse 2.4s ease-in-out infinite; }
.p-demo-btn:focus-visible, .p-demo-close:focus-visible { outline: 3px solid var(--accent2); outline-offset: 2px; }
@keyframes p-demo-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 0%, transparent); } }
.p-demo-dlg { width: min(440px, calc(100vw - 32px)); padding: 0; border: 1px solid color-mix(in srgb, var(--text) 18%, transparent); border-radius: 18px; background: var(--card); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.p-demo-dlg::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(3px); }
.p-demo-form { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.p-demo-form h2 { margin: 0; font-size: 20px; }
.p-demo-form p { margin: 0; opacity: .8; font-size: 14px; }
.p-demo-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; }
.p-demo-form input, .p-demo-form textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--text) 22%, transparent); background: var(--bg); color: var(--text); font: inherit; font-weight: 400; }
.p-demo-form .p-demo-out { padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 18%, transparent); opacity: 1; font-weight: 600; }
.p-demo-acts { display: flex; justify-content: flex-end; gap: 10px; }
.p-demo-close { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--text) 25%, transparent); background: transparent; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .p-demo-btn { animation: none; } }
.is-demo .p-cta { display: none; }   /* na demonstração, o botão é o "Quero esta página" da faixa */
.p-mode {
  position: fixed; top: calc(env(safe-area-inset-top, 0px) + 12px); right: 12px; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--card); color: var(--text); border: 1px solid color-mix(in srgb, var(--text) 20%, transparent);
}
.has-ownerbar .p-mode { top: calc(env(safe-area-inset-top, 0px) + 56px); }
.p-mode:focus-visible { outline: 3px solid var(--accent2); outline-offset: 2px; }

.p-wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 16px 40px; }

/* Cabeçalho */
.p-head { text-align: center; }
.p-banner { aspect-ratio: 3 / 1; max-width: 100%; margin: 16px 0 0; overflow: hidden; border-radius: 18px; background: var(--card); }
.p-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-avatar {
  width: 112px; height: 112px; margin: -56px auto 0; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 4px solid var(--ring); background: var(--card); color: var(--text);
}
.no-banner .p-avatar { margin-top: 40px; }
.p-avatar img { width: 100%; height: 100%; object-fit: cover; }
.p-avatar span { font-size: 44px; font-weight: 800; }
.p-head h1 { margin: 12px 0 0; font-size: 26px; line-height: 1.2; overflow-wrap: anywhere; }
.p-nick { margin: 2px 0 0; opacity: .7; font-size: 15px; }
.p-bio { margin: 12px auto 0; max-width: 460px; font-size: 15px; opacity: .9; overflow-wrap: anywhere; }

/* Ícones (círculo com o logótipo) */
.ic { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; display: inline-grid; place-items: center; }
.ic { background: color-mix(in srgb, var(--accent) 22%, var(--card)); color: var(--accent2); }
.icons-brand .ic.has-brand { background: var(--brand); color: var(--on-brand); box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 18%, transparent); }
[hidden] { display: none !important; }
.ic-spacer { width: 34px; flex-shrink: 0; }
.p-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.p-icons a { display: inline-flex; border-radius: 50%; transition: transform .12s; }
.p-icons .ic { width: 44px; height: 44px; }
.p-icons a:hover { transform: translateY(-2px); }
.p-icons a:focus-visible { outline: 3px solid var(--accent2); outline-offset: 3px; }

/* ---------- Caixas: .bx (sombra/brilho) > .bx-s (forma e contorno) > .bx-i (preenchimento) ---------- */
.bx { display: block; text-decoration: none; }
.bx-s { display: block; padding: 2px; background: color-mix(in srgb, var(--accent) 45%, transparent); }
.bx-i { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 10px 14px; background: var(--card); color: var(--text); }

.shape-reto .bx-s, .shape-reto .bx-i { border-radius: 0; }
.shape-suave .bx-s { border-radius: 9px; } .shape-suave .bx-i { border-radius: 7px; }
.shape-arredondado .bx-s { border-radius: 16px; } .shape-arredondado .bx-i { border-radius: 14px; }
.shape-pilula .bx-s, .shape-pilula .bx-i { border-radius: 999px; } .shape-pilula .bx-i { padding-inline: 12px 18px; }
.shape-chanfrado .bx-s, .shape-chanfrado .bx-i { clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.shape-inclinado .bx-s, .shape-inclinado .bx-i { clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.shape-inclinado .bx-i { padding-inline: 22px; }

.fx-solido .bx-s { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.fx-contorno .bx-s { background: var(--accent); } .fx-contorno .bx-i { background: var(--bg); }
.fx-vidro .bx-s { background: color-mix(in srgb, var(--text) 18%, transparent); }
.fx-vidro .bx-i { background: color-mix(in srgb, var(--card) 60%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.fx-sombra .bx-s { background: transparent; } .fx-sombra { filter: drop-shadow(0 6px 12px rgba(0,0,0,.45)); }
.fx-neon .bx-s { background: var(--accent); } .fx-neon .bx-i { background: var(--bg); }
.fx-neon { filter: drop-shadow(0 0 6px var(--accent)) drop-shadow(0 0 2px var(--accent)); }
.fx-retro .bx-s { background: var(--text); } .fx-retro { filter: drop-shadow(4px 4px 0 var(--accent2)); }
.has-bg .fx-contorno .bx-i, .has-bg .fx-neon .bx-i { background: color-mix(in srgb, var(--bg) 80%, transparent); }

/* Links */
.p-links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 26px; }
.p-link { transition: transform .12s; }
.p-link:hover { transform: translateY(-2px); }
.p-link:focus-visible { outline: 3px solid var(--accent2); outline-offset: 3px; }
.p-lab { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.p-plat { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent2); }
.p-title { font-weight: 700; overflow-wrap: anywhere; }
.p-empty { margin-top: 28px; text-align: center; opacity: .7; }

/* Gamertags */
.p-tags { margin-top: 32px; }
.p-tags h2 { margin: 0 0 12px; font-size: 14px; text-align: center; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.p-tags ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.p-tag-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.p-tag-plat { font-size: 12px; opacity: .7; }
.p-tag { font-weight: 700; overflow-wrap: anywhere; }
.p-copy {
  flex-shrink: 0; min-height: 40px; min-width: 84px; padding: 0 14px; cursor: pointer;
  background: var(--accent); color: var(--on-accent); border: 0; border-radius: 10px; font: inherit; font-weight: 700; font-size: 14px;
}
.p-copy:focus-visible { outline: 3px solid var(--accent2); outline-offset: 2px; }

/* Rodapé */
.p-cta[hidden] { display: none; }
.p-foot { margin-top: 40px; text-align: center; font-size: 14px; }
.p-cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  text-decoration: none; font-weight: 700; background: var(--accent); color: var(--on-accent);
}
.p-foot p { margin: 14px 0 0; opacity: .75; }
.p-foot p a { font-weight: 800; text-decoration: none; }
.p-dot { display: inline-block; width: 6px; height: 6px; margin: 0 2px 1px; border-radius: 50%; background: #FF3355; }

@media (prefers-reduced-motion: reduce) {
  .p-link, .p-icons a { transition: none; }
  .p-link:hover, .p-icons a:hover { transform: none; }
}

/* ---------- Fase C ---------- */
/* Avatar: moldura para o estado AO VIVO */
.p-avatar-wrap { position: relative; width: 112px; margin: -56px auto 0; }
.no-banner .p-avatar-wrap { margin-top: 40px; }
.p-avatar-wrap .p-avatar { margin: 0; }
.p-avatar-wrap.is-live .p-avatar { border-color: #EB0400; animation: p-glow 1.6s ease-in-out infinite; }
.p-avatar-wrap.is-live::before, .p-avatar-wrap.is-live::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid #EB0400;
  animation: p-pulse 1.6s cubic-bezier(.2,.6,.4,1) infinite; pointer-events: none;
}
.p-avatar-wrap.is-live::after { animation-delay: .8s; }
.p-live-badge {
  position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
  padding: 2px 9px; border-radius: 6px; background: #EB0400; color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 0 0 3px var(--bg);
}
@keyframes p-pulse { 0% { transform: scale(1); opacity: .95; } 100% { transform: scale(1.32); opacity: 0; } }
@keyframes p-glow { 0%, 100% { box-shadow: 0 0 10px 1px rgba(235, 4, 0, .45); } 50% { box-shadow: 0 0 26px 6px rgba(235, 4, 0, .8); } }
.p-icons a.is-live { position: relative; }
.p-icons a.is-live::after {
  content: ""; position: absolute; top: 0; right: 0; width: 12px; height: 12px; border-radius: 50%;
  background: #EB0400; box-shadow: 0 0 0 2px var(--bg);
}
.p-live { color: color-mix(in srgb, #FF3B3B 75%, var(--text)); display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.p-live-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: #FF3B3B; animation: p-blink 1.4s ease-in-out infinite; }
@keyframes p-blink { 50% { opacity: .3; } }
.p-sub { font-size: 13px; opacity: .75; overflow-wrap: anywhere; }
.p-stream { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Botão em destaque "Ver o meu Setup" */
.p-feature { margin-top: 26px; }
.p-feature + .p-links { margin-top: 12px; }
.p-feature .bx-i { min-height: 64px; }
.p-feature-ic { background: var(--accent); color: var(--on-accent); }
.p-feature-go { flex-shrink: 0; width: 34px; opacity: .7; }
.p-feature .p-title { font-size: 17px; }

/* Apoiar o canal: 2 cartões lado a lado */
.p-support { margin-top: 32px; }
.p-support h2, .p-tags h2, .s-cat h2 { color: var(--accent2); opacity: 1; }
.p-support h2 { margin: 0 0 12px; font-size: 14px; text-align: center; letter-spacing: .08em; text-transform: uppercase; }
.p-support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.p-support.is-single .p-support-grid { grid-template-columns: minmax(0, 1fr); }
.p-sp { transition: transform .12s; }
.p-sp:hover { transform: translateY(-2px); }
.p-sp:focus-visible { outline: 3px solid var(--accent2); outline-offset: 3px; }
.p-sp .bx-i { min-height: 64px; gap: 10px; padding: 10px 12px; }
.p-sp-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.p-sp-title { font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.p-sp-dom { font-size: 12px; opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-ic {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; display: inline-grid; place-items: center; overflow: hidden;
}
.sp-ic svg { display: block; }
.sp-generic { background: color-mix(in srgb, var(--accent) 22%, var(--card)); color: #FF4D6D; }
.sp-flag { background: transparent; border-radius: 6px; width: 36px; height: 27px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 20%, transparent); }
.sp-flag svg { width: 100%; height: 100%; }
@media (max-width: 360px) { .p-support-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Página do Setup ---------- */
.s-back {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-top: 12px;
  font-weight: 700; text-decoration: none; color: var(--accent2);
}
.s-back:focus-visible { outline: 3px solid var(--accent2); outline-offset: 2px; border-radius: 6px; }
.s-head { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.s-avatar.p-avatar { width: 72px; height: 72px; margin: 0; flex-shrink: 0; border-width: 3px; }
.s-avatar.p-avatar span { font-size: 28px; }
.p-avatar-wrap.s-avatar-wrap { width: 72px; margin: 0; flex-shrink: 0; }
.s-head h1 { margin: 0; font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; }
.s-sub { margin: 4px 0 0; opacity: .75; font-size: 14px; }
.s-cat { margin-top: 28px; }
.s-cat h2 { margin: 0 0 12px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.s-items { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.s-items .bx-i { min-height: 64px; }
.s-thumb {
  flex-shrink: 0; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 10px; overflow: hidden;
  cursor: zoom-in; background: var(--bg);
}
.s-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s-thumb:focus-visible { outline: 3px solid var(--accent2); outline-offset: 2px; }
.s-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.s-name { font-weight: 700; overflow-wrap: anywhere; line-height: 1.3; }
.s-badge {
  display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  background: color-mix(in srgb, var(--accent2) 18%, transparent); color: var(--accent2);
}
.s-badge a, .s-badge strong { font-weight: 800; text-transform: none; letter-spacing: 0; color: var(--text); }
.s-badge a, .s-badge strong { font-size: 12px; }
.s-badge a { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 0; }
.s-badge a:hover { color: var(--accent2); }
.s-badge a:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; border-radius: 3px; }
.s-badge-patrocinio { background: color-mix(in srgb, #FFB020 22%, transparent); color: color-mix(in srgb, #FFB020 55%, var(--text)); }
.s-go {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 14px;
  border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 14px; text-decoration: none;
}
.s-go:focus-visible { outline: 3px solid var(--accent2); outline-offset: 2px; }
.s-aff { margin: 24px 0 0; font-size: 13px; opacity: .7; text-align: center; }

/* Imagem em tamanho grande */
.s-lightbox {
  max-width: min(92vw, 900px); max-height: 92vh; padding: 0; border: 0; border-radius: 14px;
  background: var(--card); color: var(--text); overflow: hidden;
}
.s-lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.s-lightbox img { display: block; max-width: 100%; max-height: calc(92vh - 48px); margin: 0 auto; object-fit: contain; }
.s-cap { margin: 0; padding: 12px 56px 14px 16px; font-weight: 700; }
.s-close {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(0, 0, 0, .6); color: #fff;
}
.s-close:focus-visible { outline: 3px solid var(--accent2); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  /* sem movimento: os anéis param, fica só um brilho suave a "respirar" */
  .p-avatar-wrap.is-live::before, .p-avatar-wrap.is-live::after { animation: none; opacity: 0; }
  .p-avatar-wrap.is-live .p-avatar { animation-duration: 3s; }
  .p-live-dot { animation: none; }
  .p-sp { transition: none; }
  .p-sp:hover { transform: none; }
}

/* Bandeira do país ao lado do nome */
.p-flag {
  display: inline-block; width: 24px; height: 18px; margin-left: 10px; vertical-align: 0.05em;
  border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 25%, transparent);
}
.sp-flag img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Gamertag personalizada com imagem própria */
.ic.ic-img { padding: 0; overflow: hidden; }
.ic.ic-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.p-live-badge { z-index: 2; }

/* Selo Top Pro Player ao lado do nome */
.p-top { display: inline-flex; margin-left: 8px; vertical-align: -0.12em; color: #F5B400; filter: drop-shadow(0 1px 4px rgba(245,180,0,.45)); }
.p-top svg { width: .9em; height: .9em; min-width: 18px; min-height: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Online / a jogar (Steam, Discord) por baixo do nome */
.p-presence { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 6px 0 2px; }
.p-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 10px 4px 5px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.2;
  background: color-mix(in srgb, var(--text) 8%, transparent); border: 1px solid color-mix(in srgb, var(--text) 14%, transparent); overflow-wrap: anywhere; }
.p-chip .ic { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; }
.p-chip-online::before { content: ""; order: 3; width: 7px; height: 7px; border-radius: 50%; background: #23C55E; }
.p-chip-game { border-color: color-mix(in srgb, #23C55E 45%, transparent); }

/* Steam / Discord online: igual ao AO VIVO, mas a verde */
.p-online { color: color-mix(in srgb, #23C55E 80%, var(--text)); display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.p-on-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: #23C55E; box-shadow: 0 0 6px #23C55E; animation: p-blink 1.4s ease-in-out infinite; }
.p-icons a.is-online { position: relative; }
.p-icons a.is-online::after {
  content: ""; position: absolute; top: 0; right: 0; width: 12px; height: 12px; border-radius: 50%;
  background: #23C55E; box-shadow: 0 0 0 2px var(--bg); animation: p-blink 1.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .p-on-dot, .p-icons a.is-online::after { animation: none; } }
.p-icons a.is-live::after { animation: p-blink 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .p-icons a.is-live::after { animation: none; } }

/* ---------- Gamertags: grelha de 3 ícones (rato por cima = nick, clique = copia) ---------- */
.p-tags ul.p-gt-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.p-gt-li { position: relative; flex: 0 1 calc((100% - 20px) / 3); min-width: 0; }
.p-gt { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; transition: transform .12s; }
.p-gt .bx-i { justify-content: center; min-height: 58px; padding: 8px; }
.p-gt .ic { width: 40px; height: 40px; }
.p-gt:hover { transform: translateY(-2px); }
.p-gt:focus-visible { outline: 3px solid var(--accent2); outline-offset: 3px; }
.p-gt-li.is-copied .bx-s, .neon .p-gt-li.is-copied .bx-s { background: #23C55E; }
.p-gt-tip {
  position: absolute; z-index: 4; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px);
  width: max-content; max-width: min(240px, 80vw); padding: 8px 12px; border-radius: 10px; text-align: center;
  display: flex; flex-direction: column; background: var(--card); color: var(--text);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s, transform .15s, visibility .15s;
}
.p-gt-tip::after {
  content: ""; position: absolute; top: 100%; left: 50%; margin-left: -6px;
  border: 6px solid transparent; border-top-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.p-gt-tip .p-tag { overflow-wrap: anywhere; }
.p-gt-hint { margin-top: 2px; font-size: 11px; opacity: .6; }
.p-gt-grid:not(.is-few) .p-gt-li:nth-child(3n+1) .p-gt-tip { left: 0; transform: translate(0, 4px); }
.p-gt-grid:not(.is-few) .p-gt-li:nth-child(3n+1) .p-gt-tip::after { left: 28px; }
.p-gt-grid:not(.is-few) .p-gt-li:nth-child(3n) .p-gt-tip { left: auto; right: 0; transform: translate(0, 4px); }
.p-gt-grid:not(.is-few) .p-gt-li:nth-child(3n) .p-gt-tip::after { left: auto; right: 22px; }
@media (hover: hover) {
  .p-gt-li:hover .p-gt-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .p-gt-grid:not(.is-few) .p-gt-li:nth-child(3n+1):hover .p-gt-tip,
  .p-gt-grid:not(.is-few) .p-gt-li:nth-child(3n):hover .p-gt-tip { transform: none; }
}
.p-gt-li:has(.p-gt:focus-visible) .p-gt-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.p-gt-grid:not(.is-few) .p-gt-li:nth-child(3n+1):has(.p-gt:focus-visible) .p-gt-tip,
.p-gt-grid:not(.is-few) .p-gt-li:nth-child(3n):has(.p-gt:focus-visible) .p-gt-tip { transform: none; }

/* Aviso "Copiado" */
.p-toast {
  position: fixed; z-index: 30; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  max-width: calc(100vw - 32px); padding: 10px 18px; border-radius: 999px; overflow-wrap: anywhere; text-align: center;
  background: var(--text); color: var(--bg); font-size: 14px; font-weight: 700; box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}
.p-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Apoiar o canal: até 3 caixas compactas, sempre centradas ---------- */
.p-support-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.p-sp { flex: 0 1 calc((100% - 20px) / 3); min-width: 0; }
.p-sp .bx-i { min-height: 46px; gap: 8px; padding: 6px 10px; }
.shape-pilula.p-sp .bx-i { padding-inline: 8px 14px; }
.p-sp .sp-ic { width: 28px; height: 28px; border-radius: 8px; }
.p-sp .sp-ic svg { width: 17px; height: 17px; }
.p-sp .sp-flag { width: 28px; height: 21px; border-radius: 4px; }
.p-sp-title { font-size: 14px; overflow-wrap: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 400px) {
  .p-sp .bx-i { padding: 6px 7px; gap: 6px; }
  .p-sp .sp-ic { width: 24px; height: 24px; border-radius: 7px; }
  .p-sp .sp-ic svg { width: 15px; height: 15px; }
  .p-sp .sp-flag { width: 24px; height: 18px; }
  .p-sp-title { font-size: 12px; }
}

/* ---------- Paletas Neon (Top Pro Player) ---------- */
body.neon {
  --neon-grid:
    radial-gradient(ellipse 90% 55% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(ellipse 70% 40% at 50% 100%, color-mix(in srgb, var(--accent2) 16%, transparent), transparent 70%),
    linear-gradient(color-mix(in srgb, var(--accent) 9%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 9%, transparent) 1px, transparent 1px);
}
body.neon:not(.has-bg) { background-image: var(--neon-grid); background-size: 100% 100%, 100% 100%, 34px 34px, 34px 34px; background-attachment: fixed; }

/* caixas com brilho e contorno em degradê */
.neon .bx { filter: drop-shadow(0 0 7px color-mix(in srgb, var(--accent) 50%, transparent)); transition: filter .15s, transform .12s; }
.neon .bx:hover { filter: drop-shadow(0 0 13px color-mix(in srgb, var(--accent) 75%, transparent)); }
.neon .fx-retro { filter: drop-shadow(4px 4px 0 var(--accent2)) drop-shadow(0 0 7px color-mix(in srgb, var(--accent) 50%, transparent)); }
.neon .fx-solido .bx-s, .neon .fx-contorno .bx-s, .neon .fx-neon .bx-s { background: linear-gradient(120deg, var(--accent), var(--accent2)); }
.neon .p-gt-li .p-gt-tip { box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 45%, transparent); }

/* nome em degradê com brilho */
.neon .p-head h1 .p-name {
  display: inline-block; max-width: 100%;
  background: linear-gradient(90deg, var(--text), var(--accent) 45%, var(--accent2) 75%, var(--text));
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 55%, transparent));
  animation: neon-shine 6s linear infinite;
}
@keyframes neon-shine { to { background-position: -200% 0; } }

/* avatar e títulos com brilho */
.neon .p-avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 20px 2px color-mix(in srgb, var(--ring) 60%, transparent); }
.neon .p-support h2, .neon .p-tags h2, .neon .s-cat h2 { text-shadow: 0 0 10px color-mix(in srgb, var(--accent2) 70%, transparent); }
.neon .p-plat { text-shadow: 0 0 8px color-mix(in srgb, var(--accent2) 60%, transparent); }
.neon .p-cta { background: linear-gradient(120deg, var(--accent), var(--accent2)); box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 55%, transparent); }

/* AO VIVO: o círculo pulsa na cor da paleta (nas outras paletas continua vermelho) */
.neon .p-avatar-wrap.is-live .p-avatar { border-color: var(--accent); animation-name: neon-glow; }
.neon .p-avatar-wrap.is-live::before, .neon .p-avatar-wrap.is-live::after { border-color: var(--accent); }
.neon .p-live-badge { background: linear-gradient(120deg, var(--accent), var(--accent2)); color: var(--on-accent); }
@keyframes neon-glow {
  0%, 100% { box-shadow: 0 0 10px 1px color-mix(in srgb, var(--accent) 45%, transparent); }
  50% { box-shadow: 0 0 28px 7px color-mix(in srgb, var(--accent) 85%, transparent); }
}

@media (prefers-reduced-motion: reduce) {
  .neon .p-head h1 .p-name { animation: none; }
  .p-gt, .p-gt-tip, .p-toast { transition: none; }
  .p-gt:hover { transform: none; }
}

/* Setup: tipo do item (ex.: MONITOR 1) por cima do nome */
.s-type { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; color: var(--accent2); overflow-wrap: anywhere; }
.s-type + .s-name { margin-top: -2px; }
.neon .s-type { text-shadow: 0 0 8px color-mix(in srgb, var(--accent2) 60%, transparent); }
.pixel-setup .s-type { font-size: 9px; line-height: 1.8; }

/* Setup: título da categoria centrado, com cantos de mira e linhas dos lados */
.s-cat h2.s-cat-h { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 14px; text-align: center; letter-spacing: .12em; }
.s-cat-h span { position: relative; padding: 6px 16px; overflow-wrap: anywhere; }
.s-cat-h span::before, .s-cat-h span::after { content: ""; position: absolute; width: 9px; height: 9px; border: 2px solid var(--accent); }
.s-cat-h span::before { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.s-cat-h span::after { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.s-cat-h::before, .s-cat-h::after { content: ""; flex: 0 1 60px; min-width: 16px; height: 2px; background: linear-gradient(90deg, transparent, var(--accent)); }
.s-cat-h::after { background: linear-gradient(90deg, var(--accent), transparent); }
.neon .s-cat-h span::before, .neon .s-cat-h span::after { filter: drop-shadow(0 0 4px var(--accent)); }

/* Título dos Links ("Canais & Redes"), igual aos de Gamertags e Apoiar o canal */
.p-links { margin-top: 32px; }
.p-links-h { margin: 0; font-size: 14px; text-align: center; letter-spacing: .08em; text-transform: uppercase; color: var(--accent2); }
.p-feature + .p-links { margin-top: 32px; }
.neon .p-links-h { text-shadow: 0 0 10px color-mix(in srgb, var(--accent2) 70%, transparent); }

/* Títulos da página principal (Canais & Redes, Gamertags, Apoiar o canal): » TÍTULO « a piscar */
.p-links-h::before, .p-tags h2::before, .p-support h2::before,
.p-links-h::after, .p-tags h2::after, .p-support h2::after {
  display: inline-block; color: var(--accent); font-size: 1.45em; line-height: 0; vertical-align: -0.08em;
  animation: p-chev 1.2s ease-in-out infinite;
}
.p-links-h::before, .p-tags h2::before, .p-support h2::before { content: "»"; margin-right: 10px; }
.p-links-h::after, .p-tags h2::after, .p-support h2::after { content: "«"; margin-left: 10px; }
@keyframes p-chev { 50% { opacity: .3; } }
.neon .p-links-h::before, .neon .p-tags h2::before, .neon .p-support h2::before,
.neon .p-links-h::after, .neon .p-tags h2::after, .neon .p-support h2::after { text-shadow: 0 0 8px var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .p-links-h::before, .p-tags h2::before, .p-support h2::before,
  .p-links-h::after, .p-tags h2::after, .p-support h2::after { animation: none; }
}

/* Setup compacto: uma caixa por categoria, com linhas a separar os itens */
.s-group .bx-i.s-items { display: block; min-height: 0; padding: 4px 0; margin: 0; list-style: none; }
.s-group .s-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.s-group .s-row + .s-row { border-top: 1px solid color-mix(in srgb, var(--text) 13%, transparent); }
.s-group.shape-pilula .bx-s, .s-group.shape-pilula .bx-i { border-radius: 26px; }
.s-group.shape-pilula .s-row { padding-inline: 22px; }
.s-group.shape-inclinado .bx-s, .s-group.shape-inclinado .bx-i { clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.s-group.shape-inclinado .s-row { padding-inline: 24px; }
.s-group.shape-chanfrado .bx-s, .s-group.shape-chanfrado .bx-i { clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); }
.s-group .s-go { min-height: 36px; padding: 0 12px; font-size: 13px; }
.s-group .s-thumb { width: 48px; height: 48px; }
/* nome da recomendação/patrocínio: letra simples, sempre legível */
.s-badge .s-badge-name { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important; font-size: 13px !important; font-weight: 700; line-height: 1.3; }
.sp-ic.sp-img { background: transparent; padding: 0; }
.sp-ic.sp-img img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Apoiar o canal: ícone + nome centrados dentro de cada caixa */
.p-sp .bx-i { justify-content: center; }
.p-sp .p-sp-txt { flex: 0 1 auto; }

/* Vitrine da página inicial (?montra=1): sem barra de rolagem, a página desliza sozinha */
html:has(body.is-montra) { scrollbar-width: none; }
html:has(body.is-montra)::-webkit-scrollbar, body.is-montra::-webkit-scrollbar { display: none; }

/* Selo 💡 Ideia da comunidade (ao lado do selo Top) */
.p-idea { display: inline-flex; margin-left: 6px; vertical-align: -0.12em; color: #FFC93C; filter: drop-shadow(0 1px 5px rgba(255,201,60,.55)); -webkit-text-fill-color: initial; }
.p-idea svg { width: .9em; height: .9em; min-width: 18px; min-height: 18px; }
.p-founder { display: inline-flex; margin-left: 6px; vertical-align: -0.12em; filter: drop-shadow(0 1px 5px rgba(255,201,60,.6)); -webkit-text-fill-color: initial; }
.p-founder svg { width: .9em; height: .9em; min-width: 18px; min-height: 18px; }

/* ---------- Destaques: até 2 imagens 20:9 lado a lado; texto só ao passar o rato (computador) ---------- */
.p-cards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.p-cards.is-one .p-cards-grid { grid-template-columns: minmax(0, 1fr); max-width: calc(50% - 6px); margin: 0 auto; }
.p-card { position: relative; transition: transform .12s; }
.p-card:hover { transform: translateY(-2px); }
.p-card.is-static:hover { transform: none; }
.p-card:focus-visible { outline: 3px solid var(--accent2); outline-offset: 3px; }
.p-card-img { display: block; aspect-ratio: 20 / 9; overflow: hidden; background: var(--card); }
.p-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shape-suave .p-card-img { border-radius: 7px; } .shape-arredondado .p-card-img { border-radius: 14px; }
.p-card.shape-pilula .bx-s { border-radius: 18px; } .p-card.shape-pilula .p-card-img { border-radius: 16px; }
.shape-chanfrado .p-card-img { clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.shape-inclinado .p-card-img { clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.p-card-tip {
  position: absolute; z-index: 4; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px);
  width: max-content; max-width: min(240px, 80vw); padding: 7px 12px; border-radius: 10px; text-align: center; font-size: 13px; font-weight: 700;
  background: var(--card); color: var(--text); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s, transform .15s, visibility .15s;
}
.p-card-tip::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: color-mix(in srgb, var(--accent) 55%, transparent); }
@media (hover: hover) and (pointer: fine) {
  .p-card:hover .p-card-tip, .p-card:focus-visible .p-card-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}
@media (hover: none), (pointer: coarse) { .p-card-tip { display: none; } }
@media (prefers-reduced-motion: reduce) { .p-card, .p-card-tip { transition: none; } }

/* ---------- Twitch +: Ao vivo, Próximas lives, Meta do canal, Melhores clips ---------- */
.tw-sec .tw-in { display: block; padding: 0; min-height: 0; overflow: hidden; }
.tw-box { color: var(--text); transition: transform .12s; }
a.tw-box:hover, .tw-clip:hover { transform: translateY(-2px); }
.tw-box:focus-visible, .tw-clip:focus-visible { outline: 3px solid var(--accent2); outline-offset: 3px; }
.tw-tag { position: absolute; z-index: 2; font: 800 11px/1 system-ui, sans-serif; padding: 5px 7px; border-radius: 6px; background: rgba(0,0,0,.72); color: #fff; letter-spacing: .02em; }
.tw-red { top: 10px; left: 10px; background: #eb0400; }
.tw-bl { bottom: 10px; left: 10px; } .tw-br { bottom: 10px; right: 10px; } .tw-tl { top: 8px; left: 8px; }
.tw-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #18181b linear-gradient(135deg, #1f1147, #0b0b14); }
.tw-thumb img, .tw-cthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tw-play { position: absolute; inset: 0; margin: auto; z-index: 2; width: 56px; height: 56px; border-radius: 50%; background: rgba(145,70,255,.92); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px rgba(145,70,255,.25); }
.tw-meta { display: block; padding: 12px 14px 14px; }
.tw-meta b { display: block; font-size: 15px; line-height: 1.3; }
.tw-meta > span { display: block; font-size: 13px; opacity: .75; margin-top: 2px; }
.tw-meta .tw-cta { display: inline-flex; align-items: center; gap: 6px; opacity: 1; margin-top: 10px; background: #9146ff; color: #fff; font-weight: 800; padding: 7px 12px; border-radius: 9px; }
.tw-sched { list-style: none; margin: 0; padding: 4px 0; }
.tw-sched li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.tw-sched li + li { border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent); }
.tw-day { flex: none; min-width: 54px; text-align: center; border-radius: 10px; padding: 5px 4px; background: color-mix(in srgb, var(--accent) 18%, transparent); font: 800 11px/1.2 system-ui, sans-serif; text-transform: uppercase; }
.tw-day i { display: block; font: 900 18px/1.1 system-ui, sans-serif; font-style: normal; }
.tw-sg { min-width: 0; }
.tw-sg b { display: block; font-size: 14px; line-height: 1.3; }
.tw-sg span { font-size: 12.5px; opacity: .7; }
.tw-next { margin-left: auto; flex: none; font: 800 11px system-ui, sans-serif; color: #fff; background: #9146ff; padding: 4px 9px; border-radius: 20px; white-space: nowrap; }
.tw-next:empty { display: none; }
.tw-hype { margin: 0; padding: 10px 14px; font-weight: 800; font-size: 14px; background: linear-gradient(90deg, rgba(255,90,40,.25), rgba(145,70,255,.25)); }
.tw-goal { padding: 14px; }
.tw-gh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tw-gh b { font-size: 14px; } .tw-gh small { font-size: 12.5px; opacity: .8; font-weight: 700; }
.tw-bar { height: 14px; border-radius: 20px; background: color-mix(in srgb, var(--text) 12%, transparent); margin: 9px 0 6px; overflow: hidden; }
.tw-bar i { display: block; height: 100%; min-width: 14px; border-radius: 20px; background: linear-gradient(90deg, #9146ff, var(--accent)); box-shadow: 0 0 12px rgba(145,70,255,.55); }
.tw-gs { font-size: 12px; opacity: .75; }
.tw-stats { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent); }
.tw-goal + .tw-stats, .tw-hype + .tw-stats { border-top-width: 1px; }
.tw-in > .tw-stats:first-child { border-top: 0; }
.tw-n1 { --n: 1; } .tw-n2 { --n: 2; }
.tw-stats div { padding: 10px 6px; text-align: center; }
.tw-stats div + div { border-left: 1px solid color-mix(in srgb, var(--text) 10%, transparent); }
.tw-stats b { display: block; font: 900 18px/1.2 system-ui, sans-serif; } .tw-stats span { font-size: 11.5px; opacity: .7; }
.tw-clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tw-c1 { grid-template-columns: 1fr; } .tw-c2 { grid-template-columns: repeat(2, 1fr); }
.tw-clip { color: var(--text); transition: transform .12s; }
.tw-cthumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #18181b linear-gradient(135deg, #1f1147, #0b0b14); }
.tw-cthumb .tw-tag { font-size: 10px; padding: 4px 6px; }
.tw-cthumb .tw-br { bottom: 6px; right: 6px; }
.tw-ct { display: block; padding: 7px 8px 9px; font-size: 12px; font-weight: 700; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.shape-pilula .tw-in, .shape-pilula.tw-box .bx-s { border-radius: 22px; }
@media (max-width: 420px) { .tw-clips:not(.tw-c1) { gap: 7px; } .tw-ct { font-size: 11px; } }

/* ============================================================
   Botão Partilhar + Cartão de Jogador (inc/share.php, assets/js/partilhar.js)
   ============================================================ */
.p-head { position: relative; }
.p-share-row { position: relative; height: 0; z-index: 3; }
.p-share {
  position: absolute; top: 12px; right: 0; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; cursor: pointer; padding: 0;
  background: color-mix(in srgb, var(--card) 85%, transparent); color: var(--text);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent), 0 6px 18px rgba(0,0,0,.3);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .15s, box-shadow .15s;
}
.p-share-left .p-share { right: auto; left: 0; }
.no-banner .p-share { top: 74px; }
.p-share:hover { transform: translateY(-1px); box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 60%, transparent); }
.p-share:focus-visible { outline: 3px solid var(--accent2); outline-offset: 2px; }

.pc-ov {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--accent) 28%, transparent), rgba(5,4,10,.85) 62%);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: pc-in .25s ease-out;
}
.pc-ov[hidden] { display: none; }
html.pc-open, html.pc-open body { overflow: hidden; }
@keyframes pc-in { from { opacity: 0; } }
.pc-box { width: 100%; max-width: 400px; margin: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pc-top { width: 100%; display: flex; justify-content: space-between; align-items: center; color: #fff; font-weight: 800; letter-spacing: .14em; font-size: 12px; text-transform: uppercase; }
.pc-x { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; color: #fff; font-size: 15px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); }
.pc-x:focus-visible, .pc-slot:focus-visible, .pc-card:focus-visible { outline: 3px solid var(--accent2); outline-offset: 3px; }

/* Cartão 3D: camadas com profundidade (translateZ), espessura, folha holográfica + purpurina que apanham a "luz" (--sx/--sy), sombra no chão */
.pc-scene { position: relative; perspective: 1100px; width: min(300px, 78vw); aspect-ratio: 5 / 7; touch-action: none; }
.pc-scene::after { content: ""; position: absolute; inset: -12%; z-index: -1; border-radius: 40%; pointer-events: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent); filter: blur(20px); opacity: .7; }
.pc-card {
  position: relative; width: 100%; height: 100%; transform-style: preserve-3d; cursor: pointer; border-radius: 22px;
  transform: rotateY(calc(var(--ry, 0deg) + var(--flip, 0deg))) rotateX(var(--rx, 0deg)) scale(var(--s, 1)); transition: transform .12s ease-out;
  animation: pc-enter 1.1s cubic-bezier(.2,.9,.25,1.15);
}
.pc-card.is-flip { --flip: 180deg; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.pc-card.is-anim { transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.pc-card.pc-js { transition: none; will-change: transform; }   /* movimento pela mola (partilhar.js), sem transições a atrapalhar */
@keyframes pc-enter { 0% { transform: translateY(40px) scale(.55) rotateY(-340deg) rotateX(25deg); opacity: 0; } 35% { opacity: 1; } 100% { transform: none; } }
.pc-burst { position: absolute; inset: -30%; border-radius: 50%; pointer-events: none; opacity: 0; background: radial-gradient(circle, color-mix(in srgb, var(--accent2) 55%, transparent), transparent 60%); animation: pc-burst 1.1s ease-out .55s; }
@keyframes pc-burst { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: .9; } 100% { opacity: 0; transform: scale(1.25); } }
.pc-edge { position: absolute; inset: 0; border-radius: 22px; pointer-events: none; transform: translateZ(calc(var(--z) * -1px));
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 70%, #000), color-mix(in srgb, var(--accent2) 60%, #000)); }
.pc-face { position: absolute; inset: 0; border-radius: 22px; -webkit-backface-visibility: hidden; backface-visibility: hidden; transform-style: preserve-3d; padding: 3px;
  background: linear-gradient(140deg, var(--accent), var(--accent2) 50%, var(--accent)); box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 35%, transparent); }
.pc-back { transform: translateZ(-7px) rotateY(180deg); }
.pc-in { position: absolute; inset: 3px; border-radius: 19px; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--accent) 35%, var(--bg)), var(--bg) 70%); }
.pc-grid { position: absolute; inset: 0; opacity: .18; pointer-events: none;
  background-image: linear-gradient(color-mix(in srgb, var(--accent2) 40%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--accent2) 40%, transparent) 1px, transparent 1px);
  background-size: 22px 22px; -webkit-mask-image: linear-gradient(transparent, #000 40%, transparent); mask-image: linear-gradient(transparent, #000 40%, transparent); }
.pc-prism { position: absolute; inset: 0; mix-blend-mode: color-dodge; opacity: var(--prism-op, .55);
  background: repeating-linear-gradient(115deg, #ff3cac 0%, #ffd23f 6%, #3cffb0 12%, #3cc9ff 18%, #a46bff 24%, #ff3cac 30%); background-size: 400% 400%; background-position: var(--px, 50%) var(--py, 50%);
  -webkit-mask-image: radial-gradient(farthest-corner circle at var(--sx, 50%) var(--sy, 30%), rgba(0,0,0,.95) 0%, rgba(0,0,0,.35) 45%, transparent 80%);
  mask-image: radial-gradient(farthest-corner circle at var(--sx, 50%) var(--sy, 30%), rgba(0,0,0,.95) 0%, rgba(0,0,0,.35) 45%, transparent 80%); }
.pc-glit { position: absolute; inset: 0; mix-blend-mode: color-dodge; opacity: var(--glit-op, .35); background-size: 180px 180px; background-position: var(--gx, 0) var(--gy, 0);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 13 -10.2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); }
.pc-shine { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay;
  background: radial-gradient(farthest-corner circle at var(--sx, 50%) var(--sy, 30%), rgba(255,255,255,.85) 0%, rgba(255,255,255,.18) 30%, rgba(0,0,0,.35) 95%); }
.pc-floor { position: absolute; left: 8%; right: 8%; bottom: -30px; height: 24px; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(0,0,0,.65), transparent); filter: blur(6px);
  transform: translateX(calc(var(--fx, 0) * 1px)) scaleX(var(--fs, 1)); }
/* raridades: Comum prateado e discreto → Supremo dourado */
.pc-t0 { --prism-op: .18; --glit-op: 0; } .pc-t0 .pc-prism { filter: grayscale(1) brightness(1.3); }
.pc-t1 { --prism-op: .45; --glit-op: .22; }
.pc-t2 { --prism-op: .65; --glit-op: .4; }
.pc-t3 { --prism-op: .5; --glit-op: .5; }
/* conteúdo em camadas: cada peça flutua a uma altura (--d em px) */
.pc-pop { position: absolute; inset: 3px; transform-style: preserve-3d; color: var(--text); display: flex; flex-direction: column; align-items: center; padding: 18px 18px 16px; text-align: center; pointer-events: none; }
.pc-pop > * { -webkit-backface-visibility: hidden; backface-visibility: hidden; transform: translateZ(calc(var(--d, 0) * 1px)); }
.pc-rar { position: relative; align-self: stretch; display: flex; justify-content: space-between; gap: 8px; font-size: 10px; font-weight: 800; letter-spacing: .14em; --d: 14; }
.pc-rar b { color: var(--accent2); } .pc-rar span { opacity: .75; }
.pc-r0 b { color: color-mix(in srgb, var(--text) 75%, transparent); }
.pc-av { position: relative; margin-top: 7%; width: 43%; aspect-ratio: 1; border-radius: 50%; padding: 4px; --d: 46; background: conic-gradient(var(--accent), var(--accent2), var(--accent)); box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 70%, transparent), 0 18px 30px rgba(0,0,0,.45); }
.pc-av img, .pc-av > span:not(.pc-lv) { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); display: grid; place-items: center; background: var(--card); font-size: 40px; font-weight: 800; }
.pc-lv { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); padding: 1px 10px; border-radius: 999px; font-size: 11px; font-weight: 900; letter-spacing: .08em; background: #EB0400; color: #fff; box-shadow: 0 0 0 3px var(--bg); }
.pc-lv[hidden] { display: none; }
.pc-name { position: relative; margin-top: 14px; font-size: 25px; font-weight: 800; line-height: 1.15; display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; overflow-wrap: anywhere; --d: 34;
  text-shadow: 0 0 14px color-mix(in srgb, var(--accent) 70%, transparent), 0 6px 14px rgba(0,0,0,.5); }
.pc-name img { height: 14px; width: auto; border-radius: 2px; }
.pc-url { position: relative; margin-top: 4px; font-size: 13px; opacity: .9; overflow-wrap: anywhere; --d: 24; }
.pc-url b { color: var(--accent2); }
.pc-stats { position: relative; margin-top: auto; align-self: stretch; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; --d: 22; }
.pc-stat { border-radius: 12px; padding: 7px 4px; background: color-mix(in srgb, var(--card) 82%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); box-shadow: 0 8px 16px rgba(0,0,0,.35); }
.pc-stat b { display: block; font-size: 16px; color: var(--accent2); line-height: 1.3; }
.pc-stat span { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.pc-back .pc-pop { justify-content: center; gap: 12px; }
.pc-back h3 { position: relative; margin: 0; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent2); --d: 24; }
.pc-qr { position: relative; background: #fff; border-radius: 16px; padding: 12px; width: 70%; aspect-ratio: 1; --d: 30; box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 60%, transparent), 0 14px 26px rgba(0,0,0,.4); }
.pc-qr svg { display: block; width: 100%; height: 100%; }
.pc-hint { position: relative; font-size: 11px; opacity: .6; --d: 10; }

.pc-bar { width: 100%; display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px 6px; padding: 4px 0 12px; }
.pc-slot { position: relative; aspect-ratio: 1; width: 100%; border-radius: 12px; display: grid; place-items: center; cursor: pointer; padding: 0; color: #fff; text-decoration: none; font: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.25)); border: 1px solid rgba(255,255,255,.16); box-shadow: inset 0 0 0 2px rgba(0,0,0,.35); transition: transform .15s, box-shadow .15s, border-color .15s; }
.pc-slot[hidden] { display: none; }
.pc-slot svg { width: 46%; height: 46%; }
.pc-k { position: absolute; top: 3px; left: 5px; font-size: 9px; font-weight: 800; opacity: .55; }
.pc-n { position: absolute; top: calc(100% + 3px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 10px; font-weight: 600; opacity: .75; }
.pc-slot:hover, .pc-slot:focus-visible, .pc-slot.is-on { border-color: var(--c); box-shadow: 0 0 16px var(--c), inset 0 0 12px color-mix(in srgb, var(--c) 50%, transparent); transform: translateY(-3px); }
.pc-slot:hover .pc-n, .pc-slot.is-on .pc-n { opacity: 1; color: var(--c); }
.pc-lbl { width: 100%; text-align: center; color: #fff; opacity: .6; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-top: -4px; }
.pc-foot { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 16px; color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.pc-foot small { display: block; opacity: .7; font-size: 12px; }
.pc-foot > a { padding: 10px 14px; border-radius: 12px; font-weight: 800; font-size: 13px; color: var(--on-accent); background: linear-gradient(120deg, var(--accent), var(--accent2)); text-decoration: none; white-space: nowrap; }
.pc-foot.is-logo { justify-content: center; }
.pc-foot .pc-logo { padding: 0; background: none; color: #fff; font-weight: 700; font-size: 15px; opacity: .9; }
.pc-xp { position: fixed; left: 50%; top: 42%; z-index: 61; transform: translate(-50%, -50%); padding: 10px 18px; border-radius: 14px; font-weight: 900; font-size: 16px; text-align: center; color: var(--on-accent); pointer-events: none;
  background: linear-gradient(120deg, var(--accent), var(--accent2)); box-shadow: 0 0 30px var(--accent2); animation: pc-xp 1.4s ease-out forwards; }
.pc-xp[hidden] { display: none; }
.pc-xp small { display: block; font-weight: 700; font-size: 11px; opacity: .85; }
@keyframes pc-xp { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.8); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -90%); } }
.pc-p { position: fixed; z-index: 61; width: 7px; height: 7px; border-radius: 2px; pointer-events: none; background: var(--accent2); box-shadow: 0 0 8px var(--accent2); animation: pc-p .9s ease-out forwards; }
.pc-p:nth-child(3n) { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
@keyframes pc-p { to { transform: translate(var(--dx), var(--dy)) rotate(160deg); opacity: 0; } }
@media (max-width: 380px) { .pc-bar { gap: 22px 5px; } .pc-n { font-size: 9px; } .pc-foot small { display: none; } }
@media (max-height: 760px) { .pc-scene { width: min(250px, 70vw); } .pc-name { font-size: 21px; } .pc-av { margin-top: 5%; } }
@media (prefers-reduced-motion: reduce) {
  .pc-ov, .pc-card, .pc-xp, .pc-p, .pc-burst { animation: none; }
  .pc-card, .pc-card.is-flip { transition: none; }
}

/* Selo Supremo (só o admin atribui): cartão dourado animado com coroa */
.pc-card.is-sup { --g1:#FFE07A; --g2:#FFB300; --g3:#FFF6CF; --g4:#B8860B; }
.is-sup .pc-face { background: linear-gradient(120deg, var(--g4), var(--g1) 20%, var(--g3) 30%, var(--g2) 45%, var(--g4) 60%, var(--g1) 80%, var(--g3) 90%, var(--g4)); background-size: 300% 300%; animation: pc-gold 4s linear infinite;
  box-shadow: 0 0 45px rgba(255,190,40,.55), 0 0 90px rgba(255,190,40,.25); }
.is-sup .pc-edge { background: linear-gradient(140deg, #7A5600, #B8860B); }
@keyframes pc-gold { to { background-position: 300% 0; } }
.is-sup .pc-in { background: radial-gradient(120% 70% at 50% 0%, rgba(255,200,60,.28), transparent 60%), radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--accent) 30%, #0d0a06), #0b0906 72%); }
.is-sup .pc-pop { color: #FFF8E6; }
.is-sup .pc-grid { background-image: linear-gradient(rgba(255,210,90,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,210,90,.35) 1px, transparent 1px); }
.is-sup .pc-rar b { background: linear-gradient(90deg, var(--g3), var(--g1), var(--g2), var(--g3)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 6px rgba(255,200,60,.8)); font-size: 11px; }
.is-sup .pc-rar span { color: #FFE9A8; }
.is-sup .pc-av { background: conic-gradient(var(--g1), var(--g3), var(--g2), var(--g4), var(--g1)); box-shadow: 0 0 36px rgba(255,190,40,.8), 0 18px 30px rgba(0,0,0,.45); }
.is-sup .pc-av img { border-color: #0b0906; }
.pc-crown { position: absolute; top: -27px; left: 50%; z-index: 2; transform: translateX(-50%) rotate(-8deg); width: 40px; height: 30px; filter: drop-shadow(0 0 8px rgba(255,200,60,.9)); }
.is-sup .pc-name { text-shadow: 0 0 16px rgba(255,200,60,.75), 0 6px 14px rgba(0,0,0,.5); }
.is-sup .pc-url b, .is-sup .pc-stat b { color: var(--g1); }
.is-sup .pc-stat { border-color: rgba(255,200,60,.45); background: rgba(40,30,10,.55); }
.is-sup .pc-prism { background: repeating-linear-gradient(115deg, #FFF3C4 0%, #FFB300 7%, #FFF8E0 14%, #B8860B 21%, #FFE07A 28%); background-size: 400% 400%; background-position: var(--px, 50%) var(--py, 50%); }
.pc-spark { position: absolute; width: 10px; height: 10px; pointer-events: none; background: #FFF3B0; clip-path: polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%); filter: drop-shadow(0 0 4px #FFC93C); animation: pc-tw 2.4s ease-in-out infinite; --d: 40; }
@keyframes pc-tw { 50% { opacity: .2; scale: .5; } }
.is-sup .pc-back h3 { color: var(--g1); }
.is-sup .pc-av { margin-top: 12%; }
@media (prefers-reduced-motion: reduce) { .is-sup .pc-face, .pc-spark { animation: none; } }

/* ============================================================
   Temas especiais (inc/themes.php): Natal Clássico e Natal Gelado
   ============================================================ */
body.th-natal-classico { background: radial-gradient(120% 60% at 50% 0%, #3A0D10 0%, transparent 60%), radial-gradient(80% 50% at 50% 100%, #0D2A17 0%, transparent 70%), var(--bg) fixed; }
body.th-natal-gelado { background: radial-gradient(120% 60% at 50% 0%, #123A5E 0%, transparent 60%), radial-gradient(80% 50% at 50% 100%, #0A2540 0%, transparent 70%), var(--bg) fixed; }
.th .p-banner { position: relative; overflow: visible; }
.th .p-banner img { border-radius: 18px; }
.th .p-avatar-wrap { z-index: 3; }
.th-lights { position: absolute; left: -6px; right: -6px; bottom: -14px; width: calc(100% + 12px); height: 34px; z-index: 1; pointer-events: none; }
.th-bulb { animation: th-blink 1.4s ease-in-out infinite; animation-delay: var(--d, 0s); filter: drop-shadow(0 0 4px currentColor); }
@keyframes th-blink { 50% { opacity: .35; } }
.th-ice { position: absolute; left: 4px; right: 4px; bottom: -24px; width: calc(100% - 8px); height: 30px; z-index: 1; pointer-events: none; filter: drop-shadow(0 0 6px rgba(160,220,255,.8)); }
.th-hat { position: absolute; z-index: 4; width: 66px; height: 60px; top: -44px; right: -14px; transform: rotate(24deg); filter: drop-shadow(0 4px 6px rgba(0,0,0,.4)); pointer-events: none; }
.th .p-avatar { border-width: 5px !important; border-style: solid !important; border-color: var(--accent); background: var(--card) !important;   /* contorno liso na cor e fundo do tema (imagens transparentes não mostram riscas) */
  box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 60%, transparent); }
.th .p-avatar img { border-radius: 50%; }
.th .p-head h1 .p-name { text-shadow: 0 0 16px color-mix(in srgb, var(--accent) 60%, transparent); }
.thfx-flakes .p-links-h::before, .thfx-flakes .p-tags h2::before, .thfx-flakes .p-support h2::before,
.thfx-flakes .p-links-h::after, .thfx-flakes .p-tags h2::after, .thfx-flakes .p-support h2::after { content: "❄"; color: #fff; }
#p-main .p-links .p-link { position: relative; }
.th #p-main .p-links .p-link .bx-s { background: linear-gradient(90deg, var(--accent), var(--gold, #FFC93C), var(--accent2)); }
.th-natal-gelado #p-main .p-links .p-link .bx-s { background: linear-gradient(90deg, #6EC6FF, #FFFFFF, #6EC6FF); }
/* Enfeite por cima de cada link (centrado e pequeno: serve em todos os formatos de caixa) */
.thfx-caps #p-main .p-links .p-link::before { content: ""; position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); pointer-events: none; }
/* Natal Clássico: azevinho */
.th-natal-classico.thfx-caps #p-main .p-links .p-link::before { top: -14px; width: 44px; height: 26px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 26'%3E%3Cpath d='M22 14 C14 2 4 4 2 10 C8 9 9 14 6 17 C12 17 16 16 22 14Z' fill='%232E9E5B'/%3E%3Cpath d='M22 14 C30 2 40 4 42 10 C36 9 35 14 38 17 C32 17 28 16 22 14Z' fill='%233DDC84'/%3E%3Ccircle cx='18' cy='16' r='4' fill='%23E53935'/%3E%3Ccircle cx='26' cy='16' r='4' fill='%23E53935'/%3E%3Ccircle cx='22' cy='20' r='4' fill='%23FF5252'/%3E%3C/svg%3E") center / contain no-repeat; }
/* Natal Gelado: neve centrada */
.th-natal-gelado.thfx-caps #p-main .p-links .p-link::before { top: -6px; width: 58%; height: 14px; border-radius: 7px 7px 0 0; filter: drop-shadow(0 2px 2px rgba(0,0,0,.3));
  background: radial-gradient(circle at 7px 5px, #fff 5.5px, transparent 6px) 0 0 / 16px 14px repeat-x, linear-gradient(#fff, #fff) 0 0 / 100% 5px no-repeat; }
/* Noite de Natal: estrela dourada */
.th-natal-noite.thfx-caps #p-main .p-links .p-link::before, .th-ano-novo.thfx-caps #p-main .p-links .p-link::before { top: -13px; width: 24px; height: 24px; filter: drop-shadow(0 0 6px rgba(255,214,110,.8));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5l3.1 6.6 7.2.9-5.3 5 1.4 7.1L12 17.6 5.6 21.1 7 14l-5.3-5 7.2-.9z' fill='%23FFC93C' stroke='%23FFF3C4' stroke-width='.8'/%3E%3C/svg%3E") center / contain no-repeat; }
.th-snow { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.th-snow i { position: absolute; top: -20px; color: #fff; opacity: .8; font-style: normal; text-shadow: 0 0 6px rgba(255,255,255,.6); animation: th-fall linear infinite; }
@keyframes th-fall { to { transform: translate(30px, 110vh) rotate(200deg); } }
.th #p-main { position: relative; z-index: 2; }
.th-foot { margin: 0 auto 14px !important; opacity: 1 !important; font-weight: 800; letter-spacing: .04em; color: var(--gold, #FFC93C); text-shadow: 0 0 10px color-mix(in srgb, var(--gold, #FFC93C) 60%, transparent); }
@media (prefers-reduced-motion: reduce) { .th-snow { display: none; } .th-bulb { animation: none; } }
/* Céu de Natal (Noite de Natal): lua, estrelas e o Pai Natal a passar por trás da página */
.th-sky { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.th-stars i { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #FFF6D6; box-shadow: 0 0 6px rgba(255,240,190,.9); animation: th-twinkle 4s ease-in-out infinite; }
@keyframes th-twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.th-moon { position: absolute; top: 9vh; right: 8vw; width: 92px; height: 92px; border-radius: 50%; background: radial-gradient(circle at 38% 36%, #FFFBEA 0 30%, #FCEFC4 62%, #F3DC94 100%);
  box-shadow: 0 0 40px 10px rgba(255,236,170,.28), 0 0 120px 40px rgba(255,214,110,.12); }
.th-moon::before, .th-moon::after { content: ""; position: absolute; border-radius: 50%; background: rgba(214,190,120,.35); }
.th-moon::before { width: 18px; height: 18px; top: 26px; left: 50px; } .th-moon::after { width: 11px; height: 11px; top: 56px; left: 30px; }
.th-santa { position: absolute; top: 12vh; left: 0; width: 300px; animation: th-fly 30s linear infinite; animation-delay: 2s; transform: translateX(-320px); }
.th-santa-bob { animation: th-bob 3.2s ease-in-out infinite; }
.th-santa-svg { display: block; width: 300px; height: 80px; filter: drop-shadow(0 0 10px rgba(255,214,110,.35)); }
.th-dust circle { animation: th-dust 1.2s ease-out infinite; }
.th-dust circle:nth-child(2n) { animation-delay: .4s; } .th-dust circle:nth-child(3n) { animation-delay: .8s; }
.th-leg { animation: th-gallop .5s ease-in-out infinite alternate; animation-delay: var(--d); transform-box: fill-box; transform-origin: top center; }
@keyframes th-fly { 0% { transform: translateX(-320px) translateY(0); } 55% { transform: translateX(calc(100vw + 40px)) translateY(-6vh); } 100% { transform: translateX(calc(100vw + 40px)) translateY(-6vh); } }
@keyframes th-bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes th-dust { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.3) translateX(-6px); } }
@keyframes th-gallop { from { transform: rotate(-18deg); } to { transform: rotate(18deg); } }
@media (max-width: 600px) { .th-moon { width: 64px; height: 64px; top: 7vh; right: 6vw; } .th-moon::before { width: 12px; height: 12px; top: 18px; left: 34px; } .th-moon::after { width: 8px; height: 8px; top: 38px; left: 20px; }
  .th-santa, .th-santa-svg { width: 210px; } .th-santa-svg { height: 56px; } }
@media (prefers-reduced-motion: reduce) { .th-santa { display: none; } .th-stars i { animation: none; opacity: .7; } }

/* Sem banner: luzes / gelo no topo da página, por cima do avatar */
.th-top { position: relative; height: 0; z-index: 1; }
.th-top .th-lights { top: 2px; bottom: auto; left: -6px; width: calc(100% + 12px); }
.th-top .th-ice { top: 0; bottom: auto; left: 0; width: 100%; }
.has-ownerbar .th-top .th-lights, .has-ownerbar .th-top .th-ice { top: 6px; }
/* ===== Ano Novo: preto, dourado e branco ===== */
.th-ano-novo.thfx-flakes .p-links-h::before, .th-ano-novo.thfx-flakes .p-tags h2::before, .th-ano-novo.thfx-flakes .p-support h2::before,
.th-ano-novo.thfx-flakes .p-links-h::after, .th-ano-novo.thfx-flakes .p-tags h2::after, .th-ano-novo.thfx-flakes .p-support h2::after { content: "✦"; color: #F5D27A; }
.th-ano-novo #p-main .p-links .p-link .bx-s { background: linear-gradient(90deg, #9C6F1E, #F5D27A, #FFF8E7, #F5D27A, #9C6F1E); }
.th-ano-novo .p-avatar { border-color: #E9C46A; box-shadow: 0 0 30px rgba(233,196,106,.55); }
/* confetes no lugar da neve */
.th-confetti .th-cf { width: var(--w); height: calc(var(--w) * .45); border-radius: 1px; background: var(--c); opacity: .9; box-shadow: 0 0 6px color-mix(in srgb, var(--c) 70%, transparent); }
/* chapéu de festa */
.th-hat-party { width: 44px; height: 54px; top: -46px; right: 4px; transform: rotate(20deg); }
/* grinalda */
.th-garland { height: 40px; }
/* ano a virar */
.th-year { position: relative; z-index: 3; text-align: center; margin: 0; padding-top: 74px; font: 900 48px/1 'Poppins', system-ui, sans-serif; letter-spacing: .05em; pointer-events: none; }
.th-year-banner { position: absolute; left: 0; right: 0; top: 12%; margin: 0; padding: 0; font-size: clamp(34px, 10vw, 58px); }
.no-banner .th-year ~ .p-avatar-wrap { margin-top: 56px; }
.th-year-in { position: relative; display: inline-block; filter: drop-shadow(0 3px 6px rgba(0,0,0,.55)) drop-shadow(0 0 16px rgba(245,210,122,.45)); }
.th-y { display: block; background: linear-gradient(100deg, #9C6F1E 0%, #E9C46A 25%, #FFF8E7 42%, #F5D27A 55%, #B8862B 75%, #F5D27A 100%) 0 0 / 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.th-y-old { animation: th-yold 8s ease-in-out infinite, th-shine 3.2s linear infinite; }
.th-y-new { position: absolute; inset: 0; opacity: 0; animation: th-ynew 8s ease-in-out infinite, th-shine 3.2s linear infinite; }
@keyframes th-shine { to { background-position: -220% 0; } }
@keyframes th-yold { 0%, 36% { opacity: 1; transform: none; filter: none; } 46%, 94% { opacity: 0; transform: translateY(-.45em) scale(.85); filter: blur(4px); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes th-ynew { 0%, 38% { opacity: 0; transform: translateY(.35em) scale(1.35); filter: blur(6px); } 50%, 88% { opacity: 1; transform: none; filter: none; } 96%, 100% { opacity: 0; transform: scale(1.1); filter: blur(3px); } }
.th-y-spark { position: absolute; width: 14px; height: 14px; opacity: 0; background: radial-gradient(circle, #FFF 0 18%, transparent 20%), conic-gradient(from 45deg, transparent 0 10%, #FFF8E7 12%, transparent 14% 35%, #FFF8E7 37%, transparent 39% 60%, #FFF8E7 62%, transparent 64% 85%, #FFF8E7 87%, transparent 89%);
  border-radius: 50%; animation: th-spark 8s ease-out infinite; }
.th-y-spark:nth-of-type(1) { left: -12%; top: 10%; } .th-y-spark:nth-of-type(2) { right: -12%; top: 0; animation-delay: .15s; }
.th-y-spark:nth-of-type(3) { left: 18%; top: -40%; animation-delay: .3s; } .th-y-spark:nth-of-type(4) { right: 14%; bottom: -30%; animation-delay: .1s; }
.th-y-spark:nth-of-type(5) { left: 46%; top: -55%; animation-delay: .25s; } .th-y-spark:nth-of-type(6) { left: 4%; bottom: -35%; animation-delay: .4s; }
@keyframes th-spark { 0%, 44% { opacity: 0; transform: scale(0) rotate(0); } 50% { opacity: 1; transform: scale(1.4) rotate(45deg); } 60%, 100% { opacity: 0; transform: scale(.2) rotate(90deg); } }
/* fogos de artifício */
.th-fw { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; --r: 96px; }
.th-fw b { position: absolute; width: 0; height: 0; transform: scale(var(--z, 1)); }
.th-fw b::before { content: ""; position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 70%, transparent), color-mix(in srgb, #F5D27A 25%, transparent) 35%, transparent 68%); animation: th-flash 9.6s ease-out infinite; animation-delay: var(--d); }
.th-fw s { position: absolute; left: -1px; top: 0; width: 2px; height: 36px; opacity: 0; background: linear-gradient(to top, transparent, var(--c)); border-radius: 2px; animation: th-rocket 9.6s ease-out infinite; animation-delay: var(--d); }
.th-fw i { position: absolute; left: -7px; top: -1px; width: 14px; height: 2.4px; border-radius: 2px; opacity: 0; background: linear-gradient(90deg, transparent, var(--c)); box-shadow: 0 0 6px var(--c), 0 0 12px var(--c);
  animation: th-burst 9.6s cubic-bezier(.15,.7,.3,1) infinite; animation-delay: var(--d); }
.th-fw i.th-fw-in { width: 4px; height: 4px; left: -2px; top: -2px; border-radius: 50%; background: #FFF; box-shadow: 0 0 8px #FFF8E7; animation-name: th-burst-in; }
@keyframes th-burst-in { 0%, 13% { opacity: 0; transform: rotate(var(--a)) translateX(0); } 14% { opacity: 1; } 22% { opacity: 1; transform: rotate(var(--a)) translateX(calc(var(--r) * .5)); } 32%, 100% { opacity: 0; transform: rotate(var(--a)) translateX(calc(var(--r) * .58)); } }
@keyframes th-rocket { 0% { opacity: 0; transform: translateY(70vh); } 2% { opacity: 1; } 12% { opacity: 1; transform: translateY(0); } 13%, 100% { opacity: 0; transform: translateY(0); } }
@keyframes th-burst { 0%, 12% { opacity: 0; transform: rotate(var(--a)) translateX(0) scale(.4); } 13% { opacity: 1; } 24% { opacity: 1; transform: rotate(var(--a)) translateX(var(--r)) scale(1); }
  36% { opacity: 0; transform: rotate(var(--a)) translateX(calc(var(--r) * 1.15)) scale(.3); } 100% { opacity: 0; } }
@keyframes th-flash { 0%, 12% { opacity: 0; transform: scale(.3); } 15% { opacity: 1; transform: scale(1); } 30%, 100% { opacity: 0; transform: scale(1.6); } }
/* ao vivo: pulsar dourado no avatar e no link da live */
.th-ano-novo .p-avatar-wrap.is-live .p-avatar { animation: th-ny-live 1.4s ease-in-out infinite; }
.th-ano-novo .p-avatar-wrap.is-live::before, .th-ano-novo .p-avatar-wrap.is-live::after { border-color: #F5D27A; box-shadow: 0 0 14px rgba(245,210,122,.85); }
.th-ano-novo #p-main .p-links .p-link.is-live { animation: th-ny-link 1.4s ease-in-out infinite; }
@keyframes th-ny-live { 0%, 100% { box-shadow: 0 0 18px rgba(233,196,106,.5); } 50% { box-shadow: 0 0 34px 8px rgba(245,210,122,.95), 0 0 70px 18px rgba(245,210,122,.35); } }
@keyframes th-ny-link { 0%, 100% { filter: drop-shadow(0 0 0 rgba(245,210,122,0)); transform: scale(1); } 50% { filter: drop-shadow(0 0 14px rgba(245,210,122,.9)); transform: scale(1.025); } }
@media (max-width: 600px) { .th-fw { --r: 60px; } .th-year { font-size: 40px; } }
@media (prefers-reduced-motion: reduce) { .th-fw, .th-y-spark, .th-y-old { display: none; } .th-y-new { position: static; opacity: 1; animation: none; } .th-ano-novo #p-main .p-links .p-link.is-live { animation: none; } }
/* ===== Radioativo: preto e amarelo neon ===== */
.th-radioativo #p-main .p-link, .th-radioativo #p-main .p-feature { filter: drop-shadow(0 0 6px rgba(255,210,31,.75)) drop-shadow(0 0 2px #FFD21F); }
.th-radioativo #p-main .p-links .p-link .bx-s { background: #FFD21F; }
.th-radioativo #p-main .p-links .p-link .bx-i { background: #0B0A06; }
.th-radioativo #p-main .p-links .p-link .p-lab { color: #FFF6CC; text-shadow: 0 0 8px rgba(255,210,31,.85); }
.th-radioativo #p-main .p-links .p-link:nth-of-type(3n+2) { animation: th-flicker 7s linear infinite; }
.th-radioativo #p-main .p-links .p-link:nth-of-type(5n+4) { animation: th-flicker 9s linear infinite 2.5s; }
@keyframes th-flicker { 0%, 90%, 100% { opacity: 1; } 91% { opacity: .35; } 92% { opacity: 1; } 93.5% { opacity: .5; } 94.5% { opacity: 1; } }
.th-radioativo .p-avatar { border-color: #FFD21F; box-shadow: 0 0 22px rgba(255,210,31,.7), 0 0 60px rgba(255,210,31,.25); }
.th-radioativo .p-head h1 .p-name { color: #FFF6CC; text-shadow: 0 0 10px rgba(255,210,31,.9), 0 0 26px rgba(255,210,31,.5); }
.th-radioativo body, body.th-radioativo { background-image: radial-gradient(ellipse at 50% -10%, rgba(184,255,60,.10), transparent 60%), radial-gradient(ellipse at 50% 110%, rgba(255,210,31,.10), transparent 55%); background-attachment: fixed; }
.th-radioativo.thfx-flakes .p-links-h::before, .th-radioativo.thfx-flakes .p-tags h2::before, .th-radioativo.thfx-flakes .p-support h2::before,
.th-radioativo.thfx-flakes .p-links-h::after, .th-radioativo.thfx-flakes .p-tags h2::after, .th-radioativo.thfx-flakes .p-support h2::after { content: "☢"; color: #FFD21F; text-shadow: 0 0 8px #FFD21F; }
.th-radioativo .p-links-h, .th-radioativo .p-tags h2, .th-radioativo .p-support h2 { color: #FFD21F; text-shadow: 0 0 8px rgba(255,210,31,.8); }
/* trevo por cima de cada link */
.th-radioativo.thfx-caps #p-main .p-links .p-link::before { top: -12px; width: 22px; height: 22px; filter: drop-shadow(0 0 5px #FFD21F);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='100' r='96' fill='%230B0A06' stroke='%23FFD21F' stroke-width='10'/%3E%3Cg fill='%23FFD21F'%3E%3Cpath d='M89 80.95 L59 29 A82 82 0 0 1 141 29 L111 80.95 A22 22 0 0 0 89 80.95 Z'/%3E%3Cpath transform='rotate(120 100 100)' d='M89 80.95 L59 29 A82 82 0 0 1 141 29 L111 80.95 A22 22 0 0 0 89 80.95 Z'/%3E%3Cpath transform='rotate(240 100 100)' d='M89 80.95 L59 29 A82 82 0 0 1 141 29 L111 80.95 A22 22 0 0 0 89 80.95 Z'/%3E%3C/g%3E%3Ccircle cx='100' cy='100' r='12' fill='%23FFD21F'/%3E%3C/svg%3E") center / contain no-repeat; }
/* fita de perigo no banner */
.th-hazard { position: absolute; left: 0; right: 0; bottom: -7px; width: 100%; height: 14px; z-index: 1; pointer-events: none; filter: drop-shadow(0 0 6px rgba(255,210,31,.6)); border-radius: 2px; }
.th-top .th-hazard { top: 0; bottom: auto; }
/* símbolo de radiação no fundo */
.th-rad { position: fixed; inset: 0; z-index: 0; pointer-events: none; display: grid; place-items: center; overflow: hidden; }
.th-rad svg { width: min(120vmin, 900px); height: min(120vmin, 900px); opacity: .07; filter: drop-shadow(0 0 30px #FFD21F); animation: th-spin 80s linear infinite; }
@keyframes th-spin { to { transform: rotate(360deg); } }
/* partículas radioativas a subir */
.th-toxic i { position: absolute; bottom: -12px; top: auto; width: var(--z); height: var(--z); border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c), 0 0 16px var(--c); opacity: .85; animation: th-rise linear infinite; }
@keyframes th-rise { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .9; } 50% { transform: translate(14px, -55vh); } 90% { opacity: .7; } 100% { transform: translate(-10px, -110vh); opacity: 0; } }
.th-radioativo .th-foot { color: #FFD21F; text-shadow: 0 0 10px rgba(255,210,31,.8); }
@media (prefers-reduced-motion: reduce) { .th-rad svg, .th-radioativo #p-main .p-links .p-link { animation: none; } .th-toxic { display: none; } }
/* ===== Arena Game: roxo + amarelo neon, estilo transmissão (bolas e armas em 3D) ===== */
.th-arena-game body, body.th-arena-game { background-color: #140B33;
  background-image: radial-gradient(ellipse at 50% 40%, rgba(20,11,51,0) 0, rgba(20,11,51,.55) 55%, #0C0622 100%),
    repeating-conic-gradient(from 0deg at 50% 38%, #2A1870 0deg 7deg, #1B0F47 7deg 14deg);
  background-attachment: fixed; }
.th-arena-game #p-main .p-link, .th-arena-game #p-main .p-feature { filter: drop-shadow(5px 5px 0 #0A0520) drop-shadow(0 0 10px rgba(227,242,43,.22)); transition: transform .15s, filter .15s; }
.th-arena-game #p-main .p-link:hover { transform: translate(-2px, -2px); filter: drop-shadow(7px 7px 0 #0A0520) drop-shadow(0 0 16px rgba(227,242,43,.4)); }
.th-arena-game #p-main .p-links .p-link .bx-s { background: #E3F22B; }
.th-arena-game #p-main .p-links .p-link .bx-i { background: #1B0F47; }
.th-arena-game #p-main .p-links .p-link .p-lab { color: #F7FADF; font-weight: 800; letter-spacing: .01em; }
.th-arena-game .p-avatar { border-color: #E3F22B; box-shadow: 0 0 0 4px #0A0520, 0 0 28px rgba(227,242,43,.45); }
.th-arena-game .p-head h1 .p-name { color: #E3F22B; font-weight: 900; letter-spacing: .01em;
  text-shadow: -2px -2px 0 #2A1870, 2px -2px 0 #2A1870, -2px 2px 0 #2A1870, 2px 2px 0 #2A1870, 5px 5px 0 #0A0520; }
.th-arena-game .p-links-h, .th-arena-game .p-tags h2, .th-arena-game .p-support h2 { color: #E3F22B; text-transform: uppercase; letter-spacing: .12em; text-shadow: 3px 3px 0 #0A0520; }
/* AO VIVO na cor do botão "Quer sua MyTag?" (cor de destaque do tema), em vez do vermelho */
.th-arena-game { --live-c: var(--accent); }
.th-arena-game .p-avatar-wrap.is-live .p-avatar { border-color: var(--accent); animation-name: th-arena-glow; }
@keyframes th-arena-glow { 0%, 100% { box-shadow: 0 0 0 4px #0A0520, 0 0 10px 1px color-mix(in srgb, var(--accent) 45%, transparent); } 50% { box-shadow: 0 0 0 4px #0A0520, 0 0 28px 7px color-mix(in srgb, var(--accent) 85%, transparent); } }
.th-arena-game .p-avatar-wrap.is-live::before, .th-arena-game .p-avatar-wrap.is-live::after { border-color: var(--accent); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 85%, transparent); }
.th-arena-game .p-live-badge, .th-arena-game .pc-lv { background: var(--accent); color: var(--on-accent); }
.th-arena-game .p-icons a.is-live::after, .th-arena-game .p-live-dot, .th-arena-game .p-hl-k i { background: var(--accent); }
.th-arena-game .p-live { color: var(--accent); }
.th-arena-game #p-main .p-links .p-link.is-live { animation: th-arena-live 1.2s ease-in-out infinite; }
@keyframes th-arena-live { 0%, 100% { filter: drop-shadow(5px 5px 0 #0A0520) drop-shadow(0 0 0 rgba(227,242,43,0)); } 50% { filter: drop-shadow(5px 5px 0 #0A0520) drop-shadow(0 0 16px rgba(227,242,43,.9)); } }
.th-arena-game .th-foot { color: #E3F22B; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; text-shadow: 3px 3px 0 #0A0520; }
@media (prefers-reduced-motion: reduce) { .th-arena-game #p-main .p-links .p-link.is-live { animation: none; } }
/* Temas 3D (three.js): tela fixa por trás da página; aparece suave quando a cena arranca */
.th-3d { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.th-3d.is-on { opacity: 1; }
/* Natal Mágico: bola de Natal pendurada em cada link */
.th-natal-magico.thfx-caps #p-main .p-links .p-link::before { top: -15px; width: 20px; height: 26px; filter: drop-shadow(0 0 6px rgba(255,201,60,.55));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 26'%3E%3Cdefs%3E%3CradialGradient id='g' cx='.35' cy='.35' r='.7'%3E%3Cstop offset='0' stop-color='%23FFB3B3'/%3E%3Cstop offset='.45' stop-color='%23FF4D4D'/%3E%3Cstop offset='1' stop-color='%23A3121F'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M10 0v4' stroke='%23FFD86B' stroke-width='1.2'/%3E%3Crect x='7' y='3.5' width='6' height='4' rx='1' fill='%23FFC93C'/%3E%3Ccircle cx='10' cy='16' r='9' fill='url(%23g)'/%3E%3Cpath d='M2.6 14.5 Q10 18 17.4 14.5' stroke='%23FFD86B' stroke-width='1.1' fill='none'/%3E%3Cellipse cx='6.8' cy='12' rx='2' ry='1.3' fill='%23fff' opacity='.55'/%3E%3C/svg%3E") center / contain no-repeat;
  transform-origin: 50% 0; animation: th-swing 3.2s ease-in-out infinite; }
.th-natal-magico.thfx-caps #p-main .p-links .p-link:nth-child(even)::before { animation-delay: -1.6s; }
@keyframes th-swing { 0%, 100% { transform: translateX(-50%) rotate(-7deg); } 50% { transform: translateX(-50%) rotate(7deg); } }
@media (prefers-reduced-motion: reduce) { .th-natal-magico.thfx-caps #p-main .p-links .p-link::before { animation: none; } }

/* ============================================================
   Efeitos 3D (Aparência › Efeitos: body.fx3d) e Gamertags em cartas (body.gt-cards)
   ============================================================ */
:root { --live-c: #EB0400; }
.neon { --live-c: var(--accent); }   /* paletas Neon: o ao vivo pulsa na cor do neon */
.p-live-waves { display: none; }
/* Anel AO VIVO com volume: bate como um coração, traço de luz a girar e ondas "deitadas" no chão */
.fx3d .p-avatar-wrap { transform: perspective(600px) rotateX(var(--arx, 0deg)) rotateY(var(--ary, 0deg)); transition: transform .2s ease-out; }
.fx3d .p-avatar-wrap.is-live .p-avatar { border-color: var(--live-c); animation: p3-beat 1.6s ease-in-out infinite; }
.fx3d .p-avatar-wrap.is-live::before { inset: -9px; border: 0; animation: p3-spin 2.2s linear infinite;
  background: conic-gradient(from 0deg, transparent 0 40%, color-mix(in srgb, var(--live-c) 18%, transparent) 55%, var(--live-c) 75%, #fff 78%, transparent 80%);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); mask: radial-gradient(closest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); }
.fx3d .p-avatar-wrap.is-live::after, .fx3d .p-avatar-wrap.is-live .p-live-waves i { inset: 0; border: 3px solid var(--live-c); z-index: -1; animation: p3-wave 1.6s cubic-bezier(.15,.6,.35,1) infinite; }
.fx3d .p-avatar-wrap.is-live .p-live-waves { display: block; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.fx3d .p-avatar-wrap.is-live .p-live-waves i { position: absolute; border-radius: 50%; }
.fx3d .p-avatar-wrap.is-live .p-live-waves i:nth-child(1) { animation-delay: .53s; }
.fx3d .p-avatar-wrap.is-live .p-live-waves i:nth-child(2) { animation-delay: 1.06s; }
.fx3d .p-live-badge { box-shadow: 0 0 0 3px var(--bg), 0 6px 12px rgba(0,0,0,.45); }
.fx3d.neon .p-live-badge { background: var(--live-c); color: var(--on-accent, #fff); }
@keyframes p3-spin { to { rotate: 360deg; } }
@keyframes p3-wave { 0% { transform: perspective(400px) translateY(28%) rotateX(70deg) scale(.9); opacity: 0; } 10% { opacity: .95; } 100% { transform: perspective(400px) translateY(28%) rotateX(70deg) scale(2.1); opacity: 0; } }
@keyframes p3-beat {
  0%, 100% { scale: 1; box-shadow: 0 0 14px color-mix(in srgb, var(--live-c) 60%, transparent); }
  12% { scale: 1.05; box-shadow: 0 0 34px color-mix(in srgb, var(--live-c) 95%, transparent); }
  24% { scale: 1; } 36% { scale: 1.025; }
}
/* Links: inclinam para o rato, levantam com um reflexo de luz e "afundam" ao carregar */
.fx3d .p-links .p-link { transform: perspective(800px) rotateX(var(--lrx, 0deg)) rotateY(var(--lry, 0deg)) translateZ(var(--lz, 0px)) scale(var(--lp, 1)); transition: transform .18s ease-out; }
.fx3d .p-links .p-link:hover { transform: perspective(800px) rotateX(var(--lrx, 0deg)) rotateY(var(--lry, 0deg)) translateZ(var(--lz, 0px)) scale(var(--lp, 1)); }
.fx3d .p-links .p-link:active { --lp: .97; transition-duration: .08s; }
.fx3d .p-links .p-link .bx-s { position: relative; }
.fx3d .p-links .p-link .bx-s::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: var(--lg, 0); transition: opacity .2s; mix-blend-mode: screen;
  background: radial-gradient(circle at var(--lx, 50%) var(--ly, 50%), rgba(255,255,255,.26), transparent 55%), linear-gradient(105deg, transparent 30%, color-mix(in srgb, var(--accent2) 22%, transparent) 50%, transparent 70%); }
/* Gamertags em cartas: 4 por linha (3 no telemóvel); frente = ícone + plataforma, verso = ID + Copiar */
.p-gtc { display: none; }
.gt-cards .p-gt, .gt-cards .p-gt-tip { display: none; }
.gt-cards .p-tags ul.p-gt-grid { gap: 10px; }
.gt-cards .p-gt-li { flex: 0 1 calc((100% - 30px) / 4); }
.gt-cards .p-gtc { display: block; height: 96px; perspective: 600px; }
.p-gtc-in { position: relative; height: 100%; cursor: pointer; transform-style: preserve-3d; border-radius: 14px;
  transform: rotateY(var(--gf, 0deg)) rotateX(var(--grx, 0deg)) rotateY(var(--gry, 0deg)); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.p-gtc-in:focus-visible { outline: 3px solid var(--accent2); outline-offset: 3px; }
.p-gt-li.is-on .p-gtc-in { --gf: 180deg; }
.p-gtc-f, .p-gtc-b { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.p-gtc-b { transform: rotateY(180deg); }
.p-gtc .bx-i { height: 100%; min-height: 0; flex-direction: column; justify-content: center; gap: 5px; padding: 8px 6px; text-align: center; }
.p-gtc .ic { width: 34px; height: 34px; }
.p-gtc .p-tag-plat { font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; opacity: .75; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-gtc .p-tag { font-size: 13px; line-height: 1.15; max-width: 100%; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-gtc-copy { font: inherit; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; border: 0; border-radius: 999px; padding: 4px 10px; cursor: pointer;
  color: var(--on-accent, #fff); background: var(--accent); }
.p-gtc-copy:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
.fx3d .p-gtc-in { transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.fx3d .p-gtc .ic { filter: drop-shadow(0 6px 8px rgba(0,0,0,.4)); }
@media (max-width: 480px) { .gt-cards .p-gt-li { flex-basis: calc((100% - 20px) / 3); } }
@media (prefers-reduced-motion: reduce) {
  .fx3d .p-avatar-wrap.is-live .p-avatar, .fx3d .p-avatar-wrap.is-live::before { animation: none; }
  .fx3d .p-avatar-wrap.is-live::after, .fx3d .p-live-waves { display: none; }
  .p-gtc-in, .fx3d .p-links .p-link { transition: none; }
}

/* ============================================================
   Destaque da live (Painel › Overlay e Destaque): no topo da página
   ============================================================ */
.p-hl { position: relative; display: flex; flex-direction: column; gap: 8px; margin: 22px 0 4px; padding: 14px 16px; border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--text);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 32%, var(--card)), color-mix(in srgb, var(--accent2) 18%, var(--card)));
  border: 1.5px solid var(--accent2); animation: p-hl-pulse 2s infinite; }
.p-hl::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.16) 50%, transparent 60%); background-size: 300% 100%; animation: p-hl-sweep 4s linear infinite; }
@keyframes p-hl-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent2) 55%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes p-hl-sweep { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.p-hl-k { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, #FF4D4D 70%, var(--text)); }
.p-hl-k i { width: 8px; height: 8px; border-radius: 50%; background: #EB0400; animation: p-blink 1.4s ease-in-out infinite; }
.p-hl-m { display: flex; align-items: center; gap: 12px; }
.p-hl-e { font-size: 30px; line-height: 1; flex: none; }
.p-hl-tx { min-width: 0; display: flex; flex-direction: column; }
.p-hl-tx b { font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.p-hl-tx small { font-size: 13px; opacity: .8; overflow-wrap: anywhere; }
.p-hl-b { position: relative; z-index: 1; display: block; text-align: center; font-weight: 800; font-size: 14px; padding: 10px; border-radius: 12px; color: var(--on-accent, #0B0912); background: var(--accent2); }
.p-hl:hover .p-hl-b, .p-hl:focus-visible .p-hl-b { filter: brightness(1.1); }
.p-hl:focus-visible { outline: 3px solid var(--accent2); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .p-hl, .p-hl::after, .p-hl-k i { animation: none; } }

/* Paletas Neon: o link que está AO VIVO "respira" com um brilho neon atrás (segue o formato da caixa) */
.neon #p-main .p-links .p-link.is-live { animation: neon-live 2.4s ease-in-out infinite; }
.neon #p-main .p-links .p-link.fx-retro.is-live { animation-name: neon-live-retro; }
@keyframes neon-live {
  0%, 100% { filter: drop-shadow(0 0 4px var(--accent)) drop-shadow(0 0 0 var(--accent2)); }
  50% { filter: drop-shadow(0 0 12px var(--accent)) drop-shadow(0 0 26px var(--accent2)); }
}
@keyframes neon-live-retro {
  0%, 100% { filter: drop-shadow(4px 4px 0 var(--accent2)) drop-shadow(0 0 4px var(--accent)) drop-shadow(0 0 0 var(--accent2)); }
  50% { filter: drop-shadow(4px 4px 0 var(--accent2)) drop-shadow(0 0 12px var(--accent)) drop-shadow(0 0 26px var(--accent2)); }
}
@media (prefers-reduced-motion: reduce) { .neon #p-main .p-links .p-link.is-live { animation: none; filter: drop-shadow(0 0 10px var(--accent)); } }

/* Apoiar o canal: com 1 só link, botão maior e centrado (com 2 ou 3 fica como antes) */
.p-support.is-single .p-sp { flex: 0 1 64%; }
.p-support.is-single .p-sp .bx-i { min-height: 62px; gap: 12px; padding: 10px 18px; }
.p-support.is-single .p-sp .sp-ic { width: 38px; height: 38px; border-radius: 10px; }
.p-support.is-single .p-sp .sp-ic svg { width: 22px; height: 22px; }
.p-support.is-single .p-sp .sp-flag { width: 38px; height: 28px; }
.p-support.is-single .p-sp-title { font-size: 17px; -webkit-line-clamp: 1; }
@media (max-width: 420px) { .p-support.is-single .p-sp { flex-basis: 78%; } }

/* Paletas Neon e temas especiais: uma luz neon a dar a volta à moldura dos botões de apoio */
@property --sp-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.neon:not(.no-spglow) .p-support .p-sp .bx-s, body[class*=" th-"]:not(.no-spglow) .p-support .p-sp .bx-s, body[class^="th-"]:not(.no-spglow) .p-support .p-sp .bx-s {
  padding: 2.5px;
  background: conic-gradient(from var(--sp-a),
    color-mix(in srgb, var(--accent) 30%, transparent) 0deg,
    color-mix(in srgb, var(--accent) 30%, transparent) 200deg,
    var(--accent) 280deg, #fff 320deg, var(--accent2) 340deg,
    color-mix(in srgb, var(--accent) 30%, transparent) 360deg);
  animation: sp-ring 3s linear infinite;
}
.p-support.is-single .p-sp .bx-s { animation-duration: 2.4s; }
.p-support-grid .p-sp:nth-child(2) .bx-s { animation-delay: -1s; }
.p-support-grid .p-sp:nth-child(3) .bx-s { animation-delay: -2s; }
@keyframes sp-ring { to { --sp-a: 360deg; } }
@media (prefers-reduced-motion: reduce) { .neon:not(.no-spglow) .p-support .p-sp .bx-s, body[class*=" th-"]:not(.no-spglow) .p-support .p-sp .bx-s, body[class^="th-"]:not(.no-spglow) .p-support .p-sp .bx-s { animation: none; } }

/* ===== Vice Nights: Miami à noite (foto) + chuva 3D, rosa e ciano neon ===== */
body.th-vice-neon { background-color: #0B0618;
  background-image: linear-gradient(180deg, rgba(11,6,24,.55) 0%, rgba(11,6,24,.72) 45%, rgba(11,6,24,.92) 100%), url(../img/temas/vice-neon.jpg);
  background-size: cover; background-position: center; background-attachment: fixed; }
.th-vice-neon #p-main .p-links .p-link .bx-s, .th-vice-neon #p-main .p-link .bx-s, .th-vice-neon #p-main .p-feature .bx-s, .th-vice-neon #p-main .p-gt .bx-s { background: linear-gradient(110deg, #FF2E9A, #B44CFF 50%, #22E4FF); }
.th-vice-neon #p-main .bx-i { background: rgba(14,7,30,.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.th-vice-neon #p-main .p-link { filter: drop-shadow(0 0 8px rgba(255,46,154,.45)); transition: transform .15s, filter .15s; }
.th-vice-neon #p-main .p-link:hover { filter: drop-shadow(0 0 14px rgba(34,228,255,.7)); }
.th-vice-neon .p-head h1 .p-name { background: linear-gradient(90deg, #FF2E9A, #FFFFFF 50%, #22E4FF); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; filter: drop-shadow(0 0 10px rgba(255,46,154,.6)); }
.th-vice-neon .p-avatar { box-shadow: 0 0 0 3px #0B0618, 0 0 0 5px #FF2E9A, 0 0 26px rgba(255,46,154,.7), 0 0 50px rgba(34,228,255,.35); }
.th-vice-neon .p-links-h, .th-vice-neon .p-tags h2, .th-vice-neon .p-support h2 { color: #22E4FF; text-shadow: 0 0 10px rgba(34,228,255,.8); letter-spacing: .14em; }
.th-vice-neon { --live-c: var(--accent); }
.th-vice-neon .p-live-badge { background: linear-gradient(90deg, #FF2E9A, #22E4FF); color: #fff; }
.th-vice-neon #p-main .p-links .p-link.is-live { animation: th-vice-live 2.4s ease-in-out infinite; }
@keyframes th-vice-live { 0%, 100% { filter: drop-shadow(0 0 6px #FF2E9A) drop-shadow(0 0 0 #22E4FF); } 50% { filter: drop-shadow(0 0 14px #FF2E9A) drop-shadow(0 0 26px #22E4FF); } }
.th-vice-neon .th-foot { color: #FF2E9A; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 0 10px rgba(255,46,154,.8); }

/* ===== Procurado: pôr do sol estilo poster de banda desenhada, palmeiras 3D, 5 estrelas ao vivo ===== */
body.th-procurado { background-color: #24143F;
  background-image: radial-gradient(circle at 50% 78%, rgba(255,200,90,.55) 0, rgba(255,150,80,.25) 14%, rgba(255,120,140,0) 34%),
    linear-gradient(180deg, #2A1850 0%, #4B2A7A 30%, #8E3F8E 55%, #E0607A 75%, #FFA25C 92%, #FFC46B 100%);
  background-attachment: fixed; }
.th-procurado #p-main .p-links .p-link .bx-s, .th-procurado #p-main .p-link .bx-s, .th-procurado #p-main .p-feature .bx-s, .th-procurado #p-main .p-gt .bx-s, .th-procurado #p-main .p-sp .bx-s { background: #1A0F2E; }
.th-procurado #p-main .bx-i { background: rgba(255,246,232,.94); color: #1A0F2E; }
.th-procurado #p-main .p-link, .th-procurado #p-main .p-feature { filter: drop-shadow(5px 5px 0 #1A0F2E); transition: transform .15s, filter .15s; }
.th-procurado #p-main .p-link:hover { transform: translate(-2px, -2px); filter: drop-shadow(7px 7px 0 #1A0F2E); }
.th-procurado #p-main .p-links .p-link .p-lab { color: #1A0F2E; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; }
.th-procurado .p-head h1 .p-name { color: #FFF6E8; font-weight: 900; text-transform: uppercase; letter-spacing: .02em;
  text-shadow: -2px -2px 0 #1A0F2E, 2px -2px 0 #1A0F2E, -2px 2px 0 #1A0F2E, 2px 2px 0 #1A0F2E, 5px 5px 0 #FF4FA3; }
.th-procurado .p-bio { color: #FFF6E8; text-shadow: 0 2px 6px rgba(26,15,46,.7); }
.th-procurado .p-avatar { background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(180deg, #4B2A7A 0%, #8E3F8E 35%, #E0607A 70%, #FFA25C 100%) border-box !important;
  box-shadow: 0 0 0 4px #1A0F2E, 6px 6px 0 4px #FF4FA3; }
.th-procurado .p-links-h, .th-procurado .p-tags h2, .th-procurado .p-support h2 { color: #FFF6E8; text-transform: uppercase; letter-spacing: .12em; text-shadow: 3px 3px 0 #1A0F2E; }
/* as 5 estrelas de "procurado": apagadas offline, acesas e a piscar quando está ao vivo */
.th-procurado .p-head h1.f-nome { flex-wrap: wrap; }
.th-procurado .p-head h1.f-nome::after { content: "★★★★★"; flex-basis: 100%; display: block; margin-top: 4px; font-size: 22px; letter-spacing: 4px; color: #FFFFFF; -webkit-text-stroke: 0; text-shadow: none; }   /* offline: brancas, sem efeito */
.th-procurado .p-avatar-wrap.is-live + h1.f-nome::after { color: #FFD84D; -webkit-text-stroke: 0; animation: th-wanted 1s ease-in-out infinite; }   /* ao vivo: amarelas a piscar com neon */
@keyframes th-wanted {
  0%, 100% { color: #FFE066; text-shadow: 0 0 4px #FFF3B0, 0 0 10px #FFD21F, 0 0 20px #FFB800, 0 0 34px rgba(255,170,0,.75); }
  50% { color: rgba(255,216,77,.35); text-shadow: 0 0 2px rgba(255,210,31,.25); }
}
.th-procurado { --live-c: #FF3355; }
.th-procurado .p-live-badge { background: #FF3355; color: #fff; box-shadow: 3px 3px 0 #1A0F2E; }
/* link ao vivo: luzes de polícia (vermelho e azul) */
.th-procurado #p-main .p-links .p-link.is-live { animation: th-police 1s steps(1, end) infinite; }
@keyframes th-police { 0% { filter: drop-shadow(5px 5px 0 #1A0F2E) drop-shadow(-10px 0 16px #FF2D2D); } 50% { filter: drop-shadow(5px 5px 0 #1A0F2E) drop-shadow(10px 0 16px #2D7BFF); } }
.th-procurado .th-foot { color: #FFF6E8; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; text-shadow: 3px 3px 0 #1A0F2E; }

/* ===== Ocean Drive: vídeo de fundo (Miami à noite), caixas de vidro rosa e ciano ===== */
body.th-ocean-drive { background: #0A0614; }
.th-video { position: fixed; inset: 0; z-index: 0; pointer-events: none; background-size: cover; background-position: center; }
.th-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.th-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,6,20,.45) 0%, rgba(10,6,20,.62) 40%, rgba(10,6,20,.88) 100%); }
.th-ocean-drive .p-wrap, .th-ocean-drive #p-main { position: relative; z-index: 2; }
.th-ocean-drive #p-main .p-links .p-link .bx-s, .th-ocean-drive #p-main .p-link .bx-s, .th-ocean-drive #p-main .p-feature .bx-s, .th-ocean-drive #p-main .p-gt .bx-s { background: linear-gradient(110deg, rgba(255,63,180,.95), rgba(46,216,255,.95)); }
.th-ocean-drive #p-main .bx-i { background: rgba(12,6,26,.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.th-ocean-drive #p-main .p-link { filter: drop-shadow(0 0 8px rgba(255,63,180,.4)); }
.th-ocean-drive .p-head h1 .p-name { color: #fff; font-weight: 900; text-shadow: 0 0 12px rgba(255,63,180,.9), 0 0 28px rgba(46,216,255,.5); }
.th-ocean-drive .p-avatar { box-shadow: 0 0 0 3px #0A0614, 0 0 0 5px #2ED8FF, 0 0 30px rgba(255,63,180,.65); }
.th-ocean-drive .p-links-h, .th-ocean-drive .p-tags h2, .th-ocean-drive .p-support h2 { color: #FF3FB4; text-shadow: 0 0 10px rgba(255,63,180,.85); letter-spacing: .14em; }
.th-ocean-drive { --live-c: var(--accent); }
.th-ocean-drive .p-live-badge { background: linear-gradient(90deg, #FF3FB4, #2ED8FF); color: #fff; }
.th-ocean-drive #p-main .p-links .p-link.is-live { animation: th-vice-live 2.4s ease-in-out infinite; }
.th-ocean-drive .th-foot { color: #2ED8FF; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 0 10px rgba(46,216,255,.8); }
@media (prefers-reduced-motion: reduce) {
  .th-video video { display: none; }
  .th-vice-neon #p-main .p-links .p-link.is-live, .th-ocean-drive #p-main .p-links .p-link.is-live, .th-procurado #p-main .p-links .p-link.is-live,
  .th-procurado .p-avatar-wrap.is-live + h1.f-nome::after { animation: none; text-shadow: 0 0 10px #FFD21F, 0 0 20px #FFB800; }
}

/* ===== Temas Games: círculo neon a rodar à volta do avatar (Vice Nights e Ocean Drive) ===== */
@property --av-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.th-vice-neon .p-avatar, .th-ocean-drive .p-avatar { border-color: transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, conic-gradient(from var(--av-a), #FF2E9A, #B44CFF, #22E4FF, #FFFFFF 52%, #22E4FF 58%, #FF2E9A) border-box !important;
  animation: th-av-spin 3.2s linear infinite; }
@keyframes th-av-spin { to { --av-a: 360deg; } }
.th-ocean-drive .p-avatar { background: linear-gradient(var(--card), var(--card)) padding-box, conic-gradient(from var(--av-a), #FF3FB4, #2ED8FF, #FFFFFF 50%, #2ED8FF 56%, #FF3FB4) border-box !important; }

/* Ocean Drive: letreiro de néon (palmeira + nick) que aparece onde se clica, sobe e some */
.od-sign { position: fixed; z-index: 3; pointer-events: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px;
  border: 2px solid #2ED8FF; border-radius: 12px; background: rgba(10,6,20,.55); color: #2ED8FF; transform: translate(-50%, -50%) rotate(var(--rz, 0deg)) scale(.4);
  box-shadow: 0 0 14px rgba(46,216,255,.7), inset 0 0 10px rgba(46,216,255,.35); animation: od-sign 2.6s ease-out forwards; }
.od-sign b { font: 900 18px/1 "Pacifico", "Brush Script MT", cursive; color: #FF3FB4; text-shadow: 0 0 6px #FF3FB4, 0 0 16px rgba(255,63,180,.8); letter-spacing: .02em; white-space: nowrap; }
.od-sign svg { filter: drop-shadow(0 0 5px #2ED8FF); }
@keyframes od-sign {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--rz)) scale(.4); }
  12% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--rz)) scale(1.12); }
  20% { transform: translate(-50%, -55%) rotate(var(--rz)) scale(1); }
  30%, 34% { opacity: .55; } 32%, 38% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -220%) rotate(var(--rz)) scale(.9); }
}

/* Procurado: ao vivo em modo sirene (vermelho e azul a alternar) no avatar, nas ondas e no selo */
@property --live-c { syntax: '<color>'; inherits: true; initial-value: #EB0400; }
.th-procurado .p-avatar-wrap.is-live { animation: th-siren-var 1s steps(1, end) infinite; }
@keyframes th-siren-var { 0% { --live-c: #FF2D2D; } 50% { --live-c: #2D7BFF; } }
.th-procurado .p-avatar-wrap.is-live .p-avatar { animation: th-siren-av 1s steps(1, end) infinite; }
@keyframes th-siren-av {
  0% { border-color: #FF2D2D; box-shadow: 0 0 0 4px #1A0F2E, -12px 0 26px 4px rgba(255,45,45,.85); }
  50% { border-color: #2D7BFF; box-shadow: 0 0 0 4px #1A0F2E, 12px 0 26px 4px rgba(45,123,255,.85); }
}
.th-procurado .p-avatar-wrap.is-live::before, .th-procurado .p-avatar-wrap.is-live::after, .th-procurado .p-avatar-wrap.is-live .p-live-waves i { border-color: var(--live-c); }
.th-procurado .p-live-badge { animation: th-siren-badge 1s steps(1, end) infinite; }
@keyframes th-siren-badge { 0% { background: #FF2D2D; } 50% { background: #2D7BFF; } }
@media (prefers-reduced-motion: reduce) {
  .th-vice-neon .p-avatar, .th-ocean-drive .p-avatar, .th-procurado .p-avatar-wrap.is-live, .th-procurado .p-avatar-wrap.is-live .p-avatar, .th-procurado .p-live-badge { animation: none; }
}
/* Procurado: títulos das categorias na página do Setup legíveis sobre o pôr do sol */
.th-procurado .s-cat h2, .th-procurado .s-head h1 { color: #FFF6E8; text-shadow: 3px 3px 0 #1A0F2E; }
.th-vice-neon .s-cat h2 { color: #22E4FF; text-shadow: 0 0 10px rgba(34,228,255,.8); }
.th-ocean-drive .s-cat h2 { color: #FF3FB4; text-shadow: 0 0 10px rgba(255,63,180,.85); }
/* Ano Novo: fogos em CSS só como reserva quando o 3D não arranca; AO VIVO dourado; grinalda dentro do banner */
.th-fw-fallback { display: none; }
.th3d-off .th-fw-fallback { display: block; }
.th-ano-novo { --live-c: #F5D27A; }
.th-ano-novo .p-live-badge, .th-ano-novo .pc-lv { background: linear-gradient(90deg, #9C6F1E, #F5D27A, #FFF8E7, #F5D27A, #9C6F1E); color: #1A1206; }
.th-ano-novo .p-icons a.is-live::after, .th-ano-novo .p-live-dot, .th-ano-novo .p-hl-k i { background: #F5D27A; }
.th-ano-novo .p-live { color: #F5D27A; }
.th-garland { left: 12px; right: 12px; width: calc(100% - 24px); }
/* Natal (Clássico, Mágico e Noite): contorno do avatar verde-claro, para contrastar com o vermelho do ao vivo */
.th-natal-classico .p-avatar, .th-natal-magico .p-avatar, .th-natal-noite .p-avatar { border-color: #8EE59B; box-shadow: 0 0 26px rgba(142,229,155,.55); }

/* Radioativo: AO VIVO na cor do tema (amarelo) e símbolo radioativo que aparece onde se clica */
.th-radioativo { --live-c: #FFD21F; }
.th-radioativo .p-avatar-wrap.is-live .p-avatar { border-color: #FFD21F; }
.th-radioativo .p-avatar-wrap.is-live::before, .th-radioativo .p-avatar-wrap.is-live::after { border-color: #FFD21F; box-shadow: 0 0 14px rgba(255,210,31,.85); }
.th-radioativo .p-live-badge, .th-radioativo .pc-lv { background: #FFD21F; color: #0B0A06; box-shadow: 0 0 12px rgba(255,210,31,.8); }
.th-radioativo .p-icons a.is-live::after, .th-radioativo .p-live-dot, .th-radioativo .p-hl-k i { background: #FFD21F; }
.th-radioativo .p-live { color: #FFD21F; }
.th-radioativo #p-main .p-links .p-link.is-live { animation: th-radio-live 1.3s ease-in-out infinite; }
@keyframes th-radio-live { 0%, 100% { filter: drop-shadow(0 0 4px #FFD21F) drop-shadow(0 0 0 #B8FF3C); } 50% { filter: drop-shadow(0 0 12px #FFD21F) drop-shadow(0 0 24px #B8FF3C); } }
.rad-pop { position: fixed; z-index: 3; width: 40px; height: 40px; pointer-events: none; transform: translate(-50%, -50%) scale(.2); filter: drop-shadow(0 0 8px #FFD21F) drop-shadow(0 0 18px rgba(184,255,60,.6)); animation: rad-pop 2.2s ease-out forwards; }
.rad-pop svg { width: 100%; height: 100%; display: block; animation: rad-spin 1.4s linear infinite; }
@keyframes rad-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.2); }
  14% { opacity: 1; transform: translate(-50%, -50%) scale(1.25); }
  24% { transform: translate(-50%, -55%) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), -260%) scale(.8); }
}
@keyframes rad-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .th-radioativo #p-main .p-links .p-link.is-live { animation: none; } }

/* Taggy Radar: botão "Me avisa quando abrir live" (cores do tema da página) */
@property --tr-a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.tr-btn {
  --tr1: var(--accent); --tr2: var(--accent2, #2EE6D6); --tr3: color-mix(in srgb, var(--accent) 50%, var(--accent2, #2EE6D6));
  --tr-bg: var(--card, #1B1430); --tr-tx: var(--text, #fff);
  position: relative; display: inline-flex; align-items: center; gap: 12px; width: auto; max-width: 100%; margin: 16px auto 0; padding: 8px 18px 8px 8px;
  border-radius: var(--tr-r, 18px); text-decoration: none; color: var(--tr-tx); text-align: left;
  background: linear-gradient(var(--tr-bg), var(--tr-bg)) padding-box, conic-gradient(from var(--tr-a), var(--tr1), var(--tr2), var(--tr3), var(--tr1)) border-box;
  border: 2px solid transparent; box-shadow: 0 10px 30px color-mix(in srgb, var(--tr1) 38%, transparent);
  animation: tr-spin 4s linear infinite; transition: transform .2s;
}
.tr-btn:hover { transform: translateY(-2px); }
.tr-btn:focus-visible { outline: 3px solid var(--tr2); outline-offset: 3px; }
.tr-btn.is-live { --tr1: #EB0400; --tr2: #FF6B6B; --tr3: #FF3355; }
.tr-btn.is-sig { --tr1: #F5B301; --tr2: #FFE08A; --tr3: #FF9F1C; }
@keyframes tr-spin { to { --tr-a: 360deg; } }
.tr-tg { position: relative; flex: none; width: 58px; height: 58px; display: grid; place-items: center; }
.tr-tg .tg-svg { position: relative; z-index: 1; transform-origin: 50% 70%; transition: transform .25s; filter: drop-shadow(0 4px 10px rgba(124,77,255,.45)); }
.tr-btn:hover .tg-svg { transform: rotate(-8deg) scale(1.06); }
.tr-p { position: absolute; inset: 8px; border-radius: 50%; border: 2px solid var(--tr2); opacity: 0; animation: tr-ping 2.2s ease-out infinite; }
.tr-p + .tr-p { animation-delay: 1.1s; }
@keyframes tr-ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.tr-tx { flex: 0 1 auto; min-width: 0; max-width: 320px; overflow: hidden; white-space: nowrap; transition: max-width .45s ease, opacity .3s ease; }
.tr-tx b, .tr-tx small { overflow: hidden; text-overflow: ellipsis; }
.tr-go { max-width: 30px; overflow: hidden; transition: max-width .45s ease, opacity .3s ease, margin .45s ease; }
.tr-btn { transition: transform .2s, gap .45s ease, padding .45s ease, border-radius .45s ease; }
/* ao vivo: encolhe e fica só o Taggy (abre com o rato por cima ou com o foco) */
.tr-btn.is-mini { gap: 0; padding: 6px; border-radius: 50%; }
.tr-btn.is-mini .tr-tx, .tr-btn.is-mini .tr-go { max-width: 0; opacity: 0; margin: 0; }
@media (prefers-reduced-motion: reduce) { .tr-btn, .tr-tx, .tr-go { transition: none; } }
.tr-go { margin-left: 4px; }
.tr-tx b { display: block; font-size: 15px; line-height: 1.25; }
.tr-tx small { display: block; margin-top: 2px; font-size: 12px; color: color-mix(in srgb, var(--tr-tx) 72%, transparent); }
.tr-btn.is-live .tr-tx b::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #EB0400; box-shadow: 0 0 0 3px rgba(235,4,0,.3); vertical-align: 1px; }
.tr-btn.is-sig .tr-tx b::before { content: "⏱️ "; }
.tr-go { flex: none; font-size: 22px; font-weight: 800; color: var(--tr2); }
/* caras do Taggy por estado */
.tg-f { display: none; }
.tg-svg .tg-f-off, .is-live .tg-f-live, .is-sig .tg-f-sig { display: inline; }
.is-live .tg-f-off, .is-sig .tg-f-off { display: none; }
.tg-eyes { transform-box: fill-box; transform-origin: center; animation: tg-blink 4s infinite; }
@keyframes tg-blink { 0%, 44%, 48%, 100% { transform: scaleY(1); } 46% { transform: scaleY(.1); } }
.tg-led { animation: tg-led 2.2s ease-in-out infinite; }
@keyframes tg-led { 0%, 100% { fill: #B9A1FF; } 50% { fill: #2EE6D6; } }
.is-live .tg-led { animation-name: tg-led-r; } @keyframes tg-led-r { 0%, 100% { fill: #B9A1FF; } 50% { fill: #FF5A5A; } }
.is-sig .tg-led { animation-name: tg-led-g; } @keyframes tg-led-g { 0%, 100% { fill: #B9A1FF; } 50% { fill: #F5B301; } }
.tg-rec, .is-live .tg-mic { animation: tg-rec 1s steps(2) infinite; }
@keyframes tg-rec { 50% { opacity: .25; } }
.tg-d1, .tg-d2, .tg-d3 { animation: tg-dots 1.2s infinite; } .tg-d2 { animation-delay: .2s; } .tg-d3 { animation-delay: .4s; }
@keyframes tg-dots { 0%, 100% { opacity: .3; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tr-btn, .tr-p, .tg-eyes, .tg-led, .tg-rec, .tg-mic, .tg-d1, .tg-d2, .tg-d3 { animation: none; } }
/* janela */
.tr-dlg { width: min(400px, calc(100vw - 32px)); padding: 22px; border-radius: 20px; border: 1px solid #33294D; background: #1A1426; color: #F4F1FA; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.tr-dlg::backdrop { background: rgba(8,5,14,.7); backdrop-filter: blur(4px); }
.tr-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #A9A1C3; font-size: 18px; cursor: pointer; }
.tr-x:hover { background: #2A2240; color: #fff; }
.tr-h { display: flex; gap: 12px; align-items: center; padding-right: 26px; }
.tr-h-tg { flex: none; }
.tr-h h2 { margin: 0; font-size: 18px; }
.tr-h p { margin: 3px 0 0; font-size: 13px; color: #B9B2CC; }
.tr-steps { margin: 16px 0 6px; padding: 0; list-style: none; counter-reset: tr; display: grid; gap: 10px; }
.tr-steps li { counter-increment: tr; display: flex; gap: 10px; font-size: 14px; color: #DDD6F0; }
.tr-steps li::before { content: counter(tr); flex: none; width: 22px; height: 22px; border-radius: 50%; background: #2A2240; color: #2EE6D6; font: 800 12px/22px system-ui, sans-serif; text-align: center; }
.tr-dlg .btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; margin-top: 10px; border-radius: 12px; font-weight: 800; text-decoration: none; }
.tr-b1 { background: #7C4DFF; color: #fff; border: 0; }
.tr-b1.is-soon { background: #2A2240; color: #A9A1C3; cursor: default; }
.tr-b2 { background: transparent; color: #fff; border: 1px solid #3A2F57; }
.tr-link { margin: 16px 0 4px; padding: 12px; border-radius: 12px; background: #120C1E; border: 1px dashed #3A2F57; text-align: center; font-weight: 800; font-size: 16px; word-break: break-all; }
.tr-anon { margin: 14px 0 0; text-align: center; font-size: 12px; color: #8E86A8; }
