




.top-bar {
  padding: 10px;
  padding-bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.game-select {
  position: relative;
  max-width: 280px;
}

.selected-game {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #13161B;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.selected-game:hover {
  background: #0d0e12;
  transform: translateY(-1px);
  border-color: rgba(235, 74, 87, 0.3);
}

.selected-game img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: border-color 0.3s ease;
}

.selected-game:hover img {
  border-color: #EB4A57;
}

.selected-game span {
  font-weight: 600;
  color: #edf0f1;
  font-size: 15px;
  flex: 1;
  font-family: "Changa", sans-serif;
}

.selected-game::after {
  content: '▼';
  color: #888;
  font-size: 12px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.selected-game:hover::after {
  color: #EB4A57;
  transform: translateY(2px);
}








.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #0d0e12;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 1000;
}

.game-select:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.game-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}



.game-option:hover::before {
  left: 100%;
}

.game-option:last-child {
  border-bottom: none;
}

.game-option:hover {
  background: rgba(235, 74, 87, 0.05);
  padding-left: 24px;
  border-left: 4px solid #EB4A57;
}

.game-option img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.game-option:hover img {
}

.game-option span {
  color: #bbb;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s ease;
  font-family: "Changa", sans-serif;
}

.game-option:hover span {
  color: #EB4A57;
}

/* Active state */
.game-option.active {
  background: linear-gradient(135deg, #EB4A57, #DC143C);
  border-left: 4px solid transparent;
}

.game-option.active span {
  color: #ffffff;
}

.game-option.active img {
  border-color: #ffffff;
}

/* Smooth animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.game-select:hover .dropdown {
  animation: slideDown 0.3s ease;
}














.season-select {
  position: relative;
  max-width: 280px;
  margin-left: 12px;
}

.selected-season {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #13161B;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.selected-season:hover {
  background: #0d0e12;
  transform: translateY(-1px);
  border-color: rgba(235, 74, 87, 0.3);
}

.season-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}

.season-indicator.epic {
  background: #1E90FF;
}

.season-indicator.rare {
  background: #32CD32;
}

.selected-season span {
  font-weight: 600;
  color: #edf0f1;
  font-size: 15px;
  flex: 1;
  font-family: "Changa", sans-serif;
}

.selected-season::after {
  content: '▼';
  color: #888;
  font-size: 12px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.selected-season:hover::after {
  color: #EB4A57;
  transform: translateY(2px);
}

.season-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #13161B;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 1000;
}

.season-select:hover .season-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.season-option {
  display: flex;
 
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.season-option:last-child {
  border-bottom: none;
}

.season-option:hover {
  background: #0d0e12;
  padding-left: 24px;
  border-left: 4px solid #EB4A57;
}

.season-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.season-name {
  color: #bbb;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s ease;
  font-family: "Changa", sans-serif;
}

.season-label {
  color: #888;
  font-size: 12px;
  font-weight: 400;
}

.season-option:hover .season-name {
}

.season-option.active {
  border-left: 4px solid #EB4A57;
}

.season-option.active .season-name {
  color: #ffffff;
  font-weight: 600;
}

.season-option.active .season-label {
  color: #EB4A57;
}



@media screen and (max-width: 768px) {
	
	


    .selected-game span {

        font-size: 10px;

    }
	
    .game-option span {
		
        font-size: 10px;

		
	}
	
  .season-select {
    margin-left: 8px;
    max-width: 200px;
  }
  
  .selected-season span,
  .season-name {
    font-size: 10px;
  }
  
  .season-indicator {
    width: 10px;
    height: 10px;
  }
}






























.container {
	padding-left:1.4vw;  /* Use padding instead of margin */
    padding-right:1.4vw;  /* Use padding instead of margin */
	padding-top:1.4vw;
	padding-bottom:1.4vw;
    display: flex;
    gap: 1.4vw;

}

.input-container {
    position: relative;
    border-radius: 8px;
    height: fit-content;  
    min-width: 25vw;
    max-width: 29vw;
    background: #13161b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    padding: 1.56vw;
    padding-top: 1.09vw;
    gap: 0vw;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
	color: #edf0f1;
}



/* New container for the online time slider */
.online-time-container {
    display: flex; /* This is toggled by JS, but 'flex' is the visible state */
    flex-direction: column;
    gap: 3px;
    transition: all 0.3s ease;
}

/* Style for the "Last seen within:" subtitle */
.section-subtitle {
    color: #bbb; /* Using --text-medium variable */
    font-size: 0.8rem;
    font-weight: 500;
}

/* Update online indicator for text instead of emoji */
.online-indicator {
    font-size: 12px;
    margin-left: 8px;
    color: #4cff88; /* Using --secondary-accent variable */
    font-style: italic;
    font-weight: 500;
    opacity: 0.9;
    /* The animation is removed as it's less suitable for text */
}

/* Keep the highlight on the player row for active players */
.player-row:has(.online-indicator) {
    border-left: 3px solid #4cff88; /* Match indicator color */
    box-shadow: 0 2px 6px rgba(76, 255, 136, 0.1);
}

.player-row:has(.online-indicator)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(76, 255, 136, 0.05) 0%, /* Match indicator color with low opacity */
        transparent 50%);
    pointer-events: none;
    border-radius: inherit;
}


/* Enhanced player row for online status */
.player-row {
    position: relative;
}

/* Enhanced player row for online status (Green Indicator) */
.player-row:has(.online-indicator) {
    border-left: 3px solid #4cff88; /* This is the new green color */
    box-shadow: 0 2px 6px rgba(76, 255, 136, 0.1);
}

.player-row:has(.online-indicator)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(76, 255, 136, 0.05) 0%, /* Green gradient */
        transparent 50%);
    pointer-events: none;
    border-radius: inherit;
}


/* Bar wrapper for each team */
.bar-wrapper {
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    background: #13161B;
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 3px 10px rgba(0,0,0,0.4),
                inset 0 1px 0 rgba(255,255,255,0.05);
    border: 1px solid rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

.bar-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(235,74,87,0.1), transparent);
    transition: left 0.5s ease;
}

.bar-wrapper:hover::before {
    left: 100%;
}

