/* Profile window, look «B» (assets/olone-profile-b.js). Only active while .olx-pb-on is on the sheet. */
#profileViewerModal[class] .profile-modal.modal--profile-viewer.olx-pb-on {
  width: min(660px, calc(100vw - 32px)) !important;
  min-width: 0 !important;
  max-width: min(660px, calc(100vw - 32px)) !important;
  height: auto !important;
  max-height: min(860px, 92vh) !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  display: block !important;
}
#profileViewerModal .profile-modal.olx-pb-on .profile-modal__body,
#profileViewerModal .profile-modal.olx-pb-on .profile-view-controls,
#profileViewerModal .profile-modal.olx-pb-on .profile-modal__highlight,
#profileViewerModal .profile-modal.olx-pb-on .profile-modal__title,
#profileViewerModal .profile-modal.olx-pb-on > :not(.olx-pb):not(.profile-modal__header) {
  display: none !important;
}
.profile-modal.olx-pb-on > .profile-modal__header {
  position: absolute !important;
  inset: 10px 10px auto auto !important;
  z-index: 5;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
}
.profile-modal.olx-pb-on .profile-modal__close-btn {
  background: rgba(6, 10, 24, 0.55) !important;
  backdrop-filter: blur(8px);
  border-radius: 50% !important;
}
.olx-pb[hidden] {
  display: none !important;
}
.olx-pb {
  --pb-line: rgba(148, 163, 184, 0.16);
  --pb-tile: rgba(255, 255, 255, 0.045);
  --pb-text: #eef2ff;
  --pb-muted: #94a3c4;
  color: var(--pb-text);
  padding-bottom: 20px;
}
.olx-pb__cover {
  height: 150px;
  background: linear-gradient(135deg, #1e3a8a, #4c1d95 60%, #0f172a);
  background-size: cover;
  background-position: center;
  border-radius: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  position: relative;
}
.olx-pb__cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
  background: linear-gradient(to bottom, transparent, rgba(8, 12, 28, 0.55));
  pointer-events: none;
}
.olx-pb__head {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 0 22px;
  margin-top: -46px;
  position: relative;
  z-index: 2;
}
.olx-pb__avatar {
  flex: 0 0 auto;
  width: 104px;
  height: 104px;
  position: relative;
}
/* The old avatar block keeps its loading logic; here it only gets the size of the new header. */
.olx-pb__avatar .profile-modal__avatar-wrap {
  position: relative !important;
  inset: auto !important;
  width: 104px !important;
  height: 104px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  display: block !important;
}
.olx-pb__avatar .profile-modal__avatar-glow {
  display: none !important;
}
.olx-pb__avatar .profile-modal__avatar-ring,
.olx-pb__avatar .profile-modal__avatar-inner,
.olx-pb__avatar .profile-nitro-avatar-btn,
.olx-pb__avatar .profile-modal__avatar-inner img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1;
  margin: 0 !important;
  padding: 0;
  border-radius: 50% !important;
  flex: none;
}
.olx-pb__avatar .profile-modal__avatar-ring {
  box-shadow: 0 0 0 5px #0d1328, 0 10px 30px rgba(0, 0, 0, 0.45) !important;
}
.olx-pb__avatar .profile-modal__avatar-inner img {
  object-fit: cover !important;
}
.olx-pb__who {
  flex: 1 1 auto;
  min-width: 0;
  padding-bottom: 8px;
}
.olx-pb__name {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.olx-pb__sub {
  margin-top: 3px;
  font-size: 13px;
  color: var(--pb-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 0;
}
.olx-pb__dot {
  margin: 0 6px;
  opacity: 0.6;
}
.olx-pb__prem {
  color: #fbbf24;
  font-weight: 600;
}
.olx-pb__actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  padding-bottom: 10px;
}
.olx-pb__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--pb-line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--pb-text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
}
.olx-pb__btn svg {
  width: 18px;
  height: 18px;
}
.olx-pb__btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.11);
}
.olx-pb__btn:active:not(:disabled) {
  transform: scale(0.97);
}
.olx-pb__btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.olx-pb__btn--main {
  background: #3b6ef5;
  border-color: #3b6ef5;
  color: #fff;
}
.olx-pb__btn--main:hover:not(:disabled) {
  background: #4b7cff;
}
.olx-pb__btn--icon {
  width: 38px;
  padding: 0;
}
.olx-pb__hint {
  font-size: 12px;
  color: var(--pb-muted);
  max-width: 180px;
}
.olx-pb__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 22px 0;
}
.olx-pb__stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 12px;
  background: var(--pb-tile);
  border: 1px solid var(--pb-line);
  font-size: 13px;
  color: var(--pb-muted);
}
.olx-pb__stat b {
  color: var(--pb-text);
  font-size: 15px;
  font-weight: 700;
}
.olx-pb__stat b.is-pos {
  color: #4ade80;
}
.olx-pb__stat b.is-neg {
  color: #f87171;
}
.olx-pb__stat small {
  font-size: 12px;
  opacity: 0.85;
}
.olx-pb__stat--rep {
  align-items: center;
}
.olx-pb__vote {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--pb-line);
  background: transparent;
  color: var(--pb-muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.olx-pb__vote svg {
  width: 14px;
  height: 14px;
}
.olx-pb__vote i {
  font-style: normal;
}
.olx-pb__vote:hover,
.olx-pb__vote.is-on {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(74, 222, 128, 0.08);
}
.olx-pb__vote--down:hover,
.olx-pb__vote--down.is-on {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.08);
}
.olx-pb__bio {
  padding: 14px 22px 0;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.olx-pb__bio[hidden] {
  display: none;
}
.olx-pb__tabs {
  display: flex;
  gap: 4px;
  margin: 16px 22px 0;
  border-bottom: 1px solid var(--pb-line);
}
.olx-pb__tab {
  position: relative;
  padding: 9px 12px 10px;
  border: 0;
  background: none;
  color: var(--pb-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.olx-pb__tab i {
  font-style: normal;
  font-size: 11px;
  padding: 1px 6px;
  margin-left: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.olx-pb__tab:hover {
  color: var(--pb-text);
}
.olx-pb__tab.is-on {
  color: var(--pb-text);
}
.olx-pb__tab.is-on::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: #5b8cff;
}
.olx-pb__panel {
  padding: 14px 22px 0;
  min-height: 120px;
}
.olx-pb__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.olx-pb__tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--pb-tile);
  border: 1px solid var(--pb-line);
  text-align: left;
  color: inherit;
  font: inherit;
  min-width: 0;
}
.olx-pb__tile > small,
.olx-pb__tile-head small,
.olx-pb__tile-txt small,
.olx-pb__label {
  font-size: 12px;
  color: var(--pb-muted);
  font-weight: 600;
}
.olx-pb__label {
  margin: 16px 0 8px;
}
.olx-pb__tile--wide {
  grid-column: 1 / -1;
}
.olx-pb__tile--channel {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.olx-pb__tile--channel:hover {
  background: rgba(255, 255, 255, 0.07);
}
.olx-pb__chan-pic,
.olx-pb__chat-pic {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(91, 140, 255, 0.18);
  background-size: cover;
  background-position: center;
}
.olx-pb__chan-pic img,
.olx-pb__chat-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.olx-pb__tile-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.olx-pb__tile-txt b {
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.olx-pb__tile-txt span {
  font-size: 12px;
  color: var(--pb-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.olx-pb__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.olx-pb__social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--pb-text);
  text-decoration: none;
  font-size: 13px;
}
.olx-pb__social span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.olx-pb__social svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}
.olx-pb__social:hover {
  background: rgba(255, 255, 255, 0.11);
}
.olx-pb__social--twitch svg { color: #a970ff; }
.olx-pb__social--discord svg { color: #7289ff; }
.olx-pb__social--youtube svg { color: #ff4e45; }
.olx-pb__social--telegram svg { color: #3fa9f5; }
.olx-pb__tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.olx-pb__more {
  border: 0;
  background: none;
  color: #8fb0ff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.olx-pb__ach-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.olx-pb__ach-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.olx-pb__ach {
  --ach: 148, 163, 184;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(var(--ach), 0.14), rgba(var(--ach), 0.04));
  border: 1px solid rgba(var(--ach), 0.32);
  min-width: 0;
}
.olx-pb__ach.is-small {
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  gap: 7px;
}
.olx-pb__ach--rare { --ach: 96, 165, 250; }
.olx-pb__ach--epic { --ach: 167, 139, 250; }
.olx-pb__ach--legendary { --ach: 251, 191, 36; }
.olx-pb__ach--mythic { --ach: 244, 114, 182; }
.olx-pb__ach-ic {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
}
.olx-pb__ach.is-small .olx-pb__ach-ic {
  width: 26px;
  height: 26px;
  font-size: 16px;
  border-radius: 50%;
}
.olx-pb__ach-ic.is-locked {
  filter: grayscale(1);
  opacity: 0.55;
}
.olx-pb__ach-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.olx-pb__ach-txt b {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.olx-pb__ach.is-small .olx-pb__ach-txt b {
  font-size: 13px;
}
.olx-pb__ach-txt small {
  font-size: 12px;
  color: var(--pb-muted);
}
.olx-pb__ach-txt em {
  font-style: normal;
  font-size: 11px;
  color: rgba(var(--ach), 0.95);
  margin-top: 2px;
}
.olx-pb__progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.olx-pb__prog {
  display: flex;
  align-items: center;
  gap: 10px;
}
.olx-pb__prog-txt {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.olx-pb__prog-txt b {
  font-size: 13px;
}
.olx-pb__prog-txt small {
  font-size: 12px;
  color: var(--pb-muted);
}
.olx-pb__bar {
  display: block;
  height: 5px;
  margin-top: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.olx-pb__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b6ef5, #8b5cf6);
}
.olx-pb__prog-num {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--pb-muted);
  font-variant-numeric: tabular-nums;
}
.olx-pb__chats {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.olx-pb__chatrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.olx-pb__chatrow:hover {
  background: var(--pb-tile);
}
.olx-pb__chatrow .olx-pb__chat-pic {
  width: 34px;
  height: 34px;
}
.olx-pb__empty {
  padding: 18px 4px;
  font-size: 13px;
  color: var(--pb-muted);
  line-height: 1.5;
}

@media (max-width: 920px) {
  #profileViewerModal[class] .profile-modal.modal--profile-viewer.olx-pb-on {
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
  }
  .olx-pb__cover {
    height: 120px;
  }
  .olx-pb__head {
    flex-wrap: wrap;
    padding: 0 16px;
    margin-top: -40px;
  }
  .olx-pb__avatar,
  .olx-pb__avatar .profile-modal__avatar-wrap,
  .olx-pb__avatar .profile-modal__avatar-ring {
    width: 88px !important;
    height: 88px !important;
  }
  .olx-pb__who {
    padding-bottom: 4px;
  }
  .olx-pb__actions {
    flex-basis: 100%;
    padding-bottom: 0;
  }
  .olx-pb__actions .olx-pb__btn--main {
    flex: 1 1 auto;
  }
  .olx-pb__stats,
  .olx-pb__bio,
  .olx-pb__panel {
    padding-left: 16px;
    padding-right: 16px;
  }
  .olx-pb__tabs {
    margin-left: 16px;
    margin-right: 16px;
  }
  .olx-pb__grid,
  .olx-pb__ach-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- Reputation ring + flame (the old profile's cards), facts ---- */
.olx-pb__stats {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 10px;
  padding: 16px 22px 0;
}
.olx-pb__stats[hidden] { display: none; }
.olx-pb__stats > .olx-pb__side:only-child { grid-column: 1 / -1; }
.olx-pb__ring, .olx-pb__side { min-width: 0; }
.olx-pb__ring > .profile-card, .olx-pb__side > .profile-card {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  box-sizing: border-box;
}
/* Both columns end on the same line: the ring card stretches to the height of the right column. */
.olx-pb__stats { align-items: stretch; }
.olx-pb__ring { display: flex; }
#profileViewerModal[class] .profile-modal .olx-pb__ring > .profile-card.profile-modal__rep-card {
  flex: 1;
  height: 100% !important;
  min-height: 160px !important;
  max-height: none !important;
  align-self: stretch !important;
}
.olx-pb__side { display: flex; flex-direction: column; gap: 10px; }
#profileViewerModal .olx-pb__side > .profile-card { flex: none; }
.olx-pb__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; flex: 1; align-items: stretch; }
.olx-pb__fact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--pb-tile);
  border: 1px solid var(--pb-line);
  color: inherit;
  font: inherit;
  text-align: left;
}
button.olx-pb__fact { cursor: pointer; }
button.olx-pb__fact:hover { background: rgba(255, 255, 255, 0.07); }
.olx-pb__fact small { font-size: 11px; color: var(--pb-muted); font-weight: 600; }
.olx-pb__fact b { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Medals ---- */
.olm { display: block; flex: none; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35)); }
.olm--legendary { filter: drop-shadow(0 0 10px rgba(255, 196, 61, 0.45)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35)); }
.olm--mythic { filter: drop-shadow(0 0 12px rgba(244, 114, 182, 0.5)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35)); }
.olm--epic { filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.35)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35)); }
.olm--locked { filter: grayscale(0.4) opacity(0.65); }
.olx-pb__medals { display: flex; flex-wrap: wrap; gap: 6px 4px; }
.olx-pb__medal {
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 2px 4px;
  border: 0;
  border-radius: 14px;
  background: none;
  color: var(--pb-text);
  font: inherit;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.olx-pb__medal:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.05); }
