/* Hold'em — table feutre ovale, sièges en ellipse, tapis, coach */
.hd-wrap { max-width: 1080px; margin: 0 auto; }
.hd-table {
  position: relative; width: 100%; aspect-ratio: 16 / 10.4; min-height: 340px; max-height: calc(100vh - 230px);
  margin: 8px auto 0; --cw: clamp(26px, 3.6vw, 48px);
}
.hd-felt {
  position: absolute; inset: 5% 3% 6%; border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(255,255,255,.1), transparent 55%),
    radial-gradient(ellipse at 50% 50%, #1f8a55 0%, #14683f 55%, #0c4a2c 100%);
  border: clamp(8px, 1.4vw, 15px) solid #4a2c17;
  box-shadow: 0 0 0 2px #1a0e06, 0 0 0 clamp(10px,1.6vw,17px) #2c190c, inset 0 0 60px rgba(0,0,0,.55), 0 36px 70px rgba(0,0,0,.6);
}
.hd-felt::after { content: ""; position: absolute; inset: 7%; border-radius: 50%; border: 2px solid rgba(255,255,255,.1); pointer-events: none; }
.hd-felt .brand { position: absolute; left: 50%; top: 66%; transform: translateX(-50%); font: italic 700 clamp(14px,2.1vw,24px) var(--font-display); letter-spacing: 3px; color: rgba(255,255,255,.1); pointer-events: none; white-space: nowrap; }
.hd-center { position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: clamp(5px,1vw,12px); z-index: 2; }
.hd-info { display: flex; gap: 8px; align-items: center; font-size: clamp(11px, 1.1vw, 13px); color: rgba(255,255,255,.7); letter-spacing: .5px; flex-wrap: wrap; justify-content: center; }
.hd-info b { color: #fff; }
.hd-pot { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 8px; border-radius: 999px; background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.12); font: 800 clamp(14px,1.7vw,20px) var(--font-display); color: var(--gold); min-height: 30px; }
.hd-pot small { font: 600 11px var(--font-ui); color: #cfe2d6; letter-spacing: .5px; }
.hd-board { display: flex; gap: clamp(3px, .6vw, 8px); min-height: calc(var(--cw) * 1.4); }
.hd-slot { width: var(--cw); aspect-ratio: 5/7; border-radius: .1em; border: 2px dashed rgba(255,255,255,.14); background: rgba(0,0,0,.14); font-size: var(--cw); }
.hd-stage { font: 700 11px var(--font-ui); letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.55); }

.hd-seat { position: absolute; transform: translate(-50%, -50%); z-index: 4; width: clamp(96px, 13vw, 156px); display: flex; flex-direction: column; align-items: center; gap: 3px; }
.hd-seat .seat { position: relative; left: auto; top: auto; transform: none; width: 100%; }
.hd-hole { display: flex; justify-content: center; height: calc(var(--cw) * 1.4); margin-bottom: 2px; position: relative; z-index: 1; --cw: clamp(22px, 3vw, 40px); }
.hd-hole .card { margin: 0 -4px; transform-origin: 50% 100%; }
.hd-hole .card:first-child { transform: rotate(-7deg); }
.hd-hole .card:last-child { transform: rotate(7deg); }
.hd-seat.me .hd-hole { --cw: clamp(34px, 5vw, 62px); height: calc(var(--cw) * 1.4); margin-bottom: 4px; }
.hd-seat.folded .hd-hole { opacity: .15; }
.hd-seat.folded .plate { opacity: .55; }
.hd-hand { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(100% + 2px); font: 800 11px var(--font-ui); letter-spacing: .4px; padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.72); color: var(--gold); white-space: nowrap; z-index: 6; border: 1px solid rgba(242,193,78,.4); }
.hd-eq { position: absolute; right: -6px; top: -8px; z-index: 6; font: 800 11px var(--font-ui); padding: 3px 7px; border-radius: 999px; background: #0b1424; border: 1px solid var(--blue); color: #bcd8ff; box-shadow: 0 3px 8px #0008; }
.hd-eq.hi { border-color: var(--green); color: #b6ffc2; }
.hd-btn { position: absolute; z-index: 5; display: flex; align-items: center; gap: 4px; padding: 2px 8px 2px 5px; border-radius: 999px; background: rgba(0,0,0,.55); font: 800 clamp(11px,1.1vw,14px) var(--font-ui); color: #fff; transform: translate(-50%, -50%); transition: left .5s, top .5s; white-space: nowrap; }
.hd-btn .cstack { width: 18px; }
.hd-dealer { position: absolute; z-index: 7; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #111; font: 900 12px/22px var(--font-ui); text-align: center; box-shadow: 0 2px 6px #000a, inset 0 0 0 2px #d9d9d9; transform: translate(-50%, -50%); transition: left .5s, top .5s; }
.hd-seat .blind { position: absolute; right: -4px; bottom: 16px; z-index: 6; font: 800 9px var(--font-ui); background: #2c3a57; color: #fff; border-radius: 6px; padding: 1px 5px; letter-spacing: .5px; }
.hd-seat.lastact .plate::after { content: ""; position: absolute; inset: -3px; border-radius: 999px; pointer-events: none; animation: hdflash .8s ease-out forwards; border: 2px solid var(--gold); }
@keyframes hdflash { from { opacity: 1; } to { opacity: 0; transform: scale(1.12); } }

/* barre d'action */
.hd-actions .coach { width: 100%; display: flex; gap: 14px; align-items: center; padding: 8px 12px; border-radius: 12px; background: rgba(58,141,255,.1); border: 1px solid rgba(58,141,255,.3); font-size: 13px; }
.hd-actions .coach .meter { flex: 1; height: 8px; border-radius: 6px; background: rgba(255,255,255,.12); position: relative; overflow: hidden; min-width: 80px; }
.hd-actions .coach .meter i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #3a8dff, #4cd964); border-radius: 6px; }
.hd-actions .coach .meter u { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--gold); }
.hd-actions .coach b { color: #fff; }
.hd-actions .coach .verdict { font-weight: 700; }
.hd-actions .coach .verdict.ok { color: #9be6ab; }
.hd-actions .coach .verdict.no { color: #ffb3ac; }
.hd-raise { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: min(100%, 360px); flex: 1; }
.hd-raise .presets { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.hd-raise .presets button { padding: 5px 11px; font-size: 12px; font-weight: 700; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255,255,255,.06); }
.hd-raise .presets button:hover { background: rgba(255,255,255,.14); }
.hd-raise .line { display: flex; gap: 10px; align-items: center; }
.hd-raise input[type=range] { flex: 1; accent-color: var(--gold); height: 28px; }
.hd-raise .amt { width: 96px; text-align: center; font: 800 17px var(--font-display); padding: 8px; }
.hd-hint { color: var(--muted); font-size: 12px; text-align: center; width: 100%; }
@media (max-width: 760px) {
  .hd-table { aspect-ratio: 4 / 5; max-height: none; --cw: clamp(24px, 7.4vw, 38px); }
  .hd-felt { inset: 6% 1% 9%; }
  .hd-seat { width: clamp(80px, 26vw, 112px); }
  .hd-hole { --cw: clamp(20px, 6vw, 30px); }
  .hd-seat.me .hd-hole { --cw: clamp(30px, 9vw, 46px); }
}
