/* Props card — the /props row popup (see assets/js/props-card.js). */
.pc-scroll-lock { overflow: hidden; }
/* Above the sticky nav and scoreboard strip (site max z-index is 1001). */
.pc-overlay { display: none; position: fixed; inset: 0; background: rgba(20,23,28,.6); z-index: 2000; align-items: flex-start; justify-content: center; padding: 32px 16px; overflow-y: auto; }
.pc-overlay.open { display: flex; }
.pc-modal { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); max-width: 880px; width: 100%; position: relative; overflow: hidden; }
.pc-close { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #13233f; font-size: 1.4rem; line-height: 1; cursor: pointer; z-index: 2; }
.pc-loading { padding: 48px 20px; text-align: center; color: var(--text-secondary); }

.pc-head { background: linear-gradient(105deg, #13233f 0 62%, #8f1d2c 62% 63%, var(--surface-2) 63%); color: #fff; padding: 18px 56px 18px 20px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.pc-id { display: flex; gap: 14px; align-items: center; }
.pc-headshot { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #fff; flex: none; }
.pc-headshot-empty { display: inline-block; background: rgba(255,255,255,.2); }
.pc-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.pc-name a { color: #fff; text-decoration: none; }
.pc-name a:hover { text-decoration: underline; }
.pc-pos { font-size: .8rem; font-weight: 400; opacity: .8; }
.pc-game { font-family: var(--mono); font-size: .8rem; margin-top: 4px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pc-game img { width: 18px; height: 18px; vertical-align: middle; }
.pc-vs { opacity: .8; }
.pc-kick { opacity: .8; }
.pc-record { font-size: .76rem; opacity: .9; margin-top: 4px; }
.pc-pick { background: var(--surface); border-radius: var(--radius); padding: 6px 10px; color: var(--text-primary); display: flex; align-items: center; gap: 8px; align-self: center; }
.pc-pick label { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-secondary); }
.pc-pick select { padding: 5px 8px; border: 1px solid var(--border-strong); border-radius: var(--radius); font-family: var(--mono); font-size: .85rem; background: var(--surface); color: var(--text-primary); }

.pc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; padding: 14px 20px 6px; background: var(--surface-2); }
.pc-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; cursor: pointer; }
.pc-tile.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.pc-tile-k { font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-secondary); }
.pc-tile-v { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.pc-tile-s { font-family: var(--mono); font-size: .72rem; color: var(--text-secondary); }

.pc-tabs { display: flex; gap: 4px; padding: 10px 20px 0; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.pc-tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: 8px 12px; font-family: inherit; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-secondary); cursor: pointer; }
.pc-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.pc-panel { padding: 16px 20px 20px; }
.pc-muted { color: var(--text-muted); }
.pc-pos { color: var(--green); font-weight: 700; }
.pc-neg { color: var(--red); font-weight: 700; }
.pc-h { font-family: var(--font-display); font-size: .9rem; margin: 16px 0 8px; }
.pc-note { font-size: .74rem; color: var(--text-muted); margin: 10px 0 0; line-height: 1.5; }

.pc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.pc-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; }
.pc-k { font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-secondary); }
.pc-v { font-family: var(--mono); font-size: 1.35rem; font-weight: 700; line-height: 1.3; }
.pc-v-sm { font-size: 1.05rem; }
.pc-s { font-family: var(--mono); font-size: .72rem; color: var(--text-secondary); margin-top: 2px; }
.pc-result { margin-top: 12px; font-family: var(--mono); font-size: .9rem; }

.pc-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.pc-table th { text-align: left; font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-secondary); padding: 6px 8px; border-bottom: 2px solid var(--border); }
.pc-table td { padding: 7px 8px; border-bottom: 1px solid var(--border); font-family: var(--mono); }
.pc-row-hrb td { background: var(--accent-soft); }

