.fame-character-name {
    color: #6ecfff !important;
    text-shadow: 1px 1px 2px #222 !important;
}
.fame-character-vocation {
    color: #b3e0ff !important;
}
/* Confetti and Stars for Top 1 */
.fame-card.rank-gold .confetti-falling {
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    overflow: visible;
}
.confetti-piece, .star-piece {
    position: absolute;
    opacity: 0.03;
    font-size: 22px;
    animation: confetti-fall 2.8s linear infinite;
    pointer-events: none;
}
.star-piece {
    display: block !important;
    font-size: 18px;
    opacity: 0.03;
    animation: star-fall 2.2s linear infinite;
}
@keyframes confetti-fall {
    0% { transform: translateY(-30px) rotate(0deg) scale(1); opacity: 0.2; }
    80% { opacity: 0.2; }
    100% { transform: translateY(120px) rotate(360deg) scale(1.1); opacity: 0; }
}
@keyframes star-fall {
    0% { transform: translateY(-20px) scale(1); opacity: 0.08; }
    80% { opacity: 0.08; }
    100% { transform: translateY(100px) scale(1.2); opacity: 0; }
}
/* ====================================
   HALL OF FAME BANNER
   Modern design for Top 5 Characters
   ==================================== */

.hall-of-fame {
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 50%, #1a0a2e 100%);
    border-radius: 16px;
    padding: 15px 20px;
    margin: 15px auto 30px auto;
    max-width: 1200px;
    min-width: 1000px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.hall-of-fame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
 background: 
    radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
   radial-gradient(circle at 80% 50%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Header */
.hall-of-fame-header {
  text-align: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.hall-of-fame-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 5px;
}

.hall-of-fame-title svg {
  color: #fbbf24;
 filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.5));
    animation: starRotate 3s linear infinite;
}

@keyframes starRotate {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

.hall-of-fame-title h2 {
 margin: 0;
    font-size: 24px;
  font-weight: 800;
background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #fbbf24 100%);
    -webkit-background-clip: text;
-webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(251, 191, 36, 0.3);
    letter-spacing: 1px;
}

.hall-of-fame-subtitle {
    font-size: 13px;
    color: #c4b5fd;
    margin: 0;
  font-weight: 500;
}

/* Podium Layout */
.hall-of-fame-podium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
  position: relative;
    z-index: 1;
}

/* Fame Card */
.fame-card {
    background: linear-gradient(135deg, rgba(30, 17, 51, 0.9) 0%, rgba(45, 27, 78, 0.9) 100%);
    border-radius: 10px;
  padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
 position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.fame-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
 background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fame-card:hover::before {
    opacity: 1;
}

.fame-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(139, 92, 246, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Rank-specific styling */
.fame-card.rank-gold {
    border-color: #fbbf24;
    box-shadow: 
        0 10px 30px rgba(251, 191, 36, 0.3),
        0 0 0 1px rgba(251, 191, 36, 0.5),
  inset 0 1px 0 rgba(251, 191, 36, 0.2),
        0 0 40px rgba(251, 191, 36, 0.4);
}

.fame-card.rank-gold:hover {
    box-shadow: 
    0 20px 50px rgba(251, 191, 36, 0.5),
        0 0 0 2px rgba(251, 191, 36, 0.8),
 inset 0 1px 0 rgba(251, 191, 36, 0.3),
        0 0 60px rgba(251, 191, 36, 0.6);
}

.fame-card.rank-silver {
    border-color: #94a3b8;
    box-shadow: 
        0 10px 30px rgba(148, 163, 184, 0.3),
    0 0 0 1px rgba(148, 163, 184, 0.5),
        inset 0 1px 0 rgba(148, 163, 184, 0.2);
}

.fame-card.rank-silver:hover {
  box-shadow: 
        0 20px 50px rgba(148, 163, 184, 0.5),
      0 0 0 2px rgba(148, 163, 184, 0.8),
        inset 0 1px 0 rgba(148, 163, 184, 0.3);
}

.fame-card.rank-bronze {
    border-color: #cd7f32;
    box-shadow: 
 0 10px 30px rgba(205, 127, 50, 0.3),
        0 0 0 1px rgba(205, 127, 50, 0.5),
    inset 0 1px 0 rgba(205, 127, 50, 0.2);
}

.fame-card.rank-bronze:hover {
    box-shadow: 
    0 20px 50px rgba(205, 127, 50, 0.5),
        0 0 0 2px rgba(205, 127, 50, 0.8),
        inset 0 1px 0 rgba(205, 127, 50, 0.3);
}

.fame-card.rank-regular {
 border-color: #8b5cf6;
}

/* Rank Badge */
.fame-rank-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
  z-index: 2;
}

.fame-rank-number {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.fame-rank-icon {
    font-size: 18px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Character Sprite */
.fame-character-sprite {
    width: 75px;
    height: 75px;
    margin: 0 auto 8px;
position: relative;
 display: flex;
    align-items: center;
    justify-content: center;
}

.fame-character-sprite img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    position: relative;
    z-index: 2;
}

.fame-sprite-placeholder {
    width: 60px;
height: 60px;
    background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 100%);
    border-radius: 50%;
    display: flex;
  align-items: center;
    justify-content: center;
    font-size: 36px;
 color: rgba(255, 255, 255, 0.5);
}

/* Glow Effect for Top 3 */
.fame-glow {
    position: absolute;
    top: 50%;
  left: 50%;
    transform: translate(-50%, -50%);
width: 95px;
    height: 95px;
    border-radius: 50%;
    z-index: 1;
    animation: glowPulse 2s ease-in-out infinite;
}

.fame-glow-gold {
    background: radial-gradient(circle, rgba(251, 191, 36, 0.4) 0%, transparent 70%);
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.6);
}

