/* ingame.css - action panel (right side), readable own hand + chips */
.my-hand { gap: 8px; }
.mini-card { width: clamp(84px, 11vw, 120px); border-radius: 8px; }
.mini-card.board { width: clamp(56px, 7vw, 72px); }
#mycards { gap: 8px; }
#my-chips { display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--gold, #d4a548); box-shadow: 0 6px 16px rgba(0,0,0,.45); }
#my-chips .mc-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
#my-chips b { font-size: clamp(20px, 2.6vw, 28px); color: var(--gold, #f0c15a); font-variant-numeric: tabular-nums; }

.bottom { justify-content: flex-start; }
#action-panel { position: fixed; right: 12px; bottom: 14px; width: 210px; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px 20px; z-index: 5; }
.ap-vsizing { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ap-readout { font-size: 30px; font-weight: 800; color: var(--gold, #f0c15a); font-variant-numeric: tabular-nums; line-height: 1.1; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.ap-readout.allin { color: #ff6b5e; }
.ap-vbar { align-self: stretch; padding: 10px 0; }
.ap-vtrack { position: relative; height: clamp(120px, 34vh, 270px); width: 14px; margin: 0 14px 0 auto; border-radius: 7px; background: rgba(255,255,255,.1); touch-action: none; cursor: pointer; }
.ap-vfill { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 7px; background: linear-gradient(0deg, #85590f, #e0a82e); pointer-events: none; }
.ap-vthumb { position: absolute; left: 50%; width: 28px; height: 28px; margin: 0 0 -14px -14px; border-radius: 50%; background: #fff; border: 3px solid var(--gold, #e0a82e); box-shadow: 0 3px 8px rgba(0,0,0,.6); pointer-events: none; }
.ap-tick { position: absolute; right: 100%; margin-bottom: -11px; padding: 0 8px 0 0; height: 22px; display: flex; align-items: center; gap: 4px; background: none; border: none; color: var(--muted, #aab); font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ap-tick i { display: block; width: 8px; height: 2px; background: currentColor; }
.ap-tick:hover { color: #fff; }
#action-panel .ap-buttons { flex-direction: column; gap: 8px; }
#action-panel .act { width: 100%; min-width: 0; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; }
#action-panel .act kbd { opacity: .6; font-size: 11px; }

@media (max-width: 760px) {
  .bottom { flex-direction: row; align-items: flex-end; padding: 0 8px; }
  .my-hand { position: absolute; left: 8px; bottom: 0; }
  .mini-card { width: 62px; }
  .mini-card.board { width: 44px; }
  #action-panel { right: 6px; bottom: 8px; width: 168px; padding: 8px 10px 16px; gap: 6px; }
  .ap-readout { font-size: 24px; }
  .ap-vtrack { height: clamp(90px, 26vh, 160px); }
  #action-panel .act { padding: 9px 10px; font-size: 13px; }
}

/* top bar text buttons: size to their label */
.tb-btn { width: auto; min-width: 42px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
/* other table games: hide the poker hand / chip readout */
body.table-game .my-hand { display: none; }

/* table-game stat panels sit under the top bar so the Menu button stays clickable */
.bj-status, .bac-status, .cg-status, .car-status, .hb-status, .ult-status, .sbc-status, .s21-status, .tcp-status, .war-status { top: 60px !important; }
