/* ============================================================
   Rating (Elo) UI — مصرف‌کنندهٔ design tokens موجود (newStyle.css)
   پیشوند کلاس‌ها: rt-  (rating)
   ============================================================ */

/* ---------- دکمه‌ها/ردیف‌های ورودی ---------- */
.rt-rank-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--pk-line-2);
  background: linear-gradient(
    135deg,
    rgba(200, 170, 110, 0.18),
    rgba(200, 170, 110, 0.06)
  );
  color: var(--pk-gold-1);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.rt-rank-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(200, 170, 110, 0.28),
    rgba(200, 170, 110, 0.1)
  );
  border-color: var(--pk-gold-2);
}
.rt-rank-btn:active {
  transform: scale(0.96);
}

.rt-profile-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px auto 0;
  width: 100%;
  max-width: 420px;
  direction: rtl;
}
.rt-profile-row__hint {
  font-size: 0.72rem;
  color: var(--pk-text);
  opacity: 0.8;
}
.rt-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--pk-line-2);
  background: linear-gradient(
    135deg,
    rgba(200, 170, 110, 0.2),
    rgba(200, 170, 110, 0.06)
  );
  color: var(--pk-gold-1);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.rt-profile-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(200, 170, 110, 0.3),
    rgba(200, 170, 110, 0.12)
  );
}
.rt-profile-btn:active {
  transform: scale(0.96);
}
.rt-profile-btn__icon {
  font-size: 1rem;
  color: var(--pk-gold-2);
  filter: drop-shadow(0 0 8px rgba(200, 170, 110, 0.5));
}
.rt-profile-btn .rt-rating__value {
  min-width: 42px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--pk-surface-3);
  border: 1px solid var(--pk-line);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

/* ---------- مودال امتیازها ---------- */
.rt-modal {
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.rt-modal__content {
  width: min(96%, 560px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 14px;
  direction: rtl;
  overflow: hidden;
}
.rt-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--pk-line-3);
}
.rt-modal__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--pk-gold-1);
}
.rt-modal__close {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--pk-line);
  background: var(--pk-surface-1);
  color: var(--pk-text-2);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}
.rt-modal__close:hover {
  background: var(--pk-surface-3);
  color: var(--pk-gold-1);
}
.rt-modal__close:active {
  transform: scale(0.94);
}

/* ---------- تب‌های بازی ---------- */
.rt-game-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex-shrink: 0;
  padding: 12px 2px 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--pk-gold-3) transparent;
}
.rt-game-tab {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
  min-width: 68px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid var(--pk-line);
  background: var(--pk-grad-panel);
  color: var(--pk-text);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.rt-game-tab__icon {
  font-size: 20px;
  line-height: 1;
}
.rt-game-tab:hover {
  border-color: rgba(10, 200, 185, 0.45);
  color: var(--pk-text-2);
}
.rt-game-tab:active {
  transform: scale(0.96);
}
.rt-game-tab.is-active {
  background: linear-gradient(
    160deg,
    rgba(10, 200, 185, 0.18),
    var(--pk-surface-2)
  );
  border-color: rgba(10, 200, 185, 0.6);
  color: var(--pk-gold-1);
  box-shadow: 0 10px 20px -16px rgba(10, 200, 185, 0.9);
}

/* ---------- بدنه و بخش‌های مودال ---------- */
.rt-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 2px 2px 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--pk-gold-3) transparent;
}
.rt-section {
  border: 1px solid var(--pk-line-3);
  border-radius: 16px;
  background: var(--pk-grad-panel);
  padding: 12px;
}
.rt-section--board {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.rt-section__title {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--pk-gold-1);
}

/* ---------- کارت «امتیاز من» ---------- */
.rt-my__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.rt-my__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.rt-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--pk-surface-3);
  border: 1px solid var(--pk-line-3);
  font-size: 0.75rem;
  color: var(--pk-text-2);
  white-space: nowrap;
}
.rt-my__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.rt-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: 12px;
  background: var(--pk-surface-2);
  border: 1px solid var(--pk-line-3);
}
.rt-stat__value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--pk-gold-1);
  font-variant-numeric: tabular-nums;
}
.rt-stat__label {
  font-size: 0.68rem;
  color: var(--pk-text);
}
.rt-stat--win .rt-stat__value {
  color: var(--pk-ok-2);
}
.rt-stat--loss .rt-stat__value {
  color: var(--pk-danger);
}
.rt-stat--draw .rt-stat__value {
  color: var(--pk-gold-2);
}
.rt-my__muted {
  margin: 10px 0 0;
  font-size: 0.75rem;
  color: var(--pk-text);
  opacity: 0.85;
  line-height: 1.6;
}

