/* ─────────────────────────────────────────────────────────────────────────────
 * price-changes.css — the price-change board, shared by /pl, /ipl and /ucl.
 *
 * Built on vc-theme.css tokens only, so the light theme and both directions come for
 * free. EVERY horizontal offset is a LOGICAL property (inline-start/end), because the
 * same markup renders RTL on /he and /ipl and LTR on /en — a stray `left:` is the
 * classic way one of the two editions breaks (see vc-theme's own sweep notes).
 * ─────────────────────────────────────────────────────────────────────────── */

.pc-app { --pc-up: var(--vc-green); --pc-down: var(--vc-red); --pc-gap: 16px; display: flex; flex-direction: column; gap: var(--pc-gap); margin-top: 8px; }
.pc-app * { box-sizing: border-box; }
.pc-num { font-variant-numeric: tabular-nums; }
.pc-ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* EASY ON THE EYE (owner, 2026-09-12: "too much text and too crowded"). The header's
   long description is the page's SEO copy — it stays in the DOM and in the footer's
   {{seoContent}} block, which prints the same sentence — so the page opens on the title
   and the tool, not a paragraph. */
/* Not `#vc-shell > …`: the shell re-parents the subtitle into its header block. */
body .vc-page-subtitle { display: none; }   /* this sheet loads only on the price pages */

/* The shared game toggle (shared/fantasy-game-toggle.js) — the same three layout
   lines compare-tool.css carries, so the control sits identically on both tools. */
.vc-game-toggle { text-align: center; margin: 0 0 4px; }
.vc-game-toggle-caption { font-size: 0.9rem; font-weight: 700; color: var(--vc-text-sub); margin: 0 0 8px; }
.vc-game-toggle .vc-seg-toggle { margin: 0; }

/* ── Hero: the next update, and what it will do ──────────────────────────── */
.pc-hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: stretch;
  padding: 20px 22px; border-radius: var(--vc-radius-lg);
  background: var(--vc-hero-bg); border: 1px solid var(--vc-hero-border); box-shadow: var(--vc-shadow);
}
.pc-hero::after {
  content: ''; position: absolute; inset-inline-end: -80px; top: -90px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 198, 29, 0.14), transparent 65%); pointer-events: none;
}
.pc-when { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pc-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--vc-accent); display: flex; align-items: center; gap: 8px; }
.pc-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vc-green); box-shadow: 0 0 0 0 rgba(95, 217, 122, .6); animation: pc-pulse 2.2s infinite; }
@keyframes pc-pulse { 0% { box-shadow: 0 0 0 0 rgba(95, 217, 122, .55); } 70% { box-shadow: 0 0 0 9px rgba(95, 217, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 217, 122, 0); } }
.pc-countdown { font-size: clamp(30px, 5vw, 44px); font-weight: 800; line-height: 1.05; color: var(--vc-text); letter-spacing: -.01em; }
.pc-countdown .pc-unit { font-size: .45em; font-weight: 600; color: var(--vc-text-sub); margin-inline: 2px 10px; }
.pc-when-sub { font-size: 14px; color: var(--vc-text-soft); line-height: 1.5; }
.pc-when-sub b { color: var(--vc-text); font-weight: 700; }
.pc-fresh { margin-top: auto; font-size: 12px; color: var(--vc-text-sub); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding-top: 8px; }
.pc-fresh .pc-src { padding: 2px 8px; border-radius: 999px; background: var(--vc-pill-bg); border: 1px solid var(--vc-pill-border); color: var(--vc-text-soft); }

.pc-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pc-kpi {
  border-radius: var(--vc-radius-md); padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; gap: 2px;
  background: var(--vc-pill-bg); border: 1px solid var(--vc-pill-border); min-width: 0;
}
.pc-kpi-n { font-size: 34px; font-weight: 800; line-height: 1; display: flex; align-items: baseline; gap: 6px; }
.pc-kpi-n .pc-tri { font-size: 16px; }
.pc-kpi-l { font-size: 13px; color: var(--vc-text-soft); }
.pc-kpi.is-up .pc-kpi-n { color: var(--pc-up); }
.pc-kpi.is-down .pc-kpi-n { color: var(--pc-down); }
.pc-kpi.is-up { background: linear-gradient(160deg, rgba(95, 217, 122, .12), transparent 70%), var(--vc-pill-bg); }
.pc-kpi.is-down { background: linear-gradient(160deg, rgba(248, 81, 73, .12), transparent 70%), var(--vc-pill-bg); }
.pc-accuracy {
  grid-column: 1 / -1; font-size: 13px; color: var(--vc-text-sub); display: flex; align-items: center; gap: 8px; padding-inline: 4px;
}
.pc-accuracy b { color: var(--vc-text); }
.pc-accuracy .pc-acc-pct { font-weight: 800; color: var(--vc-gold); }

