/* TanyaPadel (/padel/). Uses ONLY the real tokens from style.css (see CLAUDE.md).
   Brand navy for buttons/accents; green only for meaning (LIVE, winner). */

.pd-main { padding-top: 8px; padding-bottom: 48px; }
/* visible keyboard focus on every custom control */
#pd-app :focus-visible, .pd-modal :focus-visible, .pd-cof :focus-visible { outline: 3px solid var(--brand-link); outline-offset: 2px; border-radius: 8px; }
.pd-in-session .pd-hero { display: none; }
.pd-card { padding: 22px; margin-bottom: 16px; }
.pd-card h2 { margin-bottom: 10px; padding-bottom: 10px; }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.pd-grid > * { min-width: 0; }   /* grid items otherwise grow to their content (the wide code input) and overflow phones */
.pd-narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
.pd-muted { color: var(--gray-500); font-size: .92rem; }
.pd-hint { color: var(--gray-500); font-size: .8rem; margin-top: 6px; line-height: 1.45; }
.pd-center { text-align: center; }
.pd-mt { margin-top: 10px; }
.pd-mt0 { margin-top: 0 !important; }
.pd-h3 { font-size: 1.02rem; font-weight: 800; color: var(--gray-900); margin: 22px 0 10px; }
.pd-h4 { font-size: .85rem; font-weight: 700; color: var(--gray-600); margin: 14px 0 8px; }
.pd-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-500); }
.pd-err { color: var(--red); font-size: .88rem; margin-top: 10px; }

.pd-btn { padding: 11px 18px; border-radius: 10px; font-size: .95rem; font-weight: 700; cursor: pointer; border: none; font-family: inherit; line-height: 1.2; }
.pd-btn:disabled { opacity: .55; cursor: wait; }
.pd-btn.btn-primary { flex: 0 0 auto; }
.pd-sm { padding: 7px 12px; font-size: .82rem; }
.pd-wide { width: 100%; display: block; }
.pd-link { background: none; border: none; color: var(--brand-link); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; padding: 0; margin-bottom: 8px; }
.pd-link:hover { text-decoration: underline; }

/* Home: format picker + join */
.pd-fmts { display: grid; gap: 10px; margin-top: 14px; }
.pd-fmt { display: flex; gap: 14px; align-items: center; text-align: left; width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid var(--gray-200); background: var(--gray-50); color: var(--gray-800); cursor: pointer; font: inherit; transition: border-color .15s, transform .15s; }
.pd-fmt:hover { border-color: var(--brand); transform: translateY(-1px); }
.pd-fmt b { display: block; color: var(--gray-900); font-size: 1rem; }
.pd-fmt small { display: block; color: var(--gray-500); font-size: .82rem; line-height: 1.4; }
.pd-fmt-ic { font-size: 1.6rem; }
.pd-join-row { display: flex; gap: 8px; margin: 12px 0 10px; }
.pd-join-row input { flex: 1; min-width: 0; padding: 11px 14px; border: 1.5px solid var(--gray-200); border-radius: 10px;
  font: inherit; color: var(--gray-800); background: var(--white); }
.pd-join-row input:focus { outline: none; border-color: var(--brand); }
.pd-code-in { font-size: 1.25rem !important; font-weight: 800; letter-spacing: .25em; text-transform: uppercase; text-align: center; }
.pd-recent { list-style: none; display: grid; gap: 6px; }
.pd-recent li { display: flex; align-items: center; gap: 6px; border: 1px solid var(--gray-200); border-radius: 10px; padding: 8px 10px; }
.pd-recent a { flex: 1; display: flex; flex-direction: column; color: var(--gray-900); }
.pd-recent a:hover { text-decoration: none; }
.pd-recent .pd-muted { font-size: .78rem; }
.pd-x { background: none; border: none; font-size: 1.3rem; color: var(--gray-500); cursor: pointer; padding: 0 6px; }

/* Create */
.pd-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pd-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pd-chip { display: inline-flex; align-items: center; gap: 2px; color: var(--gray-800); font-size: .9rem; font-weight: 600; }
.pd-chip button { background: none; border: none; color: var(--gray-500); font-size: 1.05rem; cursor: pointer; padding: 0 4px; line-height: 1; }
.pd-check { display: flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--gray-600); margin-bottom: 8px; }

/* Session header */
.pd-title { border: none !important; padding: 0 !important; margin: 0 0 6px !important; font-size: 1.35rem !important; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-tag { font-size: .82rem; font-weight: 600; color: var(--gray-500); }
.pd-tag.pd-role { color: var(--brand-link); }
.pd-note { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 14px;
  padding: 12px 14px; border-radius: 10px; background: var(--brand-pale); border: 1px solid var(--brand-light); color: var(--gray-800); font-size: .9rem; }
.pd-offline { position: sticky; top: 0; z-index: 30; background: var(--red); color: #fff; text-align: center; font-size: .85rem; font-weight: 600;
  padding: 8px 12px; border-radius: 10px; margin-bottom: 10px; }

/* Matches */
.pd-matches { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.pd-match { background: var(--white); border: 1px solid var(--gray-200); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-sm); }
/* the GM taps a score to enter it */
.pd-score-btn { min-width: 52px; height: 44px; padding: 0 8px; border: 1.5px solid var(--gray-200); border-radius: 10px; background: var(--gray-50);
  font: inherit; font-size: 1.5rem; font-weight: 800; color: var(--gray-900); font-variant-numeric: tabular-nums; cursor: pointer; }
.pd-score-btn:hover { border-color: var(--brand-link); }
.pd-score.is-open { color: var(--gray-400); }
.pd-match.is-live { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset, var(--shadow-sm); }
.pd-court { display: flex; justify-content: space-between; font-size: .72rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.pd-match.is-live .pd-state { color: var(--green); }
.pd-match.is-done .pd-state { color: var(--gray-500); }
.pd-side { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 3px 0; }
.pd-names { font-weight: 700; color: var(--gray-900); font-size: .98rem; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.pd-names i { color: var(--gray-400); font-style: normal; font-weight: 500; }
.pd-me { text-decoration: underline; text-decoration-color: var(--brand-link); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.pd-score { font-size: 1.6rem; font-weight: 800; color: var(--gray-900); min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; }
.pd-side.pd-win .pd-score { color: var(--green); }
.pd-vs { display: flex; align-items: center; gap: 8px; height: 10px; font-size: .64rem; color: var(--gray-400); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.pd-vs::before, .pd-vs::after { content: ''; flex: 1; border-top: 1px solid var(--gray-200); }
.pd-stepper { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.pd-stepper button { width: 44px; height: 44px; border-radius: 12px; border: none; background: var(--brand); color: #fff; font-size: 1.4rem;
  font-weight: 700; cursor: pointer; font-family: inherit; touch-action: manipulation; }
.pd-stepper button[data-d="-1"] { background: var(--gray-100); color: var(--gray-600); border: 1px solid var(--gray-200); }
.pd-stepper button:active { transform: scale(.94); }
.pd-match-foot { display: flex; justify-content: flex-end; align-items: center; margin-top: 6px; }
/* Score picker */
.pd-pick { margin-top: 14px; }
.pd-pick-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 8px; color: var(--gray-900); }
.pd-pick-h b { min-width: 0; overflow-wrap: anywhere; }
.pd-pick-v { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--gray-900); }
.pd-numgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; }
.pd-numgrid button { height: 42px; border: 1.5px solid var(--gray-200); background: var(--white); color: var(--gray-800); border-radius: 10px;
  font: inherit; font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; }
.pd-numgrid button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pd-pick-in { width: 100%; height: 52px; font-size: 1.4rem; font-weight: 800; text-align: center; }
.pd-score-clear { display: block; margin: 12px auto 0; color: var(--gray-500); }
#pd-score-save { position: sticky; bottom: 0; box-shadow: 0 -10px 12px var(--white); }
#pd-score-save:disabled { opacity: 1; cursor: not-allowed; background: color-mix(in srgb, var(--brand) 45%, var(--white)); border-color: transparent; }   /* opaque: chips scroll behind it */
.pd-compact .pd-match { padding: 10px 12px; box-shadow: none; }
.pd-compact .pd-score { font-size: 1.15rem; }
.pd-compact .pd-names { font-size: .9rem; }
.pd-byes { font-size: .82rem; color: var(--gray-500); margin-top: 8px; }
.pd-hostbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 8px; }
.pd-past { margin-top: 22px; }
.pd-past summary { cursor: pointer; font-weight: 700; color: var(--brand-link); font-size: .92rem; }

/* Final banner */
.pd-final { text-align: center; background: var(--brand-pale); border-color: var(--brand-light); }
.pd-final-crown { font-size: 2.4rem; line-height: 1; }
.pd-final h3 { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); margin: 4px 0; }
.pd-final-low { margin-top: 10px; font-size: .88rem; color: var(--gray-600); }
.pd-final-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.pd-final-acts .pd-btn { width: auto; flex: 0 0 auto; }

/* Leaderboard */
.pd-th { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-500); }
.pd-th span:nth-child(n+3), .pd-num { text-align: right; font-variant-numeric: tabular-nums; }
.pd-rank { font-weight: 800; color: var(--gray-500); }
.pd-mine .pd-who b { text-decoration: underline; text-decoration-color: var(--brand-link); text-underline-offset: 3px; }
.pd-who { min-width: 0; }
.pd-who b { display: block; color: var(--gray-900); overflow-wrap: anywhere; }
.pd-num b { color: var(--gray-900); font-size: 1.05rem; }
.pd-badges { background: var(--white); border: 1px solid var(--gray-200); border-radius: 20px; padding: 2px 18px; }
.pd-badge { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--gray-200); }
.pd-badge:last-child { border-bottom: none; }
.pd-badge-ic { font-size: 1.6rem; line-height: 1; width: 32px; text-align: center; }
.pd-badge b { color: var(--gray-900); display: block; }
.pd-badge small { color: var(--gray-500); font-size: .76rem; display: block; }
.pd-badge p { margin-top: 4px; font-weight: 600; font-size: .9rem; color: var(--gray-800); }

/* Players */
.pd-plist { list-style: none; display: grid; }
.pd-plist li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--gray-200); }
.pd-plist li:last-child { border-bottom: none; }
.pd-plist .pd-pl-mid { flex: 1; }
.pd-plist li.is-off { opacity: .6; }
.pd-plist li .pd-textbtn { flex-shrink: 0; }
.pd-plist b { color: var(--gray-900); }