.fame-glow-silver {
    background: radial-gradient(circle, rgba(148, 163, 184, 0.4) 0%, transparent 70%);
}

.fame-glow-bronze {
    background: radial-gradient(circle, rgba(205, 127, 50, 0.4) 0%, transparent 70%);
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

/* Character Info */
.fame-character-info {
  position: relative;
    z-index: 2;
}

.fame-rank-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #a78bfa;
    margin-bottom: 3px;
}

.fame-character-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 3px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.rank-gold .fame-character-name {
    color: #fbbf24;
    font-size: 16px;
    text-shadow: 0 2px 8px rgba(251, 191, 36, 0.5);
}

.rank-silver .fame-character-name {
    color: #cbd5e1;
    text-shadow: 0 2px 8px rgba(203, 213, 225, 0.5);
}

.rank-bronze .fame-character-name {
    color: #fb923c;
  text-shadow: 0 2px 8px rgba(251, 146, 60, 0.5);
}

.fame-character-vocation {
    font-size: 12px;
  color: #c4b5fd;
  margin: 0 0 3px 0;
}

.fame-character-guild {
    font-size: 11px;
    color: #a78bfa;
    margin: 0 0 6px 0;
    font-style: italic;
}

/* Stats - Compact Version */
.fame-stats-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    font-size: 12px;
}

.fame-stat-compact {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #c4b5fd;
    font-size: 12px;
}

.fame-stat-compact strong {
    color: #fff;
    font-weight: 700;
    font-size: 12px;
}

.rank-gold .fame-stat-compact strong {
    font-size: 12px;
}

.fame-stat-icon-small {
    font-size: 14px;
}

.fame-stat-separator {
    color: #8b5cf6;
    opacity: 0.5;
}

/* Champion Crown */
.fame-champion-crown {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
 z-index: 3;
    animation: crownFloat 2s ease-in-out infinite;
}

.fame-champion-crown svg {
  filter: drop-shadow(0 4px 8px rgba(251, 191, 36, 0.5));
    color: #fbbf24;
    width: 32px;
    height: 32px;
}

@keyframes crownFloat {
 0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

/* Footer */
.hall-of-fame-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
padding-top: 12px;
    border-top: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
    z-index: 1;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-view-all:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

.btn-view-all svg {
    width: 16px;
    height: 16px;
}

.hall-of-fame-update {
    font-size: 11px;
    color: #a78bfa;
    font-style: italic;
}

/* Extended Highscores Section */
.extended-highscores {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(139, 92, 246, 0.5);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
 from {
        opacity: 0;
    max-height: 0;
 transform: translateY(-20px);
    }
    to {
     opacity: 1;
        max-height: 2000px;
  transform: translateY(0);
    }
}

.hall-of-fame.expanded {
    max-height: none;
}

.extended-highscores-header {
    text-align: center;
    margin-bottom: 20px;
}

.extended-highscores-header h3 {
    margin: 0 0 8px 0;
  font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.extended-highscores-header p {
    margin: 0;
    font-size: 13px;
    color: #c4b5fd;
}

/* Highscore Tabs */
.highscore-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.highscore-tab {
    display: flex;
    flex-direction: column;
 align-items: center;
    gap: 4px;
    padding: 10px 16px;
    background: rgba(30, 17, 51, 0.6);
 border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.highscore-tab:hover {
    background: rgba(45, 27, 78, 0.8);
    border-color: rgba(139, 92, 246, 0.6);
    transform: translateY(-2px);
}

.highscore-tab.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-color: #8b5cf6;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.highscore-tab .tab-icon {
    font-size: 20px;
}

.highscore-tab .tab-label {
    font-size: 12px;
    font-weight: 600;
    color: #c4b5fd;
}

.highscore-tab.active .tab-label {
    color: #fff;
}

/* Highscore Content */
.highscore-content {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    min-height: 400px;
}

.loading-message,
.error-message,
.empty-message {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: #c4b5fd;
}

.loading-message .spinner {
    font-size: 32px;
    display: block;
    margin-bottom: 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.error-message {
    color: #f87171;
}

/* Highscore Table */
.highscore-table-wrapper {
    overflow-x: auto;
}

.highscore-table {
    width: 100%;
    border-collapse: separate;
 border-spacing: 0 8px;
}

.highscore-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.highscore-table thead tr {
    background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 100%);
}

.highscore-table th {
  padding: 12px 10px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    border: none;
}

.highscore-table th:first-child {
    border-radius: 8px 0 0 8px;
}

.highscore-table th:last-child {
    border-radius: 0 8px 8px 0;
}

.highscore-row {
    background: rgba(30, 17, 51, 0.6);
    transition: all 0.3s ease;
}

.highscore-row:hover {
    background: rgba(45, 27, 78, 0.9);
    transform: scale(1.01);
}

.highscore-row.rank-gold {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.2) 0%, rgba(30, 17, 51, 0.6) 100%);
    border-left: 3px solid #fbbf24;
}

