/* One world histogram. Exact score marks and clustered, native friend disclosures. */
.score-comparison { --friend-yellow: #efd15b; min-width: 0; }
.score-comparison-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 12px; }
.score-comparison-heading .eyebrow, .score-comparison-heading time { font-size: 12px; margin: 0; color: var(--muted); }
.score-comparison .score-comparison-title { font-size: clamp(23px,6vw,30px); line-height: 1.16; letter-spacing: -.025em; margin: 0; max-width: 24ch; }
.score-comparison .score-exact-count { font-size: 14px; margin: 10px 0 8px; }
.score-comparison .standing-summary { margin: 8px 0; gap: 8px 16px; }
.score-comparison .standing-rank { font-size: 24px; }
.score-comparison .standing-rank span { font-size: 14px; }
.score-comparison .standing-score { font-size: 13px; }
.score-comparison .small { font-size: 12px; line-height: 1.5; }
.score-comparison-plot { margin: 20px 0 0; }
.score-comparison-plot figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 6px; font-size: 13px; }
.score-comparison-plot .score-chart-scale { font-size: 12px; font-weight: 400; text-align: right; }
.score-plot-area { position: relative; padding-top: 32px; margin-inline: 22px; }
.score-comparison-plot .score-world-bars { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); align-items: end; height: 112px; gap: 4px; margin: 0; padding: 0; overflow: visible; list-style: none; border-bottom: 1px solid var(--control-rule); }
.score-comparison-plot .score-world-bars > li { position: relative; display: flex; align-items: end; height: 100%; padding: 0; margin: 0; min-width: 0; }
.score-world-bars .distribution-world { display: block; width: 100%; height: calc(var(--share)*1%); background: var(--pitch); opacity: .8; border-radius: 4px 4px 0 0; }
.score-self-marker { position: absolute; left: calc(var(--position)*1%); top: 0; bottom: 0; width: 2px; background: var(--ink); transform: translateX(-50%); pointer-events: none; }
.score-self-marker > i { position: absolute; bottom: -5px; left: 50%; width: 10px; height: 10px; transform: translateX(-50%); background: var(--ink); border-radius: 50%; }
.score-self-marker > span { position: absolute; top: 0; left: 50%; transform: translateX(-50%); padding: 3px 5px; background: var(--bg); border: 1px solid var(--control-rule); border-radius: 5px; font-size: 12px; line-height: 1.4; font-weight: 600; white-space: nowrap; }
.score-self-marker[data-edge="start"] > span { transform: none; }
.score-self-marker[data-edge="end"] > span { transform: translateX(-100%); }
.score-friend-points { position: absolute; inset: auto 0 0; height: 1px; pointer-events: none; }
.score-friend-points > i { position: absolute; left: calc(var(--position)*1%); top: -5px; width: 11px; height: 11px; transform: translateX(-50%); border: 1px solid var(--night); border-radius: 50%; background: var(--friend-yellow); }
.score-axis { display: flex; justify-content: space-between; margin: 10px 22px 0; font-size: 12px; font-variant-numeric: tabular-nums; }
.score-friend-markers { position: relative; margin: 0 22px; padding-top: 44px; min-height: 44px; }
.score-friend-group { margin: 0; padding: 0; border: 0; }
.score-friend-group > summary { position: absolute; top: 0; left: calc(var(--position)*1%); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%; transform: translateX(-50%); cursor: pointer; list-style: none; }
.score-friend-group > summary::marker { content: ''; }
.score-friend-group > summary::-webkit-details-marker { display: none; }
.score-friend-target { display: flex; align-items: center; justify-content: center; width: 25px; height: 25px; border: 1px solid var(--night); border-radius: 50%; background: var(--friend-yellow); color: var(--night); font-size: 12px; font-weight: 700; }
.score-friend-group[open] > summary .score-friend-target { outline: 2px solid var(--ink); outline-offset: 3px; }
.score-friend-popover { margin: 4px -22px 10px; border: 1px solid var(--control-rule); border-radius: 10px; padding: 12px; background: color-mix(in srgb,var(--friend-yellow) 15%,var(--bg)); }
.score-friend-popover .score-group-label { margin: 0 0 8px; font-size: 12px; font-weight: 600; }
.score-friend-popover ul { margin: 0; padding: 0; list-style: none; }
.score-friend-popover li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; text-align: left; padding: 8px 0; border-top: 1px solid var(--rule); font-size: 14px; }
.score-friend-popover li > span { min-width: 0; overflow-wrap: anywhere; }
.score-friend-popover strong { flex: none; font-size: 16px; white-space: nowrap; }
.score-friend-popover small { font-size: 12px; font-weight: 400; }
.score-comparison-plot .score-marker-help { margin: 4px 0 12px; }
.score-chart-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 12px 0 8px; padding: 0; }
.score-chart-legend > li { display: flex; align-items: center; gap: 6px; font-size: 12px; text-align: left; }
.score-chart-legend i { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.score-key-you { background: var(--ink); }
.score-key-friends { background: var(--friend-yellow); border: 1px solid var(--night); }
.score-key-world { background: var(--pitch); border-radius: 2px !important; }
.score-comparison-plot .score-chart-cohort { margin: 0; color: var(--muted); }
.score-comparison .friends-comparison { margin-top: 16px; padding-top: 12px; }
.friends-completion { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.friends-completion > p { flex: 1 1 150px; margin: 0; font-size: 12px; }
.friends-completion > button { flex: none; min-height: 44px; font-size: 12px; }
.friend-score-details { border-top: 1px solid var(--rule); margin-top: 8px; }
.friend-score-details > summary { display: flex; justify-content: space-between; align-items: center; min-height: 44px; gap: 12px; padding: 10px 0; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.friend-score-details > summary::marker { content: ''; }
.friend-score-details > summary::-webkit-details-marker { display: none; }
.friend-score-details > summary::after { content: '+'; font-size: 20px; font-weight: 400; }
.friend-score-details[open] > summary::after { content: '−'; }
.comparison-card--compact .score-comparison-plot { margin-top: 16px; }
@media(max-width:359px) {
  .score-comparison { padding: 14px; }
  .score-comparison .score-comparison-title { font-size: 23px; }
  .score-plot-area, .score-friend-markers { margin-inline: 22px; }
  .score-comparison-plot .score-world-bars { gap: 3px; }
}