.olx-pb__medal span {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.olx-pb__ach { gap: 12px; padding: 12px 14px; }
.olx-pb__ach-txt b { font-size: 14.5px; }
.olx-pb__prog .olm { width: 44px; height: 44px; }

@media (max-width: 920px) {
  .olx-pb__stats { grid-template-columns: minmax(0, 1fr); padding-left: 16px; padding-right: 16px; }
  .olx-pb__medal { width: 76px; }
}

/* Generated 3D medals carry their own glow and some empty edge: no extra shadow, a touch larger. */
.olm--art { object-fit: contain; filter: none !important; transform: scale(1.12); }
.olm--art.olm--locked { filter: grayscale(0.85) brightness(0.7) !important; }

/* ---- Compact profile (owner, 2026-11-20): the whole window fits the screen height without a scroll bar.
   Lower cover, a smaller reputation ring, smaller medals and gifts, tighter gaps; nothing is removed. ---- */
#profileViewerModal[class] .profile-modal.modal--profile-viewer.olx-pb-on { max-height: min(900px, 94vh) !important; }
.profile-modal.olx-pb-on .olx-pb__cover { height: 104px; }
.profile-modal.olx-pb-on .olx-pb__stats { padding-top: 12px; gap: 8px; }
.profile-modal.olx-pb-on .olx-pb__side { gap: 8px; }
#profileViewerModal[class] .profile-modal .olx-pb__ring > .profile-card.profile-modal__rep-card {
  min-height: 0 !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}
