/* Jewel MU — Top comerciantes (ranking público, tema oro oscuro) */

.tt-shell {
  max-width: var(--layout-index-span, 920px);
  margin: 0 auto 48px;
  padding: 0 4px;
}

.tt-hero {
  position: relative;
  margin-bottom: 22px;
  padding: 28px 22px 26px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 215, 0, 0.22);
  background: linear-gradient(145deg, rgba(28, 22, 10, 0.96) 0%, rgba(12, 10, 8, 0.98) 100%);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.06) inset;
}

.tt-hero-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 120%;
  background:
    radial-gradient(ellipse at 25% 20%, rgba(255, 215, 0, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse at 78% 62%, rgba(245, 158, 11, 0.16) 0%, transparent 50%);
  pointer-events: none;
  animation: ttGlowPulse 6s ease-in-out infinite;
}

.tt-hero-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 215, 0, 0.07) 48%,
    rgba(255, 215, 0, 0.14) 50%,
    rgba(255, 215, 0, 0.07) 52%,
    transparent 62%
  );
  background-size: 220% 100%;
  pointer-events: none;
  animation: ttShimmer 7s ease-in-out infinite;
}

@keyframes ttGlowPulse {
  0%, 100% { opacity: 0.82; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

@keyframes ttShimmer {
  0% { background-position: 130% 0; opacity: 0.35; }
  45% { opacity: 0.75; }
  100% { background-position: -30% 0; opacity: 0.35; }
}

.tt-hero-inner { position: relative; z-index: 1; }

.tt-eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.tt-title {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff8e7 10%, var(--gold) 55%, #f59e0b 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(255, 215, 0, 0.12);
}

.tt-lead {
  margin: 0 0 12px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
  max-width: 640px;
}

.tt-meta {
  margin: 0;
  font-size: 13px;
  color: var(--text-3);
}

.tt-my-rank {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 215, 0, 0.35);
  box-shadow: 0 0 28px rgba(255, 215, 0, 0.1);
}

.tt-my-rank-icon {
  font-size: 36px;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.35));
}

.tt-my-rank-label {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
}

.tt-my-rank-value {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.tt-my-rank-tier {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
}

.tt-my-rank-split {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-3);
}

.tt-my-rank-empty p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
}

.tt-podium {
  display: grid;
  grid-template-columns: 1fr 1.18fr 1fr;
  gap: 14px;
  align-items: end;
  margin-bottom: 28px;
  padding: 0 2px;
}

@media (max-width: 720px) {
  .tt-podium {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 16px;
  }
  .tt-podium-slot { order: 0; }
  .tt-podium-1 { order: -1; }
}

.tt-podium-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.tt-podium-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