/* ---------- عدد امتیاز ---------- */
.rt-rating {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--pk-gold-1);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.rt-rating--none {
  color: var(--pk-text);
  opacity: 0.7;
}
.rt-rating--aqua {
  color: var(--pk-aqua);
  text-shadow: 0 0 18px rgba(10, 200, 185, 0.45);
}
.rt-rating--gold {
  color: var(--pk-gold-2);
  text-shadow: 0 0 18px rgba(200, 170, 110, 0.5);
}
.rt-rating--elite {
  color: #f5d67b;
  text-shadow:
    0 0 14px rgba(245, 214, 123, 0.7),
    0 0 28px rgba(200, 170, 110, 0.4);
}

/* ---------- جدول رده‌بندی ---------- */
.rt-my-rank {
  margin: 0 0 8px;
  font-size: 0.75rem;
  color: var(--pk-gold-2);
  min-height: 1em;
}
.rt-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rt-row {
  display: grid;
  grid-template-columns: 34px 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--pk-surface-2);
  cursor: pointer;
  outline: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.rt-row:hover,
.rt-row:focus-visible {
  background: var(--pk-grad-panel-hover);
  border-color: rgba(10, 200, 185, 0.4);
}
.rt-row:active {
  transform: scale(0.99);
}
.rt-row.is-me {
  border-color: var(--pk-line-2);
  background: linear-gradient(
    160deg,
    rgba(200, 170, 110, 0.16),
    var(--pk-surface-2)
  );
}
.rt-row__pos {
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--pk-gold-2);
  font-variant-numeric: tabular-nums;
}
.rt-row__who {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  position: relative;
}
.rt-row__avatar {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--pk-surface-3);
  border: 1px solid var(--pk-line);
}
.rt-row__avatar--letter {
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--pk-gold-1);
}
.rt-row__frame {
  position: absolute;
  right: -3px;
  top: -3px;
  width: 36px;
  height: 36px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}
.rt-row__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pk-text-2);
}
.rt-row__rating {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--pk-gold-1);
  font-variant-numeric: tabular-nums;
}
.rt-row__wl {
  display: flex;
  gap: 6px;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}
.rt-row__w {
  color: var(--pk-ok-2);
}
.rt-row__l {
  color: var(--pk-danger);
}
.rt-empty {
  padding: 18px 8px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--pk-text);
  opacity: 0.85;
}

/* ---------- کارت پروفایل امتیازی بازیکن ---------- */
.rt-card {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--pk-line);
  background: var(--pk-grad-panel-lit);
  direction: rtl;
}
.rt-card--inline {
  margin: 6px 0 2px;
}
.rt-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--pk-text);
}
.rt-card__game {
  color: var(--pk-text-2);
  font-weight: 700;
}
.rt-card__rank {
  color: var(--pk-gold-2);
  font-variant-numeric: tabular-nums;
}
.rt-card__rating {
  margin: 6px 0;
  font-size: 1.6rem;
}
.rt-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--pk-text);
}
.rt-card__stats span {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--pk-surface-3);
  border: 1px solid var(--pk-line-3);
}
.rt-card__empty,
.rt-card__error {
  margin: 6px 0 0;
  font-size: 0.72rem;
  color: var(--pk-text);
  opacity: 0.85;
}
.rt-card__error {
  color: var(--pk-danger);
  opacity: 1;
}

/* ---------- صفحه‌بندی ---------- */
.rt-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  flex-shrink: 0;
}
.rt-pager .btn {
  min-width: 74px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--pk-line-2);
  background: var(--pk-surface-1);
  color: var(--pk-gold-1);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.15s ease,
    opacity 0.15s ease;
}
.rt-pager .btn:hover:not(:disabled) {
  background: var(--pk-surface-3);
}
.rt-pager .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.rt-pager__info {
  font-size: 0.7rem;
  color: var(--pk-text);
  font-variant-numeric: tabular-nums;
}