.bar-wrapper:hover {
    background: linear-gradient(145deg, #2a2a2a, #333333);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.6),
                0 3px 8px rgba(235,74,87,0.2);
}

/* Selected bar */
.bar-wrapper.selected {
    outline: 2px solid #EB4A57;
    background: linear-gradient(145deg, #2a2a2a, #333333);
    box-shadow: 0 6px 18px rgba(235,74,87,0.4),
                0 3px 8px rgba(0,0,0,0.6);
    transform: scale(1.01);
}

/* Labels above the bar */
.bar-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #edf0f1;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.team-name {
    font-weight: 600;
    letter-spacing: 0.4px;
}

.percentage {
    color: #edf0f1;

    font-weight: 600;
    text-shadow: 0 0 6px rgba(235,74,87,0.3);
}

/* Bar background */
.bar-bg {
    width: 100%;
    height: 0.625vw;
    background: linear-gradient(90deg, #111, #0a0a0a);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.6),
                inset 0 1px 2px rgba(255,255,255,0.03);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

/* Bar fill (animated) */
.bar-fill {
    height: 100%;
    width: 0; 
    background: linear-gradient(90deg, #EB4A57, #FA8072, #FF6B6B);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(235,74,87,0.6),
                inset 0 1px 0 rgba(255,255,255,0.2);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}










.auto-update-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auto-update-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.auto-update-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #EB4A57;
}

.auto-update-text {
    font-size: 14px;
    font-weight: 600;
    color: #edf0f1;
}

.auto-update-checkbox:checked + .auto-update-text {
    color: #EB4A57;
}











/* Team Distribution Header */
.team-dist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    margin-top: 12px;
}

.chart-toggle-select {
    padding: 6px 12px;
    background: #0d0e12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #edf0f1;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}



.chart-toggle-select:focus {
    border: 1px solid #EB4A57; /* Red border on click */
}

.chart-container {
    width: 100%;
    position: relative;
}

#pie-chart {
    max-height: 400px;
    margin: 0 auto;
    display: block;
}

/* Tooltip styling */
.chartjs-tooltip {
    opacity: 1;
    position: absolute;
    background: #13161B;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #edf0f1;
    padding: 8px 12px;
    pointer-events: none;
    transform: translate(-50%, -120%);
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    z-index: 1000;
}




















/* Search input */
.filter-input {
    width: 100%;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 8px;
    border: none;
    background: #0d0e12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #edf0f1;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.4px;
	margin: 0px 6px;

}

.filter-input:focus {
    outline: none;
    border: 1px solid #EB4A57; /* Red border on click */
    
    background: #0d0e12; /* Keep same background */
    color: #fff;
}


.filter-input::placeholder {
    color: rgba(237, 240, 241, 0.5);
    font-weight: 400;
}

/* Headings */
.team-dist-title,
.section-title {
    color: #edf0f1;
    font-weight: 600;
	margin-top: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 0.8px;
    text-transform: uppercase;
	

}

/* Only add borders to specific sections */
.input-container > .search-filters-section,
.input-container > .range-container,
.input-container > .activity-filters-section {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Remove border from the last section (team distribution should not have border above it) */
.input-container > .activity-filters-section:last-of-type {
    border-bottom: none;
}


/* Search filters section wrapper */
.search-filters-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Activity filters section wrapper */
.activity-filters-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Make sure online time container is part of rank range section */
.range-container .online-time-container {
    margin-top: 8px;
    padding-top: 8px;
}

/* Remove the bottom border from range-container since online slider is now inside it */
.input-container > .range-container:not(:last-child) {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Section titles inside wrappers */
.search-filters-section .section-title,
.activity-filters-section .section-title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
/* Filter section wrapper */
.filter-section {
    display: flex;
    flex-direction: column;

}

/* Center button text with flex */
.filter-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 8px;
    font-size: 12px;
    border-radius: 8px;
    background: #282C34;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #edf0f1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-align: center;
    width: 100%;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.4px;
	margin: 0px 6px;
}



.filter-button:hover {
    transform: translateY(-1px);
    color: #fff;
}

.filter-button.selected {
	border: 1px solid #EB4A57; /* Red border on click */
    background: linear-gradient(135deg, #EB4A57, #FA8072);
    color: #fff;
    transform: translateY(-0.5px);
}





/* Metamorph filter icon in button */
.metamorph-filter-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Metamorph button specific */
.metamorph-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}





/* Range Slider Container */
.range-container {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.range-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 400;
    color: #edf0f1;
	margin: 0px 6px;
}

.range-values span {
    background: #0d0e12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1px 2px;
    border-radius: 4px;
    color: #fff;
    min-width: 48px;
    text-align: center;
    font-size: 12px;
}

/* Range Slider */
.range-slider {
    position: relative;
    height: 28px;
    display: flex;
    align-items: center;
	margin: 0px 6px;
}

.range-track {
    position: absolute;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #111, #0a0a0a);
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.6),
                inset 0 1px 2px rgba(255,255,255,0.03);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.range-fill {
    position: absolute;
    height: 4px;
    background: linear-gradient(90deg, #EB4A57, #FA8072, #FF6B6B);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(235,74,87,0.6),
                inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.01s ease;
}

.range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 4px;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    pointer-events: none;
    outline: none;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #EB4A57, #FA8072);
    border: 2px solid #fff;
    box-shadow: 0 3px 8px rgba(235,74,87,0.6),
                0 2px 4px rgba(0,0,0,0.4);
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.range-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 12px rgba(235,74,87,0.8),
                0 3px 6px rgba(0,0,0,0.6);
}

.range-slider input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.05);
    background: linear-gradient(135deg, #FA8072, #FF6B6B);
}

.range-slider input[type="range"]::-moz-range-thumb {
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #EB4A57, #FA8072);
    border: 2px solid #fff;
    box-shadow: 0 3px 8px rgba(235,74,87,0.6),
                0 2px 4px rgba(0,0,0,0.4);
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    border: none;
}

.range-slider input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 12px rgba(235,74,87,0.8),
                0 3px 6px rgba(0,0,0,0.6);
}

.range-slider input[type="range"]::-moz-range-track {
    background: transparent;
    border: none;
}

/* No teams message */
.no-teams {
    color: rgba(237, 240, 241, 0.6);
    font-style: italic;
    text-align: center;
    padding: 14px;
    font-size: 0.9rem;
    background: #13161B;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Online indicator styles */
.online-indicator {
    font-size: 12px;
    margin-left: 6px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}


.rune-same-team-btn {
    margin-top: 8px;
    font-size: 0.9rem;
    padding: 10px 12px;
}


/* Rune Filter Container */
.rune-filter-container {
    display: flex;
    flex-direction: column;

}

.rune-search-wrapper {
    position: relative;
}

.rune-search-input {
    width: 100%;
}

.rune-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #0D0E12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 4px;
    z-index: 100;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
}
/* Rune suggestion groups */
.rune-suggestion-group {
    padding: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.rune-suggestion-group:last-child {
    border-bottom: none;
}

.rune-group-name {
    color: #edf0f1;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: 'Changa', sans-serif;
}

.rune-levels {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rune-level-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.rune-level-option:hover {
    background: rgba(235, 74, 87, 0.1);
    border-color: rgba(235, 74, 87, 0.3);
    transform: translateY(-2px);
}

.rune-level-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.rune-level-label {
    color: #bbb;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Work Sans', sans-serif;
}
/* Add to your existing CSS */
.rune-suggestion-img,
.selected-rune-img {
    cursor: pointer;
}

.rune-suggestion-item {
    position: relative;
}

.rune-suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rune-suggestion-item:hover {
    background: linear-gradient(145deg, #2a2a2a, #333333);
    transform: translateX(2px);
}

.rune-suggestion-item:last-child {
    border-bottom: none;
}

.rune-suggestion-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 8px;
}

.rune-suggestion-name {
    color: #edf0f1;
    font-size: 0.9rem;
    font-weight: 500;
}



.no-rune-matches {
    padding: 12px;
    text-align: center;
    color: rgba(237, 240, 241, 0.6);
    font-style: italic;
    font-size: 0.85rem;
}

.selected-runes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-runes:empty {
    display: none;
}

.selected-rune-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: linear-gradient(135deg, #EB4A57, #FA8072);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(235, 74, 87, 0.4);
    transition: all 0.3s ease;
}

.selected-rune-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(235, 74, 87, 0.6);
}

.selected-rune-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.selected-rune-name {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

.remove-rune-btn {
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    transition: all 0.2s ease;
    margin-left: 2px;
}

.remove-rune-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.1);
}



/* Body Parts Filter Styles */
.bodyparts-filter-container {
    display: flex;
    flex-direction: column;
    gap: 8px;

}

.bodyparts-search-wrapper {
    position: relative;
}

.bodyparts-search-input {
    width: 100%;
}

.bodyparts-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #0D0E12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 4px;
    z-index: 100;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
}

