/* Perfil v2: Avatares animados estilo Discord (clip circular estrito), Hero em 2 níveis, Vitrine Viva e Wallpaper */

/* ---------- 1. Wallpaper de Página (#perfil e #jogador) ---------- */
.pf-page-wallpaper {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
  overflow: hidden;
}
.pf-page-wallpaper.is-active { opacity: 1; }
.pf-wp-art, .pf-wp-fx, .pf-wp-scrim {
  position: absolute;
  inset: 0;
}
.pf-wp-art {
  background-image: var(--pf-wp-img, none);
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  transition: opacity .35s ease;
}
.pf-wp-scrim {
  background:
    radial-gradient(ellipse 85% 60% at 50% 0%, rgba(10, 11, 26, .28), rgba(7, 8, 20, .82) 78%),
    linear-gradient(180deg, rgba(7, 8, 18, .48) 0%, rgba(7, 8, 18, .86) 100%);
}
.pf-page-wallpaper[data-bg="theme"] { opacity: 0; }
.pf-page-wallpaper[data-bg="card"] .pf-wp-art {
  filter: blur(22px) saturate(1.25) brightness(.65);
  transform: scale(1.12);
}
.pf-page-wallpaper[data-bg="eclipse"] .pf-wp-art {
  background:
    radial-gradient(circle 280px at 80% 18%, rgba(255, 88, 92, .22), transparent 66%),
    radial-gradient(circle 190px at 80% 18%, #0a0b15 58%, rgba(255, 118, 94, .45) 61%, transparent 70%),
    radial-gradient(ellipse 90% 60% at 20% 90%, rgba(120, 32, 64, .32), transparent 65%),
    linear-gradient(160deg, #090813 0%, #150b1f 55%, #090a16 100%);
}
.pf-page-wallpaper[data-bg="abismo"] .pf-wp-art {
  background:
    radial-gradient(ellipse 75% 55% at 72% 16%, rgba(122, 92, 255, .28), transparent 64%),
    radial-gradient(ellipse 65% 50% at 15% 75%, rgba(56, 182, 255, .18), transparent 62%),
    linear-gradient(180deg, #060715 0%, #0d0d29 55%, #070814 100%);
}
.pf-page-wallpaper[data-bg="shrine"] .pf-wp-art {
  background:
    radial-gradient(circle 340px at 78% 16%, rgba(240, 184, 92, .2), transparent 68%),
    radial-gradient(ellipse 70% 45% at 24% 88%, rgba(235, 128, 72, .16), transparent 64%),
    linear-gradient(180deg, #0c0a18 0%, #171226 52%, #0a0914 100%);
}
.pf-page-wallpaper[data-bg="cyber"] .pf-wp-art {
  background:
    radial-gradient(ellipse 70% 45% at 80% 15%, rgba(56, 228, 255, .24), transparent 62%),
    radial-gradient(ellipse 65% 45% at 18% 82%, rgba(255, 64, 188, .2), transparent 60%),
    linear-gradient(180deg, #070b18 0%, #0c1229 60%, #070814 100%);
}
.pf-page-wallpaper[data-bg="cyber"] .pf-wp-fx {
  background-image:
    linear-gradient(rgba(56, 228, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 64, 188, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, transparent 10%, rgba(0,0,0,.75) 55%, rgba(0,0,0,.2) 100%);
  mask-image: linear-gradient(180deg, transparent 10%, rgba(0,0,0,.75) 55%, rgba(0,0,0,.2) 100%);
}
.pf-page-wallpaper[data-bg="sakura"] .pf-wp-art {
  background:
    radial-gradient(ellipse 75% 50% at 75% 18%, rgba(255, 138, 198, .24), transparent 64%),
    radial-gradient(ellipse 60% 45% at 18% 80%, rgba(164, 108, 255, .22), transparent 62%),
    linear-gradient(180deg, #10091c 0%, #1c102e 55%, #0c0816 100%);
}
html.pf-has-wallpaper .panel {
  background: rgba(14, 15, 32, .78);
  backdrop-filter: blur(18px);
  border-color: rgba(255, 255, 255, .1);
}

/* ---------- 2. Avatar Circular Animado Estilo Discord (Zero Leak) ---------- */
.av-shell {
  --av-pad: 4px;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: visible;
  vertical-align: middle;
}
.av-size-xs { width: 32px; height: 32px; --av-pad: 3px; }
.av-size-sm { width: 40px; height: 40px; --av-pad: 4px; }
.av-size-md { width: 48px; height: 48px; --av-pad: 5px; }
.av-size-lg { width: 64px; height: 64px; --av-pad: 6px; }
.av-size-xl { width: 122px; height: 122px; --av-pad: 8px; }

.av-clip {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 25%, #24264f, #111228);
  border: 2px solid rgba(10, 11, 22, .95);
  box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .88);
}
.av-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--av-x, 50%) var(--av-y, 18%);
  transform: scale(var(--av-zoom, 1));
  transform-origin: var(--av-x, 50%) var(--av-y, 18%);
  display: block;
}
.av-init {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(14px, 42%, 44px);
  color: var(--accent, #f0b85c);
  line-height: 1;
}
.av-size-xl .av-init { font-size: 44px; }
.av-size-lg .av-init { font-size: 24px; }
.av-size-sm .av-init, .av-size-xs .av-init { font-size: 15px; }

.av-ring,
.av-ring-2,
.av-deco {
  position: absolute;
  inset: calc(var(--av-pad) * -1);
  border-radius: 50%;
  pointer-events: none;
}
.av-ring {
  z-index: 1;
  background: conic-gradient(from 0deg, #ffe399, #f0b85c, #8c6419, #ffd87a, #ffe399);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--av-pad) + 0.5px), #000 calc(100% - var(--av-pad) + 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--av-pad) + 0.5px), #000 calc(100% - var(--av-pad) + 1.5px));
  animation: pfSpin 9s linear infinite;
}
.av-ring-2 {
  z-index: 1;
  inset: calc(var(--av-pad) * -1.45);
  opacity: .38;
  filter: blur(5px);
  background: conic-gradient(from 180deg, #f0b85c, transparent 40%, #ffd87a, transparent 90%, #f0b85c);
  animation: pfCounterSpin 13s linear infinite;
}
.av-deco {
  z-index: 3;
  inset: calc(var(--av-pad) * -1.75);
  display: grid;
  place-items: center;
}
.av-svg-deco, .av-custom-deco {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  animation: pfSpinSlow 18s linear infinite;
}

/* Presets dos 10 Aro Animados estilo Discord */
.av-shell[data-frame="rarity"] .av-ring {
  background: conic-gradient(from 0deg, var(--rarity, #f0b85c), #fff, var(--rarity, #f0b85c), rgba(255,255,255,.35), var(--rarity, #f0b85c));
}
.av-shell[data-frame="rarity"] .av-ring-2 {
  background: radial-gradient(circle, var(--rarity, #f0b85c), transparent 68%);
  opacity: .42;
}
.av-shell[data-frame="prism"] .av-ring {
  background: conic-gradient(from 0deg, #7be8ff, #c98cff, #ff85c8, #ffe580, #7cffb2, #7be8ff);
  animation-duration: 5.5s;
}
.av-shell[data-frame="prism"] .av-ring-2 {
  background: conic-gradient(from 90deg, #7be8ff, #ff85c8, #ffe580, #7be8ff);
  opacity: .48;
}
.av-shell[data-frame="ruby"] .av-ring {
  background: conic-gradient(from 0deg, #ff3858, #ff9966, #8f0e26, #ff476c, #ff3858);
  animation-duration: 5s;
}
.av-shell[data-frame="ruby"] .av-ring-2 {
  background: radial-gradient(circle, rgba(255, 68, 96, .8), transparent 68%);
  opacity: .5;
  animation: pfPulseGlow 2.4s ease-in-out infinite;
}
.av-shell[data-frame="violet"] .av-ring {
  background: conic-gradient(from 0deg, #c89bff, #6e45ff, #3ad2ff, #b380ff, #c89bff);
  animation-duration: 7s;
}
.av-shell[data-frame="violet"] .av-ring-2 {
  background: conic-gradient(from 0deg, #9f6cff, transparent 45%, #48c9ff, transparent 90%);
  opacity: .45;
}
.av-shell[data-frame="cyber"] .av-ring {
  background: conic-gradient(from 0deg, #38e4ff 0 28%, #ff44cc 34% 58%, transparent 62% 72%, #38e4ff 76% 100%);
  animation-duration: 3.4s;
}
.av-shell[data-frame="cyber"] .av-ring-2 {
  background: conic-gradient(from 180deg, rgba(56, 228, 255, .9), rgba(255, 68, 204, .7), transparent 60%);
  opacity: .55;
  animation-duration: 4.5s;
}
.av-shell[data-frame="sakura"] .av-ring {
  background: conic-gradient(from 0deg, #ffd1e6, #ff7eb9, #ffb3d9, #ffe8f3, #ff7eb9, #ffd1e6);
  animation-duration: 8s;
}
.av-shell[data-frame="sakura"] .av-ring-2 {
  background: radial-gradient(circle, rgba(255, 146, 198, .72), transparent 70%);
  opacity: .45;
}
.av-shell[data-frame="lightning"] .av-ring {
  background: conic-gradient(from 0deg, #fff6a8 0 18%, #f4b428 24%, #6ce8ff 42%, #fff6a8 55%, #f4b428 74%, #6ce8ff 92%, #fff6a8);
  animation: pfSpin 2.6s linear infinite, pfLightningFlash 1.9s ease-in-out infinite;
}
.av-shell[data-frame="lightning"] .av-ring-2 {
  background: radial-gradient(circle, rgba(255, 222, 92, .85), rgba(108, 232, 255, .35) 55%, transparent 72%);
  opacity: .55;
  animation: pfLightningFlash 1.9s ease-in-out infinite;
}
.av-shell[data-frame="celestial"] .av-ring {
  background: conic-gradient(from 0deg, #fffdf0, #ffd87a, #ffe9b5, #fffdf0, #f5bd52, #fffdf0);
  animation-duration: 7.5s;
}
.av-shell[data-frame="celestial"] .av-ring-2 {
  background: radial-gradient(circle, rgba(255, 238, 178, .85), transparent 72%);
  opacity: .52;
  animation: pfPulseGlow 3.2s ease-in-out infinite;
}
.av-shell[data-frame="void"] .av-ring {
  background: conic-gradient(from 0deg, #1b1530, #b68cff, #0b0914, #ffffff 48%, #161128, #8c5bff, #1b1530);
  animation-duration: 6s;
}
.av-shell[data-frame="void"] .av-ring-2 {
  background: radial-gradient(circle, rgba(164, 118, 255, .75), rgba(12, 8, 24, .9) 62%, transparent 74%);
  opacity: .6;
}

.av-shell > .pres-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 5;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #0d0e1d;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .65);
}
.av-size-xl > .pres-dot {
  width: 18px;
  height: 18px;
  bottom: 4px;
  right: 4px;
  border-width: 3px;
}
.av-shell > .pres-dot.is-on { background: #38e59d; box-shadow: 0 0 10px rgba(56, 229, 157, .7); }
.av-shell > .pres-dot.is-off { background: #646888; }

.profile-mini .profile-avatar {
  background: transparent;
  border: none;
  overflow: visible;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
}

/* ---------- 3. Hero em 2 Níveis (.pf2-hero) ---------- */
.pf2-hero {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .11);
  background: rgba(15, 16, 33, .85);
  box-shadow: 0 24px 62px -28px rgba(0, 0, 0, .94);
  margin-bottom: 22px;
}
.pf2-cover {
  position: relative;
  height: 248px;
  overflow: hidden;
  background: #101228;
}
.pf2-cover.is-editable {
  cursor: pointer;
  transition: filter .18s ease, box-shadow .18s ease;
}
.pf2-cover.is-editable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.pf2-cover.is-editable:hover .pf2-cover-art {
  filter: brightness(1.07);
}
.pf2-cover-edit-hint {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  color: #f6f4ff;
  background: rgba(11, 13, 28, .72);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
  pointer-events: none;
}
.pf2-cover-edit-hint svg {
  width: 14px;
  height: 14px;
  color: var(--accent, #f0b85c);
}
.pf2-cover.is-editable:hover .pf2-cover-edit-hint {
  transform: translateY(-1px);
  border-color: rgba(240, 184, 92, .65);
  background: rgba(16, 18, 38, .9);
}
.pf2-cover-art, .pf2-cover-fx {
  position: absolute;
  inset: 0;
}
.pf2-cover-art {
  background-image: var(--pf-cover, none);
  background-size: cover;
  background-position: var(--pf-cover-x, 50%) var(--pf-cover-y, 50%);
  transform: scale(var(--pf-cover-zoom, 1));
  transform-origin: var(--pf-cover-x, 50%) var(--pf-cover-y, 50%);
  transition: filter .18s ease;
}
.pf2-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 11, 24, .18) 0%, rgba(10, 11, 24, .04) 45%, rgba(14, 15, 32, .88) 100%);
}

/* Capas nativas estilizadas (quando não usa foto customizada) */
.pf2-hero[data-banner="crepusculo"] .pf2-cover-art {
  background:
    radial-gradient(ellipse 65% 80% at 85% 22%, rgba(240, 184, 92, .32), transparent 64%),
    radial-gradient(ellipse 55% 75% at 14% 85%, rgba(128, 108, 255, .36), transparent 62%),
    linear-gradient(125deg, #0d102a 0%, #1d1a46 48%, #2a1d3e 100%);
}
.pf2-hero[data-banner="aurora"] .pf2-cover-art {
  background:
    radial-gradient(ellipse 68% 78% at 78% 18%, rgba(62, 232, 198, .32), transparent 62%),
    radial-gradient(ellipse 60% 72% at 18% 82%, rgba(124, 104, 255, .35), transparent 60%),
    linear-gradient(120deg, #091826 0%, #112a3d 52%, #1b1942 100%);
}
.pf2-hero[data-banner="rubi"] .pf2-cover-art {
  background:
    radial-gradient(ellipse 60% 75% at 82% 24%, rgba(255, 112, 92, .38), transparent 62%),
    radial-gradient(ellipse 52% 70% at 15% 82%, rgba(196, 36, 72, .36), transparent 60%),
    linear-gradient(125deg, #1b0a14 0%, #341122 50%, #1c0f24 100%);
}
.pf2-hero[data-banner="esmeralda"] .pf2-cover-art {
  background:
    radial-gradient(ellipse 62% 75% at 80% 20%, rgba(92, 235, 168, .3), transparent 62%),
    radial-gradient(ellipse 56% 72% at 18% 85%, rgba(40, 152, 118, .32), transparent 60%),
    linear-gradient(125deg, #091815 0%, #112e26 52%, #111c2b 100%);
}
.pf2-hero[data-banner="prisma"] .pf2-cover-art {
  background:
    radial-gradient(ellipse 55% 75% at 84% 20%, rgba(112, 224, 255, .32), transparent 60%),
    radial-gradient(ellipse 55% 75% at 50% 60%, rgba(206, 132, 255, .28), transparent 62%),
    radial-gradient(ellipse 50% 70% at 14% 85%, rgba(255, 152, 198, .28), transparent 60%),
    linear-gradient(130deg, #12122d 0%, #231847 50%, #16243d 100%);
}
.pf2-hero[data-banner="sombra"] .pf2-cover-art {
  background:
    radial-gradient(circle 120px at 82% 34%, #09090f 56%, rgba(235, 225, 255, .48) 59%, transparent 69%),
    radial-gradient(ellipse 75% 70% at 24% 80%, rgba(124, 118, 168, .22), transparent 64%),
    linear-gradient(135deg, #080910 0%, #141522 54%, #1d1c2e 100%);
}
.pf2-hero[data-banner="sakura"] .pf2-cover-art {
  background:
    radial-gradient(ellipse 62% 75% at 80% 24%, rgba(255, 154, 206, .36), transparent 62%),
    radial-gradient(ellipse 55% 72% at 18% 80%, rgba(154, 96, 240, .32), transparent 60%),
    linear-gradient(125deg, #140b22 0%, #2b153c 52%, #1d1130 100%);
}
.pf2-hero[data-banner="cyber"] .pf2-cover-art {
  background:
    radial-gradient(ellipse 60% 72% at 82% 22%, rgba(56, 228, 255, .36), transparent 60%),
    radial-gradient(ellipse 56% 72% at 16% 85%, rgba(255, 62, 194, .34), transparent 60%),
    linear-gradient(130deg, #080d1e 0%, #101d3b 52%, #1b0e2e 100%);
}
.pf2-hero[data-banner="cyber"] .pf2-cover-fx {
  background-image:
    linear-gradient(rgba(56, 228, 255, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 62, 194, .08) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: .7;
}

.pf2-cover-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
}
.pf2-cover-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pf2-cover-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(11, 12, 26, .66);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px);
  color: var(--text);
}
.pf2-cover-chip svg { width: 13px; height: 13px; color: var(--accent); }

.pf2-idbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 26px 22px;
  background: linear-gradient(180deg, rgba(17, 18, 36, .92) 0%, rgba(13, 14, 29, .96) 100%);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.pf2-id-left {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  min-width: 0;
  flex: 1;
}
.pf2-avatar-anchor {
  margin-top: -66px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.pf2-avatar-anchor .pf-avatar-btns {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0;
}
.pf2-avatar-anchor .pf-avatar-btns button {
  margin: 0 auto;
}
.pf2-id-text {
  min-width: 0;
  flex: 1;
}
.pf2-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.pf2-name-row h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.12;
  letter-spacing: -.01em;
}
.pf2-status-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}
.pf2-pres-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.pf2-pres-inline i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #646888;
}
.pf2-pres-inline.is-on { color: #67f0b6; }
.pf2-pres-inline.is-on i { background: #38e59d; box-shadow: 0 0 8px rgba(56, 229, 157, .7); }

.pf2-badges {
  margin-top: 10px;
  align-items: center;
  gap: 8px;
}
.pf2-crown-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  color: #ffe29e;
  background: linear-gradient(135deg, rgba(240, 184, 92, .22), rgba(168, 108, 32, .14));
  border: 1px solid rgba(240, 184, 92, .4);
}
.pf2-crown-pill svg { width: 13px; height: 13px; }
.pf2-xp-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 145px;
}
.pf2-xp-mini .bar { width: 88px; height: 6px; }
.pf2-xp-mini small { font-size: 11px; color: var(--muted); white-space: nowrap; }

.pf2-fav-works {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-top: 10px;
}
.pf2-fw-link {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--soft);
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.pf2-fw-link:hover {
  background: rgba(240, 184, 92, .14);
  border-color: rgba(240, 184, 92, .45);
  color: var(--accent-hover);
}
.pf2-fw-sep { color: var(--faint); font-size: 12px; }

.pf2-bio {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--soft);
  max-width: 66ch;
  line-height: 1.5;
}

.pf2-id-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 4px;
}
.pf2-like-btn, .pf2-like-stat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13.5px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--text);
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.pf2-like-btn { cursor: pointer; }
.pf2-like-btn svg, .pf2-like-stat svg { width: 16px; height: 16px; color: #ff8aa8; transition: transform .2s ease; }
.pf2-like-btn:hover:not(:disabled) {
  background: rgba(255, 108, 148, .15);
  border-color: rgba(255, 118, 156, .48);
  transform: translateY(-1px);
}
.pf2-like-btn.is-liked {
  background: linear-gradient(135deg, rgba(255, 86, 134, .28), rgba(212, 42, 92, .22));
  border-color: rgba(255, 118, 156, .65);
  color: #ffdbe6;
  box-shadow: 0 8px 22px -10px rgba(255, 86, 134, .65);
}
.pf2-like-btn.is-liked svg { color: #ff588c; transform: scale(1.1); }

/* ---------- 4. Vitrine Viva + Coleção & Maestria ---------- */
.pf2-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
}
.pf2-vitrine-panel, .pf2-collection-panel {
  display: flex;
  flex-direction: column;
}
.pf2-stage-tag {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--soft);
}
.pf2-vitrine-stage {
  position: relative;
  flex: 1;
  min-height: 318px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  background: #0d0e1f;
  display: grid;
  place-items: center;
  padding: 26px 16px 20px;
  perspective: 900px;
}
.pf2-v-backdrop {
  position: absolute;
  inset: 0;
  background-image: var(--pf-sbg-img, none);
  background-size: cover;
  background-position: center;
}
.pf2-vitrine-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 80% at 50% 45%, transparent 36%, rgba(8, 9, 20, .62) 100%);
  z-index: 1;
}

/* Cenários built-in da Vitrine */
.pf2-vitrine-stage[data-sbg="sanctum"] .pf2-v-backdrop {
  background:
    radial-gradient(ellipse 68% 58% at 50% 12%, rgba(240, 184, 92, .26), transparent 66%),
    radial-gradient(ellipse 85% 42% at 50% 100%, rgba(168, 128, 62, .2), transparent 64%),
    linear-gradient(180deg, #11132a 0%, #181a38 56%, #0c0d1c 100%);
}
.pf2-vitrine-stage[data-sbg="arena"] .pf2-v-backdrop {
  background:
    radial-gradient(circle 220px at 50% 82%, rgba(255, 96, 72, .3), transparent 68%),
    radial-gradient(ellipse 70% 50% at 50% 10%, rgba(255, 182, 108, .2), transparent 65%),
    linear-gradient(180deg, #190d16 0%, #2a121f 54%, #100912 100%);
}
.pf2-vitrine-stage[data-sbg="portal"] .pf2-v-backdrop {
  background:
    radial-gradient(circle 190px at 50% 48%, rgba(154, 114, 255, .38), rgba(72, 188, 255, .18) 46%, transparent 72%),
    linear-gradient(180deg, #0b0d24 0%, #17143e 54%, #090a1a 100%);
}
.pf2-vitrine-stage[data-sbg="cherry"] .pf2-v-backdrop {
  background:
    radial-gradient(circle 140px at 80% 22%, rgba(255, 224, 238, .28), transparent 68%),
    radial-gradient(ellipse 80% 55% at 50% 18%, rgba(255, 134, 192, .26), transparent 66%),
    linear-gradient(180deg, #160c24 0%, #261436 56%, #0f091a 100%);
}
.pf2-vitrine-stage[data-sbg="cyber"] .pf2-v-backdrop {
  background:
    radial-gradient(ellipse 75% 50% at 50% 18%, rgba(56, 228, 255, .28), transparent 65%),
    linear-gradient(rgba(56, 228, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 62, 194, .07) 1px, transparent 1px),
    linear-gradient(180deg, #081022 0%, #0e1938 60%, #080b18 100%);
  background-size: auto, 30px 30px, 30px 30px, auto;
}
.pf2-vitrine-stage[data-sbg="abyss"] .pf2-v-backdrop {
  background:
    radial-gradient(circle 105px at 50% 22%, #0a0b12 58%, rgba(236, 230, 255, .36) 62%, transparent 72%),
    radial-gradient(ellipse 90% 45% at 50% 95%, rgba(168, 162, 198, .2), transparent 68%),
    linear-gradient(180deg, #0b0c12 0%, #151622 54%, #08080e 100%);
}

.pf2-v-cards {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 520px;
  align-items: center;
}
.pf2-v-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform .28s cubic-bezier(.2, .85, .3, 1);
}
.pf2-v-slot[data-slot="0"] { transform: translateY(8px) rotate(-2.5deg); }
.pf2-v-slot[data-slot="1"] { transform: translateY(-10px) scale(1.05); z-index: 3; }
.pf2-v-slot[data-slot="2"] { transform: translateY(8px) rotate(2.5deg); }
.pf2-v-slot:hover { transform: translateY(-14px) scale(1.07) rotate(0deg); z-index: 5; }

.pf2-v-card {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4.25;
  border-radius: 13px;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--rarity, #f0b85c) 70%, rgba(255,255,255,.35));
  background: #121329;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 18px 34px -14px rgba(0, 0, 0, .92), 0 0 22px -12px var(--rarity, #f0b85c);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.pf2-v-card:hover {
  border-color: var(--rarity, #ffe29e);
  box-shadow: 0 24px 44px -12px rgba(0, 0, 0, .96), 0 0 28px -8px var(--rarity, #f0b85c);
}
.pf2-v-card img, .pf2-v-card .card-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pf2-v-controls {
  display: flex;
  gap: 4px;
  justify-content: center;
}
.pf2-v-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  max-width: 100%;
}
.pf2-v-caption b {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.pf2-v-empty-btn, .pf2-v-empty-ghost {
  width: 100%;
  aspect-ratio: 3 / 4.25;
  border-radius: 13px;
  border: 1.5px dashed rgba(255, 255, 255, .2);
  background: rgba(14, 16, 34, .56);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  color: var(--muted);
  text-align: center;
}
.pf2-v-empty-btn { cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.pf2-v-empty-btn:hover { border-color: var(--accent); background: rgba(240, 184, 92, .12); color: var(--text); }
.pf2-v-empty-btn b { font-size: 13px; color: var(--text); }
.pf2-v-empty-btn small { font-size: 11px; }

/* Efeitos frontais da Vitrine (não bloqueiam cliques) */
.pf2-v-fx, .pf2-v-fx-layer, .pf2-v-fx-img {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}
.pf2-v-fx-img { width: 100%; height: 100%; object-fit: cover; }

.pf2-vitrine-stage[data-sfx="aura"] .pf2-v-fx-layer {
  background-image:
    radial-gradient(2px 2px at 16% 24%, rgba(255, 224, 150, .85), transparent 100%),
    radial-gradient(2.5px 2.5px at 84% 30%, rgba(164, 218, 255, .85), transparent 100%),
    radial-gradient(2px 2px at 28% 76%, rgba(255, 164, 216, .8), transparent 100%),
    radial-gradient(2.5px 2.5px at 72% 82%, rgba(255, 234, 168, .85), transparent 100%),
    radial-gradient(1.5px 1.5px at 50% 14%, rgba(255, 255, 255, .9), transparent 100%);
  animation: pfFloatDust 5.5s ease-in-out infinite alternate;
}
.pf2-vitrine-stage[data-sfx="slashes"] .pf2-v-fx-layer {
  background:
    linear-gradient(118deg, transparent 36%, rgba(255, 92, 118, .22) 37.5%, rgba(255, 214, 198, .55) 38%, rgba(255, 92, 118, .18) 39%, transparent 40.5%),
    linear-gradient(64deg, transparent 62%, rgba(255, 214, 150, .18) 63.5%, rgba(255, 245, 224, .5) 64%, transparent 65.5%);
  animation: pfSlashPulse 4s ease-in-out infinite;
}
.pf2-vitrine-stage[data-sfx="petals"] .pf2-v-fx-layer {
  background-image:
    radial-gradient(5px 3px at 14% 18%, rgba(255, 168, 208, .72), transparent 100%),
    radial-gradient(6px 3.5px at 76% 14%, rgba(255, 192, 224, .75), transparent 100%),
    radial-gradient(4px 2.5px at 38% 62%, rgba(255, 152, 198, .68), transparent 100%),
    radial-gradient(6px 3px at 88% 70%, rgba(255, 198, 228, .72), transparent 100%),
    radial-gradient(5px 3px at 22% 86%, rgba(255, 162, 208, .65), transparent 100%);
  animation: pfPetalDrift 7s linear infinite;
}
.pf2-vitrine-stage[data-sfx="runes"] .pf2-v-fx-layer::before {
  content: '';
  position: absolute;
  inset: 14% 20%;
  border-radius: 50%;
  border: 1.5px dashed rgba(178, 148, 255, .36);
  box-shadow: inset 0 0 28px rgba(142, 108, 255, .16);
  animation: pfSpinSlow 24s linear infinite;
}

/* ---------- 5. Painel de Coleção & Maestria por Obra ---------- */
.pf2-coll-subchips {
  margin-left: auto;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.pf2-subchip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--soft);
}
.pf2-subchip svg { width: 12px; height: 12px; color: var(--accent); }

.pf2-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.pf2-metric {
  background: rgba(8, 10, 22, .56);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pf2-metric b {
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.pf2-metric span {
  font-size: 12.5px;
  color: var(--muted);
}

.pf2-rar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}
.pf2-rpill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 99px;
  font-size: 12px;
  background: rgba(10, 11, 24, .65);
  border: 1px solid rgba(255, 255, 255, .09);
}
.pf2-rpill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rarity, var(--accent));
  box-shadow: 0 0 8px var(--rarity, var(--accent));
}
.pf2-rpill b { font-weight: 800; color: var(--text); }
.pf2-rpill span { color: var(--muted); font-variant-numeric: tabular-nums; }

.pf2-mastery-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pf2-wbadge-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--soft);
}
.pf2-wbadge-head svg { width: 15px; height: 15px; color: var(--accent); }
.pf2-wbadge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 8px;
}
.pf2-wbadge {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  min-width: 0;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.pf2-wbadge:hover {
  transform: translateY(-1px);
  border-color: rgba(240, 184, 92, .45);
  background: rgba(240, 184, 92, .08);
}
.pf2-wbadge.is-done {
  border-color: rgba(240, 184, 92, .52);
  background: linear-gradient(135deg, rgba(240, 184, 92, .16), rgba(164, 108, 30, .1));
}
.pf2-wbadge.is-top1:not(.is-done) {
  border-color: rgba(164, 148, 255, .42);
}
.pf2-wbadge-ico {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 800;
  background: rgba(255, 255, 255, .08);
  color: var(--soft);
}
.pf2-wbadge.is-done .pf2-wbadge-ico {
  background: rgba(240, 184, 92, .24);
  color: #ffe29e;
}
.pf2-wbadge-ico svg { width: 15px; height: 15px; }
.pf2-wbadge-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.pf2-wbadge-txt small {
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
}
.pf2-wbadge-txt b {
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf2-more-works-btn { align-self: flex-start; }

/* ---------- 6. Editor Personalizar ---------- */
.pf2-edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 20px;
  align-items: start;
}
.pf2-opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  gap: 8px;
}
.pf2-opt-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(12, 14, 28, .66);
  color: var(--soft);
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.pf2-opt-btn:hover { border-color: rgba(255, 255, 255, .28); transform: translateY(-1px); }
.pf2-opt-btn.active {
  border-color: rgba(240, 184, 92, .75);
  background: linear-gradient(135deg, rgba(240, 184, 92, .18), rgba(240, 184, 92, .06));
  color: var(--text);
}
.pf2-opt-btn b { font-size: 12.5px; }
.pf2-opt-btn small { font-size: 11px; color: var(--muted); }

.pf2-favworks-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(10, 11, 24, .5);
}
.pf2-fw-chosen {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pf2-fw-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 99px;
  border: 1px solid rgba(240, 184, 92, .5);
  background: rgba(240, 184, 92, .14);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.pf2-fw-results {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 128px;
  overflow-y: auto;
}
.pf2-fw-opt {
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  color: var(--soft);
  font-size: 12px;
  cursor: pointer;
}
.pf2-fw-opt.on {
  border-color: rgba(240, 184, 92, .65);
  background: rgba(240, 184, 92, .16);
  color: var(--accent-hover);
}

/* ---------- 7. Keyframes (Respeitam apenas .reduce-motion) ---------- */
@keyframes pfSpin { to { transform: rotate(360deg); } }
@keyframes pfCounterSpin { to { transform: rotate(-360deg); } }
@keyframes pfSpinSlow { to { transform: rotate(360deg); } }
@keyframes pfPulseGlow { 0%, 100% { opacity: .35; transform: scale(.98); } 50% { opacity: .68; transform: scale(1.03); } }
@keyframes pfLightningFlash { 0%, 82%, 100% { filter: brightness(1); } 86% { filter: brightness(1.65); } 90% { filter: brightness(1.1); } 94% { filter: brightness(1.75); } }
@keyframes pfFloatDust { 0% { transform: translateY(4px); opacity: .75; } 100% { transform: translateY(-6px); opacity: 1; } }
@keyframes pfSlashPulse { 0%, 100% { opacity: .32; transform: translateX(-6px); } 50% { opacity: .78; transform: translateX(6px); } }
@keyframes pfPetalDrift { 0% { transform: translateY(-10px) translateX(-4px); opacity: .65; } 50% { transform: translateY(6px) translateX(6px); opacity: 1; } 100% { transform: translateY(-10px) translateX(-4px); opacity: .65; } }

:root.reduce-motion .av-ring,
:root.reduce-motion .av-ring-2,
:root.reduce-motion .av-svg-deco,
:root.reduce-motion .pf2-v-fx-layer,
:root.reduce-motion .pf2-v-fx-layer::before {
  animation: none !important;
}

/* ---------- 8. Responsivo ---------- */
@media (max-width: 980px) {
  .pf2-stage-grid,
  .pf2-edit-grid { grid-template-columns: 1fr; }
  .pf2-idbar { flex-direction: column; }
  .pf2-id-actions { width: 100%; justify-content: flex-start; }
}
@media (max-width: 640px) {
  .pf2-cover { height: 168px; }
  .pf2-idbar { padding: 14px 16px 18px; }
  .pf2-id-left { flex-direction: column; gap: 12px; }
  .pf2-avatar-anchor { margin-top: -54px; align-self: flex-start; }
  .av-size-xl { width: 92px; height: 92px; --av-pad: 6px; }
  .av-size-xl .av-init { font-size: 34px; }
  .pf2-vitrine-stage { min-height: 250px; padding: 18px 10px 14px; }
  .pf2-v-cards { gap: 8px; }
  .pf2-metric-grid { gap: 7px; }
  .pf2-metric { padding: 10px; }
  .pf2-wbadge-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- 9. Cores personalizadas de nome + Unicode ---------- */
.pf-name-styled {
  display: inline;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  unicode-bidi: plaintext;
}
.pf-name-styled[data-name-color="custom"] {
  color: var(--pf-name-color, var(--text)) !important;
  text-shadow: 0 2px 14px color-mix(in srgb, var(--pf-name-color, #ffffff) 28%, transparent);
}
.pf-name-styled[data-name-color="gold"],
.pf-name-styled[data-name-color="ruby"],
.pf-name-styled[data-name-color="cyan"],
.pf-name-styled[data-name-color="emerald"],
.pf-name-styled[data-name-color="violet"],
.pf-name-styled[data-name-color="sakura"],
.pf-name-styled[data-name-color="sunset"],
.pf-name-styled[data-name-color="ice"],
.pf-name-styled[data-name-color="crimson"],
.pf-name-styled[data-name-color="prisma"] {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}
.pf-name-styled[data-name-color="gold"] { background-image: linear-gradient(120deg, #fff6d6 0%, #f5c469 48%, #d68928 100%); filter: drop-shadow(0 2px 10px rgba(240, 184, 92, .25)); }
.pf-name-styled[data-name-color="ruby"] { background-image: linear-gradient(120deg, #ffdbe3 0%, #ff638a 48%, #d92651 100%); filter: drop-shadow(0 2px 10px rgba(255, 99, 138, .28)); }
.pf-name-styled[data-name-color="cyan"] { background-image: linear-gradient(120deg, #ebffff 0%, #6ee7ff 48%, #1cb3e0 100%); filter: drop-shadow(0 2px 10px rgba(110, 231, 255, .28)); }
.pf-name-styled[data-name-color="emerald"] { background-image: linear-gradient(120deg, #e7fff0 0%, #69ebaa 48%, #179e65 100%); filter: drop-shadow(0 2px 10px rgba(105, 235, 170, .25)); }
.pf-name-styled[data-name-color="violet"] { background-image: linear-gradient(120deg, #f4e8ff 0%, #c891ff 48%, #8546f6 100%); filter: drop-shadow(0 2px 10px rgba(197, 140, 255, .28)); }
.pf-name-styled[data-name-color="sakura"] { background-image: linear-gradient(120deg, #ffedf6 0%, #ffa3d5 48%, #e34f96 100%); filter: drop-shadow(0 2px 10px rgba(255, 163, 213, .28)); }
.pf-name-styled[data-name-color="sunset"] { background-image: linear-gradient(120deg, #fff3c7 0%, #ff9954 48%, #f0487d 100%); filter: drop-shadow(0 2px 10px rgba(255, 153, 84, .28)); }
.pf-name-styled[data-name-color="ice"] { background-image: linear-gradient(120deg, #ffffff 0%, #bfe2ff 50%, #63a4ff 100%); filter: drop-shadow(0 2px 10px rgba(140, 200, 255, .28)); }
.pf-name-styled[data-name-color="crimson"] { background-image: linear-gradient(120deg, #ffe5e2 0%, #ff6357 48%, #bf1d2a 100%); filter: drop-shadow(0 2px 10px rgba(255, 99, 87, .28)); }
.pf-name-styled[data-name-color="prisma"] {
  background-image: linear-gradient(90deg, #ffe185 0%, #ff7ec2 25%, #7ae7ff 50%, #99ffb8 75%, #ffe185 100%);
  background-size: 220% 100%;
  animation: pfNamePrisma 4.5s linear infinite;
  filter: drop-shadow(0 2px 12px rgba(168, 196, 255, .34));
}
@keyframes pfNamePrisma {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}
:root.reduce-motion .pf-name-styled[data-name-color="prisma"] {
  animation: none !important;
}

.pf2-namecolor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 8px;
}
.pf2-nc-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(12, 14, 28, .66);
  color: var(--soft);
  cursor: pointer;
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
}
.pf2-nc-btn:hover { border-color: rgba(255, 255, 255, .3); transform: translateY(-1px); }
.pf2-nc-btn.active {
  border-color: rgba(240, 184, 92, .8);
  background: linear-gradient(135deg, rgba(240, 184, 92, .18), rgba(240, 184, 92, .06));
  color: var(--text);
}
.pf2-nc-swatch {
  display: block;
  width: 100%;
  height: 10px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .2);
}
.pf2-nc-btn b { font-size: 12px; }
.pf2-nc-custom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(10, 11, 24, .5);
}
.pf2-nc-custom input[type="color"] {
  width: 40px;
  height: 30px;
  padding: 2px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .24);
  background: transparent;
  cursor: pointer;
}
.pf2-nc-hex {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-hover);
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
}
.pf2-field-hint {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 400;
}

/* ---------- 10. Indicador luminoso de atualização do site ---------- */
.site-update-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(114, 245, 214, .82);
  background: linear-gradient(120deg, rgba(16, 46, 56, .94) 0%, rgba(36, 26, 78, .94) 55%, rgba(62, 46, 18, .94) 100%);
  color: #ecfffb;
  font-family: var(--ui);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .01em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  box-shadow: 0 0 0 2px rgba(102, 247, 212, .22), 0 0 18px rgba(72, 240, 200, .55), 0 0 34px rgba(240, 184, 92, .35);
  animation: siteUpdateGlow 1.9s ease-in-out infinite;
  transition: transform .16s ease, border-color .16s ease;
}
.site-update-btn[hidden] {
  display: none !important;
}
.site-update-btn::after {
  content: '';
  position: absolute;
  inset: -40% auto -40% -60%;
  width: 55%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .42), transparent);
  transform: skewX(-22deg);
  pointer-events: none;
  animation: siteUpdateSweep 2.6s ease-in-out infinite;
}
.site-update-btn:hover {
  transform: translateY(-1px) scale(1.02);
  border-color: #fff2b8;
}
.site-update-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: #6bf7d6;
  box-shadow: 0 0 0 3px rgba(107, 247, 214, .28), 0 0 12px #6bf7d6;
}
.site-update-btn svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: #ffe28a;
}
.site-update-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 219, 120, .2);
  color: #ffe69c;
  border: 1px solid rgba(255, 219, 120, .4);
}
@keyframes siteUpdateGlow {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(102, 247, 212, .22), 0 0 14px rgba(72, 240, 200, .45), 0 0 26px rgba(240, 184, 92, .25);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(102, 247, 212, .38), 0 0 24px rgba(72, 240, 200, .82), 0 0 42px rgba(240, 184, 92, .52);
  }
}
@keyframes siteUpdateSweep {
  0%, 35% { left: -65%; }
  100% { left: 135%; }
}
@media (max-width: 640px) {
  .site-update-btn { padding: 0 10px 0 8px; font-size: 11.5px; gap: 6px; min-height: 34px; }
  .site-update-tag { display: none; }
}

/* ---------- 11. Clique direto no avatar + Ajuste / Zoom de enquadramento ---------- */
.pf-avatar-click-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  transition: transform .18s ease, filter .18s ease;
}
.pf-avatar-click-btn:hover,
.pf-avatar-click-btn:focus-visible {
  transform: translateY(-2px) scale(1.02);
  outline: none;
}
.pf-avatar-click-overlay {
  position: absolute;
  inset: 6px;
  z-index: 4;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: radial-gradient(circle, rgba(10, 12, 26, .66) 0%, rgba(10, 12, 26, .84) 100%);
  color: #fff8e6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.pf-avatar-click-overlay svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .75));
}
.pf-avatar-click-btn:hover .pf-avatar-click-overlay,
.pf-avatar-click-btn:focus-visible .pf-avatar-click-overlay {
  opacity: 1;
}
.pf-avatar-click-badge {
  position: absolute;
  left: 4px;
  bottom: 4px;
  z-index: 5;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #23274a, #12152b);
  border: 1.5px solid rgba(240, 184, 92, .7);
  color: #ffe29a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .65);
  pointer-events: none;
  transition: transform .18s ease, background .18s ease;
}
.pf-avatar-click-badge svg {
  width: 14px;
  height: 14px;
}
.pf-avatar-click-btn:hover .pf-avatar-click-badge {
  transform: scale(1.1);
  background: linear-gradient(135deg, #323768, #1a1f3d);
}

.pf-crop-dialog {
  max-width: 480px;
  width: calc(100vw - 24px);
  border-radius: 20px;
  border: 1px solid rgba(240, 184, 92, .28);
  background: linear-gradient(165deg, rgba(20, 22, 42, .98), rgba(11, 13, 26, .99));
  color: var(--text);
  padding: 0;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .82);
}
.pf-crop-dialog::backdrop {
  background: rgba(5, 6, 14, .76);
  backdrop-filter: blur(6px);
}
.pf-crop-wrap {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pf-crop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pf-crop-head h2 {
  font-family: var(--display);
  font-size: 19px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pf-crop-head h2 svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}
.pf-crop-stage-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 35%, rgba(62, 54, 118, .28), rgba(8, 10, 22, .75));
  border: 1px solid rgba(255, 255, 255, .08);
}
.pf-crop-stage {
  position: relative;
  cursor: grab;
  user-select: none;
  touch-action: none;
  border-radius: 50%;
  padding: 4px;
}
.pf-crop-stage:active,
.pf-crop-stage.is-dragging {
  cursor: grabbing;
}
.pf-crop-stage .av-size-xl {
  width: 164px;
  height: 164px;
}
.pf-crop-hint {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.pf-crop-presets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.pf-crop-sliders {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(8, 10, 20, .55);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  padding: 12px 14px;
}
.pf-crop-row {
  display: grid;
  grid-template-columns: 92px 1fr 48px;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}
.pf-crop-row span {
  color: var(--soft);
  font-weight: 600;
}
.pf-crop-row output {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.pf-crop-row input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}
.pf-crop-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.pf-crop-actions-left,
.pf-crop-actions-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.pf-crop-actions-right {
  margin-left: auto;
}

/* Modal unificado de Capa de Fundo & Enquadramento */
.pf-cover-dialog {
  max-width: 700px;
}
.pf-cover-stage-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 35%, rgba(62, 54, 118, .25), rgba(8, 10, 22, .78));
  border: 1px solid rgba(255, 255, 255, .08);
}
.pf-cover-stage {
  margin: 0;
  border-radius: 14px;
  cursor: grab;
  user-select: none;
  touch-action: none;
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .85);
}
.pf-cover-stage:active,
.pf-cover-stage.is-dragging {
  cursor: grabbing;
}
.pf-cover-stage .pf2-cover {
  height: 164px;
}
.pf-cover-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pf-cover-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(15, 17, 36, .75);
  color: var(--soft);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.pf-cover-tab-btn svg {
  width: 14px;
  height: 14px;
}
.pf-cover-tab-btn.is-active {
  border-color: var(--accent, #f0b85c);
  background: rgba(240, 184, 92, .16);
  color: #fff;
}
.pf-cover-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pf-cover-scroll {
  max-height: 270px;
  overflow-y: auto;
  padding-right: 4px;
}
.pf-cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 9px;
}
.pf-cover-opt {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(12, 14, 30, .9);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.pf-cover-opt:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .32);
}
.pf-cover-opt.active {
  border-color: var(--accent, #f0b85c);
  box-shadow: 0 0 0 2px rgba(240, 184, 92, .28);
}
.pf-cover-opt-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 28%;
  display: block;
}
.pf-cover-opt-swatch {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  overflow: hidden;
}
.pf-cover-opt-swatch.pf2-hero {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.pf-cover-opt-meta {
  padding: 6px 8px 7px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.pf-cover-opt-meta b {
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-cover-opt-meta small {
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-cover-opt-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent, #f0b85c);
  color: #14121d;
  font-size: 12px;
  font-weight: 900;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .55);
}
.pf-cover-cards-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pf-cover-cards-toolbar .search {
  flex: 1 1 200px;
}
.pf-cover-noimg-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 2px 6px;
}
@media (max-width: 600px) {
  .pf-cover-stage .pf2-cover {
    height: 126px;
  }
  .pf2-cover-edit-hint {
    right: 10px;
    bottom: 10px;
    padding: 5px 10px;
    font-size: 11px;
  }
}

/* Movimento dos papéis de parede clássicos: apenas camadas decorativas, sem mover a página. */
.pf-page-wallpaper:is([data-bg="eclipse"], [data-bg="abismo"], [data-bg="shrine"], [data-bg="cyber"], [data-bg="sakura"]) .pf-wp-art {
  animation: pf-classic-drift 20s ease-in-out -5s infinite alternate;
  will-change: transform, opacity;
}
.pf-page-wallpaper[data-bg="abismo"] .pf-wp-art { animation-duration: 24s; }
.pf-page-wallpaper[data-bg="shrine"] .pf-wp-art { animation-duration: 18s; animation-direction: alternate-reverse; }
.pf-page-wallpaper[data-bg="cyber"] .pf-wp-art { animation-duration: 16s; }
.pf-page-wallpaper[data-bg="sakura"] .pf-wp-art { animation-duration: 22s; animation-direction: alternate-reverse; }
.pf-page-wallpaper[data-bg="cyber"] .pf-wp-fx { animation: pf-classic-grid 10s linear -2s infinite; }
.pf-page-wallpaper[data-bg="card"] .pf-wp-art { animation: pf-classic-card 24s ease-in-out -6s infinite alternate; will-change: transform; }
.pf-page-wallpaper:is([data-bg="eclipse"], [data-bg="abismo"], [data-bg="shrine"], [data-bg="cyber"], [data-bg="sakura"], [data-bg="card"]) :is(.pf-wp-art, .pf-wp-fx) { animation-play-state: paused; }
.pf-page-wallpaper.is-active:is([data-bg="eclipse"], [data-bg="abismo"], [data-bg="shrine"], [data-bg="cyber"], [data-bg="sakura"], [data-bg="card"]) :is(.pf-wp-art, .pf-wp-fx) { animation-play-state: running; }
:is(html.fast-motion, html.reduce-motion, html.ambient-paused) .pf-page-wallpaper:is([data-bg="eclipse"], [data-bg="abismo"], [data-bg="shrine"], [data-bg="cyber"], [data-bg="sakura"], [data-bg="card"]) :is(.pf-wp-art, .pf-wp-fx) { animation-play-state: paused !important; }
@keyframes pf-classic-drift { from { transform: translate3d(-2%, -1%, 0) scale(1.08); opacity: .90; } to { transform: translate3d(2%, 1.2%, 0) scale(1.11); opacity: 1; } }
@keyframes pf-classic-card { from { transform: translate3d(-1.5%, -.7%, 0) scale(1.14); } to { transform: translate3d(1.5%, .8%, 0) scale(1.18); } }
@keyframes pf-classic-grid { to { background-position: 56px 56px, 56px 56px; } }
/* Padrão do Tema já mostra o ambiente global; conserva o desenho e pausa só neste perfil. */
:is(html.fast-motion, html.reduce-motion) body:has(#pf-page-wallpaper.is-active[data-bg="theme"])::before,
:is(html.fast-motion, html.reduce-motion) body:has(#pf-page-wallpaper.is-active[data-bg="theme"])::after,
:is(html.fast-motion, html.reduce-motion) body:has(#pf-page-wallpaper.is-active[data-bg="theme"]) .amb-sky * { animation-play-state: paused !important; }
