/* Profile pages: player, squad, head-to-head.
   The hero, the tab strip, the two-column body and the measuring pictures
   (scale, stat bars, bars by game). Everything reads the site's tokens from
   app.css, so the light theme is the same rules with different values. */

.profile {
  display: flex; flex-direction: column;
  /* The rating block's ground: a shade between the panel and the page. */
  --deep: color-mix(in srgb, var(--panel) 55%, var(--ground));
}
.profile .lab {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.profile .lab.is-bright { color: var(--text); }
.profile .lab.is-faint { color: var(--faint); }
.profile a.lab:hover { color: var(--bright); }

/* The small bordered button every sealed group reveals with. */
.profile .rev {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text); background: var(--panel2);
  border: 1px solid var(--bar); border-radius: var(--r);
  padding: 5px 9px; cursor: pointer; line-height: 1.2; flex: none;
}
.profile .rev:hover { border-color: var(--muted); }

/* ---------- Hero ---------- */
.phero {
  display: flex; min-height: 340px;
  background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r);
  overflow: hidden;
}
.phero-img {
  width: 280px; flex: none; position: relative;
  display: flex; align-items: center; justify-content: center;
  border-right: 1px solid var(--rule); background: var(--panel2);
}
.phero-img.h0 { background: var(--m0); } .phero-img.h1 { background: var(--m1); }
.phero-img.h2 { background: var(--m2); } .phero-img.h3 { background: var(--m3); }
.phero-img.h4 { background: var(--m4); } .phero-img.h5 { background: var(--m5); }
.phero-img.h6 { background: var(--m6); } .phero-img.h7 { background: var(--m7); }
.phero-img.has-img { background: var(--panel2); align-items: flex-end; }
.phero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* A logo fits inside the slot with room around it; a face fills it. */
.phero-img img.is-whole { object-fit: contain; padding: 28px; box-sizing: border-box; }
/* The monogram is white on every monogram colour, in both themes: the
   colours are the same in both. */
.phero-mono {
  font-size: 180px; font-weight: 700; line-height: 1; letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.92); user-select: none;
}
.phero-submit {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  padding: 8px 10px; border-radius: var(--r); text-align: center;
  background: rgba(0, 0, 0, 0.35); color: #fff;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
}
.phero-submit:hover { background: rgba(0, 0, 0, 0.55); color: #fff; }
/* With a real picture the submit link is a quiet corner, not a banner. */
.phero-img.has-img .phero-submit { opacity: 0; transition: opacity 120ms; }
.phero-img.has-img:hover .phero-submit, .phero-img.has-img .phero-submit:focus-visible { opacity: 1; }

.phero-id {
  flex: 1; min-width: 0; padding: 30px 32px 22px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
}
.phero-eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.phero-eyebrow .flag { width: 24px; height: 18px; margin: 0; vertical-align: 0; }
.phero h1 {
  font-size: 60px; line-height: 1; font-weight: 700; letter-spacing: -0.02em;
  color: var(--bright); overflow-wrap: anywhere;
}
.phero .latin-sub { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: -6px; }

/* A region, in the gold of the circuit's tiers. */
.rtag {
  font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold); white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  border-radius: var(--r); padding: 2px 6px;
}

.phero-squad { display: inline-flex; align-items: center; gap: 10px; }
.phero-squad .sq-name { font-size: 17px; font-weight: 700; color: var(--text); }
.phero-squad:hover .sq-name { color: var(--bright); }
.sq-mark {
  width: 28px; height: 28px; border-radius: var(--r); flex: none;
  display: grid; place-items: center; overflow: hidden;
  font-size: 11px; font-weight: 700; color: #fff; background: var(--panel2);
}
.sq-mark img { width: 100%; height: 100%; object-fit: contain; }
.sq-mark.h0 { background: var(--m0); } .sq-mark.h1 { background: var(--m1); }
.sq-mark.h2 { background: var(--m2); } .sq-mark.h3 { background: var(--m3); }
.sq-mark.h4 { background: var(--m4); } .sq-mark.h5 { background: var(--m5); }
.sq-mark.h6 { background: var(--m6); } .sq-mark.h7 { background: var(--m7); }

