
body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color); /* Use dark background from global style */
    color: var(--text-primary); /* Use primary text color from global style */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    margin: 0;
}

.page-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    padding: 20px;
}

.game-container {
    background-color: #000000; /* Explicitly dark background */
    border-radius: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 480px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.rankings-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.rankings-content h1 {
    font-size: 2rem; /* Smaller title size */
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

#ranking-list {
    width: 100%;
    margin-bottom: 2rem;
}

.rankings-section {
    width: 100%;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    text-align: left;
    margin: 0 0 0.6rem;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.ranking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    background-color: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-size: 0.95rem; /* Consistent with index.html subtitles */
    color: #ffffff;
    transition: all 0.2s ease-in-out; /* Smooth transition for emphasis */
}

/* Specific styles for top 3 ranks */
.ranking-item.rank-1 {
    font-size: 1.2rem;
    font-weight: 700;
    background-color: rgba(255, 215, 0, 0.2);
    color: #ffffff;
    border: 2px solid #ffd700; /* Gold border */
}

.ranking-item.rank-2 {
    font-size: 1.1rem;
    font-weight: 600;
    background-color: rgba(192, 192, 192, 0.2);
    color: #ffffff;
    border: 2px solid #c0c0c0; /* Silver border */
}

.ranking-item.rank-3 {
    font-size: 1.05rem;
    font-weight: 600;
    background-color: rgba(205, 127, 50, 0.2);
    color: #ffffff;
    border: 2px solid #cd7f32; /* Bronze border */
}

.ranking-item span:first-child {
    font-weight: 600;
    flex-grow: 1;
    text-align: left;
    color: #ffffff;
}

.ranking-item span:last-child {
    font-weight: 700;
    color: #ffffff;
}

.medal {
    display: inline-block;
    margin-right: 6px;
    font-size: 1.1em;
}

.medal.gold {
    color: #ffd700;
}

.medal.silver {
    color: #c0c0c0;
}

.medal.bronze {
    color: #cd7f32;
}

.no-rankings {
    color: #ffffff;
    font-size: 0.95rem; /* Consistent with index.html subtitles */
    padding: 1rem;
}

.rankings-content a {
    color: white; /* Changed to white for better visibility */
    text-decoration: none;
    font-size: 1.2rem; /* Increased font size for emphasis */
    font-weight: 600; /* Bolder text for emphasis */
    border: 2px solid var(--accent-primary);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: background-color 0.2s, color 0.2s;
}

.rankings-content a:hover {
    background-color: var(--accent-primary);
    font-weight: 700; /* Emphasized text on hover */
}
