/**
 * RATING MODAL — стили.
 */

.rating-window {
  width: min(94vw, 440px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.rating-tabs {
  display: flex;
  border-bottom: 2px solid var(--outline);
  flex-shrink: 0;
}

.rating-tab {
  flex: 1;
  padding: 10px 6px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}

.rating-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(232, 184, 64, 0.06);
}

.rating-my {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(232, 184, 64, 0.12), rgba(232, 184, 64, 0.03));
  border-bottom: 1px solid var(--outline);
  flex-shrink: 0;
}

.rating-my-pos {
  font-size: 18px;
  color: var(--accent);
  min-width: 42px;
  text-align: center;
  text-shadow: 2px 2px 0 #000;
}

.rating-my-info { flex: 1; min-width: 0; }
.rating-my-label { font-size: 8px; letter-spacing: 1px; color: var(--text-dim); text-transform: uppercase; }
.rating-my-league { font-size: 10px; margin-top: 2px; }

.rating-my-value {
  font-size: 12px;
  color: var(--accent);
  text-shadow: 1px 1px 0 #000;
}

.rating-list {
  flex: 1;
  min-height: 120px;
  overflow-y: auto;
  padding: 4px 0;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.rating-row.me {
  background: rgba(232, 184, 64, 0.08);
  border-left: 3px solid var(--accent);
}

.rating-pos {
  width: 26px;
  text-align: right;
  font-size: 10px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.rating-row:nth-child(1) .rating-pos { color: #e8b840; }
.rating-row:nth-child(2) .rating-pos { color: #c0c8d8; }
.rating-row:nth-child(3) .rating-pos { color: #c08a50; }

.rating-name {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.rating-name-text {
  font-size: 10px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.rating-league { font-size: 7px; letter-spacing: 1px; text-transform: uppercase; }

.rating-value {
  font-size: 10px;
  color: var(--accent);
  flex-shrink: 0;
  text-shadow: 1px 1px 0 #000;
}

.rating-empty {
  padding: 28px 16px;
  text-align: center;
  font-size: 9px;
  line-height: 1.7;
  color: var(--text-dim);
}

.rating-sub { font-size: 7px; opacity: 0.7; }

.rating-footer {
  padding: 8px;
  border-top: 1px solid var(--outline);
  flex-shrink: 0;
}

.rating-refresh {
  width: 100%;
  padding: 9px;
  background: var(--bg-panel);
  border: 2px solid var(--outline);
  color: var(--text);
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 1px;
  cursor: pointer;
  text-transform: uppercase;
}

.rating-refresh:active { border-color: var(--accent); color: var(--accent); }