.highscore-row.rank-silver {
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.2) 0%, rgba(30, 17, 51, 0.6) 100%);
    border-left: 3px solid #94a3b8;
}

.highscore-row.rank-bronze {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.2) 0%, rgba(30, 17, 51, 0.6) 100%);
    border-left: 3px solid #cd7f32;
}

.highscore-table td {
    padding: 12px 10px;
    font-size: 13px;
    color: #e0e0e0;
    border: none;
}

.highscore-table td:first-child {
    border-radius: 8px 0 0 8px;
}

.highscore-table td:last-child {
    border-radius: 0 8px 8px 0;
}

/* Table Columns */
.rank-col {
    width: 80px;
    text-align: center;
}

.sprite-col {
 width: 70px;
    text-align: center;
}

.name-col {
    min-width: 150px;
}

.vocation-col {
    min-width: 120px;
}

.level-col {
    width: 80px;
    text-align: center;
}

.skill-col {
    width: 100px;
    text-align: center;
}

.rank-number {
    font-weight: 700;
    font-size: 14px;
}

.player-sprite {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.player-link {
    color: #a78bfa;
    text-decoration: none;
    font-weight: 600;
 transition: color 0.3s ease;
}

.player-link:hover {
    color: #c4b5fd;
    text-decoration: underline;
}

.guild-tag {
    font-size: 11px;
  color: #94a3b8;
    font-style: italic;
}

.skill-col strong {
    color: #fbbf24;
    font-size: 15px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hall-of-fame-podium {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
    
    .highscore-tabs {
        gap: 6px;
    }
    
 .highscore-tab {
        min-width: 70px;
     padding: 8px 12px;
    }
}

@media (max-width: 768px) {
    .hall-of-fame {
        padding: 12px 15px;
      margin: 10px auto;
    }
 
  .hall-of-fame-title h2 {
        font-size: 18px;
    }
    
    .hall-of-fame-subtitle {
font-size: 11px;
  }
    
    .hall-of-fame-podium {
     grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .fame-card {
  padding: 10px;
    }
    
 .fame-character-sprite {
 width: 65px;
     height: 65px;
 }
    
    .fame-character-name {
        font-size: 14px;
    }
    
    .fame-character-vocation {
   font-size: 11px;
    }
    
    .fame-stats-compact {
 font-size: 11px;
        padding: 4px 8px;
    }
    
.hall-of-fame-footer {
        flex-direction: column;
        gap: 8px;
  text-align: center;
        padding-top: 10px;
    }
    
    /* Extended Highscores Mobile */
    .extended-highscores-header h3 {
    font-size: 18px;
    }
    
  .highscore-tabs {
        gap: 4px;
    }
 
    .highscore-tab {
    min-width: 60px;
        padding: 6px 8px;
        font-size: 10px;
    }
  
    .highscore-tab .tab-icon {
        font-size: 16px;
    }

    .highscore-tab .tab-label {
        font-size: 10px;
    }
    
    .highscore-content {
        padding: 10px;
    }
    
    /* Mobile Table - Card Layout */
    .highscore-table thead {
  display: none;
    }
    
    .highscore-table,
    .highscore-table tbody,
    .highscore-table tr,
    .highscore-table td {
    display: block;
    }
    
    .highscore-row {
        margin-bottom: 12px;
 border-radius: 8px !important;
        padding: 10px;
    }
    
    .highscore-table td {
    padding: 6px 10px;
        border-radius: 0 !important;
        position: relative;
        padding-left: 110px;
  text-align: right;
    }
    
    .highscore-table td:before {
        content: attr(data-label);
   position: absolute;
        left: 10px;
      font-weight: 700;
   text-transform: uppercase;
        font-size: 10px;
     color: #a78bfa;
    }
    
    .rank-col:before { content: "Rank"; }
    .sprite-col:before { content: ""; display: none; }
    .name-col:before { content: "Name"; }
    .vocation-col:before { content: "Vocation"; }
    .level-col:before { content: "Level"; }
    .skill-col:before { content: "Skill"; }
    
    .rank-col,
    .sprite-col {
        text-align: right;
    }
    
 .sprite-col {
        padding-left: 10px !important;
    }
    
    .player-sprite {
        width: 40px;
   height: 40px;
    }
}
