.ht-rk-page {
  max-width: 1340px;
  margin: 0 auto;
  padding: 28px 22px 56px;
}

.ht-rk-hero {
  padding: 22px 24px;
  border: 1px solid rgba(0, 255, 65, 0.12);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(0, 255, 65, 0.05), rgba(0, 255, 65, 0.02)),
    rgba(7, 14, 7, 0.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02), 0 18px 42px rgba(0,0,0,0.22);
}

.ht-rk-hero-shell {
  color: var(--ht-tx4);
  font-size: 11px;
  letter-spacing: .12em;
  margin-bottom: 8px;
}

.ht-rk-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  color: var(--ht-tx1);
  font-family: "Share Tech Mono", "JetBrains Mono", monospace;
}

.ht-rk-title span {
  color: var(--ht-amber);
}

.ht-rk-subtitle {
  margin: 10px 0 0;
  color: var(--ht-tx3);
  font-size: 13px;
  line-height: 1.6;
}

.ht-rk-summary {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ht-rk-summary-card,
.ht-rk-list-card,
.ht-rk-profile-card,
.ht-rk-panel-card,
.ht-rk-badge-card,
.ht-rk-econ-card {
  border: 1px solid rgba(0, 255, 65, 0.12);
  border-radius: 12px;
  background: rgba(8, 18, 8, 0.88);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.ht-rk-summary-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.ht-rk-summary-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ht-amber);
  background: rgba(255, 170, 0, 0.08);
  border: 1px solid rgba(255, 170, 0, 0.16);
  flex-shrink: 0;
}

.ht-rk-summary-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ht-rk-summary-body {
  min-width: 0;
}

.ht-rk-summary-label {
  display: block;
  color: var(--ht-tx4);
  font-size: 10px;
  letter-spacing: .14em;
  margin-bottom: 8px;
}

.ht-rk-summary-card strong {
  color: var(--ht-tx1);
  font-size: 24px;
  font-family: "Share Tech Mono", "JetBrains Mono", monospace;
}

.ht-rk-tabs {
  display: flex;
  gap: 10px;
  margin: 22px 0 18px;
}

.ht-rk-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  appearance: none;
  border: 1px solid rgba(107, 143, 107, 0.24);
  background: rgba(10, 20, 10, 0.92);
  color: var(--ht-tx3);
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: .1em;
  transition: .2s ease;
}

.ht-rk-tab-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ht-rk-tab-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ht-rk-tab:hover,
.ht-rk-tab.is-active {
  color: var(--ht-amber);
  border-color: rgba(255, 170, 0, 0.34);
  background: rgba(255, 170, 0, 0.08);
}

.ht-rk-pane {
  display: none;
}

.ht-rk-pane.is-active {
  display: block;
}

.ht-rk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, .9fr);
  gap: 18px;
}

.ht-rk-main,
.ht-rk-side {
  min-width: 0;
}

.ht-rk-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ht-rk-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
}

.ht-rk-podium-card {
  text-decoration: none;
  color: inherit;
  min-height: 212px;
  padding: 18px 16px;
  border: 1px solid color-mix(in srgb, var(--tier-color) 26%, rgba(255,255,255,0.06));
  border-radius: 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tier-color) 10%, transparent), rgba(9, 18, 9, 0.92));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ht-rk-podium-card.is-rank-1 {
  min-height: 228px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02), 0 20px 36px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 170, 0, 0.08);
}

.ht-rk-podium-card.is-rank-2 {
  min-height: 198px;
}

.ht-rk-podium-card.is-rank-3 {
  min-height: 188px;
}

.ht-rk-podium-card:hover,
.ht-rk-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.22);
}

.ht-rk-podium-rank,
.ht-rk-podium-score,
.ht-rk-row-rank-no,
.ht-rk-row-score-num,
.ht-rk-profile-score {
  font-family: "Share Tech Mono", "JetBrains Mono", monospace;
}

.ht-rk-podium-rank,
.ht-rk-podium-tier,
.ht-rk-podium-score {
  color: var(--tier-color);
}

.ht-rk-podium-name {
  color: var(--ht-tx1);
  font-size: 14px;
}

.ht-rk-podium-avatar .ht-rk-avatar-img,
.ht-rk-podium-avatar .ht-rk-avatar-fallback {
  width: 52px;
  height: 52px;
  font-size: 16px;
}

.ht-rk-podium-tier {
  font-size: 10px;
  letter-spacing: .14em;
}

