/* app/shared/ergebnis-ring.css
   Etappe drei · gemeinsamer Baustein fuer Clubs, Leagues und Events.
   Jede Regel traegt beide Selektoren. Variablen tragen Rueckfaelle,
   damit sie in beiden Welten greifen.
   Erzeugt aus results_shared.css und den clubs-0x-Dateien.
*/

.pp-why-score-wrap, .why-score-wrap {
  margin-top: 18px;
}

.pp-why-score-wrap-pinned .pp-why-score-pinned-head, .why-score-wrap-pinned .why-score-pinned-head {
  display: inline-flex; align-items: center; gap: 8px;
  color: #F7F5F0; font: 600 13px/1 Inter, sans-serif;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.pp-why-score-wrap-pinned .pp-why-score-pinned-dot, .why-score-wrap-pinned .why-score-pinned-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--pp-gold, var(--gold)); color: #0D3D2D;
  font-style: normal; font-weight: 800; font-size: 11px; line-height: 1;
}

.pp-why-score-wrap-pinned .pp-why-score-panel, .why-score-wrap-pinned .why-score-panel {
  margin-top: 10px;
}

.pp-why-score-panel, .why-score-panel {
  margin-top: 12px;
  background: rgba(247, 245, 240, 0.06);
  border: 1px solid rgba(247, 245, 240, 0.14);
  border-radius: 4px;
  padding: 18px 20px;
  color: rgba(247, 245, 240, 0.92);
}

.pp-why-score-intro, .why-score-intro {
  font-size: 13px; line-height: 1.55;
  color: rgba(247, 245, 240, 0.78);
  margin-bottom: 14px;
}

.pp-why-score-rows, .why-score-rows {
  display: flex; flex-direction: column; gap: 10px;
}

.pp-why-row, .why-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 3px;
  border-left: 3px solid transparent;
}

.pp-why-row-ach, .why-row-ach {
  border-left-color: var(--pp-gold, var(--gold));
}

.pp-why-row-pot, .why-row-pot {
  border-left-color: #006F8A;
}

.pp-why-row-ceil, .why-row-ceil {
  border-left-color: rgba(247, 245, 240, 0.55);
}

.pp-why-row-left, .why-row-left {
  display: flex; align-items: center; gap: 12px; min-width: 0;
}

.pp-why-row-dot, .why-row-dot {
  flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--pp-gold, var(--gold));
}

.pp-why-row-pot .pp-why-row-dot, .why-row-pot .why-row-dot {
  background: #006F8A;
}

.pp-why-row-ceil .pp-why-row-dot, .why-row-ceil .why-row-dot {
  background: rgba(247, 245, 240, 0.75);
}

.pp-why-row-k, .why-row-k {
  font: 600 14px/1.2 Inter, sans-serif;
  color: #F7F5F0;
}

.pp-why-row-sub, .why-row-sub {
  font-size: 12px; line-height: 1.45;
  color: rgba(247, 245, 240, 0.66);
  margin-top: 2px;
}

.pp-why-row-v, .why-row-v {
  font: 700 18px/1 'DM Serif Display', serif;
  color: #F7F5F0;
  white-space: nowrap;
  flex: 0 0 auto;
}

.pp-why-row-v .pp-why-row-v-of, .why-row-v .why-row-v-of {
  font-size: 12px; font-weight: 400; opacity: 0.65; margin-left: 2px;
}

.pp-why-score-foot, .why-score-foot {
  margin-top: 14px;
  font-size: 12px; line-height: 1.5;
  color: rgba(247, 245, 240, 0.62);
  font-style: italic;
}

.pp-score-wrap, .score-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  /* Room for the callouts drawn outside the SVG viewBox: “Tier ceiling” above
  (negative y) and “Potential band” below right (y > 200). */
  padding-top: 22px;
  padding-bottom: 10px;
}

.pp-score-circle, .score-circle {
  width: 240px; height: 240px;
  position: relative;
}

.pp-score-circle svg.pp-hero-ring-svg, .score-circle svg.hero-ring-svg {
  width: 100%; height: 100%; overflow: visible;
}

.pp-score-circle-bg, .score-circle-bg {
  fill: none; stroke: rgba(247, 245, 240, 0.10); stroke-width: 14;
}