/* Classic match scoreboard */
.pd-scoreboard { padding: 18px; }
.pd-sb-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .78rem; color: var(--gray-500); font-weight: 600; margin-bottom: 10px; }
.pd-sb-note { color: var(--green); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.pd-sb-row { display: flex; align-items: center; gap: 8px; padding: 12px 4px; border-bottom: 1px solid var(--gray-200); }
.pd-sb-row:last-of-type { border-bottom: none; }
.pd-sb-row .pd-names { flex: 1; font-size: 1.02rem; }
.pd-sb-row.pd-win .pd-names::after { content: ' 🏆'; }
.pd-sb-set { width: 30px; text-align: center; font-weight: 700; color: var(--gray-500); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.pd-sb-set.cur { color: var(--gray-900); }
.pd-sb-pts { min-width: 54px; text-align: center; font-size: 1.5rem; font-weight: 800; color: #fff; background: var(--brand); border-radius: 10px; padding: 4px 6px; font-variant-numeric: tabular-nums; }
.pd-pointbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.pd-point { border: none; border-radius: 14px; padding: 22px 10px; font-size: 1.25rem; font-weight: 800; cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; gap: 4px; align-items: center; touch-action: manipulation; color: #fff; }
.pd-point small { font-size: .78rem; font-weight: 600; opacity: .9; overflow-wrap: anywhere; }
.pd-point:active { transform: scale(.97); }

/* Modal + share */
.pd-modal-ov { position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.pd-modal { position: relative; background: var(--white); color: var(--gray-800); border-radius: 18px; padding: 24px 20px 20px; width: 100%; max-width: 400px;
  max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--shadow-md); }
.pd-modal h3 { font-size: 1.15rem; font-weight: 800; color: var(--gray-900); margin-bottom: 6px; padding-right: 28px; }
.pd-modal-x { position: absolute; top: 10px; right: 12px; background: none; border: none; font-size: 1.6rem; color: var(--gray-500); cursor: pointer; line-height: 1; }
.pd-qr { display: block; width: 220px; height: 220px; margin: 16px auto 8px; border-radius: 10px; border: 1px solid var(--gray-200); }
.pd-bigcode { text-align: center; font-size: 2rem; font-weight: 800; letter-spacing: .25em; color: var(--gray-900); padding-left: .25em; }
.pd-share-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.pd-share-btns .btn-secondary { grid-column: 1 / -1; }
.pd-share-btns a.pd-btn { text-align: center; text-decoration: none; }
.pd-share-btns a.btn-primary { color: #fff; }   /* filled: white text; outlined links keep the ink colour */
.pd-share-btns a.btn-secondary { color: var(--gray-900); }
.pd-claim { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; margin-top: 12px; }
.pd-claim .pd-btn { width: 100% !important; min-height: 44px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-claim .btn-secondary { border: 1.5px solid var(--gray-200); background: var(--white); color: var(--gray-900); }
.pd-video { width: 100%; border-radius: 12px; background: #000; margin-top: 10px; aspect-ratio: 1; object-fit: cover; }

.pd-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 1100;
  background: var(--gray-900); color: var(--gray-50); padding: 10px 16px; border-radius: 10px; font-size: .9rem; font-weight: 600;
  max-width: calc(100vw - 32px); box-shadow: var(--shadow-md); transition: opacity .2s, transform .2s; }
.pd-toast.show { opacity: 1; transform: translate(-50%, 0); }
.pd-toast.ok { background: var(--green-dark); color: #fff; }

/* Weekly series */
.pd-delta { font-size: .72rem; font-weight: 800; margin-left: 6px; color: var(--gray-500); white-space: nowrap; }
.pd-delta.up { color: var(--green-dark); }
.pd-delta.new { color: var(--brand-link); }
[data-theme="dark"] .pd-delta.up { color: #86efac; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-theme="dark"]) .pd-delta.up { color: #86efac; } }
.pd-left { margin-top: 10px; font-size: .85rem; color: var(--gray-600); }
.pd-boardbtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pd-boardbtns .pd-btn { flex: 1 1 0; width: auto; min-width: 0; white-space: nowrap; }
.pd-center-row { justify-content: center; margin-top: 0; margin-bottom: 16px; }
.pd-stable { display: grid; gap: 4px; }
.pd-str { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto 48px; gap: 8px; align-items: center; padding: 8px 6px; border-radius: 10px; }
.pd-str:not(.pd-th):nth-child(even) { background: var(--gray-50); }
.pd-wks { display: grid; grid-template-columns: repeat(var(--wk), 26px); gap: 2px; text-align: center; font-size: .78rem; color: var(--gray-500); font-variant-numeric: tabular-nums; }
.pd-wks .pd-wk1 { color: var(--gray-900); font-weight: 800; }
.pd-str .pd-who small { display: block; font-size: .72rem; }
.pd-timeline { display: grid; gap: 10px; }
.pd-week { background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; padding: 12px 14px; font-size: .9rem; }
.pd-week.is-now { border-color: var(--brand); }
.pd-week-h { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-bottom: 4px; }
.pd-week-h b { color: var(--gray-900); }
.pd-week-h .pd-muted { font-size: .8rem; }
.pd-flag { font-size: .84rem; margin-top: 4px; color: var(--gray-600); }
.pd-flag.new { color: var(--brand-link); font-weight: 600; }

/* Share image */
.pd-img-wrap { background: var(--gray-100); border-radius: 12px; padding: 10px; text-align: center; }
.pd-img-wrap img { max-width: 100%; max-height: 52vh; border-radius: 8px; box-shadow: var(--shadow-sm); transition: opacity .2s; }
.pd-modal:has(.pd-img-wrap) { max-width: 460px; }
.pd-share-btns a.pd-dl { grid-column: 1 / -1; }
.pd-img-who { margin-bottom: 10px; }


/* ── Session header (event title, meta line, status pill) ── */
.pd-title { font-size: clamp(1.5rem, 5vw, 2.1rem) !important; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.pd-metaline { color: var(--gray-600); font-weight: 700; font-size: .95rem; margin: 2px 0 2px; }
.pd-dateline { color: var(--gray-500); font-size: .85rem; font-weight: 600; }
.pd-meta { align-items: center; column-gap: 14px; row-gap: 2px; margin-top: 4px; }
.pd-status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: .85rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--gray-600); }
.pd-status.final { color: var(--green-dark); }
.pd-status.live { color: var(--green-dark); }
.pd-status.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pd-pulse 1.4s infinite; }
.pd-status.lobby { color: var(--brand-link); }
@keyframes pd-pulse { 50% { opacity: .3; } }
[data-theme="dark"] .pd-status.final, [data-theme="dark"] .pd-status.live, [data-theme="dark"] .pd-res.w, [data-theme="dark"] .pd-champ-tag, [data-theme="dark"] .pd-me-tag.live { color: #86efac !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-theme="dark"]) .pd-status.final,
  :root:not([data-theme="light"]):not([data-theme="dark"]) .pd-status.live, :root:not([data-theme="light"]):not([data-theme="dark"]) .pd-res.w,
  :root:not([data-theme="light"]):not([data-theme="dark"]) .pd-champ-tag, :root:not([data-theme="light"]):not([data-theme="dark"]) .pd-me-tag.live { color: #86efac !important; } }

/* ── Setup: scoring row + fill choice ── */
.pd-scrow { display: grid; grid-template-columns: minmax(0, 1fr) 84px auto; gap: 8px; align-items: center; }
.pd-scrow select, .pd-scrow input { width: 100%; padding: 11px 12px; border: 1.5px solid var(--gray-200); border-radius: 10px; font: inherit;
  color: var(--gray-800); background: var(--white); }
.pd-scrow input { text-align: center; font-weight: 800; }
.pd-unit { color: var(--gray-500); font-size: .88rem; font-weight: 600; min-width: 44px; }
/* ── Lobby ── */
.pd-expectrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 12px; font-weight: 700; color: var(--gray-600); }
.pd-expectrow .pd-stepper button:disabled { opacity: .4; cursor: not-allowed; }
.pd-lobby-qr { text-align: center; margin: 8px 0 14px; }
.pd-lobby-qr .pd-qr { width: 240px; height: 240px; }
.pd-progress { margin: 6px 0 12px; }
.pd-progress-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.pd-progress-top b { color: var(--gray-900); font-size: 1.05rem; }
.pd-bar { height: 8px; border-radius: 4px; background: var(--gray-200); overflow: hidden; }
.pd-bar span { display: block; height: 100%; background: var(--green); transition: width .4s; }
.pd-lobbylist { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); column-gap: 18px; }
.pd-lobbylist li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--gray-200); min-width: 0; }
.pd-lobbylist li b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--gray-900); }
.pd-joined { padding: 12px 14px; border-radius: 10px; background: var(--green-pale); border: 1px solid var(--green-light); color: var(--gray-800); margin-bottom: 10px; }

/* initials avatar (brand tint, no rainbow) */
.pd-ava { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-pale); color: var(--brand-link); border: 1px solid var(--brand-light); font-size: .74rem; font-weight: 800; letter-spacing: .02em; }
.pd-ava.big { width: 46px; height: 46px; font-size: .9rem; background: var(--white); }

/* ── Rounds: timer, tappable names, swap modal ── */
.pd-roundhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pd-roundhead .pd-h3 { margin-bottom: 10px; }
.pd-roundhead .pd-btn { width: auto; margin-bottom: 10px; }
.pd-timer { font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; color: var(--brand-link); }
.pd-timer.up { color: var(--gray-900); }
.pd-pn { background: none; border: none; padding: 0; font: inherit; color: inherit; cursor: pointer;
  text-decoration: underline dashed var(--gray-400); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.pd-pn:hover { color: var(--brand-link); text-decoration-color: var(--brand-link); }
.pd-swapgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; margin-top: 14px; max-height: 60vh; overflow: auto; }
.pd-swapitem { min-height: 44px; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--gray-200); background: var(--white); color: var(--gray-900);
  font: inherit; font-weight: 700; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-swapitem:hover { border-color: var(--brand-link); }

/* ── Leaderboard (after the FOM Play layout, in our palette) ── */
.pd-subtabs { display: flex; gap: 22px; border-bottom: 2px solid var(--gray-200); margin: 4px 0 18px; }
.pd-subtabs button { background: none; border: none; font: inherit; font-size: 1.05rem; font-weight: 700; color: var(--gray-500);
  padding: 8px 0 10px; margin-bottom: -2px; border-bottom: 3px solid transparent; cursor: pointer; }
.pd-subtabs button.active { color: var(--gray-900); border-bottom-color: var(--gray-900); }
.pd-bh { font-size: 1.45rem; font-weight: 800; color: var(--gray-900); letter-spacing: -0.02em; }
.pd-how { margin: 8px 0 16px; }
.pd-how summary { cursor: pointer; color: var(--brand-link); font-weight: 700; font-size: .92rem; list-style: none; }
.pd-how summary::-webkit-details-marker { display: none; }
.pd-how summary span { margin-left: 6px; display: inline-block; transition: transform .2s; }
.pd-how[open] summary span { transform: rotate(45deg); }
.pd-how p { margin-top: 8px; font-size: .88rem; color: var(--gray-600); line-height: 1.55; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 10px; padding: 10px 12px; }

.pd-champ { width: 100%; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 14px; align-items: center; text-align: left;
  padding: 18px 20px; border-radius: 20px; border: 1px solid var(--green-light); background: var(--green-pale); color: var(--gray-800);
  font: inherit; cursor: pointer; margin-bottom: 12px; }
.pd-champ-rank { font-size: 1.4rem; font-weight: 800; color: var(--gray-900); font-variant-numeric: tabular-nums; }
.pd-champ-mid b { display: block; font-size: 1.3rem; color: var(--gray-900); line-height: 1.2; overflow-wrap: anywhere; }
.pd-champ-mid small { display: block; margin-top: 4px; font-size: .84rem; color: var(--gray-600); }
.pd-champ-tag { margin-right: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .08em; color: var(--green-dark); }
.pd-crown { font-size: 1rem; }
.pd-champ-pts, .pd-lpts { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.pd-champ-pts b { font-size: 2.3rem; line-height: 1; font-weight: 800; color: var(--gray-900); font-variant-numeric: tabular-nums; }
.pd-champ-pts small { font-size: .82rem; color: var(--gray-600); margin-top: 4px; white-space: nowrap; }

.pd-lcard { background: var(--white); border: 1px solid var(--gray-200); border-radius: 20px; padding: 6px 18px; margin-bottom: 14px; }
.pd-lhead { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--gray-200);
  font-size: .82rem; font-weight: 700; color: var(--gray-500); }
.pd-lrow { width: 100%; display: grid; grid-template-columns: 26px auto minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left;
  padding: 14px 0; background: none; border: none; border-bottom: 1px solid var(--gray-200); font: inherit; color: var(--gray-800); cursor: pointer; }
.pd-lcard > :last-child { border-bottom: none; }
.pd-lrow.is-wait { cursor: default; opacity: .65; }
.pd-lrank { font-size: 1.1rem; font-weight: 800; color: var(--gray-600); font-variant-numeric: tabular-nums; }
.pd-lmid { min-width: 0; }
.pd-lmid b { display: block; font-size: 1.05rem; font-weight: 700; color: var(--gray-900); overflow-wrap: anywhere; }
.pd-lmid small { display: block; font-size: .82rem; color: var(--gray-500); margin-top: 2px; }
.pd-lpts b { font-size: 1.5rem; font-weight: 800; line-height: 1.05; color: var(--gray-900); font-variant-numeric: tabular-nums; }
.pd-lpts small { font-size: .78rem; color: var(--gray-500); white-space: nowrap; margin-top: 2px; }
.pd-lpts small.pos { color: var(--green-dark); }
[data-theme="dark"] .pd-lpts small.pos { color: #86efac; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-theme="dark"]) .pd-lpts small.pos { color: #86efac; } }
.pd-lrow.pd-mine .pd-lmid b, .pd-champ.pd-mine .pd-champ-mid b { text-decoration: underline; text-decoration-color: var(--brand-link); text-underline-offset: 3px; }

.pd-rdetail { margin: 0 0 10px 38px; padding: 8px 12px 6px; background: var(--gray-100); border-left: 3px solid var(--brand-link); border-radius: 0 10px 10px 0; }
.pd-champ + .pd-rdetail { margin: -6px 0 14px 12px; }
.pd-rd-h { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-500); margin: 0 0 2px; }
.pd-rd-row + .pd-rd-row { border-top: 1px solid var(--gray-200); }
.pd-lrow.open { border-bottom-color: transparent; }
.pd-lrow.open .pd-lmid b, .pd-champ.open .pd-champ-mid b { color: var(--brand-link); }
.pd-tapnote { font-size: .85rem; margin-bottom: 8px; }
.pd-top-acts { display: flex; align-items: center; gap: 6px; }
.pd-iconbtn { width: 36px; height: 36px; display: grid; place-items: center; border: 1.5px solid var(--gray-200); background: var(--white); border-radius: 10px; font-size: 1rem; cursor: pointer; }
.pd-iconbtn:hover { border-color: var(--brand-link); }
.pd-pl-mid { display: flex; flex-direction: column; gap: 1px; align-items: flex-start; min-width: 0; }
.pd-pl-mid small { font-size: .8rem; color: var(--gray-500); }
.pd-sb-cols { padding: 4px 4px 0; border-bottom: none; }
.pd-sb-cols .pd-sb-set, .pd-sb-cols .pd-sb-pts { font-size: .7rem; font-weight: 800; letter-spacing: .06em; color: var(--gray-500); background: none; padding: 0; text-transform: uppercase; }
.pd-sb-cols > span:first-child { flex: 1; }
.pd-undo { display: block; margin: 10px auto 0; }
.pd-rd-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 6px 0; font-size: .88rem; }
.pd-rd-r { font-weight: 800; color: var(--gray-500); font-size: .78rem; }
.pd-rd-who { color: var(--gray-800); font-weight: 600; min-width: 0; }
.pd-rd-who small { display: block; color: var(--gray-500); font-weight: 500; }
.pd-rd-score { color: var(--gray-900); font-variant-numeric: tabular-nums; }
.pd-res { font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-align: right; min-width: 52px; text-transform: uppercase; }
.pd-res.w { color: var(--green-dark); }
.pd-res.d { color: var(--gray-500); }
.pd-res.l { color: var(--gray-500); }