.ht-rk-podium-score {
  font-size: 21px;
}

.ht-rk-avatar-img,
.ht-rk-avatar-fallback {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ht-rk-avatar-img {
  object-fit: cover;
}

.ht-rk-avatar-fallback {
  background: rgba(0, 255, 65, 0.08);
  border: 1px solid rgba(0, 255, 65, 0.24);
  color: var(--ht-green);
  font-size: 17px;
  letter-spacing: .12em;
  font-family: "Share Tech Mono", "JetBrains Mono", monospace;
}

.ht-rk-row-avatar .ht-rk-avatar-fallback,
.ht-rk-podium-card .ht-rk-avatar-fallback,
.ht-rk-profile-avatar .ht-rk-avatar-fallback {
  background: color-mix(in srgb, var(--avatar-color, var(--ht-green)) 12%, transparent);
  border-color: color-mix(in srgb, var(--avatar-color, var(--ht-green)) 34%, transparent);
  color: var(--avatar-color, var(--ht-green));
}

.ht-rk-list-card,
.ht-rk-profile-card,
.ht-rk-panel-card,
.ht-rk-econ-card {
  padding: 14px;
}

.ht-rk-section-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ht-tx4);
  font-size: 11px;
  letter-spacing: .14em;
  margin-bottom: 12px;
}

.ht-rk-section-icon {
  width: 13px;
  height: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ht-amber);
}

.ht-rk-section-icon svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ht-rk-row {
  display: grid;
  grid-template-columns: 72px 56px minmax(0, 1fr) 90px;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 14px 12px;
  border-top: 1px solid rgba(255,255,255,0.02);
  border-left: 3px solid transparent;
  transition: .18s ease;
}

.ht-rk-row:first-child {
  border-top: 0;
}

.ht-rk-row.is-active {
  background: rgba(255, 170, 0, 0.06);
  border-left-color: rgba(255, 170, 0, 0.65);
}

.ht-rk-row-rank {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ht-rk-row-rank-no {
  color: var(--ht-tx2);
  font-size: 14px;
  min-width: 38px;
}

.ht-rk-trend {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
}

.ht-rk-trend svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ht-rk-trend-up {
  color: var(--ht-green);
}

.ht-rk-trend-down {
  color: var(--ht-red);
}

.ht-rk-trend-flat {
  color: var(--ht-tx4);
}

.ht-rk-row-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ht-rk-row-name,
.ht-rk-profile-name {
  color: var(--ht-tx1);
  font-size: 14px;
}

.ht-rk-row-tier,
.ht-rk-profile-tier {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tier-color) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--tier-color) 30%, transparent);
  color: var(--tier-color);
  font-size: 10px;
  letter-spacing: .14em;
}

.ht-rk-row-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.ht-rk-row-badge,
.ht-rk-profile-badge {
  color: var(--ht-tx4);
  font-size: 11px;
}

.ht-rk-row-score {
  text-align: right;
}

.ht-rk-row-score-num {
  display: block;
  color: var(--ht-green);
  font-size: 16px;
}

.ht-rk-row-score-lbl {
  display: block;
  color: var(--ht-tx4);
  font-size: 10px;
}

.ht-rk-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.ht-rk-pagination .pagination_page,
.ht-rk-pagination .pagination_current,
.ht-rk-pagination .pagination_previous,
.ht-rk-pagination .pagination_next,
.ht-rk-pagination .pagination_first,
.ht-rk-pagination .pagination_last {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 65, 0.12);
  background: rgba(8, 18, 8, 0.88);
  color: var(--ht-tx3);
  font-size: 11px;
  line-height: 1;
  font-family: "JetBrains Mono", "Share Tech Mono", monospace;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.ht-rk-pagination a.pagination_page:hover,
.ht-rk-pagination a.pagination_previous:hover,
.ht-rk-pagination a.pagination_next:hover,
.ht-rk-pagination a.pagination_first:hover,
.ht-rk-pagination a.pagination_last:hover {
  color: var(--ht-green);
  border-color: rgba(0, 255, 65, 0.32);
  background: rgba(0, 255, 65, 0.08);
  transform: translateY(-1px);
}

.ht-rk-pagination .pagination_current {
  color: var(--ht-green);
  border-color: rgba(0, 255, 65, 0.42);
  background: linear-gradient(180deg, rgba(0, 255, 65, 0.14), rgba(0, 255, 65, 0.08));
  box-shadow: inset 0 0 0 1px rgba(0, 255, 65, 0.08), 0 0 18px rgba(0, 255, 65, 0.08);
}

