/* The Cactus Poker - « revoir mes mains » (lobby et table) */
.rpcs { display: inline-flex; gap: 3px; vertical-align: middle; }
.rpc {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: .95;
  width: 26px; height: 36px; border-radius: 4px; background: linear-gradient(160deg, #fffdf7, #ece4d3);
  box-shadow: 0 1px 3px rgba(0,0,0,.5); font-weight: 800; font-size: 13px; font-family: inherit;
}
.rpc b { font-size: 14px; letter-spacing: -.05em; }
.rpc i { font-style: normal; font-size: 14px; }
.rpc.s-s { color: #111; } .rpc.s-c { color: #111; } .rpc.s-h { color: #d0302a; } .rpc.s-d { color: #d0302a; }
.rpc.back { background: repeating-linear-gradient(45deg, rgba(227,176,75,.25) 0 2px, transparent 2px 6px), linear-gradient(160deg, #6d1d1a, #3d0e0c); }
.rpc.mine { box-shadow: 0 0 0 2px #f5d27a, 0 0 8px rgba(245,210,122,.7); }

.rp-head { text-align: center; color: #a99b86; font-size: 13px; margin-bottom: 8px; }
.rp-me { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; font-size: 14px; color: #a99b86; margin: 4px 0; }
.rp-net { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; color: #f1e9da; white-space: nowrap; }
.rp-net.up { color: #6fdc98; } .rp-net.down { color: #ff7b6e; }
.rp-rank { text-align: center; color: #f5d27a; font-size: 13px; margin-bottom: 6px; }
.rp-rank .rpcs { margin-left: 6px; }
.rp-tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.rp-tag.win { background: rgba(60,174,108,.22); color: #7fe3a6; }
.rp-tag.loss { background: rgba(224,87,74,.2); color: #ff8f84; }
.rp-tag.split { background: rgba(245,210,122,.18); color: #f5d27a; }
.rp-tag.fold, .rp-tag.even { background: rgba(255,255,255,.08); color: #a99b86; }
.rp-list { padding-top: 4px; border-top: 1px solid rgba(245,210,122,.15); text-align: left; }
.rp-st { padding: 8px 4px; border-bottom: 1px solid rgba(245,210,122,.1); }
.rp-sth { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; color: #f5d27a; font-size: 14px; }
.rp-eq { margin-left: auto; font-weight: 600; font-size: 12px; color: #f1e9da; background: rgba(255,255,255,.07); padding: 2px 8px; border-radius: 999px; }
.rp-st ul { margin: 6px 0 0; padding-left: 18px; color: #f1e9da; font-size: 13px; }
.rp-st li { padding: 2px 0; }
.rp-bb { color: #a99b86; font-size: 11.5px; }
.rp-why { background: rgba(245,210,122,.05); border-radius: 10px; margin-top: 6px; }
.rp-board { margin: 8px 0 4px; color: #a99b86; font-size: 13px; display: flex; align-items: center; gap: 8px; }
table.rp-sd { width: 100%; border-collapse: collapse; margin: 6px 0 2px; font-size: 13px; }
table.rp-sd td { padding: 5px 4px; border-bottom: 1px solid rgba(255,255,255,.06); vertical-align: middle; color: #f1e9da; }
table.rp-sd td.nm { white-space: nowrap; }
table.rp-sd td.nm small { color: #a99b86; }
table.rp-sd td.b5 .rk { font-size: 12px; color: #a99b86; margin-top: 3px; }
table.rp-sd tr.won td.nm { color: #f5d27a; font-weight: 700; }
table.rp-sd tr.won td.b5 .rk { color: #f5d27a; }
.rp-legend { font-size: 11.5px; color: #a99b86; margin-bottom: 4px; }
.rp-pot { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: rgba(0,0,0,.25); border-left: 3px solid #6fdc98; }
.rp-pot.split { border-left-color: #f5d27a; }
.rp-pot.ret { border-left-color: #a99b86; }
.rp-pot .ph { font-weight: 700; color: #f1e9da; font-size: 13.5px; }
.rp-pot ul { margin: 4px 0 0; }
.rp-pot b.me { color: #f5d27a; }

.replay-panel { width: min(96vw, 580px); }

/* liste des 100 dernieres mains (lobby) */
.rp-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.rp-filters button { padding: 6px 11px; font-size: 13px; }
.rp-filters button.on { background: linear-gradient(180deg, #d9a440, #9a6c1b); color: #1d1206; border-color: transparent; }
.rp-rows { display: flex; flex-direction: column; gap: 4px; max-height: 60vh; overflow-y: auto; overflow-x: hidden; }
.rp-row .mid small { display: block; max-width: 100%; }
button.rp-row {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 7px 8px; border-radius: 9px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(245,210,122,.12); color: #f1e9da; box-shadow: none; font: inherit; cursor: pointer;
}
button.rp-row:hover { border-color: rgba(245,210,122,.5); filter: none; }
.rp-row .when { display: flex; flex-direction: column; font-size: 12.5px; width: 7.4em; flex: 0 0 auto; color: #f1e9da; }
.rp-row > .rpcs { flex: 0 0 auto; }
.rp-row .when small, .rp-row .mid small { color: #a99b86; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-row .mid { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; align-items: flex-start; }
.rp-row .rp-net { font-size: 14px; }
.rp-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; color: #a99b86; font-size: 13px; }
.rp-nav button { padding: 6px 10px; font-size: 13px; }
@media (max-width: 520px) {
  .rp-row .when { width: 6.2em; font-size: 11.5px; }
  .rpc { width: 22px; height: 31px; } .rpc b, .rpc i { font-size: 12px; }
  table.rp-sd td { padding: 4px 2px; }
}