.pd-funlist { background: var(--white); border: 1px solid var(--gray-200); border-radius: 20px; padding: 2px 18px; margin: 6px 0 16px; }
.pd-fun { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--gray-200); }
.pd-fun:last-child { border-bottom: none; }
.pd-fun.top .pd-fun-mid b { color: var(--green-dark); }
.pd-fun.bottom .pd-fun-mid b { color: var(--gray-600); }
.pd-fun-ic { font-size: 1.6rem; line-height: 1; width: 32px; text-align: center; }
.pd-fun-mid b { display: block; color: var(--gray-900); font-size: 1rem; }
.pd-fun-mid small { color: var(--gray-500); font-size: .84rem; }

/* ── Quick setup ── */
.pd-quick .mode-tabs { margin-bottom: 14px; }
.pd-controw { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pd-chipbtn { border: none; background: none; color: var(--brand-link); font: inherit; font-size: .9rem; font-weight: 700; padding: 4px 0; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.pd-quick .pd-note { margin: 0 0 12px; }
.pd-loc { position: relative; }
.pd-loc-list { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% - 22px); background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 12px; box-shadow: var(--shadow-md); overflow: hidden; max-height: 340px; overflow-y: auto; }
.pd-loc-item { display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 10px 12px; border: none; border-bottom: 1px solid var(--gray-200);
  background: none; color: var(--gray-800); font: inherit; text-align: left; cursor: pointer; }
.pd-loc-item:hover, .pd-loc-item:focus, .pd-loc-item.hi { background: var(--brand-pale); outline: none; }
.pd-loc-item b { display: block; color: var(--gray-900); font-size: .95rem; }
.pd-loc-item small { display: block; color: var(--gray-500); font-size: .78rem; line-height: 1.35; }
.pd-loc-msg { padding: 12px; color: var(--gray-500); font-size: .85rem; }
.pd-loc-uses { color: var(--green-dark) !important; font-weight: 600; }
.pd-loc-attr { padding: 6px 12px; text-align: right; font-size: .68rem; color: var(--gray-400); }
.pd-loc .pd-hint:empty { display: none; }
.pd-row2.pd-row2-keep { grid-template-columns: 1fr 1fr; gap: 12px; }
.pd-timehint { margin: -8px 0 14px; }
.pd-expect-create { margin: 4px 0 8px; }
.pd-expect-create label { font-size: .95rem; color: var(--gray-800); }
.pd-go { font-size: 1.05rem; padding: 15px 18px; }
.pd-summary { margin-top: 8px; }
.pd-adv { margin-top: 16px; border-top: 1px dashed var(--gray-200); padding-top: 12px; }
.pd-adv summary { cursor: pointer; font-weight: 700; color: var(--brand-link); font-size: .92rem; margin-bottom: 4px; }
.pd-adv[open] summary { margin-bottom: 14px; }

/* ── Session header extras ── */
.pd-place { font-weight: 700; }
.pd-qr-wait { background: repeating-linear-gradient(45deg, var(--gray-100), var(--gray-100) 8px, var(--gray-50) 8px, var(--gray-50) 16px); }

/* ── Coffee popup: same look as the site's (.cof-pop in style.css) ── */

/* ── "Your match" card for a player who marked their name ── */
.pd-me-card { border-color: var(--brand); background: var(--brand-pale); padding: 14px 16px; }
.pd-me-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pd-me-head b { color: var(--gray-900); font-size: 1.05rem; flex: 1; min-width: 0; }
.pd-me-rank { font-weight: 800; color: var(--brand-link); font-size: .9rem; font-variant-numeric: tabular-nums; }
.pd-me-now { display: flex; flex-direction: column; gap: 3px; }
.pd-me-now b { color: var(--gray-900); font-size: 1.1rem; }
.pd-me-now span { color: var(--gray-600); font-size: .9rem; }
.pd-me-tag { align-self: flex-start; font-size: .72rem !important; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-500) !important; margin-bottom: 2px; }
.pd-me-tag.live { color: var(--green-dark) !important; }
.pd-me-next { font-size: .72rem !important; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-link) !important; margin-top: 4px; }
.pd-ct { font-variant-numeric: tabular-nums; }
.pd-alldone { border-color: var(--green-light); background: var(--green-pale); }
.pd-alldone .pd-hostbar { margin: 12px 0 0; }

/* ── Session header (no card: title block like the FOM Play sample) ── */
.pd-top { padding: 4px 2px 14px; margin-bottom: 4px; }
.pd-top-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.pd-top-bar .pd-link { margin: 0; }
.pd-codechip { border: 1.5px solid var(--gray-200); background: var(--white); color: var(--brand-link); font: inherit; font-size: .82rem; font-weight: 700;
  padding: 6px 10px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.pd-codechip b { letter-spacing: .12em; color: var(--gray-900); }
.pd-meta { align-items: center; gap: 4px 14px; }
.pd-textbtn { background: none; border: none; padding: 2px 0; font: inherit; font-size: .85rem; font-weight: 700; color: var(--brand-link); cursor: pointer; }
.pd-maintabs { margin-top: 0; }
.pd-maintabs button { flex: 1; text-align: center; }
.pd-maintabs + #pd-body .pd-subtabs { gap: 18px; border-bottom-width: 1px; margin-top: -6px; }
.pd-maintabs + #pd-body .pd-subtabs button { font-size: .9rem; padding: 6px 0 8px; }
.pd-lobbylist .pd-empty { border: none; padding: 4px 0; color: var(--gray-500); }
.pd-menu { display: grid; gap: 8px; margin-top: 12px; }
.pd-menu button { display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--gray-200);
  background: var(--white); color: var(--gray-800); font: inherit; font-size: 1.2rem; cursor: pointer; }
.pd-menu button b { display: block; font-size: .98rem; color: var(--gray-900); }
.pd-menu button small { display: block; font-size: .8rem; color: var(--gray-500); }

