/**
 * Anel + overlay para miniaturas (listagens, widgets, etc.) sem carregar o CSS completo da análise no artigo.
 * Autossuficiente: inclui o mesmo núcleo do anel que wp-game-catalog-review.css (linhas base do .wpgc-review-total-value-wrap).
 */

/* Anel (0–10): igual ao core — necessário quando o CSS principal não é carregado. */
.wpgc-review-total-value-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 4.25em;
	min-height: 4em;
	padding: 0.15em;
	overflow: visible;
}

.wpgc-review-total-value-wrap::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(5rem, 48%);
	max-width: 6.5rem;
	aspect-ratio: 1;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
	z-index: 0;
	pointer-events: none;
}

.wpgc-review-total-value-ring {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 1;
	transform: translate(-50%, -50%) scale(1.5);
	transform-origin: center center;
	width: min(100%, 14rem);
	height: auto;
	aspect-ratio: 1;
	border-radius: 50%;
	pointer-events: none;
	box-sizing: border-box;
	background: conic-gradient(
		from 0deg,
		var(--wpgc-ring-color, #888) calc(var(--wpgc-ring-pct, 0) * 1%),
		rgba(0, 0, 0, 0.12) 0
	);
	-webkit-mask: radial-gradient(farthest-side, transparent 52%, #000 53%, #000 64%, transparent 65%);
	mask: radial-gradient(farthest-side, transparent 52%, #000 53%, #000 64%, transparent 65%);
}

.wpgc-review-total-value-wrap > .wpgc-review-total-value {
	position: relative;
	z-index: 2;
}

.wpgc-review-total-value {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

/* --- overlay (miniaturas) --- */
.wpgc-post-thumbnail-with-score {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
}

.wpgc-post-thumbnail-with-score > .post-thumbnail,
.wpgc-post-thumbnail-with-score > figure {
	width: 100%;
	margin: 0;
}

.wpgc-featured-score-badge {
	position: absolute;
	top: max(0.65rem, 12px);
	left: max(0.65rem, 12px);
	z-index: 4;
	pointer-events: none;
	line-height: 0;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.wpgc-review-total-value-wrap--featured-overlay {
	width: 4.85rem;
	min-width: 4.85rem;
	min-height: 4.5rem;
	padding: 0.12em;
}

.wpgc-review-total-value-wrap--featured-overlay::before {
	width: 3.65rem;
	max-width: none;
}

.wpgc-review-total-value-wrap--featured-overlay .wpgc-review-total-value-ring {
	transform: translate(-50%, -50%) scale(1.12);
	width: min(100%, 4.35rem);
}

.wpgc-review-total-value-wrap--featured-overlay .wpgc-review-total-value {
	font-size: 1.35rem;
	font-weight: 700;
	color: #0f172a;
}

.wpgc-post-thumbnail-with-score a .wpgc-featured-score-badge .wpgc-review-total-value-wrap--featured-overlay .wpgc-review-total-value,
.boombox-post-card a .wpgc-featured-score-badge .wpgc-review-total-value-wrap--featured-overlay .wpgc-review-total-value {
	color: #0f172a;
}

@media (max-width: 480px) {
	.wpgc-review-total-value-wrap--featured-overlay {
		width: 4.1rem;
		min-width: 4.1rem;
		min-height: 3.85rem;
	}

	.wpgc-review-total-value-wrap--featured-overlay .wpgc-review-total-value {
		font-size: 1.15rem;
	}

	.wpgc-review-total-value-wrap--featured-overlay .wpgc-review-total-value-ring {
		width: min(100%, 3.75rem);
	}

	.wpgc-review-total-value-wrap--featured-overlay::before {
		width: 3.15rem;
	}
}

.editorial-card-thumb-link .wpgc-featured-score-badge .wpgc-review-total-value-wrap--featured-overlay .wpgc-review-total-value,
.editorial-featured-card-link .wpgc-featured-score-badge .wpgc-review-total-value-wrap--featured-overlay .wpgc-review-total-value {
	color: #0f172a;
}

.editorial-post-card-media.post-thumbnail,
.editorial-featured-card-media {
	position: relative;
}
