/* Breakdown peserta, desain "D · Peta panas" (9 Okt 2026).
   Semua selector diawali .pz supaya tidak mengubah halaman lain.
   Tema gelap mengikuti class "dsh-dark" di <html> (pilihan dari Dashboard Saya). */

.pz {
  --p-bg: #f2f1ee; --p-card: #ffffff; --p-ink: #261316; --p-muted: #715c5f;
  --p-line: #e9e7e1; --p-panel: #f8f6f3; --p-chip: #f0e9d8; --p-chip-ink: #0a4f4f;
  --p-accent-ink: #0a4f4f; --p-shadow: 0 1px 2px rgba(19,38,29,.06), 0 6px 18px rgba(19,38,29,.05);
  --p-l0: #f2f0ed; --p-l0ink: #a39d8f; --p-l1: #e6dabf; --p-l1ink: #4a0a13;
  --p-l2: #d2ba86; --p-l2ink: #3a070e; --p-l3: #b43f50; --p-l4: #941225; --p-l5: #6b0a18;
  --p-dash: #dcd8cf; --p-selring: #261316; --p-gap: #ffffff;
  max-width: 560px; margin: 0 auto; color: var(--p-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
html.dsh-dark .pz {
  --p-bg: #140d0e; --p-card: #201718; --p-ink: #f4f2ee; --p-muted: #b3ad9f;
  --p-line: #302426; --p-panel: #1a1112; --p-chip: #0f3d3a; --p-chip-ink: #5fd4c7;
  --p-accent-ink: #5fd4c7; --p-shadow: 0 1px 2px rgba(0,0,0,.4);
  --p-l0: #291c1e; --p-l0ink: #765f62; --p-l1: #5a1d26; --p-l1ink: #f5ead3;
  --p-l2: #7c1f2d; --p-l2ink: #fbf5e8; --p-l3: #a02537; --p-l4: #c73c50; --p-l5: #e3bf6f;
  --p-dash: #443335; --p-selring: #f4f2ee; --p-gap: #201718;
}
body:has(.pz) { background: #f2f1ee; }
html.dsh-dark body:has(.pz) { background: #140d0e; }
html.dsh-dark footer.site { color: #947f82; }
main:has(> .pz) { padding-top: 14px; }

.pz *, .pz *::before, .pz *::after { box-sizing: border-box; }
.pz h1, .pz h2 { margin: 0; color: inherit; }
.pz p { margin: 0; }
.pz a { color: var(--p-accent-ink); }
/* Reset gaya tombol global situs */
.pz button {
  font: inherit; margin: 0; padding: 0; border: 0; background: none; color: inherit;
  border-radius: 0; cursor: pointer; text-align: center; -webkit-tap-highlight-color: transparent;
}
.pz button:hover { background: none; }
.pz button:focus-visible, .pz a:focus-visible, .pz summary:focus-visible { outline: 3px solid #5fd4c7; outline-offset: 2px; }
.pz [hidden] { display: none !important; }

/* ---------- hero ---------- */
.pz-hero {
  border-radius: 22px; padding: 14px 16px; color: #fff;
  background: linear-gradient(135deg, #0f8a8a 0%, #0a4f4f 100%);
}
.pz-back { color: rgba(255,255,255,.9) !important; font-size: 13px; font-weight: 600; text-decoration: none; }
.pz-who { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.pz .pz-av { width: 46px; height: 46px; font-size: 16px; margin: 0; flex: none; border: 2px solid rgba(255,255,255,.85); color: #fff; }
.pz-who-t { min-width: 0; }
.pz-who h1 { font-size: 19px; line-height: 1.2; font-weight: 800; color: #fff; overflow-wrap: anywhere; }
.pz-sub { margin-top: 3px; font-size: 12px; opacity: .85; }
.pz-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 14px;
  border-radius: 14px; background: rgba(255,255,255,.12); padding: 10px 0;
}
.pz-stats > div { text-align: center; padding: 0 2px; }
.pz-stats > div + div { border-left: 1px solid rgba(255,255,255,.2); }
.pz-stats .n { display: block; font-size: 18px; font-weight: 800; line-height: 1.25; font-variant-numeric: tabular-nums; }
.pz-stats .n.s { font-size: 13.5px; line-height: 1.6; white-space: nowrap; }
.pz-stats .l { display: block; font-size: 10.5px; opacity: .85; margin-top: 1px; }

/* ---------- kartu ---------- */
.pz-card {
  margin-top: 14px; background: var(--p-card); border: 1px solid var(--p-line);
  border-radius: 18px; padding: 16px 14px 14px; box-shadow: var(--p-shadow);
}
.pz-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 2px; }
.pz-head h2 { font-size: 16px; font-weight: 800; }
.pz-sports .pz-head h2 { font-size: 15px; }
.pz-muted { font-size: 11.5px; font-weight: 600; color: var(--p-muted); }
.pz-empty { padding: 12px 2px 4px; font-size: 13.5px; color: var(--p-muted); }

/* ---------- peta ---------- */
.pz-row {
  display: grid; grid-template-columns: 40px repeat(7, minmax(0, 1fr)) 30px;
  column-gap: 4px; align-items: center;
}
.pz-dowrow { margin-top: 12px; }
.pz-dow, .pz-sigma { font-size: 10.5px; font-weight: 700; color: var(--p-muted); text-align: center; }
.pz-sigma { text-align: right; }
.pz-rows { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.pz-wlabel { font-size: 10.5px; font-weight: 600; color: var(--p-muted); white-space: nowrap; }
.pz-wsum { text-align: right; font-size: 12.5px; font-weight: 800; color: var(--p-accent-ink); font-variant-numeric: tabular-nums; }
.pz-wsum.z { color: var(--p-l0ink); }
.pz button.pz-cell {
  height: 32px; border-radius: 8px; font-size: 12px; font-weight: 800; line-height: 1;
  display: flex; align-items: center; justify-content: center; width: 100%;
  background: var(--p-l0); color: var(--p-l0ink); border: 1px solid transparent;
  font-variant-numeric: tabular-nums;
}
.pz button.pz-cell.lnone { color: transparent; }
.pz button.pz-cell.l0 { background: var(--p-l1); color: var(--p-l1ink); opacity: .6; }
.pz button.pz-cell.l1 { background: var(--p-l1); color: var(--p-l1ink); }
.pz button.pz-cell.l2 { background: var(--p-l2); color: var(--p-l2ink); }
.pz button.pz-cell.l3 { background: var(--p-l3); color: #fff; }
.pz button.pz-cell.l4 { background: var(--p-l4); color: #fff; }
.pz button.pz-cell.l5 { background: var(--p-l5); color: #fff; }
html.dsh-dark .pz button.pz-cell.l4, html.dsh-dark .pz button.pz-cell.l5 { color: #24080c; }
.pz button.pz-cell.lexc { background: var(--p-l0); color: var(--p-l0ink); border: 1px dashed var(--p-dash); }
.pz button.pz-cell.lfut { background: transparent; border: 1px dashed var(--p-dash); color: transparent; cursor: default; }
.pz-cell.today { box-shadow: 0 0 0 2px #5fd4c7; }
.pz-cell.sel { box-shadow: 0 0 0 2px var(--p-gap), 0 0 0 4px var(--p-selring); }

.pz button.pz-older {
  display: block; width: 100%; margin-top: 10px; padding: 8px 10px; border-radius: 10px;
  background: var(--p-panel); color: var(--p-accent-ink); font-size: 12.5px; font-weight: 700;
  border: 1px solid var(--p-line);
}
.pz-legend {
  display: flex; align-items: center; gap: 6px; margin-top: 12px; padding: 0 2px;
  font-size: 10.5px; font-weight: 600; color: var(--p-muted);
}
.pz-legend i { width: 16px; height: 12px; border-radius: 4px; display: block; }
.pz-legend .l1 { background: var(--p-l1); } .pz-legend .l2 { background: var(--p-l2); }
.pz-legend .l3 { background: var(--p-l3); } .pz-legend .l4 { background: var(--p-l4); }
.pz-legend .l5 { background: var(--p-l5); }
.pz-hint-r { margin-left: auto; }

/* ---------- panel hari ---------- */
.pz-panels { margin-top: 14px; }
.pz-panel { border-radius: 14px; background: var(--p-panel); border: 1px solid var(--p-line); padding: 12px 13px; }
.pz-phead { display: flex; align-items: center; gap: 8px; }
.pz-phead > div { flex: 1; min-width: 0; }
.pz-ptitle { font-size: 14.5px; font-weight: 800; }
.pz-pweek { font-size: 11.5px; color: var(--p-muted); margin-top: 1px; font-variant-numeric: tabular-nums; }
.pz-pill {
  font-size: 13px; font-weight: 800; border-radius: 99px; padding: 4px 11px; white-space: nowrap;
  background: var(--p-chip); color: var(--p-chip-ink); font-variant-numeric: tabular-nums;
}
.pz-pill.z { background: var(--p-l0); color: var(--p-muted); }
.pz-pnote { margin-top: 10px; font-size: 12.5px; color: var(--p-muted); }
.pz-act { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--p-line); }
.pz-act-l { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 14px; font-weight: 800; }
.pz-act-d { margin-left: auto; font-variant-numeric: tabular-nums; }
.pz-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.pz-act-n { font-size: 12px; color: var(--p-muted); margin-top: 3px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.pz-badge {
  font-size: 10px; font-weight: 700; border-radius: 99px; padding: 1px 7px;
  background: var(--p-l0); color: var(--p-muted);
}
.pz-badge.x { background: #fde8e8; color: #9b1c1c; }
html.dsh-dark .pz-badge.x { background: #3b1b1b; color: #ffb4b4; }
.pz-formula {
  margin-top: 10px; border-radius: 10px; background: var(--p-card); border: 1px solid var(--p-line);
  padding: 8px 10px; font-size: 12.5px; font-weight: 600; line-height: 1.55;
}
.pz-h { display: block; font-weight: 400; font-size: 11.5px; color: var(--p-muted); margin-top: 2px; }
.pz-wformula { margin-top: 8px; font-size: 11.5px; line-height: 1.55; color: var(--p-muted); }
.pz-wformula strong { color: var(--p-ink); }
.pz-wformula .pz-h { display: inline; margin: 0; }

/* ---------- jenis olahraga ---------- */
.pz-sports { margin-top: 20px; }
.pz-sgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.pz-scard { background: var(--p-card); border: 1px solid var(--p-line); border-radius: 16px; padding: 12px 13px 13px; box-shadow: var(--p-shadow); min-width: 0; }
.pz-s1 { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.pz-sname { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 800; min-width: 0; overflow-wrap: anywhere; }
.pz-spct { font-size: 11px; font-weight: 700; color: var(--p-muted); }
.pz-stime { font-size: 20px; font-weight: 800; line-height: 1.1; margin-top: 10px; font-variant-numeric: tabular-nums; }
.pz-smeta { font-size: 12px; color: var(--p-muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.pz-sbar { height: 5px; border-radius: 99px; background: var(--p-l0); margin-top: 10px; overflow: hidden; }
.pz-sbar span { display: block; height: 5px; border-radius: 99px; }

/* ---------- cara hitung ---------- */
.pz-how { margin-top: 16px; padding: 0 4px; font-size: 12px; line-height: 1.6; color: var(--p-muted); }
.pz-how summary { cursor: pointer; font-weight: 700; color: var(--p-accent-ink); padding: 6px 0; }
.pz-how p { margin-top: 6px; }
.pz-how strong { color: var(--p-ink); }

@media (prefers-reduced-motion: no-preference) {
  .pz-cell { transition: box-shadow .12s; }
}
