/* Compact result cards (~half the old footprint): the hand / board result (#resultOverlay: duplicate, Sit & Go, sub)
 * and the 500 hand scoreboard + final (#g500Overlay). Smaller sheet, fonts, rows and padding; the overlay no longer
 * blurs or darkens the whole table, so the felt stays visible around the card. Readable at 360/412 px. */
#resultOverlay, #g500Overlay { background: rgba(3, 6, 10, .28); backdrop-filter: none; }
#resultOverlay .sheet.result, #g500Overlay .g5-sheet { width: min(420px, 94vw); max-height: 58vh; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); font-size: .8rem; line-height: 1.3; }
#resultOverlay .sheet h2, #g500Overlay .g5-sheet h2 { font-size: .95rem; margin: 0 0 4px; }
#resultOverlay table.score, #g500Overlay table.score { font-size: .7rem; }
#resultOverlay table.score th, #resultOverlay table.score td, #g500Overlay table.score th, #g500Overlay table.score td { padding: 2px 3px; }
#resultOverlay .mpscore { margin: 5px 0 2px; font-size: .78rem; }
#resultOverlay .mpscore .hl { font-size: .9rem; }
#resultOverlay .mprow { margin: 3px 0; font-size: .78rem; gap: 2px 10px; }
#resultOverlay .field { font-size: .7rem; margin: 2px 0 4px; }
#resultOverlay table.ftable { font-size: .68rem; }
#resultOverlay table.ftable th, #resultOverlay table.ftable td { padding: 2px 3px; }
#resultOverlay .beer-line { margin: 5px 0; padding: 4px 8px; font-size: .78rem; }
#resultOverlay .beer-line svg { width: 20px; height: 20px; }
#resultOverlay .unlocks { margin: 4px 0; gap: 4px; } #resultOverlay .unlocks span { font-size: .7rem; padding: 2px 8px; }
#resultOverlay .auto-note { font-size: .74rem; padding: 4px 8px; margin-bottom: 4px; }
#resultOverlay .partner-out { margin-top: 5px; padding: 5px; }
#resultOverlay .partner-card { gap: 6px; padding: 3px 10px 3px 3px; }
#resultOverlay .partner-card .avatar { width: 28px; height: 28px; font-size: 16px; }
#resultOverlay .partner-out .hint { font-size: .66rem; margin-top: 3px; }
#resultOverlay .actions, #g500Overlay .actions { margin-top: 6px; gap: 6px; }
#resultOverlay .actions button, #g500Overlay .actions button { padding: 6px 14px; font-size: .82rem; }
#resultOverlay .tiny, #g500Overlay .tiny { font-size: .66rem; }
/* 500 scoreboard */
#g500Overlay .g5-big { margin: 4px 0 6px; gap: 8px; }
#g500Overlay .g5-big > div:not(.vs) { padding: 4px 6px; border-radius: 10px; }
#g500Overlay .g5-big b { font-size: 22px; }
#g500Overlay .g5-big > div > span { font-size: 11px; }
#g500Overlay .g5-big small { font-size: 11px; }
#g500Overlay .g5-hands { font-size: 11px; }
#g500Overlay #g5FinalTitle { font-size: 18px; margin: 0 0 2px; }
#g500Overlay .g5-bonus { font-size: 15px; padding: 3px 10px; margin: 2px auto; }
#g500Overlay p { margin: 3px 0; }
/* the buttons stay in view while the (shorter) card scrolls */
#resultOverlay .actions, #g500Overlay .actions { position: sticky; bottom: calc(-10px - env(safe-area-inset-bottom)); padding: 6px 0 2px; background: inherit; background: linear-gradient(180deg, rgba(18,19,22,0), #121316 30%); }
@media (max-width: 420px) {
  #resultOverlay .sheet.result, #g500Overlay .g5-sheet { width: 96vw; max-height: 36vh; margin-bottom: 4px; border-radius: 14px; padding: 7px 9px calc(7px + env(safe-area-inset-bottom)); }
  #resultOverlay .actions, #g500Overlay .actions { bottom: calc(-7px - env(safe-area-inset-bottom)); }
  #resultOverlay .sheet h2, #g500Overlay .g5-sheet h2 { font-size: .85rem; }
  #g500Overlay .g5-big { margin: 2px 0 4px; }
  #g500Overlay .g5-big b { font-size: 18px; }
  #g500Overlay .g5-big > div:not(.vs) { padding: 2px 4px; }
  #g500Overlay .g5-hands td, #g500Overlay .g5-hands th { padding: 1px 2px; }
}
