/* カード調整ボタン */
.card-adjustment, .place-adjustment {
    display: flex;
    gap: 5px;
    margin-top: 5px;
    justify-content: center;
}

.adjust-btn {
    padding: 2px 8px;
    font-size: 12px;
    border: 1px solid #ccc;
    background-color: #f8f9fa;
    cursor: pointer;
    border-radius: 3px;
}

.adjust-btn:hover {
    background-color: #e9ecef;
}

.adjust-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.total-cards-info {
    text-align: center;
    margin-top: 10px;
    padding: 5px;
    background-color: #f8f9fa;
    border-radius: 3px;
    font-weight: bold;
}

.total-cards-info.warning {
    background-color: #fff3cd;
    color: #856404;
}

.total-cards-info.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* プレイスフィールド制御 */
.place-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.selected-stack-info {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

.stack-container {
    display: inline-block;
    margin: 5px;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    position: relative;
    min-width: 80px;
    text-align: center;
}

.stack-container.selected {
    border-color: #3498db;
    background: #e3f2fd;
}

.stack-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.8em;
    color: #666;
}

.stack-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stack-btn {
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #f8f9fa;
    cursor: pointer;
    font-size: 0.7em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.stack-btn:hover:not(:disabled) {
    background: #e9ecef;
    border-color: #adb5bd;
}

.stack-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.stack-count-input {
    width: 30px;
    padding: 2px 4px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 0.8em;
    text-align: center;
}

.stack-count-input:focus {
    outline: none;
    border-color: #3498db;
}