.pp-hero-ring-pot, .hero-ring-pot {
  fill: none;
  stroke: rgba(235, 112, 51, 0.30);
  stroke-width: 14;
  stroke-linecap: round;
  transition: stroke-dasharray 0.9s ease;
}

.pp-score-circle-fill, .score-circle-fill {
  fill: none;
  stroke-width: 14;
  stroke-linecap: round;
  transition: stroke-dasharray 0.9s ease;
}

.pp-hero-ring-ceil, .hero-ring-ceil {
  stroke: var(--pp-cream, var(--cream));
  stroke-width: 3;
  stroke-linecap: round;
  transition: transform 0.6s ease;
}

.pp-hero-ring-callouts .pp-hrc-line, .hero-ring-callouts .hrc-line {
  stroke: rgba(247, 245, 240, 0.55);
  stroke-width: 1;
}

.pp-hero-ring-callouts .pp-hrc-label, .hero-ring-callouts .hrc-label {
  font: 600 9.5px Inter, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  fill: rgba(247, 245, 240, 0.78);
}

.pp-hero-ring-callouts .pp-hrc-label-pot, .hero-ring-callouts .hrc-label-pot {
  fill: rgba(240, 146, 94, 0.92);
}

.pp-hero-ring-legend, .hero-ring-legend {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  margin-top: 10px;
  width: 100%;
  max-width: 240px;
  align-self: center;
}

.pp-hero-ring-legend .pp-hrl-item, .hero-ring-legend .hrl-item {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(245, 241, 230, 0.78);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.pp-hero-ring-legend .pp-hrl-sw, .hero-ring-legend .hrl-sw {
  display: inline-block; width: 10px; height: 10px; border-radius: 2px; justify-self: center;
}

.pp-hero-ring-legend .pp-hrl-sw-ach, .hero-ring-legend .hrl-sw-ach {
  background: linear-gradient(90deg, #EB7033, #006F8A);
}

.pp-hero-ring-legend .pp-hrl-sw-pot, .hero-ring-legend .hrl-sw-pot {
  background: rgba(235, 112, 51, 0.30);
}

.pp-hero-ring-legend .pp-hrl-sw-ceil, .hero-ring-legend .hrl-sw-ceil {
  width: 2px !important; height: 12px !important; background: var(--pp-cream, var(--cream)); border-radius: 0;
}

.pp-hero-ring-legend .pp-hrl-k, .hero-ring-legend .hrl-k {
  color: rgba(245, 241, 230, 0.62); text-align: left; cursor: help;
}

.pp-hero-ring-legend .pp-hrl-v, .hero-ring-legend .hrl-v {
  color: var(--pp-cream, var(--cream)); font-weight: 600; letter-spacing: 0.02em; text-transform: none;
  font-size: 12px; text-align: right; font-variant-numeric: tabular-nums;
}

.pp-score-pct, .score-pct {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 64px;
  line-height: 1;
  color: var(--pp-white, var(--white));
  cursor: help;
}

.pp-score-pct-lbl, .score-pct-lbl {
  font-size: 10px;
  color: var(--pp-cream, var(--cream));
  opacity: 0.62;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 6px;
  /* p82 Block D (2026-08-04): the label was a fixed 130px. On a 390px screen the ring shrinks
     from 240 to 160px, so the same 130px ran into the ring and touched the ceiling marker.
     A share of the ring keeps the desktop width unchanged and scales the phone down. */
  max-width: 54%;
  line-height: 1.35;
  text-align: center;
}

.pp-score-text, .score-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.pp-score-band, .score-band {
  font-size: 13px;
  color: #F0925E;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 6px 14px;
  background: rgba(235, 112, 51, 0.15);
  border-radius: 2px;
  align-self: center;
}

/* Nur Clubs: der Farbverlauf scoreGrad ist ausschliesslich in
   app/index.html definiert. Leagues und Events faerben den Ring
   ueber ihren eigenen Weg. */
.score-circle-fill {
  stroke: url(#scoreGrad);
}

/* p82 Block D (2026-08-04): on narrow screens the ring is a third smaller, so the headline
   figure inside it comes down with it and the label keeps room to breathe. */
@media (max-width: 640px) {
  .pp-score-pct, .score-pct { font-size: 48px; }
  .pp-score-pct-lbl, .score-pct-lbl { font-size: 11px; letter-spacing: 0.10em; margin-top: 4px; }
}
