/* Player profile. Scoped under .pg-prof; --acc is the player's banner accent (a hand-made map in grok-enhancements.js). */
.pg-prof { --pf-gold: #e9c46f; --pf-tx: #eef1f6; --pf-mut: #9aa4b5; --pf-line: #ffffff14; --pf-card: #121824; --pf-win: #6fcf8f; --pf-loss: #ef7a6a; color: var(--pf-tx); font-family: Archivo, sans-serif; }
.pg-prof a { color: inherit; text-decoration: none; }
:where(.pg-prof) :where(h1, h2, h3, h4, p, ol, li, dl, dd, figure) { margin: 0; padding: 0; } /* zero specificity */
.pg-prof ol { list-style: none; }
.pg-prof :is(a, button, summary):focus-visible { outline: 2px solid var(--pf-gold); outline-offset: 3px; }

/* header: the banner full width, the avatar large and over its lower edge */
.pf-hero { position: relative; }
.pf-banner { position: relative; height: clamp(170px, 18.75vw, 380px); overflow: hidden; background: #0b0f17; }
.pf-banner-art { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
.pf-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #12181c 0%, rgb(18 24 28 / .35) 38%, rgb(18 24 28 / 0) 70%); }
.pf-id { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 28px; max-width: 1240px; margin: -84px auto 0; padding: 0 32px; box-sizing: border-box; }
.pg-prof .pf-av-img { display: block; width: 168px; height: 168px; border-radius: 50%; object-fit: cover; background: #0b0f17; box-shadow: 0 0 0 5px #12181c, 0 0 0 8px var(--acc), 0 24px 48px -20px #000; }
.pf-name { min-width: 0; padding-bottom: 6px; }
.pf-name h1 { font: 800 clamp(48px, 5.6vw, 84px)/.9 'Big Shoulders Display', sans-serif; color: #fff; overflow-wrap: anywhere; text-shadow: 0 2px 24px #0008; }
.pf-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
.pf-level { display: inline-flex; align-items: center; gap: 7px; color: var(--pf-mut); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.pf-level b { display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid var(--acc); border-radius: 50%; color: #fff; font: 700 17px/1 'Big Shoulders Display', sans-serif; letter-spacing: 0; }
.pf-team { padding: 6px 12px; border: 1px solid #ffffff26; border-radius: 999px; color: #dfe4ec; font-size: 13px; font-weight: 600; transition: border-color .15s ease; }
.pf-team:hover { border-color: var(--acc); color: #fff; }
.pf-team-live { border-color: #e9c46f88; color: #e9c46f; }
.pf-team-more { color: var(--pf-mut); font-size: 13px; }
.pf-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pf-badges:empty { display: none; }
.pf-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 4px; background: #ffffff0d; color: #cfd6e0; font-size: 13px; }
.pf-badge b { color: #fff; }
.pf-badge-gold { background: #e9c46f1f; color: var(--pf-gold); font-weight: 700; box-shadow: inset 0 0 0 1px #e9c46f66; }
.pf-actions { display: grid; justify-items: end; gap: 14px; padding-bottom: 10px; }
.pf-btns { display: flex; align-items: center; gap: 10px; }
.pf-actions .pf-search { width: 340px; }
.pf-copy { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1.5px solid var(--pf-gold); border-radius: 4px; background: transparent; color: var(--pf-gold); font: 700 14px/1 Archivo, sans-serif; cursor: pointer; }
.pf-copy:hover { background: var(--pf-gold); color: #11141a; }

/* body column */
.pf-body { max-width: 1240px; margin: 0 auto; padding: 28px 32px 80px; box-sizing: border-box; }
.pf-sec { margin-top: 72px; }
.pf-sec-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px 24px; margin-bottom: 22px; }
.pf-sec-h h2 { font: 800 clamp(30px, 3vw, 42px)/1 'Big Shoulders Display', sans-serif; text-transform: uppercase; color: #f6eedd; }
.pf-sec-h p { color: var(--pf-mut); font-size: 14px; }
.pf-note { margin-top: 14px; color: var(--pf-mut); font-size: 13px; }

/* signature numbers: hierarchy by size, no boxes */
.pf-sig { margin-top: 20px; }
.pf-bigs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.pf-big { display: grid; align-content: start; gap: 2px; padding-top: 18px; border-top: 2px solid var(--acc); }
.pf-big b { font: 800 clamp(64px, 7vw, 104px)/.9 'Big Shoulders Display', sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.pf-big span { color: #d6dce6; font-size: 15px; font-weight: 600; }
.pf-big small { color: var(--acc); font-size: 13px; font-weight: 600; }
.pf-minor { display: flex; flex-wrap: wrap; gap: 14px 44px; margin-top: 28px; }
.pf-minor div { display: grid; }
.pf-minor dt { order: 2; color: var(--pf-mut); font-size: 12px; }
.pf-minor dd { order: 1; font: 700 26px/1.1 'Big Shoulders Display', sans-serif; color: #e4e9f0; }

/* against the field */
.pf-field-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.pf-radar svg { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto; overflow: visible; }
.pf-radar-ring { fill: none; stroke: #ffffff17; stroke-width: 1; }
.pf-radar-axis { stroke: #ffffff12; stroke-width: 1; }
.pf-radar-shape { fill: color-mix(in srgb, var(--acc) 26%, transparent); stroke: var(--acc); stroke-width: 2.5; stroke-linejoin: round; }
.pf-radar-dot { fill: #12181c; stroke: var(--acc); stroke-width: 2.5; }
.pf-radar-l { fill: #e4e9f0; font: 600 14px Archivo, sans-serif; }
.pf-radar-v { fill: #9aa4b5; font: 500 12px Archivo, sans-serif; }
.pf-strengths h3 { color: var(--pf-mut); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.pf-strengths ol { display: grid; gap: 22px; margin-top: 16px; }
.pf-strengths li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: baseline; padding-bottom: 18px; border-bottom: 1px solid var(--pf-line); }
.pf-strengths li b { font: 800 44px/1 'Big Shoulders Display', sans-serif; color: var(--acc); }
.pf-strengths li span { color: #e4e9f0; font-size: 18px; font-weight: 600; }
.pf-strengths li small { grid-column: 2; color: var(--pf-mut); font-size: 13px; }

/* best game + career side by side */
.pf-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.pf-best-card { position: relative; display: grid; gap: 10px; padding: 26px 28px; border-radius: 8px; background: linear-gradient(140deg, color-mix(in srgb, var(--acc) 16%, #121824), #121824 60%); box-shadow: inset 0 0 0 1px #ffffff12; transition: transform .2s ease; }
.pf-best-card:hover { transform: translateY(-3px); }
.pf-best-kda { display: flex; gap: 28px; }
.pf-best-kda span { display: grid; }
.pf-best-kda b { font: 800 64px/.95 'Big Shoulders Display', sans-serif; color: #fff; }
.pf-best-kda span:first-child b { color: var(--acc); }
.pf-best-kda small { color: var(--pf-mut); font-size: 12px; }
.pf-best-vs { font-size: 17px; color: #dfe4ec; }
.pf-best-vs b { color: #fff; }
.pf-best-ctx { color: var(--pf-mut); font-size: 14px; }
.pf-best-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: #c9d0db; font-size: 13px; }
.pf-best-go { margin-top: 6px; color: var(--pf-gold); font-weight: 700; font-size: 14px; }
.pf-tl { position: relative; display: grid; gap: 0; }
.pf-tl-item { position: relative; padding: 0 0 26px 30px; border-left: 2px solid #ffffff1c; }
.pf-tl-item:last-child { padding-bottom: 4px; }
.pf-tl-item::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #12181c; border: 2px solid #ffffff55; }
.pf-tl-item.is-champ::before { background: var(--pf-gold); border-color: var(--pf-gold); }
.pf-tl-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.pf-tl-ev { font: 800 26px/1.05 'Big Shoulders Display', sans-serif; text-transform: uppercase; color: #fff; }
.pf-tl-ev:hover { color: var(--pf-gold); }
.pf-crown { display: inline-flex; align-items: center; gap: 5px; color: var(--pf-gold); font-size: 13px; font-weight: 700; }
.pf-runner { color: #c9d6e0; font-size: 13px; font-weight: 700; }
.pf-tl-teams { margin-top: 4px; color: #dfe4ec; font-size: 15px; font-weight: 600; }
.pf-tl-teams a:hover { color: var(--acc); }
.pf-tl-rec { margin-top: 2px; color: var(--pf-mut); font-size: 13px; }
.pf-tl-rec b { color: #e4e9f0; }

/* match history */
.pf-form { display: flex; align-items: center; gap: 4px; }
.pf-form i { width: 8px; height: 22px; border-radius: 2px; background: var(--pf-loss); opacity: .85; }
.pf-form i.w { background: var(--pf-win); }
.pf-form span { margin-left: 10px; color: var(--pf-mut); font-size: 12px; }
.pf-mh-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-chips button, .pf-more-toggle { min-height: 36px; padding: 0 15px; border: 1px solid #ffffff2b; border-radius: 999px; background: transparent; color: #d6dce6; font: 600 13px/1 Archivo, sans-serif; cursor: pointer; }
.pf-chips button:hover, .pf-more-toggle:hover { border-color: var(--pf-gold); color: #fff; }
.pf-chips button[aria-pressed="true"], .pf-more-toggle[aria-pressed="true"] { background: var(--pf-gold); border-color: var(--pf-gold); color: #11141a; }
.pf-mh-note { margin-top: 12px; color: var(--pf-mut); font-size: 13px; }
.pf-ev { margin-top: 34px; }
.pf-ev[hidden] { display: none; }
.pf-ev-h { display: flex; align-items: baseline; gap: 14px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--pf-line); font: 800 24px/1 'Big Shoulders Display', sans-serif; text-transform: uppercase; color: var(--pf-gold); }
.pf-ev-h small { color: var(--pf-mut); font: 600 13px Archivo, sans-serif; text-transform: none; }
.pf-series { position: relative; margin-top: 8px; border-radius: 6px; background: var(--pf-card); overflow: hidden; }
.pf-series::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--pf-loss); }
.pf-series.is-win::before { background: var(--pf-win); }
.pf-s-many { color: #c9d0db; font-weight: 600; }
.pf-series summary { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) auto 64px 74px 20px; align-items: center; gap: 18px; min-height: 64px; padding: 10px 20px 10px 24px; cursor: pointer; list-style: none; }
.pf-series summary::-webkit-details-marker { display: none; }
.pf-series summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--pf-mut); border-bottom: 2px solid var(--pf-mut); transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; justify-self: end; }
.pf-series[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.pf-series summary:hover { background: #ffffff06; }
.pf-s-round { color: #c9d0db; font-size: 13px; font-weight: 600; }
.pf-s-teams { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; font-size: 16px; }
.pf-s-teams b:first-child { color: #fff; }
.pf-s-teams b:last-child { color: #c9d0db; font-weight: 600; }
.pf-s-vs { color: #6c7688; font-size: 12px; }
.pf-s-score { display: inline-flex; align-items: center; gap: 6px; font: 800 30px/1 'Big Shoulders Display', sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.pf-s-score span { color: #6c7688; font-size: 20px; }
.pf-series.is-win .pf-s-score b:first-child { color: var(--pf-win); }
.pf-series.is-loss .pf-s-score b:last-child { color: var(--pf-loss); }
.pf-s-res { font-size: 13px; font-weight: 700; color: var(--pf-loss); }
.is-win .pf-s-res { color: var(--pf-win); }
.pf-s-n { color: var(--pf-mut); font-size: 12px; text-align: right; }
.pf-games { padding: 0 12px 6px 16px; border-top: 1px solid var(--pf-line); }
.pf-game { display: grid; grid-template-columns: 150px minmax(0, 1fr) 52px 300px; align-items: center; gap: 18px; min-height: 52px; padding: 8px 10px; border-bottom: 1px solid #ffffff0a; transition: background .15s ease; }
.pf-games li:last-child .pf-game { border-bottom: 0; }
.pf-game:hover { background: #ffffff08; }
.pf-g-label { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; color: var(--pf-gold); font-weight: 700; font-size: 14px; }
.pf-g-label small { flex-basis: 100%; color: #c9d0db; font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-tag { padding: 2px 6px; border-radius: 3px; background: #ffffff14; color: #dfe4ec; font: 700 10px/1.3 Archivo, sans-serif; font-style: normal; letter-spacing: .06em; }
.pf-tag-mvp { background: var(--pf-gold); color: #11141a; }
.pf-g-map { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pf-chip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 10px; border-radius: 4px; background: #ffffff0f; color: #e4e9f0; font-size: 13px; font-weight: 600; }
.pf-g-map small { color: var(--pf-mut); font-size: 12px; }
.pf-g-res { font-size: 13px; font-weight: 700; color: var(--pf-loss); }
.is-win .pf-g-res { color: var(--pf-win); }
.pf-g-kda { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pf-kda { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 5px; }
.pf-kda b { font: 700 20px/1 'Big Shoulders Display', sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.pf-kda i { color: var(--pf-mut); font: 600 11px Archivo, sans-serif; font-style: normal; }
.pf-kda s { grid-column: 1 / -1; display: block; height: 3px; margin-top: 5px; border-radius: 2px; background: var(--acc); text-decoration: none; }
.pf-kda-d s { background: #8a93a3; }
.pf-kda-a s { background: #c9d0db; }
.pf-g-more { display: none; grid-column: 2 / -1; gap: 18px; color: var(--pf-mut); font-size: 13px; }
.pf-g-more b { color: #dfe4ec; font-weight: 600; }
.show-more .pf-g-more { display: flex; flex-wrap: wrap; }
.pf-s-links { padding: 6px 26px 14px; color: var(--pf-mut); font-size: 13px; }
.pf-s-links a { color: #dfe4ec; border-bottom: 1px solid #ffffff33; }
.pf-s-links a:hover { color: var(--pf-gold); }

/* reduced variant and unknown player */
.pf-invite { max-width: 720px; margin-top: 40px; padding: 36px 0 0; border-top: 2px solid var(--acc); }
.pf-invite h2 { font: 800 44px/1 'Big Shoulders Display', sans-serif; text-transform: uppercase; color: #f6eedd; }
.pf-invite p { margin-top: 14px; color: #c9d0db; font-size: 16px; line-height: 1.55; }
.pf-invite-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 26px; }
.pf-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 4px; background: var(--pf-gold); color: #11141a !important; font: 700 15px/1 Archivo, sans-serif; }
.pf-btn:hover { background: #f4d68c; }
.pf-link { color: var(--pf-gold) !important; font-weight: 600; border-bottom: 1px solid #e9c46f55; }
.pf-missing { padding-top: 48px; }
.pf-missing .pf-search { margin: 0 0 48px; }
.pf-missing h1 { font: 800 clamp(44px, 6vw, 80px)/.95 'Big Shoulders Display', sans-serif; color: #f6eedd; overflow-wrap: anywhere; }
.pf-missing p { margin: 14px 0 26px; color: #c9d0db; font-size: 16px; }

/* loading: the same shapes while the board arrives */
.pf-skel { display: block; border-radius: 6px; background: linear-gradient(90deg, #ffffff0a, #ffffff17, #ffffff0a) 0 0 / 200% 100%; animation: pf-shimmer 1.4s linear infinite; }
.pf-skel-av { width: 168px; height: 168px; border-radius: 50%; }
.pf-skel-line { width: 320px; max-width: 70vw; height: 18px; margin-top: 14px; }
.pf-skel-block { height: 220px; margin-top: 28px; }
@keyframes pf-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .pf-skel { animation: none; } }
@media (prefers-reduced-motion: reduce) { .pf-best-card, .pf-series summary::after, .pf-team { transition: none; } .pf-best-card:hover { transform: none; } }

@media (min-width: 1700px) { .pf-id, .pf-body { max-width: 1440px; } }
@media (max-width: 1080px) {
  .pf-field-grid, .pf-pair { grid-template-columns: 1fr; gap: 40px; }
  .pf-pair .pf-sec + .pf-sec { margin-top: 0; }
  .pf-game { grid-template-columns: 130px minmax(0, 1fr) 46px 240px; }
  .pf-actions .pf-search { width: 280px; }
}
@media (max-width: 760px) {
  .pf-banner { height: 150px; }
  .pf-id { grid-template-columns: auto minmax(0, 1fr); gap: 14px 16px; margin-top: -58px; padding: 0 16px; }
  .pg-prof .pf-av-img { width: 104px; height: 104px; box-shadow: 0 0 0 4px #12181c, 0 0 0 6px var(--acc); }
  .pf-name { grid-column: 1 / -1; padding: 0; }
  .pf-skel-av { width: 104px; height: 104px; }
  .pf-name h1 { font-size: 46px; }
  .pf-actions { display: contents; }
  .pf-btns { grid-row: 1; grid-column: 2; justify-self: end; align-self: end; padding-bottom: 4px; }
  .pf-actions .pf-search { grid-column: 1 / -1; width: 100%; margin-top: 4px; }
  .pf-copy span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .pf-copy { min-height: 42px; padding: 0 12px; }
  .pf-body { padding: 20px 16px 56px; }
  .pf-search { max-width: none; }
  .pf-sec { margin-top: 52px; }
  .pf-bigs { gap: 14px; }
  .pf-big b { font-size: 46px; }
  .pf-big span { font-size: 12px; }
  .pf-big small { font-size: 11px; }
  .pf-minor { gap: 12px 26px; }
  .pf-minor dd { font-size: 22px; }
  .pf-strengths li b { font-size: 36px; }
  .pf-strengths li span { font-size: 16px; }
  .pf-best-card { padding: 20px; }
  .pf-best-kda b { font-size: 52px; }
  .pf-mh-head { display: grid; }
  .pf-form i { width: 7px; height: 18px; }
  /* a series is two lines: teams, then round / score / result */
  .pf-series summary { grid-template-columns: minmax(0, 1fr) auto 16px; grid-template-areas: "teams score chev" "round res chev"; gap: 4px 12px; padding: 12px 14px 12px 18px; }
  .pf-s-teams { grid-area: teams; font-size: 15px; }
  .pf-s-score { grid-area: score; font-size: 26px; }
  .pf-s-round { grid-area: round; font-size: 12px; }
  .pf-s-res { grid-area: res; justify-self: end; font-size: 12px; }
  .pf-s-n { display: none; }
  .pf-series summary::after { grid-area: chev; }
  /* a game is two lines: label / map / result, then K D A */
  .pf-games { padding: 0 8px 4px 12px; }
  .pf-game { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "label map res" "kda kda kda" "more more more"; gap: 8px 12px; padding: 10px 4px; }
  .pf-g-label { grid-area: label; font-size: 13px; }
  .pf-g-map { grid-area: map; }
  .pf-g-map small { display: none; }
  .pf-g-res { grid-area: res; }
  .pf-g-kda { grid-area: kda; }
  .pf-g-more { grid-area: more; gap: 12px; font-size: 12px; }
  .pf-s-links { padding: 4px 18px 12px; }
  .pf-invite h2 { font-size: 36px; }
}