#profileViewerModal[class] .profile-modal.olx-pb-on .profile-modal__reputation-ring {
  flex: 0 0 96px !important;
  width: 96px !important;
  height: 96px !important;
}
#profileViewerModal[class] .profile-modal.olx-pb-on .profile-modal__reputation-ring-svg { width: 96px !important; height: 96px !important; }
#profileViewerModal[class] .profile-modal.olx-pb-on .profile-modal__reputation-ring-value { font-size: 22px !important; }
#profileViewerModal[class] .profile-modal.olx-pb-on .profile-modal__reputation-ring-caption { font-size: 10px !important; }
.profile-modal.olx-pb-on .olx-pb__fact { padding: 8px 12px; }
.profile-modal.olx-pb-on .olx-pb__tile { padding: 10px 14px; gap: 4px; }
.profile-modal.olx-pb-on .olx-pb__medal { gap: 3px; padding: 2px 2px 2px; }
.profile-modal.olx-pb-on .olx-pb__medal .olm { width: 46px !important; height: 46px !important; }
.profile-modal.olx-pb-on .olx-sp-shelf .olx-sp-gift { padding: 8px 6px 6px; gap: 2px; }
.profile-modal.olx-pb-on .olx-sp-gift--small .olx-sp-gift__icon { font-size: 22px; }
.profile-modal.olx-pb-on .olx-sp-gift--small .olx-sp-gift__icon .olx-sp-gimg { width: 34px !important; height: 34px !important; }

/* Icon-only buttons next to the name (owner, 2026-11-20): the words are in the hint, the nickname keeps its line. */
.profile-modal.olx-pb-on .olx-pb__actions .olx-pb__btn--icon { width: 40px; height: 40px; padding: 0; }
.profile-modal.olx-pb-on .olx-pb__actions .olx-pb__btn--icon svg { width: 20px; height: 20px; }
.profile-modal.olx-pb-on .olx-pb__actions .olx-pb__btn--icon img { width: 22px; height: 22px; object-fit: contain; display: block; }
@media (max-width: 920px) {
  .profile-modal.olx-pb-on .olx-pb__actions { flex-basis: auto; padding-bottom: 4px; }
  .profile-modal.olx-pb-on .olx-pb__actions .olx-pb__btn--main { flex: 0 0 auto; }
}

/* Profile: with a frame, no extra dark ring around it — just the frame and a soft shadow underneath. */
.olx-pb__avatar .profile-modal__avatar-ring:has(.profile-nitro-avatar-btn[class*="frame-"]) { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important; }
