/* ---- playing cards ---- */
.hand-fan { display: flex; justify-content: center; align-items: flex-end; padding: 22px 8px 6px; min-height: 160px; }
.pcard { position: relative; flex: 0 0 auto; width: 92px; height: 130px; margin-left: -24px; border-radius: 13px; padding: 15px 6px; background: linear-gradient(160deg,#fffdf6,#efe3c6); border: 2px solid #f5deb3; box-shadow: 0 8px 20px rgba(0,0,0,.55), inset 0 0 0 1px rgba(0,0,0,.08); cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; transition: transform .18s ease, box-shadow .18s ease; transform: translateY(var(--y,0px)) rotate(var(--r,0deg)); }
.pcard:first-child { margin-left: 0; }
.pcard:hover:not(.pcard-off) { transform: translateY(-20px) rotate(0deg) scale(1.08); z-index: 5; box-shadow: 0 16px 30px rgba(0,0,0,.65); }
.pcard:active:not(.pcard-off) { cursor: grabbing; }
.pcard-off { opacity: .55; filter: saturate(.55); cursor: not-allowed; }
.pc-corner { position: absolute; font-size: .6rem; font-weight: 900; line-height: 1; color: #1f2937; }
.pc-corner.tl { top: 3px; left: 6px; }
.pc-corner.br { bottom: 3px; right: 6px; transform: rotate(180deg); }
.pc-frame { position: relative; overflow: hidden; height: 100%; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid #d4af37; }
.pcard.good .pc-frame { background: radial-gradient(circle at 50% 35%, #10b981, #064e3b 78%); }
.pcard.bad .pc-frame { background: radial-gradient(circle at 50% 35%, #ef4444, #450a0a 78%); }
.pc-frame::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,.28), transparent 42%); pointer-events: none; }
.pc-tag { position: absolute; top: 4px; font-size: .45rem; font-weight: 900; letter-spacing: .16em; color: #fde68a; }
.pc-art { font-size: 2.1rem; line-height: 1; margin-top: 8px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.65)); }
.pc-name { font-size: .6rem; font-weight: 900; color: #fff; text-transform: uppercase; letter-spacing: .06em; text-align: center; text-shadow: 0 1px 2px #000; padding: 0 2px; }
.pcard-ghost { position: fixed; z-index: 90; pointer-events: none; margin: 0; transform: translate(-50%,-60%) rotate(-6deg) scale(1.12); box-shadow: 0 22px 40px rgba(0,0,0,.7); transition: none; }
.dragging-card [data-pidx] { outline: 2px dashed rgba(251,191,36,.55); outline-offset: 2px; }
[data-pidx].drop-hot { outline: 3px solid #fbbf24 !important; box-shadow: 0 0 20px #fbbf24aa; transform: scale(1.06); }