.ht-rk-pagination .pagination_previous,
.ht-rk-pagination .pagination_next,
.ht-rk-pagination .pagination_first,
.ht-rk-pagination .pagination_last {
  min-width: auto;
  padding: 0 12px;
  letter-spacing: .04em;
}

.ht-rk-profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ht-rk-profile-avatar .ht-rk-avatar-img,
.ht-rk-profile-avatar .ht-rk-avatar-fallback {
  width: 64px;
  height: 64px;
}

.ht-rk-profile-id {
  min-width: 0;
}

.ht-rk-profile-joined {
  margin-top: 4px;
  color: var(--ht-tx4);
  font-size: 11px;
}

.ht-rk-profile-score {
  margin: 16px 0 14px;
  color: var(--ht-amber);
  font-size: clamp(28px, 4vw, 34px);
  text-align: center;
  text-shadow: 0 0 22px rgba(255,170,0,0.18);
}

.ht-rk-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ht-rk-stat-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 10px;
  background: rgba(13, 26, 13, 0.86);
}

.ht-rk-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: var(--ht-cyan);
}

.ht-rk-stat-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ht-rk-stat-value {
  color: var(--ht-tx1);
  font-size: 15px;
}

.ht-rk-stat-label {
  color: var(--ht-tx4);
  font-size: 10px;
  margin-top: 2px;
}

.ht-rk-radar,
.ht-rk-history {
  display: block;
  width: 100%;
  height: auto;
}

.ht-rk-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ht-rk-profile-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.24);
  color: var(--ht-cyan);
}

.ht-rk-badge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ht-rk-badge-card {
  padding: 20px 18px;
  text-align: center;
  border-color: color-mix(in srgb, var(--badge-color) 24%, rgba(255,255,255,0.08));
}

.ht-rk-badge-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--badge-color);
  border-radius: 50%;
  background: color-mix(in srgb, var(--badge-color) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--badge-color) 34%, transparent);
}

.ht-rk-badge-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ht-rk-badge-name {
  color: var(--badge-color);
  font-size: 14px;
  font-family: "Share Tech Mono", "JetBrains Mono", monospace;
}

.ht-rk-badge-desc,
.ht-rk-badge-count {
  color: var(--ht-tx4);
  font-size: 11px;
  line-height: 1.6;
}

.ht-rk-badge-desc {
  margin-top: 8px;
}

.ht-rk-badge-count {
  margin-top: 10px;
}

.ht-rk-econ-card {
  margin-top: 20px;
  padding: 22px 20px;
}

.ht-rk-econ-card h2 {
  margin: 0 0 16px;
  color: var(--ht-tx1);
  font-size: 18px;
  font-family: "Share Tech Mono", "JetBrains Mono", monospace;
}

.ht-rk-econ-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ht-rk-econ-title {
  color: var(--ht-amber);
  font-size: 12px;
  letter-spacing: .12em;
  margin-bottom: 10px;
}

.ht-rk-econ-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ht-tx3);
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.ht-rk-econ-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 7px;
  background: var(--ht-green);
  box-shadow: 0 0 10px rgba(0,255,65,0.22);
  flex-shrink: 0;
}

.ht-rk-empty {
  color: var(--ht-tx4);
  padding: 24px;
  text-align: center;
}

@media (max-width: 1180px) {
  .ht-rk-grid {
    grid-template-columns: 1fr;
  }

  .ht-rk-badge-grid,
  .ht-rk-econ-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 834px) {
  .ht-rk-page {
    padding: 20px 14px 42px;
  }

  .ht-rk-summary,
  .ht-rk-podium,
  .ht-rk-stat-grid,
  .ht-rk-badge-grid,
  .ht-rk-econ-grid {
    grid-template-columns: 1fr;
  }

  .ht-rk-row {
    grid-template-columns: 58px 48px minmax(0, 1fr);
  }

  .ht-rk-row-score {
    grid-column: 2 / -1;
    text-align: left;
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .ht-rk-row-score-num,
  .ht-rk-row-score-lbl {
    display: inline;
  }

  .ht-rk-pagination {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .ht-rk-tabs {
    flex-wrap: wrap;
  }

  .ht-rk-tab {
    width: 100%;
  }

  .ht-rk-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ht-rk-row-rank,
  .ht-rk-row-score {
    text-align: left;
  }

  .ht-rk-profile-head {
    align-items: flex-start;
  }
}