.bodypart-suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bodypart-suggestion-item:hover {
    background: linear-gradient(145deg, #2a2a2a, #333333);
    transform: translateX(2px);
}

.bodypart-suggestion-item:last-child {
    border-bottom: none;
}

.bodypart-suggestion-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
}

.bodypart-suggestion-name {
    color: #edf0f1;
    font-size: 0.9rem;
    font-weight: 500;
}

.no-bodypart-matches {
    padding: 12px;
    text-align: center;
    color: rgba(237, 240, 241, 0.6);
    font-style: italic;
    font-size: 0.85rem;
}

.selected-bodyparts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-bodyparts:empty {
    display: none;
}

.selected-bodypart-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: linear-gradient(135deg, #EB4A57, #FA8072);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(235, 74, 87, 0.4);
    transition: all 0.3s ease;
}

.selected-bodypart-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(235, 74, 87, 0.6);
}

.selected-bodypart-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.selected-bodypart-name {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

.remove-bodypart-btn {
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    transition: all 0.2s ease;
    margin-left: 2px;
}

.remove-bodypart-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.1);
}

.bodyparts-same-team-btn {
    margin-top: 8px;
    font-size: 0.9rem;
    padding: 10px 12px;
}





.metamorph-filter-container {
    display: flex;
    flex-direction: column;
    
}

.metamorph-filter-btn {
    width: 100%;
}

.metamorph-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.metamorph-filter-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    object-fit: contain;
}

.metamorph-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #EB4A57;
    border-radius: 4px;
}

.metamorph-label-text {
    color: #edf0f1;
    font-size: 0.95rem;
    font-weight: 500;
}

.metamorph-checkbox:checked + .metamorph-label-text {
    color: #EB4A57;
    font-weight: 600;
}




