/* -------------------------------------------------------------------------
   /profile/ — profil pemain ala pelacak pertandingan, memakai token theme.css.

   Aturan visualnya sama dengan halaman lain: kartu translusen, aksen amber,
   dan warna hasil (menang/kalah) SELALU disertai teks supaya warna bukan
   satu-satunya penanda.
   ------------------------------------------------------------------------- */

.pf-page {
  --win: #6ee7a8;
  --loss: #ff7a6b;
  padding-top: 34px;
}

.pf-head { align-items: flex-start; }
.pf-head-text { flex: 1 1 420px; min-width: 0; }

/* ---------- pencarian pemain ---------- */

.pf-search {
  flex: 0 1 360px;
  min-width: 260px;
  margin-top: 6px;
}

.pf-search-row { display: flex; gap: 8px; }

.pf-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.pf-input::placeholder { color: var(--dim); }
.pf-input:focus-visible {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(200, 162, 90, .16);
}

.pf-search-hint {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--dim);
}

.pf-search-hint.is-bad { color: var(--loss); }

/* ---------- status / catatan ---------- */

.pf-status {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.pf-h {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
}

.pf-p {
  margin: 0 0 12px;
  max-width: 66ch;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-soft);
}

.pf-actions { margin: 0 0 12px; }

.pf-fine {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--dim);
}

.pf-missing,
.pf-error { margin-top: 8px; padding: 18px 20px; }

.pf-error { border-left: 2px solid var(--copper); }

.pf-credit { margin-top: 18px; }

/* ---------- kartu identitas ---------- */

.pf-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 10px;
  padding: 18px 20px;
}

.pf-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  object-fit: cover;
  background: rgba(255, 255, 255, .05);
}

/* Tanpa foto Steam: huruf pertama, bukan gambar yang gagal dimuat. */
.pf-avatar--letter {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--dim);
}

.pf-ident { min-width: 0; }

.pf-ident-top {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.pf-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.15;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.pf-badge {
  padding: 2px 8px;
  border: 1px solid rgba(200, 162, 90, .45);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
}

.pf-meta {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
}

.pf-meta a { color: var(--text-soft); text-decoration-color: var(--line-strong); }
.pf-meta a:hover { color: var(--amber); }

.pf-rank-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.pf-rank-row img { width: 30px; height: 30px; }

.pf-rank-name {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
}

.pf-rank-chip {
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.pf-hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Tiga angka cepat di kanan kartu identitas. */
.pf-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(72px, auto));
  gap: 16px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.pf-quick b {
  display: block;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.pf-quick b.is-good { color: var(--win); }
.pf-quick b.is-bad { color: var(--loss); }
.pf-quick b.is-mid { color: var(--amber); }

.pf-quick span {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- tab ---------- */

.pf-tabs { margin: 22px 0 0; scroll-margin-top: 96px; }
.pf-tabs a { cursor: pointer; }

/* ---------- panel + kartu ---------- */

.pf-panel { margin-top: 16px; }

.pf-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 16px;
  align-items: start;
}

.pf-col { display: grid; gap: 16px; min-width: 0; }

.pf-block { padding: 16px 18px; }
.pf-block + .pf-block { margin-top: 0; }

.pf-block-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.pf-block-h h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
}

.pf-block-h a,
.pf-block-h button {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber);
  text-decoration: none;
}

.pf-block-h a:hover { text-decoration: underline; }

.pf-loading {
  margin: 0;
  padding: 18px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- keterangan kecil ---------- */

.pf-note {
  margin: 10px 0 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--dim);
}

.pf-empty {
  margin: 0;
  padding: 20px 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- bar win rate ---------- */

.pf-bar {
  display: block;
  height: 5px;
  border-radius: var(--radius);
  background: rgba(216, 223, 230, .09);
  overflow: hidden;
}

.pf-bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--dim);
}

.pf-bar > i.is-good { background: var(--win); }
.pf-bar > i.is-bad { background: var(--loss); }
.pf-bar > i.is-mid { background: var(--amber); }

.pf-wr { font-family: var(--font-mono); font-size: 12px; white-space: nowrap; }
.pf-wr.is-good { color: var(--win); }
.pf-wr.is-bad { color: var(--loss); }
.pf-wr.is-mid { color: var(--amber); }

