/* ========================================================================
   World Yggdrasil Online — Yggdrasil Atlan v0.7.9
   Logged-player identity treatment for the global header.
   ======================================================================== */

body.atlan-body .atlan-account-profile{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:5px 12px 5px 6px;
  border:1px solid rgba(205,171,76,.18);
  background:
    linear-gradient(135deg,rgba(18,43,30,.76),rgba(5,17,12,.92)),
    #07150f;
  color:#dce3de!important;
  text-decoration:none!important;
  clip-path:polygon(7px 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%,0 7px);
  transition:border-color .18s ease,background .18s ease,transform .18s ease;
}
body.atlan-body .atlan-account-profile:hover{
  border-color:rgba(226,190,78,.44);
  background:
    linear-gradient(135deg,rgba(24,57,39,.9),rgba(7,22,15,.96)),
    #081a12;
  transform:translateY(-1px);
}
body.atlan-body .atlan-account-avatar{
  position:relative;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  width:32px;
  height:32px;
  border:1px solid rgba(216,181,79,.26);
  background:
    radial-gradient(circle at 50% 28%,rgba(216,181,79,.13),transparent 55%),
    #06110d;
  color:#cfb257;
  font-size:12px;
  clip-path:polygon(5px 0,100% 0,100% calc(100% - 5px),calc(100% - 5px) 100%,0 100%,0 5px);
}
body.atlan-body .atlan-account-presence{
  position:absolute;
  right:-3px;
  bottom:-3px;
  width:8px;
  height:8px;
  border:2px solid #07150f;
  background:#68b57d;
  box-shadow:0 0 10px rgba(104,181,125,.48);
}
body.atlan-body .atlan-account-identity{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
  max-width:110px;
  line-height:1.05;
}
body.atlan-body .atlan-account-identity small{
  display:block;
  margin:0 0 3px;
  color:#8f7a3e;
  font-size:7.5px;
  font-weight:800;
  letter-spacing:.13em;
  text-transform:uppercase;
}
body.atlan-body .atlan-account-identity strong{
  display:block;
  overflow:hidden;
  color:#e2e7e3;
  font-family:Inter,Arial,sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:.015em;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* Give the authenticated action cluster enough room without making the bar taller. */
@media(min-width:1241px){
  /* Header grid is owned by wyo-language-v101.css; identity only sizes the account cluster. */
  body.atlan-body .atlan-account{min-width:292px}
}

/* Notebook widths: retain the username but remove the secondary label. */
@media(max-width:1240px) and (min-width:901px){
  body.atlan-body .atlan-account-profile{gap:7px;padding:4px 8px 4px 5px;min-height:40px}
  body.atlan-body .atlan-account-avatar{width:30px;height:30px}
  body.atlan-body .atlan-account-identity{max-width:78px}
  body.atlan-body .atlan-account-identity small{display:none}
  body.atlan-body .atlan-account-identity strong{font-size:10px}
}

/* Tablet: account link becomes a recognizable WYO avatar button. */
@media(max-width:900px){
  body.atlan-body .atlan-account-profile{min-width:38px;min-height:38px;padding:3px;justify-content:center}
  body.atlan-body .atlan-account-profile .atlan-account-identity{display:none}
  body.atlan-body .atlan-account-avatar{width:30px;height:30px}
}

/* Very small mobile headers already expose Minha Conta inside "Mais". */
@media(max-width:620px){
  body.atlan-body .atlan-account-profile{display:none}
}
