/* (17 Nov 2026, user: "this window is too congested ... make this nicer and professional") the 2 vs 2 round results.
   Left: a slim win pill, the title banner (smaller), the team tabs on one line with their heading, the pooled cards.
   Right: the round table, the match tally as a tidy list, the match score as two big tiles, the buttons. No notes. */
html body #roundPanel.r2v2{padding:12px 16px 10px !important; column-gap:18px !important; grid-template-columns:minmax(0,1.12fr) minmax(0,1fr) !important; align-items:stretch !important}
html body #roundPanel.r2v2 .rcol{display:flex; flex-direction:column; min-height:0}
/* left */
html body #roundPanel.r2v2 .winribbon{align-self:center; padding:4px 22px !important; border-radius:999px !important; font-size:13px !important; font-weight:800; letter-spacing:.04em; margin:0 0 2px !important; box-shadow:0 2px 6px rgba(0,0,0,.35)}
html body #roundPanel.r2v2 .rleft>h2:first-of-type{width:min(230px,70%) !important; margin:0 auto 0 !important; font-size:clamp(11px,2.1vw,14px) !important}
html body #roundPanel.r2v2 .rleft>p{margin:0 0 2px !important; text-align:center; font-size:12px; color:#cdb894}
html body #roundPanel.r2v2 .rhead{display:flex; align-items:center; justify-content:space-between; gap:10px; margin:2px 0 6px}
html body #roundPanel.r2v2 .rhead h3{margin:0 !important; font-size:11px; letter-spacing:.14em}
html body #roundPanel.r2v2 .rhead .htabs{margin:0 !important; flex-wrap:nowrap}
html body #roundPanel.r2v2 .htab{padding:3px 12px !important; font-size:12px !important; min-height:0 !important; line-height:1.2}
html body #roundPanel.r2v2 .htab .badge{font-size:9px; padding:1px 6px; margin-left:3px}
html body #roundPanel.r2v2 .melds{flex:1 1 auto; min-height:0; overflow:auto; padding:6px 8px 8px !important; border-radius:12px}
html body #roundPanel.r2v2 .melds .card{--w:27px}
html body #roundPanel.r2v2 #handView .ownkey{margin-bottom:5px !important; gap:2px 12px; font-size:11px !important}
html body #roundPanel.r2v2 .meldrow{margin-bottom:4px; gap:2px}
html body #roundPanel.r2v2 .meldrow.loose{margin-top:2px}
/* right */
html body #roundPanel.r2v2 .rright{gap:0}
html body #roundPanel.r2v2 .rright h3{margin:8px 0 4px !important; font-size:11px; letter-spacing:.14em}
html body #roundPanel.r2v2 .rright h3:first-child{margin-top:0 !important}
html body #roundPanel.r2v2 table.res th{padding:4px 7px !important; font-size:10px !important; letter-spacing:.08em; text-align:right}
html body #roundPanel.r2v2 table.res th:first-child,html body #roundPanel.r2v2 table.res td:first-child{text-align:left}
html body #roundPanel.r2v2 table.res td{padding:5px 7px !important; font-size:13px !important; text-align:right; vertical-align:middle}
html body #roundPanel.r2v2 table.res td:first-child{font-weight:800; line-height:1.2}
html body #roundPanel.r2v2 table.res td:last-child{font-size:15px !important; font-weight:900; color:#f6dca8}
html body #roundPanel.r2v2 table.res tr.usrow td{background:rgba(236,196,143,.07)}
html body #roundPanel.r2v2 table.res .who2{display:block; font-weight:600; font-size:10.5px; color:#bda583; margin-top:1px}
html body #roundPanel.r2v2 table.res .badge{display:inline-block; font-size:9.5px !important; padding:1px 7px !important; margin:0 0 0 6px; vertical-align:1px}
html body #roundPanel.r2v2 .tally{display:grid !important; grid-template-columns:1fr 1fr; gap:4px 6px !important}
html body #roundPanel.r2v2 .tally>span{display:flex; flex-direction:column; align-items:flex-start; gap:0; padding:3px 9px !important; border-radius:9px !important; font-size:11px !important; line-height:1.25; background:rgba(10,7,5,.5) !important; border:1px solid rgba(176,122,72,.28) !important; min-width:0}
html body #roundPanel.r2v2 .tally>span b{font-size:12px; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
html body #roundPanel.r2v2 .tally>span.us{border-color:rgba(236,196,143,.5) !important}
html body #roundPanel.r2v2 .scores{display:grid !important; grid-template-columns:1fr 1fr; gap:6px !important}
html body #roundPanel.r2v2 .scores .chip{display:flex; flex-direction:column; align-items:center; justify-content:center; padding:4px 8px !important; border-radius:12px !important; font-size:11px !important; line-height:1.1}
html body #roundPanel.r2v2 .scores .chip b{font-size:22px; font-weight:900; line-height:1.05}
html body #roundPanel.r2v2 .scores .target{grid-column:1 / -1; text-align:center; font-size:10.5px; color:#bda583; margin-top:-1px}
html body #roundPanel.r2v2 .rright .rbtns{margin-top:auto !important; padding:10px 0 0 !important; background:none !important; position:static !important}
html body #roundPanel.r2v2 .rright .rbtns>*{min-height:38px; font-size:14px !important}
/* second pass: everything on the right fits without scrolling on a sideways phone */
html body #roundPanel.r2v2 .tally>span{flex-direction:row !important; align-items:center !important; justify-content:space-between; gap:6px !important; padding:2px 9px !important; white-space:nowrap; font-size:10.5px !important; min-height:0}
html body #roundPanel.r2v2 .tally>span b{flex:1 1 auto; min-width:0}
html body #roundPanel.r2v2 .tally>span em{font-size:10px}
html body #roundPanel.r2v2 .scores .chip{flex-direction:row !important; justify-content:space-between !important; gap:8px; padding:3px 12px !important; border-radius:999px !important; font-size:12px !important}
html body #roundPanel.r2v2 .scores .chip b{font-size:20px}
html body #roundPanel.r2v2 table.res td{padding:3px 7px !important}
html body #roundPanel.r2v2 table.res td:first-child{font-size:12px !important}
html body #roundPanel.r2v2 .rright h3{margin:6px 0 3px !important}
html body #roundPanel.r2v2 .rright .rbtns{padding-top:8px !important}
html body #roundPanel.r2v2 .rright .rbtns>*{min-height:36px}
html body #roundPanel.r2v2 .rleft>h2:first-of-type{width:min(210px,64%) !important}
/* narrow phones (640 wide and less): a little smaller so it still fits without scrolling */
@media (max-width:700px){
  html body #roundPanel.r2v2{padding:8px 12px 8px !important; column-gap:12px !important}
  html body #roundPanel.r2v2 .rleft>p{display:none}
  html body #roundPanel.r2v2 .rleft>h2:first-of-type{width:min(165px,52%) !important}
  html body #roundPanel.r2v2 .winribbon{font-size:11px !important; padding:3px 16px !important}
  html body #roundPanel.r2v2 .melds .card{--w:23px}
  html body #roundPanel.r2v2 .htab{padding:2px 9px !important; font-size:11px !important}
  html body #roundPanel.r2v2 table.res th{padding:3px 4px !important; font-size:9px !important}
  html body #roundPanel.r2v2 table.res td{padding:2px 4px !important; font-size:11.5px !important}
  html body #roundPanel.r2v2 table.res td:first-child{font-size:11px !important}
  html body #roundPanel.r2v2 table.res td:last-child{font-size:13px !important}
  html body #roundPanel.r2v2 table.res .badge{font-size:8.5px !important; padding:0 5px !important; white-space:nowrap}
  html body #roundPanel.r2v2 .tally>span{padding:1px 7px !important; font-size:9.5px !important}
  html body #roundPanel.r2v2 .scores .chip{padding:2px 10px !important} html body #roundPanel.r2v2 .scores .chip b{font-size:17px}
  html body #roundPanel.r2v2 .rright .rbtns>*{min-height:32px; font-size:12px !important; white-space:nowrap; padding-left:6px !important; padding-right:6px !important}
}
