/* NameMC-inspired top identity card using Leviathan's own abyss UI. */
.plv2-profile.lvt-profile-header-mounted{grid-template-columns:minmax(250px,310px) minmax(0,1fr)!important;align-items:stretch!important}
.lvt-profile-header-card{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,.9fr);min-height:96px;overflow:visible;border-bottom:1px solid rgba(112,219,240,.10);background:linear-gradient(145deg,rgba(9,32,46,.98),rgba(4,17,27,.995));box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}
.lvt-profile-header-main,.lvt-profile-header-socials{padding:15px 20px;min-width:0}
.lvt-profile-header-main{display:flex;align-items:center;justify-content:flex-start;background:radial-gradient(420px 130px at 18% 20%,rgba(35,158,213,.09),transparent 75%)}
.lvt-profile-header-socials{display:flex;flex-direction:column;justify-content:flex-start;overflow:visible;border-left:1px solid rgba(112,219,240,.08);background:linear-gradient(145deg,rgba(8,28,41,.7),rgba(3,14,22,.88))}
.lvt-profile-header-kicker{display:block;margin:0;color:#5cbfd5;font-size:7px;font-weight:950;letter-spacing:.15em;text-transform:uppercase}
.lvt-profile-header-name{min-width:0}
.lvt-profile-header-name h2{display:flex;align-items:center;gap:9px;min-width:0;margin:0!important;color:#f2fbff!important;font-size:clamp(28px,3.2vw,42px)!important;line-height:.98!important;letter-spacing:-.045em!important;overflow-wrap:anywhere}
.lvt-profile-header-name .lvt-notable-badge{flex:0 0 auto;transform:translateY(1px)}
.lvt-profile-header-socials-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:20px}.lvt-profile-social-edit{min-height:26px;padding:0 9px;border:1px solid rgba(122,226,255,.2);border-radius:7px;background:rgba(79,190,226,.08);color:#bdefff;font:850 7px/1 system-ui;cursor:pointer}.lvt-profile-social-edit:hover{border-color:rgba(137,232,255,.42);background:rgba(83,205,238,.14);color:#fff}.lvt-profile-social-edit[hidden]{display:none!important}.lvt-profile-header-identity{display:flex;margin-top:6px;align-items:center;justify-content:flex-start;gap:8px;min-height:32px;flex-wrap:wrap;overflow:visible}
.lvt-profile-header-identity>.lvt-role{min-height:29px!important;display:inline-flex!important;align-items:center!important;padding:0 10px!important;border-radius:8px!important}
.lvt-profile-header-identity>.lvt-country-chip,.lvt-profile-header-identity>.lvt-service-icon-button{flex:0 0 auto}
.lvt-profile-header-empty{color:#587682;font-size:8px;font-weight:750}

/* The old title/identity remain in the DOM for existing scripts, but the new header is the visual source of truth. */
.plv2-profile.lvt-profile-header-mounted .pn-info>.pn-eyebrow,
.plv2-profile.lvt-profile-header-mounted .pn-info>.pn-title-row,
.plv2-profile.lvt-profile-header-mounted .pn-info>.lvt-profile-identity{display:none!important}

/* Keep the player visually directly below the identity card. */
.plv2-profile.lvt-profile-header-mounted .pn-avatar{grid-column:1;grid-row:auto;margin:0!important;border-top:0!important}
.plv2-profile.lvt-profile-header-mounted .pn-info{grid-column:2;grid-row:auto;border-top:0!important}

/* Header copies keep all existing verified/social tooltip behavior. */
.lvt-profile-header-card .lvt-service-icon-button::after,
.lvt-profile-header-card .lvt-country-chip::after{z-index:300}
.lvt-profile-header-card .lvt-service-icon-button::before,
.lvt-profile-header-card .lvt-country-chip::before{z-index:301}

@media(max-width:860px){
  .plv2-profile.lvt-profile-header-mounted{grid-template-columns:1fr!important}
  .lvt-profile-header-card{grid-column:1;grid-template-columns:1fr}
  .lvt-profile-header-socials{border-left:0;border-top:1px solid rgba(112,219,240,.08)}
  .plv2-profile.lvt-profile-header-mounted .pn-avatar,.plv2-profile.lvt-profile-header-mounted .pn-info{grid-column:1}
}
@media(max-width:620px){
  .lvt-profile-header-main,.lvt-profile-header-socials{padding:15px 16px}
  .lvt-profile-header-name h2{font-size:30px!important}
  .lvt-profile-header-identity{gap:7px}
}

@media(max-width:760px){
  .plv2-profile.lvt-profile-header-mounted{grid-template-columns:minmax(0,1fr)!important}
  .lvt-profile-header-card{grid-template-columns:minmax(0,1fr)!important;width:100%!important;max-width:100%!important}
  .lvt-profile-header-socials{border-left:0!important;border-top:1px solid rgba(112,219,240,.08)!important}
  .lvt-profile-header-socials-head{min-width:0!important}
  .lvt-profile-header-kicker{max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important}
}
