.nl-rating-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .12rem .42rem;
    width: fit-content;
    max-width: 100%;
    min-height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: start;
    cursor: pointer;
}

.nl-rating-summary:focus-visible,
.nl-rating-choice:focus-visible,
.nl-rating-close:focus-visible {
    outline: 2px solid #dc9829;
    outline-offset: 3px;
}

.nl-rating-stars {
    position: relative;
    flex: 0 0 auto;
    color: #9e7845;
    font: 15px/1.2 system-ui, sans-serif;
    letter-spacing: .055em;
    white-space: nowrap;
}

.nl-rating-stars__fill {
    position: absolute;
    inset: 0;
    color: #e2a12c;
    clip-path: inset(0 calc(100% - var(--nl-rating-fill, 0%)) 0 0);
    transition: clip-path .3s ease;
}

.nl-rating-caption {
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
}

.nl-rating-dialog {
    box-sizing: border-box;
    width: min(388px, calc(100% - 28px));
    margin: auto;
    padding: 26px 14px 17px;
    border: 1px solid #866439;
    border-radius: 19px;
    background: #211a14;
    color: #fff8eb;
    text-align: center;
    box-shadow: 0 18px 66px #0009;
}

.nl-rating-dialog[open] {
    animation: nl-rating-appear .19s ease-out both;
}

.nl-rating-dialog::backdrop {
    background: #120b08b8;
}

.nl-rating-dialog h2 {
    margin: 0 28px 4px;
    font-size: 1.23rem;
    line-height: 1.25;
    color: inherit;
}

.nl-rating-name {
    margin: 0;
    color: #e3c9aa;
    overflow-wrap: anywhere;
}

.nl-rating-close {
    position: absolute;
    inset: 4px 4px auto auto;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #f1d8b8;
    font: 24px/1 system-ui, sans-serif;
    cursor: pointer;
}

.nl-rating-choices {
    display: flex;
    justify-content: center;
    gap: clamp(1px, 1vw, 6px);
    margin-top: 12px;
}

.nl-rating-choice {
    display: grid;
    place-items: center;
    min-width: 0;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: #ad906d;
    font: clamp(24px, 8vw, 33px)/1 system-ui, sans-serif;
    cursor: pointer;
    transition: color .14s ease, background .14s ease, border-color .14s ease;
}

.nl-rating-choice.is-lit {
    color: #ffc960;
}

.nl-rating-choice[aria-pressed="true"] {
    border-color: #ba873d;
    background: #ffc96016;
}

.nl-rating-choice[aria-disabled="true"] {
    cursor: wait;
}

.nl-rating-choice.is-celebrating span {
    animation: nl-rating-pop .4s cubic-bezier(.22, .75, .3, 1) both;
}

.nl-rating-status {
    min-height: 1.35em;
    margin: 9px 0 0;
    color: #f7d4a4;
    font-size: .875rem;
}

@keyframes nl-rating-appear {
    from { opacity: 0; transform: translateY(7px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes nl-rating-pop {
    0%, 100% { transform: scale(1); }
    48% { transform: scale(1.28); text-shadow: 0 0 11px #ffc960b3; }
}

@media (prefers-reduced-motion: reduce) {
    .nl-rating-dialog[open],
    .nl-rating-choice.is-celebrating span {
        animation: none;
    }

    .nl-rating-stars__fill,
    .nl-rating-choice {
        transition: none;
    }
}
