/* NEMO_AVATAR_V32_20261124 - original banner restored, no secondary overlay. */
#nemo-profile-card { display: none !important; }
/* This is the OUTER native profile panel. The banner above the name is reused. */
.nemo-v31-card {
 --nemo-v31-accent:#ff669b;
 --nemo-v31-banner:linear-gradient(115deg,#653b69,#283352);
 position:relative !important;
 overflow:hidden !important;
 border:1px solid rgba(255,255,255,.14) !important;
 border-radius:18px !important;
 background:#171923 !important;
 box-shadow:0 14px 36px rgba(0,0,0,.22) !important;
 isolation:isolate;
}
.nemo-v31-original-banner {
 background-image:var(--nemo-v31-banner) !important;
 background-size:cover !important;
 background-position:center center !important;
 background-repeat:no-repeat !important;
 min-height:clamp(115px,12vw,145px) !important;
}
/* Keeping the real name / ranking row opaque makes it readable over any banner. */
.nemo-v31-info {
 position:relative !important;
 background-color:#171923 !important;
 background-image:none !important;
 color:#f4f3fa;
}
.nemo-v31-info .nemo-v3-avatar {
 display:block;
 object-fit:cover !important;
 object-position:center !important;
 border-radius:13px !important;
 min-width:50px;
 background:#232638;
 border:2px solid #333649;
 box-shadow:0 5px 20px rgba(0,0,0,.28);
}
/* Native ranking boxes and user name remain owned by bancho-web. */
.nemo-v31-card .nemo-v3-meta {
 box-sizing:border-box;
 position:relative;
 z-index:1;
 width:100%;
 grid-column:1/-1;
 flex-basis:100%;
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:12px;
 padding:13px 20px 15px;
 min-height:56px;
 background:#171923;
 border-top:1px solid rgba(255,255,255,.09);
}
.nemo-v3-copy { display:flex; flex-direction:column; min-width:0; flex:1; gap:6px; }
.nemo-v3-chips { display:flex; flex-wrap:wrap; gap:9px; align-items:center; }
.nemo-v3-title { font-size:14px; font-weight:800; color:var(--nemo-v31-accent); overflow-wrap:anywhere; }
.nemo-v3-badge { padding:5px 10px; border-radius:99px; border:1px solid rgba(255,192,220,.32); color:#ffe1ee; background:rgba(255,134,190,.12); font-weight:750; font-size:11px; }
.nemo-v3-desc { margin:0; font-size:13px; line-height:1.5; color:#d3d4e2; white-space:pre-wrap; overflow-wrap:anywhere; }
.nemo-v3-title[hidden], .nemo-v3-desc[hidden] { display:none !important; }
.nemo-v3-tools { flex-shrink:0; }
.nemo-v3-avatar-button { border:1px solid #575c79; background:#2b2d45; color:#f0ebf9; font-size:12px; padding:9px 12px; border-radius:10px; cursor:pointer; transition:background .15s; }
.nemo-v3-avatar-button:hover { background:#3b3e59; }
.nemo-v3-avatar-button[hidden] { display:none; }
/* v3 avatar editing UI is retained, with no backend changes. */
.nemo-v3-avatar-dialog { position:fixed; inset:0; z-index:2147483640; display:grid; place-items:center; padding:18px; background:rgba(5,6,14,.82); backdrop-filter:blur(5px); }
.nemo-v3-avatar-panel { box-sizing:border-box; display:flex; flex-direction:column; gap:12px; width:min(420px,100%); max-height:calc(100vh - 36px); overflow:auto; background:#1a1c2a; border:1px solid #43445e; box-shadow:0 25px 70px rgba(0,0,0,.6); border-radius:18px; padding:26px; color:#f1f1fa; }
.nemo-v3-avatar-panel h2 { margin:0; font-size:22px; line-height:1.3; }
.nemo-v3-avatar-panel p { margin:0; line-height:1.55; color:#c7c8d7; font-size:13px; }
.nemo-v3-preview { height:150px; width:150px; object-fit:cover; align-self:center; border-radius:18px; background:#292e46; border:1px solid #555b75; }
.nemo-v3-avatar-panel input[type=file] { width:100%; max-width:100%; font-size:12px; color:#e9e7f2; }
.nemo-v3-avatar-panel .nemo-v3-status { color:#ffb6c9; min-height:15px; }
.nemo-v3-actions { display:flex; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.nemo-v3-actions button { border-radius:9px; border:1px solid #555871; background:#292b42; color:white; font-size:13px; padding:10px 14px; cursor:pointer; }
.nemo-v3-actions button.nemo-v3-save { border:0; background:linear-gradient(115deg,#dc4a89,#9160d3); font-weight:750; }
.nemo-v3-actions button:disabled { opacity:.5; cursor:not-allowed; }
@media(max-width:720px) {
 .nemo-v31-original-banner { min-height:115px !important; }
 .nemo-v31-card .nemo-v3-meta { padding:12px 14px; align-items:flex-start; flex-wrap:wrap; gap:10px; }
 .nemo-v3-tools { width:100%; }
 .nemo-v3-avatar-button { width:100%; }
 .nemo-v3-title,.nemo-v3-desc { font-size:12px; }
}
@media(prefers-reduced-motion:reduce) { .nemo-v3-avatar-button { transition:none; } }

/* v3.2: draw the custom WEB avatar directly over the real avatar placeholder.
   Do not alter the country flag image in the native player name row. */
.nemo-v31-card > img.nemo-v32-avatar-overlay {
  position:absolute !important;
  display:block;
  z-index:8;
  pointer-events:none;
  box-sizing:border-box;
  object-fit:cover;
  object-position:center;
  border-radius:12px;
  border:2px solid #353747;
  background:#1b1e2b;
  box-shadow:0 6px 18px rgba(0,0,0,.45);
}
.nemo-v31-card > img.nemo-v32-avatar-overlay[hidden] {display:none !important;}
