.category-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.ranking-board {
    border: 0 !important;
    align-items: stretch;
    gap: 20px;
    background: transparent;
}

.ranking-tabs {
    border: 0 !important;
    background: #fff;
}

.ranking-panel {
    align-self: stretch;
    background: #fff;
}

.ranking-panel.is-active {
    display: flex;
    min-height: 100%;
    flex-direction: column;
}

.ranking-panel-foot {
    margin-top: auto;
}

.ranking-tabs button {
    border: 0 !important;
    transition: color 150ms ease, background-color 150ms ease;
}

.ranking-tabs button:hover,
.ranking-tabs button.is-active {
    color: var(--rose);
    background: #ececec;
}

.public-rank-row {
    min-height: 58px;
    transition: background-color 150ms ease;
}

.public-rank-row:hover {
    background: #ececec;
}

.ranking-panel .public-rank-score b {
    display: grid;
    width: 48px;
    height: 48px;
    margin: 0 auto;
    place-items: center;
    border-radius: 50%;
    color: var(--score-text, var(--rose));
    background: var(--score-bg, var(--rose-soft));
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.ranking-panel .public-rank-score small {
    display: block;
    margin-top: 4px;
}

.category-card:hover {
    background: #ececec;
}

.message-section {
    border-top: 0;
    background: transparent !important;
}

.site-footer {
    margin-top: 0 !important;
    color: #fff;
    background: #111315;
}

.friend-links-section {
    padding: 16px 0 5px;
    border: 0;
    background: transparent;
}

.friend-links-title {
    display: block;
    margin-bottom: 8px;
    color: #15171c;
    font-size: 16px;
}

.friend-links-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 6px;
}

.friend-links-grid a {
    display: flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    color: #15171c;
    border: 0;
    background: transparent;
    font-size: 14px;
    text-align: center;
    transition: color 150ms ease, background-color 150ms ease;
}

.friend-links-grid a:hover {
    color: #15171c;
    background: #ececec;
}

.site-footer .logo-copy strong,
.site-footer .footer-links strong,
.site-footer .footer-contact strong {
    color: #fff;
}

.site-footer .footer-brand p,
.site-footer .footer-contact p,
.site-footer .footer-links a,
.site-footer .footer-contact a,
.site-footer .footer-bottom {
    color: #b9bdc1;
}

.site-footer .footer-links a:hover,
.site-footer .footer-contact a:hover {
    color: #fff;
}

.site-footer .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 900px) {
    .friend-links-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .friend-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
