/* Scoped to sprite nodes only; never overrides theme or native game layout. */
.ntv-sprite-391{display:inline-block;position:relative;isolation:isolate;width:100%;height:100%;min-width:0;min-height:0;aspect-ratio:1/1;vertical-align:middle;overflow:visible}
.ntv-sprite-391 img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;max-width:none!important;max-height:none!important;margin:0!important;border:0!important;padding:0!important;box-shadow:none!important;background:none!important;pointer-events:none}
.ntv-sprite-391 .ntv-sprite-state-icon{position:absolute;z-index:70;top:-9%;right:-5%;font-size:clamp(12px,1.5vw,21px);line-height:1;background:#fff8db;border:2px solid #b7d9b7;border-radius:50%;min-width:20px;min-height:20px;display:grid;place-items:center;box-shadow:0 2px 7px #0003}
.ntv-sprite-391--your_turn{filter:drop-shadow(0 0 5px #ffe45b)}
.ntv-sprite-391--correct{filter:drop-shadow(0 0 5px #35eca0)}
.ntv-sprite-391--wrong{filter:saturate(.72)}
.ntv-sprite-391--victory{filter:drop-shadow(0 0 5px #ffd656)}
.ntv-sprite-391--typing .ntv-sprite-state-icon{animation:ntv-391-pulse 1.1s ease-in-out infinite}
.ntv-sprite-391--unlock .ntv-sprite-state-icon{animation:ntv-391-pulse 1.1s ease-in-out infinite}
@keyframes ntv-391-pulse{50%{transform:translateY(-4px)}}
#ntv-game-root .ntv-person-avatar-wrap>.ntv-sprite-391{width:100%;height:100%;border-radius:50%}
#ntv-game-root .ntv-chat-avatar>.ntv-sprite-391,#ntv-game-root .ntv-profile-avatar>.ntv-sprite-391,#ntv-game-root .ntv-profile-pic>.ntv-sprite-391,#ntv-game-root .ntv-roster-avatar>.ntv-sprite-391{width:100%;height:100%;border-radius:50%}
@media(prefers-reduced-motion:reduce){.ntv-sprite-391--typing .ntv-sprite-state-icon,.ntv-sprite-391--unlock .ntv-sprite-state-icon{animation:none}}

/* v3.9.3: keep outfit/body layers aligned, crop only the subject for small avatars.
   Frame and effect remain full-size and are never zoomed with the character. */
.ntv-sprite-391 .ntv-sprite-art{position:absolute;inset:0;overflow:hidden;border-radius:inherit;isolation:isolate}
.ntv-sprite-391 .ntv-sprite-art>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
#ntv-game-root .ntv-profile-avatar>.ntv-sprite-391,
#ntv-game-root .ntv-chat-avatar>.ntv-sprite-391,
#ntv-game-root .ntv-roster-avatar>.ntv-sprite-391,
#ntv-game-root .ntv-profile-pic>.ntv-sprite-391{min-width:0;min-height:0}
.ntv-sprite-391--home .ntv-sprite-art>img{transform:scale(1.64);transform-origin:50% 34%}
.ntv-sprite-391--chat .ntv-sprite-art>img{transform:scale(1.73);transform-origin:50% 33%}
.ntv-sprite-391--roster .ntv-sprite-art>img{transform:scale(1.50);transform-origin:50% 37%}
.ntv-sprite-391--profile .ntv-sprite-art>img{transform:scale(1.36);transform-origin:50% 40%}
.ntv-sprite-391--wardrobe-profile .ntv-sprite-art>img{transform:scale(1.46);transform-origin:50% 39%}
.ntv-sprite-391--player .ntv-sprite-art>img{transform:scale(1.08);transform-origin:50% 46%}
.ntv-sprite-391--home .ntv-sprite-state-icon,.ntv-sprite-391--chat .ntv-sprite-state-icon{font-size:12px;min-width:16px;min-height:16px}

/* v3.9.25: preserve a single circular frame, do not add a second square/oval border. */
#ntv-game-root .ntv-profile-avatar:has(>.ntv-sprite-391),
#ntv-game-root .ntv-chat-avatar:has(>.ntv-sprite-391),
#ntv-game-root .ntv-person-avatar-wrap:has(>.ntv-sprite-391),
#ntv-game-root .ntv-roster-avatar:has(>.ntv-sprite-391),
#ntv-game-root .ntv-profile-pic:has(>.ntv-sprite-391),
#ntv-game-root .ntv-lb-portrait:has(>.ntv-sprite-391){border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;overflow:visible!important;border-radius:50%!important}
.ntv-sprite-391 [data-ntv-part="frame"]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:contain!important}
/* Keep circular portrait backdrop after removing a decorative frame. */
#ntv-game-root .ntv-profile-avatar:has(>.ntv-sprite-391) .ntv-sprite-art,
#ntv-game-root .ntv-person-avatar-wrap:has(>.ntv-sprite-391) .ntv-sprite-art,
#ntv-game-root .ntv-chat-avatar:has(>.ntv-sprite-391) .ntv-sprite-art,
#ntv-game-root .ntv-profile-pic:has(>.ntv-sprite-391) .ntv-sprite-art,
#ntv-game-root .ntv-roster-avatar:has(>.ntv-sprite-391) .ntv-sprite-art {background:radial-gradient(circle at 35% 28%,#f7fff1,#c7f0e0);border-radius:50%}

@media(prefers-reduced-motion:reduce){#ntv-game-root [class*="ntv-frame-vip_"]::after{animation:none!important}}

/* v3.9.29 — VIP frame safe zone, never use the old 160% tight sprite scale. */
.ntv-sprite-391:has(>img[data-ntv-part="frame"][src*="/vip_"]) .ntv-sprite-art{
  inset:15%;border-radius:50%;
}
.ntv-sprite-391>img[data-ntv-part="frame"][src*="/vip_"]{
  position:absolute!important;inset:-25%!important;width:150%!important;height:150%!important;
  object-fit:contain!important;max-width:none!important;max-height:none!important;pointer-events:none;
}

/* v3.9.30 — Uploaded frame PNG/WebP gets the same safe circular avatar zone. */
.ntv-sprite-391--custom-frame .ntv-sprite-art{inset:15%!important;border-radius:50%}
.ntv-sprite-391--custom-frame>img[data-ntv-part="frame"]{position:absolute!important;inset:-25%!important;width:150%!important;height:150%!important;max-width:none!important;max-height:none!important;object-fit:contain!important;pointer-events:none}

/* v3.9.31: one centered ring, avatar area large enough to read at Top 1–20 sizes. */
#ntv-game-root .ntv-lb-portrait>.ntv-sprite-391--leaderboard{width:100%;height:100%;border-radius:50%;overflow:visible!important}
#ntv-game-root .ntv-sprite-391--leaderboard .ntv-sprite-art{inset:1%;border-radius:50%;overflow:hidden}
#ntv-game-root .ntv-sprite-391--leaderboard .ntv-sprite-art>img{transform:scale(1.70);transform-origin:50% 38%}
#ntv-game-root .ntv-sprite-391--leaderboard.ntv-sprite-391--custom-frame .ntv-sprite-art{inset:7%!important}
#ntv-game-root .ntv-sprite-391--leaderboard.ntv-sprite-391--custom-frame .ntv-sprite-art>img{transform:scale(1.89);transform-origin:50% 37%}
#ntv-game-root .ntv-sprite-391--leaderboard.ntv-sprite-391--custom-frame>img[data-ntv-part="frame"]{inset:-25%!important;width:150%!important;height:150%!important}

/* v3.9.31: per-frame calibration from WordPress Admin, shared with photo avatars. */
#ntv-game-root .ntv-sprite-391>img[data-ntv-part="frame"]{
  inset:calc((100% - var(--ntv-frame-size,100%))/2)!important;
  width:var(--ntv-frame-size,100%)!important;height:var(--ntv-frame-size,100%)!important;
  transform:translate(var(--ntv-frame-x,0%),var(--ntv-frame-y,0%))!important;
  object-fit:contain!important;
}


/* v3.9.42 — sprite-based frame overlays by context. Smaller than v3.9.40 default to avoid spill in compact cards. */
#ntv-game-root .ntv-profile-avatar>.ntv-sprite-391 .ntv-sprite-art,
#ntv-game-root .ntv-roster-avatar>.ntv-sprite-391 .ntv-sprite-art{inset:16%!important}
#ntv-game-root .ntv-profile-pic>.ntv-sprite-391 .ntv-sprite-art,
#ntv-game-root .ntv-person-avatar-wrap>.ntv-sprite-391 .ntv-sprite-art{inset:15%!important}
#ntv-game-root .ntv-lb-portrait>.ntv-sprite-391 .ntv-sprite-art{inset:10%!important}
#ntv-game-root .ntv-profile-avatar>.ntv-sprite-391>img[data-ntv-part="frame"],
#ntv-game-root .ntv-roster-avatar>.ntv-sprite-391>img[data-ntv-part="frame"]{inset:-22%!important;width:144%!important;height:144%!important;transform:translate(var(--ntv-frame-x,0%),var(--ntv-frame-y,0%))!important}
#ntv-game-root .ntv-profile-pic>.ntv-sprite-391>img[data-ntv-part="frame"],
#ntv-game-root .ntv-person-avatar-wrap>.ntv-sprite-391>img[data-ntv-part="frame"]{inset:-20%!important;width:140%!important;height:140%!important;transform:translate(var(--ntv-frame-x,0%),var(--ntv-frame-y,0%))!important}
#ntv-game-root .ntv-lb-portrait>.ntv-sprite-391>img[data-ntv-part="frame"]{inset:-16%!important;width:132%!important;height:132%!important;transform:translate(var(--ntv-frame-x,0%),var(--ntv-frame-y,0%))!important}