/* ── Section cards ────────────────────────────────────────────────────────── */
.pc-card { border-radius: var(--vc-radius-lg); background: var(--vc-card-bg); border: 1px solid var(--vc-card-border); box-shadow: var(--vc-shadow); overflow: hidden; }
.pc-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 18px 10px; }
.pc-card-t { margin: 0; font-size: 17px; font-weight: 800; color: var(--vc-text); display: flex; align-items: center; gap: 8px; }
.pc-card-t .pc-badge { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--vc-chip-bg); border: 1px solid var(--vc-chip-border); color: var(--vc-text-soft); }
.pc-card-note { font-size: 13px; color: var(--vc-text-sub); padding: 0 18px 12px; line-height: 1.5; }

/* The night picker (FPL) — the site's own gold capsule, compact. */
.pc-nights { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--vc-pill-bg); border: 1px solid var(--vc-pill-border); }
.pc-night {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; color: var(--vc-text-soft);
  padding: 6px 12px; border-radius: 999px; background: transparent; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap;
}
.pc-night:hover { color: var(--vc-text); }
.pc-night.is-active { background: var(--vc-gold); color: #10213a; }
.pc-night .pc-night-c { font-size: 11px; font-weight: 700; opacity: .85; }
.pc-night.is-locked::after { content: '🔒'; font-size: 11px; }

/* ── Risers / fallers ─────────────────────────────────────────────────────── */
.pc-duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pc-gap); align-items: start; }
.pc-list-card .pc-card-h { padding-bottom: 6px; }
.pc-list-card.is-up { border-top: 3px solid var(--pc-up); }
.pc-list-card.is-down { border-top: 3px solid var(--pc-down); }
.pc-list-card.is-up .pc-card-t .pc-tri { color: var(--pc-up); }
.pc-list-card.is-down .pc-card-t .pc-tri { color: var(--pc-down); }
.pc-list { list-style: none; margin: 0; padding: 0 8px 8px; }
.pc-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center;
  padding: 10px 10px; border-radius: var(--vc-radius-sm); position: relative;
}
.pc-row + .pc-row { border-top: 1px solid var(--vc-table-row-border); }
.pc-row:hover { background: var(--vc-table-row-hover); }
.pc-av { position: relative; width: 44px; height: 44px; }
.pc-face { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--vc-surface2); border: 1px solid var(--vc-border); display: block; }
.pc-initials { width: 44px; height: 44px; border-radius: 50%; background: var(--vc-surface3); color: var(--vc-text-soft); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.pc-crest { position: absolute; inset-inline-end: -4px; bottom: -3px; width: 20px; height: 20px; object-fit: contain; border-radius: 50%; background: var(--vc-surface); padding: 2px; border: 1px solid var(--vc-border); }
.pc-who { min-width: 0; }
.pc-name { font-size: 15px; font-weight: 700; color: var(--vc-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-sub { font-size: 12px; color: var(--vc-text-sub); display: flex; flex-wrap: wrap; gap: 2px 8px; margin-top: 1px; }
.pc-price { text-align: end; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.pc-price-line { font-size: 15px; font-weight: 800; white-space: nowrap; }
.pc-price-line .pc-old { color: var(--vc-text-sub); font-weight: 600; font-size: 13px; }
.pc-price-line .pc-arr { margin: 0 4px; color: var(--vc-text-sub); font-weight: 600; }
.pc-row.is-up .pc-new, .pc-up-t { color: var(--pc-up); }
.pc-row.is-down .pc-new, .pc-down-t { color: var(--pc-down); }
.pc-delta { font-size: 12px; font-weight: 800; padding: 1px 7px; border-radius: 999px; }
.pc-row.is-up .pc-delta { background: rgba(95, 217, 122, .14); color: var(--pc-up); }
.pc-row.is-down .pc-delta { background: rgba(248, 81, 73, .14); color: var(--pc-down); }

/* The meter: FPL's own progress (solid) and tonight's projection (hatched), or a 9cat rank. */
.pc-meter { grid-column: 2 / -1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.pc-bar { position: relative; flex: 1; height: 7px; border-radius: 999px; background: var(--vc-surface3); overflow: hidden; min-width: 60px; }
.pc-bar .pc-fill, .pc-bar .pc-proj { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 999px; }
.pc-bar .pc-proj { opacity: .38; background-image: repeating-linear-gradient(-45deg, currentColor 0 4px, transparent 4px 7px); }
.pc-row.is-up .pc-bar { color: var(--pc-up); } .pc-row.is-down .pc-bar { color: var(--pc-down); }
.pc-row.is-up .pc-fill { background: linear-gradient(90deg, rgba(95, 217, 122, .55), var(--pc-up)); }
.pc-row.is-down .pc-fill { background: linear-gradient(90deg, rgba(248, 81, 73, .55), var(--pc-down)); }
[dir="rtl"] .pc-row.is-up .pc-fill { background: linear-gradient(270deg, rgba(95, 217, 122, .55), var(--pc-up)); }
[dir="rtl"] .pc-row.is-down .pc-fill { background: linear-gradient(270deg, rgba(248, 81, 73, .55), var(--pc-down)); }
.pc-bar.is-full { box-shadow: 0 0 10px currentColor; }
.pc-pct { font-size: 12px; font-weight: 700; color: var(--vc-text-soft); white-space: nowrap; }
.pc-pct b { color: var(--vc-text); }
.pc-rank { font-size: 12px; color: var(--vc-text-soft); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pc-rank .pc-rank-n { font-weight: 800; color: var(--vc-text); background: var(--vc-chip-bg); border: 1px solid var(--vc-chip-border); padding: 1px 7px; border-radius: 999px; }

.pc-chip { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--vc-chip-border); background: var(--vc-chip-bg); color: var(--vc-text-soft); white-space: nowrap; }
.pc-chip.is-warn { color: var(--vc-amber); border-color: rgba(252, 198, 29, .35); background: rgba(252, 198, 29, .09); }
.pc-chip.is-sure { color: var(--vc-green); border-color: rgba(95, 217, 122, .3); background: rgba(95, 217, 122, .08); }

.pc-empty { padding: 18px 18px 22px; color: var(--vc-text-sub); font-size: 14px; text-align: center; }

/* The free slice's tail: blurred ghost rows under one unlock. */
.pc-locked-tail { position: relative; margin: 0 8px 10px; border-radius: var(--vc-radius-sm); overflow: hidden; }
.pc-ghosts { filter: blur(5px); opacity: .55; pointer-events: none; user-select: none; }
.pc-ghost { height: 52px; margin: 4px 0; border-radius: var(--vc-radius-sm); background: linear-gradient(90deg, var(--vc-surface2), var(--vc-surface3)); }
.pc-unlock {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 12px;
}
.pc-unlock-t { font-weight: 800; color: var(--vc-text); font-size: 14px; }
.pc-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 13px; text-decoration: none;
  background: var(--vc-gold); color: #10213a; border: 0; cursor: pointer;
}
.pc-btn:hover { filter: brightness(1.06); }
.pc-btn.is-ghost { background: transparent; color: var(--vc-text); border: 1px solid var(--vc-border-soft); }

/* ── Recent changes: compact chips ────────────────────────────────────────── */
.pc-recent { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--pc-gap); padding: 0 12px 12px; }
.pc-recent-col h4 { margin: 4px 6px 8px; font-size: 13px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.pc-mini { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px; border-radius: 10px; }
.pc-mini:hover { background: var(--vc-table-row-hover); }
.pc-mini .pc-face, .pc-mini .pc-initials { width: 30px; height: 30px; font-size: 11px; }
/* The avatar box must shrink WITH the face, or the crest — pinned to the box's corner —
   lands on the club name beside it. */
.pc-mini .pc-av, .pc-cell-player .pc-av { width: 30px; height: 30px; flex: 0 0 30px; }
.pc-mini .pc-crest, .pc-cell-player .pc-crest { width: 14px; height: 14px; padding: 1px; inset-inline-end: -3px; bottom: -2px; }
.pc-mini .pc-name { font-size: 13px; }
.pc-mini .pc-sub { font-size: 11px; }
.pc-mini .pc-price-line { font-size: 13px; }

/* ── The full board ───────────────────────────────────────────────────────── */
.pc-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 0 18px 12px; }
.pc-search {
  flex: 1 1 220px; min-width: 0; padding: 9px 14px; border-radius: 999px; font: inherit; font-size: 14px;
  background: var(--vc-input-bg); border: 1px solid var(--vc-input-border); color: var(--vc-text);
}
.pc-search:focus { outline: 2px solid rgba(252, 198, 29, .4); outline-offset: 1px; }
.pc-pos { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.pc-pos button {
  appearance: none; font: inherit; font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 999px; cursor: pointer;
  background: var(--vc-pill-bg); border: 1px solid var(--vc-pill-border); color: var(--vc-text-soft);
}
.pc-pos button.is-active { background: var(--vc-nav-active-bg); color: var(--vc-accent); border-color: rgba(219, 181, 128, .4); }
.pc-toggle { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--vc-text-soft); cursor: pointer; user-select: none; }
.pc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--vc-table-head-border); }
.pc-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.pc-table th {
  position: sticky; top: 0; background: var(--vc-table-head-bg); color: var(--vc-text-sub); font-weight: 700; font-size: 12px;
  text-align: start; padding: 10px 10px; white-space: nowrap; cursor: pointer; user-select: none; border-bottom: 1px solid var(--vc-table-head-border);
}
.pc-table th.is-num, .pc-table td.is-num { text-align: end; }
.pc-table th.is-sorted { color: var(--vc-accent); }
.pc-table th .pc-sort { opacity: .8; font-size: 10px; margin-inline-start: 3px; }
.pc-table td { padding: 8px 10px; border-bottom: 1px solid var(--vc-table-row-border); color: var(--vc-text); vertical-align: middle; white-space: nowrap; }
.pc-table tr:hover td { background: var(--vc-table-row-hover); }
.pc-cell-player { display: flex; align-items: center; gap: 10px; min-width: 170px; }
.pc-cell-player .pc-face, .pc-cell-player .pc-initials { width: 30px; height: 30px; font-size: 11px; }
.pc-cell-player .pc-sub { font-size: 11px; }
.pc-tbar { display: inline-flex; align-items: center; gap: 8px; min-width: 130px; }
.pc-tbar .pc-bar { width: 80px; flex: 0 0 80px; }
.pc-tbar.is-up .pc-bar { color: var(--pc-up); } .pc-tbar.is-down .pc-bar { color: var(--pc-down); }
.pc-tbar.is-up .pc-fill { background: var(--pc-up); } .pc-tbar.is-down .pc-fill { background: var(--pc-down); }
.pc-more { display: flex; justify-content: center; padding: 12px; }
.pc-locked-card { padding: 22px 18px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.pc-locked-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; }
.pc-locked-card li { font-size: 13px; color: var(--vc-text-soft); padding: 4px 10px; border-radius: 999px; background: var(--vc-pill-bg); border: 1px solid var(--vc-pill-border); }
.pc-locked-card .pc-lock-t { font-size: 16px; font-weight: 800; color: var(--vc-text); }

/* ── The static states: frozen, fixed, pending ───────────────────────────── */
.pc-state { padding: 26px 22px; display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
.pc-state-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: var(--vc-pill-bg); border: 1px solid var(--vc-pill-border); }
.pc-state h3 { margin: 2px 0 6px; font-size: 18px; color: var(--vc-text); }
.pc-state p { margin: 0 0 8px; color: var(--vc-text-soft); line-height: 1.6; font-size: 14px; }

/* ── How it works ─────────────────────────────────────────────────────────── */
.pc-how summary { list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 800; font-size: 15px; color: var(--vc-text); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pc-how summary::-webkit-details-marker { display: none; }
.pc-how summary::after { content: '＋'; color: var(--vc-accent); font-weight: 800; }
.pc-how[open] summary::after { content: '－'; }
.pc-how-body { padding: 0 18px 16px; color: var(--vc-text-soft); font-size: 14px; line-height: 1.65; }
.pc-how-body p { margin: 0 0 10px; }
.pc-rules { width: 100%; max-width: 460px; border-collapse: collapse; margin: 6px 0 12px; font-size: 13px; }
.pc-rules td { padding: 7px 10px; border-bottom: 1px solid var(--vc-table-row-border); }
.pc-rules td:last-child { text-align: end; font-weight: 800; }

/* ── Your squad ───────────────────────────────────────────────────────────── */
.pc-squad { position: relative; border-color: rgba(252, 198, 29, .22); }
.pc-squad::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 60% at 100% 0%, rgba(252, 198, 29, .08), transparent 60%);
}
[dir="rtl"] .pc-squad::before { background: radial-gradient(120% 60% at 0% 0%, rgba(252, 198, 29, .08), transparent 60%); }
.pc-squad-h { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 18px 20px 14px; }
.pc-squad-kicker { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--vc-gold); display: flex; align-items: center; gap: 6px; }
.pc-squad-name { margin: 4px 0 2px; font-size: 20px; font-weight: 800; color: var(--vc-text); }
.pc-squad-meta { font-size: 12px; color: var(--vc-text-sub); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.pc-linkbtn { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: var(--vc-accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.pc-squad-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.pc-sq-stat { min-width: 104px; padding: 10px 14px; border-radius: var(--vc-radius-md); background: var(--vc-pill-bg); border: 1px solid var(--vc-pill-border); display: flex; flex-direction: column; gap: 2px; }
.pc-sq-stat b { font-size: 22px; font-weight: 800; line-height: 1.1; color: var(--vc-text); }
.pc-sq-stat span { font-size: 12px; color: var(--vc-text-soft); }
.pc-sq-stat.is-up b { color: var(--pc-up); }
.pc-sq-stat.is-down b { color: var(--pc-down); }
.pc-sq-stat.is-up { background: linear-gradient(160deg, rgba(95, 217, 122, .12), transparent 75%), var(--vc-pill-bg); }
.pc-sq-stat.is-down { background: linear-gradient(160deg, rgba(248, 81, 73, .12), transparent 75%), var(--vc-pill-bg); }

.pc-squad-body { position: relative; padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.pc-sq-line { display: grid; grid-template-columns: 58px 1fr; gap: 10px; align-items: start; }
.pc-sq-pos { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--vc-text-sub); padding-top: 18px; text-align: center; }
.pc-sq-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.pc-sq-tile {
  position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 10px; align-items: center;
  padding: 10px 12px; border-radius: var(--vc-radius-sm); background: var(--vc-surface); border: 1px solid var(--vc-card-border);
  transition: transform .15s ease, box-shadow .15s ease;
}
.pc-sq-tile:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.pc-sq-tile .pc-av, .pc-sq-tile .pc-face, .pc-sq-tile .pc-initials { width: 40px; height: 40px; }
.pc-sq-tile .pc-crest { width: 16px; height: 16px; padding: 1px; }
.pc-sq-tile .pc-name { font-size: 14px; }
.pc-sq-tile.is-rise { border-color: rgba(95, 217, 122, .45); background: linear-gradient(160deg, rgba(95, 217, 122, .10), transparent 70%), var(--vc-surface); }
.pc-sq-tile.is-fall { border-color: rgba(248, 81, 73, .45); background: linear-gradient(160deg, rgba(248, 81, 73, .10), transparent 70%), var(--vc-surface); }
.pc-sq-tile.is-riseSoon, .pc-sq-tile.is-rose { border-color: rgba(95, 217, 122, .22); }
.pc-sq-tile.is-fallSoon, .pc-sq-tile.is-fell { border-color: rgba(248, 81, 73, .22); }
.pc-sq-tile.is-stays, .pc-sq-tile.is-frozen, .pc-sq-tile.is-locked, .pc-sq-tile.is-unknown { opacity: .82; }
.pc-sq-info { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pc-sq-price { font-size: 13px; font-weight: 800; white-space: nowrap; }
.pc-sq-price .pc-old { color: var(--vc-text-sub); font-weight: 600; }
.pc-sq-price .pc-arr { margin: 0 3px; color: var(--vc-text-sub); }
.pc-sq-tile.is-rise .pc-new, .pc-sq-tile.is-riseSoon .pc-new, .pc-sq-tile.is-rose .pc-new { color: var(--pc-up); }
.pc-sq-tile.is-fall .pc-new, .pc-sq-tile.is-fallSoon .pc-new, .pc-sq-tile.is-fell .pc-new { color: var(--pc-down); }
.pc-st { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; white-space: nowrap; background: var(--vc-chip-bg); border: 1px solid var(--vc-chip-border); color: var(--vc-text-soft); }
.pc-st.is-up { background: rgba(95, 217, 122, .14); border-color: rgba(95, 217, 122, .35); color: var(--pc-up); }
.pc-st.is-down { background: rgba(248, 81, 73, .14); border-color: rgba(248, 81, 73, .35); color: var(--pc-down); }
.pc-st.is-soft-up { color: var(--pc-up); }
.pc-st.is-soft-down { color: var(--pc-down); }
.pc-sq-sell { grid-column: 1 / -1; font-size: 11px; color: var(--vc-text-sub); display: flex; gap: 6px; align-items: center; }
.pc-sq-sell b { color: var(--vc-text-soft); }
.pc-sq-sell .pc-up-t, .pc-sq-sell .pc-down-t { font-weight: 800; }
.pc-sq-tile .pc-bar { grid-column: 1 / -1; height: 4px; }
.pc-sq-tile.is-rise .pc-bar, .pc-sq-tile.is-riseSoon .pc-bar { color: var(--pc-up); }
.pc-sq-tile.is-fall .pc-bar, .pc-sq-tile.is-fallSoon .pc-bar { color: var(--pc-down); }
.pc-sq-tile.is-rise .pc-fill, .pc-sq-tile.is-riseSoon .pc-fill { background: var(--pc-up); }
.pc-sq-tile.is-fall .pc-fill, .pc-sq-tile.is-fallSoon .pc-fill { background: var(--pc-down); }
.pc-sq-tile .pc-bar.is-pos .pc-fill { background: rgba(95, 217, 122, .6); }
.pc-sq-tile .pc-bar.is-neg .pc-fill { background: rgba(248, 81, 73, .6); }
.pc-sq-tile.is-rise .pc-bar .pc-fill, .pc-sq-tile.is-riseSoon .pc-bar .pc-fill { background: var(--pc-up); }
.pc-sq-tile.is-fall .pc-bar .pc-fill, .pc-sq-tile.is-fallSoon .pc-bar .pc-fill { background: var(--pc-down); }

.pc-squad-advice { position: relative; margin: 0 14px 14px; padding: 12px 14px; border-radius: var(--vc-radius-md); background: var(--vc-updated-bg); border: 1px solid var(--vc-updated-border); display: flex; flex-direction: column; gap: 8px; }
.pc-squad-advice h3 { margin: 0; font-size: 13px; font-weight: 800; color: var(--vc-text); display: flex; align-items: center; gap: 6px; }
.pc-adv { font-size: 13px; color: var(--vc-text-soft); line-height: 1.55; display: flex; gap: 8px; align-items: baseline; }
.pc-adv .pc-tri { flex: 0 0 auto; font-size: 11px; }
.pc-adv b { color: var(--vc-text); }
.pc-squad-foot { position: relative; padding: 0 20px 14px; font-size: 12px; color: var(--vc-text-sub); line-height: 1.5; }

/* Not connected: one clean ask. */
.pc-connect { position: relative; padding: 18px 20px 20px; display: grid; grid-template-columns: 1fr auto; gap: 14px 20px; align-items: center; }
.pc-connect h2 { margin: 2px 0 4px; font-size: 18px; font-weight: 800; color: var(--vc-text); }
.pc-connect p { margin: 0; font-size: 13px; color: var(--vc-text-soft); line-height: 1.55; }
.pc-connect-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pc-connect-form input {
  width: 170px; padding: 10px 14px; border-radius: 999px; font: inherit; font-size: 14px; font-variant-numeric: tabular-nums;
  background: var(--vc-input-bg); border: 1px solid var(--vc-input-border); color: var(--vc-text);
}
.pc-connect-err { grid-column: 1 / -1; font-size: 12px; color: var(--vc-red); }

/* The free view: how many move, never who. */
.pc-squad-tease { position: relative; padding: 0 14px 16px; }
.pc-squad-tease .pc-ghosts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pc-squad-tease .pc-ghost { height: 64px; margin: 0; }

/* "Yours" on the board's own rows. */
.pc-chip.is-mine { color: var(--vc-gold); border-color: rgba(252, 198, 29, .4); background: rgba(252, 198, 29, .09); }
.pc-toggle.is-mine-toggle { color: var(--vc-gold); }

/* ── Tabs: the page's four views, one tap apart ───────────────────────────── */
.pc-tabs {
  display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--vc-pill-bg); border: 1px solid var(--vc-pill-border);
  overflow-x: auto; scrollbar-width: none; scroll-margin-top: 130px;
}
.pc-tabs::-webkit-scrollbar { display: none; }
.pc-tab {
  appearance: none; border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 800; color: var(--vc-text-soft);
  padding: 9px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 1 0 auto;
}
.pc-tab:hover { color: var(--vc-text); }
.pc-tab.is-active { background: var(--vc-gold); color: #10213a; box-shadow: 0 4px 14px rgba(252, 198, 29, .25); }
.pc-tab-c { font-size: 11px; font-weight: 700; opacity: .8; }
.pc-panel { display: flex; flex-direction: column; gap: 12px; }

/* The nights picker as a slim bar above the two lists. */
.pc-subbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pc-subbar-when { font-size: 12px; font-weight: 700; color: var(--vc-text-sub); padding-inline: 6px; }
.pc-note { font-size: 12px; color: var(--vc-text-sub); line-height: 1.5; padding-inline: 4px; }

/* Your squad in one line, on the main tab. */
.pc-banner {
  appearance: none; width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; text-align: start; font: inherit; font-size: 13px;
  border-radius: var(--vc-radius-md); color: var(--vc-text); border: 1px solid rgba(252, 198, 29, .28);
  background: linear-gradient(90deg, rgba(252, 198, 29, .10), transparent 65%), var(--vc-surface);
}
[dir="rtl"] .pc-banner { background: linear-gradient(270deg, rgba(252, 198, 29, .10), transparent 65%), var(--vc-surface); }
.pc-banner:hover { border-color: rgba(252, 198, 29, .5); }
.pc-banner-k { font-weight: 800; color: var(--vc-gold); white-space: nowrap; }
.pc-banner-c { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--vc-text-soft); }
.pc-banner-go { font-weight: 800; color: var(--vc-accent); white-space: nowrap; }
.pc-banner.is-add .pc-banner-c { color: var(--vc-accent); font-weight: 700; }

/* Folded second-order lists. */
.pc-fold summary { list-style: none; cursor: pointer; padding: 12px 18px; font-weight: 800; font-size: 14px; color: var(--vc-text); display: flex; align-items: center; gap: 8px; }
.pc-fold summary::-webkit-details-marker { display: none; }
.pc-fold summary::after { content: '＋'; margin-inline-start: auto; color: var(--vc-accent); }
.pc-fold[open] summary::after { content: '－'; }

/* Calmer rows: more air, fewer marks. */
.pc-row .pc-sub { font-size: 12px; color: var(--vc-text-sub); gap: 2px 6px; }
.pc-row .pc-sub > span + span::before, .pc-table .pc-sub > span + span::before { content: '·'; margin-inline-end: 6px; opacity: .6; }
.pc-row .pc-sub > .pc-chip::before, .pc-table .pc-sub > .pc-chip::before { content: none; }
.pc-star { color: var(--vc-gold); font-size: 12px; margin-inline-start: 6px; }
.pc-row.is-mine { box-shadow: none; background: rgba(252, 198, 29, .05); }
.pc-list-card.is-up, .pc-list-card.is-down { border-top-width: 2px; }
.pc-squad-name .pc-linkbtn { font-size: 12px; font-weight: 600; margin-inline-start: 8px; vertical-align: middle; }
.pc-squad-foot { padding: 0 20px 16px; font-size: 11px; opacity: .85; }
.pc-sq-tile .pc-sq-info { margin-top: 2px; }

/* Compact rows: two lines, the progress as a hairline along the foot. */
.pc-row { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 2px 12px; padding: 9px 10px 12px; }
.pc-row .pc-av, .pc-row .pc-face, .pc-row .pc-initials { width: 38px; height: 38px; }
.pc-row .pc-name { font-size: 14px; }
.pc-metric { font-size: 11px; color: var(--vc-text-sub); white-space: nowrap; margin-top: 2px; }
.pc-metric b { color: var(--vc-text-soft); }
.pc-rowbar { position: absolute; inset-inline: 10px; bottom: 3px; height: 3px; border-radius: 999px; background: var(--vc-surface3); overflow: hidden; }
.pc-rowbar-fill, .pc-rowbar-proj { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 999px; }
.pc-row.is-up .pc-rowbar-fill { background: var(--pc-up); }
.pc-row.is-down .pc-rowbar-fill { background: var(--pc-down); }
.pc-row.is-up .pc-rowbar-proj { background: rgba(95, 217, 122, .35); }
.pc-row.is-down .pc-rowbar-proj { background: rgba(248, 81, 73, .35); }

/* The squad's "no change" players as chips. */
.pc-sq-rest { margin-top: 2px; }
.pc-sq-rest-t { font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--vc-text-sub); margin: 6px 2px 6px; }
.pc-sq-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-sq-chip {
  display: inline-flex; align-items: center; gap: 6px; padding-block: 3px; padding-inline: 3px 10px; border-radius: 999px; font-size: 12px;
  background: var(--vc-pill-bg); border: 1px solid var(--vc-pill-border); color: var(--vc-text-soft);
}
.pc-sq-chip .pc-av, .pc-sq-chip .pc-face, .pc-sq-chip .pc-initials { width: 22px; height: 22px; font-size: 9px; }
.pc-sq-chip .pc-crest { display: none; }
.pc-sq-chip-n { font-weight: 700; color: var(--vc-text); }
.pc-sq-chip-p { color: var(--vc-text-sub); font-weight: 700; }
.pc-squad-body > .pc-sq-tiles { margin-bottom: 4px; }

/* The table's phone sort control — hidden where the header row does the job. */
.pc-sort-wrap { display: none; align-items: center; gap: 6px; font-size: 12px; color: var(--vc-text-sub); }
.pc-sort-select { font: inherit; font-size: 13px; padding: 6px 10px; border-radius: 999px; background: var(--vc-input-bg); border: 1px solid var(--vc-input-border); color: var(--vc-text); }
/* Yours: the ★ beside the name and a faint wash — no gold edge (it read as a stray line). */
.pc-table tr.is-mine td { background: rgba(252, 198, 29, .05); }

/* ── Small screens ────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .pc-app { gap: 12px; }
  .pc-hero { padding: 14px 16px; gap: 12px; }
  .pc-countdown { font-size: 30px; }
  .pc-when-sub { font-size: 13px; }
  .pc-fresh { padding-top: 2px; font-size: 11px; }
  .pc-kpis { gap: 8px; }
  .pc-kpi { padding: 10px 12px; }
  .pc-kpi-n { font-size: 24px; }
  .pc-kpi-l { font-size: 12px; }
  .pc-accuracy { font-size: 12px; padding: 8px 10px; }
  /* Tabs and night pills: equal-width, TWO lines (name over count), so all of them fit
     a 390px screen instead of scrolling off it. */
  .pc-tabs { border-radius: 18px; overflow: visible; }
  .pc-tab, .pc-subbar .pc-night {
    flex: 1 1 0; min-width: 0; flex-direction: column; gap: 1px; padding: 7px 4px; border-radius: 14px;
    font-size: 12px; line-height: 1.2; white-space: normal; text-align: center;
  }
  .pc-tab-c, .pc-subbar .pc-night-c { font-size: 10px; }
  .pc-subbar .pc-nights { width: 100%; border-radius: 18px; }
  .pc-subbar .pc-night.is-locked::after { position: absolute; }
  .pc-subbar-when { display: none; }   /* the hero already says "02:00 your time" */

  /* The hero, compact: the two counts become one slim row, and the field size drops. */
  .pc-kpis { grid-template-columns: 1fr 1fr; }
  .pc-kpi { flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; padding: 8px 12px; }
  .pc-kpi-n { font-size: 20px; }
  .pc-kpi-n .pc-tri { font-size: 12px; }
  .pc-kpi-l { font-size: 11px; line-height: 1.25; }
  .pc-fresh > span:last-child:not(.pc-src):not([data-ago]) { display: none; }
  .pc-list { padding: 0 4px 4px; }

  /* The full board without sideways scrolling: each row becomes a two-line card. */
  .pc-tools { padding: 0 12px 10px; gap: 8px; }
  .pc-search { flex-basis: 100%; }
  .pc-pos { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .pc-pos::-webkit-scrollbar { display: none; }
  .pc-sort-wrap { display: inline-flex; }
  .pc-table-wrap { overflow: visible; }
  .pc-table { min-width: 0; display: block; }
  .pc-table thead { display: none; }
  .pc-table tbody { display: block; }
  .pc-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; padding: 10px 14px; border-bottom: 1px solid var(--vc-table-row-border); }
  .pc-table td { display: block; padding: 0; border: 0; white-space: normal; text-align: start; min-width: 0; }
  .pc-table tr:hover td { background: none; }
  .pc-table td.pc-td-player { grid-column: 1 / 3; grid-row: 1; }
  .pc-table td.pc-td-price { grid-column: 3; grid-row: 1; text-align: end; align-self: center; font-weight: 800; font-size: 14px; }
  .pc-table td.is-sec { display: none; }
  /* Each kept figure is its own small tile — label over value, centred — so the three
     read as three columns rather than one run of numbers. */
  .pc-table td.is-m {
    text-align: center; padding: 6px 4px; border-radius: 10px;
    background: var(--vc-pill-bg); border: 1px solid var(--vc-pill-border);
  }
  .pc-table td.is-m::before { content: attr(data-label); display: block; font-size: 10px; font-weight: 700; color: var(--vc-text-sub); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pc-table td.is-m .pc-tbar { justify-content: center; }
  .pc-table td[colspan] { grid-column: 1 / -1; }
  .pc-cell-player { min-width: 0; }
  .pc-tbar { min-width: 0; gap: 6px; }
  .pc-tbar .pc-bar { width: 40px; flex: 0 0 40px; }
  .pc-table tr.is-mine { background: rgba(252, 198, 29, .05); }
  .pc-table tr.is-mine td.pc-td-player, .pc-table tr.is-mine td.pc-td-price { background: none; }
  /* The recent card's pills share the phone's width instead of clipping off it. */
  .pc-card-h .pc-nights { width: 100%; }
  .pc-card-h .pc-night { flex: 1 1 0; min-width: 0; justify-content: center; text-align: center; white-space: normal; }
  .pc-sq-line { grid-template-columns: 1fr; gap: 6px; }
  .pc-sq-pos { padding-top: 0; text-align: start; }
  .pc-sq-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-sq-tile { grid-template-columns: 34px minmax(0, 1fr); padding: 9px 10px; }
  .pc-sq-tile .pc-av, .pc-sq-tile .pc-face, .pc-sq-tile .pc-initials { width: 34px; height: 34px; }
  .pc-connect { grid-template-columns: 1fr; }
  .pc-sq-stat { min-width: 0; flex: 1 1 30%; }
}
@media (max-width: 860px) {
  .pc-hero { grid-template-columns: 1fr; padding: 18px; }
  .pc-duo, .pc-recent { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .pc-kpi-n { font-size: 28px; }
  .pc-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 4px 10px; padding: 9px 6px; }
  .pc-av, .pc-face, .pc-initials { width: 40px; height: 40px; }
  .pc-card-h { padding: 12px 14px 8px; }
  .pc-nights { width: 100%; justify-content: space-between; }
  .pc-night { padding: 6px 8px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .pc-live-dot { animation: none; } }