/* ---------- hero paling sering ---------- */

.pf-heroes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.pf-hero-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px 58px;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.pf-hero-row + .pf-hero-row { border-top: 1px solid var(--line); }

.pf-hero-row img {
  width: 56px;
  height: 32px;
  border-radius: var(--radius);
  object-fit: cover;
  background: rgba(255, 255, 255, .05);
}

.pf-hero-main { min-width: 0; display: grid; gap: 5px; }

.pf-hero-link {
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pf-hero-link:hover { color: var(--amber); text-decoration: underline; }

/* Penanda sampel tipis: teks, bukan warna saja. */
.pf-thin {
  flex: none;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--copper);
}

.pf-hero-games {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-soft);
  white-space: nowrap;
}

/* ---------- daftar pertandingan ---------- */

.pf-matches { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }

.pf-match {
  display: grid;
  grid-template-columns: 60px minmax(110px, 1.1fr) 84px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-left-width: 2px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .02);
  color: inherit;
  text-decoration: none;
  font-size: 12.5px;
}

.pf-match:hover,
.pf-match:focus-visible {
  background: rgba(255, 255, 255, .05);
  border-color: var(--line-strong);
  outline: none;
}

.pf-match.is-win { border-left-color: var(--win); }
.pf-match.is-loss { border-left-color: var(--loss); }

.pf-verdict {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pf-verdict.is-win { color: var(--win); }
.pf-verdict.is-loss { color: var(--loss); }

.pf-match-hero { display: flex; align-items: center; gap: 8px; min-width: 0; }

.pf-match-hero img {
  width: 48px;
  height: 28px;
  border-radius: 4px;
  object-fit: cover;
  flex: none;
  background: rgba(255, 255, 255, .05);
}

.pf-match-hero span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pf-kda {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-soft);
  white-space: nowrap;
}

.pf-tags { display: flex; gap: 5px; flex-wrap: wrap; min-width: 0; }

.pf-tag {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}

.pf-when {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dim);
  white-space: nowrap;
  text-align: right;
}

/* ---------- form 20 terakhir + sebaran ---------- */

.pf-form-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 13px;
}

.pf-form-line b { font-size: 22px; font-weight: 500; }
.pf-form-line .is-win { color: var(--win); }
.pf-form-line .is-loss { color: var(--loss); }

.pf-streak {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.pf-dist { display: grid; gap: 10px; }

.pf-dist-group + .pf-dist-group { border-top: 1px solid var(--line); padding-top: 10px; }

.pf-dist-title {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}

.pf-dist-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 4px 8px;
  padding: 3px 0;
}

.pf-dist-label {
  font-size: 12px;
  color: var(--text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pf-dist-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--dim);
  white-space: nowrap;
}

.pf-dist-row .pf-bar { grid-column: 1 / -1; margin-top: 4px; }

/* ---------- nama sebelumnya ---------- */

.pf-aliases { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

.pf-aliases li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--text-soft);
}

.pf-aliases span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dim);
  white-space: nowrap;
}

/* ---------- toolbar saringan ---------- */

.pf-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.pf-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }

.pf-field { display: grid; gap: 4px; }

.pf-field-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
}

.pf-field .select { min-width: 128px; }
.pf-field .pf-input { width: 100%; min-width: 150px; }

/* Chip kecil (minimal match, urutkan rekan). `aria-pressed` terlihat dari
   border + warna, jadi statusnya tidak bergantung pada warna saja. */
.pf-min-chips { display: flex; gap: 6px; flex-wrap: wrap; }

.pf-min {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .06em;
  cursor: pointer;
  white-space: nowrap;
}

.pf-min:hover { color: var(--text); border-color: var(--line-strong); }

.pf-min[aria-pressed="true"] {
  border-color: rgba(200, 162, 90, .5);
  background: rgba(200, 162, 90, .1);
  color: var(--amber);
}

.pf-toolbar-note {
  margin: 0 0 4px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- tabel ---------- */

.pf-table-wrap { overflow-x: auto; }

.pf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.pf-table th {
  padding: 0 8px 8px;
  text-align: left;
  white-space: nowrap;
}

.pf-table th button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}

.pf-table th button:hover { color: var(--text); }
.pf-table th[aria-sort] button { color: var(--amber); }