.tt-podium-rank span {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.tt-podium-1 .tt-podium-rank { color: #fcd34d; }
.tt-podium-2 .tt-podium-rank { color: #d1d5db; }
.tt-podium-3 .tt-podium-rank { color: #d97706; }

.tt-podium-card {
  position: relative;
  text-align: center;
  padding: 20px 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(165deg, rgba(32,28,20,0.96) 0%, rgba(12,11,10,0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 12px 32px rgba(0,0,0,0.35);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.tt-podium-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  opacity: 0.5;
}

.tt-podium-slot:hover .tt-podium-card {
  transform: translateY(-5px);
}

.tt-podium-2 .tt-podium-card {
  border-color: rgba(209,213,219,0.28);
  box-shadow: 0 0 0 1px rgba(209,213,219,0.08) inset, 0 10px 28px rgba(0,0,0,0.32);
}
.tt-podium-2 .tt-podium-card::before {
  background: linear-gradient(90deg, transparent, rgba(209,213,219,0.55), transparent);
}

.tt-podium-1 .tt-podium-card {
  padding-top: 24px;
  border-color: rgba(251,191,36,0.45);
  box-shadow:
    0 0 0 1px rgba(251,191,36,0.12) inset,
    0 16px 40px rgba(251,191,36,0.12),
    0 8px 24px rgba(0,0,0,0.35);
  animation: ttPodiumGold 3.5s ease-in-out infinite;
}
.tt-podium-1 .tt-podium-card::before {
  height: 4px;
  background: linear-gradient(90deg, transparent, #fbbf24, #fde68a, #fbbf24, transparent);
  opacity: 0.9;
}

.tt-podium-3 .tt-podium-card {
  border-color: rgba(217,119,6,0.28);
  box-shadow: 0 0 0 1px rgba(217,119,6,0.08) inset, 0 10px 28px rgba(0,0,0,0.32);
}
.tt-podium-3 .tt-podium-card::before {
  background: linear-gradient(90deg, transparent, rgba(217,119,6,0.55), transparent);
}

@keyframes ttPodiumGold {
  0%, 100% { box-shadow: 0 0 0 1px rgba(251,191,36,0.12) inset, 0 14px 36px rgba(251,191,36,0.1), 0 8px 24px rgba(0,0,0,0.35); }
  50% { box-shadow: 0 0 0 1px rgba(251,191,36,0.22) inset, 0 20px 48px rgba(251,191,36,0.2), 0 10px 28px rgba(0,0,0,0.38); }
}

.tt-podium-base {
  margin: 0 auto;
  width: 88%;
  height: 10px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.06);
  border-top: none;
}

.tt-podium-1 .tt-podium-base { height: 18px; width: 92%; background: linear-gradient(180deg, rgba(251,191,36,0.25), rgba(251,191,36,0.06)); border-color: rgba(251,191,36,0.2); }
.tt-podium-2 .tt-podium-base { height: 14px; background: linear-gradient(180deg, rgba(209,213,219,0.2), rgba(209,213,219,0.05)); border-color: rgba(209,213,219,0.15); }
.tt-podium-3 .tt-podium-base { height: 10px; background: linear-gradient(180deg, rgba(217,119,6,0.2), rgba(217,119,6,0.05)); border-color: rgba(217,119,6,0.15); }

.tt-podium-avatar {
  position: relative;
  display: inline-flex;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: visible;
  margin: 0 auto 12px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.tt-podium-1 .tt-podium-avatar { width: 84px; height: 84px; }

.tt-podium-avatar img,
.tt-podium-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.tt-podium-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 26px;
  color: var(--text);
  background: linear-gradient(145deg, rgba(255,215,0,0.14), rgba(255,215,0,0.04));
  border: 2px solid rgba(255,215,0,0.22);
}

.tt-podium-avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255,215,0,0.35);
  pointer-events: none;
}

.tt-podium-1 .tt-podium-avatar-ring {
  inset: -5px;
  border-width: 3px;
  border-color: rgba(251,191,36,0.65);
  box-shadow: 0 0 20px rgba(251,191,36,0.35);
}

.tt-podium-tier-5 .tt-podium-avatar-ring {
  border-color: rgba(125,211,252,0.75);
  box-shadow: 0 0 16px rgba(56,189,248,0.45);
  animation: ttPodiumRingPulse 2.2s ease-in-out infinite;
}

@keyframes ttPodiumRingPulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

.tt-podium-identity { margin-bottom: 8px; }

.tt-podium-slot h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.tt-podium-1 .tt-podium-slot h3 { font-size: 18px; }

.tt-podium-slot h3 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tt-podium-slot h3 a:hover { color: var(--gold); }

.tt-podium-main {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.02em;
}

.tt-podium-main-label {
  display: inline-block;
  margin-right: 5px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  vertical-align: middle;
}

.tt-podium-stars {
  margin: 10px 0 8px;
  display: flex;
  justify-content: center;
}

.tt-podium-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fcd34d;
  background: rgba(252,211,77,0.1);
  border: 1px solid rgba(252,211,77,0.22);
}

.tt-podium-tier-1 .tt-podium-badge { color: #9aa3ad; background: rgba(154,163,173,0.12); border-color: rgba(154,163,173,0.25); }
.tt-podium-tier-2 .tt-podium-badge { color: #e09a5a; background: rgba(201,123,58,0.12); border-color: rgba(201,123,58,0.28); }
.tt-podium-tier-3 .tt-podium-badge { color: #e5e7eb; background: rgba(209,213,219,0.1); border-color: rgba(209,213,219,0.25); }
.tt-podium-tier-4 .tt-podium-badge { color: #fbbf24; background: rgba(251,191,36,0.12); border-color: rgba(251,191,36,0.3); }
.tt-podium-tier-5 .tt-podium-badge {
  color: #bae6fd;
  background: rgba(56,189,248,0.12);
  border-color: rgba(125,211,252,0.35);
  box-shadow: 0 0 12px rgba(56,189,248,0.2);
}

.tt-podium-pts {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-2);
}

.tt-podium-pts strong {
  font-size: 22px;
  font-weight: 900;
  color: var(--gold);
  margin-right: 3px;
}

.tt-podium-1 .tt-podium-pts strong { font-size: 26px; }

.tt-podium-pts span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

.tt-table-wrap {
  padding: 0;
  overflow: hidden;
  margin-bottom: 18px;
}

.tt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.tt-table th,
.tt-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.tt-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  background: rgba(255, 215, 0, 0.04);
}

.tt-table tbody tr:hover {
  background: rgba(255, 215, 0, 0.06);
}

.tt-row-me {
  background: rgba(255, 215, 0, 0.1) !important;
}

.tt-row-top .tt-pos {
  color: var(--gold);
  font-weight: 800;
}

.tt-pos {
  width: 48px;
  font-weight: 700;
  color: var(--text-2);
}

.tt-player a {
  color: var(--text);
  text-decoration: none;
}

.tt-player a:hover { color: var(--gold); }

.tt-player small,
.tt-player-main {
  display: block;
  color: var(--text-3);
  font-size: 12px;
  margin-top: 2px;
}

.tt-player-main {
  color: var(--text-2);
  font-weight: 600;
}

.tt-stars-cell .mkt-tr-stars {
  display: inline-flex;
  gap: 2px;
}

.mkt-tr-stars {
  display: inline-flex;
  gap: 2px;
  line-height: 1;
}

.mkt-tr-star {
  color: rgba(255, 255, 255, 0.18);
  font-size: 14px;
  transition: color 0.2s ease, text-shadow 0.2s ease, filter 0.2s ease;
}

.mkt-tr-stars-tier-1 .mkt-tr-star.is-on { color: #9aa3ad; text-shadow: 0 1px 2px rgba(0,0,0,0.35); }
.mkt-tr-stars-tier-2 .mkt-tr-star.is-on { color: #c97b3a; text-shadow: 0 0 6px rgba(201,123,58,0.45); }
.mkt-tr-stars-tier-3 .mkt-tr-star.is-on { color: #d1d5db; text-shadow: 0 0 8px rgba(209,213,219,0.55); }
.mkt-tr-stars-tier-4 .mkt-tr-star.is-on {
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251,191,36,0.65);
  animation: ttStarGoldPulse 2.4s ease-in-out infinite;
}
.mkt-tr-stars-tier-5 .mkt-tr-star.is-on {
  color: #e0f7ff;
  text-shadow: 0 0 8px rgba(186,230,253,0.95), 0 0 16px rgba(56,189,248,0.75);
  filter: drop-shadow(0 0 4px rgba(125,211,252,0.8));
  animation: ttStarDiamondShimmer 2.2s ease-in-out infinite;
}
.mkt-tr-stars-tier-5 .mkt-tr-star.is-on:nth-child(odd) { animation-delay: 0.35s; }

@keyframes ttStarGoldPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.18); }
}
@keyframes ttStarDiamondShimmer {
  0%, 100% { color: #e0f7ff; transform: scale(1); }
  50% { color: #fff; transform: scale(1.08); filter: drop-shadow(0 0 10px rgba(186,230,253,1)); }
}

.mkt-tr-stars-sm .mkt-tr-star { font-size: 12px; }
.mkt-tr-stars-lg .mkt-tr-star { font-size: 18px; }

.tt-num {
  text-align: right;
  white-space: nowrap;
}

.tt-stars-legend {
  padding: 14px 18px;
}

.tt-stars-legend summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text-2);
}

.tt-stars-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.tt-stars-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.tt-stars-glyph {
  flex-shrink: 0;
  min-width: 72px;
}

.tt-stars-name {
  flex: 1;
  font-weight: 600;
}

.tt-stars-list-item.tt-stars-list-tier-1 { border-color: rgba(154,163,173,0.28); }
.tt-stars-list-item.tt-stars-list-tier-2 { border-color: rgba(201,123,58,0.35); }
.tt-stars-list-item.tt-stars-list-tier-3 { border-color: rgba(209,213,219,0.32); }
.tt-stars-list-item.tt-stars-list-tier-4 { border-color: rgba(251,191,36,0.4); box-shadow: inset 0 0 18px rgba(251,191,36,0.06); }
.tt-stars-list-item.tt-stars-list-tier-5 { border-color: rgba(125,211,252,0.42); box-shadow: inset 0 0 22px rgba(56,189,248,0.08); }

.tt-stars-name.tt-stars-name-tier-1 { color: #b8c0c9; }
.tt-stars-name.tt-stars-name-tier-2 { color: #e09a55; }
.tt-stars-name.tt-stars-name-tier-3 { color: #e5e7eb; }
.tt-stars-name.tt-stars-name-tier-4 { color: #fcd34d; }
.tt-stars-name.tt-stars-name-tier-5 { color: #bae6fd; }

.tt-stars-glyph .mkt-tr-star:not(.is-on) {
  color: rgba(255, 255, 255, 0.12);
}

.tt-empty {
  padding: 32px 24px;
  text-align: center;
}

.tt-empty h1 { margin-top: 0; }

.tt-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  border-radius: var(--r);
  background: var(--gold);
  color: #1a1206;
  font-weight: 700;
  text-decoration: none;
}

.tt-btn:hover {
  filter: brightness(1.08);
  color: #1a1206;
}
