.hand-card { position: relative; }
.hand-card.just-drawn { margin-left: 15px; }
.just-drawn .card { border-color: #b9a36e; box-shadow: 0 3px 0 #c5b88e, 0 0 0 1px #c6b27b45; }
.drawn-label { position: absolute; bottom: -19px; left: 0; right: 0; color: #8b7b50; font: 9px Arial,sans-serif; letter-spacing: .5px; }
.hand { margin-bottom: 21px; }
.hand-card.arriving .card, .hand-card.arriving .drawn-label { opacity: 0; }
.own-discards { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); width: 45%; text-align: center; }
.own-discards > span { display: block; font: 9px Arial,sans-serif; color: #afbea6; letter-spacing: 1px; margin-bottom: 7px; }
.own-discards .discards { justify-content: center; min-height: 38px; max-height: 43px; }
.card-flights { pointer-events: none; }
.card-flight { position: fixed; z-index: 20; width: 52px; height: 76px; margin: -38px 0 0 -26px; pointer-events: none; animation: kami-card-slide 520ms cubic-bezier(.22,.65,.3,1) both; will-change: transform, opacity; }
.card-flight .card { width: 100%; height: 100%; box-shadow: 0 8px 20px #072a2540; }
.flight-back { display: block; width: 100%; height: 100%; border-radius: 5px; border: 2px solid #c1c296; background: repeating-linear-gradient(45deg,#345644 0px,#345644 5px,#496b50 5px,#496b50 6px); box-shadow: 0 8px 20px #072a2540; }
@keyframes kami-card-slide {
  0% { opacity: 0; transform: translate(0,0) scale(.7) rotate(-7deg); }
  12% { opacity: 1; }
  82% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--flight-x),var(--flight-y)) scale(var(--flight-scale)) rotate(0deg); }
}
@media (max-width:800px) { .own-discards { width: 65%; bottom: 14px; } .hand-card.just-drawn { margin-left: 10px; } }
@media (max-width:480px) { .own-discards { bottom: 11px; } .own-discards .discards { max-height: 34px; min-height:32px; } .hand-card.just-drawn { margin-left: 7px; } .drawn-label { font-size:8px; } }
@media (prefers-reduced-motion:reduce) { .card-flight { display:none; animation:none; } .hand-card { transition:none; } .hand-card.arriving .card,.hand-card.arriving .drawn-label { opacity:1; } }
/* Présentation temporaire d'une capture validée, sans interception des gestes. */
.seat, .player-zone { position: relative; }
.capture-panels { position: absolute; top: 62px; right: 8px; z-index: 24; pointer-events: none; }
.capture-panel { display: flex; gap: 5px; padding: 7px; border: 1px solid #b9a36e; border-radius: 9px; background: #fff9e9f5; box-shadow: 0 4px 14px #142b2940; animation: capture-panel-in 120ms ease-out both; }
.capture-panel-card { display: block; border-radius: 4px; }
.capture-panel .card.small { width: 40px; height: 58px; margin: 0; }
.capture-panel .captured { outline: 2px solid #d8ad48; outline-offset: 1px; box-shadow: 0 0 9px 3px #f5d98099; }
.player-zone > .capture-panels { top: -80px; right: 18px; }
@keyframes capture-panel-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@media(max-width: 800px), (max-height: 550px) {
  .capture-panels { top: 42px; right: 4px; }
  .capture-panel { gap: 3px; padding: 5px; }
  .capture-panel .card.small { width: 28px; height: 40px; }
  .capture-panel .card .pip { font-size: 20px; }
  .capture-panel .card .corner { font-size: 11px; }
  .player-zone > .capture-panels { top: -58px; right: 8px; }
}
@media(prefers-reduced-motion:reduce) { .capture-panel { animation: none; } }
.capture-reveal-held { visibility: hidden; }
