/* AnomicFlip — player card popup (click a name in chat) */
.uc-overlay, .uc-overlay * { box-sizing: border-box; }
.uc-overlay {
  position: fixed; inset: 0; z-index: 1000; padding: 16px;
  display: none; align-items: center; justify-content: center;
  background: rgba(8, 10, 12, .65); backdrop-filter: blur(3px);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif; color: #fff;
}
.uc-overlay.open { display: flex; animation: uc-in .18s ease-out; }
@keyframes uc-in { from { opacity: 0; } to { opacity: 1; } }

.uc {
  position: relative; width: 100%; max-width: 600px; max-height: calc(100vh - 32px); overflow-y: auto;
  padding: 30px; background: #1a1d20; border: 1px solid #2a2e33; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.uc-close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border: 0; border-radius: 8px; background: none; color: #a7abb2; cursor: pointer; display: grid; place-items: center; }
.uc-close:hover { background: #24272c; color: #fff; }

.uc-head { display: flex; align-items: center; gap: 18px; padding-right: 44px; }
.uc-av {
  flex: none; width: 76px; height: 76px; border-radius: 10px; background: #2c3036 center / cover no-repeat;
  display: grid; place-items: center; font-size: 30px; font-weight: 800; color: #3fd68f;
}
.uc-who { min-width: 0; }
.uc-name { display: block; font-size: 24px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--rc, #fff); }
.uc-user { display: block; margin-top: 2px; font-size: 15px; color: #8b8f97; }
.uc-since { display: block; margin-top: 6px; font-size: 15px; color: #9a9ea6; }

.uc-ranks { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; }
.uc-badge { padding: 8px 12px; border-radius: 6px; font-size: 15px; font-weight: 800; color: var(--rc); background: color-mix(in srgb, var(--rc) 14%, #24272c); }
.uc-pct { display: flex; justify-content: space-between; margin-top: 14px; font-size: 15px; color: #a7abb2; font-variant-numeric: tabular-nums; }
.uc-bar { height: 9px; margin-top: 10px; border-radius: 99px; background: #24272c; overflow: hidden; }
.uc-bar i { display: block; height: 100%; border-radius: inherit; background: var(--rc); transition: width .5s ease; }

.uc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.uc-stat { padding: 20px 16px; border-radius: 10px; background: #202328; text-align: center; }
.uc-stat span { display: block; font-size: 14px; letter-spacing: .8px; text-transform: uppercase; color: #8b8f97; }
.uc-stat b { display: block; margin-top: 8px; font-size: 26px; font-weight: 800; color: #3fd68f; font-variant-numeric: tabular-nums; }

.uc-hidden {
  display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 18px 20px; border-radius: 10px;
  background: #202328; color: #9a9ea6; font-size: 15px; line-height: 1.45;
}
.uc-hidden svg { flex: none; color: #6b7078; }
.uc-hidden b { color: #e6e8eb; display: block; font-size: 16px; }
.uc-mine { margin-top: 10px; font-size: 14px; color: #f5c84a; text-align: center; }

.uc-divider { height: 1px; background: #2a2e33; margin: 24px 0 20px; }
.uc-tip-h { margin: 0 0 14px; font-size: 18px; font-weight: 800; }
.uc-tip { display: flex; gap: 10px; }
.uc-tip input {
  flex: 1; min-width: 0; height: 58px; padding: 0 16px; border-radius: 8px; border: 1px solid #2e3238; background: #202328;
  color: #fff; font: 500 17px 'Archivo', system-ui, sans-serif; outline: none;
}
.uc-tip input:focus { border-color: #3fd68f; }
.uc-tip input::placeholder { color: #7d8189; }
.uc-tip button {
  flex: none; height: 58px; padding: 0 22px; border: 0; border-radius: 8px; background: #3fbf7f; color: #0d1f16;
  font: 800 17px 'Archivo', system-ui, sans-serif; cursor: pointer;
}
.uc-tip button:hover { background: #46cc8a; }
.uc-hint { margin-top: 10px; font-size: 14px; color: #7d8189; }
.uc-msg { margin-top: 10px; font-size: 14px; }
.uc-msg:empty { display: none; }
.uc-msg.err { color: #ff8b97; } .uc-msg.ok { color: #f5c84a; }

.uc-load { display: grid; place-items: center; min-height: 220px; }
.uc-load i { width: 32px; height: 32px; border-radius: 50%; border: 3px solid #3a3f46; border-right-color: transparent; animation: uc-r .8s linear infinite; }
@keyframes uc-r { to { transform: rotate(360deg); } }

/* rank colors (same as chat) */
.uc .r-bronze { --rc: #d9883f; } .uc .r-silver { --rc: #c9ccd1; } .uc .r-gold { --rc: #f5c84a; }
.uc .r-platinum { --rc: #6fd3e0; } .uc .r-diamond { --rc: #5b8cff; } .uc .r-default { --rc: #a7abb2; }

.uc-close:focus-visible, .uc-tip button:focus-visible { outline: 2px solid #3fd68f; outline-offset: 2px; }

/* clickable names / avatars in chat */
button.msg-name, button.msg-av { border: 0; padding: 0; background: none; font: inherit; cursor: pointer; text-align: left; }
button.msg-av { background: #3a3f46 center / cover no-repeat; }
button.msg-name:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .uc { padding: 22px 18px; }
  .uc-av { width: 60px; height: 60px; }
  .uc-name { font-size: 20px; }
  .uc-stat b { font-size: 22px; }
  .uc-tip { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .uc-overlay.open { animation: none; } .uc-bar i { transition: none; } }

/* ranks (up to 3) */
.r-owner { --rc: #ff5c6c; } .r-support { --rc: #a78bfa; } .r-withdrawer { --rc: #38bdf8; } .r-depositor { --rc: #3fd68f; }
.uc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.uc-tags .uc-badge { text-transform: uppercase; letter-spacing: .6px; font-size: 13px; }

/* staff tools */
.us { display: grid; gap: 14px; }
.us-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.us-h b { font-size: 18px; }
.us-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.us-chip { padding: 4px 9px; border-radius: 6px; background: #24272c; color: #c9ccd1; font-size: 12.5px; font-weight: 700; }
.us-chip.red { background: rgba(255,92,108,.15); color: #ff8b97; }
.us-chip.yel { background: rgba(245,200,74,.14); color: #f5c84a; }
.us-sec { padding: 14px; border-radius: 10px; background: #202328; display: grid; gap: 10px; }
.us-sec h4 { margin: 0; font-size: 14px; letter-spacing: .6px; text-transform: uppercase; color: #a7abb2; display: flex; gap: 8px; align-items: baseline; }
.us-sec h4 small { text-transform: none; letter-spacing: 0; font-weight: 500; color: #6f747c; font-size: 13px; }
.us-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.us-lbl { flex: 1; min-width: 120px; color: #c9ccd1; font-size: 15px; }
.us-in, .us-line input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid #30343b; border-radius: 8px; background: #16181b; color: #fff; font: 500 15px 'Archivo', system-ui, sans-serif; outline: none; }
.us-in:focus, .us-line input:focus { border-color: #3fd68f; }
select.us-in { flex: 0 1 150px; cursor: pointer; }
.us-sec > .us-in { width: 100%; }
.us-btn { flex: none; height: 40px; padding: 0 14px; border: 0; border-radius: 8px; background: #33373e; color: #fff; cursor: pointer; font: 800 14px 'Archivo', system-ui, sans-serif; }
.us-btn:hover:not(:disabled) { filter: brightness(1.15); }
.us-btn:disabled { opacity: .5; cursor: default; }
.us-btn.grn { background: #3fd68f; color: #0d1f16; }
.us-btn.red { background: #ff5c6c; color: #2a0d11; }
.us-btn.yel { background: #f5c84a; color: #2a210a; }
.us-btn.org { background: #ff9f43; color: #2a1708; }
.us-roles { display: flex; gap: 8px; flex-wrap: wrap; }
.us-role { padding: 9px 14px; border-radius: 8px; border: 1px dashed color-mix(in srgb, var(--rc) 55%, transparent); background: none; color: var(--rc); cursor: pointer; font: 800 14px 'Archivo', system-ui, sans-serif; }
.us-role.on { border-style: solid; background: color-mix(in srgb, var(--rc) 16%, transparent); }
.us-tog { position: relative; width: 46px; height: 26px; border: 0; border-radius: 99px; background: #33373e; cursor: pointer; }
.us-tog i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; }
.us-tog.on { background: #3fd68f; }
.us-tog.on i { left: 23px; }
.us-note-line { font-size: 14px; color: #a7abb2; }
.us-notes { display: grid; gap: 6px; max-height: 220px; overflow-y: auto; }
.us-n { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; background: #16181b; }
.us-n > div { flex: 1; min-width: 0; display: grid; gap: 3px; }
.us-n span { font-size: 14.5px; color: #e9ebee; overflow-wrap: anywhere; }
.us-n.auto span { color: #a7abb2; }
.us-n small { font-size: 12.5px; color: #6f747c; }
.us-n button { border: 0; background: none; color: #8b8f97; cursor: pointer; font-size: 20px; line-height: 1; }
.us-n button:hover { color: #ff5c6c; }
.us-none, .us-load { color: #6f747c; font-size: 14px; }
.us-msg { font-size: 14px; min-height: 0; }
.us-msg:empty { display: none; }
.us-msg.ok { color: #3fd68f; } .us-msg.err { color: #ff8b97; }