.pf-table td {
  padding: 8px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  vertical-align: middle;
}

.pf-table .num { text-align: right; font-family: var(--font-mono); white-space: nowrap; }
.pf-table .pf-cell-hero { display: flex; align-items: center; gap: 8px; min-width: 130px; }
.pf-table .pf-cell-hero img { width: 48px; height: 28px; border-radius: 4px; object-fit: cover; flex: none; }
.pf-table .pf-cell-bar { min-width: 92px; }
.pf-table .pf-cell-bar .pf-bar { margin-top: 4px; }

.pf-player { display: flex; align-items: center; gap: 8px; min-width: 140px; }

.pf-player img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: rgba(255, 255, 255, .06);
}

.pf-player a { color: var(--text); text-decoration-color: var(--line-strong); }
.pf-player a:hover { color: var(--amber); }

.pf-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}

.pf-pager span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.pf-pager button:disabled { opacity: .38; cursor: default; }

/* ---------- KPI rekor ---------- */

.pf-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
}

.pf-kpi {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
}

.pf-kpi span {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
}

.pf-kpi b {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.pf-kpi i {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-style: normal;
  color: var(--dim);
}

/* ---------- dua kartu kecil berdampingan ---------- */

.pf-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.pf-mini {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pf-mini img { width: 56px; height: 32px; border-radius: var(--radius); object-fit: cover; flex: none; }
.pf-mini div { min-width: 0; }

.pf-mini b {
  display: block;
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pf-mini span { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 10px; color: var(--dim); }

/* ---------- chat ---------- */

.pf-words { display: flex; flex-wrap: wrap; gap: 6px; }

.pf-word {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-soft);
}

.pf-word i { font-style: normal; color: var(--dim); margin-left: 4px; }

/* ---------- pemain pro ---------- */

.pf-pros { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }

.pf-pro {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .02);
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.pf-pro:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .05); }

.pf-pro img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.pf-pro div { min-width: 0; }

.pf-pro b {
  display: block;
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pf-pro span { display: block; font-family: var(--font-mono); font-size: 9.5px; color: var(--dim); }

/* ---------- responsif ---------- */

@media (max-width: 980px) {
  .pf-cols { grid-template-columns: minmax(0, 1fr); }
  .pf-col--side { grid-row: auto; }
}

@media (max-width: 860px) {
  .pf-hero { grid-template-columns: auto minmax(0, 1fr); }
  .pf-quick {
    grid-column: 1 / -1;
    padding: 12px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .pf-name { font-size: 22px; }
  .pf-search { flex: 1 1 100%; }
}

@media (max-width: 720px) {
  .pf-match { grid-template-columns: 52px minmax(0, 1fr) 78px auto; }
  .pf-match .pf-tags { display: none; }
  .pf-col-with,
  .pf-col-against,
  .pf-col-last { display: none; }
  .pf-duo { grid-template-columns: 1fr; }
  .pf-block { padding: 14px; }
  .pf-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}

@media (max-width: 520px) {
  .pf-match { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .pf-match .pf-when { display: none; }
  .pf-hero-row { grid-template-columns: 48px minmax(0, 1fr) 44px 52px; }
  .pf-hero-row img { width: 48px; height: 28px; }
  .pf-avatar { width: 60px; height: 60px; }
  .pf-page { padding-top: 24px; }
}

/* =========================================================================
   Tambahan 2026-11-02: daftar match rinci, item, kebiasaan main, Steam.
   ========================================================================= */

/* ---------- tabel pertandingan ---------- */

.pf-toolbar--pair { margin-top: -4px; }
.pf-toolbar--pair > .pf-filters { align-items: flex-end; }
.pf-toolbar--pair > .pf-filters > .pf-field-label { align-self: center; padding-right: 2px; }

.pf-mtable td { padding: 7px 8px; }
.pf-mtable tbody tr { cursor: pointer; }
.pf-mtable tbody tr:hover { background: rgba(255, 255, 255, .04); }
.pf-mtable .pf-verdict { text-decoration: none; }
.pf-mtable .pf-verdict:hover { text-decoration: underline; }

.pf-mrow.is-win td:first-child { box-shadow: inset 2px 0 var(--win); }
.pf-mrow.is-loss td:first-child { box-shadow: inset 2px 0 var(--loss); }

.pf-items { display: flex; align-items: center; gap: 2px; }
.pf-item {
  flex: none;
  object-fit: contain;
  border-radius: 2px;
  background: rgba(0, 0, 0, .28);
}

.pf-mrow-ago {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--dim);
  white-space: nowrap;
}

.pf-mtable a { color: inherit; text-decoration: none; }
.pf-mtable a:hover { color: var(--amber); }

/* ---------- tabel mini (kebiasaan main) ---------- */

.pf-minitable th { padding-bottom: 6px; }
.pf-minitable td { padding: 5px 8px; }

/* ---------- item terakhir ---------- */

.pf-item-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0 22px;
}

.pf-item-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 8px;
  padding: 6px 0;
}