.team-goo .bar-fill {
    background: linear-gradient(90deg, #0E2401, #2F5A00, #4C8B0A);
}

.team-goo {
    background: linear-gradient(145deg, 
        rgba(5, 20, 0, 0.7),     /* murky dark green */
        rgba(20, 50, 0, 0.7)     /* slimy olive midtone */
    ) !important;
}

.team-goo.selected {
    outline: 2px solid #0E2401;
}












.team-confused .bar-fill {
    background: linear-gradient(90deg, #016F95, #009AC5, #33CFFF);
}

.team-confused {
    background: linear-gradient(145deg, 
        rgba(0, 40, 60, 0.7),    /* dark blue shadow for depth */
        rgba(0, 70, 100, 0.7)    /* soft teal midtone */
    ) !important;
}

.team-confused.selected {
    outline: 2px solid #016F95;
}






.team-spiky .bar-fill {
    background: linear-gradient(90deg, #F8BBFF, #E891FF, #D070FF);
}

.team-spiky {
    background: linear-gradient(145deg, 
        rgba(90, 40, 100, 0.7),    /* deep violet shadow */
        rgba(130, 60, 150, 0.7)    /* vibrant purple tone */
    ) !important;
}

.team-spiky.selected {
    outline: 2px solid #F8BBFF;
}



.team-sleep .bar-fill {
    background: linear-gradient(90deg, #4CE699, #7AF0B5, #A8FCD0);
}

.team-sleep {
    background: linear-gradient(145deg, 
        rgba(30, 70, 50, 0.7),    /* calm forest-green undertone */
        rgba(40, 100, 70, 0.7)    /* gentle minty blend */
    ) !important;
}

.team-sleep.selected {
    outline: 2px solid #4CE699;
}




.team-anemone .bar-fill {
    background: linear-gradient(90deg, #00F1D2, #33F7E0, #80FFF1);
}

.team-anemone {
    background: linear-gradient(145deg, 
        rgba(0, 80, 70, 0.7),    /* deep teal shadow */
        rgba(0, 130, 115, 0.7)   /* bright aqua midtone */
    ) !important;
}

.team-anemone.selected {
    outline: 2px solid #00F1D2;
}










.team-topaz .bar-fill {
    background: linear-gradient(90deg, #F45607, #FF6B1A, #FFA066);
}

.team-topaz {
    background: linear-gradient(145deg, 
        rgba(85, 30, 0, 0.7),    /* deep burnt orange base */
        rgba(130, 45, 0, 0.7)    /* slightly lighter amber tone */
    ) !important;
}

.team-topaz.selected {
    outline: 2px solid #F45607;
}



.team-leafy .bar-fill {
    background: linear-gradient(90deg, #76BC00, #8DD600, #A6E84A);
}

.team-leafy {
    background: linear-gradient(145deg, 
        rgba(46, 77, 0, 0.7),    /* deep earthy green */
        rgba(66, 107, 0, 0.7)    /* slightly brighter leaf tone */
    ) !important;
}

.team-leafy.selected {
    outline: 2px solid #76BC00;
}








.team-glorious .bar-fill {
    background: linear-gradient(90deg, #F9A700, #FFB733, #FFD280);
}

.team-glorious {
    background: linear-gradient(145deg, 
        rgba(102, 70, 0, 0.7),    /* deep warm gold tone */
        rgba(153, 102, 0, 0.7)    /* slightly brighter golden hue */
    ) !important;
}

.team-glorious.selected {
    outline: 2px solid #F9A700;
}














.team-shield .bar-fill {
    background: linear-gradient(90deg, #99B5F0, #7FA2EE, #B0C8FF);
}

.team-shield {
    background: linear-gradient(145deg, 
        rgba(60, 70, 110, 0.7),   /* deep muted blue-gray */
        rgba(80, 95, 140, 0.7)    /* slightly lighter defensive tone */
    ) !important;
}

.team-shield.selected {
    outline: 2px solid #99B5F0;
}













.team-rage .bar-fill {
    background: linear-gradient(90deg, #FFD500, #FFB300, #FFEA00);
}

.team-rage {
    background: linear-gradient(145deg, 
        rgba(102, 85, 0, 0.7),    /* deep muted gold tone */
        rgba(153, 128, 0, 0.7)    /* slightly brighter variant */
    ) !important;
}

.team-rage.selected {
    outline: 2px solid #FFD500;
}











/* Team-specific bar fill colors */
.team-aquatic .bar-fill {
    background: linear-gradient(90deg, #00CED1, #20B2AA, #48CAE4);

}

.team-aquatic {
    background: linear-gradient(145deg, 
        rgba(26, 63, 63, 0.7),    /* was #1a3f3f */
        rgba(38, 102, 102, 0.7)   /* was #266666 */
    ) !important;

}
.team-aquatic.selected {
    outline: 2px solid #00CED1;

}









.team-bug .bar-fill {
    background: linear-gradient(90deg, #AF153E, #AF153E, #AF153E);

}

.team-bug {
    background: linear-gradient(145deg, 
        rgba(175, 21, 62, 0.2),
        rgba(175, 21, 62, 0.3)
    ) !important;

}

.team-bug.selected {
    outline: 2px solid #AF153E;

}











.team-poison .bar-fill {
    background: linear-gradient(90deg, #8B008B, #9932CC, #BA55D3);

}

.team-poison {
    background: linear-gradient(145deg, 
        rgba(63, 26, 63, 0.3),    /* was #3f1a3f */
        rgba(102, 38, 102, 0.3)   /* was #662666 */
    ) !important;

}

.team-poison.selected {
    outline: 2px solid #8B008B;
    
}











.team-bird .bar-fill {
    background: linear-gradient(90deg, #FF69B4, #FF69B4, #FF69B4);
}

.team-bird {
    background: linear-gradient(145deg, rgba(255, 105, 180, 0.2), rgba(255, 105, 180, 0.3)) !important;
}

.team-bird.selected {
    outline: 2px solid #FF69B4;
}






.team-leech .bar-fill {
    background: linear-gradient(90deg, #750900, #750900, #750900);
}

.team-leech {
    background: linear-gradient(145deg, rgba(117, 9, 0, 0.2), rgba(117, 9, 0, 0.3)) !important;
}

.team-leech.selected {
    outline: 2px solid #750900;
}



.team-bleed .bar-fill {
    background: linear-gradient(90deg, #DC9325, #DC9325, #DC9325);
}

.team-bleed {
    background: linear-gradient(145deg, rgba(220, 147, 37, 0.2), rgba(220, 147, 37, 0.3)) !important;
}

.team-bleed.selected {
    outline: 2px solid #DC9325;

}




.team-heal .bar-fill {
    background: linear-gradient(90deg, #A4E006, #A4E006, #A4E006);

}

.team-heal {
    background: linear-gradient(145deg, rgba(164, 224, 6, 0.2), rgba(164, 224, 6, 0.3)) !important;

}

.team-heal.selected {
    outline: 2px solid #A4E006;

}




.team-cocoon .bar-fill {
    background: linear-gradient(90deg, #FAF2D9, #FAF2D9, #FAF2D9);

}

.team-cocoon {
    background: linear-gradient(145deg, rgba(250, 242, 217, 0.2), rgba(250, 242, 217, 0.3)) !important;
 
}

.team-cocoon.selected {
    outline: 2px solid #FAF2D9;
  
}





.team-soul .bar-fill {
    background: linear-gradient(90deg, #063340, #063340, #063340);
  
}

.team-soul {
    background: linear-gradient(145deg, rgba(6, 51, 64, 0.2), rgba(6, 51, 64, 0.3)) !important;
 
}

.team-soul.selected {
    outline: 2px solid #063340;
  
}




.team-owl .bar-fill {
    background: linear-gradient(90deg, #D67867, #D67867, #D67867);
  
}

.team-owl {
    background: linear-gradient(145deg, rgba(214, 120, 103, 0.2), rgba(214, 120, 103, 0.3)) !important;
 
}

.team-owl.selected {
    outline: 2px solid #D67867;
  
}





.team-navaga .bar-fill {
    background: linear-gradient(90deg, #76B8B4, #76B8B4, #76B8B4);
   
}

.team-navaga {
    background: linear-gradient(145deg, rgba(118, 184, 180, 0.2), rgba(118, 184, 180, 0.3)) !important;
   
}

.team-navaga.selected {
    outline: 2px solid #76B8B4;
   
}





.team-sandal .bar-fill {
    background: linear-gradient(90deg, #FF6E0D, #FF6E0D, #FF6E0D);

}

.team-sandal {
    background: linear-gradient(145deg, rgba(255, 110, 13, 0.2), rgba(255, 110, 13, 0.3)) !important;
 
}

.team-sandal.selected {
    outline: 2px solid #FF6E0D;
  
}





.team-bubble .bar-fill {
    background: linear-gradient(90deg, #76B8B4, #76B8B4, #76B8B4);
  
}

.team-bubble {
    background: linear-gradient(145deg, rgba(118, 184, 180, 0.2), rgba(118, 184, 180, 0.3)) !important;
   
}

.team-bubble.selected {
    outline: 2px solid #76B8B4;
   
}





.team-bubble .bar-fill {
    background: linear-gradient(90deg, #1A75FF, #1A75FF, #1A75FF);
   
}

.team-bubble {
    background: linear-gradient(145deg, rgba(26, 117, 255, 0.2), rgba(26, 117, 255, 0.3)) !important;
    
}

.team-bubble.selected {
    outline: 2px solid #1A75FF;
    
}









.team-default .bar-fill {
    background: linear-gradient(90deg, #EB4A57, #FA8072, #FF6B6B);
    
}




















#large-container {
    flex-grow: 1;  /* Allow it to take up available space */
    min-height: 1250px;    
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.8);
    height: auto;
    background: #13161b;
    display: flex;
    flex-direction: column; /* Stack header and content vertically */
    margin-bottom: 20px;
    padding-top: 5px;
}

#headerC {
    height: 61px;    
    width: 100%;     
    flex-shrink: 0;  
    border-top-left-radius: 15px;
    border-top-right-radius: 15px; 
	font-size: 0.9rem;
    display: flex;
}

#text1 {
    border-top-left-radius: 15px;
    width: 12.5%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #edf0f1;
    font-weight: 700;
    text-align: left;
}

#text2 {
    width: 24%;
    display: flex;
    align-items: center;
    color: #edf0f1;
    font-weight: 700;
    text-align: left;
}

#text3 {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #edf0f1;
    font-weight: 700;
}

#text4 {
    border-top-right-radius: 15px; 
    width: 13.5%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #edf0f1;
    font-weight: 700;
    text-align: left;
}

.player-link {
    color: inherit;
    text-decoration: none;
    white-space: normal;     
    word-wrap: break-word;   
    overflow-wrap: anywhere; 
}

#content {
    flex-grow: 1;
    width: 100%;
    overflow: hidden;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    background: #13161b;
    display: block;
}

.player-row {
    display: flex;
    align-items: center;         
    height: 120px;
    border-bottom: 1px solid #383838;
    color: #9AC0FF;
}

.player-rank {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 12.5%;
    height: 100%;
    color: #b0b0b0;
    font-size: 0.8rem; /* leave rem */
    font-weight: 500;
    text-align: left;

}

.player-id {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 30%;
    height: 100%;
    color: #7DA6FF;
    font-size: 0.8rem; /* leave rem */
    font-weight: 400;
    text-align: left;
    padding: 0;
    margin: 0;
}

.player-vstar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 2px;
    gap: 4px;
}

.vstar-icon {
    width: 16px;
    height: 16px;
}

.player-team {
    width: 44%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1px;
    gap: 1px;
}

.player-reward {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 13.5%;
}

.axs-icon {
    width: 16px;
    height: 16px;
}

.axs-amount {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    font-size: 0.85rem; /* leave rem */
}

.usd-amount {
    font-size: 12px;
    color: #888888;
}

.pagination-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #13161B;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    z-index: 100;
}

.pagination-container {
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.pagination-container.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#pagination-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

#pagination {
    display: flex;
    gap: 6px;
}

#pagination button {
    background: transparent;
    border: 1px solid #333;
    color: #ddd;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#pagination button:hover:not(:disabled) {
    background: #eb4a57;
    color: #fff;
}

#pagination button.active {
    background: #eb4a57;
    color: #fff;
    font-weight: bold;
}

#pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#pagination span {
    color: #888;
    padding: 6px 8px;
}

.logs-per-page {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ccc;
}

.logs-per-page select {
    background: #0D0E12;
    color: #ccc;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 4px 6px;
}

.pagination-ellipsis {
    color: #888;
    padding: 6px 8px;
    display: inline-flex;
    align-items: center;
}

.axie-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
}

.axie1-container {
    position: relative;
    transform: translate(-130px, 16px);
    z-index: 5;
}

.axie2-container {
    position: relative;
    transform: translate(-201px, 16px);
    z-index: 5;
}

.axie3-container {
    position: relative;
    transform: translate(-273px, 16px);
    z-index: 5;
}

.axie-wrapper {
    position: relative;
    display: block;
    width: max-content;
    overflow: visible;
}

.axie-img {
    width: 247px;
    height: auto;
    object-fit: contain;
    display: block;
    z-index: 1;
}

.rune-overlay {
    position: absolute;
    top: 30px;
    left: 30px;                
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    cursor: pointer;
    z-index: 10;
    background: none !important;
    padding-bottom: 12px;
}

.rune-stars {
    position: absolute;
    bottom: 17px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    padding: 1px 3px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.rune-stars .star {
    font-size: 9px;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
    line-height: 1;
}

.rune-img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.star-common {
    color: #9ca3af;
}

.star-rare {
    color: #3b82f6;
}

.star-epic {
    color: #8b5cf6;
}

.star-mystic {
    color: #f59e0b;
}

.rune-overlay:hover {
    transform: scale(1.1);
}

.rune-overlay[data-rarity="common"] {
    border-color: #9ca3af;
    background: radial-gradient(circle, rgba(156, 163, 175, 0.2), rgba(0, 0, 0, 0.8));
}

.rune-overlay[data-rarity="rare"] {
    border-color: #3b82f6;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), rgba(0, 0, 0, 0.8));
}

.rune-overlay[data-rarity="epic"] {
    border-color: #8b5cf6;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2), rgba(0, 0, 0, 0.8));
}

.rune-overlay[data-rarity="mystic"] {
    border-color: #f59e0b;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2), rgba(0, 0, 0, 0.8));
}








/* Popup Container */
.rune-charm-popup {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    width: 310px; /* fixed width or can use 24.22vw if you want scaling */
    border-radius: 8px;
    background: transparent;
}

.rune-charm-popup.visible {
    opacity: 1;
    animation: popupFadeIn 0.2s ease;
}

.popup-content {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

/* Full-size background image */
.popup-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
    overflow: hidden;
}

.popup-base-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: transparent;
}

/* Overlay images - fixed size */
.popup-class-image {
    position: absolute;
    top: 4.5%;
    left: 19%;
    width: 40px; /* fixed size */
    height: 40px;
    object-fit: contain;
    z-index: 2;
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 0;
}

.popup-item-image {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px; /* fixed size */
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
    background: transparent;
    z-index: 2;
}

/* Overlay text - fixed size */
.popup-name,
.popup-description,
.popup-rarity {
    position: absolute;
    width: 65%;
    left: 17.5%;
    text-align: center;
    z-index: 3;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    font-family: "Changa", sans-serif;
    background: transparent;
}

.popup-rarity {
    top: 38.5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: inline-flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 6px;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    line-height: 1;
    width: fit-content;
    max-width: none;
}

.popup-rarity .star {
    font-size: 16px; /* fixed size */
    line-height: 1;
    text-shadow: 0 0 6px rgba(0,0,0,0.5);
}

/* Rarity colors */
.star-common {
    color: #888888;
    text-shadow: 0 0 6px #888888;
}
.star-rare {
    color: #32CD32;
    text-shadow: 0 0 6px #32CD32;
}
.star-epic {
    color: #1E90FF;
    text-shadow: 0 0 6px #1E90FF;
}
.star-mystic {
    color: #BA55D3;
    text-shadow: 0 0 6px #BA55D3;
}

.popup-name {
    bottom: 32%;
    font-size: 17px; /* fixed */
    font-weight: bold;
    color: white;
}

.popup-description {
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px; /* fixed */
    color: #ccc;
    line-height: 1.3;
    width: 65%;
    max-height: none;
    overflow: visible;
    position: absolute;
    text-align: center;
}




/* Rarity backgrounds */
.popup-rarity.mystic {
    background: linear-gradient(135deg, #BA55D3, #9370DB);
    color: white;
}

.popup-rarity.epic {
    background: linear-gradient(135deg, #1E90FF, #4169E1);
    color: white;
}

.popup-rarity.rare {
    background: linear-gradient(135deg, #32CD32, #228B22);
    color: white;
}

.popup-rarity.common {
    background: linear-gradient(135deg, #888888, #666666);
    color: white;
}

/* Hover effect */
.battle-rune-img[data-type="rune"],
.runeIMG[data-type="rune"],
.partIcon[data-type="charm"] {
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.battle-rune-img[data-type="rune"]:hover,
.runeIMG[data-type="rune"]:hover,
.partIcon[data-type="charm"]:hover {}






.cardPopup {
    display: none; /* element is hidden and takes up no space */
}





@media screen and (max-width: 1024px) {
	
    .nav_links {
        display: none;
		
    }


    .bar-wrapper {
        padding: 6px 10px;
        border-radius: 14px;
        margin-bottom: 10px;
    }

    /* Labels above the bar */
    .bar-labels {
        font-size: 1.05rem;
        margin-bottom: 2px;
    }


    .percentage {
        font-size: 1.05rem;
        text-shadow: 0 0 8px rgba(235,74,87,0.4);
    }


    .team-dist-title,
    .section-title {
        font-size: 1.05rem;

    }
	
	
	.player-rank {
       
        font-size: 1.3vw;
    }

    .player-id {
        
        font-size: 1.3vw;
    }


	
    .axs-icon {
        width: 1.6vw;
        height: 1.6vw;
    }
    
    .axs-amount {
        gap: 4px; /* space between icon and text */
        font-weight: 500;
    	font-size: 1.3vw;
    }
    
    .usd-amount {
        font-size: 1.15vw; /* smaller text */
        
    }
	
    .vstar-icon {
        width: 1.3vw;
        height: 1.3vw;
    }
    
    .vstar-count {
        font-size: 1.3vw;
        color: #fff;                 /* or your leaderboard text color */
    }



    /* Rune overlay mobile adjustments */
    .rune-img {
        width: 2.75vw;
        height: 2.75vw;
    }

    .rune-overlay {


    }
	
    
    /* Rune stars display in leaderboard */
    .rune-stars {

 

    }
    
    
    .rune-stars .star {
        font-size: 1vw;
       
    }
 
    
    .axie1-container{
        transform: translate(-8vw, 1.25vw); /* move left 100px, down 24px */
        
    }
    
    .axie2-container{
        transform: translate(-15.5vw, 1.25vw); /* move left 200px, down 24px */
       
    }
    
    .axie3-container{
        transform: translate(-23vw, 1.25vw); /* move left 280px, down 24px */
        
    }
	
    .filter-button {
        font-size: 1.1rem;


    }
	
    /* Search input */
    .filter-input {
        font-size: 1.07rem;

    }

}

/* Media Queries for Mobile */
@media screen and (max-width: 768px) {

    .welcome-title {
		
		font-size: 24px;
		
	}

    .bonus-amount { 
		
		font-size: 20px;
		
	}

    /*Profile Dropdown stuff*/
	
	.deposit-title {
		
		font-size: 16px;
		
	}

    .form-group label{
		
		
		font-size: 14px;
		
	}
	
    .custom-select-trigger {

        font-size: 14px;

    }
	
	.token-select, .amount-input{

        font-size: 14px;

    }
    .deposit-submit-btn {
		
        font-size: 16px;
		
	}




    .convert-title {
		
		font-size: 16px;
		
	}
	
	.convert-amount-input{
		
		width: 100px;
		
	}

    .convert-token-symbol {
		
        font-size: 14px;
		
	}

    .convert-amount-input{
		
        font-size: 14px;
		
	}




    .nav_links {
        display: none;
		
    }
    /* Hide desktop navigation */


    /* Show hamburger menu */
    .hamburger {
        display: flex;
    }

    /* Hide desktop auth buttons */
    .auth-buttons {
        display: none;
    }

    /* Container adjustments */
    .container {
        padding: 10px;
        flex-direction: column;
        gap: 10px;
    }


    .bar-wrapper {
        padding: 6px 10px;
        border-radius: 8px;
        margin-bottom: 10px;
    }

    /* Labels above the bar */
    .bar-labels {
        font-size: 12px;
        margin-bottom: 0px;
    }

    .team-name {
        letter-spacing: 0.6px;
        font-weight: 600;
    }

    .percentage {
        font-size: 12px;
        text-shadow: 0 0 8px rgba(235,74,87,0.4);
    }

    /* Bar background */
    .bar-bg {
        height: 10px; /* increase thickness */
        border-radius: 8px;
    }

    /* Bar fill */
    .bar-fill {
        border-radius: 8px;
    }

    /* Search input */
    .filter-input {
        padding: 5px 14px;
        font-size: 13px;
        border-radius: 8px;
    }

    /* Headings */
    .team-dist-title,
    .section-title {
        font-size: 14px;
        margin-top: 12px;
        margin-bottom: 6px;
        letter-spacing: 1px;
    }

    /* Online Players Filter Button */
    .filter-button {
        padding: 5px 16px;
        font-size: 13px;
        border-radius: 8px;
        display: flex;            /* enable flexbox */
        align-items: center;      /* vertical center */
        justify-content: center;  /* horizontal center */
        text-align: center;       /* fallback for text */
    }


    /* Range Slider Container */
    .range-values span {
        min-width: 50px;
        font-size: 12px;
        padding: 2px 4px;
    }

    .range-slider {
        height: 36px;
    }

    .range-slider input[type="range"]::-webkit-slider-thumb,
    .range-slider input[type="range"]::-moz-range-thumb {
        height: 20px;
        width: 20px;
    }

    .range-track,
    .range-fill {
        height: 6px;
        border-radius: 8px;
    }

    /* No teams message */
    .no-teams {
        font-size: 1rem;
        padding: 18px;
        border-radius: 14px;
    }

    /* Online indicator */
    .online-indicator {
        font-size: 12px;
        margin-left: 8px;
    }


    /* Large container mobile adjustments */
    #large-container {
        min-height: auto;
        margin-bottom: 80px; /* Account for pagination */
    }

    /* Header text adjustments */
    #text1, #text2, #text3, #text4 {
        font-size: 0.8rem;
    }

    #text1 {
        width: 10%;
		font-size: 1.9vw;
    }

    #text2 {
        width: 15%;
		font-size: 1.9vw;
    }

    #text3 {
        width: 60%;
		font-size: 1.9vw;
    }

    #text4 {
        width: 15%;
		font-size: 1.9vw;
    }

    /* Player row mobile adjustments */
    .player-row {
        height: 13.4vw; /* roughly 100px at your scale */
    }


    .player-rank {
        width: 10%;
        font-size: 1.7vw;
    }

    .player-id {
        width: 15%;
        font-size: 1.7vw;
    }

    .player-team {
        width: 60%;
		
    }

    .player-reward {
        width: 15%;
		
    }
	
    .axs-icon {
        width: 2.14vw;
        height: 2.14vw;
    }
    
    .axs-amount {
        gap: 4px; /* space between icon and text */
        font-weight: 500;
    	font-size: 1.7vw;
    }
    
    .usd-amount {
        font-size: 1.4vw; /* smaller text */
        
    }
	
    .vstar-icon {
        width: 1.88vw;
        height: 1.88vw;
    }
    
    .vstar-count {
        font-size: 1.7vw;
        color: #fff;                 /* or your leaderboard text color */
    }

    /* Axie container mobile adjustments */
    .axie-img {
        width: 30vw;
    }

    .axie1-container {
        transform: translate(-2vw, 1.1vw);
    }

    .axie2-container {
        transform: translate(-14vw, 1.1vw);
    }

    .axie3-container {
        transform: translate(-26vw, 1.1vw);
    }

    /* Rune overlay mobile adjustments */
    .rune-img {
        width: 3.75vw;
        height: 3.75vw;
    }

    .rune-overlay {
        top: 4.3vw;
        left: 4vw;

    }
	
    
    /* Rune stars display in leaderboard */
    .rune-stars {

        padding: 1px;
		padding-bottom: 0px;

    }
    
    
    .rune-stars .star {
        font-size: 1.2vw;

        text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
       
    }

    /* Pagination mobile adjustments */
    .pagination-container {
        padding: 8px 15px;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    #pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    #pagination button {
        padding: 4px 12px;
        font-size: 1.8vw;
    }

    .logs-per-page {
        font-size: 1.8vw;
    }

    /* Popup adjustments */
    .popup-box {
        max-width: 90%;
        padding: 1.5rem;
    }

    .rune-charm-popup {
        width: 280px;
    }






}


@media screen and (max-width: 600px) {

    /* Show hamburger menu */
    .hamburger {
        display: flex;
    }

    /* Hide desktop auth buttons */
    .auth-buttons {
        display: none;
    }

    /* Container adjustments */



    /* Online indicator */
    .online-indicator {
        font-size: 10px;
        margin-left: 6px;
    }

    /* Large container mobile adjustments */
    #large-container {
        min-height: auto;
        margin-bottom: 80px; /* Account for pagination */
    }


    #text1 {
        width: 10%;
		font-size: 2vw;
    }

    #text2 {
        width: 15%;
		font-size: 2vw;
    }

    #text3 {
        width: 60%;
		font-size: 2vw;
    }

    #text4 {
        width: 15%;
		font-size: 2vw;
    }

    /* Player row mobile adjustments */
    .player-row {
        height: 16vw; /* roughly 100px at your scale */
    }


    .player-rank {
        width: 10%;
        font-size: 1.8vw;
    }

    .player-id {
        width: 15%;
        font-size: 1.8vw;
    }

    .player-team {
        width: 60%;
		
    }

    .player-reward {
        width: 15%;
		
    }
	
    .axs-icon {
        width: 2.4vw;
        height: 2.4vw;
    }
    
    .axs-amount {
        gap: 4px; /* space between icon and text */
        font-weight: 500;
    	font-size: 1.8vw;
    }
    
    .usd-amount {
        font-size: 1.5vw; /* smaller text */
        
    }
	
    .vstar-icon {
        width: 1.88vw;
        height: 1.88vw;
    }
    
    .vstar-count {
        font-size: 1.8vw;
        color: #fff;                 /* or your leaderboard text color */
    }

    /* Axie container mobile adjustments */
    .axie-img {
        width: 32vw;
    }

    .axie1-container {
        transform: translate(-2vw, 2.25vw);
    }

    .axie2-container {
        transform: translate(-16vw, 2.25vw);
    }

    .axie3-container {
        transform: translate(-30vw, 2.25vw);
    }

    /* Rune overlay mobile adjustments */
    .rune-img {
        width: 4.2vw;
        height: 4.2vw;
    }

    .rune-overlay {
        top: 4.3vw;
        left: 4.4vw;

    }
	
    
    /* Rune stars display in leaderboard */
    .rune-stars {

        padding: 1px;
		padding-bottom: 0px;

    }
    
    
    .rune-stars .star {
        font-size: 1.2vw;

        text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
       
    }

    /* Pagination mobile adjustments */
    .pagination-container {
        padding: 8px 15px;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    #pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    #pagination button {
        padding: 4px 12px;
        font-size: 1.8vw;
    }

    .logs-per-page {
        font-size: 1.8vw;
    }


    /* Popup adjustments */
    .popup-box {
        max-width: 90%;
        padding: 1.5rem;
    }

    .rune-charm-popup {
        width: 280px;
    }


}


@media screen and (max-width: 480px) {


    /* Hide desktop navigation */
    .nav_links {
        display: none;
    }

    /* Show hamburger menu */
    .hamburger {
        display: flex;
    }


	.convert-amount-input{
		
		width: 70px;
		
	}


 

    /* Large container mobile adjustments */
    #large-container {
        min-height: auto;
        margin-bottom: 80px; /* Account for pagination */
    }


    #text1 {
        width: 10%;
		font-size: 2.4vw;
    }

    #text2 {
        width: 15%;
		font-size: 2.4vw;
    }

    #text3 {
        width: 60%;
		font-size: 2.4vw;
    }

    #text4 {
        width: 15%;
		font-size: 2.4vw;
    }

    /* Player row mobile adjustments */
    .player-row {
        height: 19vw; /* roughly 100px at your scale */
    }


    .player-rank {
        width: 10%;
        font-size: 2.3vw;
    }

    .player-id {
        width: 15%;
        font-size: 2.1vw;
    }

    .player-team {
        width: 60%;
		
    }

    .player-reward {
        width: 15%;
		
    }
	
    .axs-icon {
        width: 2.7vw;
        height: 2.7vw;
    }
    
    .axs-amount {
        gap: 4px; /* space between icon and text */
        font-weight: 500;
    	font-size: 2.3vw;
    }
    
    .usd-amount {
        font-size: 2vw; /* smaller text */
        
    }
	
    .vstar-icon {
        width: 2vw;
        height: 2vw;
    }
    
    .vstar-count {
        font-size: 2.1vw;
        color: #fff;                 /* or your leaderboard text color */
    }

    /* Axie container mobile adjustments */
    .axie-img {
        width: 35vw;
    }

    .axie1-container {
        transform: translate(-4vw, 3.3vw);
    }

    .axie2-container {
        transform: translate(-21vw, 3.3vw);
    }

    .axie3-container {
        transform: translate(-38vw, 3.3vw);
    }

    /* Rune overlay mobile adjustments */
    .rune-img {
        width: 4.7vw;
        height: 4.7vw;
    }

    .rune-overlay {
        top: 4.3vw;
        left: 4.7vw;

    }
	
    
    /* Rune stars display in leaderboard */
    .rune-stars {

        padding: 1px;
		padding-bottom: 0px;


    }
    
    
    .rune-stars .star {
        font-size: 1.4vw !important;

        text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
       
    }

    /* Pagination mobile adjustments */
    .pagination-container {
        padding: 8px 15px;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    #pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    #pagination button {
        padding: 4px 12px;
        font-size: 2.7vw;
    }

    .logs-per-page {
        font-size: 2.2vw;
    }
	
	
	#logs-per-page {
		
		font-size: 2.7vw;
		
	}
	

    /* Popup adjustments */
    .popup-box {
        max-width: 90%;
        padding: 1.5rem;
    }



    .rune-charm-popup {
        width: 280px;
    }


    /* Online indicator */
    .online-indicator {
        font-size: 9px;
        margin-left: 6px;
    }

}





