/* The PowerUp Score result card as a guide's lead graphic (inc/powerup-card.php).
   Copied from t-page-powerup-score.css (the dial, the Self-reported tag and the
   .vfps-rc card); keep the two in step. Scoped to the guide's figure. */
body.vf .vfr-image--score { --vfps-ease: cubic-bezier(.22, .61, .36, 1); }
body.vf .vfr-image--score .vfr-image__link { display: block; border-radius: 24px; color: inherit; text-decoration: none; transition: transform .35s var(--vfps-ease), box-shadow .35s var(--vfps-ease); }
body.vf .vfr-image--score .vfr-image__link:hover { transform: translateY(-3px); }
body.vf .vfr-image--score .vfr-image__link:focus-visible { outline: 3px solid #6C63FF; outline-offset: 4px; }
body.vf .vfr-image--score p, body.vf .vfr-image--score ul { margin-top: 0; }
body.vf .vfr-image--score .vfps-dial { position: relative; flex: none; width: 76px; height: 76px; }
body.vf .vfr-image--score .vfps-dial svg { display: block; width: 100%; height: 100%; overflow: visible; }
body.vf .vfr-image--score .vfps-dial__track, body.vf .vfr-image--score .vfps-dial__seg { fill: none; stroke-width: 11; stroke-linecap: round; transform-origin: 100px 100px; transition: stroke-dasharray .7s var(--vfps-ease), transform .7s var(--vfps-ease), opacity .3s; }
body.vf .vfr-image--score .vfps-dial__track { stroke: rgba(255, 255, 255, .13); }
body.vf .vfr-image--score .vfps-dial__seg { stroke: var(--c); filter: drop-shadow(0 0 6px var(--c)); }
body.vf .vfr-image--score .vfps-dial__orbit { display: none; fill: none; stroke: rgba(255, 255, 255, .2); stroke-width: 1; stroke-dasharray: 2 7; transform-origin: 100px 100px; animation: vfps-spin 40s linear infinite; }
body.vf .vfr-image--score .vfps-dial__n { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0; text-align: center; }
body.vf .vfr-image--score .vfps-dial__n b { font-size: 26px; line-height: 1; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
body.vf .vfr-image--score .vfps-dial__n span { display: none; margin-top: 6px; color: rgba(255, 255, 255, .7); font-size: 12px; line-height: 1.2; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
body.vf .vfr-image--score .vfps-rc .vfps-dial__n b { background: linear-gradient(100deg, #A9A3FF, #C98BEA 50%, #F08FE3); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.vf .vfr-image--score .vfps-self { display: inline-block; padding: 2px 8px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; color: rgba(255, 255, 255, .82); font-size: 10.5px; line-height: 1.4; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; vertical-align: middle; }
@keyframes vfps-spin { to { transform: rotate(360deg); } }
body.vf .vfr-image--score .vfps-rc { container-type: inline-size; border-radius: 24px; border: 1px solid transparent; background: linear-gradient(160deg, #1E2044, #13152E 60%, #0D0F1E) padding-box, linear-gradient(120deg, #6C63FF, #A05DEA 50%, #D656C8) border-box; box-shadow: 0 50px 110px -60px #A05DEA; color: #FFFFFF; }
body.vf .vfr-image--score .vfps-rc__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 26px 22px; }
body.vf .vfr-image--score .vfps-rc__test { margin: 0 0 10px; color: #C98BEA; font-size: 13px; line-height: 1.3; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
body.vf .vfr-image--score .vfps-rc__subject { margin: 0; color: rgba(255, 255, 255, .82); font-size: 19px; line-height: 1.3; font-weight: 700; }
body.vf .vfr-image--score .vfps-rc__band { margin: 6px 0 0; color: #FFFFFF; font-size: clamp(32px, 7cqw, 68px); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
body.vf .vfr-image--score .vfps-rc__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; }
body.vf .vfr-image--score .vfps-rc__note { padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; color: rgba(255, 255, 255, .86); font-size: 13px; line-height: 1.3; font-weight: 700; }
body.vf .vfr-image--score .vfps-rc__tags .vfps-self { padding: 6px 12px; font-size: 11.5px; }
body.vf .vfr-image--score .vfps-rc__dial { justify-self: center; }
body.vf .vfr-image--score .vfps-rc .vfps-dial { width: 200px; height: 200px; }
body.vf .vfr-image--score .vfps-rc .vfps-dial__n b { font-size: 76px; letter-spacing: -.05em; }
body.vf .vfr-image--score .vfps-rc .vfps-dial__n span { display: block; }
body.vf .vfr-image--score .vfps-rc .vfps-dial__orbit { display: block; animation: none; }
body.vf .vfr-image--score .vfps-rc__bars { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
body.vf .vfr-image--score .vfps-rc__bars li { display: grid; grid-template-columns: minmax(0, 120px) minmax(0, 1fr) 52px; align-items: center; gap: 10px; color: rgba(255, 255, 255, .86); font-size: 13.5px; line-height: 1.25; font-weight: 700; }
body.vf .vfr-image--score .vfps-rc__bars i { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .14); }
body.vf .vfr-image--score .vfps-rc__bars u { display: block; height: 100%; border-radius: inherit; background: var(--c); }
body.vf .vfr-image--score .vfps-rc__bars b { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
body.vf .vfr-image--score .vfps-rc__bars small { color: rgba(255, 255, 255, .6); font-size: 11.5px; font-weight: 600; }
body.vf .vfr-image--score .vfps-rc__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin: 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .6); font-size: 12px; line-height: 1.3; font-weight: 700; letter-spacing: .08em; }
@container (min-width: 700px) {
	body.vf .vfr-image--score .vfps-rc__in { aspect-ratio: 1200 / 630; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto auto; gap: 3cqw 5cqw; padding: 5cqw 6cqw 3.4cqw; align-items: center; }
	body.vf .vfr-image--score .vfps-rc__test { font-size: 1.5cqw; }
	body.vf .vfr-image--score .vfps-rc__subject { font-size: 2.5cqw; }
	body.vf .vfr-image--score .vfps-rc__note { font-size: 1.45cqw; }
	body.vf .vfr-image--score .vfps-rc__tags .vfps-self { font-size: 1.25cqw; }
	body.vf .vfr-image--score .vfps-rc .vfps-dial { width: 27cqw; height: 27cqw; }
	body.vf .vfr-image--score .vfps-rc .vfps-dial__n b { font-size: 10.5cqw; }
	body.vf .vfr-image--score .vfps-rc .vfps-dial__n span { font-size: 1.4cqw; }
	body.vf .vfr-image--score .vfps-rc__bars { grid-column: 1 / -1; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2.4cqw; }
	body.vf .vfr-image--score .vfps-rc__bars li { grid-template-columns: minmax(0, 1fr) auto; gap: .8cqw 1cqw; font-size: 1.45cqw; }
	body.vf .vfr-image--score .vfps-rc__bars li i { grid-column: 1 / -1; grid-row: 2; }
	body.vf .vfr-image--score .vfps-rc__bars li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	body.vf .vfr-image--score .vfps-rc__bars small { font-size: 1.2cqw; }
	body.vf .vfr-image--score .vfps-rc__foot { grid-column: 1 / -1; padding-top: 1.6cqw; font-size: 1.2cqw; }
}

/* The ring draws in once, then the bars fill. */
@keyframes vfps-card-ring { from { stroke-dasharray: 0 360; } }
@keyframes vfps-card-bar { from { width: 0; } }
body.vf .vfr-image--score .vfps-dial__seg { animation: vfps-card-ring 1.1s var(--vfps-ease) .2s both; }
body.vf .vfr-image--score .vfps-rc__bars u { animation: vfps-card-bar .9s var(--vfps-ease) .5s both; }
@media (prefers-reduced-motion: reduce) {
	body.vf .vfr-image--score .vfps-dial__seg, body.vf .vfr-image--score .vfps-rc__bars u { animation: none; }
	body.vf .vfr-image--score .vfr-image__link { transition: none; }
}