.pf-item-row + .pf-item-row { border-top: 1px solid var(--line); }
.pf-item-row .pf-item { grid-row: 1 / 3; }
.pf-item-row .pf-bar { grid-column: 2 / 4; }
.pf-bar > i.is-item { background: var(--copper); }

.pf-item-name {
  font-size: 12.5px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pf-item-count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--dim);
  white-space: nowrap;
}

/* ---------- grafik jam / hari ---------- */

.pf-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 74px;
  margin-top: 6px;
}

.pf-barcol {
  flex: 1 1 0;
  height: 100%;
  display: flex;
  align-items: flex-end;
  min-width: 0;
}

.pf-barcol i {
  display: block;
  width: 100%;
  border-radius: 2px 2px 0 0;
  background: rgba(200, 162, 90, .55);
}

.pf-barlabels {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--dim);
}

.pf-barlabels--days span { flex: 1 1 0; text-align: center; }

/* ---------- status Steam ---------- */

.pf-steam-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
}

.pf-presence { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

.pf-presence i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dim);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .05);
}

.pf-presence.is-online i,
.pf-presence.is-live i { background: var(--win); }
.pf-presence.is-away i { background: var(--amber); }
.pf-presence.is-offline i { background: var(--dim); }

/* ---------- kolom yang menyusut ---------- */

@media (max-width: 1200px) {
  .pf-col-dmg { display: none; }
}

@media (max-width: 1020px) {
  .pf-col-xpm,
  .pf-col-mode { display: none; }
}

@media (max-width: 860px) {
  .pf-col-gpm,
  .pf-col-lh { display: none; }
}

@media (max-width: 720px) {
  .pf-col-items { display: none; }
  .pf-bars { height: 62px; }
}

.pf-mname {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .pf-mtable th,
  .pf-mtable td { padding-left: 4px; padding-right: 4px; }
  .pf-mtable .pf-cell-hero { min-width: 0; gap: 6px; }
  .pf-mtable .pf-cell-hero img { width: 32px; height: 18px; }
  .pf-mrow-ago { display: none; }
}

@media (max-width: 400px) {
  .pf-mtable th,
  .pf-mtable td { padding-left: 3px; padding-right: 3px; }
  .pf-mtable .pf-verdict { font-size: 8px; letter-spacing: .04em; }
  .pf-mtable .pf-cell-hero img { width: 28px; height: 16px; }
  .pf-mtable td.num { font-size: 11.5px; }
}

/* =========================================================================
   Tambahan 2026-11-02 (2): tumpukan kartu + Skenario.
   ========================================================================= */

/* Panel yang memuat beberapa kartu memakai tumpukan ini. Sebelumnya jaraknya
   ditulis satu per satu dengan style="margin-top:16px", sehingga kartu yang
   tidak kebagian atribut itu menempel langsung ke kartu di atasnya. */
.pf-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.pf-stack > * { min-width: 0; }

/* ---------- skenario ---------- */

.pf-scn-wrap { overflow-x: auto; }