/* ---------- پیام خطا و اسکلت بارگذاری ---------- */
.rt-error {
  display: none;
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 0.73rem;
  line-height: 1.5;
  color: var(--pk-danger);
  background: rgba(224, 128, 128, 0.12);
  border: 1px solid rgba(224, 128, 128, 0.4);
}
.rt-error--visible {
  display: block;
}
.rt-skeleton {
  height: 46px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    var(--pk-surface-2) 0%,
    var(--pk-surface-hover-1) 50%,
    var(--pk-surface-2) 100%
  );
  background-size: 200% 100%;
  animation: rt-shimmer 1.2s linear infinite;
}
.rt-skeleton--short {
  height: 22px;
  width: 60%;
}
@keyframes rt-shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rt-skeleton {
    animation: none;
  }
  .rt-row,
  .rt-game-tab,
  .rt-rank-btn,
  .rt-profile-btn,
  .rt-prof__row {
    transition: none;
  }
}

/* ---------- آیکون‌های تصویری بازی (images/icons) ---------- */
.rt-game-tab .pk-game-icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: transparent;
  box-shadow: none;
  object-fit: cover;
}
.rt-game-tab.is-active .pk-game-icon {
  box-shadow: 0 0 0 1px rgba(10, 200, 185, 0.45), 0 6px 14px -8px rgba(10, 200, 185, 0.9);
}
.rt-prof__icon .pk-game-icon,
img.pk-game-icon.rt-prof__icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: transparent;
  box-shadow: none;
  filter: none;
  object-fit: cover;
}
.rt-card__game .pk-game-icon,
.rt-chip .pk-game-icon {
  width: 1rem;
  height: 1rem;
  border-radius: 5px;
  display: inline-block;
  vertical-align: -2px;
  background: transparent;
  box-shadow: none;
  object-fit: cover;
}
.rt-prof__game .pk-game-icon {
  margin-inline-end: 4px;
}
.rt-my__game {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

/* ---------- موبایل (مودال) ---------- */
@media (max-width: 420px) {
  .rt-modal__content {
    width: 100%;
    max-height: 94vh;
    padding: 12px;
  }
  .rt-row {
    grid-template-columns: 28px 1fr auto;
  }
  .rt-row__wl {
    display: none;
  }
  .rt-my__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rt-rating {
    font-size: 1.7rem;
  }
}

/* ============================================================
   باکس «رده‌بندی امتیازی من» در صفحهٔ پروفایل
   ============================================================ */

/* صفحهٔ پروفایل محتوای absolute دارد؛ برای رسیدن به باکس، اسکرول فعال
   می‌شود و فضای امن زیر نوار پایین حفظ می‌شود. */
#ui_MainMenus_UserUI {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--pk-gold-3) transparent;
  padding-bottom: calc(var(--nav-height, 68px) + 24px);
}

#ui_MainMenus_UserUI_RatingBox {
  position: relative;
  margin-top: 356px;
  padding: 0 14px 18px;
  direction: rtl;
}

.rt-prof {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 12px 10px;
  border-radius: 18px;
  border: 1px solid var(--pk-line);
  background:
    radial-gradient(
      120% 90% at 0% 0%,
      rgba(10, 200, 185, 0.12),
      transparent 60%
    ),
    radial-gradient(
      120% 90% at 100% 100%,
      rgba(200, 170, 110, 0.14),
      transparent 62%
    ),
    var(--pk-grad-panel);
  box-shadow:
    0 16px 32px -26px rgba(0, 0, 0, 1),
    inset 0 1px 0 rgba(240, 230, 210, 0.06);
}

