/* Poker Arena - « 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); }

/* 1.3.23 : rejouer la main en animation */
.rp-tools { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 6px 0 8px; }
.rp-tools button { padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; border: 1px solid rgba(245,210,122,.45);
  background: linear-gradient(180deg, #2f6b46, #1d4a30); color: #f1e9da; }
.rp-tools .rp-share { background: rgba(255,255,255,.06); }
.rp-shmsg { flex-basis: 100%; text-align: center; font-size: 12.5px; color: #9ff0bd; word-break: break-all; }
.rp-shmsg:empty { display: none; }
.rpa { margin: 4px 0 12px; }
.rpa-t { position: relative; width: 100%; aspect-ratio: 16 / 10; max-height: 62vh; margin: 0 auto; }
.rpa-felt { position: absolute; inset: 9% 7%; border-radius: 50% / 48%; background: radial-gradient(ellipse at 50% 40%, #2a7a52, #12452e 70%);
  border: 6px solid #5a3a1e; box-shadow: inset 0 0 30px rgba(0,0,0,.5), 0 6px 18px rgba(0,0,0,.5); }
.rpa-layer { position: absolute; inset: 0; }
.rpa-mid { position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rpa-board .rpc { width: 30px; height: 42px; }
.rpa-pot { font-size: 12.5px; font-weight: 700; color: #f5d27a; background: rgba(0,0,0,.35); padding: 1px 9px; border-radius: 99px; min-height: 1em; }
.rpa-pot:empty { display: none; }
.rpa-seat { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; transition: opacity .3s; }
.rpa-seat .rpa-cards { margin-bottom: -6px; position: relative; z-index: 1; }
.rpa-seat .rpc { width: 22px; height: 31px; font-size: 11px; }
.rpa-seat .rpc b, .rpa-seat .rpc i { font-size: 11.5px; }
.rpa-seat.me .rpc { width: 28px; height: 39px; }
.rpa-sb { min-width: 76px; max-width: 110px; padding: 3px 7px; border-radius: 9px; text-align: center; background: rgba(20,14,10,.92);
  border: 1px solid rgba(245,210,122,.3); }
.rpa-seat.me .rpa-sb { border-color: rgba(120,170,255,.6); background: rgba(16,30,56,.95); }
.rpa-seat.fold { opacity: .45; }
.rpa-seat.win .rpa-sb { border-color: #f5d27a; box-shadow: 0 0 12px rgba(245,210,122,.7); }
.rpa-nm { font-size: 11px; color: #e9dcc4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rpa-st { font-size: 12.5px; font-weight: 800; color: #f1e9da; font-variant-numeric: tabular-nums; }
.rpa-act { font-size: 10.5px; color: #f5d27a; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.rpa-d { position: absolute; right: -10px; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: #f5f0e0; color: #222;
  font-size: 11px; font-weight: 900; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,.6); }
.rpa-bet { position: absolute; transform: translate(-50%, -50%); font-size: 11.5px; font-weight: 800; color: #fff; padding: 1px 7px; border-radius: 99px;
  background: rgba(0,0,0,.55); border: 1px solid rgba(245,210,122,.5); }
.rpa-txt { text-align: center; min-height: 1.4em; margin: 6px 0; font-size: 14px; font-weight: 600; color: #f5d27a; }
.rpa-ctl { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.rpa-ctl button { min-width: 40px; padding: 6px 10px; border-radius: 9px; border: 1px solid rgba(245,210,122,.35); background: rgba(255,255,255,.06);
  color: #f1e9da; font-size: 15px; cursor: pointer; }
.rpa-ctl .rpa-pp { min-width: 54px; background: rgba(245,210,122,.18); }
.rpa-n { font-size: 12px; color: #a99b86; min-width: 52px; text-align: center; }
@keyframes rpaIn { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .rpa-t { aspect-ratio: 4 / 5; }
  .rpa-felt { inset: 8% 9%; border-radius: 48% / 50%; }
  .rpa-sb { min-width: 64px; max-width: 86px; padding: 2px 5px; }
}

.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; }
}
