.ranking-container {
    width: 285px;
    height: 485px;
    border: 6px solid #00c8ff;
    background: rgba(255, 255, 255, 0.9);
    box-sizing: border-box;
    border-radius: 30px;
    position: relative;
    margin-top: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.3);
    justify-self: center;
}

.ranking-title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    background: linear-gradient(45deg, #4d77ff, #00c8ff);
    color: white;
    margin: 0;
    border-radius: 8px;
    text-decoration: none;
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.5);

    display: flex;
    align-items: center;
    text-decoration: underline;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 200, 255, 0.3);
    border: 2px solid #00c8ff;
    padding: 8px 20px 10px 16px;
}

.ranking-content {
    height: calc(100% - 30px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    box-sizing: border-box;
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.ranking-entry {
    padding: 5px 15px 5px 15px;
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.9) 0%, rgba(77, 119, 255, 0.8) 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    grid-template-columns: fit-content(100%) auto;
    margin: 10px 0;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    justify-content: space-between;
    display: flex;

    align-items: center;
}

.ranking-entry:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(77, 119, 255, 0.3);
}

.ranking-entry:hover::before {
    left: 100%;
}

.ranking-position {
    font-weight: 900;
    color: #4d77ff;
    margin-right: 8px;
    text-shadow: 0 0 8px rgba(77, 119, 255, 0.3);
}

.ranking-info {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
}

.ranking-info.needs-animation:hover .ranking-nickname {
    animation: slide-text 2s linear infinite alternate;
}

@keyframes slide-text {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(var(--translate-distance, 0));
    }
}

.ranking-nickname {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin: 0;

    white-space: nowrap;
    transition: transform 2s linear;
    cursor: pointer;
}

.ranking-wins {
    font-size: 14px;
    color: #000bff;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0, 200, 255, 0.2);

    margin-left: 20px;
    white-space: nowrap;
}


.ranking-content::-webkit-scrollbar {
    width: 6px;
}

.ranking-content::-webkit-scrollbar-track {
    background: rgba(77, 119, 255, 0.1);
    border-radius: 3px;
}

.ranking-content::-webkit-scrollbar-thumb {
    background: linear-gradient(#4d77ff, #00c8ff);
    border-radius: 3px;
}

.last-winner h2,
.ranking-list h2 {
    font-size: 16px;
    padding-bottom: 3px;
    position: relative;
    color: #4d77ff;
    text-align: center;

    display: flex;
    align-items: center;
    justify-content: center;
}

.last-winner {
    padding-top: 12px;
    padding-bottom: 8px;
}

.last-winner h2::after,
.ranking-list h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00c8ff, transparent);
}

.no-players-text {
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.9) 0%, rgba(77, 119, 255, 0.8) 100%);
    color: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.no-winners-previous-day-text{
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.9) 0%, rgba(77, 119, 255, 0.8) 100%);
    color: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.icon-container {
    position: relative;
    display: inline-block;
}

.icon-home-ranking-title {
    width: 28px;
    height: 28px;
    margin-right: 4px;
}

.firefly {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0 6px white, 0 0 12px white, 0 0 18px white;
    z-index: 10;
}

@keyframes firefly-random {
    0%, 100% { 
        opacity: 0; 
        transform: scale(0.5);
    }
    20%, 80% { 
        opacity: 1; 
        transform: scale(1);
    }
    40% { 
        opacity: 0.7; 
        transform: scale(1.2);
    }
    60% { 
        opacity: 0.9; 
        transform: scale(0.8);
    }
}


.icon-home-ranking-last-winner {
    width: 21px;
    height: 21px;
    margin-right: 4px;
}

.icon-home-ranking-daily {
    width: 21px;
    height: 21px;
    margin-right: 4px;
}

@media only screen
  and (min-width: 973px)
  and (max-width: 1200px)
  and (orientation: landscape) {

    #main-content-column-2{
        display: none;
    }

}

@media only screen and (orientation: portrait), (max-aspect-ratio: 4/3) {

    #main-content-column-2{
        display: none;
    }

}


@media only screen and (max-width: 1024px) and (orientation: landscape) {

    #main-content-column-2{
        display: none;
    }

}