/* Table games (Crazy Eights and later games). Loaded after game.css, which supplies cards, buttons,
   modals, themes and decks. Rummy 500's wide-screen grid is switched off for these pages. */
#app[data-layout="table"] { display: flex; flex-direction: column; }
@media (min-width: 700px) { #app[data-layout="table"] { display: flex; max-width: 960px; } }

.opps { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.opp { flex: 1 1 140px; max-width: 280px; padding: 8px 10px; border-radius: 12px; background: rgba(0,0,0,.22); border: 2px solid transparent; }
.opp.turn { border-color: var(--cpu); box-shadow: 0 0 0 3px rgba(255,159,90,.35); }
.oname { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.oname span { opacity: .8; }
.fan { display: flex; padding-left: 14px; margin-top: 6px; min-height: 40px; }
.fan .card.mini { width: 26px; height: 38px; margin-left: -14px; padding: 2px 0 0 3px; font-size: 11px; }
.fan.reveal { flex-wrap: wrap; min-height: 50px; }
.fan.reveal .card.mini { width: 34px; height: 48px; font-size: 13px; margin-bottom: 3px; }
.ocount { font-size: 11px; opacity: .7; margin-top: 2px; }

.centre { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 150px; }
.pilebox { display: flex; gap: 32px; align-items: flex-start; justify-content: center; padding: 10px 0; }
.stock, .topbox { text-align: center; }
.stock { cursor: pointer; }
.stock .count { font-size: 12px; opacity: .8; margin-top: 4px; }
.stock.ready .card { outline: 3px solid var(--gold); }
.centre .card { width: 64px; height: 92px; font-size: 28px; padding: 5px 0 0 7px; }
.empty-pile { background: transparent; border: 2px dashed rgba(255,255,255,.3); box-shadow: none; }
.suitnow { margin-top: 6px; font-size: 14px; }
.redtxt { color: #ff8a80; }
.topcard { cursor: default; }

.hand .card.dim { opacity: .42; }
.card.new::before { content: "NEW"; }

.suitbox { text-align: center; }
.suitpick { display: flex; gap: 10px; margin: 12px 0; }
.suitbtn { flex: 1; font-size: 42px; line-height: 1; padding: 14px 0; border-radius: 12px; border: 2px solid #bbb; background: #fff; color: #111; cursor: pointer; }
.suitbtn.red { color: #c62828; }
.startbox .setting { margin: 10px 0 14px; }
.startbox .seg button { min-width: 80px; }

@media (min-width: 700px) {
  .centre .card { width: 84px; height: 120px; font-size: 36px; padding: 6px 0 0 9px; }
  .pilebox { gap: 48px; }
  .fan .card.mini { width: 34px; height: 50px; font-size: 14px; margin-left: -18px; }
  .opp { padding: 10px 14px; }
  .oname { font-size: 16px; }
}