.pf-scn {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.pf-scn thead th {
  padding: 6px 10px;
  border: 0;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: right;
  color: var(--dim);
  white-space: nowrap;
}

/* Baris pertama = nama rentang waktu (menggabung dua kolom di bawahnya). */
.pf-scn thead tr:first-child th {
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}

.pf-scn thead th[colspan] {
  text-align: center;
  letter-spacing: .14em;
  color: var(--muted);
}

.pf-scn thead th.pf-scn-cat,
.pf-scn thead th.pf-scn-last { text-align: left; }

.pf-scn thead tr:last-child th {
  padding-top: 9px;
  border-bottom: 1px solid var(--line-strong);
}

.pf-scn tbody th,
.pf-scn tbody td {
  padding: 7px 10px;
  border: 0;
  border-top: 1px solid rgba(216, 223, 230, .07);
  text-align: left;
  font-weight: 400;
  vertical-align: middle;
}

.pf-scn tbody tr:not(.pf-scn-group):hover th,
.pf-scn tbody tr:not(.pf-scn-group):hover td { background: rgba(255, 255, 255, .04); }

.pf-scn .pf-scn-label {
  color: var(--text-soft);
  font-size: 12.5px;
  white-space: nowrap;
}

.pf-scn tbody td.num {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-soft);
  white-space: nowrap;
}

/* Pemisah antar rentang waktu, bukan antar kolom: jumlah dan win rate satu
   periode tetap terlihat sebagai satu kelompok. Kolom ke-1 = label, 2–4 =
   sepanjang waktu (match, WR, waktu main), 5–6 = 6 bulan, 7–8 = bulan ini. */
.pf-scn tbody tr:not(.pf-scn-group) td:nth-child(5),
.pf-scn tbody tr:not(.pf-scn-group) td:nth-child(7) {
  border-left: 1px solid rgba(216, 223, 230, .07);
}

.pf-scn .pf-scn-wr { color: var(--muted); }
.pf-scn .pf-scn-wr.is-good { color: var(--win); }
.pf-scn .pf-scn-wr.is-bad { color: var(--loss); }
.pf-scn .pf-scn-wr.is-mid { color: var(--amber); }
.pf-scn .pf-scn-last { color: var(--dim); font-size: 10.5px; }
.pf-scn .pf-scn-time { color: var(--muted); font-size: 11px; }

/* Baris "semua pertandingan" di atas tabel. */
.pf-scn .pf-scn-total th,
.pf-scn .pf-scn-total td { border-top: 0; padding-top: 4px; padding-bottom: 10px; }
.pf-scn .pf-scn-total .pf-scn-label {
  font-family: var(--font-display);
  font-size: 13.5px;
  color: var(--text);
}
.pf-scn .pf-scn-total td.num { color: var(--text); font-size: 12px; }

/* Judul kelompok (Sisi, Jenis lobby, Mode, …). */
.pf-scn .pf-scn-group th {
  padding: 15px 10px 6px;
  border-top: 1px solid var(--line);
  background: rgba(200, 162, 90, .05);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: left;
  color: var(--amber);
}

.pf-scn .pf-scn-hint {
  margin-left: 8px;
  font-size: 9.5px;
  letter-spacing: .04em;
  text-transform: none;
  color: var(--dim);
}

@media (max-width: 900px) {
  .pf-scn .pf-scn-last { display: none; }
}

@media (max-width: 720px) {
  .pf-scn .pf-scn-month { display: none; }
  .pf-scn thead th,
  .pf-scn tbody th,
  .pf-scn tbody td { padding-left: 5px; padding-right: 5px; }
  .pf-scn thead th[colspan] { letter-spacing: .1em; }
  /* Label boleh membungkus: "Not recorded" yang dipaksa satu baris membuat
     tabel lebih lebar daripada layar, dan kolom win rate paling kanan terpotong. */
  .pf-scn .pf-scn-label { white-space: normal; }
}

@media (max-width: 560px) {
  /* Di ponsel, yang dilepas lebih dulu adalah rentang waktu terpendek, bukan
     kolom waktu main — angka yang diminta Dotabuff tetap terlihat. */
  .pf-scn .pf-scn-six { display: none; }
}

@media (max-width: 480px) {
  .pf-scn thead th,
  .pf-scn tbody th,
  .pf-scn tbody td { padding-left: 4px; padding-right: 4px; }
  .pf-scn tbody td.num { font-size: 11px; }
  .pf-scn .pf-scn-label { font-size: 12px; }
  .pf-scn .pf-scn-total .pf-scn-label { font-size: 13px; }
  .pf-scn thead th { font-size: 8.5px; letter-spacing: .06em; }
}
