/* 开局发牌演出（app.js playDeal）。在 responsive.css 之前加载。 */
/* 还没发到的公共市场牌：只留一个虚线空槽；还没发到的手牌：占位不显示（面板宽度不变，其他牌不挪位） */
#publicMarket .pm-card.deal-hide { background: #0003 !important; box-shadow: none !important; border-color: transparent !important; outline: 2px dashed #c9a24d66; outline-offset: -3px; }
#publicMarket .pm-card.deal-hide > * { visibility: hidden; }
#hand .hcard.deal-hide { visibility: hidden; }
/* 飞行中的牌：背面用牌库同一张 card_back；翻面后是牌面 + 主题色带 */
.fly-card.deal-fly { z-index: 1; pointer-events: none; box-shadow: 0 8px 18px #000b; backface-visibility: hidden; }
.fly-card.deal-fly .back { width: 100%; height: 100%; border: 0; border-radius: inherit; background: var(--asset-card_back, none) center / cover no-repeat, linear-gradient(135deg, #5a3fa0, #2a1c4d); }
.fly-card.deal-fly.face { background: var(--tc, #222); box-sizing: border-box; }
.fly-card.deal-fly img { display: block; width: 100%; object-fit: cover; }
.fly-card.deal-fly .dcap { display: flex; align-items: center; justify-content: center; gap: .2em; background: var(--tc); color: #fff; font-weight: 600; line-height: 1; white-space: nowrap; }
.fly-card.deal-fly .dcap .runner { height: 1.5em; width: 1.5em; }
/* 起始玩家：名牌闪两下 + 「XX 先手」 */
#scorePanel .score-row.deal-start { animation: dealStart calc(600ms * var(--am, 1)) ease-in-out 2; }
@keyframes dealStart { 0%, 100% { filter: none; } 50% { filter: brightness(1.45) drop-shadow(0 0 10px #ffd35c); } }
.deal-banner { position: fixed; transform: translateX(-50%); z-index: 2; padding: 4px 14px; border-radius: 999px; background: linear-gradient(#3b2919, #1a110b); border: 2px solid var(--c, #ffd35c); color: #ffe9b0; font: 800 15px/1.3 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; white-space: nowrap; box-shadow: 0 4px 14px #000c, 0 0 12px color-mix(in srgb, var(--c, #ffd35c) 60%, transparent); pointer-events: none; animation: dealBanner var(--dur, 1500ms) ease-out forwards; }
@keyframes dealBanner { 0% { opacity: 0; transform: translate(-50%, -6px) scale(.9); } 12% { opacity: 1; transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #scorePanel .score-row.deal-start, .deal-banner { animation: none; } }

/* 对手打出的前进牌：左上角空位展示 */
#playedLayer { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
.fly-card.played-card { z-index: 1; box-shadow: 0 8px 22px #000c, 0 0 0 2px #ffffff55; }
.fly-card.played-card.face { overflow: visible; }
.fly-card.played-card .pl-own { position: absolute; left: -2px; top: -2px; max-width: 92%; padding: .12em .5em .12em .4em; border-radius: 9px 0 9px 0; background: var(--pc, #888); color: #fff; font: 700 clamp(9px, 1.1vw, 14px)/1.25 system-ui, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 1px 4px #0008; text-shadow: 0 1px 2px #000a; }
.fly-card.played-card.small { pointer-events: auto; cursor: zoom-in; transform-origin: top left; transition: transform .18s; }
.fly-card.played-card.small.big { transform: scale(1.9) !important; z-index: 2; cursor: zoom-out; }
