.rating-color-example {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.rating-color-blue { background-color: #2754c5; border-color: #1e3f94; }
.rating-color-green { background-color: #1f8a56; border-color: #176741; }
.rating-color-orange { background-color: #c86a1f; border-color: #955018; }
.rating-color-red { background-color: #b43a34; border-color: #8b2c27; }
.rating-color-gray { background-color: #667085; border-color: #475467; }

.rating-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 24px;
    padding: 0 6px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    vertical-align: middle;
    white-space: nowrap;
}

.rating-badge--compact {
    position: absolute;
    top: -4px;
    right: -8px;
    z-index: 10;
    min-width: 22px;
    height: 18px;
    padding: 0 4px;
    border-radius: 5px;
    font-size: 8px;
}

.rating-badge--lg {
    min-width: 56px;
    height: 38px;
    padding: 0 12px;
    font-size: 20px;
    border-radius: 10px;
    font-weight: 800;
    letter-spacing: 0;
}

.rating-badge--perfect::after,
.rating-ten-icon::after {
    content: '★';
    position: absolute;
    top: -6px;
    right: -5px;
    width: 13px;
    height: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f5c451;
    border: 1px solid #d4a32a;
    color: #4f3a08;
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    box-sizing: border-box;
}

.rating-ten-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 20px;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid #1e3f94;
    background-color: #2754c5;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.result-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 24px;
    padding: 0 6px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.result-badge--win { background-color: #1f8a56; border-color: #176741; }
.result-badge--loss { background-color: #b43a34; border-color: #8b2c27; }
.result-badge--neutral { background-color: #667085; border-color: #475467; }

.rating-summary-card {
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.rating-summary-card--blue {
    background-color: #2754c5;
    border-color: #1e3f94;
    color: #fff;
}

.rating-summary-card--green {
    background-color: #1f8a56;
    border-color: #176741;
    color: #fff;
}

.rating-summary-card--orange {
    background-color: #c86a1f;
    border-color: #955018;
    color: #fff;
}

.rating-summary-card--red {
    background-color: #b43a34;
    border-color: #8b2c27;
    color: #fff;
}

.rating-summary-card--gray {
    background-color: #667085;
    border-color: #475467;
    color: #fff;
}

.rating-summary-card[class*='rating-summary-card--'] .rating-summary-label {
    color: rgba(255, 255, 255, 0.82);
}
