.ogr-wrap {
    --size: 28px;
    --gap: 6px;
    display: block;
    font: 14px / 1.2 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    text-align: center;
}

.ogr-stars {
    display: flex
;
    gap: var(--gap);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.ogr-btn {
    position: relative;
    font-size: 60px;
    line-height: 1;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}


.ogr-btn.grad{
  background-image: linear-gradient(90deg, #ff9800 var(--pct, 0%), #999 var(--pct, 0%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent; /* Chromium/Safari */
  color: transparent;                    /* Firefox */
}
.ogr-btn.grad{ color: #999; }
.ogr-btn:hover,
.ogr-btn.hover {
    color: #36f456;
}
/* JS sets .hover on move; make hovered stars fully gold */
.ogr-btn.hover{
  background-image: none !important;
  -webkit-text-fill-color: #ff5722 !important;
  color: #ff5722 !important;
}
.ogr-wrap.ogr-busy .ogr-btn {
    opacity: .6;
    pointer-events: none;
}

.ogr-stats {
    color: #a6a59a
}

.ogr-stats b {
    color: #eaeaea
}
.ogr-wrap.ogr-rated .ogr-btn {
    cursor: pointer;
}

/* Summary block */

.ogr-summary {
    margin: 10px 0 18px;
    font: 14px/1.35 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: #c9ced6;
}

.ogr-summary-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 6px 14px;
    align-items: center;
}

.ogr-summary-label {
    grid-column: 1;
    grid-row: 1;
    color: #9aa0a6;
    white-space: nowrap;
}

.ogr-summary-stars {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ogr-summary-count {
    grid-column: 2;
    grid-row: 2;
    color: #9aa0a6;
}

.ogr-stars-vis {
    position: relative;
    display: inline-block;
    font-size: 18px;
    letter-spacing: 2px;
    line-height: 1;
}

.ogr-stars-vis .ogr-stars-bg {
    color: #3d4250;
}

.ogr-stars-vis .ogr-stars-fg {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    color: #f5a623;
    pointer-events: none;
}

.ogr-summary-avg b {
    color: #eaeaea;
    font-weight: 700;
}

.avg-percent {
    backdrop-filter: blur(5px);
    padding: 4px 8px;
    display: flex
;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    width: 100%;
}



/* Colors — adjust to your palette */



/* lime-500 (switch text to dark) */
.avg-percent.ogr-tier-4 {
    background: #29994e28;
    color: #6eff74;
}
.avg-percent.ogr-tier-3 {
    background: #99e8e029;
    color: #5eded2;
}
.avg-percent.ogr-tier-2 {
    background: #ff98002b;
    color: #ff9800;
}


/* amber-500 */

.avg-percent.ogr-tier-1 {
    background: #ff110029;
    color: #ff1100;
}


/* red-500   */

.avg-percent.ogr-tier-0 {
    background: #6b728045;
    color: #ffffff;
}


/* gray-500  */