/* =====================================================================================================================
   Position hub (/maps/<map>/<position>). Foundation components live in bf.css; the timing strip comes from maps.css.
   Ported from the reviewed prototype (position.css) without changes to the rules.
   Prefix ps- . Sections: 1 switcher and header  2 verdict and What to build  3 tiles  4 layout and cards  5 overview  6 timings
   7 top players and Why this rank  8 side rail  9 breakpoints
   ===================================================================================================================== */

/* 1 ---------- position switcher and header */
.ps-switch { display: flex; gap: 8px; margin-bottom: var(--s-4); overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.ps-switch::-webkit-scrollbar { display: none; }
.ps-sw { flex: none; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 14px; scroll-snap-align: start; background: var(--panel); border: 1px solid var(--line-2); color: var(--text-2); text-decoration: none; font: 600 13px/1 var(--display); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; transition: border-color .15s, background .15s, color .15s; }
.ps-sw:hover { border-color: var(--pc); color: #fff; background: color-mix(in srgb, var(--pc) 10%, var(--panel)); }
.ps-sw.is-cur { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 16%, var(--panel-2)); color: #fff; box-shadow: inset 0 -3px 0 var(--pc), 0 0 22px color-mix(in srgb, var(--pc) 20%, transparent); }
.ps-head { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "t mini" "f mini"; gap: var(--s-4) var(--s-6); align-items: start; padding: var(--s-6) var(--s-6) var(--s-5) calc(var(--s-6) + 6px); overflow: hidden; background: radial-gradient(ellipse 60% 90% at 0% 0%, color-mix(in srgb, var(--pc) 14%, transparent), transparent 70%), linear-gradient(180deg, var(--panel-2), var(--panel) 40%); }
.ps-head::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--pc); box-shadow: 0 0 22px var(--pc); }
.ps-head__t { grid-area: t; min-width: 0; }
.ps-head__f { grid-area: f; min-width: 0; }
.ps-eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-bottom: var(--s-2); font: 600 12px/1.4 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--pc); }
.ps-h1 { font-size: clamp(2.75rem, 1.4rem + 5vw, 5rem); line-height: 1; }
.ps-h1::after { background: linear-gradient(90deg, var(--pc) 0 60px, transparent 60px 68px, var(--amber) 68px); }
.ps-on { margin-top: var(--s-2); font-size: var(--fs-lead); color: var(--text-2); }
.ps-on a { color: var(--cyan-hi); text-decoration: none; border-bottom: 1px dashed rgba(60,198,244,.5); }
.ps-on a:hover { color: #fff; }
.ps-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.ps-fact { font-size: 14px; color: var(--text-2); }
.ps-mirror { margin-top: var(--s-3); max-width: 62ch; font-size: 14px; color: var(--muted); }
.ps-mirror b { color: var(--text-2); font-weight: 600; }
.ps-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: var(--s-4); }
.ps-mine-btn.is-on, .ps-mine .bf-btn.is-on { --edge: var(--amber-hi); background-color: var(--amber); border-color: var(--amber-hi); color: var(--on-amber); }
.ps-mini { grid-area: mini; margin: 0; }
.ps-mini__stage { position: relative; aspect-ratio: 1 / 1; background: #06141f; border: 1px solid var(--line-3); overflow: hidden; }
.ps-mini__stage > img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.62) contrast(1.05); }
.ps-mini__stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 85% 85% at 50% 50%, rgba(6,10,16,0) 40%, rgba(6,10,16,.5)), linear-gradient(rgba(120,190,230,.06) 1px, transparent 1px) 0 0/30px 30px, linear-gradient(90deg, rgba(120,190,230,.06) 1px, transparent 1px) 0 0/30px 30px; }
.ps-mini__line { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.ps-mini__line line { stroke: rgba(255,255,255,.55); stroke-width: 1.5; stroke-dasharray: 5 5; }
.ps-mini figcaption { margin-top: 8px; }
.ps-dot { position: absolute; z-index: 3; left: var(--x); top: var(--y); width: 0; height: 0; }
.ps-dot i { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); display: block; background: var(--pc); }
.ps-dot--oth i { width: 9px; height: 9px; opacity: .6; clip-path: polygon(0 0, 70% 0, 100% 30%, 100% 100%, 30% 100%, 0 70%); }
.ps-dot--cur { z-index: 5; }
.ps-dot--cur i { width: 20px; height: 20px; clip-path: polygon(0 0, 70% 0, 100% 30%, 100% 100%, 30% 100%, 0 70%); box-shadow: 0 0 24px var(--pc); outline: 0; }
.ps-dot--cur i::before { content: ""; position: absolute; inset: 4px; background: rgba(6,10,16,.55); clip-path: inherit; }
.ps-dot--cur i::after { content: ""; position: absolute; inset: -9px; border: 2px solid var(--pc); opacity: .6; animation: bf-ping 2.8s ease-out infinite; }
.ps-dot--mir { z-index: 4; }
.ps-dot--mir i { width: 18px; height: 18px; background: rgba(6,10,16,.45); border: 2px dashed var(--pc); border-radius: 50%; }
.ps-dot em { position: absolute; top: 0; left: 18px; transform: translateY(-50%); padding: 3px 8px; white-space: nowrap; background: rgba(6,10,16,.9); border: 1px solid color-mix(in srgb, var(--pc) 55%, #000); border-left: 3px solid var(--pc); font: 600 12px/1.2 var(--display); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.ps-dot.is-flip em { left: auto; right: 18px; }

/* 2 ---------- verdict and What to build */
.ps-verdict { margin-top: var(--s-4); }
.ps-build { margin-top: var(--s-4); padding: var(--s-5) var(--s-5) var(--s-5); }
.ps-build__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.ps-build__head .bf-caption { margin-top: var(--s-2); max-width: 64ch; }
.ps-build__seg { flex: none; max-width: 100%; }
.ps-ops { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.ps-op { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1 1 150px; max-width: 214px; padding: 34px 12px 14px; text-align: center; background: var(--panel); border: 1px solid var(--line-2); transition: border-color .2s, transform .2s var(--ease); }
.ps-op:hover { border-color: var(--cyan-lo); transform: translateY(-2px); }
.ps-op.is-first { border-color: var(--cyan-lo); background: linear-gradient(180deg, var(--cyan-tint), var(--panel)); box-shadow: 0 0 36px rgba(60,198,244,.12); }
.ps-op__tag { position: absolute; left: 0; right: 0; top: 0; padding: 7px 8px 6px; font: 700 12px/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.ps-op.is-first .ps-op__tag { color: var(--cyan-hi); border-bottom-color: rgba(60,198,244,.3); }
.ps-op img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.ps-op__p { font: 700 clamp(1.9rem, 1.5rem + 1.2vw, 2.5rem)/1 var(--display); color: var(--cyan-hi); letter-spacing: -.01em; }
.ps-op__n { font: 600 16px/1.2 var(--body); color: var(--text); }
.ps-op__bar { width: 100%; height: 6px; margin-top: 4px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.ps-op__bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--cyan-lo), var(--cyan)); }
.ps-op__t { font: 500 13px/1 var(--mono); color: var(--muted); }
.ps-op--rest { border-style: dashed; background: transparent; }
.ps-op--rest .ps-op__p { color: var(--muted); }
.ps-op--rest .ps-op__n { color: var(--muted); font-weight: 500; }
.ps-op__x { font-size: 13px; line-height: 1.3; color: var(--faint); }
.ps-stack { display: flex; gap: 2px; height: 14px; margin-top: var(--s-4); background: var(--bg-2); }
.ps-stack i { flex: 0 0 var(--w); min-width: 3px; background: var(--cyan); opacity: calc(1 - var(--k) * .16); }
.ps-stack i:nth-child(1) { background: var(--cyan-hi); } .ps-stack i:nth-child(2) { background: var(--cyan); } .ps-stack i:nth-child(3) { background: #2fa6cc; } .ps-stack i:nth-child(4) { background: #2688a8; } .ps-stack i:nth-child(5) { background: #1d7a98; }
.ps-stack i.is-rest { flex: 1 1 var(--w); opacity: 1; background: repeating-linear-gradient(135deg, #2a4358 0 4px, #1c2d3d 4px 8px); }
.ps-lens-note { display: flex; gap: 10px; align-items: flex-start; margin: var(--s-4) 0 var(--s-3); padding: 10px 14px; background: var(--cyan-tint); border-left: 3px solid var(--cyan); font-size: 14px; color: var(--text-2); }
.ps-lens-note svg { width: 20px; height: 20px; flex: none; color: var(--cyan); margin-top: 1px; }
.ps-hgroup { margin-top: var(--s-4); }
.ps-hgroup__h { margin-bottom: var(--s-2); font: 700 13px/1.3 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ps-hcs { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.ps-hc { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1 1 150px; max-width: 214px; padding: 14px 12px 12px; text-align: center; background: var(--panel); border: 1px solid var(--line-2); }
.ps-hc:first-child { border-color: var(--cyan-lo); background: linear-gradient(180deg, var(--cyan-tint), var(--panel)); }
.ps-hc__img { display: grid; place-items: center; width: 56px; height: 56px; }
.ps-hc__img img { width: 56px; height: 56px; object-fit: contain; }
.ps-hc__ph { display: grid; place-items: center; width: 48px; height: 48px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--cyan); }
.ps-hc__ph svg { width: 26px; height: 26px; }
.ps-hc__n { font: 700 28px/1 var(--display); color: var(--cyan-hi); }
.ps-hc__n small { font: 600 14px/1 var(--display); color: var(--muted); }
.ps-hc__l { font: 600 15px/1.25 var(--body); color: var(--text); }
.ps-hc__s { font-size: 12px; line-height: 1.35; color: var(--muted); }
.ps-hc__p { max-width: 100%; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--faint); }
.ps-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-tags b { font-family: var(--mono); color: #fff; margin-left: 4px; }
.ps-allneeds { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: var(--s-5); align-items: center; padding: 40px 20px 22px; }
.ps-ghost { display: flex; gap: 8px; }
.ps-ghost i { flex: 1; height: 120px; border: 1px dashed var(--line-3); background: repeating-linear-gradient(135deg, rgba(120,160,190,.07) 0 6px, transparent 6px 12px); opacity: .8; }

/* 3 ---------- stat tiles */
.ps-tiles { margin-top: var(--s-4); }
.ps-tile--name .bf-tile__value { display: flex; align-items: center; gap: 10px; font-size: clamp(1.45rem, 1.1rem + 1vw, 2rem); line-height: 1.1; }
.ps-tile__img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.ps-nf { font: 600 17px/1.2 var(--display); letter-spacing: .02em; color: var(--faint); }
.ps-tiles .bf-tile__sub { line-height: 1.5; }

/* 4 ---------- layout and cards */
.ps-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-6); margin-top: var(--s-7); align-items: start; }
.ps-main { min-width: 0; }
.ps-rail { display: flex; flex-direction: column; gap: var(--s-4); padding-top: 52px; }
.ps-stack-v { display: flex; flex-direction: column; gap: var(--s-5); }
.ps-card { padding: var(--s-5); }
.ps-card__h { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.ps-card__h--plain { margin-bottom: var(--s-4); }
.ps-h3 { font: 700 20px/1.25 var(--display); letter-spacing: .01em; }
.ps-h3 + .bf-caption { margin-top: 4px; }
.ps-h4 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: var(--s-5) 0 var(--s-2); font: 700 13px/1.3 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ps-h4 .bf-cap { font: 500 12px/1.3 var(--body); letter-spacing: 0; text-transform: none; }
.ps-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); align-items: start; }
.ps-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.ps-qs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.ps-qs .mp-q { min-height: 150px; }
.ps-dl { display: flex; flex-direction: column; }
.ps-dl > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ps-dl > div:last-child { border-bottom: 0; }
.ps-dl dt { color: var(--muted); display: flex; align-items: center; gap: 6px; }
.ps-dl dd { margin: 0; text-align: right; color: var(--text); }
.ps-details { margin-top: var(--s-3); border-top: 1px solid var(--line); }
.ps-details summary { display: flex; align-items: center; min-height: 48px; cursor: pointer; font: 600 13px/1.3 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); list-style: none; }
.ps-details summary::-webkit-details-marker { display: none; }
.ps-details summary::after { content: ""; width: 8px; height: 8px; margin-left: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.ps-details[open] summary::after { transform: rotate(-135deg); }
.ps-details .bf-prose { padding-bottom: 8px; max-width: none; }

/* shared tracks */
.ps-track { position: relative; height: 14px; background: var(--bg-2); border: 1px solid var(--line-2); background-image: repeating-linear-gradient(90deg, transparent 0 calc(20% - 1px), rgba(120,190,230,.16) calc(20% - 1px) 20%); }
.ps-track__band { position: absolute; top: -1px; bottom: -1px; left: var(--lo); width: calc(var(--hi) - var(--lo)); background: var(--tc); opacity: .85; box-shadow: 0 0 14px color-mix(in srgb, var(--tc) 45%, transparent); }
.ps-track__med { position: absolute; top: -6px; bottom: -6px; left: calc(var(--med) - 2px); width: 4px; background: #fff; box-shadow: 0 0 12px rgba(255,255,255,.7); }
.ps-track__dot { position: absolute; left: var(--med); top: 50%; width: 16px; height: 16px; transform: translate(-50%, -50%); background: var(--tc); box-shadow: 0 0 14px var(--tc); clip-path: polygon(0 0, 70% 0, 100% 30%, 100% 100%, 30% 100%, 0 70%); }
.ps-axis { position: relative; height: 16px; margin-top: 6px; font: 500 12px/1 var(--mono); color: var(--faint); }
.ps-axis span { position: absolute; left: var(--x); transform: translateX(-50%); white-space: nowrap; }
.ps-axis span:first-child { transform: none; } .ps-axis span:last-child { transform: translateX(-100%); }

/* 5 ---------- overview */
.ps-tl__row, .ps-tl__axisrow { display: grid; grid-template-columns: 220px minmax(0, 1fr) 118px; align-items: center; gap: 16px; }
.ps-tl__axisrow { margin-bottom: 4px; }
.ps-tl__axisrow .ps-axis { margin-top: 0; }
.ps-tl__row { padding: 14px 0; border-top: 1px solid var(--line); }
.ps-tl__lbl { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ps-tl__lbl img { width: 36px; height: 36px; flex: none; object-fit: contain; background: var(--bg); border: 1px solid var(--tc); padding: 2px; }
.ps-tl__lbl b { display: block; font: 600 15px/1.25 var(--body); color: var(--text); }
.ps-tl__lbl small { display: block; font-size: 13px; color: var(--muted); }
.ps-tl__t { min-width: 0; }
.ps-tl__v { text-align: right; }
.ps-tl__v b { display: block; font: 700 24px/1 var(--display); color: #fff; }
.ps-tl__v small { font: 500 12px/1.4 var(--mono); color: var(--muted); }
.ps-mini-list { display: flex; flex-direction: column; }
.ps-ml { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 56px; padding: 6px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.ps-ml:hover { color: #fff; background: rgba(60,198,244,.05); }
.ps-ml__n { min-width: 0; font: 600 15px/1.25 var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-ml__n small { display: block; font: 400 13px/1.3 var(--body); color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.ps-ml b { font: 700 20px/1 var(--display); color: var(--cyan-hi); }
.ps-ml__img { width: 30px; height: 30px; object-fit: contain; }
.ps-ml.is-me { box-shadow: inset 3px 0 0 var(--cyan); background: linear-gradient(90deg, rgba(60,198,244,.14), transparent); }
.ps-notes li { position: relative; padding: 11px 0 11px 22px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.55; color: var(--text-2); }
.ps-notes li:first-child { border-top: 0; padding-top: 0; }
.ps-notes li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 8px; background: var(--amber); box-shadow: 0 0 8px rgba(253,192,76,.6); }
.ps-notes li:first-child::before { top: 8px; }
.ps-notes b { color: #fff; font-weight: 600; }
.ps-situation { border-color: #4a3a18; }
.ps-situation::before { background: var(--frame-amber); }

/* 6 ---------- timings */
.ps-tcard__h { display: flex; align-items: center; gap: 14px; }
.ps-tcard__h img { width: 48px; height: 48px; flex: none; object-fit: contain; background: var(--bg); border: 1px solid var(--tc); padding: 3px; box-shadow: 0 0 16px color-mix(in srgb, var(--tc) 35%, transparent); }
.ps-tcard__nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin: var(--s-5) 0 var(--s-4); }
.ps-big { display: block; font: 700 clamp(2.2rem, 1.5rem + 2vw, 3.3rem)/1 var(--display); color: #fff; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ps-big--s { font-size: clamp(1.5rem, 1.1rem + 1vw, 2.1rem); }
.ps-lbl { display: flex; align-items: center; gap: 6px; margin-top: 8px; font: 600 12px/1.3 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ps-bar { margin-top: 10px; }
.ps-bar i { background: var(--tc); }
.ps-tcard__r { margin-top: var(--s-5); padding: 0 2px; }
.ps-bigr { position: relative; padding-top: 30px; }
.ps-bigr__flag { position: absolute; left: var(--med); top: 0; transform: translateX(-50%); display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; font: 500 12px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ps-bigr__flag b { font: 700 16px/1 var(--mono); letter-spacing: 0; color: #fff; }
.ps-track--big { height: 20px; }
.ps-track--big .ps-track__med { top: -8px; bottom: -8px; }
.ps-bigr__qs { position: relative; height: 22px; margin-top: 8px; }
.ps-bigr__q { position: absolute; top: 0; font: 600 13px/1 var(--mono); color: var(--tc); white-space: nowrap; }
.ps-bigr__q--lo { right: calc(100% - var(--lo)); padding-right: 6px; }
.ps-bigr__q--hi { left: var(--hi); padding-left: 6px; }
.ps-bigr__q--lo::after, .ps-bigr__q--hi::before { content: ""; position: absolute; top: -9px; width: 1px; height: 8px; background: var(--tc); }
.ps-bigr__q--lo::after { right: 0; } .ps-bigr__q--hi::before { left: 0; }
.ps-bigr .ps-axis { margin-top: 0; }
.ps-cmp { margin-top: var(--s-2); }
.ps-cmp__axisrow, .ps-cmp__row { display: grid; grid-template-columns: 160px minmax(0, 1fr) 54px 76px; align-items: center; gap: 14px; }
.ps-cmp__axisrow .ps-axis { margin-top: 0; }
.ps-cmp__row { min-height: 46px; padding: 4px 8px; border-top: 1px solid var(--line); color: var(--text-2); text-decoration: none; transition: background .15s; }
a.ps-cmp__row:hover { background: rgba(60,198,244,.06); color: #fff; }
.ps-cmp__row.is-cur { background: linear-gradient(90deg, color-mix(in srgb, var(--pc) 14%, transparent), transparent); box-shadow: inset 3px 0 0 var(--pc); color: #fff; }
.ps-cmp__row:not(.is-cur) .ps-track__band { opacity: .42; box-shadow: none; }
.ps-cmp__n { display: flex; align-items: center; flex-wrap: wrap; gap: 0 9px; font: 600 14px/1.25 var(--body); }
.ps-cmp__n em { flex-basis: 100%; padding-left: 19px; font: 400 12px/1.2 var(--body); font-style: normal; color: var(--muted); }
.ps-cmp__v { font: 700 15px/1 var(--mono); text-align: right; }
.ps-cmp__b { font: 500 12px/1.2 var(--mono); color: var(--faint); text-align: right; }
.ps-rd__axisrow, .ps-rd__row { display: grid; grid-template-columns: 200px minmax(0, 1fr) 54px; align-items: center; gap: 16px; }
.ps-rd__axisrow .ps-axis { margin-top: 0; }
.ps-rd__row { padding: 10px 0; border-top: 1px solid var(--line); }
.ps-rd__l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ps-rd__l img { width: 34px; height: 34px; object-fit: contain; flex: none; background: var(--bg); border: 1px solid var(--line-2); padding: 2px; }
.ps-rd__l b { display: block; font: 600 15px/1.2 var(--body); }
.ps-rd__l small { font-size: 13px; color: var(--muted); }
.ps-rd__v { font: 700 16px/1 var(--mono); text-align: right; color: #fff; }
.ps-wire { padding: 38px 16px 16px; }
.ps-wire .ps-h4 { margin: 0 0 8px; }
.ps-wire__art { height: 74px; margin: 6px 0 10px; color: var(--line-3); }
.ps-wire .bf-hist i { background: var(--line-3); opacity: .45; }
.ps-wire .bf-hist__mark { background: var(--line-3); box-shadow: none; }
.ps-wire__line { display: block; width: 100%; height: 74px; color: var(--line-3); }

/* 7 ---------- top players and Why this rank */
.ps-find { margin-bottom: var(--s-4); padding: 10px 14px; background: var(--cyan-tint); border-left: 4px solid var(--cyan); font-size: 15px; }
.ps-rng { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.ps-rng__bar { position: relative; flex: none; width: 64px; height: 6px; background: var(--bg-2); border: 1px solid var(--line-2); }
.ps-rng__bar::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--line-3); }
.ps-rng__bar i { position: absolute; top: -1px; bottom: -1px; left: calc(var(--lo) * 100%); width: calc((var(--hi) - var(--lo)) * 100%); background: var(--cyan); opacity: .85; }
.ps-rng__bar b { position: absolute; top: -4px; bottom: -4px; left: calc(var(--sc) * 100% - 1px); width: 3px; background: #fff; box-shadow: 0 0 8px rgba(255,255,255,.7); }
#ps-rank td.c-name .bf-tag { margin-left: 8px; }
#ps-rank th, #ps-rank td { padding-inline: 8px; }
#ps-rank th:first-child, #ps-rank td:first-child { padding-left: 14px; }
@media (min-width: 761px) { #ps-rank th:nth-child(5), #ps-rank td:nth-child(5), #ps-rank th:nth-child(7), #ps-rank td:nth-child(7), #ps-rank th:nth-child(8), #ps-rank td:nth-child(8) { display: none; } }
#ps-rank td.c-name { max-width: 250px; }
#ps-rank td:nth-child(6) { text-align: right; font: 500 14px/1.3 var(--mono); white-space: nowrap; }
#ps-rank th:nth-child(6) { text-align: right; }
@media (max-width: 760px) { #ps-rank td:nth-child(6) { text-align: left; font: inherit; } .ps-why__t::after { content: " this rank?"; } }
.ps-gm { display: none; margin-left: 3px; color: var(--muted); font: 400 13px var(--body); }
@media (max-width: 760px) { #ps-rank td.c-name .bf-ec__s { display: none; } .ps-gm { display: inline; } }
.ps-why__top { display: flex; align-items: center; gap: var(--s-5); padding: 14px 16px; background: var(--bg-2); border: 1px solid var(--line-2); }
.ps-why__score { font: 700 clamp(3rem, 2.4rem + 2vw, 4rem)/1 var(--display); color: #fff; letter-spacing: -.02em; }
.ps-why__top small { color: var(--muted); }
.ps-why__rng { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.ps-why__rng small { font-size: 13px; line-height: 1.4; }
.ps-why__h { margin: var(--s-5) 0 var(--s-2); font: 700 13px/1.3 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.ps-why__leg { display: flex; justify-content: space-between; font: 700 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.ps-why__part { margin-top: 14px; }
.ps-why__part .bf-cap { margin-top: 4px; text-align: center; }
.ps-phs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ps-ph { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--line-2); }
.ps-ph span:first-child { font-size: 12px; color: var(--muted); }
.ps-ph b { font: 700 26px/1 var(--display); color: #fff; }
.ps-ph__bar { position: relative; height: 5px; background: var(--panel-3); }
.ps-ph__bar::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--line-3); }
.ps-ph__bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--cyan); }

/* 8 ---------- side rail */
.ps-side__k { font: 700 12px/1.3 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.ps-side__h { margin: 4px 0 8px; font: 700 19px/1.25 var(--display); }
.ps-side .bf-caption { font-size: 14px; }
.ps-mine.is-on { border-color: #6b5320; background: linear-gradient(180deg, rgba(253,192,76,.1), var(--panel) 60%); }
.ps-mine.is-on::before { background: var(--frame-amber); }
.ps-mine.is-on .ps-side__k { color: var(--amber); }
.ps-sims { display: flex; flex-direction: column; gap: 8px; }
.ps-sim { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 10px 14px; background: var(--panel-2); border: 1px solid var(--line-2); border-left: 4px solid var(--pc); color: var(--text-2); text-decoration: none; transition: border-color .15s, background .15s; }
.ps-sim:hover { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 10%, var(--panel-2)); color: #fff; }
.ps-sim__n { display: flex; align-items: baseline; gap: 10px; }
.ps-sim__n b { font: 700 17px/1.2 var(--display); color: var(--text); }
.ps-sim__n small { font: 500 12px/1 var(--mono); color: var(--muted); }
.ps-sim__n .bf-dot { align-self: center; }
.ps-sim__u { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.ps-sim__u img { width: 26px; height: 26px; object-fit: contain; background: var(--bg); border: 1px solid var(--line); }
.ps-sim__t { font: 500 12px/1.4 var(--mono); color: var(--muted); }
.ps-near { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ps-all { display: flex; flex-direction: column; margin-top: 4px; }
.ps-all__h, .ps-all__r { display: grid; grid-template-columns: minmax(0, 1fr) 52px 46px 46px; align-items: center; gap: 6px; }
.ps-all__h { padding: 4px 8px 4px 10px; font: 600 12px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.ps-all__h span:nth-child(n+2), .ps-all__r > span:nth-child(n+2) { text-align: right; justify-content: flex-end; }
.ps-all__r { min-height: 44px; padding: 4px 8px 4px 10px; border-top: 1px solid var(--line); border-left: 3px solid var(--pc); color: var(--text-2); text-decoration: none; font: 500 13px/1.2 var(--mono); }
.ps-all__r:hover { background: rgba(60,198,244,.06); color: #fff; }
.ps-all__r.is-cur { background: linear-gradient(90deg, color-mix(in srgb, var(--pc) 16%, transparent), transparent); color: #fff; }
.ps-all__n { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 13px/1.2 var(--body); }
.ps-all__r i { font-style: normal; color: var(--faint); font-size: 12px; }
.ps-all__u { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; }
.ps-all__u img { width: 20px; height: 20px; object-fit: contain; }

/* 9 ---------- breakpoints */
@media (max-width: 1100px) {
  .ps-split { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); margin-top: var(--s-6); }
  .ps-rail { padding-top: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .ps-qs, .ps-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-allneeds { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .ps-head { grid-template-columns: minmax(0, 1fr) 118px; grid-template-areas: "t mini" "f f"; gap: var(--s-3) var(--s-4); padding: var(--s-5) var(--s-4) var(--s-4) calc(var(--s-4) + 6px); }
  .ps-mini figcaption { display: none; }
  .ps-mini .ps-dot em { display: none; }
  .ps-dot--cur i { width: 14px; height: 14px; } .ps-dot--cur i::after { inset: -6px; } .ps-dot--mir i { width: 12px; height: 12px; border-width: 2px; } .ps-dot--oth i { width: 6px; height: 6px; }
  .ps-h1 { font-size: clamp(2.4rem, 11vw, 3.1rem); }
  .ps-h1::after { margin-top: 10px; }
  .ps-on { font-size: 1rem; }
  .ps-actions .bf-btn { flex: 1 1 140px; }
  .ps-switch { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
  .ps-build { padding: var(--s-4); }
  .ps-build__head { align-items: flex-start; flex-direction: column; gap: var(--s-3); }
  .ps-build__seg { width: 100%; }
  .ps-build__seg .bf-seg { display: flex; width: 100%; }
  .ps-build__seg .bf-seg button { flex: 1; padding: 0 8px; font-size: 12px; letter-spacing: .04em; }
  .ps-ops, .ps-hcs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--s-4) * -1); padding-inline: var(--s-4); padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .ps-ops::-webkit-scrollbar, .ps-hcs::-webkit-scrollbar { display: none; }
  .ps-op, .ps-hc { flex: 0 0 150px; scroll-snap-align: start; }
  .ps-tiles .bf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ps-tiles .bf-tile { padding: 12px 12px 12px 16px; }
  .ps-tiles .bf-tile__value { font-size: 1.7rem; }
  .ps-tiles .ps-tile--name { grid-column: 1 / -1; }
  .ps-tiles .bf-tile:last-child { grid-column: 1 / -1; }
  .ps-card { padding: var(--s-4); }
  .ps-two, .ps-qs, .ps-three { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .ps-rail { grid-template-columns: minmax(0, 1fr); }
  .ps-tl__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "lbl val" "t t"; gap: 10px 12px; }
  .ps-tl__row .ps-tl__lbl { grid-area: lbl; } .ps-tl__row .ps-tl__v { grid-area: val; } .ps-tl__row .ps-tl__t { grid-area: t; }
  .ps-tl__axisrow { grid-template-columns: minmax(0, 1fr); } .ps-tl__axisrow > div:not(.ps-tl__t) { display: none; }
  .ps-tcard__nums { grid-template-columns: repeat(3, minmax(0, auto)); gap: var(--s-3); }
  .ps-big { font-size: 2rem; } .ps-big--s { font-size: 1.15rem; }
  .ps-lbl { font-size: 12px; letter-spacing: .08em; }
  .ps-cmp__axisrow, .ps-cmp__row { grid-template-columns: minmax(0, 1fr) 48px 62px; gap: 6px 10px; }
  .ps-cmp__axisrow > div:first-child, .ps-cmp__axisrow > div:nth-child(3), .ps-cmp__axisrow > div:nth-child(4) { display: none; }
  .ps-cmp__axisrow { grid-template-columns: minmax(0, 1fr); }
  .ps-cmp__row { grid-template-areas: "n v b" "t t t"; padding: 8px; }
  .ps-cmp__row .ps-cmp__n { grid-area: n; } .ps-cmp__row .ps-track { grid-area: t; } .ps-cmp__row .ps-cmp__v { grid-area: v; } .ps-cmp__row .ps-cmp__b { grid-area: b; }
  .ps-rd__axisrow, .ps-rd__row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .ps-rd__axisrow { grid-template-columns: minmax(0, 1fr); } .ps-rd__axisrow > div:not(:nth-child(2)) { display: none; }
  .ps-rd__row { grid-template-areas: "l v" "t t"; }
  .ps-rd__row .ps-rd__l { grid-area: l; } .ps-rd__row .ps-rd__t { grid-area: t; } .ps-rd__row .ps-rd__v { grid-area: v; }
  .ps-why__top { flex-direction: column; align-items: flex-start; gap: var(--s-3); }
  .ps-rng__bar { display: none; }
  .ps-allneeds { padding: 40px 14px 16px; }
  .ps-ghost i { height: 70px; }
}

/* records tab */
#ps-rec-tabs .bf-itabs { gap: 6px; }
#ps-rec-tabs .bf-itab { min-width: 78px; padding: 8px 6px; letter-spacing: .03em; }
#ps-rec-tabs .bf-itab img { width: 34px; height: 34px; }
.ps-nw { white-space: nowrap; }
.ps-sub { color: var(--muted); font: 400 12px var(--body); }
#ps-rec-table th, #ps-rec-table td { padding-inline: 10px; }
#ps-rec-table td a[target] { white-space: nowrap; }
/* the map picture as splash art behind the header, and the official role beside the position name */
.ps-head__art { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ps-head__art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform: scale(1.2); filter: blur(16px) saturate(.75) brightness(.55) contrast(.9); }
.ps-head__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,10,16,.86), rgba(6,10,16,.5) 70%, rgba(6,10,16,.7)), radial-gradient(ellipse 60% 90% at 0% 0%, color-mix(in srgb, var(--pc) 16%, transparent), transparent 70%); }
.ps-head__t, .ps-head__f, .ps-mini { position: relative; z-index: 1; }
.ps-role { display: inline-block; margin-left: 18px; vertical-align: .75em; font: 600 14px/1 var(--body); letter-spacing: 0; text-transform: none; }
.ps-role .bf-rolechip { background: rgba(6,10,16,.7); }
@media (max-width: 760px) { .ps-role { display: block; margin: 8px 0 0; } }

/* production additions: loading placeholders as classes (server markup carries no style="" attribute under style-src 'self') */
.ps-skel-a { min-height: 260px; margin-top: 16px; }
.ps-skel-b { min-height: 120px; margin-top: 16px; }
.ps-skel-c { min-height: 300px; margin-top: 16px; }

/* production addition: the "Fastest builds" card holds four rows of fixed height (a .ps-ml row plus its border) until the records have been read */
.ps-ml-skel { height: 57px; border-top: 1px solid var(--line); }
