/* ============================================================
 * play-match.css — 升級賽 in 對局演練 (play-match.js): the match status in the bar, the result notes, and the tribute phase
 * between two rounds. It lives inside 對局演練's one-screen layout (.pb2: 100vh, a column); the two boxes of the tribute
 * phase scroll inside themselves when a window is short. Colours = style.css tokens.
 * ============================================================ */
/* the pill never wraps the bar: a zero basis keeps it on the bar's line, it takes the free space before the bar's spacer
   (.pb2-sp, grow 1) up to its text, and a narrow window cuts it short (…) — the whole status is in its tooltip */
.pm-bar{ flex:1000 1 0; min-width:150px; max-width:max-content; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  font-size:12.5px; color:var(--ink); background:rgba(191,176,131,.1); border:1px solid var(--line-gold); border-radius:7px; padding:2px 9px; }
.pm-bar b{ color:var(--gold); }
/* 打 A 第幾次: A1 / A2 / A3 beside the level (the last chance in red) */
.pm-a{ display:inline-block; margin-left:5px; padding:0 6px; border-radius:6px; font-size:12px; font-weight:700; cursor:help;
  color:#1f2622 !important; background:var(--gold); }
.pm-a.last{ color:#fff !important; background:#b17977; }
.pbc-lv .pm-a{ margin-left:6px; font-size:11px; vertical-align:2px; }
.pm-note{ font-size:12.5px; color:#d2c2a8; margin-top:4px; }
.pm-next b{ color:var(--gold); }

/* the tribute phase: the exchanges on the left, your part (the 還貢 choice or your new hand) on the right */
.pm-grid{ flex:1 1 auto; min-height:0; display:grid; grid-template-columns:minmax(300px, .9fr) minmax(0, 1.6fr); gap:8px; }
.pm-grid > .pb2-box{ background:var(--panel-1); border:1px solid rgba(255,255,255,.1); padding:10px 12px; display:flex; flex-direction:column; gap:7px; }
.pm-h{ font-size:15px; font-weight:700; color:var(--gold); }
.pm-h .pbm{ font-size:13px; }
.pm-fin, .pm-kind{ font-size:13px; color:var(--ink-dim); }
.pm-kind{ color:var(--ink); font-weight:600; }
.pm-move{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:13.5px; padding:5px 8px; border-radius:7px; background:var(--panel-2); }
.pm-move > .pm-who{ min-width:96px; color:var(--ink); }
.pm-move > b{ color:var(--gold); }
.pm-move small{ color:var(--ink-faint); font-size:11.5px; }
.pm-move .pbm{ font-size:14px; padding:0 5px; }
.pm-wait{ border:1px dashed var(--line-gold); background:none; }
.pm-resist{ font-size:13.5px; line-height:1.55; padding:8px 10px; border-radius:8px; background:rgba(134,166,195,.1); border:1px solid rgba(134,166,195,.35); }
.pm-lead{ font-size:14px; color:var(--ink); }
.pm-lead b{ color:var(--good); }
.pm-lead small{ display:block; margin-top:3px; font-size:12.5px; color:var(--ink-dim); line-height:1.6; }
.pm-lead .pbm{ font-size:12.5px; }
.pm-rules{ margin-top:auto; font-size:11.5px; color:var(--ink-faint); line-height:1.55; border-top:1px solid var(--line-1); padding-top:6px; }
.pm-me{ font-size:13px; color:var(--ink-dim); line-height:1.5; }
.pm-hand{ justify-content:flex-start; gap:5px; }
.pm-hand .pbpile{ padding:3px 4px; }
.pbcard.pm-no{ opacity:.38; }
.pbcard.pm-got{ box-shadow:0 0 0 3px var(--you); position:relative; }
.pm-adv{ background:rgba(91,82,49,.16); border:1px solid #bdb496; border-radius:9px; padding:8px 11px; }
.pm-adv .pbm{ font-size:13px; }
.pm-rule{ font-size:11.5px; color:var(--ink-faint); }
/* the 還貢模擬 (play-match.js simHtml): what it is doing, and one row a way to return (a click picks that card) */
.pm-adv small{ font-size:11.5px; font-weight:400; color:var(--ink-dim); margin-left:6px; }
.pm-simp{ font-size:12px; color:var(--ink-dim); margin:3px 0; }
.pm-sim{ width:100%; border-collapse:collapse; font-size:12.5px; margin:3px 0 6px; }
.pm-sim th{ text-align:left; font-weight:400; font-size:11.5px; color:var(--ink-faint); padding:2px 6px; }
.pm-sim td{ padding:2px 6px; border-top:1px solid var(--line-1); }
.pm-simrow{ cursor:pointer; }
.pm-simrow:hover{ background:rgba(255,255,255,.06); }
.pm-simrow.sel{ background:rgba(191,176,131,.18); }
.pm-sim .pbm{ font-size:12px; padding:0 4px; margin-right:2px; }
.pm-simline td{ border-top:none; padding:0 6px 4px 18px; font-size:11.5px; color:var(--ink-dim); }
.pm-simpile{ display:inline-block; margin-right:8px; white-space:nowrap; }
.pm-keys{ font-size:12px; color:var(--ink-dim); }
.pm-you .pbbtns .pbm{ font-size:12px; }
@media (max-width:1100px){
  .pm-grid{ grid-template-columns:minmax(0,1fr); }
}