.rt-prof__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 9px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--pk-line-3);
}
.rt-prof__title {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--pk-gold-1);
  white-space: nowrap;
}
.rt-prof__pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.rt-prof__pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  color: var(--pk-text);
  background: var(--pk-surface-3);
  border: 1px solid var(--pk-line-3);
  white-space: nowrap;
}
.rt-prof__pill b {
  color: var(--pk-gold-1);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.rt-prof__pill-game {
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(200, 170, 110, 0.14);
  color: var(--pk-gold-2);
  font-weight: 700;
}

.rt-prof__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rt-prof__row {
  display: grid;
  grid-template-columns: 34px 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 13px;
  background: var(--pk-surface-2);
  border: 1px solid var(--pk-line-3);
  cursor: pointer;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.rt-prof__row:hover {
  border-color: rgba(10, 200, 185, 0.45);
  background: var(--pk-grad-panel-hover);
}
.rt-prof__row:active {
  transform: scale(0.99);
}

/* نشان رتبه */
.rt-prof__medal {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 26px;
  padding: 0 4px;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--pk-gold-2);
  background: rgba(200, 170, 110, 0.1);
  border: 1px solid rgba(200, 170, 110, 0.22);
  font-variant-numeric: tabular-nums;
}
.rt-prof__row--first {
  border-color: rgba(245, 214, 123, 0.5);
  background: linear-gradient(
    160deg,
    rgba(245, 214, 123, 0.14),
    var(--pk-surface-2)
  );
}
.rt-prof__row--first .rt-prof__medal {
  background: linear-gradient(
    135deg,
    rgba(245, 214, 123, 0.35),
    rgba(200, 170, 110, 0.12)
  );
  border-color: rgba(245, 214, 123, 0.65);
  box-shadow: 0 0 14px -4px rgba(245, 214, 123, 0.85);
}
.rt-prof__row--podium:not(.rt-prof__row--first) {
  border-color: rgba(200, 170, 110, 0.4);
}
.rt-prof__row--none .rt-prof__medal {
  color: var(--pk-text);
  background: var(--pk-surface-3);
  border-color: var(--pk-line-3);
}

.rt-prof__game {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 7px;
  min-width: 0;
}
.rt-prof__icon {
  grid-row: span 2;
  font-size: 1.15rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(10, 200, 185, 0.25));
}
.rt-prof__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pk-text-2);
}
.rt-prof__sub {
  font-size: 0.66rem;
  color: var(--pk-text);
  opacity: 0.9;
}

.rt-prof__rating {
  font-size: 1rem;
  letter-spacing: 0;
}

.rt-prof__games {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--pk-text-2);
  background: var(--pk-surface-3);
  border: 1px solid var(--pk-line-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rt-prof__more,
.rt-prof__all {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 11px;
  border: 1px dashed var(--pk-line-2);
  background: transparent;
  color: var(--pk-gold-2);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.rt-prof__more:hover {
  background: rgba(200, 170, 110, 0.1);
  color: var(--pk-gold-1);
}
.rt-prof__all {
  margin-top: 6px;
  border-style: solid;
  border-color: rgba(10, 200, 185, 0.4);
  background: rgba(10, 200, 185, 0.1);
  color: var(--pk-aqua);
}
.rt-prof__all:hover {
  background: rgba(10, 200, 185, 0.18);
  color: var(--pk-gold-1);
}
.rt-prof__more:active,
.rt-prof__all:active {
  transform: scale(0.99);
}

.rt-prof__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 8px 10px;
  text-align: center;
}
.rt-prof__empty-icon {
  font-size: 1.6rem;
  color: var(--pk-gold-2);
  opacity: 0.75;
}
.rt-prof__empty p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--pk-text-2);
}
.rt-prof__empty small {
  font-size: 0.7rem;
  color: var(--pk-text);
  opacity: 0.85;
}
.rt-prof__muted {
  margin: 8px 0 0;
  font-size: 0.66rem;
  color: var(--pk-text);
  opacity: 0.8;
  text-align: center;
}

/* موبایل: فشرده‌تر */
@media (max-width: 420px) {
  #ui_MainMenus_UserUI_RatingBox {
    margin-top: 344px;
    padding: 0 10px 16px;
  }
  .rt-prof__row {
    grid-template-columns: 30px 1fr auto;
    gap: 6px;
  }
  .rt-prof__games {
    display: none;
  }
  .rt-prof__rating {
    font-size: 0.92rem;
  }
}