/* ── Landscape: matches | standings ── */
.pd-split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.pd-side-board { position: sticky; top: 8px; max-height: calc(100vh - 16px); overflow-y: auto; }
.pd-side-board .pd-lhead { font-size: .95rem; color: var(--gray-900); font-weight: 800; }
.pd-side-empty { padding: 12px 0; }
.pd-side-board .pd-lrow { cursor: pointer; padding: 9px 0; grid-template-columns: 22px minmax(0, 1fr) auto; }
.pd-side-board .pd-ava { display: none; }
.pd-side-board .pd-rdetail { margin-left: 0; }
.pd-side-board .pd-lpts b { font-size: 1.2rem; }
.pd-lrow-top .pd-lmid b, .pd-lrow-top .pd-lrank { color: var(--green-dark); }
/* sideways phone: app-like, everything below the fold goes */
.pd-landscape .pd-top { padding: 0 0 6px; }
.pd-landscape .pd-top-bar { margin-bottom: 2px; }
.pd-landscape .pd-dateline { display: none; }
.pd-landscape .site-header, .pd-landscape .site-footer { display: none; }
.pd-landscape .pd-main { padding-top: 6px; }
.pd-landscape .pd-title { font-size: 1.15rem !important; margin: 0 !important; }
.pd-landscape .pd-metaline { font-size: .8rem; margin: 0; }
.pd-landscape .pd-meta { gap: 4px 10px; }
.pd-landscape .pd-h3 { margin: 8px 0 6px; }
.pd-landscape .pd-split .pd-matches { grid-template-columns: 1fr; }

@media (max-width: 760px) {
  .pd-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pd-card { padding: 16px; }
  .pd-matches { grid-template-columns: 1fr; }
  .pd-row2, .pd-teams { grid-template-columns: 1fr; gap: 0; }
  .pd-champ { grid-template-columns: auto minmax(0, 1fr) auto; padding: 14px; gap: 10px; }
  .pd-champ .pd-ava { display: none; }
  .pd-champ-mid b { font-size: 1.12rem; }
  .pd-champ-pts b { font-size: 1.9rem; }
  .pd-lcard { padding: 4px 12px; }
  .pd-lrow { grid-template-columns: 22px auto minmax(0, 1fr) auto; gap: 10px; }
  .pd-rdetail { margin-left: 0; }
  .pd-join-row .pd-btn, .pd-hostbar .pd-btn, .pd-match-foot .pd-btn, .pd-plist .pd-btn, .pd-claim .pd-btn, .pd-note .pd-btn, .pd-adv .pd-btn { width: auto; }
}
.pd-sckind { margin-bottom: 8px; }
.pd-scpreset .pd-row2 { margin: 0; }
[data-theme="dark"] .pd-lrow-top .pd-lmid b, [data-theme="dark"] .pd-lrow-top .pd-lrank, [data-theme="dark"] .pd-fun.top .pd-fun-mid b { color: #86efac; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-theme="dark"]) .pd-lrow-top .pd-lmid b,
  :root:not([data-theme="light"]):not([data-theme="dark"]) .pd-lrow-top .pd-lrank, :root:not([data-theme="light"]):not([data-theme="dark"]) .pd-fun.top .pd-fun-mid b { color: #86efac; } }
/* narrow phones: the initials circle gives way so "1 menang · 1 seri · 1 kalah · 3 ronde" fits one line */
@media (max-width: 420px) {
  .pd-lcard .pd-lrow { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; }
  .pd-lcard .pd-ava { display: none; }
  .pd-lmid small { font-size: .78rem; }
}
.pd-nw { white-space: nowrap; }
.pd-played { margin-top: 12px; }
.pd-played-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--gray-200); font-size: .9rem; color: var(--gray-800); }
.pd-played-row b { color: var(--gray-900); font-variant-numeric: tabular-nums; }
/* standings order: Menang (official) | Poin */

/* ── Controls (one language across the app) ───────────────────────────────
   Choice between options = segmented control: one tray, the picked option filled navy.
   Dropdown = field with a ▾ chevron, text left-aligned like every other field. */
#pd-app .mode-tabs, .pd-modal .mode-tabs, .pd-sortrow .pd-seg {
  display: flex; gap: 4px; padding: 4px; background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: 12px; }
#pd-app .mode-tab, .pd-modal .mode-tab, .pd-sortrow .pd-seg button {
  flex: 1; border: none; box-shadow: none; background: transparent; color: var(--gray-600); border-radius: 9px;
  padding: 9px 6px; font: inherit; font-size: .88rem; font-weight: 700; line-height: 1.25; cursor: pointer; text-align: center; }
#pd-app .mode-tab:hover:not(.active), .pd-modal .mode-tab:hover:not(.active), .pd-sortrow .pd-seg button:hover:not(.active) { color: var(--gray-900); background: var(--gray-200); }
#pd-app .mode-tab.active, .pd-modal .mode-tab.active, .pd-sortrow .pd-seg button.active { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
#pd-app select, .pd-modal select {
  -webkit-appearance: none; appearance: none; text-align: left; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 14px; }
@media (max-width: 420px) { #pd-app .pd-tabs3 .mode-tab { font-size: .8rem; padding: 9px 3px; } }

/* Buttons, one system: filled navy = the one main action; outlined = secondary; red text = destructive */
#pd-app .btn-secondary, .pd-modal .btn-secondary, #pd-scan {
  background: transparent; border: 1.5px solid var(--gray-200); color: var(--gray-900); }
#pd-app .btn-secondary:hover, .pd-modal .btn-secondary:hover { border-color: var(--brand-link); background: transparent; }
/* steppers are adjusters, not actions: outlined so the main button stays the loudest thing */
.pd-stepper button, .pd-stepper button[data-d="-1"] { background: transparent; color: var(--gray-900); border: 1.5px solid var(--gray-200); }
.pd-stepper button:hover:not(:disabled) { border-color: var(--brand-link); }
.pd-stepper button:disabled { opacity: .35; cursor: not-allowed; }
/* labels next to steppers read like every other field label */
.pd-expect-create label, .pd-expectrow > span { font-size: .9rem; font-weight: 600; color: var(--gray-800); }
/* GM menu: the destructive item last and in red */
.pd-menu button.danger b { color: var(--red); }
/* all rounds played: a normal card, the next step is the button */
.pd-alldone { border-color: var(--gray-200); background: var(--white); }
/* standings controls on one line: order on the left, how-it-works on the right */
.pd-boardbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; }
.pd-boardbar .pd-how { margin: 0; }
.pd-boardbar .pd-how[open] { flex-basis: 100%; order: 3; }
.pd-taphint { font-size: .8rem; color: var(--gray-500); text-align: center; margin: -6px 0 12px; }
.pd-taphint-l { text-align: left; margin: -4px 0 10px; }
/* share sheet: stacked full-width buttons, main one on top */
.pd-share-btns { grid-template-columns: 1fr; }
.pd-share-btns > * { grid-column: 1 / -1; }
/* touch screens: a tap must not leave a hover outline that looks like a selection */
@media (hover: none) {
  .pd-swapitem:hover, .pd-numgrid button:hover, .pd-claim .btn-secondary:hover, #pd-app .btn-secondary:hover,
  .pd-modal .btn-secondary:hover, .pd-stepper button:hover, .pd-score-btn:hover { border-color: var(--gray-200); }
}
/* live leader: a normal surface with a green edge (green = meaning), not a green panel */
.pd-champ { background: var(--white); border: 1.5px solid var(--green); }

/* Touch targets ≥ 40px and legible small text (measured, iteration 3).
   Hit areas grow with padding + negative margin where the visual size should stay. */
.pd-modal-x { width: 40px; height: 40px; display: grid; place-items: center; top: 8px; right: 8px; }
.pd-top-bar .pd-link { padding: 9px 0; }
.pd-iconbtn { width: 40px; height: 40px; }
.pd-codechip { min-height: 40px; }
.pd-x { min-width: 40px; min-height: 40px; }
.pd-pn { padding: 11px 8px; margin: -11px -8px; }   /* ≥40px hit area; the visible name stays put */
#pd-app .mode-tab { min-height: 40px; }
.pd-boardbtns .pd-btn { min-height: 40px; }
.pd-how summary, .pd-adv summary, .pd-past summary { padding: 9px 0; }
.pd-court { font-size: .75rem; }
.pd-vs { font-size: .72rem; color: var(--gray-500); }
.pd-names i { color: var(--gray-500); }
.pd-ava { font-size: .78rem; }
.pd-champ-tag { font-size: .75rem; }
#pd-back { padding: 9px 0; } .pd-vs { font-size: .75rem; }
.pd-score.is-open { color: var(--gray-500); }   /* "not played yet" but still a readable button */
.pd-pn.pd-me { text-decoration: underline solid var(--brand-link); text-decoration-thickness: 2px; }

