/* ZG identity seals across Arena / private messaging / member cards */
.zg-identity-host{position:relative!important;overflow:visible!important}
.zg-identity-host>img{border-radius:inherit}
.zg-identity-mini-seal{position:absolute;right:-6px;top:-6px;z-index:12;width:19px;height:19px;display:grid;place-items:center;pointer-events:none;user-select:none;font:900 5.5px/1 Inter,Arial,sans-serif;letter-spacing:-.15px;border:2px solid #101116;contain:layout paint;will-change:transform}
.zg-identity-mini-seal.gold{clip-path:polygon(50% 0%,64% 8%,78% 5%,89% 16%,96% 29%,93% 43%,100% 50%,93% 57%,96% 71%,89% 84%,78% 95%,64% 92%,50% 100%,36% 92%,22% 95%,11% 84%,4% 71%,7% 57%,0 50%,7% 43%,4% 29%,11% 16%,22% 5%,36% 8%);background:radial-gradient(circle at 30% 22%,#fff7c4 0,#f2d36a 28%,#c9942d 62%,#6f420d 100%);color:#241503;box-shadow:0 0 10px rgba(231,184,58,.48)}
.zg-identity-mini-seal.owner{width:22px;height:22px;right:-8px;top:-8px;border-radius:8px;background:linear-gradient(145deg,#f5d878,#9e6717);color:#171009;border:2px solid #15100a;box-shadow:0 0 10px rgba(233,191,80,.42);font:900 12px/1 Georgia,serif;letter-spacing:0}
.zg-identity-mini-seal.elite{width:27px;height:27px;right:-10px;top:-10px;border:0;background:radial-gradient(circle at 35% 26%,rgba(226,252,255,.92) 0 7%,rgba(92,199,255,.54) 23%,rgba(91,95,255,.28) 48%,rgba(61,35,128,.08) 68%,transparent 72%);color:transparent;font-size:0;filter:drop-shadow(0 0 7px rgba(109,207,255,.48)) drop-shadow(0 0 11px rgba(100,103,255,.24));overflow:visible!important}
.zg-identity-mini-seal.elite>img{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:contain!important;border-radius:0!important;pointer-events:none!important;transform:translateZ(0);backface-visibility:hidden}
.zg-identity-text-badge{display:inline-flex;align-items:center;justify-content:center;margin-inline-start:6px;padding:3px 7px;border-radius:999px;font:900 7px Inter,Arial,sans-serif;white-space:nowrap}
.zg-identity-text-badge.gold{border:1px solid rgba(218,174,52,.42);background:rgba(218,174,52,.09);color:#ffe082}
.zg-identity-text-badge.owner{border:1px solid rgba(226,184,72,.5);background:rgba(226,184,72,.11);color:#ffe6a0;font-weight:900}
.zg-identity-text-badge.elite{gap:4px;border:1px solid rgba(121,202,255,.42);background:linear-gradient(135deg,rgba(105,190,255,.10),rgba(115,77,205,.10));color:#dff8ff}
.zg-identity-text-badge.elite::before{content:'';width:15px;height:15px;display:block;flex:0 0 auto;background:url('./zg-elite-diamond-mini.webp') center/contain no-repeat;filter:drop-shadow(0 0 5px rgba(109,207,255,.30))}
.private-conversation-head{gap:7px}.private-conversation-head>.zg-identity-text-badge{margin-inline-end:auto}
.arena-member-badges .zg-identity-text-badge{margin-inline-start:0}
.arena-social-comment header>span.zg-identity-host,.arena-social-reply header>span.zg-identity-host{overflow:visible!important}
@media(max-width:520px){.zg-identity-mini-seal.elite{width:24px;height:24px;right:-8px;top:-8px}}


/* V3.4D.2 — Elite seal transparency polish
   Keep the host completely transparent; glow follows the diamond alpha only. */
.zg-identity-mini-seal{
  contain:none!important;
  will-change:auto!important;
}
.zg-identity-mini-seal.elite{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  filter:none!important;
  overflow:visible!important;
}
.zg-identity-mini-seal.elite::before,
.zg-identity-mini-seal.elite::after{content:none!important;display:none!important}
.zg-identity-mini-seal.elite>img{
  background:transparent!important;
  box-shadow:none!important;
  filter:drop-shadow(0 0 5px rgba(109,207,255,.42)) drop-shadow(0 0 9px rgba(100,103,255,.18))!important;
  opacity:1!important;
}

/* V3.6H.13.16 — true tier separation: Verified / Gold / Elite */
.zg-identity-mini-seal.verified{width:19px;height:19px;border-radius:7px!important;clip-path:none!important;background:linear-gradient(145deg,#f42b51,#9d001f)!important;color:#fff!important;border:2px solid #101116!important;box-shadow:0 0 9px rgba(236,31,67,.30)!important;font:900 5.5px/1 Inter,Arial,sans-serif!important}
.zg-identity-mini-seal.gold{width:25px!important;height:19px!important;border:0!important;border-radius:0!important;clip-path:none!important;background:transparent!important;color:transparent!important;box-shadow:none!important;filter:drop-shadow(0 0 5px rgba(232,184,58,.34)) drop-shadow(0 3px 5px rgba(0,0,0,.28))!important;overflow:visible!important}
.zg-identity-mini-seal.gold>img{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:contain!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.zg-identity-text-badge.verified{border:1px solid rgba(239,43,77,.38);background:rgba(225,21,56,.08);color:#ff9baa}
.zg-identity-text-badge.verified::before{content:'ZG';width:14px;height:14px;border-radius:5px;display:grid;place-items:center;background:linear-gradient(145deg,#fa244c,#9c001f);color:#fff;font:900 5px Inter,Arial,sans-serif}
.zg-identity-text-badge.gold{gap:4px!important}.zg-identity-text-badge.gold::before{width:17px!important;height:13px!important}

/* V3.7N.52 — one lightweight transparent Owner crown across identity surfaces. */
.zg-owner-crown{display:inline-block;width:24px;height:24px;object-fit:contain;vertical-align:middle;flex:0 0 auto;border:0!important;border-radius:0!important;background:transparent!important}
.zg-identity-mini-seal.owner{width:30px;height:30px;right:-10px;top:-12px;border:0;background:transparent;box-shadow:none;border-radius:0}
.zg-identity-mini-seal.owner>img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;border-radius:0!important;background:transparent!important}
.zg-identity-text-badge.owner{gap:4px}
.zg-identity-text-badge.owner::before{content:'';display:block;flex:0 0 22px;width:22px;height:22px;background:url('/assets/zg-owner-crown-v1.webp') center/contain no-repeat}
.arena-member-name.zg-owner-name,#privateConversationTitle.zg-owner-name{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;overflow:visible;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.arena-member-name.zg-owner-name::before,#privateConversationTitle.zg-owner-name::before{content:'';display:block;flex:0 0 30px;width:32px;height:30px;background:url('/assets/zg-owner-crown-v1.webp') center/contain no-repeat;pointer-events:none}
.profile-page[data-zg-owner="1"] .rank-showcase>b{display:grid!important;place-items:center;width:72px!important;height:68px!important;margin:0 auto!important;font-size:0!important;line-height:0!important}
.profile-page[data-zg-owner="1"] .rank-showcase .zg-owner-crown{display:block;width:68px;height:68px}
.profile-badge.founder-owner{display:inline-flex;align-items:center;gap:4px}
.profile-badge.founder-owner .zg-owner-crown{width:22px;height:22px}
@media(max-width:520px){.profile-page[data-zg-owner="1"] .rank-showcase>b{width:60px!important;height:58px!important}.profile-page[data-zg-owner="1"] .rank-showcase .zg-owner-crown{width:58px;height:58px}}

.public-player-page[data-zg-owner="1"] .zg-owner-portrait-crown{position:absolute;top:-12px;inset-inline-end:-10px;z-index:6;display:block;width:48px;height:48px;pointer-events:none}
.public-player-page[data-zg-owner="1"] .zg-owner-portrait-crown .zg-owner-crown{display:block;width:100%;height:100%}
.public-player-page[data-zg-owner="1"] .elite-public-badge{display:none!important}

/* V3.7N.52.2 — use the name crown once per chat/post author; keep avatars clear. */
.arena-message:has(> .arena-message-main .arena-member-name.zg-owner-name) > .arena-avatar > .zg-identity-mini-seal.owner,
.arena-post-header:has(> .arena-post-author .arena-member-name.zg-owner-name) > .arena-avatar > .zg-identity-mini-seal.owner{
  display:none!important;
}

/* V3.7N.53 — every membership uses one badge above the author name. */
.arena-member-name[data-zg-name-tier]:not([data-zg-name-tier="none"]),
#privateConversationTitle[data-zg-name-tier]:not([data-zg-name-tier="none"]){display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;overflow:visible;white-space:normal;overflow-wrap:anywhere}
.arena-member-name[data-zg-name-tier]:not([data-zg-name-tier="none"])::before,
#privateConversationTitle[data-zg-name-tier]:not([data-zg-name-tier="none"])::before{content:'';display:block;flex:0 0 30px;width:32px;height:30px;background:center/contain no-repeat;pointer-events:none}
[data-zg-name-tier="owner"]::before{background-image:url('/assets/zg-owner-crown-v1.webp')!important}
[data-zg-name-tier="elite"]::before{background-image:url('/assets/zg-elite-diamond-mini.webp')!important}
[data-zg-name-tier="gold"]::before{background-image:url('/assets/zg-gold-gem.svg')!important}
.arena-member-name[data-zg-name-tier="verified"]::before,#privateConversationTitle[data-zg-name-tier="verified"]::before{content:'ZG';display:grid;place-items:center;width:24px;height:24px;flex-basis:24px;margin:3px 0;border-radius:7px;background:linear-gradient(145deg,#f42b51,#9d001f);color:#fff;font:900 8px/1 Inter,Arial,sans-serif}
.arena-message:has(> .arena-message-main .arena-member-name[data-zg-name-tier]:not([data-zg-name-tier="none"])) > .arena-avatar > .zg-identity-mini-seal,
.arena-post-header:has(> .arena-post-author .arena-member-name[data-zg-name-tier]:not([data-zg-name-tier="none"])) > .arena-avatar > .zg-identity-mini-seal{display:none!important}