@media screen and (max-width: 400px) {


    /* Hide desktop navigation */
    .nav_links {
        display: none;
    }



    /* Hide desktop auth buttons */
    .auth-buttons {
        display: none;
    }



 


    /* Large container mobile adjustments */
    #large-container {
        min-height: auto;
        margin-bottom: 80px; /* Account for pagination */
    }


    #text1 {
        width: 10%;
		font-size: 2.4vw;
    }

    #text2 {
        width: 15%;
		font-size: 2.4vw;
    }

    #text3 {
        width: 60%;
		font-size: 2.4vw;
    }

    #text4 {
        width: 15%;
		font-size: 2.4vw;
    }

    /* Player row mobile adjustments */
    .player-row {
        height: 19vw; /* roughly 100px at your scale */
    }


    .player-rank {
        width: 10%;
        font-size: 2.3vw;
    }

    .player-id {
        width: 15%;
        font-size: 2.3vw;
    }

    .player-team {
        width: 60%;
		
    }

    .player-reward {
        width: 15%;
		
    }
	
    .axs-icon {
        width: 2.7vw;
        height: 2.7vw;
    }
    
    .axs-amount {
        gap: 4px; /* space between icon and text */
        font-weight: 500;
    	font-size: 2.3vw;
    }
    
    .usd-amount {
        font-size: 2vw; /* smaller text */
        
    }
	
    .vstar-icon {
        width: 2vw;
        height: 2vw;
    }
    
    .vstar-count {
        font-size: 2.1vw;
        color: #fff;                 /* or your leaderboard text color */
    }

    /* Axie container mobile adjustments */
    .axie-img {
        width: 35vw;
    }

    .axie1-container {
        transform: translate(-4vw, 3.3vw);
    }

    .axie2-container {
        transform: translate(-21vw, 3.3vw);
    }

    .axie3-container {
        transform: translate(-38vw, 3.3vw);
    }

    /* Rune overlay mobile adjustments */
    .rune-img {
        width: 4.7vw;
        height: 4.7vw;
    }

    .rune-overlay {
        top: 4.3vw;
        left: 4.7vw;

    }
	
    
    /* Rune stars display in leaderboard */
    .rune-stars {

        padding: 1px;
		padding-bottom: 0px;


    }
    
    
    .rune-stars .star {
        font-size: 1.4vw !important;

        text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
       
    }

    /* Pagination mobile adjustments */
    .pagination-container {
        padding: 8px 15px;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    #pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    #pagination button {
        padding: 4px 12px;
        font-size: 2.7vw;
    }

    .logs-per-page {
        font-size: 2.2vw;
    }
	
	
	#logs-per-page {
		
		font-size: 2.7vw;
		
	}
	

    /* Popup adjustments */
    .popup-box {
        max-width: 90%;
        padding: 1.5rem;
    }



    .rune-charm-popup {
        width: 280px;
    }



}


















