/* Core Player Products V2 — /joueurs, /contrats, /<p>/contrat, /classement, /<p>/legacy.
   Même grammaire que la Player Journey V2 : Hero plein cadre sombre, corps en bandes
   éditoriales sur les tokens du thème (clair par défaut, sombre via [data-theme="dark"]). */

body.pp-page .bg {
    background:
        radial-gradient(ellipse 70% 40% at 15% 0%, color-mix(in srgb, var(--pp-accent, #d9ae4a) 14%, transparent) 0%, transparent 60%),
        var(--dark);
}

body.pp-page .bg::after {
    display: none;
}

.pp-page {
    --pp-accent: #d9ae4a;
    --pp-hero-text: #f7f3ea;
    --pp-hero-muted: rgba(247, 243, 234, 0.82);
    --pp-rule: var(--border);
    --pp-surface: var(--card-strong);
}

.pp-page--contract { --pp-accent: #6f9bff; }
.pp-page--legacy { --pp-accent: #c9a24c; }

main.pp-main {
    position: relative;
    z-index: 1;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* ——— Hero ——— */
.pp-hero {
    position: relative;
    overflow: hidden;
    color: var(--pp-hero-text);
    background:
        radial-gradient(ellipse 55% 90% at 88% 30%, color-mix(in srgb, var(--pp-accent) 30%, transparent) 0%, transparent 62%),
        linear-gradient(120deg, #070b16 0%, #0d1428 55%, #121a33 100%);
    border-bottom: 3px solid var(--pp-accent);
}

.pp-hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--d3-shell-hero-copy, 1280px);
    margin: 0 auto;
    padding: clamp(32px, 5vw, 64px) clamp(16px, 4vw, 40px) clamp(28px, 4vw, 48px);
}

.pp-hero-inner--split {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: clamp(20px, 4vw, 56px);
    align-items: center;
}

.pp-hero h1 {
    margin: 0;
    max-width: min(100%, var(--d3-shell-hero-copy, 1280px));
    font-family: "Bebas Neue", "Inter", sans-serif;
    font-weight: 400;
    font-size: clamp(40px, 5.4vw, 88px);
    line-height: 0.94;
    letter-spacing: 0.01em;
    color: var(--pp-hero-text);
}

.pp-hero-lede {
    margin: 18px 0 0;
    max-width: 52ch;
    font-size: clamp(17px, 1.8vw, 21px);
    line-height: 1.45;
    font-weight: 600;
    color: var(--pp-hero-muted);
}

.pp-hero-meta {
    margin: 14px 0 0;
    font-size: clamp(15px, 1.6vw, 18px);
    font-weight: 600;
    color: var(--pp-hero-muted);
}

.pp-hero-figure {
    margin: 22px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
}

.pp-hero-figure strong {
    font-family: "Bebas Neue", "Inter", sans-serif;
    font-weight: 400;
    font-size: clamp(56px, 7vw, 96px);
    line-height: 0.9;
    color: var(--pp-hero-text);
}

.pp-hero-figure span {
    font-size: 17px;
    font-weight: 700;
    color: var(--pp-hero-muted);
}

.pp-hero-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(247, 243, 234, 0.18);
}

.pp-hero-nav a {
    color: var(--pp-hero-text);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

.pp-hero-nav a:hover,
.pp-hero-nav a:focus-visible {
    border-bottom-color: var(--pp-accent);
}

.pp-hero-portrait {
    justify-self: center;
    width: min(100%, 300px);
    aspect-ratio: 1;
    object-fit: cover;
    object-position: 50% 20%;
    border-radius: 50%;
    border: 3px solid var(--pp-accent);
    background: radial-gradient(circle at 50% 30%, #243150, #0b1122);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 10px color-mix(in srgb, var(--pp-accent) 12%, transparent);
}

.pp-hero-portrait--initials {
    display: grid;
    place-items: center;
    font-family: "Bebas Neue", sans-serif;
    font-size: 88px;
    color: var(--pp-hero-text);
}

.pp-kicker {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.pp-kicker--hero {
    color: var(--pp-accent);
}

/* ——— Corps ——— */
.pp-body {
    max-width: 1180px;
    margin: 0 auto;
    padding: 8px clamp(16px, 4vw, 40px) 24px;
}

.pp-band {
    padding: clamp(32px, 5vw, 56px) 0;
    border-bottom: 1px solid var(--pp-rule);
}

.pp-band:last-child {
    border-bottom: 0;
}

.pp-section-head {
    margin-bottom: 22px;
}

.pp-section-head h2 {
    margin: 0;
    font-size: clamp(26px, 3.4vw, 40px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text);
}

.pp-lede {
    margin: 10px 0 0;
    max-width: 62ch;
    font-size: 16px;
    line-height: 1.55;
    color: var(--muted);
}

.pp-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 22px 0 0;
}

.pp-links a,
.pp-cta {
    color: var(--text);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: var(--pp-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.pp-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.pp-note {
    margin: 14px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
}

/* ——— Top 10 Ballon d'Or IQ ——— */
.pp-iq-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.pp-iq {
    position: relative;
    display: grid;
    gap: 14px;
    color: inherit;
    text-decoration: none;
}

.pp-iq--podium {
    padding: 22px;
    border-radius: 18px;
    border: 1px solid var(--pp-rule);
    border-top: 4px solid var(--pp-accent);
    background: var(--pp-surface);
    justify-items: start;
}

.pp-iq--podium:first-child {
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, color-mix(in srgb, var(--pp-accent) 18%, transparent), transparent 70%),
        var(--pp-surface);
}

.pp-iq-rank {
    font-family: "Bebas Neue", "Inter", sans-serif;
    font-size: 44px;
    line-height: 1;
    color: var(--pp-accent);
}

.pp-iq--podium .pp-iq-rank {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 64px;
}

.pp-iq-portrait {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 20%;
    background: radial-gradient(circle at 50% 30%, #243150, #0b1122);
    border: 3px solid var(--pp-accent);
}

.pp-iq-body {
    display: grid;
    gap: 4px;
}

.pp-iq-body strong {
    font-size: 22px;
    line-height: 1.2;
    color: var(--text);
}

.pp-iq-club {
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
}

.pp-iq-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    font-size: 15px;
    color: var(--text);
}

.pp-iq-cta {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--pp-accent);
    text-underline-offset: 4px;
}

.pp-iq-cta--none {
    text-decoration: none;
    font-weight: 600;
    color: var(--muted);
}

.pp-delta {
    font-size: 13px;
    font-weight: 800;
}

.pp-delta--up { color: #1a8a4a; }
.pp-delta--down { color: #c0392b; }
[data-theme="dark"] .pp-delta--up { color: #4ade80; }
[data-theme="dark"] .pp-delta--down { color: #ff8a80; }

.pp-iq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
    margin-top: 22px;
    border-top: 1px solid var(--pp-rule);
}

.pp-iq--row {
    grid-template-columns: 44px 56px minmax(0, 1fr);
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--pp-rule);
}

.pp-iq--row .pp-iq-rank {
    font-size: 32px;
}

.pp-iq--row .pp-iq-portrait {
    width: 56px;
    height: 56px;
    border-width: 2px;
}

.pp-iq--row .pp-iq-body strong {
    font-size: 17px;
}

.pp-iq--row .pp-iq-cta {
    display: none;
}

a.pp-iq:hover strong,
a.pp-iq:focus-visible strong {
    text-decoration: underline;
    text-decoration-color: var(--pp-accent);
    text-underline-offset: 4px;
}

/* ——— Cartes joueurs ——— */
.pp-priority-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.pp-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.pp-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--pp-rule);
    background: var(--pp-surface);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.pp-card[hidden] {
    display: none;
}

.pp-card:hover,
.pp-card:focus-visible {
    border-color: var(--pp-accent);
    transform: translateY(-1px);
}

.pp-card--priority {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 18px 12px;
    border-top: 3px solid var(--pp-accent);
}

.pp-card-portrait {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 20%;
    background: radial-gradient(circle at 50% 30%, #243150, #0b1122);
}

.pp-card--priority .pp-card-portrait {
    width: 96px;
    height: 96px;
    border: 2px solid var(--pp-accent);
}

.pp-card-portrait--initials {
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #f7f3ea;
}

.pp-card-body {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.pp-card-body strong {
    font-size: 16px;
    line-height: 1.25;
    color: var(--text);
}

.pp-card-club {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.pp-card-meta {
    font-size: 13px;
    color: var(--muted);
}

/* ——— Filtres ——— */
.pp-filters {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.pp-filter input,
.pp-filter select {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--pp-rule);
    background: var(--pp-surface);
    color: var(--text);
    font: inherit;
    font-size: 15px;
}

.pp-count {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
}

.pp-empty {
    padding: 24px 0;
    color: var(--muted);
}

/* ——— Responsive ——— */
@media (max-width: 1024px) {
    .pp-priority-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pp-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .pp-hero-inner--split {
        grid-template-columns: minmax(0, 1fr);
    }

    .pp-hero-portrait {
        order: -1;
        justify-self: start;
        width: 140px;
    }

    .pp-iq-podium {
        grid-template-columns: minmax(0, 1fr);
    }

    .pp-iq--podium {
        grid-template-columns: 96px minmax(0, 1fr);
        align-items: center;
    }

    .pp-iq--podium .pp-iq-portrait {
        width: 96px;
        height: 96px;
    }

    .pp-iq--podium .pp-iq-rank {
        font-size: 48px;
    }

    .pp-iq-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .pp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pp-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pp-filter--search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .pp-hero h1 {
        font-size: 52px;
    }

    .pp-priority-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pp-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .pp-card--grid {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 10px;
        padding: 8px 10px;
    }

    .pp-card--grid .pp-card-portrait {
        width: 44px;
        height: 44px;
    }

    .pp-filters {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ——— Contract Watch V2 ——— */
.pp-contract-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.pp-contract {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--pp-rule);
    border-top: 3px solid var(--pp-accent);
    background: var(--pp-surface);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.pp-contract:hover,
.pp-contract:focus-visible {
    transform: translateY(-1px);
    border-color: var(--pp-accent);
}

.pp-contract-portrait,
.pp-featured-portrait {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 20%;
    background: radial-gradient(circle at 50% 30%, #243150, #0b1122);
}

.pp-contract-portrait--initials,
.pp-featured-portrait--initials {
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #f7f3ea;
}

.pp-contract-body {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.pp-contract-body strong {
    font-size: 17px;
    line-height: 1.25;
    color: var(--text);
}

.pp-contract-club,
.pp-contract-end {
    font-size: 14px;
    color: var(--muted);
}

.pp-contract-club {
    font-weight: 700;
    color: var(--text);
}

.pp-contract-remaining {
    margin-top: 4px;
    font-family: "Bebas Neue", "Inter", sans-serif;
    font-size: 30px;
    line-height: 1;
    color: var(--text);
}

.pp-contract-stake {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}

.pp-contract-stake--expiring_soon {
    color: #b45309;
}

[data-theme="dark"] .pp-contract-stake--expiring_soon {
    color: #fbbf24;
}

.pp-featured {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: clamp(20px, 4vw, 44px);
    align-items: center;
    padding: clamp(20px, 3vw, 32px);
    border-radius: 20px;
    border: 1px solid var(--pp-rule);
    border-top: 4px solid var(--pp-accent);
    background:
        radial-gradient(ellipse 70% 80% at 100% 0%, color-mix(in srgb, var(--pp-accent) 16%, transparent), transparent 70%),
        var(--pp-surface);
    color: inherit;
    text-decoration: none;
}

.pp-featured-portrait {
    width: 220px;
    height: 220px;
    border: 3px solid var(--pp-accent);
}

.pp-featured-body {
    display: grid;
    gap: 8px;
}

.pp-featured-club {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.pp-featured-figure {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
}

.pp-featured-figure strong {
    font-family: "Bebas Neue", "Inter", sans-serif;
    font-weight: 400;
    font-size: clamp(48px, 6vw, 80px);
    line-height: 0.95;
    color: var(--text);
}

.pp-featured-figure span,
.pp-featured-line,
.pp-featured-note {
    font-size: 16px;
    color: var(--muted);
}

.pp-featured-line {
    color: var(--text);
    font-weight: 600;
}

.pp-progress {
    display: block;
    height: 8px;
    margin: 8px 0 0;
    max-width: 520px;
    border-radius: 999px;
    background: var(--pp-rule);
    overflow: hidden;
}

.pp-progress b {
    display: block;
    height: 100%;
    width: var(--pp-w);
    background: var(--pp-accent);
}

.pp-rows {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--pp-rule);
}

.pp-rows li a,
.pp-rows-head {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.8fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--pp-rule);
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
}

.pp-rows-head {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.pp-rows li a:hover strong {
    text-decoration: underline;
    text-decoration-color: var(--pp-accent);
}

.pp-row-remaining {
    font-weight: 800;
}

.pp-countdown {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    max-width: 760px;
}

.pp-countdown div {
    display: grid;
    gap: 4px;
    padding: 14px 10px;
    border-radius: 14px;
    border: 1px solid var(--pp-rule);
    background: var(--pp-surface);
    text-align: center;
}

.pp-countdown strong {
    font-family: "Bebas Neue", "Inter", sans-serif;
    font-weight: 400;
    font-size: clamp(36px, 4.5vw, 56px);
    line-height: 1;
    color: var(--text);
}

.pp-countdown span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.pp-facts {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.pp-fact-list {
    margin: 0;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--pp-rule);
}

.pp-fact-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--pp-rule);
}

.pp-fact-list dt {
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
}

.pp-fact-list dd {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    text-align: right;
}

.pp-fact-card {
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--pp-rule);
    background: var(--pp-surface);
}

.pp-fact-figure {
    margin: 4px 0 0;
    font-family: "Bebas Neue", "Inter", sans-serif;
    font-size: clamp(34px, 3.6vw, 46px);
    line-height: 1;
    color: var(--text);
}

.pp-note a,
.pp-history a {
    color: var(--text);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--pp-accent);
}

.pp-history {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid var(--pp-rule);
}

.pp-history li {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
    padding: 0 0 18px 18px;
    position: relative;
}

.pp-history li::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--dark);
    border: 2px solid var(--pp-accent);
}

.pp-history-when {
    font-size: 14px;
    font-weight: 800;
    color: var(--muted);
}

.pp-history-body {
    display: grid;
    gap: 4px;
    font-size: 15px;
    color: var(--text);
}

.pp-history-meta {
    font-size: 13px;
    color: var(--muted);
}

.pp-cta--solid {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--text);
    color: var(--dark);
    text-decoration: none;
}

.pp-cta--solid:hover,
.pp-cta--solid:focus-visible {
    background: var(--pp-accent);
    color: #0a0f1c;
}

.pp-iq-cta-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
}

/* Sections « Stories » injectées par le worker dans les pages produits */
main.pp-main > .universe-stories {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 56px) clamp(16px, 4vw, 40px);
}

@media (max-width: 1024px) {
    .pp-contract-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pp-facts {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .pp-fact-list {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .pp-contract-grid,
    .pp-facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .pp-featured {
        grid-template-columns: minmax(0, 1fr);
    }

    .pp-featured-portrait {
        width: 120px;
        height: 120px;
    }

    .pp-countdown {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pp-rows-head {
        display: none;
    }

    .pp-rows li a {
        grid-template-columns: minmax(0, 1fr) auto;
        row-gap: 2px;
    }

    .pp-rows li a span:nth-child(2),
    .pp-rows li a span:nth-child(3) {
        grid-column: 1;
        font-size: 13px;
        color: var(--muted);
    }

    .pp-row-remaining {
        grid-column: 2;
        grid-row: 1;
    }

    .pp-history li {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }
}

/* ——— Legacy Ranking / Legacy Journey V2 ——— */
.pp-legacy-podium {
    position: relative;
    display: grid;
    gap: 14px;
    justify-items: start;
    padding: 22px;
    border-radius: 18px;
    border: 1px solid var(--pp-rule);
    border-top: 4px solid var(--pp-accent);
    background: var(--pp-surface);
    color: inherit;
    text-decoration: none;
}

.pp-legacy-podium:first-child {
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, color-mix(in srgb, var(--pp-accent) 18%, transparent), transparent 70%),
        var(--pp-surface);
}

.pp-legacy-podium .pp-iq-rank {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 64px;
}

.pp-legacy-podium:hover strong,
.pp-legacy-podium:focus-visible strong {
    text-decoration: underline;
    text-decoration-color: var(--pp-accent);
    text-underline-offset: 4px;
}

.pp-legacy-score {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 4px;
}

.pp-legacy-score b {
    font-family: "Bebas Neue", "Inter", sans-serif;
    font-weight: 400;
    font-size: 52px;
    line-height: 1;
    color: var(--text);
}

.pp-legacy-score span,
.pp-legacy-pillar {
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
}

.pp-legacy-summary {
    font-size: 15px;
    line-height: 1.45;
    color: var(--text);
}

.pp-lr {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
    border-top: 1px solid var(--pp-rule);
}

.pp-lr li a {
    display: grid;
    grid-template-columns: 34px 44px minmax(0, 1fr) 90px 44px;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--pp-rule);
    color: var(--text);
    text-decoration: none;
}

.pp-lr-rank {
    font-family: "Bebas Neue", "Inter", sans-serif;
    font-size: 26px;
    color: var(--pp-accent);
}

.pp-lr-portrait {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 20%;
    background: radial-gradient(circle at 50% 30%, #243150, #0b1122);
}

.pp-lr-portrait--initials {
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800;
    color: #f7f3ea;
}

.pp-lr-name {
    display: grid;
    min-width: 0;
}

.pp-lr-name strong {
    font-size: 15px;
}

.pp-lr-name span {
    font-size: 13px;
    color: var(--muted);
}

.pp-pillars b {
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pp-accent) var(--pp-w), var(--pp-rule) var(--pp-w));
}

.pp-lr-bar {
    position: relative;
    display: block;
    height: 6px;
    border-radius: 999px;
    background: var(--pp-rule);
}

.pp-lr-bar b {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--pp-w);
    border-radius: 999px;
    background: var(--pp-accent);
}

.pp-lr-score {
    font-weight: 800;
    text-align: right;
}

.pp-lr li a:hover .pp-lr-name strong {
    text-decoration: underline;
    text-decoration-color: var(--pp-accent);
}

.pp-movers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pp-movers a {
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--pp-rule);
    background: var(--pp-surface);
    color: var(--text);
    text-decoration: none;
}

.pp-pillars-explain {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.pp-pillars-explain li {
    display: grid;
    gap: 6px;
    align-content: start;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--pp-rule);
    border-top: 3px solid var(--pp-accent);
    background: var(--pp-surface);
    font-size: 14px;
    line-height: 1.45;
    color: var(--text);
}

.pp-weight {
    font-family: "Bebas Neue", "Inter", sans-serif;
    font-size: 30px;
    line-height: 1;
    color: var(--pp-accent);
}

.pp-pillars {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
    max-width: 860px;
}

.pp-pillars li {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr) 44px;
    gap: 6px 16px;
    align-items: center;
}

.pp-pillar-label {
    display: grid;
}

.pp-pillar-label strong {
    font-size: 16px;
    color: var(--text);
}

.pp-pillar-label em {
    font-style: normal;
    font-size: 12px;
    color: var(--muted);
}

.pp-pillar-score {
    font-weight: 800;
    text-align: right;
    color: var(--text);
}

.pp-pillar-plain {
    grid-column: 2 / 4;
    font-size: 14px;
    color: var(--muted);
}

.pp-evolution {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
}

.pp-evolution li {
    display: grid;
}

.pp-evolution strong {
    font-family: "Bebas Neue", "Inter", sans-serif;
    font-size: 44px;
    line-height: 1;
    color: var(--text);
}

.pp-evolution span {
    font-size: 13px;
    color: var(--muted);
}

.pp-share {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.pp-share-btn {
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(247, 243, 234, 0.4);
    background: transparent;
    color: var(--pp-hero-text);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.pp-share-btn--primary {
    border-color: var(--pp-accent);
    background: var(--pp-accent);
    color: #0a0f1c;
}

@media (max-width: 1024px) {
    .pp-pillars-explain {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .pp-lr {
        grid-template-columns: minmax(0, 1fr);
    }

    .pp-legacy-podium {
        grid-template-columns: 96px minmax(0, 1fr);
        align-items: center;
    }

    .pp-legacy-podium .pp-iq-portrait {
        width: 96px;
        height: 96px;
    }
}

@media (max-width: 600px) {
    .pp-pillars-explain {
        grid-template-columns: minmax(0, 1fr);
    }

    .pp-pillars li {
        grid-template-columns: minmax(0, 1fr) 44px;
    }

    .pp-pillars li b {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .pp-pillar-plain {
        grid-column: 1 / -1;
    }

    .pp-lr li a {
        grid-template-columns: 30px 40px minmax(0, 1fr) 40px;
    }

    .pp-lr-bar {
        display: none;
    }
}