/* =========================================================
 * draft.css - 开局选卡面板（对应 draft.js）
 *
 * 轻量版：没有分栏、没有分页、没有步进器。
 * 一个标题 + 一行说明 + 池子格子 + 两个按钮，就这些。
 * 池子格子沿用原来的 .draft-cell（点一下选中，蜂后锁死）。
 *
 * 由 index.html 在本文件之后加载（.draft-card 需覆盖 .modal-card）。
 * ========================================================= */

.draft-card {
    max-width: 320px;
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
    gap: 9px;
}

/* 标题行：谁在选 + 已选/上限 */
.draft-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.draft-head-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
}

.draft-count {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.draft-sub {
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-muted);
    margin-top: -4px;
}

/* 池子格子：两列，够放 15 种 */
.draft-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    max-height: 46vh;
    min-height: 96px;
    overflow-y: auto;
    padding-right: 2px;
}

.draft-grid::-webkit-scrollbar { width: 4px; }
.draft-grid::-webkit-scrollbar-thumb { background: #DCD6C8; border-radius: 2px; }

.draft-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
    background: var(--bg-color);
    border-radius: 10px;
    padding: 9px 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-main);
    text-align: left;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.draft-cell-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.15);
}

.draft-cell-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.draft-cell-cnt {
    font-size: 0.64rem;
    font-weight: 800;
    color: var(--text-muted);
}

/* 选中：实心填色，不加描边、不加对勾 */
.draft-cell.picked {
    background: #CFE5DA;
    border-color: transparent;
}

/* 蜂后：带着但点不动 */
.draft-cell.locked {
    cursor: default;
}

.draft-cell:active:not(.locked) {
    background: #EDE9DE;
}