/* --- Sliding Panel Styles --- */

/* Default state for the wrapper on desktop */
.sliding-panel-wrapper {
    position: relative; /* Keep it in the document flow on desktop */
}

.sliding-panel-toggle {
    display: none; /* Hide toggle button on desktop */
}

@media screen and (max-width: 768px) {

    .sliding-panel-wrapper {
        position: fixed;
        top: 0;
        right: 0;
        width: 320px;
        max-width: 85%;
        height: 100%;
        z-index: 1003;
        display: flex;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        /* --- OPTIMIZATION: --- */
        /* Promote this element to its own layer for smoother animation. */
        /* This tells the browser to expect a change in the transform property. */
        will-change: transform;
    }
    
    .sliding-panel-wrapper.active {
        transform: translateX(0); /* slide in */
    }

    .sliding-panel-wrapper .input-container {
        width: 100%;
        height: 100%;
        min-width: unset;
        max-width: unset;
        border-radius: 0;
        border: none;
        border-left: 1px solid rgba(235, 255, 255, 0.1);
        padding-top: 20px;
		padding: 20px;
        overflow-y: auto;
    }

    .sliding-panel-toggle {
        display: flex;
        position: absolute;
        left: -40px;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 60px;
        background: #13161B;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-right: none;
        color: #EB4A57;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        border-top-left-radius: 12px;
        border-bottom-left-radius: 12px;
        z-index: -1;
    }

    .sliding-panel-toggle i {
        transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        /* --- OPTIMIZATION (Minor): --- */
        /* Promoting the icon's transform can also help. */
        will-change: transform;
    }
    
    .sliding-panel-wrapper.active .sliding-panel-toggle i {
        transform: rotate(180deg);
    }

    .panel-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 1002;
        opacity: 0;
        visibility: hidden;
        /* --- OPTIMIZATION (Minor): --- */
        /* will-change is also useful for opacity transitions. */
        will-change: opacity;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        /* --- REMOVED for performance --- */
        /* backdrop-filter: blur(5px); */
    }

    .panel-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}
@media (min-width: 1600px) and (max-width: 1920px) {
    #text3 {
        /* Shift content 50px to the left */
        transform: translateX(-60px);
    }
}