.pc-mu { margin-bottom: 14px; }
.pc-mu-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; font-size: .88rem; }
.pc-mu-badge { font-size: .7rem; font-weight: 800; letter-spacing: .06em; padding: 2px 10px; border-radius: var(--radius); background: var(--surface-3); color: var(--text-secondary); }
.pc-mu-badge.pc-good { background: var(--green-soft); color: var(--green); }
.pc-mu-badge.pc-bad { background: var(--amber-soft); color: var(--amber); }
.pc-mu-table td { font-family: var(--font); vertical-align: middle; }
.pc-mu-table td.pc-good { background: var(--green-soft); }
.pc-mu-table td.pc-bad { background: var(--amber-soft); }
.pc-mu-l { font-weight: 600; }
.pc-mu-r { font-family: var(--mono); font-size: .74rem; color: var(--text-secondary); }
.pc-mu-adv { white-space: nowrap; width: 90px; }
.pc-pips { font-size: .8rem; letter-spacing: 1px; color: var(--text-muted); }
.pc-pips.pc-good { color: var(--green); }
.pc-pips.pc-bad { color: var(--red); }
.pc-pips.pc-mid { color: var(--text-secondary); }

.pc-hr-controls { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pc-toggle { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; }
.pc-toggle button { border: 0; background: var(--surface); padding: 6px 14px; font-family: inherit; font-size: .78rem; font-weight: 700; text-transform: uppercase; color: var(--text-secondary); cursor: pointer; }
.pc-toggle button.active { background: var(--text-primary); color: var(--surface); }
.pc-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pc-chip { border: 1px solid var(--border-strong); background: var(--surface); border-radius: 999px; padding: 5px 12px; font-family: inherit; font-size: .78rem; cursor: pointer; color: var(--text-primary); }
.pc-chip.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
/* No padding on the chart box: the bars (height % of the column) and the line
   marker (top % of the box) must share one coordinate system. Labels hang
   below via absolute positioning; the margin makes room for them. */
.pc-chart { position: relative; display: flex; gap: 6px; align-items: flex-end; height: 200px; margin: 26px 0 50px; }
#pc-chart-wrap { border-bottom: 1px solid var(--border); }
.pc-chart-line { position: absolute; left: 0; right: 0; border-top: 2px solid #1F5EFF; z-index: 1; pointer-events: none; }
.pc-chart-line span { position: absolute; right: 0; top: -18px; font-family: var(--mono); font-size: .7rem; color: #1F5EFF; background: var(--surface); padding: 0 4px; }
.pc-bar-col { flex: 1; min-width: 0; height: 100%; position: relative; }
.pc-bar-track { position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: var(--surface-2); border-radius: 2px 2px 0 0; display: flex; align-items: flex-end; }
.pc-bar { width: 100%; border-radius: 2px 2px 0 0; position: relative; }
.pc-bar span { position: absolute; top: 2px; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: .7rem; font-weight: 700; color: #fff; }
.pc-bar-hit { background: #2f9e44; }
.pc-bar-miss { background: #d9363e; }
.pc-bar-push { background: var(--text-muted); }
.pc-bar-projbar { background: #9aa3ad; }
.pc-bar-projbar span { color: #13233f; }
.pc-bar-x { position: absolute; left: 0; right: 0; bottom: -40px; text-align: center; font-family: var(--mono); font-size: .64rem; line-height: 1.3; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-hr-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.pc-hr-foot > div { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; }
.pc-hr-foot input[type=range] { width: 100%; margin-top: 6px; }
.pc-alts { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-alt { font-family: var(--mono); font-size: .78rem; border: 1px solid var(--border); border-radius: var(--radius); padding: 3px 8px; }

@media (max-width: 720px) {
    .pc-overlay { padding: 0; }
    .pc-modal { border-radius: 0; min-height: 100vh; }
    .pc-head { background: #13233f; }
    .pc-hr-foot { grid-template-columns: 1fr; }
    .pc-bar-x { font-size: .56rem; }
}