.phero-figs { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 6px 0 0; }
.phero-figs dt, .prating-foot dt { margin-bottom: 4px; }
.phero-figs dd, .prating-foot dd {
  margin: 0; font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 18px; color: var(--bright); line-height: 1.3; white-space: nowrap;
}
.phero-figs dd.is-gold { color: var(--gold); }

.phero-honours {
  align-self: stretch; margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--rule);
  display: flex; align-items: center; gap: 10px;
}
.phero-honours .chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 0; }
.hchip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--panel2); border: 1px solid var(--bar); border-radius: var(--r);
  padding: 5px 10px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.hchip .seal { font-family: var(--mono); font-size: 11px; min-width: 30px; }
.hchip { min-width: 0; max-width: 100%; }
.hchip.is-more { color: var(--muted); }
.hchip.is-more:hover { color: var(--text); }
.hchip .cup { color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hchip .cup:hover { color: var(--bright); }
.hico { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.5; }
.hico .fill { fill: var(--gold); stroke: none; }

/* ---------- Rating block ---------- */
.prating {
  width: 380px; flex: none; background: var(--deep);
  border-left: 1px solid var(--rule); padding: 30px 28px 22px;
  display: flex; flex-direction: column;
}
.prating-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.prating-main { display: flex; align-items: baseline; gap: 12px; margin-top: 10px; }
.prating-value {
  font-size: 84px; font-weight: 700; line-height: 1; letter-spacing: -0.03em;
  color: var(--bright); font-variant-numeric: tabular-nums;
}
.prating-beside { display: flex; flex-direction: column; gap: 2px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.prating-beside .rise { color: var(--rise); }
.prating-beside .drop { color: var(--accent); }
.prating-beside .is-strong { font-size: 22px; color: var(--bright); }
.prating-standing { font-size: 13px; color: var(--muted); margin-top: 8px; }
.prating-standing b { color: var(--bright); font-weight: 700; }
.prating .pscale { margin-top: 28px; }
.prating-foot {
  display: flex; justify-content: space-between; gap: 12px;
  margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--rule);
}
.prating-foot dd { font-size: 16px; }

/* ---------- Scale ----------
   Three rows, so nothing can land on anything else: mark labels on top
   (0-10px), the marks and the subject's notch below them (14-38px) crossing
   the track (24-32px), and the ticks under it all. */
.pscale { position: relative; height: 62px; }
.pscale-track {
  position: absolute; left: 0; right: 0; top: 24px; height: 8px;
  display: flex; gap: 2px; background: var(--line); border-radius: 2px; overflow: hidden;
}
.pscale-track.is-graded { background: none; }
.pscale-track.is-graded i { flex: 1; }
.pscale-track.is-graded i:nth-child(1) { background: var(--b-low); }
.pscale-track.is-graded i:nth-child(2) { background: var(--b-mid); }
.pscale-track.is-graded i:nth-child(3) { background: var(--b-top); }
.pscale-track.is-graded i:nth-child(4) { background: var(--b-podium); }
.pscale-track .fill { display: block; height: 100%; background: var(--b-podium); }
.pscale-mark {
  position: absolute; top: 18px; width: 2px; height: 20px; margin-left: -1px;
  background: var(--text);
}
.pscale-lab {
  position: absolute; top: 0; font-family: var(--mono); font-size: 9px;
  color: var(--muted); white-space: nowrap; line-height: 1;
}
.pscale-lab.is-mid { transform: translateX(-50%); }
.pscale-lab.is-end { transform: translateX(-100%); }
/* The subject: a notch and a stem in the accent, the one thing on the gauge
   that is about them. */
.pscale-subject { position: absolute; top: 14px; width: 14px; height: 20px; margin-left: -7px; }
.pscale-subject::before {
  content: ""; position: absolute; left: 0; top: 0;
  border-left: 7px solid transparent; border-right: 7px solid transparent;
  border-top: 9px solid var(--accent);
}
.pscale-subject::after {
  content: ""; position: absolute; left: 5.5px; top: 8px; width: 3px; height: 12px;
  background: var(--accent);
}
.pscale-ticks {
  position: absolute; left: 0; right: 0; top: 42px;
  font-family: var(--mono); font-size: 10px; color: var(--faint);
}
.pscale-ticks span { position: absolute; transform: translateX(-50%); }
.pscale-ticks span:first-child { transform: none; }
.pscale-ticks span:last-child { transform: translateX(-100%); }

/* ---------- Tabs ---------- */
.ptabs {
  display: flex; gap: 2px; height: 46px; align-items: flex-end;
  border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none;
}
.ptabs a {
  padding: 0 16px 13px; font-size: 13px; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.ptabs a:hover { color: var(--text); }
.ptabs a[aria-current="page"] { color: var(--bright); font-weight: 700; border-bottom-color: var(--accent); }
.ptabs .n { font-family: var(--mono); font-weight: 400; color: var(--faint); }

/* ---------- Body ---------- */
.pbody {
  display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 20px;
  align-items: start; margin-top: 20px;
}
.pbody.is-wide { grid-template-columns: minmax(0, 1fr); }
.pmain, .pside { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.pmain > *, .pside > * { margin: 0; }

/* Profile panels head on the panel itself, title bright and the rest quiet. */
.profile .panel-head {
  height: 40px; padding: 0 16px; background: transparent; letter-spacing: 0.14em;
}
.profile .panel-head > :first-child { color: var(--text); white-space: nowrap; }
.profile .panel-head a { color: var(--muted); }
.profile .panel-head a:hover { color: var(--bright); }
.profile .panel-head > span:last-child:not(:first-child) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile .panel-head .ph-right { display: flex; align-items: center; gap: 12px; min-width: 0; }
.profile .panel-head .ph-right > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile thead th { background: transparent; font-weight: 600; border-bottom-width: 2px; }
.profile tbody td { height: 44px; border-bottom-color: var(--line); }
.profile .chartbox { margin: 0; }
.profile td.name, .profile td.nowrap { white-space: nowrap; }

/* ---------- Short view ---------- */
.pshort-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px; padding: 6px 16px 14px;
}
.pstat { padding: 10px 0; border-bottom: 1px solid var(--line); }
.pstat-top { display: flex; align-items: baseline; gap: 10px; }
.pstat-lab { font-size: 13px; font-weight: 600; color: var(--text); margin-right: auto; }
.pstat-field { font-family: var(--mono); font-size: 10px; color: var(--faint); }
.pstat-v { font-family: var(--mono); font-size: 16px; color: var(--bright); font-variant-numeric: tabular-nums; }
.pstat-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.pstat-track { flex: 1; position: relative; height: 6px; background: var(--line); border-radius: 2px; }
.pstat-track i { display: block; height: 100%; border-radius: 2px; background: var(--b-top); }
.pstat-track b { position: absolute; top: -3px; width: 2px; height: 12px; margin-left: -1px; background: var(--muted); }
.pstat-verdict {
  width: 46px; text-align: right; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.pstat.is-elite .pstat-track i { background: var(--b-podium); }
.pstat.is-elite .pstat-verdict { color: var(--bright); }
.pstat.is-below .pstat-track i { background: var(--b-mid); }
.pstat.is-below .pstat-verdict { color: var(--faint); }

/* ---------- Bars by game ---------- */
.pbars-body { padding: 18px 16px 12px; }
.pbars-plot {
  position: relative; height: 170px; display: flex; align-items: flex-end; gap: 8px;
  border-bottom: 1px solid var(--bar);
  /* The tallest bar's height; the value label sits in the room above it. */
  --plot: 146px;
}
.pbar {
  flex: 1; min-width: 0; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px;
}
.pbar .seal { font-family: var(--mono); font-size: 9px; color: var(--muted); line-height: 1.2; }
.pbar i {
  display: block; width: 100%; border-radius: 2px 2px 0 0;
  height: calc(var(--h) * var(--plot) / 100); background: var(--b-top);
}
.pbar.is-best i { background: var(--bright); }
.pbar.is-low i { background: var(--b-mid); }
/* Sealed: every bar the same full height in the bar colour, so the shape of
   the run is not given away by the heights. */
.pbar:has(.seal:not(.revealed)) i { height: var(--plot); background: var(--bar); }
.pbars-base {
  position: absolute; left: 0; right: 0; border-top: 1px dashed var(--faint);
  bottom: calc(var(--at) * var(--plot) / 100); pointer-events: none; z-index: 1;
}
.pbars-baselab {
  position: absolute; right: 0; bottom: calc(var(--at) * var(--plot) / 100 + 3px);
  font-family: var(--mono); font-size: 9px; color: var(--muted); z-index: 1;
  background: var(--panel); padding-left: 4px;
}
.pbars-groups {
  display: flex; margin-top: 8px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint);
}
.pbars-groups span {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border-left: 1px solid var(--bar); padding-left: 6px;
}

/* ---------- Side lists ---------- */
.pside-row {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 16px;
  border-bottom: 1px solid var(--line); font-size: 13px;
}
.pside-row:last-child { border-bottom: 0; }
a.pside-row:hover { background: var(--row-hover); }
.pside-row .n { flex: 1; min-width: 0; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pside-row .g { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pside-row .v { font-family: var(--mono); font-size: 13px; color: var(--bright); min-width: 34px; text-align: right; }
.pside-row .v .seal { min-width: 30px; }
.pside-row.is-mate { min-height: 48px; }
.pside-row .ini {
  width: 26px; height: 26px; flex: none; display: grid; place-items: center;
  border-radius: var(--r); background: var(--panel2); border: 1px solid var(--bar);
  font-size: 11px; font-weight: 700; color: var(--muted);
}
.pside-row .bar { width: 70px; height: 4px; background: var(--line); border-radius: 2px; flex: none; }
.pside-row .bar i { display: block; height: 100%; background: var(--b-top); border-radius: 2px; }
.pside-more {
  display: block; padding: 12px 16px; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text);
  border-top: 1px solid var(--line);
}

/* ---------- Narrow ---------- */
@media (max-width: 1060px) {
  .phero { flex-wrap: wrap; }
  .prating { width: 100%; border-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 900px) {
  .pbody { grid-template-columns: minmax(0, 1fr); }
}
/* A phone: the picture becomes a compact band on top, the name and figures
   under it, the rating block last, and the short view one column. */
@media (max-width: 620px) {
  .phero { flex-direction: column; min-height: 0; }
  .phero-img { width: 100%; height: 150px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .phero-mono { font-size: 96px; }
  .phero-submit { left: auto; right: 10px; bottom: 10px; padding: 6px 8px; }
  .phero-id { padding: 18px 16px 16px; gap: 10px; }
  .phero h1 { font-size: 40px; }
  .phero-figs { gap: 10px 20px; }
  .phero-figs dd { font-size: 17px; }
  .phero-honours { flex-wrap: wrap; }
  .hchip { white-space: normal; }
  .prating { padding: 20px 16px 16px; }
  .prating-value { font-size: 64px; }
  .prating-foot { flex-wrap: wrap; }
  .pshort-grid { grid-template-columns: minmax(0, 1fr); }
  .pbars-plot { gap: 3px; }
  .pbar .seal { font-size: 0; }
  .pbar .seal .seal-value { font-size: 0; }
  .ptabs a { padding: 0 12px 13px; }
}

/* ---------- Squad: roster cards ---------- */
/* Between the hero and the tabs on every squad tab: the players, HLTV-style,
   as the thing a reader came to see. */
.proster { margin-top: 20px; }
.proster-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.proster-head.is-staff { margin-top: 16px; }
.proster-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pcard {
  display: flex; flex-direction: column; overflow: hidden; min-width: 0;
  background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r);
}
.pcard:hover { border-color: var(--bar); }
.pcard-pic {
  height: 200px; position: relative; background: var(--panel2);
  display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
}
.pcard-pic > img:not(.flag) { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard-sil { width: 150px; height: 180px; fill: var(--bar); }
.pcard-pic .flag { position: absolute; top: 12px; left: 12px; width: 21px; height: 15px; margin: 0; }
.pcard-role {
  position: absolute; top: 10px; right: 10px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; color: var(--faint);
}
.pcard-body {
  display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px;
  border-top: 1px solid var(--rule);
}
.pcard-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pcard-name { font-size: 17px; font-weight: 700; color: var(--bright); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-rsr { font-family: var(--mono); font-size: 17px; color: var(--bright); font-variant-numeric: tabular-nums; }
.pcard-bar { display: block; height: 4px; background: var(--line); border-radius: 2px; }
.pcard-bar i { display: block; height: 100%; background: var(--b-podium); border-radius: 2px; }
.pcard-foot {
  display: flex; justify-content: space-between; gap: 6px;
  font-family: var(--mono); font-size: 10px; color: var(--muted); white-space: nowrap;
}
.pstaff { display: flex; flex-wrap: wrap; gap: 10px; }
.pstaff-card {
  display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; min-width: 160px;
  background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r);
}
.pstaff-card:hover { border-color: var(--bar); }
.pstaff-name { font-size: 14px; font-weight: 700; color: var(--text); }
.pstaff-name .flag { margin-right: 6px; }
.profile .proster + .ptabs { margin-top: 20px; }

/* ---------- Squad: short view tiles ---------- */
.ptiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ptile {
  display: flex; flex-direction: column; gap: 8px; padding: 16px; min-width: 0;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.ptile:nth-child(3n) { border-right: 0; }
.ptile:nth-last-child(-n+3):nth-child(3n+1), .ptile:nth-last-child(-n+3):nth-child(3n+1) ~ .ptile { border-bottom: 0; }
.ptile-v {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--mono); font-size: 26px; color: var(--bright); line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.ptile-field { font-size: 10px; color: var(--faint); }
.ptile .pstat-track { flex: none; height: 5px; margin-top: 2px; }
.ptile.is-elite .pstat-track i { background: var(--b-podium); }
.ptile.is-below .pstat-track i { background: var(--b-mid); }

/* ---------- Squad: recent form ---------- */
/* A tile per game: its finish in the placement band's colour, sealed black
   until revealed, the round under it either way. */
.pform-tiles { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 16px 10px; }
.pform-tile {
  position: relative; width: 38px; height: 38px; border-radius: var(--r);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--bright); font-family: var(--mono);
}
.pform-tile .seal { font-size: 13px; font-weight: 600; min-width: 22px; text-align: center; }
.pform-tile.b-podium, .pform-tile.b-podium .seal { color: #0B0E11; }
:root[data-theme="light"] .pform-tile.b-mid, :root[data-theme="light"] .pform-tile.b-low { color: #1B1F24; }
/* The podium band is dark in the light theme, so its figure turns white. */
:root[data-theme="light"] .pform-tile.b-podium, :root[data-theme="light"] .pform-tile.b-podium .seal { color: #fff; }
.pform-tile .seal > .seal-bar { background: #000; }
.pform-tile:has(.seal:not(.revealed)) { background: #000; }
.pform-round { font-size: 8px; line-height: 1; opacity: 0.7; }
.pform-tile:has(.seal:not(.revealed)) .pform-round { color: var(--faint); opacity: 1; }
.pform-note { margin: 0; padding: 0 16px 14px; font-family: var(--mono); font-size: 10px; color: var(--faint); }

/* ---------- Squad: trophies ---------- */
.ptrophies-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ptrophy {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0;
  padding: 16px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.ptrophy:hover { background: var(--row-hover); }
.ptrophy-ico { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.6; }
.ptrophy-name { font-size: 12px; font-weight: 700; line-height: 1.3; color: var(--text); }
.ptrophy-when { font-family: var(--mono); font-size: 10px; color: var(--muted); }

/* ---------- Squad: side column ---------- */
.pside-row.is-table { min-height: 40px; }
.pside-row .p { width: 18px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pside-row.is-self { background: var(--panel2); }
.pside-row.is-self .n { font-weight: 700; color: var(--bright); }
.pside-row.is-gap { border-top: 1px dashed var(--bar); }
.pside-cal { padding: 10px 16px 12px; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .proster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* A phone: cards two-up with a shorter picture, tiles two across. */
@media (max-width: 620px) {
  .proster-grid { gap: 10px; }
  .pcard-pic { height: 130px; }
  .pcard-sil { width: 100px; height: 120px; }
  .pcard-body { padding: 10px; gap: 6px; }
  .pcard-name, .pcard-rsr { font-size: 15px; }
  .pcard-foot span:last-child { display: none; }
  .ptiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ptile { padding: 14px 12px; }
  .ptile:nth-child(n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .ptile:nth-child(2n) { border-right: 0; }
  .ptile-v { font-size: 22px; flex-wrap: wrap; gap: 2px 8px; }
  .ptrophies-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pform-tiles { gap: 4px; }
  .pform-tile { width: 34px; height: 34px; }
}
/* A squad's two-letter tag in the picture slot: smaller than a player's
   initial, so both letters fit inside the tile. */
.phero-mono.is-pair { font-size: 120px; letter-spacing: -0.05em; }
@media (max-width: 620px) { .phero-mono.is-pair { font-size: 72px; } }
