/* Président — tapis violet, pli au centre, main en éventail */
.pr-wrap { max-width: 1080px; margin: 0 auto; }
.pr-table {
  position: relative; width: 100%; aspect-ratio: 16 / 8.6; min-height: 300px; max-height: calc(100vh - 420px); --cw: clamp(30px, 4.4vw, 56px);
  border-radius: 40px; margin-top: 8px;
  background: radial-gradient(ellipse at 50% 35%, rgba(255,255,255,.12), transparent 55%), radial-gradient(ellipse at 50% 55%, #4b2a86 0%, #34195f 60%, #220f43 100%);
  border: clamp(8px,1.3vw,14px) solid #1f1233; box-shadow: 0 0 0 2px #0c0618, inset 0 0 80px rgba(0,0,0,.55), 0 30px 70px rgba(0,0,0,.55);
}
.pr-table::before { content: "👑"; position: absolute; left: 50%; top: 64%; transform: translateX(-50%); font-size: clamp(26px,4vw,48px); opacity: .09; pointer-events: none; }
.pr-seat { position: absolute; transform: translate(-50%, -50%); z-index: 4; width: clamp(96px, 13vw, 150px); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pr-seat .seat { position: relative; left: auto; top: auto; transform: none; width: 100%; }
.pr-seat.done .plate { opacity: .75; }
.pr-seat.me .plate { border-color: rgba(255,255,255,.35); }
.pr-cnt { margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 26px; font: 800 13px var(--font-ui); color: #fff; }
.pr-cnt .fan { position: relative; width: 34px; height: 24px; }
.pr-cnt .fan i { position: absolute; top: 0; width: 17px; height: 24px; border-radius: 3px; border: 1px solid #f4f4f0; background: linear-gradient(160deg, #2453b8, #0f2a6b); box-shadow: 0 1px 2px #000a; }
.pr-cnt .fan i:nth-child(1) { left: 0; transform: rotate(-10deg); } .pr-cnt .fan i:nth-child(2) { left: 8px; } .pr-cnt .fan i:nth-child(3) { left: 16px; transform: rotate(10deg); }
.pr-cnt.low { color: var(--gold); }
.pr-seat .place { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); z-index: 6; font: 800 13px var(--font-display); padding: 2px 10px; border-radius: 999px; background: var(--gold); color: #2a1a00; white-space: nowrap; }
.role-t { font: 700 10px var(--font-ui); letter-spacing: .4px; text-transform: uppercase; padding: 1px 7px; border-radius: 6px; background: rgba(255,255,255,.12); color: #e4d5ff; white-space: nowrap; }
.role-t.pres { background: var(--gold); color: #2a1a00; } .role-t.trou { background: #6b3a1f; color: #ffd9b8; }

.pr-center { position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 56%; }
.pr-pile { position: relative; height: calc(var(--cw) * 1.5); min-width: 220px; width: 100%; display: flex; justify-content: center; align-items: center; }
.pr-play { position: absolute; display: flex; transition: transform .3s; }
.pr-play .card { margin-left: calc(var(--cw) * -.45); }
.pr-play .card:first-child { margin-left: 0; }
.pr-play.old { opacity: .55; filter: saturate(.7); }
.pr-play .who { position: absolute; left: 50%; bottom: -17px; transform: translateX(-50%); font: 700 11px var(--font-ui); color: rgba(255,255,255,.75); white-space: nowrap; }
.pr-empty { color: rgba(255,255,255,.55); font: italic 600 clamp(15px,2vw,20px) var(--font-display); text-align: center; }
.pr-rev { position: absolute; left: 50%; top: -6px; transform: translate(-50%, -100%); padding: 4px 16px; border-radius: 999px; background: linear-gradient(180deg, #ff7468, #c9372d); color: #fff; font: 800 13px var(--font-ui); letter-spacing: 1.5px; white-space: nowrap; box-shadow: 0 6px 16px #0009; animation: pop .35s; }
.pr-strip { display: flex; gap: 2px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.pr-strip span { min-width: 22px; text-align: center; font: 700 11px var(--font-ui); padding: 2px 3px; border-radius: 6px; background: rgba(0,0,0,.3); color: rgba(255,255,255,.6); }
.pr-strip span.top { background: var(--gold); color: #2a1a00; }
.pr-strip span.ok { color: #fff; background: rgba(255,255,255,.14); }
.pr-strip.rev { flex-direction: row; }
.cap { text-align: center; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.45); margin-top: 3px; }

.pr-hand { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: calc(var(--hw, 64px) * 1.4 + 26px); padding: 22px 8px 8px; max-width: 1040px; margin: 4px auto 0; overflow: visible; --hw: clamp(46px, 6.2vw, 74px); }
.pr-hand .card { --cw: var(--hw); margin-left: calc(var(--ov, 0) * -1px); cursor: pointer; transition: transform .16s cubic-bezier(.2,.8,.25,1), filter .2s, box-shadow .2s; }
.pr-hand .card:first-child { margin-left: 0; }
.pr-hand .card:hover { transform: translateY(-8px); z-index: 5; }
.pr-hand .card.sel { transform: translateY(-20px); box-shadow: 0 0 0 3px var(--gold), 0 14px 22px rgba(0,0,0,.55); z-index: 6; }
.pr-hand .card.nop { filter: brightness(.55) saturate(.6); cursor: not-allowed; }
.pr-hand .card.nop:hover { transform: none; }
.pr-hand.idle .card { cursor: default; }
.pr-hand.idle .card:hover { transform: none; }
.pr-hand .card.got { box-shadow: 0 0 0 3px var(--green), 0 0 18px rgba(76,217,100,.7); }
.pr-hand-lbl { text-align: center; color: var(--muted); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; margin-top: 2px; min-height: 16px; }
.pr-between { position: absolute; inset: 14% 8%; z-index: 9; border-radius: 22px; background: rgba(10,6,24,.94); border: 2px solid rgba(160,108,213,.6); padding: 14px 18px; overflow: auto; animation: pop .35s; }
.pr-between h3 { margin: 0 0 8px; font: 800 22px var(--font-display); text-align: center; color: #e4d5ff; }
.pr-between ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.pr-between li { display: flex; gap: 10px; align-items: center; padding: 5px 8px; border-radius: 10px; background: rgba(255,255,255,.06); font-size: 14px; }
.pr-between li .pts { margin-left: auto; font-weight: 800; color: var(--gold); }
.pr-between li .tot { color: var(--muted); font-size: 12px; min-width: 52px; text-align: right; }
.pr-between .nxt { text-align: center; color: var(--muted); font-size: 12px; margin-top: 8px; }
.pr-exch-box { width: 100%; text-align: center; font-size: 14px; color: #dcd0f5; }
.pr-exch-box b { color: #fff; }
@media (max-width: 760px) {
  .pr-table { aspect-ratio: 4 / 4.6; max-height: none; --cw: clamp(26px, 7.4vw, 38px); border-radius: 26px; }
  .pr-seat { width: clamp(78px, 25vw, 108px); }
  .pr-center { width: 70%; top: 48%; }
  .pr-hand { --hw: clamp(40px, 11vw, 60px); }
  .pr-between { inset: 4% 3%; }
}
