* {
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
}

body {
    background: #0f172a;
    color: white;
    user-select: none;
}

h1 {
    text-align: center;
    padding: 16px;
}

.modes {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    flex-wrap: wrap;
}

.modes button {
    background: #1e293b;
    border: none;
    color: white;
    padding: 8px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.modes button:hover {
    background: #374151;
}

.modes button.active {
    background: #2563eb;
    box-shadow: 0 0 0 2px rgba(37,99,235,0.6);
}

.modes img {
    width: 18px;
    height: 18px;
}

.wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 10px;
}

.player {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: start;
    gap: 10px;
    background: #1e293b;
    border-radius: 12px;
    padding: 8px 10px;
    margin-bottom: 8px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 2px solid transparent;
}

.nickname {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.score {
    font-weight: 700;
    margin-bottom: 4px;
    text-align: left;
}

.tiers {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.tier-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
}

.tier-item img {
    width: 18px;
    height: 18px;
}

.top1 .avatar, .top1 .nickname { border-color: gold; color: gold; }
.top2 .avatar, .top2 .nickname { border-color: silver; color: silver; }
.top3 .avatar, .top3 .nickname { border-color: #cd7f32; color: #cd7f32; }

@media (max-width: 480px) {
    .player { grid-template-columns: 36px 1fr; }
    .tiers { grid-column: 1 / -1; margin-top: 4px; }
}

.projects-footer {
    max-width: 700px;
    margin: 20px auto;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    color: #cbd5e1;
}

.projects-footer a {
    color: #2563eb;
    text-decoration: none;
}

.projects-footer a:hover {
    text-decoration: underline;
}

.projects-footer ul {
    list-style: none;
    padding: 0;
    margin: 4px 0 0 0;
}

.projects-footer li {
    margin: 2px 0;

}
