/* Jewel MU — Top web (ranking público) */

.tw-shell {
  max-width: var(--layout-index-span, 920px);
  margin: 0 auto 48px;
  padding: 0 4px;
}

.tw-hero {
  position: relative;
  margin-bottom: 22px;
  padding: 28px 22px 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(20, 24, 32, 0.95) 0%, rgba(12, 14, 20, 0.98) 100%);
  overflow: hidden;
}

.tw-hero-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 120%;
  background: radial-gradient(ellipse at 30% 20%, rgba(74, 158, 255, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 60%, rgba(255, 215, 0, 0.12) 0%, transparent 50%);
  pointer-events: none;
  animation: twGlowPulse 6s ease-in-out infinite;
}

@keyframes twGlowPulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

.tw-hero-inner { position: relative; z-index: 1; }

.tw-eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.tw-title {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text) 20%, #6eb6ff 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tw-lead {
  margin: 0 0 12px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
  max-width: 640px;
}

.tw-meta {
  margin: 0;
  font-size: 13px;
  color: var(--text-3);
}

.tw-my-rank {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(74, 158, 255, 0.35);
  box-shadow: 0 0 24px rgba(74, 158, 255, 0.08);
}

.tw-my-rank-icon {
  font-size: 36px;
  line-height: 1;
}

.tw-my-rank-label {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
}

.tw-my-rank-value {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.tw-my-rank-mob {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
}

.tw-my-rank-empty p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
}

.tw-podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 12px;
  align-items: end;
  margin-bottom: 22px;
}

@media (max-width: 720px) {
  .tw-podium {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

.tw-podium-slot {
  text-align: center;
  padding: 18px 12px 16px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tw-podium-slot:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.tw-podium-1 {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold-dim) inset, 0 8px 32px rgba(255, 215, 0, 0.12);
  animation: twPodiumGold 3s ease-in-out infinite;
}

@keyframes twPodiumGold {
  0%, 100% { box-shadow: 0 0 0 1px var(--gold-dim) inset, 0 8px 28px rgba(255, 215, 0, 0.1); }
  50% { box-shadow: 0 0 0 1px var(--gold-dim) inset, 0 12px 36px rgba(255, 215, 0, 0.2); }
}

.tw-podium-2 { min-height: 140px; }
.tw-podium-1 { min-height: 168px; }
.tw-podium-3 { min-height: 128px; }

.tw-podium-medal {
  display: block;
  font-size: 28px;
  margin-bottom: 8px;
}

.tw-podium-avatar {
  display: inline-flex;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-2);
  margin-bottom: 10px;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
}

.tw-podium-1 .tw-podium-avatar {
  width: 76px;
  height: 76px;
  border-color: var(--gold);
}

.tw-podium-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tw-podium-slot h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.tw-podium-slot h3 a {
  color: var(--text);
  text-decoration: none;
}

.tw-podium-slot h3 a:hover { color: var(--gold); }

.tw-podium-rank {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
}

.tw-podium-pts {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
}

.tw-podium-pts span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
}

.tw-table-wrap {
  padding: 0;
  overflow: hidden;
  margin-bottom: 18px;
}

.tw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.tw-table th,
.tw-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.tw-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.02);
}

.tw-table tbody tr:hover {
  background: rgba(74, 158, 255, 0.06);
}

.tw-row-me {
  background: rgba(74, 158, 255, 0.1) !important;
}

.tw-row-top .tw-pos {
  color: var(--gold);
  font-weight: 800;
}

.tw-pos {
  width: 48px;
  font-weight: 700;
  color: var(--text-2);
}

.tw-player a {
  color: var(--text);
  text-decoration: none;
}

.tw-player a:hover { color: #6eb6ff; }

.tw-player small {
  display: block;
  color: var(--text-3);
  font-size: 12px;
}

.tw-mob-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.tw-num {
  text-align: right;
  white-space: nowrap;
}

.tw-tier-1 { color: #b8c0d0; }
.tw-tier-2 { color: #7eb8ff; }
.tw-tier-3 { color: #9b7bff; }
.tw-tier-4 { color: #ff7eb9; }
.tw-tier-5 { color: #ff9f43; }
.tw-tier-6 { color: var(--gold); text-shadow: 0 0 12px rgba(255, 215, 0, 0.35); }

.tw-ranks-legend {
  padding: 14px 18px;
}

.tw-ranks-legend summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text-2);
}

.tw-ranks-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.tw-ranks-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
}

.tw-rank-glyph { font-size: 16px; }
.tw-rank-name { flex: 1; font-weight: 600; }
.tw-rank-min { color: var(--text-3); font-size: 12px; }

.tw-empty {
  padding: 32px 24px;
  text-align: center;
}

.tw-empty h1 { margin-top: 0; }

.tw-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;
}

.tw-btn:hover {
  filter: brightness(1.08);
  color: #1a1206;
}
