/* In-game social: identity chip + profile sheet */

.midbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.45rem 0 0.55rem;
}
.midbar__chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.65rem 0.4rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 210, 74, 0.35);
  background: linear-gradient(135deg, rgba(255, 210, 74, 0.1), rgba(12, 10, 8, 0.92));
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
  max-width: 100%;
}
.midbar__chip:hover {
  border-color: rgba(255, 210, 74, 0.6);
  filter: brightness(1.06);
}
.midbar__av {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  background: #ffd24a;
  color: #1a1208;
  flex-shrink: 0;
}
.midbar__av[data-kind="anon"] {
  background: #444;
  color: #ccc;
}
.midbar__av[data-kind="sol"],
.midbar__av[data-kind="skr"],
.midbar__av[data-kind="ddd"] {
  background: #5eead4;
  color: #062018;
}
.midbar__meta {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
}
.midbar__kicker {
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.65;
}
.midbar__name {
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 12rem;
  font-family: "IBM Plex Mono", monospace;
}
.midbar__bag {
  margin-left: auto;
  font-weight: 700;
  font-size: 0.85rem;
  color: #ffd24a;
  font-family: "IBM Plex Mono", monospace;
}
.midbar__wallets {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: stretch;
}
.midbar__money,
.midbar__tix {
  display: grid;
  gap: 0.05rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.1;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.midbar__money {
  color: #2ee66a;
  background: linear-gradient(180deg, rgba(0, 80, 30, 0.55), rgba(0, 0, 0, 0.55));
  border-color: rgba(46, 230, 106, 0.45);
  text-shadow: 0 0 12px rgba(46, 230, 106, 0.35);
}
.midbar__tix {
  color: #ffd24a;
  background: linear-gradient(180deg, rgba(80, 60, 10, 0.55), rgba(0, 0, 0, 0.55));
  border-color: rgba(255, 210, 74, 0.45);
  text-shadow: 0 0 12px rgba(255, 210, 74, 0.3);
}
.midbar__money small,
.midbar__tix small {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  opacity: 0.85;
}

/* Profile modal */
.mprofile {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  padding: 0;
}
.mprofile[hidden] {
  display: none !important;
}
.mprofile__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  border: 0;
  cursor: pointer;
}
.mprofile__card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: min(88dvh, 640px);
  overflow: auto;
  margin: 0;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 16px 16px 0 0;
  border: 1px solid rgba(255, 210, 74, 0.35);
  border-bottom: 0;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255, 210, 74, 0.12), transparent 55%),
    #12100e;
  color: #f5ecd8;
  font-family: "Space Grotesk", system-ui, sans-serif;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.55);
  animation: mprofile-up 0.22s ease;
}
@keyframes mprofile-up {
  from { transform: translateY(24px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}
.mprofile__head {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}
.mprofile__avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.25rem;
  background: #ffd24a;
  color: #1a1208;
  flex-shrink: 0;
}
.mprofile__avatar[data-kind="anon"] { background: #555; color: #ddd; }
.mprofile__avatar[data-kind="sol"],
.mprofile__avatar[data-kind="skr"],
.mprofile__avatar[data-kind="ddd"] { background: #5eead4; color: #062018; }
.mprofile__titles { flex: 1; min-width: 0; }
.mprofile__kicker {
  margin: 0;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  font-family: "IBM Plex Mono", monospace;
}
.mprofile__name {
  margin: 0.15rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.15;
  word-break: break-word;
}
.mprofile__addr {
  margin: 0.25rem 0 0;
  font-size: 0.68rem;
  opacity: 0.7;
  font-family: "IBM Plex Mono", monospace;
  word-break: break-all;
}
.mprofile__x {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.7;
  padding: 0.2rem 0.35rem;
}
.mprofile__x:hover { opacity: 1; }
.mprofile__bio {
  margin: 0.75rem 0 0.55rem;
  font-size: 0.88rem;
  line-height: 1.4;
  opacity: 0.92;
}
.mprofile__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}
.mprofile__stat {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  padding: 0.4rem 0.3rem;
  text-align: center;
}
.mprofile__stat span {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.65;
}
.mprofile__stat strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  font-family: "IBM Plex Mono", monospace;
}
.mprofile__social {
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 0.55rem;
}
.mprofile__social p { margin: 0 0 0.25rem; }
.mprofile__note {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  opacity: 0.75;
  line-height: 1.35;
}
.mprofile__claim {
  margin: 0.5rem 0;
  padding: 0.55rem;
  border-radius: 10px;
  border: 1px dashed rgba(255, 210, 74, 0.35);
  background: rgba(255, 210, 74, 0.06);
}
.mprofile__label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.75rem;
  margin-bottom: 0.4rem;
}
.mprofile__input {
  min-height: 40px;
  padding: 0 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #000;
  color: inherit;
  font: inherit;
  font-size: 0.9rem;
}
.mprofile__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.mprofile__link {
  color: #9cf;
  font-size: 0.8rem;
}
.mprofile__btn {
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.4);
  color: inherit;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
}
.mprofile__btn.primary {
  background: #ffd24a;
  color: #1a1208;
  border-color: #ffd24a;
  width: 100%;
  margin-top: 0.25rem;
}

body.wetdrool-arena .midbar__chip {
  border-color: rgba(255, 126, 182, 0.4);
  background: linear-gradient(135deg, rgba(255, 126, 182, 0.12), rgba(14, 6, 10, 0.92));
}
body.wetdrool-arena .mprofile__card {
  border-color: rgba(255, 126, 182, 0.4);
}
body.wetdrool-arena .mprofile__btn.primary {
  background: #ff7eb6;
  border-color: #ff7eb6;
  color: #1a0810;
}
body.wetdrool-arena .midbar__tix {
  color: #ff9ec8;
  border-color: rgba(255, 126, 182, 0.45);
}

body.mprofile-open {
  overflow: hidden;
}

@media (min-width: 640px) {
  .mprofile {
    place-items: center;
    padding: 1rem;
  }
  .mprofile__card {
    border-radius: 16px;
    border-bottom: 1px solid rgba(255, 210, 74, 0.35);
  }
}
