/* 僅可玩版容器整合；卡片本體由UI交付CSS抽取。 */
.card-skin .battle,.card-skin .battle.has-statuses{grid-template-rows:64px 310px 108px 450px 50px;min-height:982px;height:auto}
.card-skin .battle.has-statuses{grid-template-rows:64px 360px 108px 450px 50px;min-height:1032px}
.card-skin .hand-zone{grid-template-rows:44px minmax(0,1fr);min-width:0}
.card-skin .hand-window{top:28px;bottom:44px;overflow-x:auto;overflow-y:hidden}
.card-skin .hand{align-items:flex-start;gap:10px;padding:12px 10px 10px;min-height:330px;justify-content:flex-start}
.card-skin .hand .card.card-face{flex:0 0 clamp(148px,calc((100% - 50px)/6),182px);width:clamp(148px,calc((100% - 50px)/6),182px);height:auto;min-height:300px;margin:0;inset:auto;transform:none;transition:border-color .15s,box-shadow .15s}
.card-skin .hand .card.card-face:hover,.card-skin .hand .card.card-face.selected{transform:translateY(-4px)}
.card-skin .card.drag-ghost{width:164px;height:auto;min-height:300px;z-index:10000;pointer-events:none}
.card-skin .card .availability{max-width:calc(100% - 14px);white-space:normal;overflow-wrap:anywhere}
.card-skin .card .card-extra{min-height:19px}
.card-skin .card .imprint-target-note{z-index:3}
.card-skin .card-catalog-dialog{width:min(1280px,calc(100vw - 20px));max-width:calc(100vw - 20px);max-height:94dvh}
.card-skin .card-catalog-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;align-items:start}
.card-skin .card-catalog-grid>.card{width:100%;height:auto;min-height:460px;transform:none}
.card-skin .card-view-dialog{width:min(410px,calc(100vw - 16px));max-width:calc(100vw - 16px);max-height:94dvh}
.card-skin #card-full>.card{width:100%;height:auto;min-height:450px;transform:none}
.card-skin #card-keyword-help{white-space:pre-wrap;line-height:1.7;font-size:12px}
.card-skin #catalog-count{font-size:12px;line-height:1.6}
.card-skin .card-view-dialog .card-rules,.card-skin .card-catalog-dialog .card-rules{display:block;max-height:none;overflow:visible;-webkit-line-clamp:unset}
@media(max-width:999px){.card-skin .battle,.card-skin .battle.has-statuses{grid-template-rows:60px 290px 108px 450px 50px;min-height:958px}.card-skin .hand .card.card-face{flex-basis:162px;width:162px}}
@media(max-width:600px){.card-skin .battle{grid-template-rows:54px 260px 108px 450px 50px;min-height:922px}.card-skin .battle.has-statuses{grid-template-rows:54px 330px 108px 450px 50px;min-height:992px}.card-skin .card-catalog-grid{grid-template-columns:minmax(0,1fr);gap:18px}.card-skin .card-view-dialog,.card-skin .card-catalog-dialog{padding:12px}.card-skin .hand-tools{padding-left:8px;padding-right:8px}.card-skin .hand-tools .selection-actions{gap:2px}.card-skin .hand-tools button{font-size:10px;padding:4px 6px}}

.card-skin .hand-nav{display:flex}

/* 卡片子區域統一交由原pointer手勢，避免瀏覽器原生圖片拖曳與選字。 */
.card-skin .card-face,.card-skin .card-face *{-webkit-user-select:none;user-select:none}
.card-skin .card-face img{-webkit-user-drag:none;pointer-events:none}

/* 0.6無固定手牌上限：導覽固定留在手牌下方，不被絕對定位牌區覆蓋。 */
.card-skin .hand-area{align-self:stretch;position:relative;min-width:0}
.card-skin .hand-nav{position:absolute;left:0;right:0;bottom:0;height:44px;z-index:4;background:#101e2b}

.card-skin .status-chip.heat-state{white-space:pre-line;max-width:100%;line-height:1.5}

.card-skin .battle.has-hangar{grid-template-rows:64px 360px 108px auto 450px 50px}.card-skin #hangar-board{padding:0 12px;min-width:0}
@media(max-width:999px){.card-skin .battle.has-hangar{grid-template-rows:60px 290px 108px auto 450px 50px}}
@media(max-width:600px){.card-skin .battle.has-hangar{grid-template-rows:54px 330px 108px auto 450px 50px}}