/* ── Courtside screen (?tv=1): tablet/TV at the court, read-only, readable from a few metres ── */
.pd-tv-on .site-header, .pd-tv-on .site-footer, .pd-tv-on .pd-hero { display: none; }
.pd-tv-on .pd-main { max-width: none; padding: 0; }
.pd-tv { min-height: 100vh; padding: clamp(12px, 2.5vw, 32px); display: flex; flex-direction: column; gap: clamp(12px, 2vw, 28px); font-size: clamp(16px, 1.6vw, 26px); }
.pd-tv h1 { font-size: clamp(22px, 3vw, 48px); margin: 0; color: var(--gray-900); letter-spacing: -0.02em; }
.pd-tv h2 { font-size: clamp(18px, 2.2vw, 36px); margin: 0 0 0.5em; color: var(--gray-900); }
.pd-tv-head { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.8em 1.5em; }
.pd-tv-head > div:first-child { min-width: 0; }
@media (max-width: 640px) { .pd-tv-head { grid-template-columns: 1fr; } }
.pd-tv-head p { margin: 0.2em 0 0; color: var(--gray-600); font-size: 0.8em; }
.pd-tv-join { display: flex; align-items: center; gap: 0.6em; }
.pd-tv-join .pd-qr { width: clamp(64px, 7vw, 120px); height: auto; margin: 0; background: #fff; padding: 4px; border-radius: 8px; }
.pd-tv-join b { display: block; font-size: 1.4em; letter-spacing: 0.08em; color: var(--gray-900); }
.pd-tv-join span { font-size: max(12px, 0.7em); color: var(--gray-600); }
.pd-tv-foot { margin-top: auto; text-align: center; }
.pd-tv-exit { display: inline-block; font-size: 14px; padding: 12px 8px; color: var(--gray-600); }
.pd-tv-split { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(12px, 2vw, 28px); align-items: start; }
@media (max-width: 760px) { .pd-tv-split { grid-template-columns: 1fr; } }
.pd-tv-courts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16em), 1fr)); gap: 0.6em; }
.pd-tv-court, .pd-tv-board, .pd-tv-champ { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 0.7em 0.9em; }
.pd-tv-court small { color: var(--gray-600); font-size: max(12px, 0.7em); text-transform: uppercase; letter-spacing: 0.06em; }
.pd-tv-court-row { display: flex; align-items: center; gap: 0.6em; padding: 0.35em 0; color: var(--gray-800); }
.pd-tv-court-row b { flex: 1; font-weight: 600; }
.pd-tv-court-row span { font-size: 1.7em; font-weight: 800; color: var(--gray-900); font-variant-numeric: tabular-nums; min-width: 1.4em; text-align: right; }
.pd-tv-court-row em { font-style: normal; font-size: 1.7em; font-weight: 800; color: var(--brand-link); min-width: 2em; text-align: right; }
.pd-tv-court-row.win b, .pd-tv-court-row.win span { color: var(--green-dark); font-weight: 700; }
[data-theme="dark"] .pd-tv-court-row.win b, [data-theme="dark"] .pd-tv-court-row.win span { color: var(--green); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pd-tv-court-row.win b, :root:not([data-theme="light"]) .pd-tv-court-row.win span { color: var(--green); } }
.pd-tv-court.done { opacity: 0.85; }
.pd-tv-main > .pd-tv-court { font-size: 1.5em; }
.pd-tv-next { margin: 0.8em 0 0; color: var(--gray-600); font-size: 0.85em; line-height: 1.5; }
.pd-tv-next b { color: var(--gray-900); margin-right: 0.4em; }
.pd-tv-muted { color: var(--gray-600); margin: 0.6em 0 0; }
.pd-tv-row { display: flex; align-items: baseline; gap: 0.6em; padding: 0.35em 0; border-top: 1px solid var(--gray-200); color: var(--gray-800); }
.pd-tv-row:first-of-type { border-top: 0; }
.pd-tv-row > span { width: 1.4em; color: var(--gray-600); font-variant-numeric: tabular-nums; }
.pd-tv-row b { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-tv-row em { font-style: normal; font-weight: 700; color: var(--gray-900); font-variant-numeric: tabular-nums; }
.pd-tv-row small { width: 3em; text-align: right; color: var(--gray-600); font-size: max(12px, 0.8em); font-variant-numeric: tabular-nums; }
.pd-tv-row.top b { color: var(--gray-900); font-weight: 800; }
.pd-tv-champ { text-align: center; font-size: 2.4em; padding: 1em; }
.pd-tv-champ h2 { font-size: 1.2em; margin: 0.2em 0; }
.pd-tv-champ p { font-size: 0.4em; margin: 0; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.08em; }
.pd-tv-lobby { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 4vw, 64px); flex-wrap: wrap; flex: 1; text-align: center; }
.pd-tv-qrbox > .pd-qr { width: clamp(200px, min(32vw, 52vh), 420px); height: auto; margin: 0; aspect-ratio: 1; background: #fff; padding: 12px; border-radius: 16px; }
.pd-tv-lobby > div { max-width: 28em; }
.pd-tv-names { font-size: 1.2em; line-height: 1.6; color: var(--gray-800); }
.pd-tv-court-row .pd-tv-c { min-width: 1.6em; }
.pd-tv-court-row .pd-tv-c.pt { min-width: 2.2em; color: var(--brand-link); }
.pd-tv-court-row.win .pd-tv-c.pt { color: inherit; }
.pd-tv-cols { padding: 0; }
.pd-tv-cols .pd-tv-c { line-height: 1; }
.pd-tv-cols small { font-size: max(12px, 0.28em); font-weight: 600; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.06em; vertical-align: middle; }
.pd-scrow.one { grid-template-columns: 1fr; }
.pd-chips { margin-bottom: 14px; }
.pd-tv-qrbox { display: flex; flex-direction: column; align-items: center; gap: 0.3em; }
.pd-tv-qrbox b { font-size: 2em; letter-spacing: 0.12em; color: var(--gray-900); margin-top: 0.3em; }
.pd-tv-qrbox span { font-size: max(12px, 0.8em); color: var(--gray-600); }
#pd-back, #pd-home { min-height: 44px; display: inline-flex; align-items: center; }

/* ── Home: compact hero, formats as a readable list, join card (fits the benchmark phone without squeezing) ── */
.pd-hero.hero { padding: 24px 16px 20px; }
.pd-hero.hero h1 { font-size: clamp(1.75rem, 5vw, 2.4rem); line-height: 1.15; margin-bottom: 8px; }
.pd-hero.hero p { font-size: 1rem; line-height: 1.5; margin-bottom: 0; }
.pd-hero .breadcrumb { margin-bottom: 10px; }
.pd-homegrid { gap: 16px; }
.pd-homegrid .pd-card { padding: 20px; margin-bottom: 0; }
.pd-homegrid .pd-card h2 { font-size: 1.2rem; margin-bottom: 14px; padding-bottom: 0; border: 0; }
.pd-homegrid .pd-fmts { grid-template-columns: 1fr; gap: 10px; margin-top: 0; }
.pd-homegrid .pd-fmt { padding: 12px 16px; min-height: 64px; gap: 14px; }
.pd-homegrid .pd-fmt b { font-size: 1.05rem; }
.pd-homegrid .pd-fmt small { font-size: .9rem; line-height: 1.35; }
.pd-homegrid .pd-fmt-ic { font-size: 1.6rem; line-height: 1; width: 32px; text-align: center; }
.pd-homegrid .pd-fmt::after { content: '›'; margin-left: auto; font-size: 1.6rem; color: var(--gray-400); line-height: 1; }
.pd-homegrid .pd-join-row { margin: 0; }

/* ── Type & spacing system (owner benchmark iPhone 15 Pro 393x852, ~715px visible in Safari; checked at 360 wide,
   the most common mobile size in Indonesia per StatCounter 2026). Apple HIG: 44px tap targets, ~17px body.
   Scale: title 26 · heading 19/18 · body 16-17 · secondary 14-15 · caption >=13.6. Spacing: 8 / 12 / 16 / 24.
   Task screens avoid scrolling by structure, never by shrinking; lists (standings, players) simply scroll. ── */
/* game header */
.pd-top { padding: 4px 2px 0; margin-bottom: 0; }
.pd-top-bar { margin-bottom: 8px; }
.pd-title { font-size: 1.6rem !important; line-height: 1.15; margin: 0 0 6px !important; }
.pd-metaline { font-size: .95rem; font-weight: 500; color: var(--gray-600); margin: 0; line-height: 1.5; }
.pd-meta { margin-top: 6px; }
.pd-status, .pd-dateline { font-size: .9rem; }
.pd-maintabs { margin: 16px 0 20px; }
.pd-maintabs button { font-size: 1rem; padding: 12px 0 13px; }
/* primary action of a long form stays reachable */
.pd-sticky { position: sticky; bottom: 0; z-index: 5; margin: 16px -22px -22px; padding: 12px 22px calc(12px + env(safe-area-inset-bottom));
  background: var(--white); border-top: 1px solid var(--gray-200); border-radius: 0 0 var(--radius) var(--radius); }
.pd-sticky .pd-hint { margin: 6px 0 0; }
/* setup */
.pd-quick .form-group { margin-bottom: 16px; }
.pd-quick .pd-timehint { margin: -8px 0 16px; }
.pd-steprow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.pd-steprow .pd-expectrow { flex-direction: column; align-items: flex-start; gap: 8px; margin: 0; }
/* lobby: QR beside the code, names as chips */
.pd-lobby-top { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.pd-lobby-top .pd-qr { width: 148px; height: 148px; margin: 0; flex: 0 0 auto; }
.pd-lobby-top .pd-bigcode { text-align: left; font-size: 1.9rem; letter-spacing: .14em; padding-left: 0; margin-top: 4px; }
.pd-lobby-scan { font-weight: 600; color: var(--gray-600); font-size: .95rem; }
.pd-lobby .pd-progress { margin: 0 0 16px; }
.pd-lobby .pd-expectrow { margin-bottom: 16px; }
.pd-namechips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; }
.pd-namechips li { display: inline-flex; align-items: center; padding: 0 0 0 14px; border: 1px solid var(--gray-200); border-radius: 999px; background: var(--gray-50); min-height: 44px; }
.pd-namechips li b { color: var(--gray-900); font-weight: 600; font-size: 1rem; }
.pd-namechips li:not(:has(.pd-x)) { padding-right: 14px; }
.pd-namechips li.pd-me { border-color: var(--brand-link); }
.pd-namechips li.pd-me, .pd-namechips li.pd-me b { text-decoration: none; }
.pd-namechips .pd-x { min-width: 40px; min-height: 44px; padding: 0 10px 0 6px; font-size: 1.15rem; }
.pd-lobby .pd-join-row { margin: 12px 0 0; }
/* player card */
.pd-me-card { padding: 16px 18px; margin-bottom: 20px; }
.pd-me-head { margin-bottom: 8px; }
.pd-me-now b { font-size: 1.15rem; }
.pd-me-now span { font-size: .95rem; }
/* rounds + match cards */
.pd-roundhead .pd-h3 { font-size: 1.15rem; margin: 0 0 12px; }
.pd-matches { gap: 12px; }
.pd-match { padding: 14px 16px; }
.pd-court { font-size: .8rem; margin-bottom: 6px; }
.pd-match .pd-names, .pd-match .pd-pn { font-size: 1.05rem; }
.pd-score-btn { min-width: 56px; height: 50px; font-size: 1.5rem; }
.pd-vs { height: 18px; margin: 4px 0; }
@media (max-width: 640px) {
  .pd-card { padding: 18px; }
  .pd-sticky { margin: 16px -18px -18px; padding-left: 18px; padding-right: 18px; }
}
/* modals: cap at the VISIBLE height (iOS Safari's 100vh includes the area behind its toolbars) */
.pd-modal { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
.pd-modal-ov { padding: 12px; }
/* score picker: a task screen — both teams' numbers + Save fit the benchmark phone at full size (44px chips) */
.pd-scoremodal { padding: 20px 18px 16px; }
.pd-scoremodal h3 { margin-bottom: 4px; font-size: 1.15rem; }
.pd-scoremodal .pd-sc-sub { margin: 0 32px 0 0; font-size: .9rem; }
.pd-scoremodal .pd-pick { margin-top: 16px; }
.pd-scoremodal .pd-pick-h { margin: 0 0 8px; align-items: center; font-size: 1.05rem; }
.pd-scoremodal .pd-pick-v { font-size: 1.5rem; line-height: 1; }
.pd-scoremodal .pd-numgrid { grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; }
.pd-scoremodal .pd-numgrid button { height: 44px; font-size: 1.05rem; }
.pd-scoremodal .pd-numgrid.dense button { height: 40px; }   /* Total 24/32: 5 rows per team */
.pd-scoremodal #pd-score-save { margin-top: 16px; min-height: 50px; }
.pd-modal > .pd-qr { width: 200px; height: 200px; margin: 12px auto 6px; }
/* rank change since the previous round: up = semantic green, down = quiet grey (no red stats on public pages) */
.pd-mv { font-size: .8rem !important; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; margin-left: 4px; }
.pd-mv.up { color: var(--green-dark) !important; }
.pd-mv.down { color: var(--gray-500) !important; }
[data-theme="dark"] .pd-mv.up { color: #86efac !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pd-mv.up { color: #86efac !important; } }
.pd-lmid b .pd-mv, .pd-champ-mid b .pd-mv { display: inline; }
.pd-tv-row .pd-mv { font-size: max(12px, .6em) !important; margin-left: .3em; vertical-align: middle; }
.pd-tv-row b .pd-mv { width: auto; text-align: left; }
/* home: a short, readable list of formats; Scan QR lives in the join card's heading */
.pd-cardhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.pd-cardhead h2 { margin: 0 !important; }
.pd-cardhead .pd-textbtn { font-size: .95rem; min-height: 44px; padding: 0 2px; }
/* iteration 2: rhythm, not shrinking */
.pd-top { margin-bottom: 16px; }
.pd-maintabs { margin: 0 0 16px; }
.pd-tabn { font-weight: 600; color: var(--gray-500); }
.pd-match { padding: 12px 16px; }
.pd-score-btn { height: 48px; }
.pd-vs { height: 14px; margin: 2px 0; }
.pd-hero.hero { padding: 16px 16px 14px; }
.pd-homegrid .pd-fmt { min-height: 60px; padding: 10px 16px; }
.pd-cardhead #pd-scan { border: none; background: none; box-shadow: none; color: var(--brand-link); width: auto; padding: 0 2px; font-weight: 700; }
.pd-lobby-top .pd-qr { width: 136px; height: 136px; }
.pd-roundhead { align-items: baseline; margin-bottom: 12px; }
.pd-roundhead .pd-h3 { margin: 0; }
.pd-roundhint { font-size: .9rem; font-weight: 600; color: var(--brand-link); }
/* iteration 3: one rule everywhere — tap targets ≥44px (Apple HIG), text ≥13px */
#pd-app .pd-btn, .pd-modal .pd-btn, #pd-app .mode-tab, .pd-modal .mode-tab, .pd-iconbtn, .pd-codechip, .pd-modal-x,
#pd-app .pd-subtabs button, .pd-sortrow .pd-seg button, .pd-how summary, .pd-adv summary { min-height: 44px; }
.pd-iconbtn, .pd-modal-x { min-width: 44px; }
#pd-app .mode-tab, .pd-modal .mode-tab { font-size: .9rem; }
.pd-hint, .pd-taphint { font-size: .85rem; }
.pd-court { font-size: .85rem; }
.pd-vs { font-size: .82rem; }
.pd-lmid small, .pd-champ-mid small, .pd-lpts small, .pd-champ-pts small { font-size: .85rem; }
.pd-champ-tag { font-size: .82rem; }
.pd-badge small, .pd-fun-mid small { font-size: .85rem; }
.pd-players small, .pd-plist small { font-size: .85rem; }
.pd-tv-court small, .pd-tv-join span, .pd-tv-row small, .pd-tv-head p { font-size: max(13px, .7em); }
#pd-app .pd-tabs3 .mode-tab { font-size: .9rem; }
.pd-menu small, .pd-modal button small { font-size: .85rem; }
.pd-ava { font-size: .82rem; }
.pd-pn { padding: 11px 9px; margin: -11px -9px; }
.pd-lobby #pd-self-form + .pd-progress, .pd-lobby .pd-joined + .pd-progress { margin-top: 16px; }
.pd-meta .pd-tag.pd-ct { font-size: .9rem; font-weight: 600; }
.pd-scoremodal .pd-numgrid.dense { gap: 5px; }
.pd-scoremodal .pd-pick { margin-top: 12px; }
.pd-scoremodal { padding: 18px 18px 14px; }
.pd-scoremodal .pd-sc-sub { margin-right: 0; }
.pd-final-where { color: var(--gray-600); font-size: .9rem; margin: 4px 0 0; }
/* clean pass 1: fewer lines, boxes and colours competing for attention */
.pd-pn { text-decoration: none; }                       /* names stay tappable for the GM (swap), no dashed underline on every name */
.pd-pn:hover { text-decoration: underline; text-decoration-color: var(--gray-400); }
.pd-iconbtn { border-color: transparent !important; background: transparent !important; }
.pd-lpts small.pos, .pd-champ-pts small.pos { color: var(--gray-600) !important; }   /* green is for "naik" only */
/* clean pass 2: structure over decoration */
.pd-vs { font-size: 0; gap: 0; height: 1px; margin: 8px 0; }            /* one hairline between the pairs; no "VS" label */
.pd-me-card { display: grid; gap: 2px; }
.pd-me-card .pd-me-rank { justify-self: end; grid-row: 1; grid-column: 1; align-self: start; font-size: .9rem; }
.pd-me-card .pd-me-now { grid-row: 1; grid-column: 1; }
.pd-sb-row:not(.pd-sb-cols) .pd-sb-pts { background: transparent !important; color: var(--gray-900) !important; font-size: 1.9rem !important; min-width: 56px; }   /* a value, not a button */
/* home: one list with hairlines instead of boxes inside a box */
.pd-homegrid .pd-fmts { gap: 0; }
.pd-homegrid .pd-fmt { border: none; border-radius: 0; background: transparent; box-shadow: none; padding: 14px 4px; border-top: 1px solid var(--gray-200); transform: none !important; }
.pd-homegrid .pd-fmt:first-child { border-top: none; padding-top: 4px; }
.pd-homegrid .pd-fmt:hover { background: transparent; }
.pd-homegrid .pd-fmt:hover b { color: var(--brand-link); }
/* clean pass 3: lists are lists (hairlines), not stacks of boxes */
.pd-menu { gap: 0; margin-top: 8px; }
.pd-menu button { border: none; border-top: 1px solid var(--gray-200); border-radius: 0; background: transparent; padding: 14px 4px; min-height: 56px; }
.pd-menu button:first-child { border-top: none; }
.pd-menu button:hover { background: transparent; }
.pd-menu button:hover b { color: var(--brand-link); }
.pd-menu button.danger:hover b { color: var(--red); }
.pd-str:not(.pd-th):nth-child(even) { background: transparent; }
.pd-str { border-radius: 0; border-top: 1px solid var(--gray-200); padding: 10px 2px; }
.pd-str.pd-th { border-top: none; }
.pd-str .pd-who small { font-size: .85rem; }
.pd-wks { font-size: .85rem; }
/* line icons (js ICONS): inherit the text colour, sit on the text baseline */
.pd-ic { width: 1.15em; height: 1.15em; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.22em; }
/* ── In a game: TanyaPadel's own frame. The site header/footer belong to TanyaDong's salary tools, not to a padel game. ── */
.pd-in-game .site-header, .pd-in-game .site-footer, .pd-in-game .pd-hero { display: none; }
.pd-in-game .pd-main { padding-top: 0; }
.pd-in-game .pd-top-bar { position: sticky; top: 0; z-index: 20; background: var(--gray-50); margin: 0 -16px 8px; padding: 6px 16px; border-bottom: 1px solid transparent; }
.pd-brand { font-weight: 800 !important; color: var(--gray-900) !important; font-size: 1rem !important; gap: 6px; }
.pd-codechip { display: inline-flex; align-items: center; gap: 6px; }
.pd-codechip .pd-ic { width: 1.05em; height: 1.05em; }
.pd-iconbtn .pd-ic { width: 22px; height: 22px; }
.pd-iconbtn { color: var(--gray-900); display: inline-flex; align-items: center; justify-content: center; }
.pd-menulabel { margin: 18px 0 8px; font-size: .85rem; font-weight: 700; color: var(--gray-600); text-transform: uppercase; letter-spacing: .05em; }
.pd-menuseg .mode-tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.pd-menu button .pd-ic { width: 22px; height: 22px; color: var(--gray-600); }
.pd-menu button.danger .pd-ic { color: var(--red); }
.pd-menufoot { margin: 20px 0 0; font-size: .85rem; color: var(--gray-500); text-align: center; }
.pd-gamefoot { margin: 32px 0 8px; text-align: center; font-size: .85rem; color: var(--gray-500); }
.pd-gamefoot a, .pd-menufoot a { color: var(--gray-600); }

/* ── TanyaPadel identity: ball-yellow is the "live" accent (padel balls are this colour); navy ink on it for contrast ── */
#pd-app, .pd-modal, .pd-tv { --pd-ball: #dcf33f; --pd-ball-ink: #1a2654; }
.pd-status.live { background: var(--pd-ball); color: var(--pd-ball-ink) !important; padding: 3px 10px 3px 8px; border-radius: 999px; }
.pd-status.live i { background: var(--pd-ball-ink) !important; }
.pd-match.is-live { border-color: var(--gray-200); box-shadow: inset 4px 0 0 var(--pd-ball), var(--shadow-sm); }
.pd-match.is-live .pd-state { background: var(--pd-ball); color: var(--pd-ball-ink) !important; padding: 1px 8px; border-radius: 999px; }
/* crowns: a filled ball-yellow crown with a navy outline reads on both themes */
.pd-crown { fill: var(--pd-ball); stroke: var(--pd-ball-ink); width: 1em; height: 1em; vertical-align: -0.12em; }
.pd-crown-big { width: 44px; height: 44px; fill: var(--pd-ball); stroke: var(--pd-ball-ink); stroke-width: 1.6; }
.pd-final-crown { line-height: 1; }
/* regular match: a court-style scoreboard (navy board, white names, ball-yellow points) */
.pd-scoreboard { background: #1a2654 !important; border-color: #1a2654 !important; color: #fff; }
.pd-scoreboard .pd-names, .pd-scoreboard .pd-names b, .pd-scoreboard .pd-sb-set { color: #fff !important; }
.pd-scoreboard .pd-sb-row { border-color: rgba(255,255,255,.14) !important; }
.pd-scoreboard .pd-sb-cols .pd-sb-set, .pd-scoreboard .pd-sb-cols .pd-sb-pts { color: rgba(255,255,255,.72) !important; }
.pd-scoreboard .pd-sb-row:not(.pd-sb-cols) .pd-sb-pts { color: var(--pd-ball) !important; }
.pd-scoreboard .pd-sb-row.pd-win .pd-names { color: var(--pd-ball) !important; }
.pd-scoreboard .pd-sb-note { color: var(--pd-ball) !important; }
[data-theme="dark"] .pd-scoreboard { background: #0b1229 !important; border-color: #2a3a6a !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pd-scoreboard { background: #0b1229 !important; border-color: #2a3a6a !important; } }
.pd-tv-court:not(.done) { box-shadow: inset 0 4px 0 var(--pd-ball); }
/* motion: a saved score confirms on its card; rank changes slide in once */
.pd-justsaved { animation: pd-saved 1.6s ease-out; }
@keyframes pd-saved { 0% { box-shadow: 0 0 0 3px var(--pd-ball), var(--shadow-sm); } 100% { box-shadow: 0 0 0 0 transparent, var(--shadow-sm); } }
.pd-savedtag { display: inline-flex; align-items: center; gap: 4px; color: var(--pd-ball-ink); background: var(--pd-ball); padding: 1px 8px; border-radius: 999px; }
.pd-mv-in { display: inline-block; animation: pd-mv 0.6s ease-out both; }
@keyframes pd-mv { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pd-justsaved, .pd-mv-in { animation: none; } }
.pd-loc-ic { color: var(--gray-500); display: inline-flex; }
.pd-homegrid .pd-fmt-ic { color: var(--gray-900); }
.pd-homegrid .pd-fmt-ic .pd-ic { width: 28px; height: 28px; }

/* standings as one table: highlighted first row, chevron shows a row opens */
.pd-lcard .pd-lrow { grid-template-columns: 26px auto minmax(0, 1fr) auto 18px; }
.pd-lchev { color: var(--gray-400); display: inline-flex; transition: transform .2s; }
.pd-lchev .pd-ic { width: 18px; height: 18px; }
.pd-lrow.open .pd-lchev { transform: rotate(90deg); color: var(--brand-link); }
.pd-lrow-top { background: color-mix(in srgb, var(--pd-ball) 22%, transparent); margin: 0 -18px; padding-left: 18px !important; padding-right: 18px !important; border-radius: 0; }
.pd-lrow-top .pd-lrank, .pd-lrow-top .pd-lmid b { color: var(--gray-900) !important; font-weight: 800; }
.pd-lcard .pd-champ-tag { margin-right: 6px; }
/* lobby: WhatsApp invite under the code */
.pd-lobby-wa { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; width: auto !important; }
/* player: sticky one-line "my match" bar under the top bar */
.pd-mebar { position: absolute; left: 0; right: 0; top: 100%; display: flex; align-items: baseline; gap: 8px; padding: 10px 16px; background: var(--brand-pale);
  border-bottom: 1px solid var(--brand); font-size: .9rem; color: var(--gray-800); cursor: pointer; white-space: nowrap; overflow: hidden; }
.pd-mebar[hidden] { display: none; }
.pd-mebar b { color: var(--gray-900); }
.pd-mebar span { overflow: hidden; text-overflow: ellipsis; color: var(--gray-600); }
.pd-mebar .pd-mebar-tag { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-link); flex: 0 0 auto; }
/* courtside: clock, page dots, full-standings page; sized for reading from ~3 m */
.pd-tv-clock { font-weight: 600; color: var(--gray-500); font-size: .6em; margin-left: .4em; font-variant-numeric: tabular-nums; }
.pd-tv { font-size: clamp(17px, 1.75vw, 30px); }
.pd-tv-full { flex: 1; }
.pd-tv-full .pd-tv-board { font-size: 1.15em; }
.pd-tv-full .pd-tv-row { break-inside: avoid; }
.pd-tv-dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.pd-tv-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-200); }
.pd-tv-dots i.on { background: var(--gray-900); }

/* home: product-first hero; the about section sits below the app (hidden once you're in setup or a game) */
.pd-hero.hero h1 { font-size: clamp(2rem, 7vw, 2.8rem); letter-spacing: -0.03em; }
.pd-in-session .pd-about { display: none; }
.pd-about { padding-top: 32px; padding-bottom: 40px; }
.pd-about h2 { font-size: 1.3rem; margin: 0 0 16px; }
.pd-about h3 { font-size: 1.05rem; margin: 0 0 10px; }
.pd-steps { list-style: none; counter-reset: st; display: grid; gap: 14px; margin: 0 0 28px; padding: 0; }
.pd-steps li { counter-increment: st; display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; color: var(--gray-600); font-size: .95rem; line-height: 1.5; }
.pd-steps li::before { content: counter(st); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--pd-ball, #dcf33f); color: #1a2654; display: grid; place-items: center; font-weight: 800; }
.pd-steps li b { color: var(--gray-900); }
/* two invisible sections on the same columns as the cards above (.pd-grid: 1fr 1fr, gap 16px):
   "Cara kerja" (steps left, the example result right), then the formats as their own section */
.pd-howto { display: grid; grid-template-columns: 1fr; gap: 24px; }
.pd-howto .pd-steps { margin-bottom: 0; }
@media (min-width: 760px) { .pd-howto { grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; } }
.pd-example { margin: 0; }
.pd-ex-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pd-ex-btn { display: block; padding: 0; border: none; background: none; border-radius: 12px; cursor: zoom-in; }
.pd-ex-btn img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 12px; box-shadow: var(--shadow-md); }
.pd-example figcaption { margin-top: 8px; font-size: .85rem; color: var(--gray-500); }
.pd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pd-fmt-sec { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--gray-200); }
.pd-fmt-sec h3 { font-size: 1.3rem; margin: 0 0 16px; }
.pd-formats { display: grid; grid-template-columns: 1fr; gap: 20px 16px; margin: 0; }
@media (min-width: 760px) { .pd-formats { grid-template-columns: 1fr 1fr; } }
.pd-formats dt { font-weight: 800; color: var(--gray-900); }
.pd-formats dd { margin: 4px 0 0; color: var(--gray-600); font-size: .95rem; line-height: 1.5; }

/* live chip: beats the older dark-mode "green text" rule (navy ink on ball-yellow in every theme) */
#pd-app .pd-status.live, [data-theme="dark"] #pd-app .pd-status.live { color: var(--pd-ball-ink) !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #pd-app .pd-status.live { color: var(--pd-ball-ink) !important; } }
/* leader row: tint inside the card, columns stay aligned with the other rows */
.pd-lrow-top { margin: 2px -8px !important; padding-left: 8px !important; padding-right: 8px !important; border-radius: 10px !important; background: color-mix(in srgb, var(--pd-ball) 26%, var(--white)) !important; }
[data-theme="dark"] .pd-lrow-top { background: color-mix(in srgb, var(--pd-ball) 10%, var(--white)) !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pd-lrow-top { background: color-mix(in srgb, var(--pd-ball) 10%, var(--white)) !important; } }
.pd-lrow-top { width: calc(100% + 16px) !important; }
.pd-lcard .pd-lmid small:not(.pd-mv) { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* rank change: up = green, down = red (owner, Oct 2026) */
.pd-mv.down { color: #b91c1c !important; }
[data-theme="dark"] .pd-mv.down { color: #fca5a5 !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pd-mv.down { color: #fca5a5 !important; } }
/* narrow phones (avatar hidden): rank · name/line · value · chevron, the line shrinks with an ellipsis instead of running under the value */
@media (max-width: 420px) {
  .pd-lcard .pd-lrow { grid-template-columns: 22px minmax(0, 1fr) auto 18px; }
}

/* home: "Cara kerja" follows the cards at section spacing (24px), so its title shows in the first screen */
body:not(.pd-in-session) .pd-main { padding-bottom: 0; }
.pd-about { padding-top: 24px; }
/* the subtitle breaks between its two sentences, never inside one */
.pd-hero.hero p span { display: inline-block; }
/* the about section ends at the footer gap like every other page */
.pd-about { padding-bottom: 0; }

/* TV standings: title outside the box (same as "Ronde 2 dari 8"), football-table columns M S K +/− */
.pd-tv-side h2 { margin: 0 0 .5em; }
.pd-tv-row em { width: 1.7em; text-align: center; }
.pd-tv-rowhead { border-top: 0; padding-top: 0; }
.pd-tv-rowhead em, .pd-tv-rowhead small { color: var(--gray-600) !important; font-weight: 700; font-size: max(13px, .7em) !important; letter-spacing: .04em; }
.pd-tv-rowhead + .pd-tv-row { border-top: 1px solid var(--gray-200); }
.pd-tv-two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 28px); align-items: start; }
@media (max-width: 760px) { .pd-tv-two { grid-template-columns: 1fr; } }
/* next round: its own card in the courts grid, readable from the bench */
.pd-tv-nextcard { box-shadow: none !important; background: transparent; border-style: dashed; }
.pd-tv-nextcard.wide { grid-column: 1 / -1; }
.pd-tv-nextrow { display: flex; gap: .6em; align-items: baseline; padding: .3em 0; color: var(--gray-900); font-weight: 600; font-size: .9em; }
.pd-tv-nextrow i { font-style: normal; color: var(--gray-600); font-weight: 700; min-width: 1.8em; }
.pd-tv-nextrow em { font-style: normal; color: var(--gray-600); font-weight: 500; }
/* regular-match board: the board is navy in both themes, so its controls can't use brand navy (was invisible in light mode) */
.pd-scoreboard .pd-point, .pd-scoreboard .pd-point:hover, .pd-scoreboard .pd-point:focus { background: rgba(255,255,255,.08) !important; border: 2px solid rgba(255,255,255,.6) !important; color: #fff !important; transform: none; }
.pd-scoreboard .pd-point:active { background: rgba(220,243,63,.22) !important; border-color: var(--pd-ball) !important; transform: scale(.97); }
.pd-scoreboard .pd-undo { color: #fff !important; min-height: 44px; padding: 0 12px; text-decoration: underline; text-underline-offset: 3px; }
.pd-scoreboard .pd-hint { color: rgba(255,255,255,.75) !important; }

/* image size: Chat 4:5 | Story 9:16, a segmented control under the kind tabs */
.pd-modal .pd-img-size { margin-top: -4px; }
/* "Saya ikut main" on the lobby's count line: a 44px target without making the line taller */
.pd-progress-top .pd-textbtn { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: -12px 0; font-size: .95rem; }
.pd-progress-top .pd-textbtn .pd-ic { width: 16px; height: 16px; }
/* turn alert: a ball-yellow banner from the top (tap to close), and the opt-in line on the player's card */
.pd-turn { position: fixed; top: calc(8px + env(safe-area-inset-top)); left: 12px; right: 12px; max-width: 480px; margin: 0 auto; z-index: 2147483100;
  display: flex; gap: 12px; align-items: center; text-align: left; padding: 14px 16px; border: 0; border-radius: 16px; cursor: pointer; font: inherit;
  background: var(--pd-ball, #dcf33f); color: #1a2654; box-shadow: 0 10px 30px rgba(15,23,42,.3); animation: pd-turn-in .35s ease-out; }
.pd-turn[hidden] { display: none; }
.pd-turn b { display: block; font-size: 1.05rem; }
.pd-turn small { display: block; font-size: .9rem; color: #1a2654; opacity: .85; }
.pd-turn-ic .pd-ic { width: 28px; height: 28px; }
@keyframes pd-turn-in { from { transform: translateY(-120%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .pd-turn { animation: none; } }
.pd-notify { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 2px 0 -10px; font-size: .9rem; }
.pd-notify .pd-ic { width: 16px; height: 16px; }
.pd-notify.on { color: var(--gray-600); font-weight: 600; }

/* the rename pencil on player rows */
.pd-rename { flex-shrink: 0; min-width: 44px; min-height: 44px; margin: -8px 0; font-size: 1.05rem; color: var(--gray-500); }
/* play day | start | duration in one row */
.pd-row3 { grid-template-columns: 1.15fr 1fr 1fr !important; }
.pd-row3 { gap: 8px !important; }
#pd-app .pd-row3 select { min-width: 0; text-overflow: ellipsis; padding-left: 10px; padding-right: 24px; background-position: right 8px center; }
/* "+ Saya ikut main": the first name chip, dashed until the GM is on the list */
.pd-namechips .pd-iamchip { border-style: dashed !important; background: transparent !important; padding: 0 !important; }
.pd-iamchip button { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 14px; border: none; background: none; font: inherit; font-weight: 700; color: var(--brand-link); cursor: pointer; }
.pd-iamchip .pd-ic { width: 16px; height: 16px; }
.pd-recent-res { display: flex; align-items: center; gap: 4px; margin-top: 2px; font-size: .875rem; font-weight: 600; color: var(--gray-800); }
.pd-recent-res .pd-crown { width: 14px; height: 14px; }
/* schedule/calendar actions under the share sheet's buttons */
.pd-share-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 16px; margin-top: 4px; border-top: 1px solid var(--gray-200); padding-top: 6px; }
.pd-share-more .pd-textbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: .9rem; }
.pd-share-more .pd-ic { width: 16px; height: 16px; }
/* an expired game link: a calm explanation on top of the home screen */
.pd-gone { margin-bottom: 16px; border-color: var(--gray-200); }
.pd-gone b { display: block; color: var(--gray-900); font-size: 1.05rem; margin-bottom: 4px; }
.pd-gone p { margin: 0; color: var(--gray-600); font-size: .9rem; }
.pd-gone .pd-gone-was { margin-top: 8px; color: var(--gray-800); font-weight: 600; }
.pd-gone .pd-crown { width: 14px; height: 14px; vertical-align: -1px; }
.pd-installbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 6px; font-size: .9rem; }
.pd-installbtn .pd-ic { width: 16px; height: 16px; }
.pd-scoreboard .pd-sb-head { display: flex; gap: 12px; }
/* Mixicano: Pa/Pi tag at the start of a name chip; Team Americano: chips grouped in numbered pairs */
.pd-gender { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; min-height: 30px; margin: 0 6px 0 -8px; padding: 0 6px; border-radius: 999px;
  border: 1px dashed var(--gray-400); background: none; font: inherit; font-size: .75rem; font-weight: 800; color: var(--gray-600); cursor: pointer; }
.pd-gender.m, .pd-gender.f { border: 0; background: var(--gray-100); color: var(--gray-900); }   /* neutral: the label says it, no colour coding */
.pd-pairs { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.pd-pairs > li::marker { color: var(--gray-500); font-weight: 700; }
.pd-pairs .pd-namechips { margin: 0; }
.pd-chipname { border: 0; background: none; font: inherit; font-weight: 600; font-size: 1rem; color: var(--gray-900); padding: 0; min-height: 44px; cursor: pointer; }
.pd-namechips li.pd-picked { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.pd-gseg { margin: 8px 0; }
/* desktop: the examples are exactly as tall as "Cara kerja" (title to the last step): the figure adds no height to the
   row (absolute inner box); the two images share what's left above the caption, keeping their 4:5 shape */
@media (min-width: 760px) {
  .pd-howto { align-items: stretch; }
  .pd-example { position: relative; }
  .pd-example-in { position: absolute; inset: 0; display: flex; flex-direction: column; }
  .pd-ex-imgs { flex: 1 1 0; min-height: 0; display: flex; gap: 12px; }
  .pd-ex-btn { height: 100%; }
  .pd-ex-btn img { width: auto; height: 100%; }
}
/* tap an example: full screen, tap anywhere or Esc to close */
.pd-zoom { position: fixed; inset: 0; z-index: 2147483001; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(15,23,42,.92); cursor: zoom-out; }
.pd-zoom img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 12px; }
.pd-zoom-x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
/* home title left-aligned on the same edge as the cards and sections below (owner, Oct 2026) */
.pd-hero.hero { text-align: left; padding-left: 0; padding-right: 0; }
.pd-hero.hero p { margin: 0; max-width: none; }
/* Fix partner on/off under the Americano / Mexicano tabs (a toggle: on or off, not a choice between options) */
.pd-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin: 12px 0 16px; cursor: pointer; }
.pd-switch > span { display: flex; flex-direction: column; min-width: 0; }
.pd-switch b { color: var(--gray-900); font-size: 1rem; }
.pd-switch small { color: var(--gray-600); font-size: .875rem; }
.pd-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pd-switch i { flex: none; position: relative; width: 48px; height: 28px; border-radius: 999px; background: var(--gray-200); border: 1px solid var(--gray-400); transition: background .15s; }
.pd-switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .15s; }
.pd-switch input:checked + i { background: var(--brand); border-color: var(--brand); }
.pd-switch input:checked + i::after { transform: translateX(20px); }
.pd-switch input:focus-visible + i { outline: 3px solid var(--brand-link); outline-offset: 2px; }
/* Fix partner lobby: one row per pair, players tap the empty seat next to their partner (left or right) */
.pd-seats { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.pd-seats li { display: grid; grid-template-columns: 20px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; }
.pd-seat-n { font-weight: 800; color: var(--gray-500); text-align: center; font-variant-numeric: tabular-nums; }
.pd-seat { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-width: 0; min-height: 48px; padding: 0 4px 0 12px;
  border-radius: 12px; border: 1px solid var(--gray-200); background: var(--white); }
.pd-seat b, .pd-seat .pd-chipname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.pd-seat.empty { justify-content: center; gap: 6px; padding: 0 12px; border: 1.5px dashed var(--gray-400); background: none; color: var(--brand-link);
  font: inherit; font-weight: 700; cursor: pointer; }
.pd-seat.empty .pd-ic { width: 16px; height: 16px; }
.pd-seat.empty.pd-target, .pd-seat.empty:hover { border-color: var(--brand); }
.pd-seat.pd-me { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.pd-seat.pd-picked { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }

/* ── Turnamen (Oct 2026): team score bar, team blocks in the lobby, team labels on match cards ── */
.pd-tourswitch b { display: inline-flex; align-items: center; gap: 6px; }
.pd-tourswitch b svg { width: 18px; height: 18px; }
.pd-tour-q { margin-bottom: 14px; }
.pd-tour-q .mode-tabs { margin-bottom: 6px; }
.pd-tbar { padding: 14px 16px; }
.pd-tbar .pd-eyebrow { margin: 0 0 6px; }
.pd-tbar-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.pd-tbar-team { font-weight: 800; font-size: 1.0625rem; color: var(--gray-600); display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.pd-tbar-team:last-child { justify-content: flex-end; text-align: right; }
.pd-tbar-team.lead { color: var(--gray-900); }
.pd-tbar-score { font-size: 2.25rem; font-weight: 800; color: var(--gray-900); letter-spacing: -.02em; font-variant-numeric: tabular-nums; display: inline-flex; gap: 8px; }
.pd-tbar-score i { font-style: normal; color: var(--gray-400); }
.pd-tbar-sub { margin: 4px 0 0; text-align: center; font-size: .875rem; color: var(--gray-600); }
.pd-tbar-win { margin: 8px 0 0; text-align: center; font-weight: 800; color: var(--gray-900); }
.pd-tbar.is-final { border-color: var(--gray-900); }
.pd-tside { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 99px; background: var(--gray-100); color: var(--gray-800);
  font-size: .8125rem; font-weight: 700; vertical-align: 1px; white-space: nowrap; }
.pd-teamblock + .pd-teamblock { margin-top: 14px; }
.pd-teamhead { display: flex; align-items: baseline; justify-content: space-between; margin: 10px 0 6px; font-size: 1rem; font-weight: 800; color: var(--gray-900); }
.pd-teamhead small { font-size: .8125rem; font-weight: 600; color: var(--gray-600); }
.pd-seats-free li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pd-seats-free .pd-seat-n { display: none; }
/* Tim tab: team totals, each round, each member's share */
.pd-tstats { padding: 6px 16px; }
.pd-tstat-row { display: grid; grid-template-columns: 1fr 80px 80px; align-items: center; min-height: 44px; border-bottom: 1px solid var(--gray-200); }
.pd-tstat-row:last-child { border-bottom: 0; }
.pd-tstat-row span { color: var(--gray-600); font-size: .9375rem; }
.pd-tstat-row b { text-align: center; font-size: 1.0625rem; font-weight: 800; color: var(--gray-900); font-variant-numeric: tabular-nums; }
.pd-tstat-head b { font-size: .9375rem; color: var(--gray-600); }
.pd-tstat-head b.lead { color: var(--gray-900); }
.pd-tstat-row.is-key { background: var(--gray-100); margin: 0 -16px; padding: 0 16px; }
.pd-tstat-row.is-key span { color: var(--gray-900); font-weight: 700; }
.pd-tround { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.pd-tround li { display: flex; align-items: baseline; justify-content: center; gap: 4px; padding: 10px 8px; border: 1px solid var(--gray-200); border-radius: 10px;
  background: var(--white); font-variant-numeric: tabular-nums; }
.pd-tround li span { font-size: .8125rem; font-weight: 700; color: var(--gray-500); margin-right: 4px; }
.pd-tround li b { font-weight: 800; color: var(--gray-600); }
.pd-tround li b.lead { color: var(--gray-900); }
.pd-tround li i { font-style: normal; color: var(--gray-400); }
.pd-tmembers-wrap { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 8px; }
@media (min-width: 640px) { .pd-tmembers-wrap { grid-template-columns: 1fr 1fr; } }
.pd-tmembers { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 4px 16px 8px; }
.pd-tmembers ul { list-style: none; margin: 0; padding: 0; }
.pd-tmembers li { display: flex; align-items: center; gap: 10px; min-height: 48px; border-top: 1px solid var(--gray-200); }
.pd-tmembers li b { flex: 1; min-width: 0; font-weight: 700; color: var(--gray-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-tm-val { font-weight: 800; font-size: 1.0625rem; color: var(--gray-900); font-variant-numeric: tabular-nums; }
.pd-tmembers li.pd-mine b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pd-tabs2.pd-tabs3 { grid-template-columns: repeat(3, 1fr); }
/* Bolo, the TanyaPadel mascot (Nov 2026): one per state, never over text */
.pd-bolo { display: block; flex: none; }
.pd-bolo-final { width: 96px; height: 96px; margin: 0 auto; }
.pd-bolo-tv { width: 180px; height: 180px; margin: 0 auto 8px; }
.pd-wait { display: flex; align-items: center; gap: 10px; }
.pd-bolo-wait { width: 48px; height: 48px; }
.pd-bolo-turn { width: 44px; height: 44px; }
.pd-bolo-gone { width: 72px; height: 72px; margin-bottom: 8px; }

/* Late players (sit out round 1): a small clock tag, the chip itself muted */
.pd-late-tag { display: inline-flex; align-items: center; gap: 3px; font-size: .8125rem; font-weight: 600; color: var(--gray-600); white-space: nowrap; }
.pd-late-tag .pd-ic, .pd-late-tag svg { width: 14px; height: 14px; }
.pd-namechips li.pd-late, .pd-seat.pd-late { border-style: dashed; }
.pd-late-pick { margin: 8px 0 0; }
.pd-late-btn { border: 0; background: none; padding: 0 2px; min-height: 32px; cursor: pointer; font: inherit; font-size: .8125rem; font-weight: 600; color: var(--gray-600); text-decoration: underline dotted; text-underline-offset: 3px; }
.pd-latebox { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 12px; padding: 10px 12px; border: 1px dashed var(--gray-200); border-radius: var(--radius); }
.pd-latebox > span { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--gray-800); flex-basis: 100%; }
.pd-latebox .pd-btn { flex: 1; }
.pd-latebox .pd-btn { min-height: 44px; }
.pd-latenote { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 0; padding: 10px 12px; border-radius: var(--radius); background: var(--gray-100); color: var(--gray-800); font-size: .9375rem; }
.pd-latenote svg { flex: none; margin-top: 3px; width: 16px; height: 16px; }
.pd-swapitem small { display: block; font-weight: 500; font-size: .8125rem; color: var(--gray-600); }
.pd-toast.has-act { display: flex; align-items: center; gap: 12px; width: min(calc(100vw - 32px), 440px); justify-content: space-between; }
.pd-toast-act { border: 0; background: none; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; min-height: 44px; padding: 0 4px; cursor: pointer; white-space: nowrap; }
.pd-benchname { border: 0; background: none; padding: 0; min-height: 32px; font: inherit; color: inherit; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.pd-toast.show.has-act { pointer-events: auto; }
